@megha-ui/react 1.2.342 → 1.2.344
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.
|
@@ -70,27 +70,22 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
70
70
|
display: "flex",
|
|
71
71
|
alignItems: "center",
|
|
72
72
|
padding: "0.5rem",
|
|
73
|
-
}, className: `column index-${columnKey}`, children: [
|
|
74
|
-
|
|
75
|
-
.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
alignItems: "center",
|
|
90
|
-
justifyContent: "center",
|
|
91
|
-
}, children: rowOpened.includes(item.groupedValue || "")
|
|
92
|
-
? "-"
|
|
93
|
-
: "+" })), _jsx("div", { children: (() => {
|
|
73
|
+
}, className: `column index-${columnKey}`, children: [index === 0 && (_jsx("span", { style: {
|
|
74
|
+
fontSize: "inherit",
|
|
75
|
+
marginRight: "0.5rem",
|
|
76
|
+
color: "var(--foreground)",
|
|
77
|
+
background: "var(--disabled-bg)",
|
|
78
|
+
width: "1rem",
|
|
79
|
+
height: "1rem",
|
|
80
|
+
flexGrow: 0,
|
|
81
|
+
flexShrink: 0,
|
|
82
|
+
borderRadius: 4,
|
|
83
|
+
display: "flex",
|
|
84
|
+
alignItems: "center",
|
|
85
|
+
justifyContent: "center",
|
|
86
|
+
}, children: rowOpened.includes(item.groupedValue || "")
|
|
87
|
+
? "-"
|
|
88
|
+
: "+" })), _jsx("div", { children: (() => {
|
|
94
89
|
var _a;
|
|
95
90
|
const keys = (item.groupedKey || "").split(">");
|
|
96
91
|
const vals = (item.groupedValue || "").split(">");
|
|
@@ -109,6 +104,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
109
104
|
: compositeIndex > -1
|
|
110
105
|
? compositeValues[compositeIndex]
|
|
111
106
|
: "";
|
|
107
|
+
console.log({ compositeIndex, idx, columnKey });
|
|
112
108
|
if (display && idx === keys.length - 1) {
|
|
113
109
|
return `${display} (${item === null || item === void 0 ? void 0 : item.count})`;
|
|
114
110
|
}
|
package/package.json
CHANGED