cecomponent 2.0.102 → 2.0.103

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.
@@ -151,10 +151,15 @@ interface CEDataGridDynamicTableProps {
151
151
  showPagination?: boolean;
152
152
  shouldResetSearchOnDataChange?: boolean;
153
153
  pageSizeOptions?: Array<number>;
154
+ /**
155
+ * When true, clears selected rows whenever page size changes.
156
+ * Default is false to preserve existing selection behavior.
157
+ */
158
+ clearSelectionOnRowsPerPageChange?: boolean;
154
159
  handleSelectedRows?: ((rows: any[]) => void) | ((payload: SelectedRowsPayload) => void);
155
160
  /** Field name OR extractor function to use as the stable selection key on each row. Defaults to `id`. */
156
161
  selectionKey?: string | ((row: any) => string | number);
157
- rowsSelected?: Set<number>;
162
+ rowsSelected?: Set<string | number>;
158
163
  /** Called when pagination changes; receives page index (0-based) and optionally page size. */
159
164
  onPageChange?: (page: number, pageSize?: number) => void;
160
165
  /**
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": "2.0.102",
4
+ "version": "2.0.103",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",