@megha-ui/react 1.2.778 → 1.2.780

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.
@@ -1385,13 +1385,26 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1385
1385
  : [];
1386
1386
  let options = [
1387
1387
  ...data
1388
- .filter((item) => item[column.key])
1388
+ .filter((item) => {
1389
+ var _a, _b, _c, _d;
1390
+ const arrayValue = (_b = (_a = item[column.key]) === null || _a === void 0 ? void 0 : _a.isArrayString) !== null && _b !== void 0 ? _b : false;
1391
+ if (!arrayValue &&
1392
+ ((_d = (_c = item === null || item === void 0 ? void 0 : item[column.key]) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.toString().includes(">>"))) {
1393
+ return false;
1394
+ }
1395
+ return item[column.key];
1396
+ })
1389
1397
  .map((data) => {
1390
- var _a;
1398
+ var _a, _b, _c;
1399
+ const arrayValue = (_b = (_a = data[column.key]) === null || _a === void 0 ? void 0 : _a.isArrayString) !== null && _b !== void 0 ? _b : false;
1400
+ if (arrayValue) {
1401
+ return data[column.key].value.toString().split(">>");
1402
+ }
1391
1403
  return data[column.key] && data[column.key].value
1392
- ? (_a = data[column.key].value) === null || _a === void 0 ? void 0 : _a.toString()
1404
+ ? (_c = data[column.key].value) === null || _c === void 0 ? void 0 : _c.toString()
1393
1405
  : "";
1394
- }),
1406
+ })
1407
+ .flatMap((ite) => ite),
1395
1408
  ].sort((a, b) => {
1396
1409
  var _a, _b;
1397
1410
  return comparator(a, b, (_a = column.dataType) !== null && _a !== void 0 ? _a : "", (_b = column.fixedFilterOrder) !== null && _b !== void 0 ? _b : "asc");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.778",
3
+ "version": "1.2.780",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",