@addsign/moje-agenda-shared-lib 2.0.31 → 2.0.33
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/Dialog-CHoRe199.js +424 -0
- package/dist/Dialog-CHoRe199.js.map +1 -0
- package/dist/PdfManager-DyGHz-HU.js +11648 -0
- package/dist/PdfManager-DyGHz-HU.js.map +1 -0
- package/dist/assets/style.css +6 -0
- package/dist/components/layout/Neoptimizovano.d.ts +1 -0
- package/dist/components/layout/Neoptimizovano.js +32 -0
- package/dist/components/layout/Neoptimizovano.js.map +1 -0
- package/dist/components/ui/command.d.ts +6 -6
- package/dist/hooks/useScreenSize.d.ts +1 -0
- package/dist/hooks/useScreenSize.js +20 -0
- package/dist/hooks/useScreenSize.js.map +1 -0
- package/dist/index-CsiQys8H.js +64 -0
- package/dist/index-CsiQys8H.js.map +1 -0
- package/dist/index-LF7vB-9s.js +20 -0
- package/dist/index-LF7vB-9s.js.map +1 -0
- package/dist/index.es-oZTAtbxy.js +9429 -0
- package/dist/index.es-oZTAtbxy.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +19 -15
- package/dist/main.js.map +1 -1
- package/lib/components/layout/Neoptimizovano.tsx +10 -0
- package/lib/hooks/useScreenSize.ts +29 -0
- package/lib/main.ts +2 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { default as PositionsSelectorSingle } from './components/form/PositionsS
|
|
|
18
18
|
export { default as Calendar } from './components/Calendar.tsx';
|
|
19
19
|
export { default as DataTable } from './components/datatable/DataTable.tsx';
|
|
20
20
|
export { default as CollapsibleSection } from './components/layout/CollapsibleSection.tsx';
|
|
21
|
+
export { default as Neoptimizovano } from './components/layout/Neoptimizovano.tsx';
|
|
21
22
|
export { default as DataTableServer, resetAllDataTablePaging, } from './components/datatable/DataTableServer.tsx';
|
|
22
23
|
export { default as DateRangeField } from './components/form/DateRangeField.tsx';
|
|
23
24
|
export { default as DateField } from './components/form/DateField.tsx';
|
|
@@ -32,6 +33,7 @@ export * from './utils/handleErrors.ts';
|
|
|
32
33
|
export * from './utils/hasRightInModule.ts';
|
|
33
34
|
export * from './utils/hasRole.ts';
|
|
34
35
|
export * from './types.ts';
|
|
36
|
+
export * from './hooks/useScreenSize.ts';
|
|
35
37
|
export * from './components/ui/Dialog.tsx';
|
|
36
38
|
export * from './components/ui/ScrollArea.tsx';
|
|
37
39
|
export * from './components/ui/input.tsx';
|
package/dist/main.js
CHANGED
|
@@ -18,11 +18,12 @@ import { default as default14 } from "./components/form/PositionsSelectorSingle.
|
|
|
18
18
|
import { default as default15 } from "./components/Calendar.js";
|
|
19
19
|
import { default as default16 } from "./components/datatable/DataTable.js";
|
|
20
20
|
import { default as default17 } from "./components/layout/CollapsibleSection.js";
|
|
21
|
-
import { default as default18
|
|
22
|
-
import { default as default19 } from "./components/
|
|
23
|
-
import { default as default20 } from "./components/form/
|
|
24
|
-
import { default as default21 } from "./components/
|
|
25
|
-
import { default as default22 } from "./
|
|
21
|
+
import { default as default18 } from "./components/layout/Neoptimizovano.js";
|
|
22
|
+
import { default as default19, resetAllDataTablePaging } from "./components/datatable/DataTableServer.js";
|
|
23
|
+
import { default as default20 } from "./components/form/DateRangeField.js";
|
|
24
|
+
import { default as default21 } from "./components/form/DateField.js";
|
|
25
|
+
import { default as default22 } from "./components/SpinnerIcon.js";
|
|
26
|
+
import { default as default23 } from "./utils/PdfManager.js";
|
|
26
27
|
import { FederationContext, FederationContextProvider } from "./contexts/FederationContext.js";
|
|
27
28
|
import { useFederationContext } from "./contexts/useFederationContext.js";
|
|
28
29
|
import { getFullName, getFullNameList, getFullNameListPositionWithEmployee, getFullNamePositionWithEmployee } from "./utils/getFullName.js";
|
|
@@ -31,6 +32,7 @@ import { handleErrors } from "./utils/handleErrors.js";
|
|
|
31
32
|
import { hasRightInModule } from "./utils/hasRightInModule.js";
|
|
32
33
|
import { hasRole } from "./utils/hasRole.js";
|
|
33
34
|
import { EApproverRoles, EApproverTypes, EDecisionsTranslations, EEntity, Eagendy, Eassignments, Estavy } from "./types.js";
|
|
35
|
+
import { useScreenSize } from "./hooks/useScreenSize.js";
|
|
34
36
|
import { D, c, e, i, g, f, b, a, h, d } from "./Dialog-BmQoVu5C.js";
|
|
35
37
|
import { ScrollArea, ScrollBar } from "./components/ui/ScrollArea.js";
|
|
36
38
|
import { Input } from "./components/ui/input.js";
|
|
@@ -45,8 +47,8 @@ import { Textarea } from "./components/ui/textarea.js";
|
|
|
45
47
|
import { Checkbox } from "./components/ui/checkbox.js";
|
|
46
48
|
import { Button, buttonVariants } from "./components/ui/button.js";
|
|
47
49
|
import { C } from "./Calendar-DWT4e7Th.js";
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
+
import { default as default24 } from "./components/ui/DateTimePicker.js";
|
|
51
|
+
import { default as default25 } from "./components/ui/DatePicker.js";
|
|
50
52
|
export {
|
|
51
53
|
default3 as AutocompleteSearchBar,
|
|
52
54
|
default4 as AutocompleteSearchBarServer,
|
|
@@ -67,11 +69,11 @@ export {
|
|
|
67
69
|
CommandShortcut,
|
|
68
70
|
ConfirmationModalDialog,
|
|
69
71
|
default16 as DataTable,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
default19 as DataTableServer,
|
|
73
|
+
default21 as DateField,
|
|
74
|
+
default25 as DatePicker,
|
|
75
|
+
default20 as DateRangeField,
|
|
76
|
+
default24 as DateTimePicker,
|
|
75
77
|
D as Dialog,
|
|
76
78
|
c as DialogClose,
|
|
77
79
|
e as DialogContent,
|
|
@@ -105,8 +107,9 @@ export {
|
|
|
105
107
|
default6 as InputField,
|
|
106
108
|
Modal,
|
|
107
109
|
ModalDialog,
|
|
110
|
+
default18 as Neoptimizovano,
|
|
108
111
|
default12 as PageTitle,
|
|
109
|
-
|
|
112
|
+
default23 as PdfManager,
|
|
110
113
|
default14 as PositionsSelectorSingle,
|
|
111
114
|
default8 as RadioGroup,
|
|
112
115
|
RadioGroupCN,
|
|
@@ -127,7 +130,7 @@ export {
|
|
|
127
130
|
SelectValue,
|
|
128
131
|
Separator,
|
|
129
132
|
default13 as Spinner,
|
|
130
|
-
|
|
133
|
+
default22 as SpinnerIcon,
|
|
131
134
|
Textarea,
|
|
132
135
|
Tooltip,
|
|
133
136
|
TooltipContent,
|
|
@@ -144,6 +147,7 @@ export {
|
|
|
144
147
|
hasRole,
|
|
145
148
|
resetAllDataTablePaging,
|
|
146
149
|
useFederationContext,
|
|
147
|
-
useFormField
|
|
150
|
+
useFormField,
|
|
151
|
+
useScreenSize
|
|
148
152
|
};
|
|
149
153
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonCN } from "../../main";
|
|
2
|
+
|
|
3
|
+
export default function Neoptimizovano() {
|
|
4
|
+
return (
|
|
5
|
+
<div className="flex flex-col gap-2 flex-1 items-center justify-center min-h-[50vh] text-center">
|
|
6
|
+
<h1>Není optimalizováno pro toto rozlišení</h1>
|
|
7
|
+
<ButtonCN onClick={() => history.back()}>Zpět</ButtonCN>
|
|
8
|
+
</div>
|
|
9
|
+
);
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
|
|
3
|
+
export const useScreenSize = () => {
|
|
4
|
+
const [screenSize, setScreenSize] = useState<"xl" | "lg" | "md" | "sm">(
|
|
5
|
+
window.innerWidth > 1280
|
|
6
|
+
? "xl"
|
|
7
|
+
: window.innerWidth > 1024
|
|
8
|
+
? "lg"
|
|
9
|
+
: window.innerWidth > 768
|
|
10
|
+
? "md"
|
|
11
|
+
: "sm"
|
|
12
|
+
);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const handleResize = () => {
|
|
15
|
+
setScreenSize(
|
|
16
|
+
window.innerWidth > 1280
|
|
17
|
+
? "xl"
|
|
18
|
+
: window.innerWidth > 1024
|
|
19
|
+
? "lg"
|
|
20
|
+
: window.innerWidth > 768
|
|
21
|
+
? "md"
|
|
22
|
+
: "sm"
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
window.addEventListener("resize", handleResize);
|
|
26
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
27
|
+
}, []);
|
|
28
|
+
return screenSize;
|
|
29
|
+
}
|
package/lib/main.ts
CHANGED
|
@@ -24,6 +24,7 @@ export { default as PositionsSelectorSingle } from "./components/form/PositionsS
|
|
|
24
24
|
export { default as Calendar } from "./components/Calendar.tsx";
|
|
25
25
|
export { default as DataTable } from "./components/datatable/DataTable.tsx";
|
|
26
26
|
export { default as CollapsibleSection } from "./components/layout/CollapsibleSection.tsx";
|
|
27
|
+
export { default as Neoptimizovano } from "./components/layout/Neoptimizovano.tsx";
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
|
|
@@ -49,6 +50,7 @@ export * from "./utils/hasRightInModule.ts";
|
|
|
49
50
|
export * from "./utils/hasRole.ts";
|
|
50
51
|
|
|
51
52
|
export * from "./types.ts";
|
|
53
|
+
export * from "./hooks/useScreenSize.ts";
|
|
52
54
|
|
|
53
55
|
|
|
54
56
|
//**SHADCN */
|