@megha-ui/react 1.2.274 → 1.2.276
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.
|
@@ -678,7 +678,6 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
678
678
|
.filter((s) => s);
|
|
679
679
|
const groupedArray = sets.length ? groupByMultipleKeys(sortedData, sets) : [];
|
|
680
680
|
const flatGroupedArray = flattenGroupedData(groupedArray, 1);
|
|
681
|
-
console.log({ flatGroupedArray });
|
|
682
681
|
setGroupedData(flatGroupedArray);
|
|
683
682
|
const grouped = flatGroupedArray
|
|
684
683
|
.filter((item) => item.type === "main")
|
|
@@ -65,12 +65,11 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
65
65
|
: columnWidths[`column-${columnKey}`]
|
|
66
66
|
? columnWidths[`column-${columnKey}`]
|
|
67
67
|
: "fit-content",
|
|
68
|
+
flex: widthMode === "auto" ? 1 : undefined,
|
|
69
|
+
flexGrow: widthMode === "auto" ? 1 : 0,
|
|
70
|
+
flexShrink: widthMode === "auto" ? 1 : 0,
|
|
68
71
|
padding: "0.5rem",
|
|
69
|
-
}, className: `column index-${columnKey}`, children: _jsx("div", {
|
|
70
|
-
color: alternateRowColor && (gIndex + 1) % 2 === 0
|
|
71
|
-
? "var(--row-header-bg)"
|
|
72
|
-
: "var(--row-bg)",
|
|
73
|
-
}, children: "--" }) }));
|
|
72
|
+
}, className: `column index-${columnKey}`, children: _jsx("div", {}) }));
|
|
74
73
|
}
|
|
75
74
|
return null;
|
|
76
75
|
}), _jsxs("div", { style: {
|
package/package.json
CHANGED