@moontra/moonui-pro 2.26.46 → 2.26.47
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 +30 -30
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +12 -9
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -73994,7 +73994,7 @@ function DataTable({
|
|
|
73994
73994
|
setRowSelection(newSelection);
|
|
73995
73995
|
if (onRowSelect) {
|
|
73996
73996
|
const selectedRows = Object.keys(newSelection).filter((key) => newSelection[key]).map((index2) => stableData[parseInt(index2)]).filter(Boolean);
|
|
73997
|
-
|
|
73997
|
+
onRowSelect(selectedRows);
|
|
73998
73998
|
}
|
|
73999
73999
|
}, [stableData, onRowSelect]);
|
|
74000
74000
|
const processedColumns = t__default.useMemo(() => {
|
|
@@ -74151,16 +74151,19 @@ function DataTable({
|
|
|
74151
74151
|
autoResetExpanded: false,
|
|
74152
74152
|
getRowId: (row, index2) => {
|
|
74153
74153
|
const rowData = row;
|
|
74154
|
-
|
|
74154
|
+
if (rowData.id)
|
|
74155
|
+
return String(rowData.id);
|
|
74156
|
+
if (rowData.orderId)
|
|
74157
|
+
return String(rowData.orderId);
|
|
74158
|
+
if (rowData.orderNumber)
|
|
74159
|
+
return String(rowData.orderNumber);
|
|
74160
|
+
if (rowData.email)
|
|
74161
|
+
return `email-${rowData.email}`;
|
|
74162
|
+
if (rowData.name)
|
|
74163
|
+
return `name-${rowData.name}-${index2}`;
|
|
74164
|
+
return String(index2);
|
|
74155
74165
|
}
|
|
74156
74166
|
});
|
|
74157
|
-
t__default.useEffect(() => {
|
|
74158
|
-
if (onRowSelect && selectable) {
|
|
74159
|
-
const selectedRowIds = Object.keys(rowSelection).filter((id) => rowSelection[id]);
|
|
74160
|
-
const selectedRows = table.getRowModel().rows.filter((row) => selectedRowIds.includes(row.id)).map((row) => row.original);
|
|
74161
|
-
onRowSelect(selectedRows);
|
|
74162
|
-
}
|
|
74163
|
-
}, [rowSelection, onRowSelect, selectable]);
|
|
74164
74167
|
table.getState();
|
|
74165
74168
|
const rowModel = table.getRowModel();
|
|
74166
74169
|
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.47",
|
|
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",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-dom": ">=18.0.0 || ^19.0.0"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@moontra/moonui-pro": "^2.26.
|
|
84
|
+
"@moontra/moonui-pro": "^2.26.46",
|
|
85
85
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
86
86
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
87
87
|
"@radix-ui/react-checkbox": "^1.3.2",
|