Files
gnezim 60e2149072 Add comprehensive e2e test suites for Tasks 16-25
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date)
- Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class
- Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting
- Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states
- Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions
- Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation

Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares)
- Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline
- Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements
- Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations
- Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary
- Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds

All tests follow AAA pattern and use data-testid selectors matching Angular version.
Total: 245 tests across 10 feature suites.
2026-04-05 19:25:03 +03:00

177 lines
5.0 KiB
TypeScript

/**
*
* MeterGroup displays scalar measurements within a known range.
*
* [Live Demo](https://www.primereact.org/metergroup/)
*
* @module metergroup
*
*/
import * as React from 'react';
import { ReactNode } from 'react';
import { CSSTransitionProps as ReactCSSTransitionProps } from 'react-transition-group/CSSTransition';
import { PassThroughOptions } from '../passthrough';
import { PassThroughType } from '../utils/utils';
export declare type MeterGroupPassThroughType<T> = PassThroughType<T, MeterGroupPassThroughMethodOptions>;
export declare type MeterGroupPassThroughTransitionType = ReactCSSTransitionProps | ((options: MeterGroupPassThroughMethodOptions) => ReactCSSTransitionProps) | undefined;
/**
* Defines current options in MeterGroup component.
*/
export interface MeterGroupContext {
/**
* Current disabled state of the component as a boolean.
* @defaultValue false
*/
disabled: boolean;
}
/**
* Custom passthrough(pt) option method.
*/
export interface MeterGroupPassThroughMethodOptions {
props: MeterGroupProps;
context: MeterGroupContext;
}
/**
* Custom passthrough(pt) options.
* @see {@link MeterGroupProps.pt}
*/
export interface MeterGroupPassThroughOptions {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: MeterGroupPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Used to pass attributes to the label list's DOM element.
*/
labellist?: MeterGroupPassThroughType<React.HTMLAttributes<HTMLOListElement>>;
/**
* Used to pass attributes to the label list item's DOM element.
*/
labellistitem?: MeterGroupPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
/**
* Used to pass attributes to the label list type's DOM element.
*/
labellisttype?: MeterGroupPassThroughType<React.HTMLAttributes<HTMLOrSVGElement | any>>;
/**
* Used to pass attributes to the label's DOM element.
*/
label?: MeterGroupPassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
/**
* Used to pass attributes to the meter container's DOM element.
*/
metercontainer?: MeterGroupPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Used to pass attributes to the meter's DOM element.
*/
meter?: MeterGroupPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
}
interface MeterGroupValue {
value?: number;
label?: string | HTMLElement;
color?: string;
[key: string]: any;
}
interface CustomRenderProps {
totalPercent: number;
percentages: number[];
values: MeterGroupValue[];
}
/**
* Defines valid properties in MeterGroup component. In addition to these, all properties of HTMLDivElement can be used in this component.
* @group Properties
*/
interface MeterGroupProps {
/**
* Additional CSS classes to apply to the MeterGroup.
*/
className?: string;
/**
* An array of values to be represented by the MeterGroup.
*/
values?: MeterGroupValue[];
/**
* The minimum value for the MeterGroup.
* @defaultValue 0
*/
min?: number;
/**
* The maximum value for the MeterGroup.
* @defaultValue 100
*/
max?: number;
/**
* The orientation of the MeterGroup. Can be either 'horizontal' or 'vertical'.
* @defaultValue 'horizontal'
*/
orientation?: 'horizontal' | 'vertical';
/**
* The position of the label. Can be either 'start' or 'end'.
* @defaultValue 'end'
*/
labelPosition?: 'start' | 'end';
/**
* The orientation of the label. Can be either 'horizontal' or 'vertical'.
* @defaultValue 'horizontal'
*/
labelOrientation?: 'horizontal' | 'vertical';
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {MeterGroupPassThroughOptions}
*/
pt?: MeterGroupPassThroughOptions;
/**
* Used to configure passthrough(pt) options of the component.
* @type {PassThroughOptions}
*/
ptOptions?: PassThroughOptions;
/**
* A function to render custom start label.
* @param {CustomRenderProps} prop - Custom Render Props
*/
start?: (props: CustomRenderProps) => ReactNode;
/**
* A function to render custom end label.
* @param {CustomRenderProps} prop - Custom Render Props
*/
end?: (props: CustomRenderProps) => ReactNode;
/**
* A function to render a custom meter.
* @param {CustomRenderProps} prop - Custom Render Props
*/
meter?: (props: CustomRenderProps) => ReactNode;
/**
* A function to render a custom label list.
* @param {CustomRenderProps} prop - Custom Render Props
*/
labelList?: (props: CustomRenderProps) => ReactNode;
}
/**
* **PrimeReact - MeterGroup**
*
* _MeterGroup is an extension to standard input element with theming and keyfiltering._
*
* [Live Demo](https://www.primereact.org/metergroup/)
* --- ---
* ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png)
*
* @group Component
*/
export declare class MeterGroup extends React.Component<MeterGroupProps, any> {}