@megha-ui/react 1.2.613 → 1.2.615

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.
@@ -167,6 +167,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
167
167
  return filterValue.includes(cellValue);
168
168
  })
169
169
  : true);
170
+ console.log("fixed: ", { _filteredData, fixedFilterValues });
170
171
  _filteredData = _filteredData.filter((item) => {
171
172
  return searchOp === "and"
172
173
  ? filterColumns.every((column) => {
@@ -326,6 +327,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
326
327
  }
327
328
  });
328
329
  });
330
+ console.log("searchQueries: ", { _filteredData, searchQueries, searchOp });
329
331
  _filteredData = _filteredData.filter((item) => {
330
332
  const query = (globalInputSearch || "").toLowerCase().split(",");
331
333
  const rowValues = [];
@@ -343,6 +345,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
343
345
  return query.some((term) => rowValues.some((value) => value.includes(term)));
344
346
  }
345
347
  });
348
+ console.log("globalSearch: ", { _filteredData, globalInputSearch });
346
349
  _filteredData = _filteredData.filter((item) => filterColumns.some((column) => {
347
350
  var _a;
348
351
  const query = inputValue || "";
@@ -351,6 +354,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
351
354
  : "";
352
355
  return value.toLowerCase().includes(query.toLowerCase());
353
356
  }));
357
+ console.log("suggestion: ", { _filteredData, inputValue });
354
358
  if (hideDuplicates) {
355
359
  const visibleColumns = filterColumns.filter((col) => !col.hidden && col.key !== actionsKey);
356
360
  if (visibleColumns.length > 0) {
@@ -535,7 +539,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
535
539
  };
536
540
  const { sortedData, handleSort, sortQueries, setSortQueries } = useSort(filteredData, gridColumns, uniqueSearch, multiSorting, withAscii);
537
541
  const { paginatedData, currentPage, handleChangePage, handleChangeRowsPerPage, rowsPerPage, } = usePagination(sortedData, defaultRowsPerPage);
538
- console.log({ data, filteredData, sortedData, paginatedData });
542
+ console.log({ filteredData, sortedData, paginatedData });
539
543
  useEffect(() => {
540
544
  const keys = Object.keys(summariseKeys);
541
545
  if (keys.length > 0 && summariseAvailable) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.613",
3
+ "version": "1.2.615",
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",