@megha-ui/react 1.2.713 → 1.2.716
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.
|
@@ -390,8 +390,8 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
390
390
|
Object.keys(_summariseKeys).forEach((_columnKey) => {
|
|
391
391
|
const type = _summariseKeys[_columnKey];
|
|
392
392
|
let columnKey = _columnKey;
|
|
393
|
-
if (columnKey.includes("
|
|
394
|
-
columnKey = columnKey.split("
|
|
393
|
+
if (columnKey.includes(">>")) {
|
|
394
|
+
columnKey = columnKey.split(">>")[1];
|
|
395
395
|
}
|
|
396
396
|
const _groupedKeys = groupedKeys.length > 0
|
|
397
397
|
? groupedKeys
|
|
@@ -7,9 +7,10 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
|
|
|
7
7
|
.filter((g) => g)
|
|
8
8
|
.flatMap((g) => g.split("+").filter((k) => k)), [groupBy]);
|
|
9
9
|
const handleCalculateSelect = (_columnKey, type) => {
|
|
10
|
+
console.log("Selected calculate type:", type, "for column:", _columnKey);
|
|
10
11
|
let columnKey = _columnKey;
|
|
11
|
-
if (columnKey.includes("
|
|
12
|
-
columnKey = columnKey.split("
|
|
12
|
+
if (columnKey.includes(">>")) {
|
|
13
|
+
columnKey = columnKey.split(">>")[1];
|
|
13
14
|
}
|
|
14
15
|
const _summariseKeys = Object.assign(Object.assign({}, summariseKeys), { [columnKey]: type });
|
|
15
16
|
recalculate(_summariseKeys);
|
|
@@ -138,7 +139,7 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
|
|
|
138
139
|
var _a;
|
|
139
140
|
const column = columns.find((column) => column.key === _groupBy);
|
|
140
141
|
const columnKey = groupedData
|
|
141
|
-
? `${groupedData}
|
|
142
|
+
? `${groupedData}>>${column === null || column === void 0 ? void 0 : column.key}`
|
|
142
143
|
: column === null || column === void 0 ? void 0 : column.key;
|
|
143
144
|
return (_jsxs("div", { style: Object.assign(Object.assign({}, cellStyle), { position: "relative", width: widthMode === "auto"
|
|
144
145
|
? "auto"
|
package/package.json
CHANGED