@moontra/moonui-pro 2.26.15 → 2.26.17

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
@@ -73510,7 +73510,15 @@ function DataTableQuickFilter({
73510
73510
  }) {
73511
73511
  const [searchValue, setSearchValue] = useState("");
73512
73512
  const column = table.getColumn(filter.column);
73513
+ if (typeof window !== "undefined" && true) {
73514
+ const allColumns = table.getAllColumns();
73515
+ console.log(`QuickFilter: Looking for column '${filter.column}'`, {
73516
+ availableColumns: allColumns.map((c2) => c2.id),
73517
+ columnFound: !!column
73518
+ });
73519
+ }
73513
73520
  if (!column) {
73521
+ console.warn(`QuickFilter: Column '${filter.column}' not found in table`);
73514
73522
  return null;
73515
73523
  }
73516
73524
  const columnDef = column.columnDef;
@@ -73520,18 +73528,22 @@ function DataTableQuickFilter({
73520
73528
  if (filterValueAccessor) {
73521
73529
  return filterValueAccessor(row);
73522
73530
  }
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
+ const value = row[filter.column];
73532
+ if (value === void 0) {
73533
+ const accessor = column.columnDef.accessorKey || column.columnDef.accessorFn;
73534
+ if (typeof accessor === "function") {
73535
+ return accessor(row);
73536
+ } else if (accessor && typeof accessor === "string") {
73537
+ const keys2 = accessor.split(".");
73538
+ let nestedValue = row;
73539
+ for (const key of keys2) {
73540
+ nestedValue = nestedValue?.[key];
73541
+ if (nestedValue === void 0)
73542
+ break;
73543
+ }
73544
+ return nestedValue;
73531
73545
  }
73532
- return value2;
73533
73546
  }
73534
- const value = row[filter.column];
73535
73547
  return value;
73536
73548
  };
73537
73549
  const availableOptions = useMemo(() => {
@@ -73554,7 +73566,10 @@ function DataTableQuickFilter({
73554
73566
  dataLength: data.length,
73555
73567
  uniqueValues: uniqueValues.size,
73556
73568
  options,
73557
- filterOptions: filter.options
73569
+ filterOptions: filter.options,
73570
+ sampleData: data.length > 0 ? data[0] : null,
73571
+ columnExists: !!column,
73572
+ columnDef: column?.columnDef
73558
73573
  });
73559
73574
  }
73560
73575
  return options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.15",
3
+ "version": "2.26.17",
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",