@megha-ui/react 1.2.720 → 1.2.721

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.
@@ -506,7 +506,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
506
506
  }
507
507
  break;
508
508
  }
509
- const _columnKey = _groupedKeys.length > 1 ? `${groupedValue}-${columnKey}` : columnKey;
509
+ const _columnKey = _groupedKeys.length > 1 ? `${groupedValue}>>${columnKey}` : columnKey;
510
510
  if (newSummariseDetails[_columnKey]) {
511
511
  newSummariseDetails = Object.assign(Object.assign({}, newSummariseDetails), { [_columnKey]: Object.assign(Object.assign({}, newSummariseDetails[_columnKey]), { type, [type]: value }) });
512
512
  }
@@ -8,6 +8,9 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
8
8
  .flatMap((g) => g.split("+").filter((k) => k)), [groupBy]);
9
9
  const handleCalculateSelect = (_columnKey, type) => {
10
10
  let columnKey = _columnKey;
11
+ if (columnKey.includes(">>")) {
12
+ columnKey = columnKey.split(">>")[1];
13
+ }
11
14
  const _summariseKeys = Object.assign(Object.assign({}, summariseKeys), { [columnKey]: type });
12
15
  recalculate(_summariseKeys);
13
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.720",
3
+ "version": "1.2.721",
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",