@megha-ui/react 1.2.717 → 1.2.719

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.
@@ -386,7 +386,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
386
386
  const recalculate = (_summariseKeys) => {
387
387
  const filteredData = (paginate && gridGroupBy === "") ? paginatedData : sortedData;
388
388
  let newSummariseDetails = summariseDetails;
389
- console.log("Recalculating summarise details...", _summariseKeys);
390
389
  Object.keys(_summariseKeys).forEach((_columnKey) => {
391
390
  const type = _summariseKeys[_columnKey];
392
391
  let columnKey = _columnKey;
@@ -396,6 +395,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
396
395
  const _groupedKeys = groupedKeys.length > 0
397
396
  ? groupedKeys
398
397
  : [{ groupedKey: "", groupedValue: columnKey }];
398
+ console.log("Using grouped keys:", _groupedKeys);
399
399
  _groupedKeys.forEach((grouped) => {
400
400
  const { groupedKey, groupedValue } = grouped;
401
401
  const filterValue = _groupedKeys.length > 1 ? groupedValue : "";
@@ -7,7 +7,6 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
7
7
  .filter((g) => g)
8
8
  .flatMap((g) => g.split("+").filter((k) => k)), [groupBy]);
9
9
  const handleCalculateSelect = (_columnKey, type) => {
10
- console.log("Selected calculate type:", type, "for column:", _columnKey);
11
10
  let columnKey = _columnKey;
12
11
  if (columnKey.includes(">>")) {
13
12
  columnKey = columnKey.split(">>")[1];
@@ -172,9 +171,8 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
172
171
  .map((column) => {
173
172
  var _a;
174
173
  const columnKey = groupedData
175
- ? `${groupedData}-${column.key}`
174
+ ? `${groupedData}>>${column.key}`
176
175
  : column.key;
177
- console.log("Rendering column:", columnKey, column);
178
176
  if (!column.hidden) {
179
177
  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", width: columnWidths[`column-${column.key}`]
180
178
  ? columnWidths[`column-${column.key}`]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.717",
3
+ "version": "1.2.719",
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",