@moontra/moonui-pro 2.26.25 → 2.26.26
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 +73 -73
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -74045,7 +74045,10 @@ function DataTable({
|
|
|
74045
74045
|
sortDescFirst: false,
|
|
74046
74046
|
// First click should be ascending
|
|
74047
74047
|
onColumnVisibilityChange: setColumnVisibility,
|
|
74048
|
-
onRowSelectionChange:
|
|
74048
|
+
onRowSelectionChange: (updater) => {
|
|
74049
|
+
const newSelection = typeof updater === "function" ? updater(rowSelection) : updater;
|
|
74050
|
+
setRowSelection(newSelection);
|
|
74051
|
+
},
|
|
74049
74052
|
onGlobalFilterChange: setGlobalFilter,
|
|
74050
74053
|
globalFilterFn: "includesString",
|
|
74051
74054
|
enableRowSelection: selectable || enableRowSelection || false,
|
|
@@ -74140,14 +74143,12 @@ function DataTable({
|
|
|
74140
74143
|
return rowData.id || rowData.orderId || rowData.orderNumber || `row-${index2}`;
|
|
74141
74144
|
}
|
|
74142
74145
|
});
|
|
74143
|
-
const prevRowSelectionRef = t__default.useRef(rowSelection);
|
|
74144
74146
|
t__default.useEffect(() => {
|
|
74145
|
-
if (onRowSelect
|
|
74146
|
-
|
|
74147
|
-
|
|
74148
|
-
|
|
74149
|
-
|
|
74150
|
-
}, [rowSelection, selectable]);
|
|
74147
|
+
if (!onRowSelect || !selectable)
|
|
74148
|
+
return;
|
|
74149
|
+
const selectedRows = table.getFilteredSelectedRowModel().rows.map((row) => row.original);
|
|
74150
|
+
onRowSelect(selectedRows);
|
|
74151
|
+
}, [rowSelection]);
|
|
74151
74152
|
table.getState();
|
|
74152
74153
|
const rowModel = table.getRowModel();
|
|
74153
74154
|
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.26",
|
|
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",
|