@addsign/moje-agenda-shared-lib 0.0.77 → 0.0.80
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 +30 -2
- package/dist/components/datatable/DataTable.js +1 -1
- package/dist/components/datatable/DataTableServer.d.ts +1 -1
- package/dist/components/datatable/DataTableServer.js +21818 -72
- package/dist/components/datatable/DataTableServer.js.map +1 -1
- package/dist/components/datatable/DatatableSettings.d.ts +6 -0
- package/dist/components/datatable/DatatableSettings.js +55 -0
- package/dist/components/datatable/DatatableSettings.js.map +1 -0
- package/dist/components/datatable/Resizable.d.ts +8 -0
- package/dist/components/datatable/Resizable.js +81 -0
- package/dist/components/datatable/Resizable.js.map +1 -0
- package/dist/components/form/AutocompleteSearchBar.js +1 -6
- package/dist/components/form/AutocompleteSearchBar.js.map +1 -1
- package/dist/components/form/FileInput.js +1 -1
- package/dist/components/form/FormField.js +1 -1
- package/dist/components/form/InputField.js +1 -1
- package/dist/components/form/PositionsSelectorSingle.js +1 -1
- package/dist/components/form/SelectField.js +1 -1
- package/dist/components/layout/IconInCircle.js +1 -1
- package/dist/{index-ClXm2PIX.js → index-CxF6lTek.js} +15 -11
- package/dist/{index-ClXm2PIX.js.map → index-CxF6lTek.js.map} +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { l as MdRefresh } from "../../index-CxF6lTek.js";
|
|
4
|
+
import { G as GenIcon } from "../../iconBase-B8_TsgYI.js";
|
|
5
|
+
function PiFileXlsLight(props) {
|
|
6
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 256 256", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z" }, "child": [] }] })(props);
|
|
7
|
+
}
|
|
8
|
+
function TiArrowBackOutline(props) {
|
|
9
|
+
return GenIcon({ "tag": "svg", "attr": { "version": "1.2", "baseProfile": "tiny", "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M19.164 19.547c-1.641-2.5-3.669-3.285-6.164-3.484v1.437c0 .534-.208 1.036-.586 1.414-.756.756-2.077.751-2.823.005l-6.293-6.207c-.191-.189-.298-.444-.298-.713s.107-.524.298-.712l6.288-6.203c.754-.755 2.073-.756 2.829.001.377.378.585.88.585 1.414v1.704c4.619.933 8 4.997 8 9.796v1c0 .442-.29.832-.714.958-.095.027-.19.042-.286.042-.331 0-.646-.165-.836-.452zm-7.141-5.536c2.207.056 4.638.394 6.758 2.121-.768-3.216-3.477-5.702-6.893-6.08-.504-.056-.888-.052-.888-.052v-3.497l-5.576 5.496 5.576 5.5v-3.499l1.023.011z" }, "child": [] }] })(props);
|
|
10
|
+
}
|
|
11
|
+
function DatatableSettings({
|
|
12
|
+
tableId,
|
|
13
|
+
onSuccess,
|
|
14
|
+
onExport
|
|
15
|
+
}) {
|
|
16
|
+
const refreshTable = React.useCallback(() => {
|
|
17
|
+
const storageKey = `datatable:${tableId}`;
|
|
18
|
+
localStorage.setItem(storageKey, "{}");
|
|
19
|
+
onSuccess();
|
|
20
|
+
}, [tableId]);
|
|
21
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-5 py-3", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
className: " text-xl h-full cursor-pointer text-gray-600 hover:text-black",
|
|
26
|
+
title: "Obnovit Data",
|
|
27
|
+
onClick: onSuccess,
|
|
28
|
+
children: /* @__PURE__ */ jsx(MdRefresh, {})
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
className: " text-xl h-full cursor-pointer text-gray-600 hover:text-black",
|
|
35
|
+
title: "Obnovit výchozí nastavení tabulky",
|
|
36
|
+
onClick: () => refreshTable(),
|
|
37
|
+
children: /* @__PURE__ */ jsx(TiArrowBackOutline, {})
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: " text-xl h-full cursor-pointer text-gray-600 hover:text-black",
|
|
44
|
+
title: "Stáhnout jako XLS soubor",
|
|
45
|
+
onClick: onExport,
|
|
46
|
+
children: /* @__PURE__ */ jsx(PiFileXlsLight, {})
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
" "
|
|
50
|
+
] });
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
DatatableSettings
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=DatatableSettings.js.map
|