@fctc/sme-widget-ui 1.2.4 → 1.2.6
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/index.js +2575 -2554
- package/dist/index.mjs +2575 -2554
- package/dist/widgets.d.mts +65 -1
- package/dist/widgets.d.ts +65 -1
- package/dist/widgets.js +3835 -3814
- package/dist/widgets.mjs +3835 -3814
- package/package.json +1 -1
package/dist/widgets.d.mts
CHANGED
|
@@ -14,6 +14,43 @@ declare const usePagination: ({ totalCount, pageSize, siblingCount, currentPage,
|
|
|
14
14
|
|
|
15
15
|
declare const PaginationView: (props: any) => JSX.Element | null;
|
|
16
16
|
|
|
17
|
+
interface ColEmptyGroup {
|
|
18
|
+
fromStart: number;
|
|
19
|
+
fromEnd: number;
|
|
20
|
+
}
|
|
21
|
+
interface TableGroupControllerReturn {
|
|
22
|
+
onExpandChildGroup: () => void;
|
|
23
|
+
colEmptyGroup: ColEmptyGroup;
|
|
24
|
+
isShowGroup: boolean;
|
|
25
|
+
isDataGroupFetched: boolean;
|
|
26
|
+
isDataPlaceHolder: any;
|
|
27
|
+
nameGroupWithCount: string;
|
|
28
|
+
columnsGroup: any[];
|
|
29
|
+
rowsGroup: any[];
|
|
30
|
+
model: string;
|
|
31
|
+
level: number;
|
|
32
|
+
specification: string;
|
|
33
|
+
context: Record<string, any>;
|
|
34
|
+
checkedAll: boolean;
|
|
35
|
+
isDisplayCheckbox: boolean;
|
|
36
|
+
selectedRowKeysRef: React.MutableRefObject<number[]>;
|
|
37
|
+
dataGroup: any;
|
|
38
|
+
pageGroup: number;
|
|
39
|
+
setPageGroup: Dispatch<SetStateAction<number>>;
|
|
40
|
+
typeTableGroup?: string;
|
|
41
|
+
}
|
|
42
|
+
interface TableGroupControllerProps {
|
|
43
|
+
columns: any;
|
|
44
|
+
row: any;
|
|
45
|
+
model: string;
|
|
46
|
+
viewData: any;
|
|
47
|
+
level: number;
|
|
48
|
+
specification: any;
|
|
49
|
+
context: Record<string, any>;
|
|
50
|
+
checkedAll: boolean;
|
|
51
|
+
groupByList?: any;
|
|
52
|
+
setSelectedRowKeys?: (selectedRowKeys: any) => void;
|
|
53
|
+
}
|
|
17
54
|
interface TableBodyProps {
|
|
18
55
|
rows?: any;
|
|
19
56
|
columns?: any;
|
|
@@ -53,7 +90,34 @@ interface TableFooterProps {
|
|
|
53
90
|
}
|
|
54
91
|
declare const TableFooter: ({ onAddRow, rows }: TableFooterProps) => JSX.Element;
|
|
55
92
|
|
|
56
|
-
|
|
93
|
+
interface TableGroupProps {
|
|
94
|
+
indexRow: number;
|
|
95
|
+
rows: any[];
|
|
96
|
+
columns: any[];
|
|
97
|
+
row: Record<string, any>;
|
|
98
|
+
model: string;
|
|
99
|
+
viewData: any;
|
|
100
|
+
level: number;
|
|
101
|
+
specification: string;
|
|
102
|
+
context: Record<string, any>;
|
|
103
|
+
checkedAll: boolean;
|
|
104
|
+
isDisplayCheckbox: boolean;
|
|
105
|
+
selectedRowKeysRef: React.MutableRefObject<number[]>;
|
|
106
|
+
renderField?: ({ row, col, indexRow, onChangeData, rootField, }: {
|
|
107
|
+
row: any;
|
|
108
|
+
col: any;
|
|
109
|
+
indexRow: any;
|
|
110
|
+
onChangeData: any;
|
|
111
|
+
rootField?: any;
|
|
112
|
+
}) => React.ReactNode;
|
|
113
|
+
isAutoSelect?: boolean;
|
|
114
|
+
setIsAutoSelect?: any;
|
|
115
|
+
tableGroupController: (props: TableGroupControllerProps) => TableGroupControllerReturn;
|
|
116
|
+
groupByList?: any;
|
|
117
|
+
selectedRowKeys?: any;
|
|
118
|
+
setSelectedRowKeys?: (selectedRowKeys: any) => void;
|
|
119
|
+
}
|
|
120
|
+
declare const TableGroup: (props: TableGroupProps) => JSX.Element;
|
|
57
121
|
|
|
58
122
|
interface TableHeadProps {
|
|
59
123
|
handleCheckBoxAll?: any;
|
package/dist/widgets.d.ts
CHANGED
|
@@ -14,6 +14,43 @@ declare const usePagination: ({ totalCount, pageSize, siblingCount, currentPage,
|
|
|
14
14
|
|
|
15
15
|
declare const PaginationView: (props: any) => JSX.Element | null;
|
|
16
16
|
|
|
17
|
+
interface ColEmptyGroup {
|
|
18
|
+
fromStart: number;
|
|
19
|
+
fromEnd: number;
|
|
20
|
+
}
|
|
21
|
+
interface TableGroupControllerReturn {
|
|
22
|
+
onExpandChildGroup: () => void;
|
|
23
|
+
colEmptyGroup: ColEmptyGroup;
|
|
24
|
+
isShowGroup: boolean;
|
|
25
|
+
isDataGroupFetched: boolean;
|
|
26
|
+
isDataPlaceHolder: any;
|
|
27
|
+
nameGroupWithCount: string;
|
|
28
|
+
columnsGroup: any[];
|
|
29
|
+
rowsGroup: any[];
|
|
30
|
+
model: string;
|
|
31
|
+
level: number;
|
|
32
|
+
specification: string;
|
|
33
|
+
context: Record<string, any>;
|
|
34
|
+
checkedAll: boolean;
|
|
35
|
+
isDisplayCheckbox: boolean;
|
|
36
|
+
selectedRowKeysRef: React.MutableRefObject<number[]>;
|
|
37
|
+
dataGroup: any;
|
|
38
|
+
pageGroup: number;
|
|
39
|
+
setPageGroup: Dispatch<SetStateAction<number>>;
|
|
40
|
+
typeTableGroup?: string;
|
|
41
|
+
}
|
|
42
|
+
interface TableGroupControllerProps {
|
|
43
|
+
columns: any;
|
|
44
|
+
row: any;
|
|
45
|
+
model: string;
|
|
46
|
+
viewData: any;
|
|
47
|
+
level: number;
|
|
48
|
+
specification: any;
|
|
49
|
+
context: Record<string, any>;
|
|
50
|
+
checkedAll: boolean;
|
|
51
|
+
groupByList?: any;
|
|
52
|
+
setSelectedRowKeys?: (selectedRowKeys: any) => void;
|
|
53
|
+
}
|
|
17
54
|
interface TableBodyProps {
|
|
18
55
|
rows?: any;
|
|
19
56
|
columns?: any;
|
|
@@ -53,7 +90,34 @@ interface TableFooterProps {
|
|
|
53
90
|
}
|
|
54
91
|
declare const TableFooter: ({ onAddRow, rows }: TableFooterProps) => JSX.Element;
|
|
55
92
|
|
|
56
|
-
|
|
93
|
+
interface TableGroupProps {
|
|
94
|
+
indexRow: number;
|
|
95
|
+
rows: any[];
|
|
96
|
+
columns: any[];
|
|
97
|
+
row: Record<string, any>;
|
|
98
|
+
model: string;
|
|
99
|
+
viewData: any;
|
|
100
|
+
level: number;
|
|
101
|
+
specification: string;
|
|
102
|
+
context: Record<string, any>;
|
|
103
|
+
checkedAll: boolean;
|
|
104
|
+
isDisplayCheckbox: boolean;
|
|
105
|
+
selectedRowKeysRef: React.MutableRefObject<number[]>;
|
|
106
|
+
renderField?: ({ row, col, indexRow, onChangeData, rootField, }: {
|
|
107
|
+
row: any;
|
|
108
|
+
col: any;
|
|
109
|
+
indexRow: any;
|
|
110
|
+
onChangeData: any;
|
|
111
|
+
rootField?: any;
|
|
112
|
+
}) => React.ReactNode;
|
|
113
|
+
isAutoSelect?: boolean;
|
|
114
|
+
setIsAutoSelect?: any;
|
|
115
|
+
tableGroupController: (props: TableGroupControllerProps) => TableGroupControllerReturn;
|
|
116
|
+
groupByList?: any;
|
|
117
|
+
selectedRowKeys?: any;
|
|
118
|
+
setSelectedRowKeys?: (selectedRowKeys: any) => void;
|
|
119
|
+
}
|
|
120
|
+
declare const TableGroup: (props: TableGroupProps) => JSX.Element;
|
|
57
121
|
|
|
58
122
|
interface TableHeadProps {
|
|
59
123
|
handleCheckBoxAll?: any;
|