@moontra/moonui-pro 2.26.24 → 2.26.25
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 +32 -32
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -74048,6 +74048,7 @@ function DataTable({
|
|
|
74048
74048
|
onRowSelectionChange: setRowSelection,
|
|
74049
74049
|
onGlobalFilterChange: setGlobalFilter,
|
|
74050
74050
|
globalFilterFn: "includesString",
|
|
74051
|
+
enableRowSelection: selectable || enableRowSelection || false,
|
|
74051
74052
|
filterFns: {
|
|
74052
74053
|
custom: (row, columnId, filterValue) => {
|
|
74053
74054
|
if (Array.isArray(filterValue)) {
|
|
@@ -74134,7 +74135,10 @@ function DataTable({
|
|
|
74134
74135
|
autoResetAll: false,
|
|
74135
74136
|
autoResetPageIndex: false,
|
|
74136
74137
|
autoResetExpanded: false,
|
|
74137
|
-
getRowId: (row) =>
|
|
74138
|
+
getRowId: (row, index2) => {
|
|
74139
|
+
const rowData = row;
|
|
74140
|
+
return rowData.id || rowData.orderId || rowData.orderNumber || `row-${index2}`;
|
|
74141
|
+
}
|
|
74138
74142
|
});
|
|
74139
74143
|
const prevRowSelectionRef = t__default.useRef(rowSelection);
|
|
74140
74144
|
t__default.useEffect(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.25",
|
|
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",
|