@m4l/components 0.1.25 → 0.1.27
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.9cfffe65.js → index.431160ba.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.ef60c2ee.js → index.6a0f34aa.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.f8403e8e.js → index.85557b90.js} +1 -1
- package/components/CommonActions/components/Actions/{index.309d3b6f.js → index.edeb05c2.js} +9 -9
- package/components/DataGrid/{index.fe073438.js → index.2ce9da7d.js} +3 -3
- package/components/DynamicFilter/{index.d0753667.js → index.e1d4a948.js} +12 -12
- package/components/Icon/{index.f569765b.js → index.619c31c4.js} +27 -25
- package/components/Icon/types.d.ts +2 -1
- package/components/LanguagePopover/styles.d.ts +2 -0
- package/components/ModalDialog/{index.a24ca508.js → index.ad61757f.js} +3 -3
- package/components/ObjectLogs/{index.a7d36267.js → index.6ebaec71.js} +5 -5
- package/components/Page/index.4237c241.js +25 -0
- package/components/PaperForm/{index.3f8c7ef2.js → index.ec9cb8c9.js} +1 -1
- package/components/Period/{index.080a987d.js → index.81de7941.js} +24 -24
- package/components/PropertyValue/{index.ab3dd7e9.js → index.dfcfe1ba.js} +26 -25
- package/components/PropertyValue/styles.d.ts +2 -1
- package/components/PropertyValue/types.d.ts +3 -3
- package/components/formatters/BooleanFormatter/{index.3ec56305.js → index.8da35c9c.js} +1 -1
- package/components/formatters/DateFormatter/{index.08d8823b.js → index.1b9baacc.js} +1 -1
- package/components/formatters/{index.6959c2de.js → index.c2a9b55d.js} +1 -1
- package/components/hook-form/RHFPeriod/{index.067790c9.js → index.e08fb1ab.js} +1 -1
- package/components/hook-form/RHFTextField/{index.ba2a8f67.js → index.f9aaaa90.js} +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
- package/components/hook-form/RHFUpload/{index.6347159a.js → index.ec4d5326.js} +79 -73
- package/components/mui_extended/Accordion/{index.49f5df8e.js → index.a02ac6ae.js} +2 -2
- package/components/mui_extended/Avatar/index.fe06afd7.js +41 -0
- package/components/mui_extended/Button/{index.2afaa420.js → index.51dae0bb.js} +2 -2
- package/components/mui_extended/IconButton/index.a321e5cb.js +105 -0
- package/components/mui_extended/IconButton/index.d.ts +1 -1
- package/components/mui_extended/Pager/{index.a23cf8de.js → index.1dc45f5e.js} +1 -1
- package/components/mui_extended/Popover/index.cb2ccc66.js +252 -0
- package/contexts/ModalContext/{index.f17b3653.js → index.9ebc793c.js} +3 -3
- package/hooks/useModal/{index.b1f96279.js → index.34f5978e.js} +1 -1
- package/index.js +27 -27
- package/package.json +1 -1
- package/components/Page/index.fc660ee5.js +0 -27
- package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
- package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
- package/components/mui_extended/Popover/index.12b0ab55.js +0 -218
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { useState as d, useEffect as I } from "react";
|
|
2
|
+
import { Popover as x, styled as h, Stack as O, MenuItem as S } from "@mui/material";
|
|
3
|
+
import { I as P } from "../../Image/index.c9da2d5a.js";
|
|
4
|
+
import { useLocales as v } from "@m4l/graphics";
|
|
5
|
+
import { useEnvironment as L, useNetwork as k } from "@m4l/core";
|
|
6
|
+
import "../../Icon/index.619c31c4.js";
|
|
7
|
+
import { styled as C } from "@mui/material/styles";
|
|
8
|
+
import { jsxs as m, jsx as i, Fragment as R } from "react/jsx-runtime";
|
|
9
|
+
import "../Accordion/index.a02ac6ae.js";
|
|
10
|
+
import "../Avatar/index.fe06afd7.js";
|
|
11
|
+
import "react-router-dom";
|
|
12
|
+
import "@mui/material/Button";
|
|
13
|
+
import { C as E } from "../CircularProgress/index.ad569afd.js";
|
|
14
|
+
import "@mui/lab";
|
|
15
|
+
import { I as N } from "../Button/index.51dae0bb.js";
|
|
16
|
+
import "../../CommonActions/components/Actions/index.edeb05c2.js";
|
|
17
|
+
import "../Pager/index.1dc45f5e.js";
|
|
18
|
+
import "../Tab/index.e0653a0a.js";
|
|
19
|
+
const y = C("span")(({
|
|
20
|
+
arrowType: t,
|
|
21
|
+
theme: n
|
|
22
|
+
}) => {
|
|
23
|
+
const o = `solid 1px ${n.palette.grey[50012]}`, a = {
|
|
24
|
+
borderRadius: "0 0 3px 0",
|
|
25
|
+
top: -6,
|
|
26
|
+
borderBottom: o,
|
|
27
|
+
borderRight: o
|
|
28
|
+
}, l = {
|
|
29
|
+
borderRadius: "3px 0 0 0",
|
|
30
|
+
bottom: -6,
|
|
31
|
+
borderTop: o,
|
|
32
|
+
borderLeft: o
|
|
33
|
+
}, s = {
|
|
34
|
+
borderRadius: "0 3px 0 0",
|
|
35
|
+
left: -6,
|
|
36
|
+
borderTop: o,
|
|
37
|
+
borderRight: o
|
|
38
|
+
}, r = {
|
|
39
|
+
borderRadius: "0 0 0 3px",
|
|
40
|
+
right: -6,
|
|
41
|
+
borderBottom: o,
|
|
42
|
+
borderLeft: o
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
display: "none",
|
|
46
|
+
[n.breakpoints.up("sm")]: {
|
|
47
|
+
zIndex: 1,
|
|
48
|
+
width: 12,
|
|
49
|
+
height: 12,
|
|
50
|
+
content: "''",
|
|
51
|
+
position: "absolute",
|
|
52
|
+
display: "block",
|
|
53
|
+
transform: "rotate(-135deg)",
|
|
54
|
+
background: n.palette.background.paper
|
|
55
|
+
},
|
|
56
|
+
...t === "top-left" && {
|
|
57
|
+
...a,
|
|
58
|
+
left: 20
|
|
59
|
+
},
|
|
60
|
+
...t === "top-center" && {
|
|
61
|
+
...a,
|
|
62
|
+
left: 0,
|
|
63
|
+
right: 0,
|
|
64
|
+
margin: "auto"
|
|
65
|
+
},
|
|
66
|
+
...t === "top-right" && {
|
|
67
|
+
...a,
|
|
68
|
+
right: 20
|
|
69
|
+
},
|
|
70
|
+
...t === "bottom-left" && {
|
|
71
|
+
...l,
|
|
72
|
+
left: 20
|
|
73
|
+
},
|
|
74
|
+
...t === "bottom-center" && {
|
|
75
|
+
...l,
|
|
76
|
+
left: 0,
|
|
77
|
+
right: 0,
|
|
78
|
+
margin: "auto"
|
|
79
|
+
},
|
|
80
|
+
...t === "bottom-right" && {
|
|
81
|
+
...l,
|
|
82
|
+
right: 20
|
|
83
|
+
},
|
|
84
|
+
...t === "left-top" && {
|
|
85
|
+
...s,
|
|
86
|
+
top: 20
|
|
87
|
+
},
|
|
88
|
+
...t === "left-center" && {
|
|
89
|
+
...s,
|
|
90
|
+
top: 0,
|
|
91
|
+
bottom: 0,
|
|
92
|
+
margin: "auto"
|
|
93
|
+
},
|
|
94
|
+
...t === "left-bottom" && {
|
|
95
|
+
...s,
|
|
96
|
+
bottom: 20
|
|
97
|
+
},
|
|
98
|
+
...t === "right-top" && {
|
|
99
|
+
...r,
|
|
100
|
+
top: 20
|
|
101
|
+
},
|
|
102
|
+
...t === "right-center" && {
|
|
103
|
+
...r,
|
|
104
|
+
top: 0,
|
|
105
|
+
bottom: 0,
|
|
106
|
+
margin: "auto"
|
|
107
|
+
},
|
|
108
|
+
...t === "right-bottom" && {
|
|
109
|
+
...r,
|
|
110
|
+
bottom: 20
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
function _({
|
|
115
|
+
children: t,
|
|
116
|
+
arrowType: n = "top-right",
|
|
117
|
+
sx: p,
|
|
118
|
+
className: c,
|
|
119
|
+
...o
|
|
120
|
+
}) {
|
|
121
|
+
return /* @__PURE__ */ m(x, {
|
|
122
|
+
className: `m4l_popover ${c || ""}`,
|
|
123
|
+
anchorOrigin: {
|
|
124
|
+
vertical: "bottom",
|
|
125
|
+
horizontal: "right"
|
|
126
|
+
},
|
|
127
|
+
transformOrigin: {
|
|
128
|
+
vertical: "top",
|
|
129
|
+
horizontal: "right"
|
|
130
|
+
},
|
|
131
|
+
PaperProps: {
|
|
132
|
+
sx: {
|
|
133
|
+
p: 1,
|
|
134
|
+
overflow: "inherit",
|
|
135
|
+
...p
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
...o,
|
|
139
|
+
children: [n !== "no-arrow" && /* @__PURE__ */ i(y, {
|
|
140
|
+
arrowType: n
|
|
141
|
+
}), t]
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
const z = h("span")(({
|
|
145
|
+
theme: t
|
|
146
|
+
}) => ({
|
|
147
|
+
marginLeft: t.spacing(1)
|
|
148
|
+
})), B = h("div")(({
|
|
149
|
+
theme: t
|
|
150
|
+
}) => ({
|
|
151
|
+
padding: t.spacing(0.75, 0),
|
|
152
|
+
margin: t.spacing(0, 1.25)
|
|
153
|
+
})), M = h("div")(() => ({
|
|
154
|
+
display: "flex",
|
|
155
|
+
flexDirection: "column"
|
|
156
|
+
}));
|
|
157
|
+
function T() {
|
|
158
|
+
const {
|
|
159
|
+
currentLocale: t,
|
|
160
|
+
onChangeLocale: n
|
|
161
|
+
} = v(), {
|
|
162
|
+
domain_token: p
|
|
163
|
+
} = L(), {
|
|
164
|
+
networkOperation: c
|
|
165
|
+
} = k(), [o, a] = d(null), [l, s] = d(!1), [r, f] = d([]), b = (e) => {
|
|
166
|
+
console.log("handleOpen", r, l), a(e.currentTarget);
|
|
167
|
+
}, u = () => {
|
|
168
|
+
a(null);
|
|
169
|
+
};
|
|
170
|
+
return I(() => {
|
|
171
|
+
let e = !0;
|
|
172
|
+
if (!(o === null || l || r.length > 0))
|
|
173
|
+
return s(!0), c({
|
|
174
|
+
method: "GET",
|
|
175
|
+
endPoint: "na/locales",
|
|
176
|
+
parms: {
|
|
177
|
+
domain_token: p
|
|
178
|
+
}
|
|
179
|
+
}).then((g) => {
|
|
180
|
+
console.log("Response", g.data), e && f(g.data);
|
|
181
|
+
}).finally(() => {
|
|
182
|
+
s(!1);
|
|
183
|
+
}), function() {
|
|
184
|
+
e = !1;
|
|
185
|
+
};
|
|
186
|
+
}, [o]), console.log("Render lang", r, l), /* @__PURE__ */ m(R, {
|
|
187
|
+
children: [/* @__PURE__ */ i(N, {
|
|
188
|
+
className: "m4l_language_popover",
|
|
189
|
+
onClick: b,
|
|
190
|
+
sx: {
|
|
191
|
+
width: 40,
|
|
192
|
+
height: 40,
|
|
193
|
+
...o && {
|
|
194
|
+
bgcolor: "action.selected"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
src: t?.url_icon || "",
|
|
198
|
+
alt: t?.name,
|
|
199
|
+
width: "24px",
|
|
200
|
+
height: "24px",
|
|
201
|
+
skeletonVariant: "circle",
|
|
202
|
+
tooltip: "dddd"
|
|
203
|
+
}), /* @__PURE__ */ i(_, {
|
|
204
|
+
arrowType: "top-right",
|
|
205
|
+
open: Boolean(o),
|
|
206
|
+
anchorEl: o,
|
|
207
|
+
anchorOrigin: {
|
|
208
|
+
vertical: "bottom",
|
|
209
|
+
horizontal: "right"
|
|
210
|
+
},
|
|
211
|
+
onClose: u,
|
|
212
|
+
sx: {
|
|
213
|
+
mt: 1.5,
|
|
214
|
+
ml: 0.75,
|
|
215
|
+
width: 180,
|
|
216
|
+
rowGap: "100px",
|
|
217
|
+
"& .MuiMenuItem-root": {
|
|
218
|
+
px: 1,
|
|
219
|
+
typography: "body2",
|
|
220
|
+
borderRadius: 0.75
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
children: /* @__PURE__ */ m(M, {
|
|
224
|
+
children: [r.length === 0 && /* @__PURE__ */ i(B, {
|
|
225
|
+
children: /* @__PURE__ */ i(E, {
|
|
226
|
+
size: "20px"
|
|
227
|
+
})
|
|
228
|
+
}), r.length > 0 && /* @__PURE__ */ i(O, {
|
|
229
|
+
spacing: 0.75,
|
|
230
|
+
children: r.map((e) => /* @__PURE__ */ m(S, {
|
|
231
|
+
selected: e.lang === t?.lang && e?.script === t?.script && e?.region === t?.region,
|
|
232
|
+
onClick: () => {
|
|
233
|
+
n(e), u();
|
|
234
|
+
},
|
|
235
|
+
children: [/* @__PURE__ */ i(P, {
|
|
236
|
+
alt: e.name,
|
|
237
|
+
src: e.url_icon,
|
|
238
|
+
width: "24px",
|
|
239
|
+
height: "24px"
|
|
240
|
+
}), /* @__PURE__ */ i(z, {
|
|
241
|
+
children: e.name
|
|
242
|
+
})]
|
|
243
|
+
}, e.lang || e.script || e.region))
|
|
244
|
+
})]
|
|
245
|
+
})
|
|
246
|
+
})]
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
export {
|
|
250
|
+
T as L,
|
|
251
|
+
_ as P
|
|
252
|
+
};
|
|
@@ -4,9 +4,9 @@ import { Typography as M } from "@mui/material";
|
|
|
4
4
|
import { styled as l } from "@mui/material/styles";
|
|
5
5
|
import { B as I } from "../../components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
6
6
|
import { jsx as t, jsxs as p, Fragment as _ } from "react/jsx-runtime";
|
|
7
|
-
import { M as k } from "../../components/ModalDialog/index.
|
|
8
|
-
import { A as $ } from "../../components/CommonActions/components/ActionIntro/index.
|
|
9
|
-
import { A as b } from "../../components/CommonActions/components/ActionCancel/index.
|
|
7
|
+
import { M as k } from "../../components/ModalDialog/index.ad61757f.js";
|
|
8
|
+
import { A as $ } from "../../components/CommonActions/components/ActionIntro/index.85557b90.js";
|
|
9
|
+
import { A as b } from "../../components/CommonActions/components/ActionCancel/index.431160ba.js";
|
|
10
10
|
import { b as A } from "../../utils/index.214d9542.js";
|
|
11
11
|
const j = l("div")(() => ({
|
|
12
12
|
display: "flex",
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as N, a as h } from "./components/mui_extended/IconButton/index.
|
|
1
|
+
import { I as N, a as h } from "./components/mui_extended/IconButton/index.a321e5cb.js";
|
|
2
2
|
import "framer-motion";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "react/jsx-runtime";
|
|
@@ -14,42 +14,42 @@ import "lodash/debounce";
|
|
|
14
14
|
import { R as W } from "./components/hook-form/RHFCheckbox/index.6dcec9e2.js";
|
|
15
15
|
import "@mui/x-date-pickers";
|
|
16
16
|
import { R as J } from "./components/hook-form/RHFDateTime/index.9231a7c7.js";
|
|
17
|
-
import { R as Q, a as X } from "./components/hook-form/RHFTextField/index.
|
|
18
|
-
import { I as Z } from "./components/Icon/index.
|
|
19
|
-
import { R as $ } from "./components/hook-form/RHFPeriod/index.
|
|
17
|
+
import { R as Q, a as X } from "./components/hook-form/RHFTextField/index.f9aaaa90.js";
|
|
18
|
+
import { I as Z } from "./components/Icon/index.619c31c4.js";
|
|
19
|
+
import { R as $ } from "./components/hook-form/RHFPeriod/index.e08fb1ab.js";
|
|
20
20
|
import { E as ro } from "./components/ErrorLabel/index.c8615f16.js";
|
|
21
|
-
import { P as ao, g as eo } from "./components/Period/index.
|
|
22
|
-
import { b as so, M as io, d as po, g as no } from "./components/CommonActions/components/Actions/index.
|
|
21
|
+
import { P as ao, g as eo } from "./components/Period/index.81de7941.js";
|
|
22
|
+
import { b as so, M as io, d as po, g as no } from "./components/CommonActions/components/Actions/index.edeb05c2.js";
|
|
23
23
|
import "@mui/material/Button";
|
|
24
|
-
import { M as xo, a as fo } from "./contexts/ModalContext/index.
|
|
24
|
+
import { M as xo, a as fo } from "./contexts/ModalContext/index.9ebc793c.js";
|
|
25
25
|
import "@mui/lab";
|
|
26
26
|
import "lodash/isString";
|
|
27
27
|
import "react-dropzone";
|
|
28
|
-
import { R as go } from "./components/hook-form/RHFUpload/index.
|
|
29
|
-
import { A as uo } from "./components/mui_extended/Accordion/index.
|
|
30
|
-
import { A as yo } from "./components/mui_extended/Avatar/index.
|
|
31
|
-
import { B as Ao, L as Po } from "./components/mui_extended/Button/index.
|
|
32
|
-
import { L as Lo, P as Ho } from "./components/mui_extended/Popover/index.
|
|
33
|
-
import { P as Mo, g as bo } from "./components/mui_extended/Pager/index.
|
|
28
|
+
import { R as go } from "./components/hook-form/RHFUpload/index.ec4d5326.js";
|
|
29
|
+
import { A as uo } from "./components/mui_extended/Accordion/index.a02ac6ae.js";
|
|
30
|
+
import { A as yo } from "./components/mui_extended/Avatar/index.fe06afd7.js";
|
|
31
|
+
import { B as Ao, L as Po } from "./components/mui_extended/Button/index.51dae0bb.js";
|
|
32
|
+
import { L as Lo, P as Ho } from "./components/mui_extended/Popover/index.cb2ccc66.js";
|
|
33
|
+
import { P as Mo, g as bo } from "./components/mui_extended/Pager/index.1dc45f5e.js";
|
|
34
34
|
import { T as Io } from "./components/mui_extended/Tab/index.e0653a0a.js";
|
|
35
|
-
import { D as So, N as Eo, T as No, g as ho } from "./components/DataGrid/index.
|
|
35
|
+
import { D as So, N as Eo, T as No, g as ho } from "./components/DataGrid/index.2ce9da7d.js";
|
|
36
36
|
import "react-dnd";
|
|
37
37
|
import "react-dnd-html5-backend";
|
|
38
38
|
import "@m4l/graphics";
|
|
39
39
|
import { S as Uo } from "./components/ScrollBar/index.39eeb2de.js";
|
|
40
|
-
import { D as ko, d as Go, g as zo } from "./components/DynamicFilter/index.
|
|
40
|
+
import { D as ko, d as Go, g as zo } from "./components/DynamicFilter/index.e1d4a948.js";
|
|
41
41
|
import "simplebar/dist/simplebar.min.css";
|
|
42
42
|
import { R as wo } from "./components/contexts/RHFormContext/index.33dba822.js";
|
|
43
43
|
import "yup";
|
|
44
44
|
import "./react-draggable.20e95c61.js";
|
|
45
|
-
import { M as qo, d as Jo, g as Ko } from "./components/ModalDialog/index.
|
|
45
|
+
import { M as qo, d as Jo, g as Ko } from "./components/ModalDialog/index.ad61757f.js";
|
|
46
46
|
import { R as Xo } from "./components/Resizeable/index.45995d2b.js";
|
|
47
47
|
import { N as Zo, d as _o, g as $o } from "./components/NoItemSelected/index.9609a7f7.js";
|
|
48
|
-
import { O as rr, d as tr, g as ar } from "./components/ObjectLogs/index.
|
|
48
|
+
import { O as rr, d as tr, g as ar } from "./components/ObjectLogs/index.6ebaec71.js";
|
|
49
49
|
import "./react-json-view.f56a7f8e.js";
|
|
50
|
-
import { P as mr } from "./components/PaperForm/index.
|
|
51
|
-
import { H as ir } from "./components/Page/index.
|
|
52
|
-
import { P as nr } from "./components/PropertyValue/index.
|
|
50
|
+
import { P as mr } from "./components/PaperForm/index.ec9cb8c9.js";
|
|
51
|
+
import { H as ir } from "./components/Page/index.4237c241.js";
|
|
52
|
+
import { P as nr } from "./components/PropertyValue/index.dfcfe1ba.js";
|
|
53
53
|
import "./react-splitter-layout.7810ac1b.js";
|
|
54
54
|
import { S as xr } from "./components/SplitLayout/index.4032673d.js";
|
|
55
55
|
import { v as lr } from "./components/animate/variants/fade.b561c0fc.js";
|
|
@@ -67,17 +67,17 @@ import { B as jr } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js
|
|
|
67
67
|
import { C as Gr } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
68
68
|
import { L as Vr } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
69
69
|
import { T as Wr } from "./components/mui_extended/Typography/index.e5494696.js";
|
|
70
|
-
import { B as Jr, c as Kr } from "./components/formatters/BooleanFormatter/index.
|
|
71
|
-
import { D as Xr, c as Yr } from "./components/formatters/DateFormatter/index.
|
|
72
|
-
import { P as _r, a as $r, U as ot, e as rt, b as tt, c as at, d as et, g as mt } from "./components/formatters/index.
|
|
73
|
-
import { A as it } from "./components/CommonActions/components/ActionCancel/index.
|
|
74
|
-
import { A as nt } from "./components/CommonActions/components/ActionIntro/index.
|
|
75
|
-
import { A as xt } from "./components/CommonActions/components/ActionFormCancel/index.
|
|
70
|
+
import { B as Jr, c as Kr } from "./components/formatters/BooleanFormatter/index.8da35c9c.js";
|
|
71
|
+
import { D as Xr, c as Yr } from "./components/formatters/DateFormatter/index.1b9baacc.js";
|
|
72
|
+
import { P as _r, a as $r, U as ot, e as rt, b as tt, c as at, d as et, g as mt } from "./components/formatters/index.c2a9b55d.js";
|
|
73
|
+
import { A as it } from "./components/CommonActions/components/ActionCancel/index.431160ba.js";
|
|
74
|
+
import { A as nt } from "./components/CommonActions/components/ActionIntro/index.85557b90.js";
|
|
75
|
+
import { A as xt } from "./components/CommonActions/components/ActionFormCancel/index.6a0f34aa.js";
|
|
76
76
|
import { A as lt } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
|
|
77
77
|
import { L as gt } from "./components/Loadable/index.f5518558.js";
|
|
78
78
|
import { S as ut } from "./components/ScrollToTop/index.e06f98f6.js";
|
|
79
79
|
import { u as yt } from "./hooks/useFormAddEdit/index.d4845f1a.js";
|
|
80
|
-
import { u as At } from "./hooks/useModal/index.
|
|
80
|
+
import { u as At } from "./hooks/useModal/index.34f5978e.js";
|
|
81
81
|
import { L as Ct } from "./assets/Logo/index.228dcb5a.js";
|
|
82
82
|
import "./utils/index.214d9542.js";
|
|
83
83
|
import "./react-data-grid.d46d625e.js";
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Helmet as a } from "react-helmet-async";
|
|
2
|
-
import { useLocales as c } from "@m4l/graphics";
|
|
3
|
-
import { useModuleSkeleton as u } from "@m4l/core";
|
|
4
|
-
import { jsxs as t, Fragment as d, jsx as r } from "react/jsx-runtime";
|
|
5
|
-
const p = (l) => {
|
|
6
|
-
const {
|
|
7
|
-
children: o,
|
|
8
|
-
title: n,
|
|
9
|
-
meta: m,
|
|
10
|
-
subtitle: e
|
|
11
|
-
} = l, {
|
|
12
|
-
currentLang: s
|
|
13
|
-
} = c(), i = u();
|
|
14
|
-
return /* @__PURE__ */ t(d, {
|
|
15
|
-
children: [!i && /* @__PURE__ */ t(a, {
|
|
16
|
-
children: [/* @__PURE__ */ r("title", {
|
|
17
|
-
children: `${n}${e ? ` | ${e}` : ""} `
|
|
18
|
-
}), /* @__PURE__ */ r("html", {
|
|
19
|
-
lang: s.value
|
|
20
|
-
}), m]
|
|
21
|
-
}), o]
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
p.displayName = "Page";
|
|
25
|
-
export {
|
|
26
|
-
p as H
|
|
27
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { forwardRef as p } from "react";
|
|
2
|
-
import { useTheme as s } from "@mui/material/styles";
|
|
3
|
-
import { Skeleton as f, Avatar as m } from "@mui/material";
|
|
4
|
-
import { useModuleSkeleton as u } from "@m4l/core";
|
|
5
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
-
const l = () => /* @__PURE__ */ t(f, {
|
|
7
|
-
variant: "circular",
|
|
8
|
-
width: "32px",
|
|
9
|
-
height: "32px"
|
|
10
|
-
}), d = p(({
|
|
11
|
-
color: e = "default",
|
|
12
|
-
children: a,
|
|
13
|
-
sx: o,
|
|
14
|
-
...n
|
|
15
|
-
}, i) => {
|
|
16
|
-
const r = s();
|
|
17
|
-
return u() ? /* @__PURE__ */ t(l, {}) : e === "default" ? /* @__PURE__ */ t(m, {
|
|
18
|
-
ref: i,
|
|
19
|
-
sx: o,
|
|
20
|
-
...n,
|
|
21
|
-
children: a
|
|
22
|
-
}) : /* @__PURE__ */ t(m, {
|
|
23
|
-
ref: i,
|
|
24
|
-
sx: {
|
|
25
|
-
fontWeight: r.typography.fontWeightMedium,
|
|
26
|
-
color: r.palette[e].contrastText,
|
|
27
|
-
backgroundColor: r.palette[e].main,
|
|
28
|
-
...o
|
|
29
|
-
},
|
|
30
|
-
...n,
|
|
31
|
-
children: a
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
d.displayName = "Avatar";
|
|
35
|
-
export {
|
|
36
|
-
d as A
|
|
37
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { m as p } from "framer-motion";
|
|
2
|
-
import { forwardRef as f, useMemo as v } from "react";
|
|
3
|
-
import { IconButton as l, Box as I, Skeleton as b, Tooltip as h } 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 d } from "../../Icon/index.f569765b.js";
|
|
7
|
-
const g = {
|
|
8
|
-
hover: {
|
|
9
|
-
scale: 1.1
|
|
10
|
-
},
|
|
11
|
-
tap: {
|
|
12
|
-
scale: 0.95
|
|
13
|
-
}
|
|
14
|
-
}, S = {
|
|
15
|
-
hover: {
|
|
16
|
-
scale: 1.09
|
|
17
|
-
},
|
|
18
|
-
tap: {
|
|
19
|
-
scale: 0.97
|
|
20
|
-
}
|
|
21
|
-
}, k = {
|
|
22
|
-
hover: {
|
|
23
|
-
scale: 1.08
|
|
24
|
-
},
|
|
25
|
-
tap: {
|
|
26
|
-
scale: 0.99
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
function w({
|
|
30
|
-
size: n,
|
|
31
|
-
children: t
|
|
32
|
-
}) {
|
|
33
|
-
const a = n === "small", o = n === "large";
|
|
34
|
-
return /* @__PURE__ */ e(I, {
|
|
35
|
-
component: p.div,
|
|
36
|
-
whileTap: "tap",
|
|
37
|
-
whileHover: "hover",
|
|
38
|
-
variants: a && g || o && k || S,
|
|
39
|
-
sx: {
|
|
40
|
-
display: "inline-flex"
|
|
41
|
-
},
|
|
42
|
-
children: t
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const M = f(({
|
|
46
|
-
children: n,
|
|
47
|
-
size: t = "medium",
|
|
48
|
-
...a
|
|
49
|
-
}, o) => /* @__PURE__ */ e(w, {
|
|
50
|
-
size: t,
|
|
51
|
-
children: /* @__PURE__ */ e(l, {
|
|
52
|
-
size: t,
|
|
53
|
-
ref: o,
|
|
54
|
-
...a,
|
|
55
|
-
children: n
|
|
56
|
-
})
|
|
57
|
-
}));
|
|
58
|
-
M.displayName = "IconButtonAnimate";
|
|
59
|
-
const A = () => /* @__PURE__ */ e(b, {
|
|
60
|
-
variant: "circular",
|
|
61
|
-
width: "30px",
|
|
62
|
-
height: "30px"
|
|
63
|
-
});
|
|
64
|
-
function N({
|
|
65
|
-
src: n,
|
|
66
|
-
tooltip: t,
|
|
67
|
-
size: a = "small",
|
|
68
|
-
dictionaryTooltip: o,
|
|
69
|
-
bgColor: s = "primary.active",
|
|
70
|
-
rotate: c,
|
|
71
|
-
...r
|
|
72
|
-
}) {
|
|
73
|
-
const {
|
|
74
|
-
getLabel: i
|
|
75
|
-
} = x(), u = B(), m = v(() => {
|
|
76
|
-
if (!r.disabled)
|
|
77
|
-
return o && i ? i(o) : t;
|
|
78
|
-
}, [o, i, r.disabled]);
|
|
79
|
-
return u ? /* @__PURE__ */ e(A, {}) : m ? /* @__PURE__ */ e(h, {
|
|
80
|
-
title: m || "",
|
|
81
|
-
children: /* @__PURE__ */ e(l, {
|
|
82
|
-
size: a,
|
|
83
|
-
...r,
|
|
84
|
-
children: /* @__PURE__ */ e(d, {
|
|
85
|
-
src: n,
|
|
86
|
-
bgColor: r.disabled ? "action.disabled" : s,
|
|
87
|
-
rotate: c
|
|
88
|
-
})
|
|
89
|
-
})
|
|
90
|
-
}) : /* @__PURE__ */ e(l, {
|
|
91
|
-
size: a,
|
|
92
|
-
...r,
|
|
93
|
-
children: /* @__PURE__ */ e(d, {
|
|
94
|
-
src: n,
|
|
95
|
-
bgColor: r.disabled ? "action.disabled" : s,
|
|
96
|
-
rotate: c
|
|
97
|
-
})
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
export {
|
|
101
|
-
N as I,
|
|
102
|
-
M as a
|
|
103
|
-
};
|