@m4l/components 0.1.65 → 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/components/CommonActions/components/ActionCancel/{index.0f471356.js → index.4d0333c0.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.4d2f599e.js → index.298e0109.js} +10 -15
- package/components/CommonActions/components/ActionFormIntro/{index.0eed3ba3.js → index.b45922ff.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.41a598d6.js → index.138101aa.js} +2 -2
- package/components/CommonActions/components/Actions/{index.3b882471.js → index.77574633.js} +11 -15
- package/components/DataGrid/{index.dc84293a.js → index.ef23d0a9.js} +18 -22
- package/components/DynamicFilter/{index.abc697c7.js → index.04ed3d58.js} +28 -32
- package/components/HelperText/{index.1a24d41b.js → index.c35dcb93.js} +8 -8
- package/components/Icon/{index.6938827f.js → index.fbeeacc8.js} +2 -2
- package/components/Image/{index.674024d4.js → index.77396f79.js} +1 -1
- package/components/LanguagePopover/{index.47aa8119.js → index.c0fc94c7.js} +9 -9
- package/components/ModalDialog/{index.3db4480d.js → index.e600b43a.js} +5 -5
- package/components/NavLink/{index.0d125c6b.js → index.3f4e2417.js} +9 -9
- package/components/NoItemSelected/{index.1aa96110.js → index.609c3c20.js} +1 -1
- package/components/ObjectLogs/{index.05788334.js → index.7f93ba51.js} +14 -18
- package/components/PaperForm/{index.b3da0da3.js → index.fb4fa784.js} +1 -1
- package/components/Period/{index.a1b7b4cc.js → index.0c5bf66f.js} +12 -16
- package/components/Resizeable/{index.ee84ebc5.js → index.4545dd6a.js} +1 -1
- package/components/SideBar/{index.99ce4e06.js → index.7d970041.js} +6 -6
- package/components/areas/components/index.d.ts +0 -1
- package/components/areas/{components/AreasViewer/index.1aa4d12d.js → index.d7519516.js} +2199 -1755
- package/components/formatters/BooleanFormatter/{index.7b9e92f8.js → index.0edacc9b.js} +1 -1
- package/components/formatters/{index.01b027ad.js → index.879170b2.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.73d33896.js → index.5f27e28c.js} +10 -10
- package/components/hook-form/RHFAutocompleteAsync/{index.21f4cb53.js → index.35e17cd6.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.c3b1884b.js → index.4f134f09.js} +3 -3
- package/components/hook-form/RHFPeriod/{index.cc624bb3.js → index.dcaa0c87.js} +2 -2
- package/components/hook-form/RHFTextField/{index.15659666.js → index.fc90a570.js} +6 -6
- package/components/hook-form/RHFUpload/{index.ecf5c788.js → index.654ad316.js} +1 -1
- package/components/modal/{WindowBase.1b0657de.js → WindowBase.230a498f.js} +3 -3
- package/components/modal/{WindowConfirm.60028bce.js → WindowConfirm.575b4d41.js} +14 -18
- package/components/modal/index.237881ea.js +23 -0
- package/components/mui_extended/Accordion/{index.95a1b021.js → index.0b15f939.js} +2 -2
- package/components/mui_extended/Button/{index.e4c61b66.js → index.b7b70e5f.js} +3 -3
- package/components/mui_extended/IconButton/{index.78a489d3.js → index.a5072cd3.js} +1 -1
- package/components/mui_extended/MenuActions/{index.742a57d7.js → index.3a275abb.js} +2 -2
- package/components/mui_extended/Pager/{index.a44594e9.js → index.5a69ab10.js} +1 -1
- package/components/mui_extended/Typography/{index.86505aed.js → index.eab3d85c.js} +1 -1
- package/components/mui_extended/index.35f74599.js +19 -0
- package/contexts/ModalContext/{index.bfc47ba9.js → index.de0a3457.js} +1 -1
- package/hooks/useModal/{index.979ab2ea.js → index.e103db09.js} +1 -1
- package/index.js +89 -98
- package/package.json +1 -1
- package/{react-draggable.d6441025.js → react-draggable.4d08d714.js} +1 -1
- package/{react-resizable.79fb7404.js → react-resizable.23b980cb.js} +3 -3
- package/utils/{index.64775c34.js → index.c2e62d8f.js} +1 -1
- package/{vendor.2d9f95b4.js → vendor.be57c149.js} +40 -47
- package/components/areas/components/AreasAdmin/index.46fab65b.js +0 -135
- package/components/areas/components/index.9de77fae.js +0 -12
- package/components/areas/contexts/AreasContext/index.b3b26965.js +0 -231
- package/components/areas/contexts/DynamicMFParmsContext/index.5b3248df.js +0 -43
- package/components/areas/contexts/index.4ebef035.js +0 -21
- package/components/areas/hooks/index.ffb1009e.js +0 -28
- package/components/areas/hooks/useArea/index.c7e4f3fc.js +0 -34
- package/components/areas/hooks/useDynamicMFParameters/index.9a25f88a.js +0 -14
- package/components/areas/index.bfe6bf91.js +0 -46
- package/components/modal/index.fde6acc3.js +0 -27
- package/components/mui_extended/index.61356a6a.js +0 -19
package/index.js
CHANGED
|
@@ -2,84 +2,77 @@ import { v } from "./components/animate/variants/fade.b561c0fc.js";
|
|
|
2
2
|
import { v as v2 } from "./components/animate/variants/bounce.784aaaaa.js";
|
|
3
3
|
import { v as v3 } from "./components/animate/variants/container.11f82b76.js";
|
|
4
4
|
import { v as v4, a, b } from "./components/animate/variants/transition.bd46b9ce.js";
|
|
5
|
-
import { I, a as a2 } from "./components/Icon/index.
|
|
5
|
+
import { I, a as a2 } from "./components/Icon/index.fbeeacc8.js";
|
|
6
6
|
import { M } from "./components/animate/MotionContainer/index.8d9f9d80.js";
|
|
7
7
|
import { M as M2 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
|
|
8
8
|
import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
|
|
9
9
|
import { P } from "./components/animate/PropagateLoader/index.be5b02c3.js";
|
|
10
|
-
import { a as a3, b as b2 } from "./components/areas/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { u } from "./components/areas/hooks/useDynamicMFParameters/index.9a25f88a.js";
|
|
15
|
-
import { u as u2 } from "./components/areas/hooks/index.ffb1009e.js";
|
|
16
|
-
import { b as b3, D, L as L2, c, g } from "./components/areas/index.bfe6bf91.js";
|
|
17
|
-
import { R, g as g2 } from "./components/hook-form/RHFAutocomplete/index.73d33896.js";
|
|
18
|
-
import { R as R2, g as g3 } from "./components/hook-form/RHFAutocompleteAsync/index.21f4cb53.js";
|
|
19
|
-
import { R as R3 } from "./components/hook-form/RHFCheckbox/index.c3b1884b.js";
|
|
10
|
+
import { f, A, d, c, a as a3, D, j, i, L as L2, M as M3, b as b2, W, g, h, e, u } from "./components/areas/index.d7519516.js";
|
|
11
|
+
import { R, g as g2 } from "./components/hook-form/RHFAutocomplete/index.5f27e28c.js";
|
|
12
|
+
import { R as R2, g as g3 } from "./components/hook-form/RHFAutocompleteAsync/index.35e17cd6.js";
|
|
13
|
+
import { R as R3 } from "./components/hook-form/RHFCheckbox/index.4f134f09.js";
|
|
20
14
|
import { R as R4 } from "./components/hook-form/RHFDateTime/index.6c129ce4.js";
|
|
21
15
|
import { R as R5 } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
|
|
22
16
|
import { R as R6 } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
|
|
23
|
-
import { R as R7, a as
|
|
17
|
+
import { R as R7, a as a4 } from "./components/hook-form/RHFTextField/index.fc90a570.js";
|
|
24
18
|
import { R as R8 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
|
|
25
|
-
import { R as R9 } from "./components/hook-form/RHFPeriod/index.
|
|
26
|
-
import { P as P2, g as g4 } from "./components/Period/index.
|
|
27
|
-
import { R as R10 } from "./components/hook-form/RHFUpload/index.
|
|
28
|
-
import { A as
|
|
29
|
-
import { A as
|
|
19
|
+
import { R as R9 } from "./components/hook-form/RHFPeriod/index.dcaa0c87.js";
|
|
20
|
+
import { P as P2, g as g4 } from "./components/Period/index.0c5bf66f.js";
|
|
21
|
+
import { R as R10 } from "./components/hook-form/RHFUpload/index.654ad316.js";
|
|
22
|
+
import { A as A2 } from "./components/mui_extended/Accordion/index.0b15f939.js";
|
|
23
|
+
import { A as A3 } from "./components/mui_extended/Avatar/index.fe06afd7.js";
|
|
30
24
|
import { B } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
31
25
|
import { B as B2 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
32
|
-
import { B as B3, I as I2, L as L3 } from "./components/mui_extended/Button/index.
|
|
26
|
+
import { B as B3, I as I2, L as L3 } from "./components/mui_extended/Button/index.b7b70e5f.js";
|
|
33
27
|
import { C } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
34
|
-
import { I as I3 } from "./components/mui_extended/IconButton/index.
|
|
28
|
+
import { I as I3 } from "./components/mui_extended/IconButton/index.a5072cd3.js";
|
|
35
29
|
import { L as L4 } from "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
36
30
|
import { L as L5 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
37
|
-
import { M as
|
|
31
|
+
import { M as M4 } from "./components/mui_extended/MenuActions/index.3a275abb.js";
|
|
38
32
|
import { P as P3 } from "./components/mui_extended/Popover/index.e271e4f0.js";
|
|
39
|
-
import { P as P4, g as g5 } from "./components/mui_extended/Pager/index.
|
|
33
|
+
import { P as P4, g as g5 } from "./components/mui_extended/Pager/index.5a69ab10.js";
|
|
40
34
|
import { T } from "./components/mui_extended/Tab/index.e0653a0a.js";
|
|
41
|
-
import { T as T2 } from "./components/mui_extended/Typography/index.
|
|
42
|
-
import { B as B4 } from "./components/formatters/BooleanFormatter/index.
|
|
35
|
+
import { T as T2 } from "./components/mui_extended/Typography/index.eab3d85c.js";
|
|
36
|
+
import { B as B4 } from "./components/formatters/BooleanFormatter/index.0edacc9b.js";
|
|
43
37
|
import { D as D2, g as g6 } from "./components/formatters/DateFormatter/index.578a9f53.js";
|
|
44
38
|
import { U, g as g7 } from "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
|
|
45
39
|
import { P as P5, g as g8 } from "./components/formatters/PointsFormatter/index.80a4e414.js";
|
|
46
|
-
import { C as C2, F, P as P6, g as g9, a as
|
|
40
|
+
import { C as C2, F, P as P6, g as g9, a as a5, b as b3 } from "./components/formatters/index.879170b2.js";
|
|
47
41
|
import { P as P7, g as g10 } from "./components/formatters/PriceFormatter/index.83cbe7be.js";
|
|
48
|
-
import { D as D3, N, T as T3, c as c2, d, b as
|
|
42
|
+
import { D as D3, N, T as T3, c as c2, d as d2, b as b4, a as a6, g as g11 } from "./components/DataGrid/index.ef23d0a9.js";
|
|
49
43
|
import { c as c3 } from "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
|
|
50
44
|
import { c as c4 } from "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
|
|
51
45
|
import { c as c5 } from "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
|
|
52
46
|
import { c as c6 } from "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
53
|
-
import { D as D4, g as g12 } from "./components/DynamicFilter/index.
|
|
54
|
-
import { H, e } from "./components/HelperText/index.
|
|
55
|
-
import { A as
|
|
56
|
-
import { A as
|
|
57
|
-
import { A as
|
|
58
|
-
import { A as
|
|
59
|
-
import { A as
|
|
60
|
-
import { a as
|
|
61
|
-
import { L as L6 } from "./components/LanguagePopover/index.
|
|
62
|
-
import { I as I4 } from "./components/Image/index.
|
|
47
|
+
import { D as D4, g as g12 } from "./components/DynamicFilter/index.04ed3d58.js";
|
|
48
|
+
import { H, e as e2 } from "./components/HelperText/index.c35dcb93.js";
|
|
49
|
+
import { A as A4, d as d3, g as g13 } from "./components/CommonActions/components/Actions/index.77574633.js";
|
|
50
|
+
import { A as A5 } from "./components/CommonActions/components/ActionCancel/index.4d0333c0.js";
|
|
51
|
+
import { A as A6 } from "./components/CommonActions/components/ActionIntro/index.138101aa.js";
|
|
52
|
+
import { A as A7 } from "./components/CommonActions/components/ActionFormCancel/index.298e0109.js";
|
|
53
|
+
import { A as A8 } from "./components/CommonActions/components/ActionFormIntro/index.b45922ff.js";
|
|
54
|
+
import { a as a7, A as A9, D as D5 } from "./vendor.be57c149.js";
|
|
55
|
+
import { L as L6 } from "./components/LanguagePopover/index.c0fc94c7.js";
|
|
56
|
+
import { I as I4 } from "./components/Image/index.77396f79.js";
|
|
63
57
|
import { L as L7 } from "./components/Loadable/index.117eaced.js";
|
|
64
|
-
import { M as
|
|
65
|
-
import { W as W2 } from "./components/modal/WindowConfirm.
|
|
66
|
-
import { W as W3 } from "./components/modal/WindowBase.
|
|
67
|
-
import { N as N2 } from "./components/NavLink/index.
|
|
68
|
-
import { N as N3, d as
|
|
69
|
-
import { O, d as
|
|
70
|
-
import { P as P8 } from "./components/PaperForm/index.
|
|
58
|
+
import { M as M5, d as d4, g as g14 } from "./components/ModalDialog/index.e600b43a.js";
|
|
59
|
+
import { W as W2 } from "./components/modal/WindowConfirm.575b4d41.js";
|
|
60
|
+
import { W as W3 } from "./components/modal/WindowBase.230a498f.js";
|
|
61
|
+
import { N as N2 } from "./components/NavLink/index.3f4e2417.js";
|
|
62
|
+
import { N as N3, d as d5, g as g15 } from "./components/NoItemSelected/index.609c3c20.js";
|
|
63
|
+
import { O, d as d6, g as g16 } from "./components/ObjectLogs/index.7f93ba51.js";
|
|
64
|
+
import { P as P8 } from "./components/PaperForm/index.fb4fa784.js";
|
|
71
65
|
import { H as H2 } from "./components/Page/index.4237c241.js";
|
|
72
66
|
import { P as P9 } from "./components/PropertyValue/index.dfcfe1ba.js";
|
|
73
|
-
import { R as R11 } from "./components/Resizeable/index.
|
|
67
|
+
import { R as R11 } from "./components/Resizeable/index.4545dd6a.js";
|
|
74
68
|
import { S } from "./components/ScrollBar/index.bbe48f4d.js";
|
|
75
69
|
import { S as S2 } from "./components/ScrollToTop/index.e06f98f6.js";
|
|
76
70
|
import { S as S3 } from "./components/SplitLayout/index.5a8355d8.js";
|
|
77
|
-
import { S as S4 } from "./components/SideBar/index.
|
|
78
|
-
import {
|
|
79
|
-
import { M as M6, a as a11 } from "./contexts/ModalContext/index.bfc47ba9.js";
|
|
71
|
+
import { S as S4 } from "./components/SideBar/index.7d970041.js";
|
|
72
|
+
import { M as M6, a as a8 } from "./contexts/ModalContext/index.de0a3457.js";
|
|
80
73
|
import { R as R12 } from "./contexts/RHFormContext/index.a7511399.js";
|
|
81
|
-
import { u as
|
|
82
|
-
import { u as
|
|
74
|
+
import { u as u2 } from "./hooks/useFormAddEdit/index.15de3ba8.js";
|
|
75
|
+
import { u as u3 } from "./hooks/useModal/index.e103db09.js";
|
|
83
76
|
import { L as L8 } from "./assets/Logo/index.228dcb5a.js";
|
|
84
77
|
import "framer-motion";
|
|
85
78
|
import "react";
|
|
@@ -89,25 +82,24 @@ import "@m4l/core";
|
|
|
89
82
|
import "@mui/base";
|
|
90
83
|
import "@mui/material/styles";
|
|
91
84
|
import "./node_modules.416f1da3.js";
|
|
92
|
-
import "./react-resizable.79fb7404.js";
|
|
93
|
-
import "./react-draggable.d6441025.js";
|
|
94
|
-
import "prop-types";
|
|
95
|
-
import "react-dom";
|
|
96
|
-
import "clsx";
|
|
97
|
-
import "./utils/index.64775c34.js";
|
|
98
85
|
import "zustand/shallow";
|
|
86
|
+
import "clsx";
|
|
99
87
|
import "zustand";
|
|
100
|
-
import "
|
|
88
|
+
import "@m4l/graphics";
|
|
101
89
|
import "zustand/middleware";
|
|
90
|
+
import "zustand/middleware/immer";
|
|
91
|
+
import "./utils/index.c2e62d8f.js";
|
|
92
|
+
import "react-router-dom";
|
|
93
|
+
import "@mui/material/Button";
|
|
94
|
+
import "@mui/lab";
|
|
95
|
+
import "./react-resizable.23b980cb.js";
|
|
96
|
+
import "./react-draggable.4d08d714.js";
|
|
97
|
+
import "prop-types";
|
|
98
|
+
import "react-dom";
|
|
102
99
|
import "lodash/debounce";
|
|
103
100
|
import "lodash.clonedeep";
|
|
104
|
-
import "./components/areas/hooks/useArea/index.c7e4f3fc.js";
|
|
105
|
-
import "@m4l/graphics";
|
|
106
101
|
import "react-grid-layout";
|
|
107
|
-
import "react-router-dom";
|
|
108
102
|
import "react-hook-form";
|
|
109
|
-
import "@mui/material/Button";
|
|
110
|
-
import "@mui/lab";
|
|
111
103
|
import "@mui/x-date-pickers";
|
|
112
104
|
import "lodash/isString";
|
|
113
105
|
import "react-dropzone";
|
|
@@ -124,21 +116,20 @@ import "react-helmet-async";
|
|
|
124
116
|
import "simplebar-react";
|
|
125
117
|
import "simplebar/dist/simplebar.min.css?used";
|
|
126
118
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
a3 as Area,
|
|
119
|
+
f as AREAS_DICTIONARY_ID,
|
|
120
|
+
A2 as Accordion,
|
|
121
|
+
a7 as AccountPopover,
|
|
122
|
+
A5 as ActionCancel,
|
|
123
|
+
A7 as ActionFormCancel,
|
|
124
|
+
A8 as ActionFormIntro,
|
|
125
|
+
A6 as ActionIntro,
|
|
126
|
+
A4 as Actions,
|
|
127
|
+
A9 as AppBar,
|
|
137
128
|
A as AreasAdmin,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
129
|
+
d as AreasContext,
|
|
130
|
+
c as AreasProvider,
|
|
131
|
+
a3 as AreasViewer,
|
|
132
|
+
A3 as Avatar,
|
|
142
133
|
B4 as BooleanFormatter,
|
|
143
134
|
B as BoxIcon,
|
|
144
135
|
B2 as Breadcrumbs,
|
|
@@ -150,8 +141,8 @@ export {
|
|
|
150
141
|
D2 as DateFormatter,
|
|
151
142
|
D5 as DraggableWindow,
|
|
152
143
|
D4 as DynamicFilter,
|
|
153
|
-
|
|
154
|
-
|
|
144
|
+
j as DynamicMFParmsContext,
|
|
145
|
+
i as DynamicMFParmsProvider,
|
|
155
146
|
F as FORMATTER_DICTIONARY,
|
|
156
147
|
H2 as HelmetPage,
|
|
157
148
|
H as HelperText,
|
|
@@ -168,11 +159,11 @@ export {
|
|
|
168
159
|
L3 as LoadingButton,
|
|
169
160
|
L as LoadingScreen,
|
|
170
161
|
L8 as Logo,
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
M3 as MemonizedDynamicMFParmsProvider,
|
|
163
|
+
M4 as MenuActions,
|
|
173
164
|
M6 as ModalContext,
|
|
174
|
-
|
|
175
|
-
|
|
165
|
+
M5 as ModalDialog,
|
|
166
|
+
a8 as ModalProvider,
|
|
176
167
|
M as MotionContainer,
|
|
177
168
|
M2 as MotionLazyContainer,
|
|
178
169
|
N2 as NavLink,
|
|
@@ -197,7 +188,7 @@ export {
|
|
|
197
188
|
R8 as RHFRadioGroup,
|
|
198
189
|
R6 as RHFSelect,
|
|
199
190
|
R7 as RHFTextField,
|
|
200
|
-
|
|
191
|
+
a4 as RHFTextFieldPassword,
|
|
201
192
|
R10 as RHFUploadImage,
|
|
202
193
|
R12 as RHFormProvider,
|
|
203
194
|
R11 as ResizeableWindow,
|
|
@@ -211,31 +202,31 @@ export {
|
|
|
211
202
|
U as UncertaintyFormatter,
|
|
212
203
|
W3 as WindowBase,
|
|
213
204
|
W2 as WindowConfirm,
|
|
214
|
-
|
|
205
|
+
b2 as WindowToolsMFContext,
|
|
215
206
|
W as WindowToolsMFProvider,
|
|
216
207
|
c2 as columnBooleanFormatter,
|
|
217
|
-
|
|
218
|
-
|
|
208
|
+
d2 as columnConcatenatedValuesFormatter,
|
|
209
|
+
b4 as columnDateFormatter,
|
|
219
210
|
c5 as columnNestedValueFormatter,
|
|
220
211
|
c4 as columnPointsFormatter,
|
|
221
212
|
c6 as columnPriceFormatter,
|
|
222
213
|
c3 as columnUncertaintyFormatter,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
214
|
+
d3 as defaultCommonActionsDictionary,
|
|
215
|
+
d4 as defaultModalDialogDictionary,
|
|
216
|
+
d5 as defaultNoItemSelectedDictionary,
|
|
217
|
+
d6 as defaultObjectLogDictionary,
|
|
218
|
+
e2 as errorLabelClasses,
|
|
219
|
+
g as getAreasComponentsDictionary,
|
|
220
|
+
h as getAreasDictionary,
|
|
230
221
|
g13 as getCommonActionsDictionary,
|
|
231
|
-
|
|
222
|
+
a6 as getDataGridRowsFromSet,
|
|
232
223
|
g12 as getDynamicFilterComponentsDictionary,
|
|
233
224
|
g9 as getFormatConcatenated,
|
|
234
225
|
g6 as getFormatDate,
|
|
235
|
-
|
|
226
|
+
a5 as getFormatPeriod,
|
|
236
227
|
g8 as getFormatPoints,
|
|
237
228
|
g10 as getFormatPrice,
|
|
238
|
-
|
|
229
|
+
b3 as getFormattersComponentsDictionary,
|
|
239
230
|
g11 as getGridComponentsDictionary,
|
|
240
231
|
g14 as getModalDialogComponentsDictionary,
|
|
241
232
|
g15 as getNoItemSelectedComponentsDictionary,
|
|
@@ -245,10 +236,10 @@ export {
|
|
|
245
236
|
g3 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
246
237
|
g2 as getRHFAutocompleteComponentsDictionary,
|
|
247
238
|
g7 as getUncertaintyFormat,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
239
|
+
e as useDynamicMFParametersStore,
|
|
240
|
+
u2 as useFormAddEdit,
|
|
241
|
+
u3 as useModal,
|
|
242
|
+
u as useWindowToolsMF,
|
|
252
243
|
v2 as varBounce,
|
|
253
244
|
v3 as varContainer,
|
|
254
245
|
v as varFade,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import React__default from "react";
|
|
|
2
2
|
import require$$1 from "prop-types";
|
|
3
3
|
import require$$2 from "react-dom";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.
|
|
5
|
+
import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.c2e62d8f.js";
|
|
6
6
|
var cjs = { exports: {} };
|
|
7
7
|
var Draggable$1 = {};
|
|
8
8
|
var DraggableCore$2 = {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { c as cjs } from "./react-draggable.
|
|
3
|
-
import { u as utils } from "./utils/index.
|
|
2
|
+
import { c as cjs } from "./react-draggable.4d08d714.js";
|
|
3
|
+
import { u as utils } from "./utils/index.c2e62d8f.js";
|
|
4
4
|
import require$$1 from "prop-types";
|
|
5
|
+
const react_resizable_css = ".react-resizable {\n position: relative;\n}\n.react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');\n background-position: bottom right;\n padding: 0 3px 3px 0;\n}\n.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.react-resizable-handle-w,\n.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.react-resizable-handle-n,\n.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}";
|
|
5
6
|
var reactResizable = { exports: {} };
|
|
6
7
|
var Resizable$1 = {};
|
|
7
8
|
var propTypes = {};
|
|
@@ -574,7 +575,6 @@ reactResizable.exports = function() {
|
|
|
574
575
|
};
|
|
575
576
|
reactResizable.exports.Resizable = Resizable$1.default;
|
|
576
577
|
var ResizableBox = reactResizable.exports.ResizableBox = ResizableBox$2.default;
|
|
577
|
-
const react_resizable_css = ".react-resizable {\n position: relative;\n}\n.react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');\n background-position: bottom right;\n padding: 0 3px 3px 0;\n}\n.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.react-resizable-handle-w,\n.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.react-resizable-handle-n,\n.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}";
|
|
578
578
|
export {
|
|
579
579
|
ResizableBox as R,
|
|
580
580
|
react_resizable_css as r
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { generateUtilityClass } from "@mui/material";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { I as ICON_PREFIX } from "../vendor.
|
|
3
|
+
import { I as ICON_PREFIX } from "../vendor.be57c149.js";
|
|
4
4
|
function isValidDate(d) {
|
|
5
5
|
return d && d instanceof Date && !isNaN(d.getTime());
|
|
6
6
|
}
|
|
@@ -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,78 +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
26
|
import { P as Popover } from "./components/mui_extended/Popover/index.e271e4f0.js";
|
|
27
|
-
import "./components/mui_extended/MenuActions/index.
|
|
28
|
-
import "./components/mui_extended/Pager/index.
|
|
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/AreasViewer/index.1aa4d12d.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";
|
|
47
46
|
import "zustand";
|
|
48
|
-
import "./components/areas/contexts/AreasContext/index.b3b26965.js";
|
|
49
|
-
import { A as AreasAdmin } from "./components/areas/components/AreasAdmin/index.46fab65b.js";
|
|
50
47
|
import "zustand/shallow";
|
|
51
|
-
import "./components/areas/contexts/index.4ebef035.js";
|
|
52
48
|
import "lodash/isString";
|
|
53
49
|
import "react-dropzone";
|
|
54
|
-
import "./components/hook-form/RHFUpload/index.
|
|
55
|
-
import "./components/DataGrid/index.
|
|
50
|
+
import "./components/hook-form/RHFUpload/index.654ad316.js";
|
|
51
|
+
import "./components/DataGrid/index.ef23d0a9.js";
|
|
56
52
|
import "react-dnd";
|
|
57
53
|
import "react-dnd-html5-backend";
|
|
58
|
-
import "./components/DynamicFilter/index.
|
|
54
|
+
import "./components/DynamicFilter/index.04ed3d58.js";
|
|
59
55
|
import "./components/ScrollBar/index.bbe48f4d.js";
|
|
60
56
|
import "yup";
|
|
61
|
-
import "./components/LanguagePopover/index.
|
|
62
|
-
import "./components/NavLink/index.
|
|
63
|
-
import "./components/NoItemSelected/index.
|
|
64
|
-
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";
|
|
65
61
|
import "./react-json-view.57125fcf.js";
|
|
66
|
-
import "./components/PaperForm/index.
|
|
62
|
+
import "./components/PaperForm/index.fb4fa784.js";
|
|
67
63
|
import "./components/Page/index.4237c241.js";
|
|
68
64
|
import "./components/PropertyValue/index.dfcfe1ba.js";
|
|
69
65
|
import "./react-splitter-layout.8b1655c8.js";
|
|
70
66
|
import "./components/SplitLayout/index.5a8355d8.js";
|
|
71
|
-
import "./components/SideBar/index.
|
|
67
|
+
import "./components/SideBar/index.7d970041.js";
|
|
72
68
|
import "./components/animate/variants/fade.b561c0fc.js";
|
|
73
69
|
import "./components/animate/variants/bounce.784aaaaa.js";
|
|
74
70
|
import "./components/animate/variants/container.11f82b76.js";
|
|
75
71
|
import "./components/animate/variants/transition.bd46b9ce.js";
|
|
76
72
|
import "./components/animate/MotionContainer/index.8d9f9d80.js";
|
|
77
73
|
import "./components/animate/MotionLazyContainer/index.572dd012.js";
|
|
78
|
-
import "./components/areas/hooks/useDynamicMFParameters/index.9a25f88a.js";
|
|
79
|
-
import "./components/areas/hooks/index.ffb1009e.js";
|
|
80
|
-
import "./components/areas/index.bfe6bf91.js";
|
|
81
74
|
import "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
|
|
82
75
|
import "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
|
|
83
76
|
import "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
|
|
@@ -86,26 +79,26 @@ import "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
|
86
79
|
import { C as CircularProgress } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
87
80
|
import "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
88
81
|
import "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
89
|
-
import "./components/formatters/BooleanFormatter/index.
|
|
82
|
+
import "./components/formatters/BooleanFormatter/index.0edacc9b.js";
|
|
90
83
|
import "./components/formatters/DateFormatter/index.578a9f53.js";
|
|
91
84
|
import "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
|
|
92
85
|
import "./components/formatters/PointsFormatter/index.80a4e414.js";
|
|
93
|
-
import "./components/formatters/index.
|
|
86
|
+
import "./components/formatters/index.879170b2.js";
|
|
94
87
|
import "./components/formatters/PriceFormatter/index.83cbe7be.js";
|
|
95
88
|
import "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
|
|
96
89
|
import "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
|
|
97
90
|
import "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
|
|
98
91
|
import "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
99
|
-
import "./components/CommonActions/components/ActionCancel/index.
|
|
100
|
-
import "./components/CommonActions/components/ActionIntro/index.
|
|
101
|
-
import "./components/CommonActions/components/ActionFormCancel/index.
|
|
102
|
-
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";
|
|
103
96
|
import "./components/Loadable/index.117eaced.js";
|
|
104
97
|
import "./components/ScrollToTop/index.e06f98f6.js";
|
|
105
98
|
import { unstable_composeClasses } from "@mui/base";
|
|
106
|
-
import { c as getNameDataTestId } from "./utils/index.
|
|
99
|
+
import { c as getNameDataTestId } from "./utils/index.c2e62d8f.js";
|
|
107
100
|
import "./hooks/useFormAddEdit/index.15de3ba8.js";
|
|
108
|
-
import "./hooks/useModal/index.
|
|
101
|
+
import "./hooks/useModal/index.e103db09.js";
|
|
109
102
|
import "./assets/Logo/index.228dcb5a.js";
|
|
110
103
|
const TEST_PROP_ID = "data-testid";
|
|
111
104
|
const DraggableWindow = (props) => {
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.78a489d3.js";
|
|
2
|
-
import { u as useAreasStore } from "../../hooks/useArea/index.c7e4f3fc.js";
|
|
3
|
-
import { useEnvironment } from "@m4l/core";
|
|
4
|
-
import { generateUtilityClasses } from "@mui/material";
|
|
5
|
-
import "../../../Icon/index.6938827f.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
import "../../../mui_extended/Accordion/index.95a1b021.js";
|
|
9
|
-
import "../../../mui_extended/Avatar/index.fe06afd7.js";
|
|
10
|
-
import "react-router-dom";
|
|
11
|
-
import "@mui/material/Button";
|
|
12
|
-
import "../../../mui_extended/Button/index.e4c61b66.js";
|
|
13
|
-
import clsx from "clsx";
|
|
14
|
-
import "../../../Image/index.674024d4.js";
|
|
15
|
-
import "@mui/lab";
|
|
16
|
-
import "../../../mui_extended/Typography/index.86505aed.js";
|
|
17
|
-
import "../../../mui_extended/Popover/index.e271e4f0.js";
|
|
18
|
-
import "../../../mui_extended/MenuActions/index.742a57d7.js";
|
|
19
|
-
import "../../../mui_extended/Pager/index.a44594e9.js";
|
|
20
|
-
import "../../../mui_extended/Tab/index.e0653a0a.js";
|
|
21
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
22
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.64775c34.js";
|
|
23
|
-
import { A as AREAS_ADMIN_CLASS_NAME, I as ICONS } from "../../index.bfe6bf91.js";
|
|
24
|
-
import { shallow } from "zustand/shallow";
|
|
25
|
-
import { styled } from "@mui/material/styles";
|
|
26
|
-
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
27
|
-
"root",
|
|
28
|
-
"areaChipRoot",
|
|
29
|
-
"areaChipTitle",
|
|
30
|
-
"areaChipDeleteButton",
|
|
31
|
-
"areaChipEditButton",
|
|
32
|
-
"areasAddButton",
|
|
33
|
-
"selected",
|
|
34
|
-
"isMobile"
|
|
35
|
-
], AREAS_ADMIN_CLASS_NAME);
|
|
36
|
-
const useAreasAdminUtilityClasses = (ownerState) => {
|
|
37
|
-
const slots = {
|
|
38
|
-
root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
|
|
39
|
-
areaChipRoot: ["areaChipRoot"],
|
|
40
|
-
areaChipTitle: ["areaChipTitle"],
|
|
41
|
-
areaChipDeleteButton: ["areaChipDeleteButton"],
|
|
42
|
-
areaChipEditButton: ["areaChipEditButton"],
|
|
43
|
-
areasAddButton: ["areasAddButton"]
|
|
44
|
-
};
|
|
45
|
-
return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_ADMIN_CLASS_NAME), {});
|
|
46
|
-
};
|
|
47
|
-
const AreaChip = (props) => {
|
|
48
|
-
const {
|
|
49
|
-
areaId,
|
|
50
|
-
selected,
|
|
51
|
-
areaName
|
|
52
|
-
} = props;
|
|
53
|
-
const {
|
|
54
|
-
host_static_assets,
|
|
55
|
-
environment_assets
|
|
56
|
-
} = useEnvironment();
|
|
57
|
-
const {
|
|
58
|
-
deleteArea,
|
|
59
|
-
selectArea
|
|
60
|
-
} = useAreasStore((state) => state.actions);
|
|
61
|
-
const onClickDeleteArea = (e) => {
|
|
62
|
-
e.stopPropagation();
|
|
63
|
-
deleteArea(areaId);
|
|
64
|
-
};
|
|
65
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
66
|
-
role: "presentation",
|
|
67
|
-
className: clsx(areasAdminClasses.areaChipRoot, selected ? areasAdminClasses.selected : null),
|
|
68
|
-
onClick: () => {
|
|
69
|
-
selectArea(areaId);
|
|
70
|
-
},
|
|
71
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
72
|
-
className: areasAdminClasses.areaChipTitle,
|
|
73
|
-
children: areaName
|
|
74
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
75
|
-
className: areasAdminClasses.areaChipDeleteButton,
|
|
76
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
77
|
-
size: "small",
|
|
78
|
-
onClick: onClickDeleteArea
|
|
79
|
-
})]
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
AreaChip.displayName = "AreaButtons";
|
|
83
|
-
const AreasAdminRoot = styled("div")`
|
|
84
|
-
display: flex;
|
|
85
|
-
position: relative;
|
|
86
|
-
|
|
87
|
-
//areaRoot
|
|
88
|
-
& .${areasAdminClasses.areaChipRoot} {
|
|
89
|
-
display: flex;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
& .${areasAdminClasses.areaChipRoot}.${areasAdminClasses.selected}::before {
|
|
93
|
-
content: "";
|
|
94
|
-
background-color: ${(props) => props.theme.palette.primary.main};
|
|
95
|
-
height: 100%;
|
|
96
|
-
width: 8px;
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
${(props) => props.theme.components?.M4LAreasAdmin}
|
|
100
|
-
|
|
101
|
-
`;
|
|
102
|
-
function AreasAdmin() {
|
|
103
|
-
const areas = useAreasStore((state) => state.areas, shallow);
|
|
104
|
-
const currentArea = useAreasStore((state) => state.currentArea, shallow);
|
|
105
|
-
const status = useAreasStore((state) => state.ownerState.status);
|
|
106
|
-
const classesRoot = useAreasStore((state) => state.adminClasses.root);
|
|
107
|
-
const {
|
|
108
|
-
addArea
|
|
109
|
-
} = useAreasStore((state) => state.actions, shallow);
|
|
110
|
-
const {
|
|
111
|
-
host_static_assets,
|
|
112
|
-
environment_assets
|
|
113
|
-
} = useEnvironment();
|
|
114
|
-
console.log("Render AreasAdmin", status, areas);
|
|
115
|
-
if (status !== "loaded") {
|
|
116
|
-
return null;
|
|
117
|
-
}
|
|
118
|
-
return /* @__PURE__ */ jsxs(AreasAdminRoot, {
|
|
119
|
-
className: classesRoot,
|
|
120
|
-
children: [areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
|
|
121
|
-
areaId: area.id,
|
|
122
|
-
selected: area.id === currentArea,
|
|
123
|
-
areaName: area.name
|
|
124
|
-
}, area.id)), /* @__PURE__ */ jsx(IconButton, {
|
|
125
|
-
className: areasAdminClasses.areasAddButton,
|
|
126
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
127
|
-
size: "small",
|
|
128
|
-
onClick: addArea
|
|
129
|
-
})]
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
export {
|
|
133
|
-
AreasAdmin as A,
|
|
134
|
-
useAreasAdminUtilityClasses as u
|
|
135
|
-
};
|