@megha-ui/react 1.2.741 → 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" &&
|
|
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%",
|
package/package.json
CHANGED