@megha-ui/react 1.2.378 → 1.2.380
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.
|
@@ -148,9 +148,9 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
148
148
|
const regex = createRegexFromWildcard(query);
|
|
149
149
|
return regex.test(value);
|
|
150
150
|
}
|
|
151
|
+
console.log({ value, query, [column.key]: searchQueries[column.key] });
|
|
151
152
|
switch ((_c = searchQueries[column.key]) === null || _c === void 0 ? void 0 : _c.type) {
|
|
152
153
|
case "contains":
|
|
153
|
-
console.log({ value, query });
|
|
154
154
|
return value.toLowerCase().includes(query.toLowerCase());
|
|
155
155
|
case "doesNotContain":
|
|
156
156
|
return !value.toLowerCase().includes(query.toLowerCase());
|
|
@@ -226,9 +226,9 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
226
226
|
const regex = createRegexFromWildcard(query);
|
|
227
227
|
return regex.test(value);
|
|
228
228
|
}
|
|
229
|
+
console.log({ value, query });
|
|
229
230
|
switch ((_c = searchQueries[column.key]) === null || _c === void 0 ? void 0 : _c.type) {
|
|
230
231
|
case "contains":
|
|
231
|
-
console.log({ value, query });
|
|
232
232
|
return value.toLowerCase().includes(query.toLowerCase());
|
|
233
233
|
case "doesNotContain":
|
|
234
234
|
return !value.toLowerCase().includes(query.toLowerCase());
|
package/package.json
CHANGED