@megha-ui/react 1.2.588 → 1.2.590

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.
@@ -128,8 +128,11 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
128
128
  var _a, _b;
129
129
  let isArrayString = false;
130
130
  if (isMultipleChips) {
131
- const columnRowData = data.map(row => { var _a, _b; return ((_b = (_a = row === null || row === void 0 ? void 0 : row[col.key]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : ""); }).filter(item => item);
132
- if (columnRowData.length > 0 && columnRowData.some(item => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
131
+ const columnRowData = data
132
+ .map((row) => { var _a, _b; return (_b = (_a = row === null || row === void 0 ? void 0 : row[col.key]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : ""; })
133
+ .filter((item) => item);
134
+ if (columnRowData.length > 0 &&
135
+ columnRowData.some((item) => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
133
136
  isArrayString = true;
134
137
  }
135
138
  }
@@ -165,9 +168,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
165
168
  const value = item[column.key] && item[column.key].value
166
169
  ? (_b = item[column.key].value) === null || _b === void 0 ? void 0 : _b.toString()
167
170
  : "";
168
- if (query) {
169
- console.log(_filteredData.filter(item => item === null || item === void 0 ? void 0 : item[column.key].value));
170
- }
171
171
  if (query.includes("*") || query.includes("?")) {
172
172
  const regex = createRegexFromWildcard(query);
173
173
  return regex.test(value);
@@ -358,6 +358,12 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
358
358
  });
359
359
  }
360
360
  }
361
+ console.log(_filteredData.map((item) => Object.keys(item)
362
+ .filter((key) => Object.keys(searchQueries).includes(key))
363
+ .reduce((acc, key) => {
364
+ acc[key] = item[key];
365
+ return acc;
366
+ }, {})));
361
367
  return _filteredData;
362
368
  }, [
363
369
  data,
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.590",
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",