@megha-ui/react 1.2.341 → 1.2.343
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.
|
@@ -55,14 +55,6 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
55
55
|
backgroundColor: "var(--summary-bg)",
|
|
56
56
|
}, onClick: () => updateRowOpened(item.groupedValue), children: [(_a = item.groupedKey) === null || _a === void 0 ? void 0 : _a.split(">").flatMap((item) => item.split("+")).map((columnKey, index) => {
|
|
57
57
|
const column = gridColumns.find((column) => column.key === columnKey);
|
|
58
|
-
const compositeKeys = (item.groupedKey || "")
|
|
59
|
-
.split(">")
|
|
60
|
-
.filter((item) => item.includes("+"))
|
|
61
|
-
.flatMap((item) => item.split("+"));
|
|
62
|
-
const compositeValues = (item.groupedValue || "")
|
|
63
|
-
.split(">")
|
|
64
|
-
.filter((item) => item.includes("+"))
|
|
65
|
-
.flatMap((item) => item.split("+"));
|
|
66
58
|
if (column) {
|
|
67
59
|
return (_jsxs("div", { style: {
|
|
68
60
|
width: widthMode === "auto"
|
|
@@ -78,8 +70,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
78
70
|
display: "flex",
|
|
79
71
|
alignItems: "center",
|
|
80
72
|
padding: "0.5rem",
|
|
81
|
-
}, className: `column index-${columnKey}`, children: [
|
|
82
|
-
item.key === columnKey && (_jsx("span", { style: {
|
|
73
|
+
}, className: `column index-${columnKey}`, children: [index === 0 && (_jsx("span", { style: {
|
|
83
74
|
fontSize: "inherit",
|
|
84
75
|
marginRight: "0.5rem",
|
|
85
76
|
color: "var(--foreground)",
|
|
@@ -99,6 +90,14 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
99
90
|
const keys = (item.groupedKey || "").split(">");
|
|
100
91
|
const vals = (item.groupedValue || "").split(">");
|
|
101
92
|
const idx = keys.indexOf(columnKey);
|
|
93
|
+
const compositeKeys = (item.groupedKey || "")
|
|
94
|
+
.split(">")
|
|
95
|
+
.filter((item) => item.includes("+"))
|
|
96
|
+
.flatMap((item) => item.split("+"));
|
|
97
|
+
const compositeValues = (item.groupedValue || "")
|
|
98
|
+
.split(">")
|
|
99
|
+
.filter((item) => item.includes("+"))
|
|
100
|
+
.flatMap((item) => item.split("+"));
|
|
102
101
|
const compositeIndex = compositeKeys.indexOf(columnKey);
|
|
103
102
|
const display = idx > -1
|
|
104
103
|
? vals[idx]
|
package/package.json
CHANGED