@addsign/moje-agenda-shared-lib 1.0.28 → 1.0.29

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.
@@ -840,6 +840,9 @@ video {
840
840
  .h-\[300px\] {
841
841
  height: 300px;
842
842
  }
843
+ .h-\[440px\] {
844
+ height: 440px;
845
+ }
843
846
  .h-\[52px\] {
844
847
  height: 52px;
845
848
  }
@@ -873,6 +876,9 @@ video {
873
876
  .min-h-\[32px\] {
874
877
  min-height: 32px;
875
878
  }
879
+ .min-h-\[500px\] {
880
+ min-height: 500px;
881
+ }
876
882
  .\!w-\[100px\] {
877
883
  width: 100px !important;
878
884
  }
@@ -21704,7 +21704,7 @@ function DataTableServer({
21704
21704
  bulkAction,
21705
21705
  filters
21706
21706
  }) {
21707
- var _a, _b;
21707
+ var _a, _b, _c;
21708
21708
  const [itemsPerPageLocal, setItemsPerPageLocal] = useState();
21709
21709
  const federationContext = useFederationContext();
21710
21710
  const [data, setData] = useState();
@@ -21722,12 +21722,12 @@ function DataTableServer({
21722
21722
  const [showColFilters, setShowColFilters] = useState();
21723
21723
  const [sortConfig, setSortConfig] = useState(null);
21724
21724
  const createDataPageable = (response, itemsPerPage) => {
21725
- var _a2, _b2, _c, _d, _e, _f, _g;
21725
+ var _a2, _b2, _c2, _d, _e, _f, _g;
21726
21726
  return {
21727
21727
  content: response.data.content || response.data,
21728
21728
  empty: ((_a2 = response.data) == null ? void 0 : _a2.content) ? response.data.empty : true,
21729
21729
  first: ((_b2 = response.data) == null ? void 0 : _b2.content) ? response.data.first : true,
21730
- last: ((_c = response.data) == null ? void 0 : _c.content) ? response.data.last : true,
21730
+ last: ((_c2 = response.data) == null ? void 0 : _c2.content) ? response.data.last : true,
21731
21731
  number: ((_d = response.data) == null ? void 0 : _d.content) ? response.data.number : 0,
21732
21732
  numberOfElements: response.data.numberOfElements || response.data.length,
21733
21733
  size: ((_e = response.data) == null ? void 0 : _e.size) || itemsPerPage,
@@ -22064,7 +22064,7 @@ function DataTableServer({
22064
22064
  }
22065
22065
  ) })
22066
22066
  ] }),
22067
- /* @__PURE__ */ jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs("table", { className: "w-full leading-normal ", children: [
22067
+ /* @__PURE__ */ jsx("div", { className: "overflow-auto min-h-[500px]", children: /* @__PURE__ */ jsxs("table", { className: "w-full leading-normal", children: [
22068
22068
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
22069
22069
  data && bulkAction && /* @__PURE__ */ jsx("th", { className: "w-[20px] h-10 hover:bg-gray-200 bg-gray-50 font-medium text-xs text-center text-gray-600 cursor-pointer border-t border-b border-gray-200", children: /* @__PURE__ */ jsx("label", { className: "w-full h-full flex items-center justify-center cursor-pointer px-2", children: /* @__PURE__ */ jsx(
22070
22070
  "input",
@@ -22286,7 +22286,8 @@ function DataTableServer({
22286
22286
  "td-nodata"
22287
22287
  ) }, "tr-nodata")
22288
22288
  ] }),
22289
- isLoading && (!data || ((_b = data == null ? void 0 : data.content) == null ? void 0 : _b.length) === 0) && /* @__PURE__ */ jsx("tbody", { className: "relative", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-full py-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) })
22289
+ isLoading && (!data || ((_b = data == null ? void 0 : data.content) == null ? void 0 : _b.length) === 0) && /* @__PURE__ */ jsx("tbody", { className: "relative", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-full py-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) }),
22290
+ !isLoading && (!data || ((_c = data == null ? void 0 : data.content) == null ? void 0 : _c.length) === 0) && /* @__PURE__ */ jsx("tbody", { className: "relative h-[440px]", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-full py-2 text-gray-600 font-medium text-xs ", children: "Žádná data" }) }) }) })
22290
22291
  ] }, tableKey) }),
22291
22292
  /* @__PURE__ */ jsxs("div", { className: "w-full p-5 flex gap-5 justify-between", children: [
22292
22293
  /* @__PURE__ */ jsxs("div", { className: "flex gap-5 text-sm ", children: [