@megha-ui/react 1.3.121 → 1.3.123
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.
|
@@ -1014,6 +1014,12 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1014
1014
|
return item;
|
|
1015
1015
|
}));
|
|
1016
1016
|
};
|
|
1017
|
+
const normalizeFixedFilters = (filters) => {
|
|
1018
|
+
return Object.entries(filters)
|
|
1019
|
+
.map(([key, values]) => `${key}:${[...values].sort().join(",")}`)
|
|
1020
|
+
.sort()
|
|
1021
|
+
.join("|");
|
|
1022
|
+
};
|
|
1017
1023
|
const updateRowOpened = (key) => {
|
|
1018
1024
|
let updatedRowOpened = rowOpened;
|
|
1019
1025
|
if (updatedRowOpened.includes(key)) {
|
|
@@ -1223,12 +1229,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1223
1229
|
});
|
|
1224
1230
|
setSearchQueries((prev) => (Object.assign(Object.assign({}, prev), filterObj)));
|
|
1225
1231
|
};
|
|
1226
|
-
const normalizeFixedFilters = (filters) => {
|
|
1227
|
-
return Object.entries(filters)
|
|
1228
|
-
.map(([key, values]) => `${key}:${[...values].sort().join(",")}`)
|
|
1229
|
-
.sort()
|
|
1230
|
-
.join("|");
|
|
1231
|
-
};
|
|
1232
1232
|
const sortDetails = useMemo(() => {
|
|
1233
1233
|
const sortColumn = gridColumns.reduce((acc, column) => {
|
|
1234
1234
|
const query = sortQueries === null || sortQueries === void 0 ? void 0 : sortQueries[column.key];
|
|
@@ -95,9 +95,9 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
|
|
|
95
95
|
}
|
|
96
96
|
setMenuVisible("");
|
|
97
97
|
setMenuPosition(null);
|
|
98
|
-
setSearchOpsPosition(null);
|
|
99
98
|
if (activeSearchColumn === "") {
|
|
100
99
|
setDropdownVisible("");
|
|
100
|
+
setSearchOpsPosition(null);
|
|
101
101
|
}
|
|
102
102
|
if (!target.closest(".column-search-outside-wrapper")) {
|
|
103
103
|
setActiveSearchColumn(null);
|
package/package.json
CHANGED