@megha-ui/react 1.2.587 → 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.
@@ -224,7 +224,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
224
224
  case "doesNotEqual":
225
225
  return !queryData.includes(value.toLowerCase());
226
226
  case "startsWith":
227
- console.log({ value, query });
228
227
  return value.toLowerCase().startsWith(query.toLowerCase());
229
228
  case "endsWith":
230
229
  return value.toLowerCase().endsWith(query.toLowerCase());
@@ -326,6 +325,10 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
326
325
  : "";
327
326
  return value;
328
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
+ }, {}))));
329
332
  if (globalSearchOp === "and") {
330
333
  return query.every((term) => rowValues.some((value) => value.includes(term)));
331
334
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.587",
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",