@megha-ui/react 1.2.354 → 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,9 @@ 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));
378
+ console.log({ filterTokens, expandedColumnTokens });
376
379
  const filteredValues = filteredData
377
380
  .filter((row) => {
378
381
  var _a, _b, _c, _d;
@@ -382,7 +385,8 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
382
385
  for (let i = 0; i < n; i++) {
383
386
  const col = expandedColumnTokens[i];
384
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 : "";
385
- 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 });
386
390
  if (value !== expected)
387
391
  return false;
388
392
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.354",
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",