@megha-ui/react 1.2.340 → 1.2.342

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.
@@ -55,14 +55,6 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
55
55
  backgroundColor: "var(--summary-bg)",
56
56
  }, onClick: () => updateRowOpened(item.groupedValue), children: [(_a = item.groupedKey) === null || _a === void 0 ? void 0 : _a.split(">").flatMap((item) => item.split("+")).map((columnKey, index) => {
57
57
  const column = gridColumns.find((column) => column.key === columnKey);
58
- const compositeKeys = (item.groupedKey || "")
59
- .split(">")
60
- .filter((item) => item.includes("+"))
61
- .flatMap((item) => item.split("+"));
62
- const compositeValues = (item.groupedValue || "")
63
- .split(">")
64
- .filter((item) => item.includes("+"))
65
- .flatMap((item) => item.split("+"));
66
58
  if (column) {
67
59
  return (_jsxs("div", { style: {
68
60
  width: widthMode === "auto"
@@ -78,27 +70,39 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
78
70
  display: "flex",
79
71
  alignItems: "center",
80
72
  padding: "0.5rem",
81
- }, className: `column index-${columnKey}`, children: [compositeKeys.includes(item.key) &&
82
- item.key === columnKey && (_jsx("span", { style: {
83
- fontSize: "inherit",
84
- marginRight: "0.5rem",
85
- color: "var(--foreground)",
86
- background: "var(--disabled-bg)",
87
- width: "1rem",
88
- height: "1rem",
89
- flexGrow: 0,
90
- flexShrink: 0,
91
- borderRadius: 4,
92
- display: "flex",
93
- alignItems: "center",
94
- justifyContent: "center",
95
- }, children: rowOpened.includes(item.groupedValue || "")
96
- ? "-"
97
- : "+" })), _jsx("div", { children: (() => {
73
+ }, className: `column index-${columnKey}`, children: [item.key === columnKey ||
74
+ ((item.groupedKey || "")
75
+ .split(">")
76
+ .filter((item) => item.includes("+"))
77
+ .flatMap((item) => item.split("+"))
78
+ .includes(columnKey)) && (_jsx("span", { style: {
79
+ fontSize: "inherit",
80
+ marginRight: "0.5rem",
81
+ color: "var(--foreground)",
82
+ background: "var(--disabled-bg)",
83
+ width: "1rem",
84
+ height: "1rem",
85
+ flexGrow: 0,
86
+ flexShrink: 0,
87
+ borderRadius: 4,
88
+ display: "flex",
89
+ alignItems: "center",
90
+ justifyContent: "center",
91
+ }, children: rowOpened.includes(item.groupedValue || "")
92
+ ? "-"
93
+ : "+" })), _jsx("div", { children: (() => {
98
94
  var _a;
99
95
  const keys = (item.groupedKey || "").split(">");
100
96
  const vals = (item.groupedValue || "").split(">");
101
97
  const idx = keys.indexOf(columnKey);
98
+ const compositeKeys = (item.groupedKey || "")
99
+ .split(">")
100
+ .filter((item) => item.includes("+"))
101
+ .flatMap((item) => item.split("+"));
102
+ const compositeValues = (item.groupedValue || "")
103
+ .split(">")
104
+ .filter((item) => item.includes("+"))
105
+ .flatMap((item) => item.split("+"));
102
106
  const compositeIndex = compositeKeys.indexOf(columnKey);
103
107
  const display = idx > -1
104
108
  ? vals[idx]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.340",
3
+ "version": "1.2.342",
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",