@megha-ui/react 1.2.344 → 1.2.346
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.
|
@@ -44,6 +44,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
44
44
|
})
|
|
45
45
|
.map((item, gIndex) => {
|
|
46
46
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
47
|
+
console.log({ item });
|
|
47
48
|
if (gIndex >= startIndex && gIndex <= endIndex)
|
|
48
49
|
return item.type === "main" ? (_jsxs("div", { style: {
|
|
49
50
|
width: "100%",
|
|
@@ -67,8 +68,6 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
67
68
|
flex: widthMode === "auto" ? 1 : undefined,
|
|
68
69
|
flexGrow: widthMode === "auto" ? 1 : 0,
|
|
69
70
|
flexShrink: widthMode === "auto" ? 1 : 0,
|
|
70
|
-
display: "flex",
|
|
71
|
-
alignItems: "center",
|
|
72
71
|
padding: "0.5rem",
|
|
73
72
|
}, className: `column index-${columnKey}`, children: [index === 0 && (_jsx("span", { style: {
|
|
74
73
|
fontSize: "inherit",
|
|
@@ -111,8 +110,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
111
110
|
else if (display &&
|
|
112
111
|
compositeIndex === compositeKeys.length - 1 &&
|
|
113
112
|
index ===
|
|
114
|
-
((_a = item.groupedKey) === null || _a === void 0 ? void 0 : _a.split(">").flatMap((item) => item.split("+")).length) -
|
|
115
|
-
1) {
|
|
113
|
+
((_a = item.groupedKey) === null || _a === void 0 ? void 0 : _a.split(">").flatMap((item) => item.split("+")).length) - 1) {
|
|
116
114
|
return `${display} (${item === null || item === void 0 ? void 0 : item.count})`;
|
|
117
115
|
}
|
|
118
116
|
if (compositeKeys.includes(item.key) ||
|
package/package.json
CHANGED