@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
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { useState as c } from "react";
|
|
2
|
-
import { Popover as g, styled as d, Stack as h, MenuItem as b } from "@mui/material";
|
|
3
|
-
import { I as u } from "../../Image/index.c9da2d5a.js";
|
|
4
|
-
import { useLocales as f } from "@m4l/graphics";
|
|
5
|
-
import "@m4l/core";
|
|
6
|
-
import "../../Icon/index.f569765b.js";
|
|
7
|
-
import { styled as I } from "@mui/material/styles";
|
|
8
|
-
import { jsxs as m, jsx as l, Fragment as x } from "react/jsx-runtime";
|
|
9
|
-
import "../Accordion/index.49f5df8e.js";
|
|
10
|
-
import "../Avatar/index.dadb0528.js";
|
|
11
|
-
import "react-router-dom";
|
|
12
|
-
import "@mui/material/Button";
|
|
13
|
-
import "@mui/lab";
|
|
14
|
-
import { I as S } from "../Button/index.2afaa420.js";
|
|
15
|
-
import "../../CommonActions/components/Actions/index.309d3b6f.js";
|
|
16
|
-
import "../Pager/index.a23cf8de.js";
|
|
17
|
-
import "../Tab/index.e0653a0a.js";
|
|
18
|
-
const O = I("span")(({
|
|
19
|
-
arrowType: t,
|
|
20
|
-
theme: e
|
|
21
|
-
}) => {
|
|
22
|
-
const o = `solid 1px ${e.palette.grey[50012]}`, a = {
|
|
23
|
-
borderRadius: "0 0 3px 0",
|
|
24
|
-
top: -6,
|
|
25
|
-
borderBottom: o,
|
|
26
|
-
borderRight: o
|
|
27
|
-
}, n = {
|
|
28
|
-
borderRadius: "3px 0 0 0",
|
|
29
|
-
bottom: -6,
|
|
30
|
-
borderTop: o,
|
|
31
|
-
borderLeft: o
|
|
32
|
-
}, r = {
|
|
33
|
-
borderRadius: "0 3px 0 0",
|
|
34
|
-
left: -6,
|
|
35
|
-
borderTop: o,
|
|
36
|
-
borderRight: o
|
|
37
|
-
}, s = {
|
|
38
|
-
borderRadius: "0 0 0 3px",
|
|
39
|
-
right: -6,
|
|
40
|
-
borderBottom: o,
|
|
41
|
-
borderLeft: o
|
|
42
|
-
};
|
|
43
|
-
return {
|
|
44
|
-
display: "none",
|
|
45
|
-
[e.breakpoints.up("sm")]: {
|
|
46
|
-
zIndex: 1,
|
|
47
|
-
width: 12,
|
|
48
|
-
height: 12,
|
|
49
|
-
content: "''",
|
|
50
|
-
position: "absolute",
|
|
51
|
-
display: "block",
|
|
52
|
-
transform: "rotate(-135deg)",
|
|
53
|
-
background: e.palette.background.paper
|
|
54
|
-
},
|
|
55
|
-
...t === "top-left" && {
|
|
56
|
-
...a,
|
|
57
|
-
left: 20
|
|
58
|
-
},
|
|
59
|
-
...t === "top-center" && {
|
|
60
|
-
...a,
|
|
61
|
-
left: 0,
|
|
62
|
-
right: 0,
|
|
63
|
-
margin: "auto"
|
|
64
|
-
},
|
|
65
|
-
...t === "top-right" && {
|
|
66
|
-
...a,
|
|
67
|
-
right: 20
|
|
68
|
-
},
|
|
69
|
-
...t === "bottom-left" && {
|
|
70
|
-
...n,
|
|
71
|
-
left: 20
|
|
72
|
-
},
|
|
73
|
-
...t === "bottom-center" && {
|
|
74
|
-
...n,
|
|
75
|
-
left: 0,
|
|
76
|
-
right: 0,
|
|
77
|
-
margin: "auto"
|
|
78
|
-
},
|
|
79
|
-
...t === "bottom-right" && {
|
|
80
|
-
...n,
|
|
81
|
-
right: 20
|
|
82
|
-
},
|
|
83
|
-
...t === "left-top" && {
|
|
84
|
-
...r,
|
|
85
|
-
top: 20
|
|
86
|
-
},
|
|
87
|
-
...t === "left-center" && {
|
|
88
|
-
...r,
|
|
89
|
-
top: 0,
|
|
90
|
-
bottom: 0,
|
|
91
|
-
margin: "auto"
|
|
92
|
-
},
|
|
93
|
-
...t === "left-bottom" && {
|
|
94
|
-
...r,
|
|
95
|
-
bottom: 20
|
|
96
|
-
},
|
|
97
|
-
...t === "right-top" && {
|
|
98
|
-
...s,
|
|
99
|
-
top: 20
|
|
100
|
-
},
|
|
101
|
-
...t === "right-center" && {
|
|
102
|
-
...s,
|
|
103
|
-
top: 0,
|
|
104
|
-
bottom: 0,
|
|
105
|
-
margin: "auto"
|
|
106
|
-
},
|
|
107
|
-
...t === "right-bottom" && {
|
|
108
|
-
...s,
|
|
109
|
-
bottom: 20
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
});
|
|
113
|
-
function v({
|
|
114
|
-
children: t,
|
|
115
|
-
arrowType: e = "top-right",
|
|
116
|
-
sx: p,
|
|
117
|
-
className: i,
|
|
118
|
-
...o
|
|
119
|
-
}) {
|
|
120
|
-
return /* @__PURE__ */ m(g, {
|
|
121
|
-
className: `m4l_popover ${i || ""}`,
|
|
122
|
-
anchorOrigin: {
|
|
123
|
-
vertical: "bottom",
|
|
124
|
-
horizontal: "right"
|
|
125
|
-
},
|
|
126
|
-
transformOrigin: {
|
|
127
|
-
vertical: "top",
|
|
128
|
-
horizontal: "right"
|
|
129
|
-
},
|
|
130
|
-
PaperProps: {
|
|
131
|
-
sx: {
|
|
132
|
-
p: 1,
|
|
133
|
-
overflow: "inherit",
|
|
134
|
-
...p
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
...o,
|
|
138
|
-
children: [e !== "no-arrow" && /* @__PURE__ */ l(O, {
|
|
139
|
-
arrowType: e
|
|
140
|
-
}), t]
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
const P = d("span")(({
|
|
144
|
-
theme: t
|
|
145
|
-
}) => ({
|
|
146
|
-
marginLeft: t.spacing(1)
|
|
147
|
-
}));
|
|
148
|
-
function V() {
|
|
149
|
-
const {
|
|
150
|
-
allLang: t,
|
|
151
|
-
currentLang: e,
|
|
152
|
-
onChangeLang: p
|
|
153
|
-
} = f(), [i, o] = c(null), a = (r) => {
|
|
154
|
-
o(r.currentTarget);
|
|
155
|
-
}, n = () => {
|
|
156
|
-
o(null);
|
|
157
|
-
};
|
|
158
|
-
return /* @__PURE__ */ m(x, {
|
|
159
|
-
children: [/* @__PURE__ */ l(S, {
|
|
160
|
-
className: "m4l_language_popover",
|
|
161
|
-
onClick: a,
|
|
162
|
-
sx: {
|
|
163
|
-
width: 40,
|
|
164
|
-
height: 40,
|
|
165
|
-
...i && {
|
|
166
|
-
bgcolor: "action.selected"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
src: e.icon,
|
|
170
|
-
alt: e.label,
|
|
171
|
-
width: "24px",
|
|
172
|
-
height: "24px",
|
|
173
|
-
skeletonVariant: "circle",
|
|
174
|
-
tooltip: "dddd"
|
|
175
|
-
}), /* @__PURE__ */ l(v, {
|
|
176
|
-
arrowType: "top-right",
|
|
177
|
-
open: Boolean(i),
|
|
178
|
-
anchorEl: i,
|
|
179
|
-
anchorOrigin: {
|
|
180
|
-
vertical: "bottom",
|
|
181
|
-
horizontal: "right"
|
|
182
|
-
},
|
|
183
|
-
onClose: n,
|
|
184
|
-
sx: {
|
|
185
|
-
mt: 1.5,
|
|
186
|
-
ml: 0.75,
|
|
187
|
-
width: 180,
|
|
188
|
-
rowGap: "100px",
|
|
189
|
-
"& .MuiMenuItem-root": {
|
|
190
|
-
px: 1,
|
|
191
|
-
typography: "body2",
|
|
192
|
-
borderRadius: 0.75
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
children: /* @__PURE__ */ l(h, {
|
|
196
|
-
spacing: 0.75,
|
|
197
|
-
children: t.map((r) => /* @__PURE__ */ m(b, {
|
|
198
|
-
selected: r.value === e.value,
|
|
199
|
-
onClick: () => {
|
|
200
|
-
p(r.value), n();
|
|
201
|
-
},
|
|
202
|
-
children: [/* @__PURE__ */ l(u, {
|
|
203
|
-
alt: r.label,
|
|
204
|
-
src: r.icon,
|
|
205
|
-
width: "24px",
|
|
206
|
-
height: "24px"
|
|
207
|
-
}), /* @__PURE__ */ l(P, {
|
|
208
|
-
children: r.label
|
|
209
|
-
})]
|
|
210
|
-
}, r.value))
|
|
211
|
-
})
|
|
212
|
-
})]
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
export {
|
|
216
|
-
V as L,
|
|
217
|
-
v as P
|
|
218
|
-
};
|