@megha-ui/react 1.2.588 → 1.2.589

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.
@@ -165,9 +165,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
165
165
  const value = item[column.key] && item[column.key].value
166
166
  ? (_b = item[column.key].value) === null || _b === void 0 ? void 0 : _b.toString()
167
167
  : "";
168
- if (query) {
169
- console.log(_filteredData.filter(item => item === null || item === void 0 ? void 0 : item[column.key].value));
170
- }
171
168
  if (query.includes("*") || query.includes("?")) {
172
169
  const regex = createRegexFromWildcard(query);
173
170
  return regex.test(value);
@@ -328,6 +325,10 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
328
325
  : "";
329
326
  return value;
330
327
  }));
328
+ console.log(_filteredData.map(item => (Object.keys(item).filter(key => Object.keys(searchQueries).includes(key)).reduce((acc, key) => {
329
+ acc[key] = item[key];
330
+ return acc;
331
+ }, {}))));
331
332
  if (globalSearchOp === "and") {
332
333
  return query.every((term) => rowValues.some((value) => value.includes(term)));
333
334
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.588",
3
+ "version": "1.2.589",
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",