@m4l/components 0.1.64 → 0.1.66
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/@types/export.d.ts +8 -0
- package/components/CommonActions/components/ActionCancel/{index.2eb2c1e1.js → index.4d0333c0.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.2864d574.js → index.298e0109.js} +11 -18
- package/components/CommonActions/components/ActionFormIntro/{index.e7f83ddd.js → index.b45922ff.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.0d138cb3.js → index.138101aa.js} +2 -2
- package/components/CommonActions/components/Actions/{index.433cd345.js → index.77574633.js} +11 -18
- package/components/DataGrid/{index.42521a55.js → index.ef23d0a9.js} +28 -35
- package/components/DynamicFilter/{index.442bda79.js → index.04ed3d58.js} +34 -46
- package/components/DynamicFilter/index.d.ts +1 -1
- package/components/HelperText/{index.3c07ca2a.js → index.c35dcb93.js} +10 -10
- package/components/Icon/{index.0f9b360e.js → index.fbeeacc8.js} +2 -2
- package/components/Icon/tests/utils.d.ts +1 -1
- package/components/Image/{index.1a9c0327.js → index.77396f79.js} +1 -1
- package/components/LanguagePopover/{index.68de7176.js → index.c0fc94c7.js} +11 -11
- package/components/ModalDialog/{index.3efe049b.js → index.e600b43a.js} +5 -5
- package/components/NavLink/{index.ae9f1cc9.js → index.3f4e2417.js} +11 -11
- package/components/NoItemSelected/{index.7cfd7613.js → index.609c3c20.js} +1 -1
- package/components/ObjectLogs/{index.b50726fb.js → index.7f93ba51.js} +14 -21
- package/components/PaperForm/{index.44bf4469.js → index.fb4fa784.js} +1 -1
- package/components/Period/{index.99feb99e.js → index.0c5bf66f.js} +12 -19
- package/components/Resizeable/{index.b5d42efb.js → index.4545dd6a.js} +3 -3
- package/components/SideBar/{index.011880b6.js → index.7d970041.js} +7 -7
- package/components/areas/components/AreasAdmin/classes/index.d.ts +5 -0
- package/components/areas/components/AreasAdmin/classes/types.d.ts +11 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/index.d.ts +5 -0
- package/components/areas/components/AreasViewer/classes/types.d.ts +19 -0
- package/components/areas/components/AreasViewer/index.d.ts +7 -0
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/contexts}/AreaContext/helper.d.ts +2 -2
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/contexts}/AreaContext/index.d.ts +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/store.d.ts +11 -0
- package/components/areas/{contexts/AreaContext/store.d.ts → components/AreasViewer/subcomponents/Area/contexts/AreaContext/types.d.ts} +29 -16
- package/components/areas/components/AreasViewer/subcomponents/Area/index.d.ts +12 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/GridLayout/index.d.ts +5 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +6 -0
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/store.d.ts +8 -3
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/types.d.ts +1 -1
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/index.d.ts +1 -1
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/index.d.ts +1 -1
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/Component/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Header/helper.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Header/subcomponents/MainActions/index.d.ts +1 -0
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +8 -0
- package/components/areas/components/{WindowModal → AreasViewer/subcomponents/Area/subcomponents/WindowModal}/index.d.ts +1 -1
- package/components/areas/components/{WindowPopUp → AreasViewer/subcomponents/Area/subcomponents/WindowPopUp}/index.d.ts +1 -1
- package/components/areas/components/{Area → AreasViewer/subcomponents/Area}/types.d.ts +6 -11
- package/components/areas/components/index.d.ts +3 -4
- package/components/areas/constants.d.ts +3 -0
- package/components/areas/contexts/AreasContext/index.d.ts +10 -4
- package/components/areas/contexts/AreasContext/store.d.ts +8 -29
- package/components/areas/contexts/AreasContext/types.d.ts +119 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/dictionary.d.ts +9 -14
- package/components/areas/hooks/useArea/index.d.ts +1 -1
- package/components/areas/hooks/useAreas/index.d.ts +1 -1
- package/components/areas/hooks/useWindow/index.d.ts +1 -1
- package/components/areas/icons.d.ts +8 -0
- package/components/areas/index.d.ts +1 -0
- package/components/areas/index.d7519516.js +2416 -0
- package/components/formatters/BooleanFormatter/{index.cd00c8e1.js → index.0edacc9b.js} +1 -1
- package/components/formatters/{index.deae4701.js → index.879170b2.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.083e23c1.js → index.5f27e28c.js} +13 -12
- package/components/hook-form/RHFAutocomplete/test/constants.d.ts +1 -0
- package/components/hook-form/RHFAutocomplete/test/utils.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.ba751be9.js → index.35e17cd6.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.c19393b1.js → index.4f134f09.js} +3 -3
- package/components/hook-form/RHFPeriod/{index.c0a80aeb.js → index.dcaa0c87.js} +2 -2
- package/components/hook-form/RHFTextField/{index.97485ff2.js → index.fc90a570.js} +13 -13
- package/components/hook-form/RHFUpload/{index.798eb11d.js → index.654ad316.js} +1 -1
- package/components/index.d.ts +1 -3
- package/components/modal/{WindowBase.59f50553.js → WindowBase.230a498f.js} +3 -3
- package/components/modal/{WindowConfirm.c1339cf8.js → WindowConfirm.575b4d41.js} +14 -21
- package/components/modal/index.237881ea.js +23 -0
- package/components/mui_extended/Accordion/{index.b7487e37.js → index.0b15f939.js} +2 -2
- package/components/mui_extended/Button/{index.d9e0ae2e.js → index.b7b70e5f.js} +3 -3
- package/components/mui_extended/IconButton/{index.be9c2ce5.js → index.a5072cd3.js} +15 -11
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/MenuActions/icons.d.ts +3 -0
- package/components/mui_extended/MenuActions/{index.ec654122.js → index.3a275abb.js} +21 -20
- package/components/mui_extended/MenuActions/types.d.ts +5 -6
- package/components/mui_extended/Pager/{index.9e123670.js → index.5a69ab10.js} +5 -5
- package/components/mui_extended/Popover/{index.260aae81.js → index.e271e4f0.js} +1 -0
- package/components/mui_extended/Typography/{index.41b60a6b.js → index.eab3d85c.js} +1 -1
- package/components/mui_extended/index.35f74599.js +19 -0
- package/contexts/ModalContext/{index.ae8041f3.js → index.de0a3457.js} +1 -1
- package/hooks/useModal/{index.5c159ed2.js → index.e103db09.js} +1 -1
- package/index.js +118 -132
- package/package.json +2 -3
- package/{react-draggable.1aa81436.js → react-draggable.4d08d714.js} +1 -1
- package/{react-resizable.e86cb01e.js → react-resizable.23b980cb.js} +5 -4
- package/utils/{index.e199226a.js → index.c2e62d8f.js} +32 -32
- package/{vendor.a15d263e.js → vendor.be57c149.js} +43 -52
- package/components/areas/components/Area/index.d.ts +0 -5
- package/components/areas/components/AreasAdmin/index.51e28f63.js +0 -120
- package/components/areas/components/AreasContainer/index.1e5e6e91.js +0 -37
- package/components/areas/components/AreasContainer/index.d.ts +0 -1
- package/components/areas/components/GridLayout/index.5bf8d5e4.js +0 -103
- package/components/areas/components/GridLayout/index.d.ts +0 -1
- package/components/areas/components/Window/icons.d.ts +0 -3
- package/components/areas/components/Window/index.416a874f.js +0 -855
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +0 -8
- package/components/areas/components/WindowPopUp/index.f053fca7.js +0 -118
- package/components/areas/components/WindowsPanel/index.d.ts +0 -1
- package/components/areas/components/index.eace295a.js +0 -77
- package/components/areas/contexts/AreaContext/index.7890e58d.js +0 -509
- package/components/areas/contexts/AreaContext/types.d.ts +0 -20
- package/components/areas/contexts/AreasContext/index.0792a8d1.js +0 -197
- package/components/areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js +0 -43
- package/components/areas/contexts/index.2a915acf.js +0 -198
- package/components/areas/hooks/index.f4d78492.js +0 -27
- package/components/areas/hooks/useArea/index.d6263051.js +0 -20
- package/components/areas/hooks/useDynamicMFParameters/index.041a666b.js +0 -14
- package/components/areas/index.8fca0f8f.js +0 -20
- package/components/modal/index.7a84f64d.js +0 -30
- package/components/mui_extended/index.459cbd6c.js +0 -19
- /package/components/areas/components/{Area → AreasViewer/subcomponents/Area}/subcomponents/InnerForHooks/index.d.ts +0 -0
- /package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/helper.d.ts +0 -0
- /package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/Header/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/Header/skeleton.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./components/Icon/index.
|
|
1
|
+
import "./components/Icon/index.fbeeacc8.js";
|
|
2
2
|
import "framer-motion";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -6,80 +6,71 @@ import { styled } from "@mui/material/styles";
|
|
|
6
6
|
import "react-router-dom";
|
|
7
7
|
import "./components/animate/LoadingScreen/index.1d0c4307.js";
|
|
8
8
|
import "./components/animate/PropagateLoader/index.be5b02c3.js";
|
|
9
|
-
import "./components/areas/
|
|
10
|
-
import "./contexts/ModalContext/index.
|
|
9
|
+
import { A as AreasAdmin } from "./components/areas/index.d7519516.js";
|
|
10
|
+
import "./contexts/ModalContext/index.de0a3457.js";
|
|
11
11
|
import { useState, useEffect } from "react";
|
|
12
12
|
import "react-hook-form";
|
|
13
13
|
import "@hookform/resolvers/yup";
|
|
14
14
|
import "./contexts/RHFormContext/index.a7511399.js";
|
|
15
15
|
import { useModuleDictionary, useNetwork, useEnvironment } from "@m4l/core";
|
|
16
|
-
import "./components/hook-form/RHFAutocomplete/index.
|
|
17
|
-
import "./components/Image/index.
|
|
18
|
-
import { T as Typography } from "./components/mui_extended/Typography/index.
|
|
16
|
+
import "./components/hook-form/RHFAutocomplete/index.5f27e28c.js";
|
|
17
|
+
import "./components/Image/index.77396f79.js";
|
|
18
|
+
import { T as Typography } from "./components/mui_extended/Typography/index.eab3d85c.js";
|
|
19
19
|
import "clsx";
|
|
20
|
-
import { I as IconButton } from "./components/mui_extended/IconButton/index.
|
|
21
|
-
import "./components/mui_extended/Accordion/index.
|
|
20
|
+
import { I as IconButton } from "./components/mui_extended/IconButton/index.a5072cd3.js";
|
|
21
|
+
import "./components/mui_extended/Accordion/index.0b15f939.js";
|
|
22
22
|
import { A as Avatar } from "./components/mui_extended/Avatar/index.fe06afd7.js";
|
|
23
23
|
import "@mui/material/Button";
|
|
24
|
-
import "./components/mui_extended/Button/index.
|
|
24
|
+
import "./components/mui_extended/Button/index.b7b70e5f.js";
|
|
25
25
|
import "@mui/lab";
|
|
26
|
-
import { P as Popover } from "./components/mui_extended/Popover/index.
|
|
27
|
-
import "./components/mui_extended/MenuActions/index.
|
|
28
|
-
import "./components/mui_extended/Pager/index.
|
|
26
|
+
import { P as Popover } from "./components/mui_extended/Popover/index.e271e4f0.js";
|
|
27
|
+
import "./components/mui_extended/MenuActions/index.3a275abb.js";
|
|
28
|
+
import "./components/mui_extended/Pager/index.5a69ab10.js";
|
|
29
29
|
import "./components/mui_extended/Tab/index.e0653a0a.js";
|
|
30
|
-
import "./components/HelperText/index.
|
|
30
|
+
import "./components/HelperText/index.c35dcb93.js";
|
|
31
31
|
import "lodash/debounce";
|
|
32
|
-
import "./components/hook-form/RHFAutocompleteAsync/index.
|
|
33
|
-
import "./components/hook-form/RHFCheckbox/index.
|
|
32
|
+
import "./components/hook-form/RHFAutocompleteAsync/index.35e17cd6.js";
|
|
33
|
+
import "./components/hook-form/RHFCheckbox/index.4f134f09.js";
|
|
34
34
|
import "@mui/x-date-pickers";
|
|
35
35
|
import "./components/hook-form/RHFDateTime/index.6c129ce4.js";
|
|
36
36
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
37
|
-
import "./components/hook-form/RHFTextField/index.
|
|
38
|
-
import "./components/hook-form/RHFPeriod/index.
|
|
39
|
-
import "./components/Period/index.
|
|
40
|
-
import "./components/CommonActions/components/Actions/index.
|
|
41
|
-
import { c as cjs } from "./react-draggable.
|
|
42
|
-
import "./components/ModalDialog/index.
|
|
43
|
-
import "./components/Resizeable/index.
|
|
44
|
-
import "./components/modal/WindowConfirm.
|
|
45
|
-
import "./components/modal/WindowBase.
|
|
46
|
-
import "./components/areas/components/index.eace295a.js";
|
|
47
|
-
import { A as AreasAdmin } from "./components/areas/components/AreasAdmin/index.51e28f63.js";
|
|
37
|
+
import "./components/hook-form/RHFTextField/index.fc90a570.js";
|
|
38
|
+
import "./components/hook-form/RHFPeriod/index.dcaa0c87.js";
|
|
39
|
+
import "./components/Period/index.0c5bf66f.js";
|
|
40
|
+
import "./components/CommonActions/components/Actions/index.77574633.js";
|
|
41
|
+
import { c as cjs } from "./react-draggable.4d08d714.js";
|
|
42
|
+
import "./components/ModalDialog/index.e600b43a.js";
|
|
43
|
+
import "./components/Resizeable/index.4545dd6a.js";
|
|
44
|
+
import "./components/modal/WindowConfirm.575b4d41.js";
|
|
45
|
+
import "./components/modal/WindowBase.230a498f.js";
|
|
48
46
|
import "zustand";
|
|
49
|
-
import "./components/areas/contexts/AreasContext/index.0792a8d1.js";
|
|
50
47
|
import "zustand/shallow";
|
|
51
|
-
import "./components/areas/components/AreasContainer/index.1e5e6e91.js";
|
|
52
|
-
import "react-grid-layout/css/styles.css";
|
|
53
|
-
import "./react-resizable.e86cb01e.js";
|
|
54
|
-
import "./components/areas/contexts/index.2a915acf.js";
|
|
55
48
|
import "lodash/isString";
|
|
56
49
|
import "react-dropzone";
|
|
57
|
-
import "./components/hook-form/RHFUpload/index.
|
|
58
|
-
import "./components/DataGrid/index.
|
|
50
|
+
import "./components/hook-form/RHFUpload/index.654ad316.js";
|
|
51
|
+
import "./components/DataGrid/index.ef23d0a9.js";
|
|
59
52
|
import "react-dnd";
|
|
60
53
|
import "react-dnd-html5-backend";
|
|
61
|
-
import "./components/DynamicFilter/index.
|
|
54
|
+
import "./components/DynamicFilter/index.04ed3d58.js";
|
|
62
55
|
import "./components/ScrollBar/index.bbe48f4d.js";
|
|
63
56
|
import "yup";
|
|
64
|
-
import "./components/LanguagePopover/index.
|
|
65
|
-
import "./components/NavLink/index.
|
|
66
|
-
import "./components/NoItemSelected/index.
|
|
67
|
-
import "./components/ObjectLogs/index.
|
|
57
|
+
import "./components/LanguagePopover/index.c0fc94c7.js";
|
|
58
|
+
import "./components/NavLink/index.3f4e2417.js";
|
|
59
|
+
import "./components/NoItemSelected/index.609c3c20.js";
|
|
60
|
+
import "./components/ObjectLogs/index.7f93ba51.js";
|
|
68
61
|
import "./react-json-view.57125fcf.js";
|
|
69
|
-
import "./components/PaperForm/index.
|
|
62
|
+
import "./components/PaperForm/index.fb4fa784.js";
|
|
70
63
|
import "./components/Page/index.4237c241.js";
|
|
71
64
|
import "./components/PropertyValue/index.dfcfe1ba.js";
|
|
72
65
|
import "./react-splitter-layout.8b1655c8.js";
|
|
73
66
|
import "./components/SplitLayout/index.5a8355d8.js";
|
|
74
|
-
import "./components/SideBar/index.
|
|
67
|
+
import "./components/SideBar/index.7d970041.js";
|
|
75
68
|
import "./components/animate/variants/fade.b561c0fc.js";
|
|
76
69
|
import "./components/animate/variants/bounce.784aaaaa.js";
|
|
77
70
|
import "./components/animate/variants/container.11f82b76.js";
|
|
78
71
|
import "./components/animate/variants/transition.bd46b9ce.js";
|
|
79
72
|
import "./components/animate/MotionContainer/index.8d9f9d80.js";
|
|
80
73
|
import "./components/animate/MotionLazyContainer/index.572dd012.js";
|
|
81
|
-
import "./components/areas/hooks/useDynamicMFParameters/index.041a666b.js";
|
|
82
|
-
import "./components/areas/hooks/index.f4d78492.js";
|
|
83
74
|
import "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
|
|
84
75
|
import "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
|
|
85
76
|
import "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
|
|
@@ -88,26 +79,26 @@ import "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
|
88
79
|
import { C as CircularProgress } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
89
80
|
import "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
90
81
|
import "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
91
|
-
import "./components/formatters/BooleanFormatter/index.
|
|
82
|
+
import "./components/formatters/BooleanFormatter/index.0edacc9b.js";
|
|
92
83
|
import "./components/formatters/DateFormatter/index.578a9f53.js";
|
|
93
84
|
import "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
|
|
94
85
|
import "./components/formatters/PointsFormatter/index.80a4e414.js";
|
|
95
|
-
import "./components/formatters/index.
|
|
86
|
+
import "./components/formatters/index.879170b2.js";
|
|
96
87
|
import "./components/formatters/PriceFormatter/index.83cbe7be.js";
|
|
97
88
|
import "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
|
|
98
89
|
import "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
|
|
99
90
|
import "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
|
|
100
91
|
import "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
101
|
-
import "./components/CommonActions/components/ActionCancel/index.
|
|
102
|
-
import "./components/CommonActions/components/ActionIntro/index.
|
|
103
|
-
import "./components/CommonActions/components/ActionFormCancel/index.
|
|
104
|
-
import "./components/CommonActions/components/ActionFormIntro/index.
|
|
92
|
+
import "./components/CommonActions/components/ActionCancel/index.4d0333c0.js";
|
|
93
|
+
import "./components/CommonActions/components/ActionIntro/index.138101aa.js";
|
|
94
|
+
import "./components/CommonActions/components/ActionFormCancel/index.298e0109.js";
|
|
95
|
+
import "./components/CommonActions/components/ActionFormIntro/index.b45922ff.js";
|
|
105
96
|
import "./components/Loadable/index.117eaced.js";
|
|
106
97
|
import "./components/ScrollToTop/index.e06f98f6.js";
|
|
107
98
|
import { unstable_composeClasses } from "@mui/base";
|
|
108
|
-
import { c as getNameDataTestId } from "./utils/index.
|
|
99
|
+
import { c as getNameDataTestId } from "./utils/index.c2e62d8f.js";
|
|
109
100
|
import "./hooks/useFormAddEdit/index.15de3ba8.js";
|
|
110
|
-
import "./hooks/useModal/index.
|
|
101
|
+
import "./hooks/useModal/index.e103db09.js";
|
|
111
102
|
import "./assets/Logo/index.228dcb5a.js";
|
|
112
103
|
const TEST_PROP_ID = "data-testid";
|
|
113
104
|
const DraggableWindow = (props) => {
|
|
@@ -438,11 +429,11 @@ const AppBar = (props) => {
|
|
|
438
429
|
...process.env.NODE_ENV !== "production" ? {
|
|
439
430
|
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
440
431
|
} : {},
|
|
441
|
-
children: [
|
|
432
|
+
children: [!isDesktop ? /* @__PURE__ */ jsx(IconButton, {
|
|
442
433
|
tooltip: "test",
|
|
443
434
|
src: `${host_static_assets}/${environment_assets}/frontend/components/settings/assets/icons/options.svg`,
|
|
444
435
|
onClick: onToggleVisible
|
|
445
|
-
}) : null, /* @__PURE__ */ jsx(AccountPopover, {
|
|
436
|
+
}) : null, /* @__PURE__ */ jsx(AreasAdmin, {}), /* @__PURE__ */ jsx(AccountPopover, {
|
|
446
437
|
handleClick,
|
|
447
438
|
handleLogOut,
|
|
448
439
|
version
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.be9c2ce5.js";
|
|
3
|
-
import { u as useAreasStore } from "../../hooks/useArea/index.d6263051.js";
|
|
4
|
-
import { useEnvironment } from "@m4l/core";
|
|
5
|
-
import "@mui/material";
|
|
6
|
-
import "../../../Icon/index.0f9b360e.js";
|
|
7
|
-
import "react";
|
|
8
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
9
|
-
import "../../../mui_extended/Accordion/index.b7487e37.js";
|
|
10
|
-
import "../../../mui_extended/Avatar/index.fe06afd7.js";
|
|
11
|
-
import "react-router-dom";
|
|
12
|
-
import "@mui/material/Button";
|
|
13
|
-
import "../../../mui_extended/Button/index.d9e0ae2e.js";
|
|
14
|
-
import "clsx";
|
|
15
|
-
import "../../../Image/index.1a9c0327.js";
|
|
16
|
-
import "@mui/lab";
|
|
17
|
-
import "../../../mui_extended/Typography/index.41b60a6b.js";
|
|
18
|
-
import "../../../mui_extended/Popover/index.260aae81.js";
|
|
19
|
-
import "../../../mui_extended/MenuActions/index.ec654122.js";
|
|
20
|
-
import "../../../mui_extended/Pager/index.9e123670.js";
|
|
21
|
-
import "../../../mui_extended/Tab/index.e0653a0a.js";
|
|
22
|
-
import { shallow } from "zustand/shallow";
|
|
23
|
-
const WrapperAreasAdmin = styled("div")(({
|
|
24
|
-
theme
|
|
25
|
-
}) => ({
|
|
26
|
-
display: "flex",
|
|
27
|
-
width: "100%",
|
|
28
|
-
height: "100%",
|
|
29
|
-
flexGrow: "1",
|
|
30
|
-
position: "relative",
|
|
31
|
-
marginTop: theme.spacing(3)
|
|
32
|
-
}));
|
|
33
|
-
const WrapperAreaChips = styled("div")(() => ({
|
|
34
|
-
display: "flex",
|
|
35
|
-
flexDirection: "row",
|
|
36
|
-
border: "1px solid gray",
|
|
37
|
-
"&.active": {
|
|
38
|
-
border: "1px solid red"
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
41
|
-
const AreaSelect = styled("div")(({
|
|
42
|
-
theme
|
|
43
|
-
}) => ({
|
|
44
|
-
height: "100%",
|
|
45
|
-
width: theme.spacing(1),
|
|
46
|
-
backgroundColor: theme.palette.background.default,
|
|
47
|
-
"&.active": {
|
|
48
|
-
backgroundColor: theme.palette.primary.main
|
|
49
|
-
}
|
|
50
|
-
}));
|
|
51
|
-
const AreaChip = (props) => {
|
|
52
|
-
const {
|
|
53
|
-
areaId,
|
|
54
|
-
active,
|
|
55
|
-
areaName
|
|
56
|
-
} = props;
|
|
57
|
-
const {
|
|
58
|
-
host_static_assets,
|
|
59
|
-
environment_assets
|
|
60
|
-
} = useEnvironment();
|
|
61
|
-
const {
|
|
62
|
-
deleteArea,
|
|
63
|
-
selectArea
|
|
64
|
-
} = useAreasStore((state) => state.actions);
|
|
65
|
-
const onClickDeleteArea = (e) => {
|
|
66
|
-
e.stopPropagation();
|
|
67
|
-
deleteArea(areaId);
|
|
68
|
-
};
|
|
69
|
-
return /* @__PURE__ */ jsxs(WrapperAreaChips, {
|
|
70
|
-
className: active ? "active" : "",
|
|
71
|
-
onClick: () => {
|
|
72
|
-
selectArea(areaId);
|
|
73
|
-
},
|
|
74
|
-
children: [/* @__PURE__ */ jsx(AreaSelect, {
|
|
75
|
-
className: active ? "active" : ""
|
|
76
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
77
|
-
children: areaName
|
|
78
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
79
|
-
src: `${host_static_assets}/${environment_assets}/frontend/domain/microfrontends/users/assets/icons/edit.svg`,
|
|
80
|
-
size: "small",
|
|
81
|
-
onClick: () => {
|
|
82
|
-
}
|
|
83
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
84
|
-
src: `${host_static_assets}/${environment_assets}/frontend/domain/microfrontends/users/assets/icons/delete.svg`,
|
|
85
|
-
size: "small",
|
|
86
|
-
onClick: onClickDeleteArea
|
|
87
|
-
})]
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
AreaChip.displayName = "AreaButtons";
|
|
91
|
-
function AreasAdmin() {
|
|
92
|
-
const areas = useAreasStore((state) => state.areas, shallow);
|
|
93
|
-
const currentArea = useAreasStore((state) => state.currentArea, shallow);
|
|
94
|
-
const status = useAreasStore((state) => state.status);
|
|
95
|
-
const {
|
|
96
|
-
addArea
|
|
97
|
-
} = useAreasStore((state) => state.actions, shallow);
|
|
98
|
-
const {
|
|
99
|
-
host_static_assets,
|
|
100
|
-
environment_assets
|
|
101
|
-
} = useEnvironment();
|
|
102
|
-
if (status !== "loaded") {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
return /* @__PURE__ */ jsxs(WrapperAreasAdmin, {
|
|
106
|
-
id: "ContainerTabs",
|
|
107
|
-
children: [areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
|
|
108
|
-
areaId: area.id,
|
|
109
|
-
active: area.id === currentArea,
|
|
110
|
-
areaName: area.name
|
|
111
|
-
}, area.id)), /* @__PURE__ */ jsx(IconButton, {
|
|
112
|
-
src: `${host_static_assets}/${environment_assets}/frontend/domain/microfrontends/users/assets/icons/add.svg`,
|
|
113
|
-
size: "small",
|
|
114
|
-
onClick: addArea
|
|
115
|
-
})]
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
export {
|
|
119
|
-
AreasAdmin as A
|
|
120
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { A as Area } from "../index.eace295a.js";
|
|
3
|
-
import "react-grid-layout/css/styles.css";
|
|
4
|
-
import "../../../../react-resizable.e86cb01e.js";
|
|
5
|
-
import { u as useAreasStore } from "../../hooks/useArea/index.d6263051.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
const ContainerAreas = styled("div")(({
|
|
8
|
-
theme
|
|
9
|
-
}) => ({
|
|
10
|
-
display: "flex",
|
|
11
|
-
width: "100%",
|
|
12
|
-
height: "100%",
|
|
13
|
-
flexGrow: "1",
|
|
14
|
-
position: "relative",
|
|
15
|
-
marginTop: theme.spacing(0)
|
|
16
|
-
}));
|
|
17
|
-
function AreasContainer() {
|
|
18
|
-
const areas = useAreasStore((state) => state.areas);
|
|
19
|
-
const currentArea = useAreasStore((state) => state.currentArea);
|
|
20
|
-
const status = useAreasStore((state) => state.status);
|
|
21
|
-
if (status !== "loaded") {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
return /* @__PURE__ */ jsx(ContainerAreas, {
|
|
25
|
-
id: "ContainerAreas",
|
|
26
|
-
children: areas.map((area) => {
|
|
27
|
-
return /* @__PURE__ */ jsx(Area, {
|
|
28
|
-
id: area.id,
|
|
29
|
-
active: currentArea === area.id,
|
|
30
|
-
loadWindows: area.loadWindows
|
|
31
|
-
}, area.id);
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
AreasContainer as A
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function AreasContainer(): JSX.Element | null;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { WidthProvider, Responsive } from "react-grid-layout";
|
|
2
|
-
import { a as useAreaStore } from "../../hooks/useArea/index.d6263051.js";
|
|
3
|
-
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { M as MemonizedWindowPopUp } from "../WindowPopUp/index.f053fca7.js";
|
|
5
|
-
import { M as MemonizedWindow, a as MemonizedWindowModal } from "../Window/index.416a874f.js";
|
|
6
|
-
import "react-grid-layout/css/styles.css";
|
|
7
|
-
import "../../../../react-resizable.e86cb01e.js";
|
|
8
|
-
import { shallow } from "zustand/shallow";
|
|
9
|
-
import { R as ROW_HEIGTH_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT } from "../../contexts/AreaContext/index.7890e58d.js";
|
|
10
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
11
|
-
const WrapperPoups = styled("div")(() => ({
|
|
12
|
-
zIndex: 1,
|
|
13
|
-
" .react-draggable": {
|
|
14
|
-
position: "absolute"
|
|
15
|
-
}
|
|
16
|
-
}));
|
|
17
|
-
const WrapperGridLayout = styled("div", {
|
|
18
|
-
shouldForwardProp: (props) => props !== "isDesktop"
|
|
19
|
-
})(({
|
|
20
|
-
isDesktop
|
|
21
|
-
}) => ({
|
|
22
|
-
display: "flex",
|
|
23
|
-
flexDirection: isDesktop ? "row" : "column",
|
|
24
|
-
flexGrow: 1,
|
|
25
|
-
overflowY: "auto",
|
|
26
|
-
height: isDesktop ? "100%" : "unset",
|
|
27
|
-
width: isDesktop ? "unset" : "100%",
|
|
28
|
-
border: "1px dashed black"
|
|
29
|
-
}));
|
|
30
|
-
const ResponsiveGridLayout = WidthProvider(Responsive);
|
|
31
|
-
const GridLayout = () => {
|
|
32
|
-
const areaId = useAreaStore((state) => state.id);
|
|
33
|
-
const isDesktop = useAreaStore((state) => state.isDesktop);
|
|
34
|
-
const gridLayouts = useAreaStore((state) => state.gridLayouts, shallow);
|
|
35
|
-
const hashWindowsPopups = useAreaStore((state) => state.hashWindowsPopups, shallow);
|
|
36
|
-
const hashWindowsLayouts = useAreaStore((state) => state.hashWindowsLayouts, shallow);
|
|
37
|
-
const breakPointsLayouts = useAreaStore((state) => state.breakpointsLayouts, shallow);
|
|
38
|
-
const windowsPopUps = useAreaStore((state) => state.windowsPopUps, shallow);
|
|
39
|
-
const windowModal = useAreaStore((state) => state.windowModal, shallow);
|
|
40
|
-
const breakpoints = useAreaStore((state) => state.breakpoints, shallow);
|
|
41
|
-
const cols = useAreaStore((state) => state.cols, shallow);
|
|
42
|
-
const {
|
|
43
|
-
onBreakpointsLayoutsChange
|
|
44
|
-
} = useAreaStore((state) => state.actions);
|
|
45
|
-
function onBreakpointChange(_newBreakpoint, _newCols) {
|
|
46
|
-
}
|
|
47
|
-
return /* @__PURE__ */ jsxs(WrapperGridLayout, {
|
|
48
|
-
isDesktop,
|
|
49
|
-
className: `M4L_WrapperGridLayout_${isDesktop ? "desktop" : "mobile"} ${`M4L_WrapperGridLayout_${areaId}`}`,
|
|
50
|
-
children: [/* @__PURE__ */ jsxs(ResponsiveGridLayout, {
|
|
51
|
-
className: `M4L_GridLayout M4L_GridLayout_${areaId}`,
|
|
52
|
-
layouts: breakPointsLayouts,
|
|
53
|
-
onLayoutChange: onBreakpointsLayoutsChange,
|
|
54
|
-
onBreakpointChange,
|
|
55
|
-
breakpoints,
|
|
56
|
-
cols,
|
|
57
|
-
rowHeight: ROW_HEIGTH_GRIDLAYOUT,
|
|
58
|
-
margin: [5, 5],
|
|
59
|
-
containerPadding: [CONTAINER_PADDING_GRIDLAYOUT, CONTAINER_PADDING_GRIDLAYOUT],
|
|
60
|
-
draggableHandle: ".m4l_draggable_handle",
|
|
61
|
-
compactType: "horizontal",
|
|
62
|
-
children: [/* @__PURE__ */ jsx(WrapperPoups, {
|
|
63
|
-
id: "WrapperPoups",
|
|
64
|
-
"data-grid": {
|
|
65
|
-
i: "none",
|
|
66
|
-
x: 0,
|
|
67
|
-
y: 0,
|
|
68
|
-
w: 0,
|
|
69
|
-
h: 0,
|
|
70
|
-
maxW: 0,
|
|
71
|
-
maxH: 0,
|
|
72
|
-
minW: 0,
|
|
73
|
-
minH: 0,
|
|
74
|
-
static: true,
|
|
75
|
-
isDraggable: false,
|
|
76
|
-
isResizable: false
|
|
77
|
-
},
|
|
78
|
-
children: windowsPopUps.map((wp) => {
|
|
79
|
-
if (hashWindowsPopups[wp]) {
|
|
80
|
-
return /* @__PURE__ */ jsx(MemonizedWindowPopUp, {
|
|
81
|
-
...hashWindowsPopups[wp]
|
|
82
|
-
}, hashWindowsPopups[wp].windowId);
|
|
83
|
-
}
|
|
84
|
-
return null;
|
|
85
|
-
})
|
|
86
|
-
}, "none"), gridLayouts.map((l) => {
|
|
87
|
-
if (hashWindowsLayouts[l.i]) {
|
|
88
|
-
return /* @__PURE__ */ jsx("div", {
|
|
89
|
-
children: /* @__PURE__ */ jsx(MemonizedWindow, {
|
|
90
|
-
...hashWindowsLayouts[l.i]
|
|
91
|
-
})
|
|
92
|
-
}, l.i);
|
|
93
|
-
}
|
|
94
|
-
return null;
|
|
95
|
-
})]
|
|
96
|
-
}), windowModal && /* @__PURE__ */ jsx(MemonizedWindowModal, {
|
|
97
|
-
...windowModal
|
|
98
|
-
})]
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
export {
|
|
102
|
-
GridLayout as G
|
|
103
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GridLayout: () => JSX.Element;
|