cecomponent 1.0.147 → 1.0.149
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.
|
@@ -86,18 +86,12 @@ interface CEDataGridDynamicTableProps {
|
|
|
86
86
|
showPagination?: boolean;
|
|
87
87
|
shouldResetSearchOnDataChange?: boolean;
|
|
88
88
|
pageSizeOptions?: Array<number>;
|
|
89
|
-
/**
|
|
90
|
-
* Called when selection changes. New signature (recommended):
|
|
91
|
-
* handleSelectedRows?: (payload: { ids: (string|number)[]; rows?: any[] }) => void;
|
|
92
|
-
* For backward-compatibility this component will also call the old
|
|
93
|
-
* (rows: any[]) callback if the consumer passed a function expecting an array.
|
|
94
|
-
*/
|
|
95
89
|
handleSelectedRows?: ((rows: any[]) => void) | ((payload: {
|
|
96
90
|
ids: (string | number)[];
|
|
97
91
|
rows?: any[];
|
|
98
92
|
}) => void);
|
|
99
|
-
/** Field name to use as the stable selection key on each row. Defaults to `id`. */
|
|
100
|
-
selectionKey?: string;
|
|
93
|
+
/** Field name OR extractor function to use as the stable selection key on each row. Defaults to `id`. */
|
|
94
|
+
selectionKey?: string | ((row: any) => string | number);
|
|
101
95
|
rowsSelected?: Set<number>;
|
|
102
96
|
/** Called when the current page changes; receives the new page index (0-based) */
|
|
103
97
|
onPageChange?: (page: number) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cecomponent",
|
|
3
3
|
"description": "A React component library for building modern UIs for Cleanearth",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.149",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/idex.d.ts",
|