60e2149072
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.
98 lines
2.8 KiB
TypeScript
98 lines
2.8 KiB
TypeScript
/**
|
|
*
|
|
* StyleClass manages css classes declaratively to during enter/leave animations or just to toggle classes on an element.
|
|
*
|
|
* [Live Demo](https://www.primereact.org/styleclass)
|
|
*
|
|
* @module styleclass
|
|
*
|
|
*/
|
|
import * as React from 'react';
|
|
|
|
/**
|
|
* Defines valid properties in StyleClass component.
|
|
* @group Properties
|
|
*/
|
|
export interface StyleClassProps {
|
|
/**
|
|
* A React reference to DOM element that need to specify. Required.
|
|
*/
|
|
nodeRef: React.MutableRefObject<React.ReactNode>;
|
|
/**
|
|
* Selector to define the target element.
|
|
*/
|
|
selector?: '@next' | '@prev' | '@parent' | '@grandparent' | string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get displayed.
|
|
* @deprecated since 10.5.2 Use 'enterFromClassName' option instead.
|
|
*/
|
|
enterClassName?: string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get displayed.
|
|
*/
|
|
enterFromClassName?: string | undefined;
|
|
/**
|
|
* Style class to add during enter animation.
|
|
*/
|
|
enterActiveClassName?: string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get displayed.
|
|
*/
|
|
enterToClassName?: string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get hidden.
|
|
* @deprecated since 10.5.2 Use 'leaveFromClassName' option instead.
|
|
*/
|
|
leaveClassName?: string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get hidden.
|
|
*/
|
|
leaveFromClassName?: string | undefined;
|
|
/**
|
|
* Style class to add during leave animation.
|
|
*/
|
|
leaveActiveClassName?: string | undefined;
|
|
/**
|
|
* Style class to add when leave animation is completed.
|
|
*/
|
|
leaveToClassName?: string | undefined;
|
|
/**
|
|
* Whether to trigger leave animation when outside of the element is clicked.
|
|
* @defaultValue false
|
|
*/
|
|
hideOnOutsideClick?: boolean | undefined;
|
|
/**
|
|
* Adds or removes a class when no enter-leave animation is required.
|
|
*/
|
|
toggleClassName?: string | undefined;
|
|
/**
|
|
* Used to get the child elements of the component.
|
|
* @readonly
|
|
*/
|
|
children?: React.ReactNode | undefined;
|
|
}
|
|
|
|
/**
|
|
* **PrimeReact - StyleClass**
|
|
*
|
|
* _StyleClass manages css classes declaratively to during enter/leave animations or just to toggle classes on an element._
|
|
*
|
|
* [Live Demo](https://www.primereact.org/styleclass/)
|
|
* --- ---
|
|
* 
|
|
*
|
|
* @group Component
|
|
*/
|
|
export declare class StyleClass extends React.Component<StyleClassProps, any> {
|
|
/**
|
|
* Used to get container element.
|
|
* @return {HTMLElement | null} Container element
|
|
*/
|
|
public getElement(): HTMLElement | null;
|
|
/**
|
|
* Used to get target element.
|
|
* @return {HTMLElement | null} Container element
|
|
*/
|
|
public getTarget(): HTMLElement | null;
|
|
}
|