cecomponent 1.0.146 → 1.0.147
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,7 +86,18 @@ interface CEDataGridDynamicTableProps {
|
|
|
86
86
|
showPagination?: boolean;
|
|
87
87
|
shouldResetSearchOnDataChange?: boolean;
|
|
88
88
|
pageSizeOptions?: Array<number>;
|
|
89
|
-
|
|
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
|
+
handleSelectedRows?: ((rows: any[]) => void) | ((payload: {
|
|
96
|
+
ids: (string | number)[];
|
|
97
|
+
rows?: any[];
|
|
98
|
+
}) => void);
|
|
99
|
+
/** Field name to use as the stable selection key on each row. Defaults to `id`. */
|
|
100
|
+
selectionKey?: string;
|
|
90
101
|
rowsSelected?: Set<number>;
|
|
91
102
|
/** Called when the current page changes; receives the new page index (0-based) */
|
|
92
103
|
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.147",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/idex.d.ts",
|