ods-component-lib 1.18.225 → 1.18.226

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ export declare const seatPositions: {
2
+ [key: string]: string;
3
+ };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { MemoizedCellProps } from "./OdsCabinGrid.Types";
3
+ export declare const createSeatData: (rowRangeStart: number, rowRangeEnd: number, cabinPlan: string) => any[];
4
+ export declare const MemoizedCell: React.MemoExoticComponent<({ data, field, toggleAttribute, disableSeat, styles, }: MemoizedCellProps) => React.JSX.Element>;
@@ -0,0 +1,12 @@
1
+ export declare const getCheckboxStyle: (type: string, active: boolean) => {
2
+ width: string;
3
+ height: string;
4
+ borderRadius: string;
5
+ display: string;
6
+ alignItems: string;
7
+ justifyContent: string;
8
+ cursor: string;
9
+ padding: string;
10
+ backgroundColor: string;
11
+ };
12
+ export declare const getIconColor: (type: string, active: boolean) => string;
@@ -0,0 +1,94 @@
1
+ export declare const checkboxBase: {
2
+ width: string;
3
+ height: string;
4
+ borderRadius: string;
5
+ display: string;
6
+ alignItems: string;
7
+ justifyContent: string;
8
+ cursor: string;
9
+ padding: string;
10
+ backgroundColor: string;
11
+ };
12
+ export declare const availableActive: {
13
+ color: string;
14
+ border: string;
15
+ backgroundColor: string;
16
+ };
17
+ export declare const availableInactive: {
18
+ color: string;
19
+ border: string;
20
+ backgroundColor: string;
21
+ };
22
+ export declare const childrenAllowedActive: {
23
+ border: string;
24
+ backgroundColor: string;
25
+ };
26
+ export declare const childrenAllowedInactive: {
27
+ border: string;
28
+ backgroundColor: string;
29
+ };
30
+ export declare const bottleActive: {
31
+ border: string;
32
+ backgroundColor: string;
33
+ };
34
+ export declare const bottleInactive: {
35
+ border: string;
36
+ backgroundColor: string;
37
+ };
38
+ export declare const lapPassengersAllowedActive: {
39
+ border: string;
40
+ backgroundColor: string;
41
+ };
42
+ export declare const lapPassengersAllowedInactive: {
43
+ border: string;
44
+ backgroundColor: string;
45
+ };
46
+ export declare const crossActive: {
47
+ border: string;
48
+ backgroundColor: string;
49
+ };
50
+ export declare const crossInactive: {
51
+ border: string;
52
+ backgroundColor: string;
53
+ };
54
+ export declare const iconColors: {
55
+ available: {
56
+ active: string;
57
+ inactive: string;
58
+ };
59
+ childrenAllowed: {
60
+ active: string;
61
+ inactive: string;
62
+ };
63
+ bottle: {
64
+ active: string;
65
+ inactive: string;
66
+ };
67
+ lapPassengersAllowed: {
68
+ active: string;
69
+ inactive: string;
70
+ };
71
+ cross: {
72
+ active: string;
73
+ inactive: string;
74
+ };
75
+ };
76
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
77
+ cabinContainer: import("antd-style").SerializedStyles;
78
+ gridConfig: import("antd-style").SerializedStyles;
79
+ optionGroup: import("antd-style").SerializedStyles;
80
+ optionLabel: import("antd-style").SerializedStyles;
81
+ bulkUpdateBtn: import("antd-style").SerializedStyles;
82
+ seatAttributes: import("antd-style").SerializedStyles;
83
+ emptySpace: import("antd-style").SerializedStyles;
84
+ headerCell: import("antd-style").SerializedStyles;
85
+ headerCheckbox: import("antd-style").SerializedStyles;
86
+ headerText: import("antd-style").SerializedStyles;
87
+ headerCellStyle: import("antd-style").SerializedStyles;
88
+ headerEmptySpace: import("antd-style").SerializedStyles;
89
+ rowCell: import("antd-style").SerializedStyles;
90
+ rowCheckbox: import("antd-style").SerializedStyles;
91
+ exitSwitchContainer: import("antd-style").SerializedStyles;
92
+ exitSwitch: import("antd-style").SerializedStyles;
93
+ cellContent: import("antd-style").SerializedStyles;
94
+ }>;
@@ -0,0 +1,46 @@
1
+ export interface Seat {
2
+ row: number;
3
+ exit: boolean;
4
+ Color?: {
5
+ text: string;
6
+ color: string;
7
+ };
8
+ [key: string]: any;
9
+ }
10
+ export interface MemoizedCellProps {
11
+ data: any;
12
+ field: string;
13
+ toggleAttribute: (rowNumber: number, field: string, attribute: string) => void;
14
+ disableSeat: (rowNumber: number, field: string) => void;
15
+ styles: {
16
+ seatAttributes: string;
17
+ };
18
+ }
19
+ export declare type CabinPlanType = '3-3' | '3-5-3';
20
+ export interface BulkUpdate {
21
+ row: number;
22
+ seat: string;
23
+ openToSale?: boolean;
24
+ availableForChild?: boolean;
25
+ availableForInfant?: boolean;
26
+ availableForInfantwSeat?: boolean;
27
+ delete?: boolean;
28
+ }
29
+ export interface CabinGridProps {
30
+ numberOfAisle?: number;
31
+ rowRangeStart?: number;
32
+ rowRangeEnd?: number;
33
+ seatPositions?: {
34
+ [key: string]: string;
35
+ };
36
+ onSelectionChange?: (selection: SelectionChangeData) => void;
37
+ rowLabel?: string;
38
+ exitLabel?: string;
39
+ bulkUpdate?: BulkUpdate[];
40
+ }
41
+ export interface SelectionChangeData {
42
+ selectedSeats: Array<{
43
+ row: number;
44
+ seat: string;
45
+ }>;
46
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { CabinGridProps } from "./OdsCabinGrid.Types";
3
+ declare const CabinGrid: React.FC<CabinGridProps>;
4
+ export default CabinGrid;
package/dist/index.d.ts CHANGED
@@ -59,6 +59,7 @@ import OdsMasterDetailDataGrid from "./components/devextreme/OdsMasterDetailData
59
59
  import OdsChange from "./components/antd/change/OdsChange";
60
60
  import OdsProgress from "./components/antd/progress/OdsProgress";
61
61
  import OdsFileUploadv2 from "./components/antd/fileUpload/OdsFileUploadv2";
62
+ import OdsCabinGrid from "./components/devextreme/OdsCabinDataGrid/OdsCabinGrid";
62
63
  export { default as OdsTreeSelect } from "./components/antd/treeSelect/OdsTreeSelect";
63
64
  export { default as OdsCurrencyInput } from "./components/antd/currencyInput/OdsCurrencyInput";
64
65
  export { OdsButton };
@@ -97,6 +98,7 @@ export { OdsRangeTimepicker };
97
98
  export { OdsInputNumber };
98
99
  export { OdsPhoneInput };
99
100
  export { OdsMasterDetailDataGrid };
101
+ export { OdsCabinGrid };
100
102
  export { OdsText };
101
103
  export { OdsTitle };
102
104
  export { OdsParagraph };