@moontra/moonui-pro 2.26.15 → 2.26.16
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 +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +18 -11
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -73520,18 +73520,22 @@ function DataTableQuickFilter({
|
|
|
73520
73520
|
if (filterValueAccessor) {
|
|
73521
73521
|
return filterValueAccessor(row);
|
|
73522
73522
|
}
|
|
73523
|
-
const
|
|
73524
|
-
if (
|
|
73525
|
-
|
|
73526
|
-
|
|
73527
|
-
|
|
73528
|
-
|
|
73529
|
-
|
|
73530
|
-
|
|
73523
|
+
const value = row[filter.column];
|
|
73524
|
+
if (value === void 0) {
|
|
73525
|
+
const accessor = column.columnDef.accessorKey || column.columnDef.accessorFn;
|
|
73526
|
+
if (typeof accessor === "function") {
|
|
73527
|
+
return accessor(row);
|
|
73528
|
+
} else if (accessor && typeof accessor === "string") {
|
|
73529
|
+
const keys2 = accessor.split(".");
|
|
73530
|
+
let nestedValue = row;
|
|
73531
|
+
for (const key of keys2) {
|
|
73532
|
+
nestedValue = nestedValue?.[key];
|
|
73533
|
+
if (nestedValue === void 0)
|
|
73534
|
+
break;
|
|
73535
|
+
}
|
|
73536
|
+
return nestedValue;
|
|
73531
73537
|
}
|
|
73532
|
-
return value2;
|
|
73533
73538
|
}
|
|
73534
|
-
const value = row[filter.column];
|
|
73535
73539
|
return value;
|
|
73536
73540
|
};
|
|
73537
73541
|
const availableOptions = useMemo(() => {
|
|
@@ -73554,7 +73558,10 @@ function DataTableQuickFilter({
|
|
|
73554
73558
|
dataLength: data.length,
|
|
73555
73559
|
uniqueValues: uniqueValues.size,
|
|
73556
73560
|
options,
|
|
73557
|
-
filterOptions: filter.options
|
|
73561
|
+
filterOptions: filter.options,
|
|
73562
|
+
sampleData: data.length > 0 ? data[0] : null,
|
|
73563
|
+
columnExists: !!column,
|
|
73564
|
+
columnDef: column?.columnDef
|
|
73558
73565
|
});
|
|
73559
73566
|
}
|
|
73560
73567
|
return options;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.16",
|
|
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",
|