@megha-ui/react 1.2.704 → 1.2.706

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.
@@ -397,6 +397,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
397
397
  : [{ groupedKey: "", groupedValue: columnKey }];
398
398
  _groupedKeys.forEach((grouped) => {
399
399
  const { groupedKey, groupedValue } = grouped;
400
+ console.log({ groupedKey });
400
401
  const filterValue = _groupedKeys.length > 1 ? groupedValue : "";
401
402
  const filterSegments = filterValue
402
403
  ? filterValue
@@ -415,18 +416,22 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
415
416
  .filter((v) => v);
416
417
  if (!filterSegments.length)
417
418
  return true;
419
+ console.log({ filterSegments, valueSegments, group });
418
420
  return filterSegments.some((segment) => valueSegments.includes(segment));
419
421
  };
422
+ console.log({ filterValue });
420
423
  const filteredValues = filteredData
421
- .filter((item) => filterValue
422
- ? filterSegments.length > 1
423
- ? groupedKey
424
- .split(">")
425
- .every((group) => matchesGroup(item, group))
426
- : groupedKey
427
- .split(">")
428
- .some((group) => matchesGroup(item, group))
429
- : true)
424
+ .filter((item) => {
425
+ return filterValue
426
+ ? filterSegments.length > 1
427
+ ? groupedKey
428
+ .split(">")
429
+ .every((group) => matchesGroup(item, group))
430
+ : groupedKey
431
+ .split(">")
432
+ .some((group) => matchesGroup(item, group))
433
+ : true;
434
+ })
430
435
  .map((item) => {
431
436
  var _a;
432
437
  return ((_a = item[columnKey]) === null || _a === void 0 ? void 0 : _a.value) || "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.704",
3
+ "version": "1.2.706",
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",