@megha-ui/react 1.2.356 → 1.2.358
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.
|
@@ -373,9 +373,8 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
373
373
|
const filterTokens = filterValue
|
|
374
374
|
? filterValue.split(">").filter(Boolean)
|
|
375
375
|
: [];
|
|
376
|
-
const expandedValueTokens =
|
|
376
|
+
const expandedValueTokens = filterTokens
|
|
377
377
|
.flatMap((tok) => tok.split("+").map((s) => s.trim()).filter(Boolean));
|
|
378
|
-
console.log({ filterTokens, expandedColumnTokens });
|
|
379
378
|
const filteredValues = filteredData
|
|
380
379
|
.filter((row) => {
|
|
381
380
|
var _a, _b, _c, _d;
|
|
@@ -386,7 +385,6 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
386
385
|
const col = expandedColumnTokens[i];
|
|
387
386
|
const value = (_c = (_b = (_a = row[col]) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "";
|
|
388
387
|
const expected = (_d = expandedValueTokens[i]) !== null && _d !== void 0 ? _d : "";
|
|
389
|
-
console.log({ expected, value });
|
|
390
388
|
if (value !== expected)
|
|
391
389
|
return false;
|
|
392
390
|
}
|
package/package.json
CHANGED