@m4l/components 0.1.13 → 0.1.15
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/assets/Logo/index.js +91 -0
- package/commonjs.js +9 -0
- package/components/CommonActions/components/ActionCancel/index.js +15 -0
- package/components/CommonActions/components/ActionFormCancel/index.js +62 -0
- package/components/CommonActions/components/ActionFormIntro/index.js +35 -0
- package/components/CommonActions/components/ActionIntro/index.js +16 -0
- package/components/CommonActions/components/Actions/index.js +859 -0
- package/components/CompanyLogo/{index.f81c179c.js → index.js} +48 -42
- package/components/DataGrid/index.js +1067 -0
- package/components/DynamicFilter/index.js +1573 -0
- package/components/ErrorLabel/index.js +18 -0
- package/components/Icon/index.js +80 -0
- package/components/Image/index.js +128 -0
- package/components/LanguagePopover/index.js +93 -0
- package/components/Loadable/index.js +13 -0
- package/components/ModalDialog/index.js +180 -0
- package/components/NoItemSelected/{index.12f0ca67.js → index.js} +50 -43
- package/components/ObjectLogs/index.js +284 -0
- package/components/Page/index.js +36 -0
- package/components/PaperForm/index.js +110 -0
- package/components/Period/index.js +230 -0
- package/components/PropertyValue/index.js +142 -0
- package/components/Resizeable/{index.45995d2b.js → index.js} +19 -21
- package/components/ScrollBar/index.js +52 -0
- package/components/ScrollToTop/index.js +10 -0
- package/components/SplitLayout/{index.4032673d.js → index.js} +35 -35
- package/components/animate/LoadingScreen/{index.f1cec7db.js → index.js} +27 -29
- package/components/animate/MotionContainer/index.js +31 -0
- package/components/animate/MotionLazyContainer/index.js +13 -0
- package/components/animate/features.js +2 -0
- package/components/animate/variants/{bounce.784aaaaa.js → bounce.js} +16 -15
- package/components/animate/variants/container.js +20 -0
- package/components/animate/variants/fade.js +61 -0
- package/components/animate/variants/{index.7a912140.js → index.js} +0 -0
- package/components/animate/variants/transition.js +16 -0
- package/components/formatters/BooleanFormatter/index.js +52 -0
- package/components/formatters/DateFormatter/index.js +66 -0
- package/components/formatters/index.js +112 -0
- package/components/hook-form/FormProvider/index.js +61 -0
- package/components/hook-form/RHFAutocomplete/index.js +144 -0
- package/components/hook-form/RHFAutocompleteAsync/index.js +191 -0
- package/components/hook-form/RHFCheckbox/index.js +65 -0
- package/components/hook-form/RHFDateTime/index.js +79 -0
- package/components/hook-form/RHFMultiCheckbox/index.js +32 -0
- package/components/hook-form/RHFPeriod/index.js +47 -0
- package/components/hook-form/RHFRadioGroup/index.js +41 -0
- package/components/hook-form/RHFSelect/index.js +34 -0
- package/components/hook-form/RHFTextField/index.js +87 -0
- package/components/hook-form/RHFUpload/index.js +255 -0
- package/components/mui_extended/Accordion/index.js +105 -0
- package/components/mui_extended/Avatar/index.js +33 -0
- package/components/mui_extended/BoxIcon/index.js +20 -0
- package/components/mui_extended/Breadcrumbs/index.js +92 -0
- package/components/mui_extended/Button/index.js +131 -0
- package/components/mui_extended/IconButton/index.js +108 -0
- package/components/mui_extended/LinkWithRoute/index.js +30 -0
- package/components/mui_extended/MenuPopover/index.js +135 -0
- package/components/mui_extended/Pager/index.js +137 -0
- package/components/mui_extended/Tab/index.js +30 -0
- package/components/mui_extended/Typography/index.js +21 -0
- package/contexts/ModalContext/index.js +165 -0
- package/hooks/useFormAddEdit/index.js +42 -0
- package/hooks/useModal/index.js +4 -0
- package/index.js +70 -162
- package/lodash.js +62 -0
- package/node_modules.js +54 -0
- package/package.json +2 -1
- package/react-data-grid.js +2652 -0
- package/react-draggable.js +960 -0
- package/react-json-view.js +2764 -0
- package/react-lazy-load-image-component.js +792 -0
- package/react-resizable.js +541 -0
- package/react-splitter-layout.js +165 -0
- package/utils/index.js +572 -0
- package/assets/Logo/index.228dcb5a.js +0 -86
- package/commonjs.565e6834.js +0 -12
- package/components/CommonActions/components/ActionCancel/index.cba1b460.js +0 -17
- package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +0 -49
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +0 -31
- package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +0 -18
- package/components/CommonActions/components/Actions/index.e8148d98.js +0 -743
- package/components/DataGrid/index.b688877d.js +0 -894
- package/components/DynamicFilter/index.82ce857e.js +0 -1158
- package/components/ErrorLabel/index.c8615f16.js +0 -19
- package/components/Icon/index.cbca79b0.js +0 -70
- package/components/Image/index.e790b50b.js +0 -122
- package/components/LanguagePopover/index.3d9611cb.js +0 -87
- package/components/Loadable/index.f5518558.js +0 -15
- package/components/ModalDialog/index.3850c053.js +0 -168
- package/components/ObjectLogs/index.27ef875d.js +0 -266
- package/components/Page/index.6d69977e.js +0 -35
- package/components/PaperForm/index.d7c74064.js +0 -105
- package/components/Period/index.5e68286a.js +0 -160
- package/components/PropertyValue/index.ab3dd7e9.js +0 -116
- package/components/ScrollBar/index.39eeb2de.js +0 -49
- package/components/ScrollToTop/index.e06f98f6.js +0 -11
- package/components/animate/MotionContainer/index.8d9f9d80.js +0 -30
- package/components/animate/MotionLazyContainer/index.572dd012.js +0 -15
- package/components/animate/features.0fbf41e1.js +0 -5
- package/components/animate/variants/container.11f82b76.js +0 -20
- package/components/animate/variants/fade.b561c0fc.js +0 -59
- package/components/animate/variants/transition.bd46b9ce.js +0 -15
- package/components/formatters/BooleanFormatter/index.cca53b7f.js +0 -42
- package/components/formatters/DateFormatter/index.ad8d9b8e.js +0 -57
- package/components/formatters/index.55856d65.js +0 -106
- package/components/hook-form/FormProvider/index.257acd9f.js +0 -55
- package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
- package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
- package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
- package/components/hook-form/RHFDateTime/index.fc5cbafe.js +0 -68
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
- package/components/hook-form/RHFPeriod/index.23c254e9.js +0 -45
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +0 -43
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
- package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
- package/components/hook-form/RHFUpload/index.ed3d739f.js +0 -244
- package/components/mui_extended/Accordion/index.2116e423.js +0 -103
- package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -89
- package/components/mui_extended/Button/index.84d8898c.js +0 -110
- package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
- package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
- package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
- package/components/mui_extended/Pager/index.0576814f.js +0 -126
- package/components/mui_extended/Tab/index.e0653a0a.js +0 -28
- package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
- package/contexts/ModalContext/index.2188b69e.js +0 -150
- package/hooks/useFormAddEdit/index.d4845f1a.js +0 -26
- package/hooks/useModal/index.6571d2d9.js +0 -6
- package/lodash.e09401f0.js +0 -32
- package/node_modules.168cb897.js +0 -55
- package/react-data-grid.d46d625e.js +0 -2115
- package/react-draggable.20e95c61.js +0 -714
- package/react-json-view.f56a7f8e.js +0 -2762
- package/react-lazy-load-image-component.45b56650.js +0 -784
- package/react-resizable.5277deaf.js +0 -371
- package/react-splitter-layout.7810ac1b.js +0 -165
- package/utils/index.214d9542.js +0 -435
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { styled as y, FormHelperText as f } from "@mui/material";
|
|
2
|
-
import { useCallback as x } from "react";
|
|
3
|
-
import { useFormContext as v, Controller as C } from "react-hook-form";
|
|
4
|
-
import { i as b } from "../../../lodash.e09401f0.js";
|
|
5
|
-
import { useDropzone as w } from "react-dropzone";
|
|
6
|
-
import { styled as o, alpha as I } from "@mui/material/styles";
|
|
7
|
-
import { I as h } from "../../Image/index.e790b50b.js";
|
|
8
|
-
import { useEnvironment as _, useModuleDictionary as R } from "@m4l/core";
|
|
9
|
-
import { jsxs as a, Fragment as j, jsx as e } from "react/jsx-runtime";
|
|
10
|
-
import "../../../react-lazy-load-image-component.45b56650.js";
|
|
11
|
-
const D = o("div")(({
|
|
12
|
-
theme: t
|
|
13
|
-
}) => ({
|
|
14
|
-
width: "inherit",
|
|
15
|
-
height: "100%",
|
|
16
|
-
minWidth: t.spacing(20),
|
|
17
|
-
margin: "auto",
|
|
18
|
-
borderRadius: t.spacing(1),
|
|
19
|
-
padding: t.spacing(1),
|
|
20
|
-
border: `1px dashed ${t.palette.grey[50032]}`
|
|
21
|
-
})), S = o("div")(({
|
|
22
|
-
theme: t
|
|
23
|
-
}) => ({
|
|
24
|
-
zIndex: 0,
|
|
25
|
-
width: "100%",
|
|
26
|
-
height: "100%",
|
|
27
|
-
outline: "none",
|
|
28
|
-
display: "flex",
|
|
29
|
-
overflow: "hidden",
|
|
30
|
-
borderRadius: t.spacing(1),
|
|
31
|
-
position: "relative",
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
justifyContent: "center",
|
|
34
|
-
"& > *": {
|
|
35
|
-
width: "100%",
|
|
36
|
-
height: "100%"
|
|
37
|
-
},
|
|
38
|
-
"&:hover": {
|
|
39
|
-
cursor: "pointer",
|
|
40
|
-
"& .placeholder": {
|
|
41
|
-
zIndex: 9
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
})), U = o("div")(({
|
|
45
|
-
theme: t
|
|
46
|
-
}) => ({
|
|
47
|
-
"&:hover": {
|
|
48
|
-
opacity: 1
|
|
49
|
-
},
|
|
50
|
-
display: "flex",
|
|
51
|
-
justifyContent: "center",
|
|
52
|
-
position: "absolute",
|
|
53
|
-
zIndex: "2",
|
|
54
|
-
inset: "0",
|
|
55
|
-
transition: t.transitions.create("opacity", {
|
|
56
|
-
easing: t.transitions.easing.easeInOut,
|
|
57
|
-
duration: t.transitions.duration.shorter
|
|
58
|
-
}),
|
|
59
|
-
overflow: "auto"
|
|
60
|
-
})), W = o("div")(({
|
|
61
|
-
theme: t
|
|
62
|
-
}) => ({
|
|
63
|
-
padding: t.spacing(3, 5),
|
|
64
|
-
display: "flex",
|
|
65
|
-
flexWrap: "wrap",
|
|
66
|
-
justifyContent: "center",
|
|
67
|
-
width: "100%",
|
|
68
|
-
height: "100%",
|
|
69
|
-
gap: t.spacing(3)
|
|
70
|
-
})), z = o("div")(({
|
|
71
|
-
theme: t
|
|
72
|
-
}) => ({
|
|
73
|
-
display: "flex",
|
|
74
|
-
justifyContent: "center",
|
|
75
|
-
flexDirection: "column",
|
|
76
|
-
gap: t.spacing(3)
|
|
77
|
-
})), F = o("span")(({
|
|
78
|
-
theme: t
|
|
79
|
-
}) => ({
|
|
80
|
-
...t.typography.subtitle2,
|
|
81
|
-
width: "fit-content"
|
|
82
|
-
})), P = o("span")(({
|
|
83
|
-
theme: t
|
|
84
|
-
}) => ({
|
|
85
|
-
...t.typography.body2,
|
|
86
|
-
minWidth: t.spacing(20)
|
|
87
|
-
})), $ = o("span")(({
|
|
88
|
-
theme: t
|
|
89
|
-
}) => ({
|
|
90
|
-
...t.typography.caption,
|
|
91
|
-
width: "fit-content"
|
|
92
|
-
})), H = o("div")(({
|
|
93
|
-
theme: t
|
|
94
|
-
}) => ({
|
|
95
|
-
display: "flex",
|
|
96
|
-
alignItems: "center",
|
|
97
|
-
maxWidth: t.spacing(20)
|
|
98
|
-
}));
|
|
99
|
-
o("div")(() => ({
|
|
100
|
-
width: "100%",
|
|
101
|
-
height: "100%",
|
|
102
|
-
position: "absolute",
|
|
103
|
-
inset: "0",
|
|
104
|
-
display: "flex",
|
|
105
|
-
justifyContent: "center",
|
|
106
|
-
alignItems: "center"
|
|
107
|
-
}));
|
|
108
|
-
function L({
|
|
109
|
-
error: t,
|
|
110
|
-
file: i,
|
|
111
|
-
helperText: s,
|
|
112
|
-
sx: l,
|
|
113
|
-
...c
|
|
114
|
-
}) {
|
|
115
|
-
const {
|
|
116
|
-
getRootProps: r,
|
|
117
|
-
getInputProps: n,
|
|
118
|
-
isDragActive: d,
|
|
119
|
-
isDragReject: g
|
|
120
|
-
} = w({
|
|
121
|
-
multiple: !1,
|
|
122
|
-
...c
|
|
123
|
-
}), {
|
|
124
|
-
host_static_assets: m,
|
|
125
|
-
environment_assets: u
|
|
126
|
-
} = _(), {
|
|
127
|
-
getLabel: p
|
|
128
|
-
} = R();
|
|
129
|
-
return /* @__PURE__ */ a(j, {
|
|
130
|
-
children: [/* @__PURE__ */ e(D, {
|
|
131
|
-
id: "RootStyle",
|
|
132
|
-
sx: {
|
|
133
|
-
...(g || t) && {
|
|
134
|
-
borderColor: "error.light"
|
|
135
|
-
},
|
|
136
|
-
...l
|
|
137
|
-
},
|
|
138
|
-
children: /* @__PURE__ */ a(S, {
|
|
139
|
-
id: "DropZoneStyle",
|
|
140
|
-
...r(),
|
|
141
|
-
sx: {
|
|
142
|
-
...d && {
|
|
143
|
-
opacity: 0.72
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
children: [/* @__PURE__ */ e("input", {
|
|
147
|
-
...n()
|
|
148
|
-
}), i && /* @__PURE__ */ e(h, {
|
|
149
|
-
alt: "avatar",
|
|
150
|
-
src: b(i) ? i : i.preview,
|
|
151
|
-
sx: {
|
|
152
|
-
zIndex: 8
|
|
153
|
-
}
|
|
154
|
-
}), /* @__PURE__ */ e(U, {
|
|
155
|
-
id: "PlaceholderStyle",
|
|
156
|
-
className: "placeholder",
|
|
157
|
-
sx: {
|
|
158
|
-
...i ? {
|
|
159
|
-
bgcolor: I("#161C24", 0.72),
|
|
160
|
-
color: "common.white",
|
|
161
|
-
opacity: 0
|
|
162
|
-
} : {
|
|
163
|
-
opacity: 1
|
|
164
|
-
},
|
|
165
|
-
...(g || t) && {
|
|
166
|
-
bgcolor: "error.lighter",
|
|
167
|
-
borderColor: "error.light",
|
|
168
|
-
color: "error.main"
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
children: /* @__PURE__ */ a(W, {
|
|
172
|
-
className: "ContainerUploadBody",
|
|
173
|
-
children: [/* @__PURE__ */ e(H, {
|
|
174
|
-
children: /* @__PURE__ */ e(h, {
|
|
175
|
-
src: `${m}/${u}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
|
|
176
|
-
effect: "opacity",
|
|
177
|
-
width: "100%",
|
|
178
|
-
height: "auto",
|
|
179
|
-
mb: 1
|
|
180
|
-
})
|
|
181
|
-
}), /* @__PURE__ */ a(z, {
|
|
182
|
-
children: [/* @__PURE__ */ e(F, {
|
|
183
|
-
children: p(i ? "upload_image.title_update" : "upload_image.title_upload")
|
|
184
|
-
}), /* @__PURE__ */ e(P, {
|
|
185
|
-
children: p("upload_image.description")
|
|
186
|
-
}), /* @__PURE__ */ e($, {
|
|
187
|
-
children: p("upload_image.conditions")
|
|
188
|
-
})]
|
|
189
|
-
})]
|
|
190
|
-
})
|
|
191
|
-
})]
|
|
192
|
-
})
|
|
193
|
-
}), s && s]
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
const O = y("div")(() => ({
|
|
197
|
-
width: "inherit",
|
|
198
|
-
height: "inherit",
|
|
199
|
-
padding: "1px"
|
|
200
|
-
}));
|
|
201
|
-
function G({
|
|
202
|
-
name: t,
|
|
203
|
-
...i
|
|
204
|
-
}) {
|
|
205
|
-
const {
|
|
206
|
-
control: s,
|
|
207
|
-
setValue: l
|
|
208
|
-
} = v(), c = x((r) => {
|
|
209
|
-
const n = r[0];
|
|
210
|
-
n && l(t, Object.assign(n, {
|
|
211
|
-
preview: URL.createObjectURL(n)
|
|
212
|
-
}));
|
|
213
|
-
}, [l]);
|
|
214
|
-
return /* @__PURE__ */ e(C, {
|
|
215
|
-
name: t,
|
|
216
|
-
control: s,
|
|
217
|
-
render: ({
|
|
218
|
-
field: r,
|
|
219
|
-
fieldState: {
|
|
220
|
-
error: n
|
|
221
|
-
}
|
|
222
|
-
}) => {
|
|
223
|
-
const d = !!n && !r.value;
|
|
224
|
-
return /* @__PURE__ */ a(O, {
|
|
225
|
-
children: [/* @__PURE__ */ e(L, {
|
|
226
|
-
onDrop: c,
|
|
227
|
-
error: d,
|
|
228
|
-
...i,
|
|
229
|
-
file: r.value
|
|
230
|
-
}), d && /* @__PURE__ */ e(f, {
|
|
231
|
-
error: !0,
|
|
232
|
-
sx: {
|
|
233
|
-
px: 2,
|
|
234
|
-
textAlign: "center"
|
|
235
|
-
},
|
|
236
|
-
children: n.message
|
|
237
|
-
})]
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
export {
|
|
243
|
-
G as R
|
|
244
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { Skeleton as d, Accordion as f, AccordionSummary as x, AccordionDetails as b } from "@mui/material";
|
|
2
|
-
import { I as v } from "../IconButton/index.88f3aadb.js";
|
|
3
|
-
import { useEnvironment as y, useModuleSkeleton as I } from "@m4l/core";
|
|
4
|
-
import { I as S } from "../../Icon/index.cbca79b0.js";
|
|
5
|
-
import { styled as c } from "@mui/material/styles";
|
|
6
|
-
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
c("div")(({
|
|
8
|
-
theme: n
|
|
9
|
-
}) => ({
|
|
10
|
-
display: "flex",
|
|
11
|
-
justifyContent: "space-between",
|
|
12
|
-
alignItems: "center",
|
|
13
|
-
borderRadius: n.spacing(0.5),
|
|
14
|
-
height: n.spacing(4.5),
|
|
15
|
-
minHeight: n.spacing(4.5),
|
|
16
|
-
backgroundColor: n.palette.background.header,
|
|
17
|
-
paddingLeft: n.spacing(2),
|
|
18
|
-
paddingRight: n.spacing(2),
|
|
19
|
-
marginBottom: "0px"
|
|
20
|
-
}));
|
|
21
|
-
const l = c("div")(({
|
|
22
|
-
theme: n
|
|
23
|
-
}) => ({
|
|
24
|
-
display: "flex",
|
|
25
|
-
justifyContent: "flex-start",
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
gap: n.spacing(2)
|
|
28
|
-
})), A = c("span")(({
|
|
29
|
-
theme: n
|
|
30
|
-
}) => ({
|
|
31
|
-
...n.typography.subtitle2
|
|
32
|
-
})), k = (n) => {
|
|
33
|
-
const {
|
|
34
|
-
isSkeleton: e,
|
|
35
|
-
label: i,
|
|
36
|
-
SKTWidht: r,
|
|
37
|
-
SKTHeight: a,
|
|
38
|
-
labelIcon: o
|
|
39
|
-
} = n;
|
|
40
|
-
return /* @__PURE__ */ t("div", {
|
|
41
|
-
children: e ? /* @__PURE__ */ s(l, {
|
|
42
|
-
children: [o && /* @__PURE__ */ t(d, {
|
|
43
|
-
variant: "circular",
|
|
44
|
-
width: "16px",
|
|
45
|
-
height: "16px"
|
|
46
|
-
}), /* @__PURE__ */ t(d, {
|
|
47
|
-
variant: "text",
|
|
48
|
-
width: r,
|
|
49
|
-
height: a
|
|
50
|
-
})]
|
|
51
|
-
}) : /* @__PURE__ */ s(l, {
|
|
52
|
-
children: [o && /* @__PURE__ */ t(S, {
|
|
53
|
-
src: o
|
|
54
|
-
}), /* @__PURE__ */ t(A, {
|
|
55
|
-
children: i
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
function E(n) {
|
|
61
|
-
const {
|
|
62
|
-
label: e,
|
|
63
|
-
SKTWidht: i,
|
|
64
|
-
SKTHeight: r,
|
|
65
|
-
children: a,
|
|
66
|
-
accordionProps: o,
|
|
67
|
-
summaryProps: p,
|
|
68
|
-
labelIcon: u
|
|
69
|
-
} = n, {
|
|
70
|
-
host_static_assets: g,
|
|
71
|
-
environment_assets: h
|
|
72
|
-
} = y(), m = I();
|
|
73
|
-
return /* @__PURE__ */ s(f, {
|
|
74
|
-
variant: "outlined",
|
|
75
|
-
square: !0,
|
|
76
|
-
TransitionProps: {
|
|
77
|
-
unmountOnExit: !0
|
|
78
|
-
},
|
|
79
|
-
defaultExpanded: !0,
|
|
80
|
-
...o,
|
|
81
|
-
children: [/* @__PURE__ */ t(x, {
|
|
82
|
-
"aria-controls": "expanded-content",
|
|
83
|
-
disableTouchRipple: !1,
|
|
84
|
-
expandIcon: /* @__PURE__ */ t(v, {
|
|
85
|
-
"aria-label": "settings",
|
|
86
|
-
src: `${g}/${h}/frontend/components/accordion/assets/icons/expanded.svg`
|
|
87
|
-
}),
|
|
88
|
-
...p,
|
|
89
|
-
children: /* @__PURE__ */ t(k, {
|
|
90
|
-
isSkeleton: m,
|
|
91
|
-
label: e,
|
|
92
|
-
SKTWidht: i,
|
|
93
|
-
SKTHeight: r,
|
|
94
|
-
labelIcon: u
|
|
95
|
-
})
|
|
96
|
-
}), /* @__PURE__ */ t(b, {
|
|
97
|
-
children: a
|
|
98
|
-
})]
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
export {
|
|
102
|
-
E as A
|
|
103
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { forwardRef as i } from "react";
|
|
2
|
-
import { useTheme as n } from "@mui/material/styles";
|
|
3
|
-
import { Avatar as f } from "@mui/material";
|
|
4
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
5
|
-
const s = i(({
|
|
6
|
-
color: t = "default",
|
|
7
|
-
children: r,
|
|
8
|
-
sx: e,
|
|
9
|
-
...o
|
|
10
|
-
}, m) => {
|
|
11
|
-
const a = n();
|
|
12
|
-
return t === "default" ? /* @__PURE__ */ p(f, {
|
|
13
|
-
ref: m,
|
|
14
|
-
sx: e,
|
|
15
|
-
...o,
|
|
16
|
-
children: r
|
|
17
|
-
}) : /* @__PURE__ */ p(f, {
|
|
18
|
-
ref: m,
|
|
19
|
-
sx: {
|
|
20
|
-
fontWeight: a.typography.fontWeightMedium,
|
|
21
|
-
color: a.palette[t].contrastText,
|
|
22
|
-
backgroundColor: a.palette[t].main,
|
|
23
|
-
...e
|
|
24
|
-
},
|
|
25
|
-
...o,
|
|
26
|
-
children: r
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
s.displayName = "Avatar";
|
|
30
|
-
export {
|
|
31
|
-
s as A
|
|
32
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Box as r } from "@mui/material";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
function a({
|
|
4
|
-
src: o,
|
|
5
|
-
sx: n
|
|
6
|
-
}) {
|
|
7
|
-
return /* @__PURE__ */ t(r, {
|
|
8
|
-
component: "span",
|
|
9
|
-
sx: {
|
|
10
|
-
width: 20,
|
|
11
|
-
height: 20,
|
|
12
|
-
display: "inline-block",
|
|
13
|
-
bgcolor: "currentColor",
|
|
14
|
-
mask: `url(${o}) no-repeat center / contain`,
|
|
15
|
-
WebkitMask: `url(${o}) no-repeat center / contain`,
|
|
16
|
-
...n
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
a as B
|
|
22
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { useMemo as c } from "react";
|
|
2
|
-
import { useModuleDictionary as m } from "@m4l/core";
|
|
3
|
-
import { Link as u, Box as l, Typography as x, Breadcrumbs as f } from "@mui/material";
|
|
4
|
-
import { Link as b } from "react-router-dom";
|
|
5
|
-
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
6
|
-
function d({
|
|
7
|
-
link: s
|
|
8
|
-
}) {
|
|
9
|
-
const {
|
|
10
|
-
href: e,
|
|
11
|
-
name: n,
|
|
12
|
-
icon: a,
|
|
13
|
-
dictionaryField: o
|
|
14
|
-
} = s, {
|
|
15
|
-
getLabel: r
|
|
16
|
-
} = m();
|
|
17
|
-
return /* @__PURE__ */ g(u, {
|
|
18
|
-
variant: "body2",
|
|
19
|
-
component: b,
|
|
20
|
-
to: e || "#",
|
|
21
|
-
sx: {
|
|
22
|
-
lineHeight: 2,
|
|
23
|
-
display: "flex",
|
|
24
|
-
alignItems: "center",
|
|
25
|
-
color: "text.primary",
|
|
26
|
-
"& > div": {
|
|
27
|
-
display: "inherit"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
children: [a && /* @__PURE__ */ i(l, {
|
|
31
|
-
sx: {
|
|
32
|
-
mr: 1,
|
|
33
|
-
"& svg": {
|
|
34
|
-
width: 20,
|
|
35
|
-
height: 20
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
children: a
|
|
39
|
-
}), o !== void 0 && r ? r(o) : n]
|
|
40
|
-
}, n);
|
|
41
|
-
}
|
|
42
|
-
function D(s) {
|
|
43
|
-
const {
|
|
44
|
-
links: e,
|
|
45
|
-
activeLast: n = !1,
|
|
46
|
-
...a
|
|
47
|
-
} = s, {
|
|
48
|
-
getLabel: o
|
|
49
|
-
} = m(), r = c(() => {
|
|
50
|
-
if (e.length === 0)
|
|
51
|
-
return "";
|
|
52
|
-
const {
|
|
53
|
-
dictionaryField: t
|
|
54
|
-
} = e[e.length - 1];
|
|
55
|
-
return o(t);
|
|
56
|
-
}, [o, e]), p = c(() => e.map((t) => /* @__PURE__ */ i(d, {
|
|
57
|
-
link: t
|
|
58
|
-
}, t.name)), [e]), h = c(() => e.map((t) => t.name !== r ? /* @__PURE__ */ i(d, {
|
|
59
|
-
link: t
|
|
60
|
-
}, t.name) : /* @__PURE__ */ i(x, {
|
|
61
|
-
variant: "body2",
|
|
62
|
-
sx: {
|
|
63
|
-
maxWidth: 260,
|
|
64
|
-
overflow: "hidden",
|
|
65
|
-
whiteSpace: "nowrap",
|
|
66
|
-
color: "text.disabled",
|
|
67
|
-
textOverflow: "ellipsis"
|
|
68
|
-
},
|
|
69
|
-
children: r
|
|
70
|
-
}, t.name)), [r, e]);
|
|
71
|
-
return /* @__PURE__ */ i(f, {
|
|
72
|
-
id: "MUIBreadcrumbs",
|
|
73
|
-
separator: /* @__PURE__ */ i(l, {
|
|
74
|
-
component: "span",
|
|
75
|
-
sx: {
|
|
76
|
-
width: 4,
|
|
77
|
-
height: 4,
|
|
78
|
-
mx: 0.5,
|
|
79
|
-
borderRadius: "50%",
|
|
80
|
-
bgcolor: "text.disabled"
|
|
81
|
-
}
|
|
82
|
-
}),
|
|
83
|
-
...a,
|
|
84
|
-
children: n ? p : h
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
D as B
|
|
89
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { useModuleSkeleton as u, useEnvironment as p } from "@m4l/core";
|
|
2
|
-
import m from "@mui/material/Button";
|
|
3
|
-
import { styled as f, Skeleton as a } from "@mui/material";
|
|
4
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
import { LoadingButton as h } from "@mui/lab";
|
|
6
|
-
import { styled as s, alpha as g } from "@mui/material/styles";
|
|
7
|
-
import { I as y } from "../IconButton/index.88f3aadb.js";
|
|
8
|
-
import { u as B } from "../../DynamicFilter/index.82ce857e.js";
|
|
9
|
-
import { useMemo as v } from "react";
|
|
10
|
-
const S = f(a)(({
|
|
11
|
-
theme: t
|
|
12
|
-
}) => ({
|
|
13
|
-
borderRadius: t.spacing(0.5)
|
|
14
|
-
})), E = (t) => u() ? /* @__PURE__ */ i(S, {
|
|
15
|
-
variant: "rectangular",
|
|
16
|
-
width: "100px",
|
|
17
|
-
height: "36px"
|
|
18
|
-
}) : /* @__PURE__ */ i(m, {
|
|
19
|
-
...t
|
|
20
|
-
}), k = s("div")(({
|
|
21
|
-
theme: t
|
|
22
|
-
}) => ({
|
|
23
|
-
display: "flex",
|
|
24
|
-
width: "100%",
|
|
25
|
-
borderRadius: t.spacing(1),
|
|
26
|
-
overflow: "hidden"
|
|
27
|
-
})), x = () => /* @__PURE__ */ i(k, {
|
|
28
|
-
id: "WrapperSKTLoadingButton",
|
|
29
|
-
children: /* @__PURE__ */ i(a, {
|
|
30
|
-
variant: "rectangular",
|
|
31
|
-
width: "100%",
|
|
32
|
-
height: "48px"
|
|
33
|
-
})
|
|
34
|
-
}), I = (t) => {
|
|
35
|
-
const {
|
|
36
|
-
isSkeleton: o,
|
|
37
|
-
children: r,
|
|
38
|
-
...n
|
|
39
|
-
} = t;
|
|
40
|
-
return o ? /* @__PURE__ */ i(x, {}) : /* @__PURE__ */ i(h, {
|
|
41
|
-
...n,
|
|
42
|
-
children: r
|
|
43
|
-
});
|
|
44
|
-
}, F = s("div")(({
|
|
45
|
-
theme: t
|
|
46
|
-
}) => ({
|
|
47
|
-
display: "flex",
|
|
48
|
-
justifyContent: "center",
|
|
49
|
-
alignItems: "center",
|
|
50
|
-
minWidth: t.spacing(3.75),
|
|
51
|
-
height: t.spacing(3.75),
|
|
52
|
-
background: g(t.palette.primary.main, 0.3)
|
|
53
|
-
})), L = s("div")(() => ({
|
|
54
|
-
"&.isDirty": {
|
|
55
|
-
animationName: "dirtyEffect",
|
|
56
|
-
animationDuration: "1s",
|
|
57
|
-
animationFillMode: "both",
|
|
58
|
-
animationIterationCount: "infinite",
|
|
59
|
-
transition: "all .3s",
|
|
60
|
-
"@keyframes dirtyEffect": {
|
|
61
|
-
"20%": {
|
|
62
|
-
opacity: 1
|
|
63
|
-
},
|
|
64
|
-
"50%": {
|
|
65
|
-
opacity: 0.5
|
|
66
|
-
},
|
|
67
|
-
"100%": {
|
|
68
|
-
opacity: 1
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"&.isDirtyError": {}
|
|
73
|
-
}));
|
|
74
|
-
function M() {
|
|
75
|
-
const {
|
|
76
|
-
isSkeleton: t,
|
|
77
|
-
fireOnChangeFilters: o,
|
|
78
|
-
automatic: r,
|
|
79
|
-
isDirty: n,
|
|
80
|
-
isValid: e
|
|
81
|
-
} = B(), {
|
|
82
|
-
host_static_assets: c,
|
|
83
|
-
environment_assets: l
|
|
84
|
-
} = p();
|
|
85
|
-
if (t)
|
|
86
|
-
return /* @__PURE__ */ i(F, {
|
|
87
|
-
children: /* @__PURE__ */ i(a, {
|
|
88
|
-
variant: "circular",
|
|
89
|
-
width: 20,
|
|
90
|
-
height: 20
|
|
91
|
-
})
|
|
92
|
-
});
|
|
93
|
-
const d = v(() => r || !n ? "action.active" : e ? "primary.main" : "error.main", [r, e, n]);
|
|
94
|
-
return /* @__PURE__ */ i(L, {
|
|
95
|
-
id: "WrapperFilterButton",
|
|
96
|
-
className: n && e ? "isDirty" : "",
|
|
97
|
-
children: /* @__PURE__ */ i(y, {
|
|
98
|
-
bgColor: d,
|
|
99
|
-
dictionaryTooltip: "dynamic_filter.filter_tooltip",
|
|
100
|
-
onClick: () => o(),
|
|
101
|
-
"aria-label": "settings",
|
|
102
|
-
src: `${c}/${l}/frontend/components/dynamic_filter/assets/icons/${r ? "refresh" : "search"}.svg`
|
|
103
|
-
})
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
export {
|
|
107
|
-
E as B,
|
|
108
|
-
M as F,
|
|
109
|
-
I as L
|
|
110
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { m as u } from "framer-motion";
|
|
2
|
-
import { forwardRef as p, useMemo as f } from "react";
|
|
3
|
-
import { IconButton as l, Box as v, Skeleton as h, Tooltip as I } from "@mui/material";
|
|
4
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
5
|
-
import { useModuleDictionary as x, useModuleSkeleton as b } from "@m4l/core";
|
|
6
|
-
import { I as m } from "../../Icon/index.cbca79b0.js";
|
|
7
|
-
const g = {
|
|
8
|
-
hover: {
|
|
9
|
-
scale: 1.1
|
|
10
|
-
},
|
|
11
|
-
tap: {
|
|
12
|
-
scale: 0.95
|
|
13
|
-
}
|
|
14
|
-
}, B = {
|
|
15
|
-
hover: {
|
|
16
|
-
scale: 1.09
|
|
17
|
-
},
|
|
18
|
-
tap: {
|
|
19
|
-
scale: 0.97
|
|
20
|
-
}
|
|
21
|
-
}, S = {
|
|
22
|
-
hover: {
|
|
23
|
-
scale: 1.08
|
|
24
|
-
},
|
|
25
|
-
tap: {
|
|
26
|
-
scale: 0.99
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
function w({
|
|
30
|
-
size: o,
|
|
31
|
-
children: a
|
|
32
|
-
}) {
|
|
33
|
-
const n = o === "small", t = o === "large";
|
|
34
|
-
return /* @__PURE__ */ e(v, {
|
|
35
|
-
component: u.div,
|
|
36
|
-
whileTap: "tap",
|
|
37
|
-
whileHover: "hover",
|
|
38
|
-
variants: n && g || t && S || B,
|
|
39
|
-
sx: {
|
|
40
|
-
display: "inline-flex"
|
|
41
|
-
},
|
|
42
|
-
children: a
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const M = p(({
|
|
46
|
-
children: o,
|
|
47
|
-
size: a = "medium",
|
|
48
|
-
...n
|
|
49
|
-
}, t) => /* @__PURE__ */ e(w, {
|
|
50
|
-
size: a,
|
|
51
|
-
children: /* @__PURE__ */ e(l, {
|
|
52
|
-
size: a,
|
|
53
|
-
ref: t,
|
|
54
|
-
...n,
|
|
55
|
-
children: o
|
|
56
|
-
})
|
|
57
|
-
}));
|
|
58
|
-
M.displayName = "IconButtonAnimate";
|
|
59
|
-
function D({
|
|
60
|
-
src: o,
|
|
61
|
-
tooltip: a,
|
|
62
|
-
size: n = "small",
|
|
63
|
-
dictionaryTooltip: t,
|
|
64
|
-
bgColor: c = "primary.active",
|
|
65
|
-
...r
|
|
66
|
-
}) {
|
|
67
|
-
const {
|
|
68
|
-
getLabel: i
|
|
69
|
-
} = x(), d = b(), s = f(() => t && i ? i(t) : a, [t, i]);
|
|
70
|
-
return d ? /* @__PURE__ */ e(h, {
|
|
71
|
-
variant: "circular",
|
|
72
|
-
width: "30px",
|
|
73
|
-
height: "30px"
|
|
74
|
-
}) : s ? /* @__PURE__ */ e(I, {
|
|
75
|
-
title: s || "",
|
|
76
|
-
children: /* @__PURE__ */ e("div", {
|
|
77
|
-
children: /* @__PURE__ */ e(l, {
|
|
78
|
-
size: n,
|
|
79
|
-
...r,
|
|
80
|
-
children: /* @__PURE__ */ e(m, {
|
|
81
|
-
src: o,
|
|
82
|
-
bgColor: r.disabled ? "action.disabled" : c
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
})
|
|
86
|
-
}) : /* @__PURE__ */ e(l, {
|
|
87
|
-
size: n,
|
|
88
|
-
...r,
|
|
89
|
-
children: /* @__PURE__ */ e(m, {
|
|
90
|
-
src: o,
|
|
91
|
-
bgColor: r.disabled ? "action.disabled" : c
|
|
92
|
-
})
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
D as I,
|
|
97
|
-
M as a
|
|
98
|
-
};
|