@addsign/moje-agenda-shared-lib 0.0.91 → 0.0.93
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.
- package/dist/assets/tailwind.css +6 -11
- package/dist/components/ConfirmationModalDialog.js +16 -8
- package/dist/components/ConfirmationModalDialog.js.map +1 -1
- package/dist/components/datatable/DataTableServer.js +5 -4
- package/dist/components/datatable/DataTableServer.js.map +1 -1
- package/dist/components/form/FormField.js +1 -1
- package/dist/components/form/FormField.js.map +1 -1
- package/dist/components/form/SelectField.d.ts +1 -1
- package/dist/components/form/SelectField.js +19 -8
- package/dist/components/form/SelectField.js.map +1 -1
- package/package.json +1 -1
|
@@ -21685,7 +21685,7 @@ function DataTableServer({
|
|
|
21685
21685
|
id,
|
|
21686
21686
|
url,
|
|
21687
21687
|
columns,
|
|
21688
|
-
itemsPerPage =
|
|
21688
|
+
itemsPerPage = 10,
|
|
21689
21689
|
title,
|
|
21690
21690
|
subtitle,
|
|
21691
21691
|
allowSearch = true,
|
|
@@ -21796,6 +21796,7 @@ function DataTableServer({
|
|
|
21796
21796
|
setColumnFilters(storageObject.columnFilters);
|
|
21797
21797
|
setShowColFilters(storageObject.showColFilters);
|
|
21798
21798
|
setCurrentPage(storageObject.currentPage || 0);
|
|
21799
|
+
setSortConfig(null);
|
|
21799
21800
|
}
|
|
21800
21801
|
}
|
|
21801
21802
|
}, [id]);
|
|
@@ -21893,7 +21894,7 @@ function DataTableServer({
|
|
|
21893
21894
|
setFulltextSearch((_a2 = e.target) == null ? void 0 : _a2.value);
|
|
21894
21895
|
setCurrentPage(0);
|
|
21895
21896
|
};
|
|
21896
|
-
const paginationDisplay = `Strana ${(currentPage || 0) + 1} z ${data == null ? void 0 : data.totalPages}`;
|
|
21897
|
+
const paginationDisplay = `Strana ${(currentPage || 0) + 1} z ${data == null ? void 0 : data.totalPages} (${itemsPerPage} řádků na stranu)`;
|
|
21897
21898
|
const filterHandler = (filterParam, value) => {
|
|
21898
21899
|
setColumnFilters((prev) => ({ ...prev, [filterParam]: value }));
|
|
21899
21900
|
setCurrentPage(0);
|
|
@@ -21972,7 +21973,7 @@ function DataTableServer({
|
|
|
21972
21973
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
21973
21974
|
"div",
|
|
21974
21975
|
{
|
|
21975
|
-
className: "shadow-lg border border-gray-200 rounded-xl
|
|
21976
|
+
className: "shadow-lg border border-gray-200 rounded-xl",
|
|
21976
21977
|
style: { overflowY: "visible" },
|
|
21977
21978
|
children: [
|
|
21978
21979
|
(title || subtitle || allowSearch) && /* @__PURE__ */ jsxs("div", { className: "p-5 leading-9 flex", children: [
|
|
@@ -22044,7 +22045,7 @@ function DataTableServer({
|
|
|
22044
22045
|
"th",
|
|
22045
22046
|
{
|
|
22046
22047
|
id: String(key) + "_filter",
|
|
22047
|
-
className: `font-medium leading-9 text-xs text-left p-0 pb-
|
|
22048
|
+
className: `font-medium leading-9 text-xs text-left p-0 pb-1 text-gray-600 overflow-ellipsis whitespace-nowrap ${!title && !subtitle ? "border-t-0" : ""}`,
|
|
22048
22049
|
style: { width },
|
|
22049
22050
|
children: [
|
|
22050
22051
|
filterType && filterType === "select" && /* @__PURE__ */ jsx(
|