@megha-ui/react 1.2.373 → 1.2.374
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.
|
@@ -226,6 +226,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
226
226
|
}
|
|
227
227
|
switch ((_c = searchQueries[column.key]) === null || _c === void 0 ? void 0 : _c.type) {
|
|
228
228
|
case "contains":
|
|
229
|
+
console.log({ value, query });
|
|
229
230
|
return value.toLowerCase().includes(query.toLowerCase());
|
|
230
231
|
case "doesNotContain":
|
|
231
232
|
return !value.toLowerCase().includes(query.toLowerCase());
|
|
@@ -1122,7 +1123,6 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
1122
1123
|
return acc;
|
|
1123
1124
|
}, {});
|
|
1124
1125
|
const hasFilters = Object.keys(filterColumn).length > 0 || globalInputSearch !== "";
|
|
1125
|
-
console.log(searchQueries, "Search Queries");
|
|
1126
1126
|
return {
|
|
1127
1127
|
hasFilters,
|
|
1128
1128
|
filtersUpdated: Object.keys(filterColumn).sort().toString() !==
|
|
@@ -1420,10 +1420,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
1420
1420
|
? (_a = data[column.key].value) === null || _a === void 0 ? void 0 : _a.toString()
|
|
1421
1421
|
: "";
|
|
1422
1422
|
}),
|
|
1423
|
-
].sort((a, b) => {
|
|
1424
|
-
var _a, _b;
|
|
1425
|
-
return comparator(a, b, (_a = column.dataType) !== null && _a !== void 0 ? _a : "", (_b = column.fixedFilterOrder) !== null && _b !== void 0 ? _b : "asc");
|
|
1426
|
-
});
|
|
1423
|
+
].sort((a, b) => { var _a, _b; return comparator(a, b, (_a = column.dataType) !== null && _a !== void 0 ? _a : "", (_b = column.fixedFilterOrder) !== null && _b !== void 0 ? _b : "asc"); });
|
|
1427
1424
|
selectedValues.forEach((item) => {
|
|
1428
1425
|
if (!options.includes(item)) {
|
|
1429
1426
|
options.push(item);
|
package/package.json
CHANGED