@megha-ui/react 1.2.355 → 1.2.356

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.
@@ -373,6 +373,8 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
373
373
  const filterTokens = filterValue
374
374
  ? filterValue.split(">").filter(Boolean)
375
375
  : [];
376
+ const expandedValueTokens = columnLevelTokens
377
+ .flatMap((tok) => tok.split("+").map((s) => s.trim()).filter(Boolean));
376
378
  console.log({ filterTokens, expandedColumnTokens });
377
379
  const filteredValues = filteredData
378
380
  .filter((row) => {
@@ -383,7 +385,8 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
383
385
  for (let i = 0; i < n; i++) {
384
386
  const col = expandedColumnTokens[i];
385
387
  const value = (_c = (_b = (_a = row[col]) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "";
386
- const expected = (_d = filterTokens[i]) !== null && _d !== void 0 ? _d : "";
388
+ const expected = (_d = expandedValueTokens[i]) !== null && _d !== void 0 ? _d : "";
389
+ console.log({ expected, value });
387
390
  if (value !== expected)
388
391
  return false;
389
392
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.355",
3
+ "version": "1.2.356",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",