@megha-ui/react 1.2.715 → 1.2.716

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.
@@ -390,8 +390,8 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
390
390
  Object.keys(_summariseKeys).forEach((_columnKey) => {
391
391
  const type = _summariseKeys[_columnKey];
392
392
  let columnKey = _columnKey;
393
- if (columnKey.includes("-")) {
394
- columnKey = columnKey.split("-")[1];
393
+ if (columnKey.includes(">>")) {
394
+ columnKey = columnKey.split(">>")[1];
395
395
  }
396
396
  const _groupedKeys = groupedKeys.length > 0
397
397
  ? groupedKeys
@@ -9,8 +9,8 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
9
9
  const handleCalculateSelect = (_columnKey, type) => {
10
10
  console.log("Selected calculate type:", type, "for column:", _columnKey);
11
11
  let columnKey = _columnKey;
12
- if (columnKey.includes("-")) {
13
- columnKey = columnKey.split("-")[1];
12
+ if (columnKey.includes(">>")) {
13
+ columnKey = columnKey.split(">>")[1];
14
14
  }
15
15
  const _summariseKeys = Object.assign(Object.assign({}, summariseKeys), { [columnKey]: type });
16
16
  recalculate(_summariseKeys);
@@ -139,7 +139,7 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
139
139
  var _a;
140
140
  const column = columns.find((column) => column.key === _groupBy);
141
141
  const columnKey = groupedData
142
- ? `${groupedData}-${column === null || column === void 0 ? void 0 : column.key}`
142
+ ? `${groupedData}>>${column === null || column === void 0 ? void 0 : column.key}`
143
143
  : column === null || column === void 0 ? void 0 : column.key;
144
144
  return (_jsxs("div", { style: Object.assign(Object.assign({}, cellStyle), { position: "relative", width: widthMode === "auto"
145
145
  ? "auto"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.715",
3
+ "version": "1.2.716",
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",