@megha-ui/react 1.2.740 → 1.2.743

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,6 +90,9 @@ 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]);
93
96
  useEffect(() => {
94
97
  setSummariseAvailable(isSummarise);
95
98
  }, [isSummarise]);
@@ -118,7 +121,8 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
118
121
  else if (values.every((item) => typeof item === "number")) {
119
122
  type = "number";
120
123
  }
121
- else if (values.every((item) => typeof item === "string" && /^\d+$/.test(item.toString().trim()))) {
124
+ else if (values.every((item) => typeof item === "string" &&
125
+ /^\d+$/.test(item.toString().trim()))) {
122
126
  type = "number";
123
127
  }
124
128
  }
@@ -285,12 +289,12 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
285
289
  return true;
286
290
  case "after":
287
291
  if (!isNaN(new Date(query).getTime())) {
288
- return new Date(value).getTime() > new Date(query).getTime();
292
+ return (new Date(value).getTime() > new Date(query).getTime());
289
293
  }
290
294
  return true;
291
295
  case "before":
292
296
  if (!isNaN(new Date(query).getTime())) {
293
- return new Date(value).getTime() < new Date(query).getTime();
297
+ return (new Date(value).getTime() < new Date(query).getTime());
294
298
  }
295
299
  return true;
296
300
  case "between":
@@ -1502,7 +1506,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1502
1506
  .join(",")
1503
1507
  : [..._gridGroupBy.split(",").filter((item) => item), value].join(",");
1504
1508
  setGridGroupBy(_gridGroupBy);
1505
- updateGroupBy && updateGroupBy(_gridGroupBy);
1506
1509
  }, 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: {
1507
1510
  position: "sticky",
1508
1511
  width: "100%",
@@ -535,7 +535,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
535
535
  }, onClick: () => column.sortable && onSort(column), children: [_jsxs("div", { style: {
536
536
  display: "flex",
537
537
  alignItems: "center",
538
- }, children: [_jsx(Tooltip, { id: column.key }), _jsx("span", { "data-tooltip-id": column.key, "data-tooltip-content": "translations is missing for the display name", className: column.isFallBack ? "asterik" : "", children: column.label }), sortable && column.sortable && (_jsx("span", { style: {
538
+ }, children: [column.isFallBack && _jsx(Tooltip, { id: column.key }), _jsx("span", { "data-tooltip-id": column.key, "data-tooltip-content": "translations is missing for the display name", className: column.isFallBack ? "asterik" : "", children: column.label }), sortable && column.sortable && (_jsx("span", { style: {
539
539
  visibility: Object.keys(sortQueries).includes(column.key)
540
540
  ? "visible"
541
541
  : "hidden",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.740",
3
+ "version": "1.2.743",
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",