@m4l/components 0.1.26 → 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.6736b782.js → index.431160ba.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.281ee166.js → index.6a0f34aa.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.4665a611.js → index.85557b90.js} +1 -1
- package/components/CommonActions/components/Actions/{index.cd7b2671.js → index.edeb05c2.js} +9 -9
- package/components/DataGrid/{index.2caf6231.js → index.2ce9da7d.js} +3 -3
- package/components/DynamicFilter/{index.f2377369.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/ModalDialog/{index.bee344a5.js → index.ad61757f.js} +3 -3
- package/components/ObjectLogs/{index.6b6f95e6.js → index.6ebaec71.js} +5 -5
- package/components/PaperForm/{index.3f8c7ef2.js → index.ec9cb8c9.js} +1 -1
- package/components/Period/{index.a112ce37.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.979d0898.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.52d18aea.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.951b6975.js → index.1dc45f5e.js} +1 -1
- package/components/mui_extended/Popover/{index.4da8587a.js → index.cb2ccc66.js} +6 -6
- package/contexts/ModalContext/{index.5388dfd5.js → index.9ebc793c.js} +3 -3
- package/hooks/useModal/{index.3b1ff084.js → index.34f5978e.js} +1 -1
- package/index.js +26 -26
- package/package.json +1 -1
- package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
- package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { styled as w, Skeleton as p, FormHelperText as I } from "@mui/material";
|
|
2
2
|
import { useCallback as D } from "react";
|
|
3
|
-
import { useFormContext as y, Controller as
|
|
4
|
-
import
|
|
5
|
-
import { useDropzone as
|
|
6
|
-
import { styled as e, alpha as
|
|
7
|
-
import { I as
|
|
3
|
+
import { useFormContext as y, Controller as m } from "react-hook-form";
|
|
4
|
+
import N from "lodash/isString";
|
|
5
|
+
import { useDropzone as x } from "react-dropzone";
|
|
6
|
+
import { styled as e, alpha as S } from "@mui/material/styles";
|
|
7
|
+
import { I as d } from "../../Image/index.c9da2d5a.js";
|
|
8
8
|
import { useEnvironment as z, useModuleDictionary as h, useModuleSkeleton as A } from "@m4l/core";
|
|
9
9
|
import { jsx as i, jsxs as n, Fragment as b } from "react/jsx-runtime";
|
|
10
10
|
const j = e("div")(({
|
|
@@ -12,6 +12,7 @@ const j = e("div")(({
|
|
|
12
12
|
}) => ({
|
|
13
13
|
width: "inherit",
|
|
14
14
|
height: "100%",
|
|
15
|
+
minHeight: "200px",
|
|
15
16
|
minWidth: t.spacing(20),
|
|
16
17
|
margin: "auto",
|
|
17
18
|
borderRadius: t.spacing(1),
|
|
@@ -61,7 +62,7 @@ const j = e("div")(({
|
|
|
61
62
|
}) => ({
|
|
62
63
|
padding: t.spacing(3, 5),
|
|
63
64
|
display: "flex",
|
|
64
|
-
|
|
65
|
+
flexDirection: "column",
|
|
65
66
|
justifyContent: "center",
|
|
66
67
|
width: "100%",
|
|
67
68
|
height: "100%",
|
|
@@ -72,28 +73,25 @@ const j = e("div")(({
|
|
|
72
73
|
display: "flex",
|
|
73
74
|
justifyContent: "center",
|
|
74
75
|
flexDirection: "column",
|
|
75
|
-
gap: t.spacing(
|
|
76
|
-
})),
|
|
76
|
+
gap: t.spacing(1)
|
|
77
|
+
})), H = e("div")(({
|
|
77
78
|
theme: t
|
|
78
79
|
}) => ({
|
|
79
|
-
...t.typography.
|
|
80
|
-
|
|
81
|
-
})),
|
|
80
|
+
...t.typography.subtitle1,
|
|
81
|
+
textAlign: "center"
|
|
82
|
+
})), Y = e("div")(({
|
|
82
83
|
theme: t
|
|
83
84
|
}) => ({
|
|
84
85
|
...t.typography.body2,
|
|
85
|
-
|
|
86
|
-
})), k = e("
|
|
86
|
+
textAlign: "center"
|
|
87
|
+
})), k = e("div")(({
|
|
87
88
|
theme: t
|
|
88
89
|
}) => ({
|
|
89
90
|
...t.typography.caption,
|
|
90
|
-
|
|
91
|
-
})), G = e("div")(({
|
|
92
|
-
theme: t
|
|
93
|
-
}) => ({
|
|
91
|
+
textAlign: "center"
|
|
92
|
+
})), G = e("div")(() => ({
|
|
94
93
|
display: "flex",
|
|
95
|
-
|
|
96
|
-
maxWidth: t.spacing(20)
|
|
94
|
+
justifyContent: "center"
|
|
97
95
|
}));
|
|
98
96
|
e("div")(() => ({
|
|
99
97
|
width: "100%",
|
|
@@ -104,7 +102,13 @@ e("div")(() => ({
|
|
|
104
102
|
justifyContent: "center",
|
|
105
103
|
alignItems: "center"
|
|
106
104
|
}));
|
|
107
|
-
const Q =
|
|
105
|
+
const Q = e("div")(() => ({
|
|
106
|
+
"& .m4l_image > img": {
|
|
107
|
+
objectFit: "cover",
|
|
108
|
+
width: "auto",
|
|
109
|
+
margin: "0 auto"
|
|
110
|
+
}
|
|
111
|
+
})), f = w("div")(({
|
|
108
112
|
theme: t
|
|
109
113
|
}) => ({
|
|
110
114
|
maskPosition: "center!important",
|
|
@@ -115,8 +119,8 @@ const Q = w("div")(({
|
|
|
115
119
|
height: "100%",
|
|
116
120
|
mask: "url('data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik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AuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')"
|
|
118
|
-
})),
|
|
119
|
-
children: /* @__PURE__ */ i(
|
|
122
|
+
})), Z = () => /* @__PURE__ */ i(j, {
|
|
123
|
+
children: /* @__PURE__ */ i(f, {
|
|
120
124
|
children: /* @__PURE__ */ i(p, {
|
|
121
125
|
variant: "rectangular",
|
|
122
126
|
width: "100%",
|
|
@@ -124,61 +128,63 @@ const Q = w("div")(({
|
|
|
124
128
|
})
|
|
125
129
|
})
|
|
126
130
|
});
|
|
127
|
-
function
|
|
131
|
+
function W({
|
|
128
132
|
error: t,
|
|
129
|
-
file:
|
|
133
|
+
file: o,
|
|
130
134
|
helperText: s,
|
|
131
|
-
sx:
|
|
132
|
-
...
|
|
135
|
+
sx: r,
|
|
136
|
+
...a
|
|
133
137
|
}) {
|
|
134
138
|
const {
|
|
135
139
|
getRootProps: L,
|
|
136
|
-
getInputProps:
|
|
137
|
-
isDragActive:
|
|
138
|
-
isDragReject:
|
|
139
|
-
} =
|
|
140
|
+
getInputProps: M,
|
|
141
|
+
isDragActive: u,
|
|
142
|
+
isDragReject: l
|
|
143
|
+
} = x({
|
|
140
144
|
multiple: !1,
|
|
141
|
-
...
|
|
145
|
+
...a
|
|
142
146
|
}), {
|
|
143
147
|
host_static_assets: C,
|
|
144
148
|
environment_assets: g
|
|
145
149
|
} = z(), {
|
|
146
|
-
getLabel:
|
|
150
|
+
getLabel: c
|
|
147
151
|
} = h();
|
|
148
|
-
return A() ? /* @__PURE__ */ i(
|
|
152
|
+
return A() ? /* @__PURE__ */ i(Z, {}) : /* @__PURE__ */ n(b, {
|
|
149
153
|
children: [/* @__PURE__ */ i(j, {
|
|
150
154
|
sx: {
|
|
151
|
-
...(
|
|
155
|
+
...(l || t) && {
|
|
152
156
|
borderColor: "error.light"
|
|
153
157
|
},
|
|
154
|
-
...
|
|
158
|
+
...r
|
|
155
159
|
},
|
|
156
160
|
children: /* @__PURE__ */ n(T, {
|
|
157
|
-
id: "DropZoneStyle",
|
|
158
161
|
...L(),
|
|
159
162
|
sx: {
|
|
160
|
-
...
|
|
163
|
+
...u && {
|
|
161
164
|
opacity: 0.72
|
|
162
165
|
}
|
|
163
166
|
},
|
|
164
167
|
children: [/* @__PURE__ */ i("input", {
|
|
165
|
-
...
|
|
166
|
-
}),
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
...M()
|
|
169
|
+
}), o && /* @__PURE__ */ i(Q, {
|
|
170
|
+
children: /* @__PURE__ */ i(d, {
|
|
171
|
+
alt: "avatar",
|
|
172
|
+
src: N(o) ? o : o.preview || "",
|
|
173
|
+
width: "auto",
|
|
174
|
+
height: "100%"
|
|
175
|
+
})
|
|
170
176
|
}), /* @__PURE__ */ i(E, {
|
|
171
177
|
id: "PlaceholderStyle",
|
|
172
178
|
className: "placeholder",
|
|
173
179
|
sx: {
|
|
174
|
-
...
|
|
175
|
-
bgcolor:
|
|
180
|
+
...o ? {
|
|
181
|
+
bgcolor: S("#161C24", 0.72),
|
|
176
182
|
color: "common.white",
|
|
177
183
|
opacity: 0
|
|
178
184
|
} : {
|
|
179
185
|
opacity: 1
|
|
180
186
|
},
|
|
181
|
-
...(
|
|
187
|
+
...(l || t) && {
|
|
182
188
|
bgcolor: "error.lighter",
|
|
183
189
|
borderColor: "error.light",
|
|
184
190
|
color: "error.main"
|
|
@@ -187,18 +193,18 @@ function Z({
|
|
|
187
193
|
children: /* @__PURE__ */ n(v, {
|
|
188
194
|
className: "ContainerUploadBody",
|
|
189
195
|
children: [/* @__PURE__ */ i(G, {
|
|
190
|
-
children: /* @__PURE__ */ i(
|
|
196
|
+
children: /* @__PURE__ */ i(d, {
|
|
191
197
|
src: `${C}/${g}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
|
|
192
|
-
width: "
|
|
193
|
-
height: "
|
|
198
|
+
width: "100px",
|
|
199
|
+
height: "100px"
|
|
194
200
|
})
|
|
195
201
|
}), /* @__PURE__ */ n(U, {
|
|
196
|
-
children: [/* @__PURE__ */ i(
|
|
197
|
-
children:
|
|
198
|
-
}), /* @__PURE__ */ i(
|
|
199
|
-
children:
|
|
202
|
+
children: [/* @__PURE__ */ i(H, {
|
|
203
|
+
children: c("upload_image.title_upload")
|
|
204
|
+
}), /* @__PURE__ */ i(Y, {
|
|
205
|
+
children: c("upload_image.description")
|
|
200
206
|
}), /* @__PURE__ */ i(k, {
|
|
201
|
-
children:
|
|
207
|
+
children: c("upload_image.conditions")
|
|
202
208
|
})]
|
|
203
209
|
})]
|
|
204
210
|
})
|
|
@@ -207,52 +213,52 @@ function Z({
|
|
|
207
213
|
}), s && s]
|
|
208
214
|
});
|
|
209
215
|
}
|
|
210
|
-
const
|
|
216
|
+
const P = w("div")(() => ({
|
|
211
217
|
width: "inherit",
|
|
212
218
|
height: "inherit",
|
|
213
219
|
padding: "1px"
|
|
214
220
|
}));
|
|
215
|
-
function
|
|
221
|
+
function q({
|
|
216
222
|
name: t,
|
|
217
|
-
...
|
|
223
|
+
...o
|
|
218
224
|
}) {
|
|
219
225
|
const {
|
|
220
226
|
control: s,
|
|
221
|
-
setValue:
|
|
222
|
-
} = y(),
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
preview: URL.createObjectURL(
|
|
227
|
+
setValue: r
|
|
228
|
+
} = y(), a = D((L) => {
|
|
229
|
+
const M = L[0];
|
|
230
|
+
M && r(t, Object.assign(M, {
|
|
231
|
+
preview: URL.createObjectURL(M)
|
|
226
232
|
}));
|
|
227
|
-
}, [
|
|
228
|
-
return /* @__PURE__ */ i(
|
|
233
|
+
}, [r]);
|
|
234
|
+
return /* @__PURE__ */ i(m, {
|
|
229
235
|
name: t,
|
|
230
236
|
control: s,
|
|
231
237
|
render: ({
|
|
232
238
|
field: L,
|
|
233
239
|
fieldState: {
|
|
234
|
-
error:
|
|
240
|
+
error: M
|
|
235
241
|
}
|
|
236
242
|
}) => {
|
|
237
|
-
const
|
|
238
|
-
return /* @__PURE__ */ n(
|
|
239
|
-
children: [/* @__PURE__ */ i(
|
|
240
|
-
onDrop:
|
|
241
|
-
error:
|
|
242
|
-
...
|
|
243
|
+
const u = !!M && !L.value;
|
|
244
|
+
return /* @__PURE__ */ n(P, {
|
|
245
|
+
children: [/* @__PURE__ */ i(W, {
|
|
246
|
+
onDrop: a,
|
|
247
|
+
error: u,
|
|
248
|
+
...o,
|
|
243
249
|
file: L.value
|
|
244
|
-
}),
|
|
250
|
+
}), u && /* @__PURE__ */ i(I, {
|
|
245
251
|
error: !0,
|
|
246
252
|
sx: {
|
|
247
253
|
px: 2,
|
|
248
254
|
textAlign: "center"
|
|
249
255
|
},
|
|
250
|
-
children:
|
|
256
|
+
children: M.message
|
|
251
257
|
})]
|
|
252
258
|
});
|
|
253
259
|
}
|
|
254
260
|
});
|
|
255
261
|
}
|
|
256
262
|
export {
|
|
257
|
-
|
|
263
|
+
q as R
|
|
258
264
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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.
|
|
2
|
+
import { I as v } from "../IconButton/index.a321e5cb.js";
|
|
3
3
|
import { useEnvironment as y, useModuleSkeleton as I } from "@m4l/core";
|
|
4
|
-
import { I as S } from "../../Icon/index.
|
|
4
|
+
import { I as S } from "../../Icon/index.619c31c4.js";
|
|
5
5
|
import { styled as c } from "@mui/material/styles";
|
|
6
6
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
c("div")(({
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { forwardRef as m } from "react";
|
|
2
|
+
import { useTheme as p } from "@mui/material/styles";
|
|
3
|
+
import { Skeleton as u, Avatar as s } from "@mui/material";
|
|
4
|
+
import { useModuleSkeleton as f } from "@m4l/core";
|
|
5
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
+
const l = () => /* @__PURE__ */ t(u, {
|
|
7
|
+
variant: "circular",
|
|
8
|
+
width: "32px",
|
|
9
|
+
height: "32px"
|
|
10
|
+
}), c = m(({
|
|
11
|
+
color: r = "default",
|
|
12
|
+
children: o,
|
|
13
|
+
sx: a,
|
|
14
|
+
...n
|
|
15
|
+
}, i) => {
|
|
16
|
+
const e = p();
|
|
17
|
+
return f() ? /* @__PURE__ */ t(l, {}) : r === "default" ? /* @__PURE__ */ t(s, {
|
|
18
|
+
ref: i,
|
|
19
|
+
sx: {
|
|
20
|
+
cursor: "pointer",
|
|
21
|
+
...a
|
|
22
|
+
},
|
|
23
|
+
...n,
|
|
24
|
+
children: o
|
|
25
|
+
}) : /* @__PURE__ */ t(s, {
|
|
26
|
+
ref: i,
|
|
27
|
+
sx: {
|
|
28
|
+
fontWeight: e.typography.fontWeightMedium,
|
|
29
|
+
color: e.palette[r].contrastText,
|
|
30
|
+
backgroundColor: e.palette[r].main,
|
|
31
|
+
cursor: "pointer",
|
|
32
|
+
...a
|
|
33
|
+
},
|
|
34
|
+
...n,
|
|
35
|
+
children: o
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
c.displayName = "Avatar";
|
|
39
|
+
export {
|
|
40
|
+
c as A
|
|
41
|
+
};
|
|
@@ -3,9 +3,9 @@ import { Skeleton as m, styled as S, IconButton as v, Tooltip as I } from "@mui/
|
|
|
3
3
|
import _ from "@mui/material/Button";
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
5
|
import { LoadingButton as b } from "@mui/lab";
|
|
6
|
-
import { I as x } from "../IconButton/index.
|
|
6
|
+
import { I as x } from "../IconButton/index.a321e5cb.js";
|
|
7
7
|
import { styled as h, alpha as F } from "@mui/material/styles";
|
|
8
|
-
import { u as L } from "../../DynamicFilter/index.
|
|
8
|
+
import { u as L } from "../../DynamicFilter/index.e1d4a948.js";
|
|
9
9
|
import { useMemo as u } from "react";
|
|
10
10
|
import { I as $ } from "../../Image/index.c9da2d5a.js";
|
|
11
11
|
const G = (t) => g() ? /* @__PURE__ */ i(m, {
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { m as f } from "framer-motion";
|
|
2
|
+
import { forwardRef as v, useMemo as I } from "react";
|
|
3
|
+
import { IconButton as l, Box as b, Skeleton as h, Tooltip as x } from "@mui/material";
|
|
4
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
5
|
+
import { useModuleDictionary as B, useModuleSkeleton as S } from "@m4l/core";
|
|
6
|
+
import { I as d } from "../../Icon/index.619c31c4.js";
|
|
7
|
+
const g = {
|
|
8
|
+
hover: {
|
|
9
|
+
scale: 1.1
|
|
10
|
+
},
|
|
11
|
+
tap: {
|
|
12
|
+
scale: 0.95
|
|
13
|
+
}
|
|
14
|
+
}, k = {
|
|
15
|
+
hover: {
|
|
16
|
+
scale: 1.09
|
|
17
|
+
},
|
|
18
|
+
tap: {
|
|
19
|
+
scale: 0.97
|
|
20
|
+
}
|
|
21
|
+
}, w = {
|
|
22
|
+
hover: {
|
|
23
|
+
scale: 1.08
|
|
24
|
+
},
|
|
25
|
+
tap: {
|
|
26
|
+
scale: 0.99
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function M({
|
|
30
|
+
size: t,
|
|
31
|
+
children: o
|
|
32
|
+
}) {
|
|
33
|
+
const a = t === "small", n = t === "large";
|
|
34
|
+
return /* @__PURE__ */ e(b, {
|
|
35
|
+
component: f.div,
|
|
36
|
+
whileTap: "tap",
|
|
37
|
+
whileHover: "hover",
|
|
38
|
+
variants: a && g || n && w || k,
|
|
39
|
+
sx: {
|
|
40
|
+
display: "inline-flex"
|
|
41
|
+
},
|
|
42
|
+
children: o
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const L = v(({
|
|
46
|
+
children: t,
|
|
47
|
+
size: o = "medium",
|
|
48
|
+
...a
|
|
49
|
+
}, n) => /* @__PURE__ */ e(M, {
|
|
50
|
+
size: o,
|
|
51
|
+
children: /* @__PURE__ */ e(l, {
|
|
52
|
+
size: o,
|
|
53
|
+
ref: n,
|
|
54
|
+
...a,
|
|
55
|
+
children: t
|
|
56
|
+
})
|
|
57
|
+
}));
|
|
58
|
+
L.displayName = "IconButtonAnimate";
|
|
59
|
+
const y = () => /* @__PURE__ */ e(h, {
|
|
60
|
+
variant: "circular",
|
|
61
|
+
width: "30px",
|
|
62
|
+
height: "30px"
|
|
63
|
+
});
|
|
64
|
+
function R({
|
|
65
|
+
src: t,
|
|
66
|
+
tooltip: o,
|
|
67
|
+
size: a = "small",
|
|
68
|
+
dictionaryTooltip: n,
|
|
69
|
+
bgColor: s = "primary.active",
|
|
70
|
+
rotationAngle: c,
|
|
71
|
+
angleTransition: u,
|
|
72
|
+
...r
|
|
73
|
+
}) {
|
|
74
|
+
const {
|
|
75
|
+
getLabel: i
|
|
76
|
+
} = B(), p = S(), m = I(() => {
|
|
77
|
+
if (!r.disabled)
|
|
78
|
+
return n && i ? i(n) : o;
|
|
79
|
+
}, [n, i, r.disabled]);
|
|
80
|
+
return p ? /* @__PURE__ */ e(y, {}) : m ? /* @__PURE__ */ e(x, {
|
|
81
|
+
title: m || "",
|
|
82
|
+
children: /* @__PURE__ */ e(l, {
|
|
83
|
+
size: a,
|
|
84
|
+
...r,
|
|
85
|
+
children: /* @__PURE__ */ e(d, {
|
|
86
|
+
src: t,
|
|
87
|
+
bgColor: r.disabled ? "action.disabled" : s,
|
|
88
|
+
rotationAngle: c
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
}) : /* @__PURE__ */ e(l, {
|
|
92
|
+
size: a,
|
|
93
|
+
...r,
|
|
94
|
+
children: /* @__PURE__ */ e(d, {
|
|
95
|
+
src: t,
|
|
96
|
+
bgColor: r.disabled ? "action.disabled" : s,
|
|
97
|
+
rotationAngle: c,
|
|
98
|
+
angleTransition: u
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
R as I,
|
|
104
|
+
L as a
|
|
105
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
3
3
|
import { IconButtonProps } from './types';
|
|
4
|
-
export declare function IconButton({ src, tooltip, size, dictionaryTooltip, bgColor,
|
|
4
|
+
export declare function IconButton({ src, tooltip, size, dictionaryTooltip, bgColor, rotationAngle, angleTransition, ...other }: IconButtonProps & MUIIconButtonProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo as y } from "react";
|
|
2
2
|
import { Skeleton as i, TablePagination as R } from "@mui/material";
|
|
3
|
-
import { P as S } from "../../CommonActions/components/Actions/index.
|
|
3
|
+
import { P as S } from "../../CommonActions/components/Actions/index.edeb05c2.js";
|
|
4
4
|
import { styled as a } from "@mui/material/styles";
|
|
5
5
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
6
6
|
a("div")(() => ({
|
|
@@ -3,18 +3,18 @@ import { Popover as x, styled as h, Stack as O, MenuItem as S } from "@mui/mater
|
|
|
3
3
|
import { I as P } from "../../Image/index.c9da2d5a.js";
|
|
4
4
|
import { useLocales as v } from "@m4l/graphics";
|
|
5
5
|
import { useEnvironment as L, useNetwork as k } from "@m4l/core";
|
|
6
|
-
import "../../Icon/index.
|
|
6
|
+
import "../../Icon/index.619c31c4.js";
|
|
7
7
|
import { styled as C } from "@mui/material/styles";
|
|
8
8
|
import { jsxs as m, jsx as i, Fragment as R } from "react/jsx-runtime";
|
|
9
|
-
import "../Accordion/index.
|
|
10
|
-
import "../Avatar/index.
|
|
9
|
+
import "../Accordion/index.a02ac6ae.js";
|
|
10
|
+
import "../Avatar/index.fe06afd7.js";
|
|
11
11
|
import "react-router-dom";
|
|
12
12
|
import "@mui/material/Button";
|
|
13
13
|
import { C as E } from "../CircularProgress/index.ad569afd.js";
|
|
14
14
|
import "@mui/lab";
|
|
15
|
-
import { I as N } from "../Button/index.
|
|
16
|
-
import "../../CommonActions/components/Actions/index.
|
|
17
|
-
import "../Pager/index.
|
|
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
18
|
import "../Tab/index.e0653a0a.js";
|
|
19
19
|
const y = C("span")(({
|
|
20
20
|
arrowType: t,
|
|
@@ -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.
|
|
50
|
+
import { P as mr } from "./components/PaperForm/index.ec9cb8c9.js";
|
|
51
51
|
import { H as ir } from "./components/Page/index.4237c241.js";
|
|
52
|
-
import { P as nr } from "./components/PropertyValue/index.
|
|
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";
|