@megha-ui/react 1.2.743 → 1.2.744

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.
@@ -90,9 +90,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
90
90
  return gridColumns.filter((col) => col.fixedFilter && col.fixedFilter !== "");
91
91
  }, [gridColumns]);
92
92
  const [fixedFilterValues, setFixedFilterValues] = useState({});
93
- useEffect(() => {
94
- updateGroupBy && updateGroupBy(gridGroupBy);
95
- }, [gridGroupBy]);
96
93
  useEffect(() => {
97
94
  setSummariseAvailable(isSummarise);
98
95
  }, [isSummarise]);
@@ -1473,6 +1470,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1473
1470
  }, children: [_jsx("div", { title: "Clear All Groups", onClick: () => {
1474
1471
  // setChanged((prev) => [...prev, "groupBy"]);
1475
1472
  setGridGroupBy("");
1473
+ updateGroupBy && updateGroupBy("");
1476
1474
  }, style: { cursor: "pointer", marginRight: "0.5rem" }, children: _jsx(MdGroupOff, { size: 18 }) }), gridGroupBy.split(",").map((chip) => {
1477
1475
  const column = columns.find((item) => item.key === chip);
1478
1476
  return (_jsxs("div", { style: {
@@ -1486,10 +1484,17 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1486
1484
  display: "inline-block",
1487
1485
  cursor: "pointer",
1488
1486
  marginLeft: "0.5rem",
1489
- }, onClick: () => setGridGroupBy((prev) => prev
1490
- .split(",")
1491
- .filter((item) => item !== chip)
1492
- .join(",")), children: "\u00D7" })] }, chip));
1487
+ }, onClick: () => {
1488
+ setGridGroupBy(gridGroupBy
1489
+ .split(",")
1490
+ .filter((item) => item !== chip)
1491
+ .join(","));
1492
+ updateGroupBy &&
1493
+ updateGroupBy(gridGroupBy
1494
+ .split(",")
1495
+ .filter((item) => item !== chip)
1496
+ .join(","));
1497
+ }, children: "\u00D7" })] }, chip));
1493
1498
  })] }))] }), _jsxs("div", { id: `grid-content`, style: {
1494
1499
  display: "block",
1495
1500
  border: gridBorder ? "1px solid #f0f0f0" : "none",
@@ -1506,6 +1511,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1506
1511
  .join(",")
1507
1512
  : [..._gridGroupBy.split(",").filter((item) => item), value].join(",");
1508
1513
  setGridGroupBy(_gridGroupBy);
1514
+ updateGroupBy && updateGroupBy(_gridGroupBy);
1509
1515
  }, headerDropdownIndex: headerDropdownIndex, updateGridColumns: updateGridColumns, setGridColumns: setGridColumns, widthUnits: widthUnits, gridData: filteredData, checkboxWrapper: checkboxWrapper, onFilter: onFilter, setUniqueSearch: setUniqueSearch, uniqueSearch: uniqueSearch, hugColumnWidths: columnWidths, menuVisible: menuVisible, setMenuVisible: setMenuVisible, dropdownVisible: dropdownVisible, actionsKey: actionsKey, setDropdownVisible: setDropdownVisible, columnSearchOutside: columnSearchOutside, locale: locale, formatOptions: formatOptions }), hugLoading && (_jsx("div", { style: {
1510
1516
  position: "sticky",
1511
1517
  width: "100%",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.743",
3
+ "version": "1.2.744",
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",