ods-component-lib 1.18.225 → 1.18.227
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.
- package/dist/components/antd/treeListMenu/OdsTreeListMenu.Styles.d.ts +3 -0
- package/dist/components/antd/treeListMenu/OdsTreeListMenu.d.ts +17 -0
- package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Constants.d.ts +3 -0
- package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Functions.d.ts +4 -0
- package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Helpers.d.ts +12 -0
- package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Style.d.ts +94 -0
- package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Types.d.ts +46 -0
- package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1068 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1070 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DataNode } from "antd/es/tree";
|
|
3
|
+
interface TreeProps {
|
|
4
|
+
treeData: TreeNodeWithChecked[];
|
|
5
|
+
leftSectionTitle: string;
|
|
6
|
+
rightSectionTitle: string;
|
|
7
|
+
searchDisabled: boolean;
|
|
8
|
+
searchMode: "left" | "right" | "both";
|
|
9
|
+
searchPlaceholder: string;
|
|
10
|
+
clearText: string;
|
|
11
|
+
onSelectedNodesChanges: (selectedNodes: TreeNodeWithChecked[]) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface TreeNodeWithChecked extends DataNode {
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const OdsTreeListMenu: React.FC<TreeProps>;
|
|
17
|
+
export default OdsTreeListMenu;
|
|
@@ -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
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ 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";
|
|
63
|
+
import OdsTreeListMenu from "./components/antd/treeListMenu/OdsTreeListMenu";
|
|
62
64
|
export { default as OdsTreeSelect } from "./components/antd/treeSelect/OdsTreeSelect";
|
|
63
65
|
export { default as OdsCurrencyInput } from "./components/antd/currencyInput/OdsCurrencyInput";
|
|
64
66
|
export { OdsButton };
|
|
@@ -97,6 +99,7 @@ export { OdsRangeTimepicker };
|
|
|
97
99
|
export { OdsInputNumber };
|
|
98
100
|
export { OdsPhoneInput };
|
|
99
101
|
export { OdsMasterDetailDataGrid };
|
|
102
|
+
export { OdsCabinGrid };
|
|
100
103
|
export { OdsText };
|
|
101
104
|
export { OdsTitle };
|
|
102
105
|
export { OdsParagraph };
|
|
@@ -123,3 +126,4 @@ export { OdsServerSideDatagrid };
|
|
|
123
126
|
export { OdsInlineEditDataGrid };
|
|
124
127
|
export { OdsProgress };
|
|
125
128
|
export { OdsFileUploadv2 };
|
|
129
|
+
export { OdsTreeListMenu };
|