@megha-ui/react 1.2.821 → 1.2.823
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.
|
@@ -53,11 +53,8 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
53
53
|
display: "flex",
|
|
54
54
|
alignItems: "center",
|
|
55
55
|
padding: "0.5rem",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
? "var(--row-header-bg)"
|
|
59
|
-
: "var(--row-bg)",
|
|
60
|
-
}, children: "--" }) }));
|
|
56
|
+
backgroundColor: "var(--summary-bg)",
|
|
57
|
+
}, className: `column index-${columnKey}`, onClick: () => updateRowOpened(item.groupedValue), children: _jsx("div", { children: "--" }) }));
|
|
61
58
|
}
|
|
62
59
|
return null;
|
|
63
60
|
}), _jsxs("div", { style: {
|
|
@@ -67,6 +64,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
|
|
|
67
64
|
background: "inherit",
|
|
68
65
|
cursor: "pointer",
|
|
69
66
|
padding: "0.5rem",
|
|
67
|
+
backgroundColor: "var(--summary-bg)",
|
|
70
68
|
}, className: `group-column ${item.key}`, onClick: () => updateRowOpened(item.groupedValue), children: [_jsx("span", { style: {
|
|
71
69
|
fontSize: "inherit",
|
|
72
70
|
marginRight: "0.5rem",
|
|
@@ -135,7 +135,7 @@ const NewSummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle,
|
|
|
135
135
|
const columnKey = groupedData
|
|
136
136
|
? `${groupedData}>>${column === null || column === void 0 ? void 0 : column.key}`
|
|
137
137
|
: column === null || column === void 0 ? void 0 : column.key;
|
|
138
|
-
return (_jsxs("div", { style: Object.assign(Object.assign({}, cellStyle), { position: "relative", padding: _groupBy ? "0.5rem" : 0 }), className: `column ${columnKey}-${(_a = summariseDetails[columnKey || ""]) === null || _a === void 0 ? void 0 : _a.type}`, children: [summariseDetails[columnKey || ""] &&
|
|
138
|
+
return (_jsxs("div", { style: Object.assign(Object.assign({}, cellStyle), { position: "relative", padding: _groupBy ? "0.5rem" : 0, background: "var(--row-header-bg)" }), className: `column ${columnKey}-${(_a = summariseDetails[columnKey || ""]) === null || _a === void 0 ? void 0 : _a.type}`, children: [summariseDetails[columnKey || ""] &&
|
|
139
139
|
summariseDetails[columnKey || ""].type ? (_jsxs("div", { style: {
|
|
140
140
|
display: "flex",
|
|
141
141
|
alignItems: "center",
|
|
@@ -163,7 +163,7 @@ const NewSummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle,
|
|
|
163
163
|
? `${groupedData}>>${column.key}`
|
|
164
164
|
: column.key;
|
|
165
165
|
if (!column.hidden) {
|
|
166
|
-
return (_jsxs("div", { className: `${sortable && column.sortable ? "sortable" : ""} ${column.showMenu ? "menu-true" : "menu-false"} ${`column-${column.key}`} ${columnKey}-${(_a = summariseDetails[columnKey]) === null || _a === void 0 ? void 0 : _a.type}`, style: Object.assign(Object.assign({}, cellStyle), { position: "relative", padding: "0.5rem", textAlign: "left", whiteSpace: "nowrap", textOverflow: "ellipsis", flex: widthMode === "auto" ? 1 : undefined, flexGrow: widthMode === "auto" ? 1 : 0, flexShrink: widthMode === "auto" ? 1 : 0, background: "
|
|
166
|
+
return (_jsxs("div", { className: `${sortable && column.sortable ? "sortable" : ""} ${column.showMenu ? "menu-true" : "menu-false"} ${`column-${column.key}`} ${columnKey}-${(_a = summariseDetails[columnKey]) === null || _a === void 0 ? void 0 : _a.type}`, style: Object.assign(Object.assign({}, cellStyle), { position: "relative", padding: "0.5rem", textAlign: "left", whiteSpace: "nowrap", textOverflow: "ellipsis", flex: widthMode === "auto" ? 1 : undefined, flexGrow: widthMode === "auto" ? 1 : 0, flexShrink: widthMode === "auto" ? 1 : 0, background: "var(--row-header-bg)" }), children: [summariseDetails[columnKey] &&
|
|
167
167
|
summariseDetails[columnKey].type ? (_jsxs("div", { style: {
|
|
168
168
|
display: "flex",
|
|
169
169
|
alignItems: "center",
|
package/package.json
CHANGED