@megha-ui/react 1.2.30 → 1.2.32

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.
@@ -992,21 +992,22 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
992
992
  };
993
993
  const filterDetails = (0, react_1.useMemo)(() => {
994
994
  const filterColumn = gridColumns.reduce((acc, column) => {
995
- var _a;
995
+ var _a, _b, _c;
996
996
  const query = searchQueries[column.key];
997
997
  const uniqeValues = (0, gridHeader_1.getColumnData)(column.key, filteredData);
998
- console.log({ unqv: uniqeValues.join(""), unq: (_a = uniqueSearch[column.key]) === null || _a === void 0 ? void 0 : _a.join("") });
998
+ console.log({ unqv: uniqeValues.join(""), unq: (_a = uniqueSearch[column.key]) === null || _a === void 0 ? void 0 : _a.join(""), bool: uniqueSearch[column.key] && uniqeValues.join("") !== ((_b = uniqueSearch[column.key]) === null || _b === void 0 ? void 0 : _b.join("")), key: column.key });
999
999
  if (query &&
1000
1000
  (query.text !== "" || query.type !== defaultSearchOperation)) {
1001
1001
  acc[column.key] = query.text;
1002
1002
  }
1003
1003
  else if (uniqueSearch[column.key] &&
1004
- uniqeValues.toString() !== uniqueSearch[column.key].toString()) {
1004
+ uniqeValues.join("") !== ((_c = uniqueSearch[column.key]) === null || _c === void 0 ? void 0 : _c.join(""))) {
1005
1005
  acc[column.key] = uniqueSearch[column.key].join(",");
1006
1006
  }
1007
1007
  return acc;
1008
1008
  }, {});
1009
1009
  const propFilterColumn = gridColumns.reduce((acc, column) => {
1010
+ var _a;
1010
1011
  if (filterData) {
1011
1012
  const { searchQueries, uniqueSearch } = filterData;
1012
1013
  const query = searchQueries[column.key];
@@ -1016,8 +1017,8 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
1016
1017
  acc[column.key] = query.text;
1017
1018
  }
1018
1019
  else if (uniqueSearch[column.key] &&
1019
- uniqeValues.toString() !==
1020
- uniqueSearch[column.key].toString()) {
1020
+ uniqeValues.join("") !==
1021
+ ((_a = uniqueSearch[column.key]) === null || _a === void 0 ? void 0 : _a.join(""))) {
1021
1022
  acc[column.key] = uniqueSearch[column.key].join(",");
1022
1023
  }
1023
1024
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.30",
3
+ "version": "1.2.32",
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.mjs",