@megha-ui/react 1.2.422 → 1.2.424
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.
|
@@ -149,6 +149,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
149
149
|
return filterValue.includes(cellValue);
|
|
150
150
|
})
|
|
151
151
|
: true);
|
|
152
|
+
console.log(searchOp, "searchOp");
|
|
152
153
|
_filteredData = _filteredData.filter((item) => searchOp === "and"
|
|
153
154
|
? filterColumns.every((column) => {
|
|
154
155
|
var _a, _b, _c;
|
|
@@ -228,9 +229,9 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
228
229
|
return true;
|
|
229
230
|
}
|
|
230
231
|
})
|
|
231
|
-
: filterColumns.some((column) => {
|
|
232
|
+
: filterColumns.filter(column => { var _a; return (_a = searchQueries[column.key]) === null || _a === void 0 ? void 0 : _a.text; }).some((column) => {
|
|
232
233
|
var _a, _b, _c;
|
|
233
|
-
const query = (
|
|
234
|
+
const query = (_a = searchQueries[column.key]) === null || _a === void 0 ? void 0 : _a.text;
|
|
234
235
|
const queryData = query.toLowerCase().split(",");
|
|
235
236
|
const value = item[column.key] && item[column.key].value
|
|
236
237
|
? (_b = item[column.key].value) === null || _b === void 0 ? void 0 : _b.toString()
|
package/package.json
CHANGED