@addsign/moje-agenda-shared-lib 2.0.46 → 2.0.48

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.
@@ -22033,10 +22033,25 @@ function DataTableServer({
22033
22033
  };
22034
22034
  const exportToXLSX = useCallback(() => {
22035
22035
  setIsLoading(true);
22036
+ const filteredMergedFilters = Object.entries(mergedFilters || {}).reduce(
22037
+ (acc, [key, value]) => {
22038
+ if (value === null || value === "") {
22039
+ return acc;
22040
+ }
22041
+ if (Array.isArray(value)) {
22042
+ if (value.length > 0) {
22043
+ acc[key] = value.join(",");
22044
+ }
22045
+ return acc;
22046
+ }
22047
+ acc[key] = value;
22048
+ return acc;
22049
+ },
22050
+ {}
22051
+ );
22036
22052
  federationContext.apiClient.get(url, {
22037
22053
  params: {
22038
- ...filters,
22039
- ...showColFilters ? columnFilters : {},
22054
+ ...filteredMergedFilters,
22040
22055
  pageSize: 1e6,
22041
22056
  page: 0,
22042
22057
  sortBy: sortConfig == null ? void 0 : sortConfig.sortParam,
@@ -22108,7 +22123,7 @@ function DataTableServer({
22108
22123
  setIsLoading,
22109
22124
  federationContext.apiClient,
22110
22125
  url,
22111
- filters,
22126
+ mergedFilters,
22112
22127
  showColFilters,
22113
22128
  columnFilters,
22114
22129
  sortConfig,
@@ -22262,7 +22277,8 @@ function DataTableServer({
22262
22277
  disabled: Object.keys(
22263
22278
  filters || {}
22264
22279
  ).includes(String(filterParam)),
22265
- variant: "secondary"
22280
+ variant: "secondary",
22281
+ maxCount: 0
22266
22282
  }
22267
22283
  ) : filterType === "dateRange" ? /* @__PURE__ */ jsx(
22268
22284
  DateRangeField,
@@ -22353,7 +22369,7 @@ function DataTableServer({
22353
22369
  "td",
22354
22370
  {
22355
22371
  onClick: rowAction ? () => rowAction(item) : void 0,
22356
- className: `px-3 py-2 text-gray-700 ${rowAction ? "cursor-pointer" : ""} ${colIndex === 0 ? "font-medium " : ""} ${classes || ""}`,
22372
+ className: `px-3 py-2 text-gray-800 ${rowAction ? "cursor-pointer" : ""} ${colIndex === 0 ? "font-bold " : ""} ${classes || ""}`,
22357
22373
  children: [
22358
22374
  render ? render(item) : "",
22359
22375
  actions && actions.filter((it) => {