@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}
|
|
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