@addsign/moje-agenda-shared-lib 1.0.39 → 1.0.40
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.
|
@@ -21859,6 +21859,9 @@ function DataTableServer({
|
|
|
21859
21859
|
};
|
|
21860
21860
|
updateFilterOptions();
|
|
21861
21861
|
}, [columns, federationContext.apiClient]);
|
|
21862
|
+
const hasSomeColFilters = useMemo(() => {
|
|
21863
|
+
return columns.some((column) => !!column.filterParam);
|
|
21864
|
+
}, [columns]);
|
|
21862
21865
|
const requestSort = (sortParam) => {
|
|
21863
21866
|
setSortConfig((prevSortConfig) => {
|
|
21864
21867
|
if ((prevSortConfig == null ? void 0 : prevSortConfig.sortParam) === sortParam && prevSortConfig.direction !== null) {
|
|
@@ -22037,7 +22040,7 @@ function DataTableServer({
|
|
|
22037
22040
|
onExport: exportToXLSX
|
|
22038
22041
|
}
|
|
22039
22042
|
),
|
|
22040
|
-
/* @__PURE__ */ jsxs(
|
|
22043
|
+
hasSomeColFilters && /* @__PURE__ */ jsxs(
|
|
22041
22044
|
"div",
|
|
22042
22045
|
{
|
|
22043
22046
|
className: "flex items-center text-xl h-full p-3 cursor-pointer text-gray-500 hover:text-black",
|