@moontra/moonui-pro 2.26.14 → 2.26.15
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 +22 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -73520,6 +73520,17 @@ function DataTableQuickFilter({
|
|
|
73520
73520
|
if (filterValueAccessor) {
|
|
73521
73521
|
return filterValueAccessor(row);
|
|
73522
73522
|
}
|
|
73523
|
+
const accessor = column.columnDef.accessorKey || column.columnDef.accessorFn;
|
|
73524
|
+
if (typeof accessor === "function") {
|
|
73525
|
+
return accessor(row);
|
|
73526
|
+
} else if (accessor) {
|
|
73527
|
+
const keys2 = accessor.split(".");
|
|
73528
|
+
let value2 = row;
|
|
73529
|
+
for (const key of keys2) {
|
|
73530
|
+
value2 = value2?.[key];
|
|
73531
|
+
}
|
|
73532
|
+
return value2;
|
|
73533
|
+
}
|
|
73523
73534
|
const value = row[filter.column];
|
|
73524
73535
|
return value;
|
|
73525
73536
|
};
|
|
@@ -73537,8 +73548,17 @@ function DataTableQuickFilter({
|
|
|
73537
73548
|
uniqueValues.add(String(value));
|
|
73538
73549
|
}
|
|
73539
73550
|
});
|
|
73540
|
-
|
|
73541
|
-
|
|
73551
|
+
const options = Array.from(uniqueValues).sort().slice(0, 50);
|
|
73552
|
+
if (typeof window !== "undefined" && true) {
|
|
73553
|
+
console.log(`QuickFilter Debug [${filter.column}]:`, {
|
|
73554
|
+
dataLength: data.length,
|
|
73555
|
+
uniqueValues: uniqueValues.size,
|
|
73556
|
+
options,
|
|
73557
|
+
filterOptions: filter.options
|
|
73558
|
+
});
|
|
73559
|
+
}
|
|
73560
|
+
return options;
|
|
73561
|
+
}, [data, filter.options, filterOptions, filter.column]);
|
|
73542
73562
|
const optionCounts = useMemo(() => {
|
|
73543
73563
|
if (!filter.showCounts)
|
|
73544
73564
|
return {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.15",
|
|
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",
|