@megha-ui/react 1.2.377 → 1.2.379
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.
|
@@ -135,6 +135,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
135
135
|
return filterValue.includes(cellValue);
|
|
136
136
|
})
|
|
137
137
|
: true);
|
|
138
|
+
console.log({ searchQueries, "SearchOp": searchOp });
|
|
138
139
|
_filteredData = _filteredData.filter((item) => searchOp === "and"
|
|
139
140
|
? filterColumns.every((column) => {
|
|
140
141
|
var _a, _b, _c;
|
|
@@ -147,9 +148,9 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
147
148
|
const regex = createRegexFromWildcard(query);
|
|
148
149
|
return regex.test(value);
|
|
149
150
|
}
|
|
151
|
+
console.log({ value, query });
|
|
150
152
|
switch ((_c = searchQueries[column.key]) === null || _c === void 0 ? void 0 : _c.type) {
|
|
151
153
|
case "contains":
|
|
152
|
-
console.log({ value, query });
|
|
153
154
|
return value.toLowerCase().includes(query.toLowerCase());
|
|
154
155
|
case "doesNotContain":
|
|
155
156
|
return !value.toLowerCase().includes(query.toLowerCase());
|
|
@@ -225,9 +226,9 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
225
226
|
const regex = createRegexFromWildcard(query);
|
|
226
227
|
return regex.test(value);
|
|
227
228
|
}
|
|
229
|
+
console.log({ value, query });
|
|
228
230
|
switch ((_c = searchQueries[column.key]) === null || _c === void 0 ? void 0 : _c.type) {
|
|
229
231
|
case "contains":
|
|
230
|
-
console.log({ value, query });
|
|
231
232
|
return value.toLowerCase().includes(query.toLowerCase());
|
|
232
233
|
case "doesNotContain":
|
|
233
234
|
return !value.toLowerCase().includes(query.toLowerCase());
|
package/package.json
CHANGED