@moontra/moonui-pro 2.26.30 → 2.26.31
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.global.js +33 -33
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -74074,6 +74074,12 @@ function DataTable({
|
|
|
74074
74074
|
onRowSelectionChange: (updater) => {
|
|
74075
74075
|
const newSelection = typeof updater === "function" ? updater(rowSelection) : updater;
|
|
74076
74076
|
setRowSelection(newSelection);
|
|
74077
|
+
if (onRowSelect && selectable) {
|
|
74078
|
+
setTimeout(() => {
|
|
74079
|
+
const selectedRows = table.getFilteredSelectedRowModel().rows.map((row) => row.original);
|
|
74080
|
+
onRowSelect(selectedRows);
|
|
74081
|
+
}, 0);
|
|
74082
|
+
}
|
|
74077
74083
|
},
|
|
74078
74084
|
onGlobalFilterChange: setGlobalFilter,
|
|
74079
74085
|
globalFilterFn: "includesString",
|
|
@@ -74169,12 +74175,6 @@ function DataTable({
|
|
|
74169
74175
|
return rowData.id || rowData.orderId || rowData.orderNumber || `row-${index2}`;
|
|
74170
74176
|
}
|
|
74171
74177
|
});
|
|
74172
|
-
t__default.useEffect(() => {
|
|
74173
|
-
if (!onRowSelect || !selectable)
|
|
74174
|
-
return;
|
|
74175
|
-
const selectedRows = table.getFilteredSelectedRowModel().rows.map((row) => row.original);
|
|
74176
|
-
onRowSelect(selectedRows);
|
|
74177
|
-
}, [rowSelection]);
|
|
74178
74178
|
table.getState();
|
|
74179
74179
|
const rowModel = table.getRowModel();
|
|
74180
74180
|
const rowsRef = t__default.useRef(rowModel.rows);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.31",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|