@megha-ui/react 1.2.614 → 1.2.616
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,7 +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 });
|
|
170
|
+
console.log("fixed: ", { _filteredData, fixedFilterValues });
|
|
171
171
|
_filteredData = _filteredData.filter((item) => {
|
|
172
172
|
return searchOp === "and"
|
|
173
173
|
? filterColumns.every((column) => {
|
|
@@ -327,7 +327,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
|
-
console.log("searchQueries: ", { _filteredData });
|
|
330
|
+
console.log("searchQueries: ", { _filteredData, searchQueries, searchOp });
|
|
331
331
|
_filteredData = _filteredData.filter((item) => {
|
|
332
332
|
const query = (globalInputSearch || "").toLowerCase().split(",");
|
|
333
333
|
const rowValues = [];
|
|
@@ -345,7 +345,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
345
345
|
return query.some((term) => rowValues.some((value) => value.includes(term)));
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
console.log("globalSearch: ", { _filteredData });
|
|
348
|
+
console.log("globalSearch: ", { _filteredData, globalInputSearch });
|
|
349
349
|
_filteredData = _filteredData.filter((item) => filterColumns.some((column) => {
|
|
350
350
|
var _a;
|
|
351
351
|
const query = inputValue || "";
|
|
@@ -354,7 +354,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
354
354
|
: "";
|
|
355
355
|
return value.toLowerCase().includes(query.toLowerCase());
|
|
356
356
|
}));
|
|
357
|
-
console.log("suggestion: ", { _filteredData });
|
|
357
|
+
console.log("suggestion: ", { _filteredData, inputValue });
|
|
358
358
|
if (hideDuplicates) {
|
|
359
359
|
const visibleColumns = filterColumns.filter((col) => !col.hidden && col.key !== actionsKey);
|
|
360
360
|
if (visibleColumns.length > 0) {
|
|
@@ -1238,7 +1238,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1238
1238
|
setUniqueSearch(filterData.uniqueSearch);
|
|
1239
1239
|
setGlobalInputSearch(filterData.globalInputSearch);
|
|
1240
1240
|
setGlobalSearchOp((filterData === null || filterData === void 0 ? void 0 : filterData.globalSearchOp) || "and");
|
|
1241
|
-
setSearchOp((filterData === null || filterData === void 0 ? void 0 : filterData.searchOp) || "
|
|
1241
|
+
setSearchOp((filterData === null || filterData === void 0 ? void 0 : filterData.searchOp) || "and");
|
|
1242
1242
|
setSearchQueries(filterData.searchQueries);
|
|
1243
1243
|
setFixedFilterValues(filterData.fixedFilterValues || {});
|
|
1244
1244
|
}
|
package/package.json
CHANGED