@megha-ui/react 1.2.321 → 1.2.322

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.
@@ -54,7 +54,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
54
54
  height: "max-content",
55
55
  boxSizing: "border-box", // Include padding and borders in the element's total width and height
56
56
  backgroundColor: "var(--summary-bg)",
57
- }, onClick: () => updateRowOpened(item.groupedValue), children: [(_a = item.groupedKey) === null || _a === void 0 ? void 0 : _a.split(">").map((columnKey, index) => {
57
+ }, onClick: () => updateRowOpened(item.groupedValue), children: [(_a = item.groupedKey) === null || _a === void 0 ? void 0 : _a.split(">").flatMap(item => item.split("+")).map((columnKey, index) => {
58
58
  const column = gridColumns.find((column) => column.key === columnKey);
59
59
  if (column) {
60
60
  return (_jsxs("div", { style: {
@@ -86,8 +86,8 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
86
86
  }, children: rowOpened.includes(item.groupedValue || "")
87
87
  ? "-"
88
88
  : "+" }), _jsx("div", { children: (() => {
89
- const keys = (item.groupedKey || "").split(">");
90
- const vals = (item.groupedValue || "").split(">");
89
+ const keys = (item.groupedKey || "").split(">").flatMap(item => item.split("+"));
90
+ const vals = (item.groupedValue || "").split(">").flatMap(item => item.split("+"));
91
91
  const idx = keys.indexOf(columnKey);
92
92
  const display = idx > -1 ? vals[idx] : "";
93
93
  if (display) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.321",
3
+ "version": "1.2.322",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",