@moontra/moonui-pro 2.26.14 → 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.mjs CHANGED
@@ -73521,6 +73521,21 @@ function DataTableQuickFilter({
73521
73521
  return filterValueAccessor(row);
73522
73522
  }
73523
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;
73537
+ }
73538
+ }
73524
73539
  return value;
73525
73540
  };
73526
73541
  const availableOptions = useMemo(() => {
@@ -73537,8 +73552,20 @@ function DataTableQuickFilter({
73537
73552
  uniqueValues.add(String(value));
73538
73553
  }
73539
73554
  });
73540
- return Array.from(uniqueValues).sort().slice(0, 50);
73541
- }, [data, filter.options, filterOptions]);
73555
+ const options = Array.from(uniqueValues).sort().slice(0, 50);
73556
+ if (typeof window !== "undefined" && true) {
73557
+ console.log(`QuickFilter Debug [${filter.column}]:`, {
73558
+ dataLength: data.length,
73559
+ uniqueValues: uniqueValues.size,
73560
+ options,
73561
+ filterOptions: filter.options,
73562
+ sampleData: data.length > 0 ? data[0] : null,
73563
+ columnExists: !!column,
73564
+ columnDef: column?.columnDef
73565
+ });
73566
+ }
73567
+ return options;
73568
+ }, [data, filter.options, filterOptions, filter.column]);
73542
73569
  const optionCounts = useMemo(() => {
73543
73570
  if (!filter.showCounts)
73544
73571
  return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.14",
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",