@m4l/components 0.0.34 → 0.0.37
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/dist/components/CompanyLogo/index.js +2 -3
- package/dist/components/DataGrid/index.js +21 -21
- package/dist/components/DynamicFilter/components/ApplyedFilters/styles.d.ts +1 -0
- package/dist/components/DynamicFilter/components/FilterButton/styles.d.ts +0 -1
- package/dist/components/DynamicFilter/components/fieldstypes/BooleanFilter/index.d.ts +4 -0
- package/dist/components/DynamicFilter/components/{PopupEditFilter/components → fieldstypes}/BooleanFilter/styles.d.ts +0 -0
- package/dist/components/DynamicFilter/components/fieldstypes/DateTimeFilter/index.d.ts +4 -0
- package/dist/components/DynamicFilter/components/{PopupEditFilter/components → fieldstypes}/DateTimeFilter/styles.d.ts +0 -0
- package/dist/components/DynamicFilter/components/fieldstypes/NumberFilter/index.d.ts +4 -0
- package/dist/components/DynamicFilter/components/{PopupEditFilter/components/StringFilter → fieldstypes/NumberFilter}/styles.d.ts +0 -0
- package/dist/components/DynamicFilter/components/fieldstypes/StringFilter/index.d.ts +4 -0
- package/dist/components/DynamicFilter/components/fieldstypes/StringFilter/styles.d.ts +3 -0
- package/dist/components/DynamicFilter/components/{PopupEditFilter/components → fieldstypes}/factory.d.ts +2 -2
- package/dist/components/DynamicFilter/components/{PopupEditFilter/components → fieldstypes}/validations.d.ts +1 -1
- package/dist/components/DynamicFilter/index.js +369 -159
- package/dist/components/DynamicFilter/types.d.ts +4 -2
- package/dist/components/Icon/index.js +69 -11
- package/dist/components/Icon/styles.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +3 -2
- package/dist/components/ModalDialog/index.js +9 -9
- package/dist/components/NoItemSelected/index.js +2 -3
- package/dist/components/ObjectLogs/index.js +18 -5
- package/dist/components/PaperForm/index.js +4 -7
- package/dist/components/PropertyValue/index.js +32 -5
- package/dist/components/PropertyValue/styles.d.ts +2 -2
- package/dist/components/PropertyValue/types.d.ts +10 -3
- package/dist/components/hook-form/RHFDateTime.js +9 -2
- package/dist/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/styles.d.ts +7 -0
- package/dist/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +2 -0
- package/dist/components/hook-form/RHFUpload.js +111 -33
- package/dist/components/mui_extended/Accordion/index.js +2 -2
- package/dist/components/mui_extended/IconButton/index.d.ts +1 -1
- package/dist/components/mui_extended/IconButton/index.js +19 -10
- package/dist/components/mui_extended/IconButton/types.d.ts +2 -1
- package/dist/components/mui_extended/MenuActions/index.js +8 -10
- package/dist/components/mui_extended/Pager/index.js +5 -5
- package/dist/contexts/ModalContext/index.js +4 -4
- package/dist/vendor.js +2 -2
- package/package.json +2 -5
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/BooleanFilter/index.d.ts +0 -2
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/DateTimeFilter/index.d.ts +0 -2
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/StringFilter/index.d.ts +0 -2
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { styled as styled$1, FormHelperText } from "@mui/material";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
4
|
import { i as isString_1 } from "../../lodash.js";
|
|
5
5
|
import { u as useDropzone } from "../../node_modules.js";
|
|
6
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
6
7
|
import { I as Image } from "../Image/index.js";
|
|
7
|
-
import { useEnvironment } from "@m4l/core";
|
|
8
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
8
9
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
9
10
|
import "../../react-lazy-load-image-component.js";
|
|
10
|
-
import { styled } from "@mui/material/styles";
|
|
11
11
|
const RootStyle = styled("div")(({
|
|
12
12
|
theme
|
|
13
13
|
}) => ({
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: "inherit",
|
|
15
|
+
height: "100%",
|
|
16
|
+
minWidth: theme.spacing(20),
|
|
16
17
|
margin: "auto",
|
|
17
18
|
borderRadius: theme.spacing(1),
|
|
18
19
|
padding: theme.spacing(1),
|
|
@@ -45,20 +46,74 @@ const DropZoneStyle = styled("div")(({
|
|
|
45
46
|
const PlaceholderStyle = styled("div")(({
|
|
46
47
|
theme
|
|
47
48
|
}) => ({
|
|
49
|
+
"&:hover": {
|
|
50
|
+
opacity: 1
|
|
51
|
+
},
|
|
48
52
|
display: "flex",
|
|
49
|
-
position: "absolute",
|
|
50
|
-
alignItems: "center",
|
|
51
|
-
flexDirection: "column",
|
|
52
53
|
justifyContent: "center",
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
position: "absolute",
|
|
55
|
+
zIndex: "2",
|
|
56
|
+
inset: "0",
|
|
55
57
|
transition: theme.transitions.create("opacity", {
|
|
56
58
|
easing: theme.transitions.easing.easeInOut,
|
|
57
59
|
duration: theme.transitions.duration.shorter
|
|
58
60
|
}),
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
overflow: "auto"
|
|
62
|
+
}));
|
|
63
|
+
const ContainerUploadBody = styled("div")(({
|
|
64
|
+
theme
|
|
65
|
+
}) => ({
|
|
66
|
+
padding: theme.spacing(3, 5),
|
|
67
|
+
display: "flex",
|
|
68
|
+
flexWrap: "wrap",
|
|
69
|
+
justifyContent: "center",
|
|
70
|
+
width: "100%",
|
|
71
|
+
height: "100%",
|
|
72
|
+
gap: theme.spacing(3)
|
|
73
|
+
}));
|
|
74
|
+
const Containermessage = styled("div")(({
|
|
75
|
+
theme
|
|
76
|
+
}) => ({
|
|
77
|
+
display: "flex",
|
|
78
|
+
justifyContent: "center",
|
|
79
|
+
flexDirection: "column",
|
|
80
|
+
gap: theme.spacing(3)
|
|
81
|
+
}));
|
|
82
|
+
const ContainerTitle = styled("span")(({
|
|
83
|
+
theme
|
|
84
|
+
}) => ({
|
|
85
|
+
...theme.typography.subtitle2,
|
|
86
|
+
width: "fit-content"
|
|
87
|
+
}));
|
|
88
|
+
const ContainerDescription = styled("span")(({
|
|
89
|
+
theme
|
|
90
|
+
}) => ({
|
|
91
|
+
...theme.typography.body2,
|
|
92
|
+
minWidth: theme.spacing(20)
|
|
93
|
+
}));
|
|
94
|
+
const ContainerConditions = styled("span")(({
|
|
95
|
+
theme
|
|
96
|
+
}) => ({
|
|
97
|
+
...theme.typography.caption,
|
|
98
|
+
width: "fit-content"
|
|
99
|
+
}));
|
|
100
|
+
const WrapperImage = styled("div")(({
|
|
101
|
+
theme
|
|
102
|
+
}) => ({
|
|
103
|
+
display: "flex",
|
|
104
|
+
alignItems: "center",
|
|
105
|
+
maxWidth: theme.spacing(20)
|
|
106
|
+
}));
|
|
107
|
+
styled("div")(({
|
|
108
|
+
theme
|
|
109
|
+
}) => ({
|
|
110
|
+
width: "100%",
|
|
111
|
+
height: "100%",
|
|
112
|
+
position: "absolute",
|
|
113
|
+
inset: "0",
|
|
114
|
+
display: "flex",
|
|
115
|
+
justifyContent: "center",
|
|
116
|
+
alignItems: "center"
|
|
62
117
|
}));
|
|
63
118
|
function UploadImage({
|
|
64
119
|
error,
|
|
@@ -78,10 +133,14 @@ function UploadImage({
|
|
|
78
133
|
});
|
|
79
134
|
const {
|
|
80
135
|
host_static_assets,
|
|
81
|
-
|
|
136
|
+
environment_assets
|
|
82
137
|
} = useEnvironment();
|
|
138
|
+
const {
|
|
139
|
+
getLabel
|
|
140
|
+
} = useModuleDictionary();
|
|
83
141
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
84
142
|
children: [/* @__PURE__ */ jsx(RootStyle, {
|
|
143
|
+
id: "RootStyle",
|
|
85
144
|
sx: {
|
|
86
145
|
...(isDragReject || error) && {
|
|
87
146
|
borderColor: "error.light"
|
|
@@ -89,6 +148,7 @@ function UploadImage({
|
|
|
89
148
|
...sx
|
|
90
149
|
},
|
|
91
150
|
children: /* @__PURE__ */ jsxs(DropZoneStyle, {
|
|
151
|
+
id: "DropZoneStyle",
|
|
92
152
|
...getRootProps(),
|
|
93
153
|
sx: {
|
|
94
154
|
...isDragActive && {
|
|
@@ -103,36 +163,54 @@ function UploadImage({
|
|
|
103
163
|
sx: {
|
|
104
164
|
zIndex: 8
|
|
105
165
|
}
|
|
106
|
-
}), /* @__PURE__ */
|
|
166
|
+
}), /* @__PURE__ */ jsx(PlaceholderStyle, {
|
|
167
|
+
id: "PlaceholderStyle",
|
|
107
168
|
className: "placeholder",
|
|
108
169
|
sx: {
|
|
109
|
-
...file
|
|
110
|
-
|
|
170
|
+
...file ? {
|
|
171
|
+
bgcolor: alpha("#161C24", 0.72),
|
|
111
172
|
color: "common.white",
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
173
|
+
opacity: 0
|
|
174
|
+
} : {
|
|
175
|
+
opacity: 1
|
|
116
176
|
},
|
|
117
177
|
...(isDragReject || error) && {
|
|
118
|
-
|
|
178
|
+
backgroundColor: alpha("error.main", 0.72),
|
|
179
|
+
color: "common.white"
|
|
119
180
|
}
|
|
120
181
|
},
|
|
121
|
-
children:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
182
|
+
children: /* @__PURE__ */ jsxs(ContainerUploadBody, {
|
|
183
|
+
className: "ContainerUploadBody",
|
|
184
|
+
children: [/* @__PURE__ */ jsx(WrapperImage, {
|
|
185
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
186
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
|
|
187
|
+
effect: "opacity",
|
|
188
|
+
width: "100%",
|
|
189
|
+
height: "auto",
|
|
190
|
+
mb: 1
|
|
191
|
+
})
|
|
192
|
+
}), /* @__PURE__ */ jsxs(Containermessage, {
|
|
193
|
+
children: [/* @__PURE__ */ jsx(ContainerTitle, {
|
|
194
|
+
children: file ? getLabel("upload_image.title_update") : getLabel("upload_image.title_upload")
|
|
195
|
+
}), /* @__PURE__ */ jsx(ContainerDescription, {
|
|
196
|
+
children: getLabel("upload_image.description")
|
|
197
|
+
}), /* @__PURE__ */ jsx(ContainerConditions, {
|
|
198
|
+
children: getLabel("upload_image.conditions")
|
|
199
|
+
})]
|
|
200
|
+
})]
|
|
201
|
+
})
|
|
131
202
|
})]
|
|
132
203
|
})
|
|
133
204
|
}), helperText && helperText]
|
|
134
205
|
});
|
|
135
206
|
}
|
|
207
|
+
const WrapperRHFUploadImage = styled$1("div")(({
|
|
208
|
+
theme
|
|
209
|
+
}) => ({
|
|
210
|
+
width: "inherit",
|
|
211
|
+
height: "inherit",
|
|
212
|
+
padding: "1px"
|
|
213
|
+
}));
|
|
136
214
|
function RHFUploadImage({
|
|
137
215
|
name,
|
|
138
216
|
...other
|
|
@@ -161,7 +239,7 @@ function RHFUploadImage({
|
|
|
161
239
|
}
|
|
162
240
|
}) => {
|
|
163
241
|
const checkError = !!error && !field.value;
|
|
164
|
-
return /* @__PURE__ */ jsxs(
|
|
242
|
+
return /* @__PURE__ */ jsxs(WrapperRHFUploadImage, {
|
|
165
243
|
children: [/* @__PURE__ */ jsx(UploadImage, {
|
|
166
244
|
onDrop: handleDrop,
|
|
167
245
|
error: checkError,
|
|
@@ -5,7 +5,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
5
5
|
function Accordion(props) {
|
|
6
6
|
const {
|
|
7
7
|
host_static_assets,
|
|
8
|
-
|
|
8
|
+
environment_assets
|
|
9
9
|
} = useEnvironment();
|
|
10
10
|
const {
|
|
11
11
|
label,
|
|
@@ -29,7 +29,7 @@ function Accordion(props) {
|
|
|
29
29
|
disableTouchRipple: false,
|
|
30
30
|
expandIcon: /* @__PURE__ */ jsx(IconButton, {
|
|
31
31
|
"aria-label": "settings",
|
|
32
|
-
src: `${host_static_assets}/${
|
|
32
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/accordion/assets/icons/expanded.svg`
|
|
33
33
|
}),
|
|
34
34
|
...summaryProps,
|
|
35
35
|
children: isSkeleton ? /* @__PURE__ */ jsx(Skeleton, {
|
|
@@ -1,5 +1,5 @@
|
|
|
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, ...other }: IconButtonProps & MUIIconButtonProps): JSX.Element;
|
|
4
|
+
export declare function IconButton({ src, tooltip, size, dictionaryTooltip, bgColor, ...other }: IconButtonProps & MUIIconButtonProps): JSX.Element;
|
|
5
5
|
export default IconButton;
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useMemo } from "react";
|
|
|
3
3
|
import { IconButton as IconButton$1, Box, Tooltip } from "@mui/material";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useModuleDictionary } from "@m4l/core";
|
|
6
|
-
import {
|
|
6
|
+
import { I as Icon } from "../../Icon/index.js";
|
|
7
7
|
const varSmall = {
|
|
8
8
|
hover: {
|
|
9
9
|
scale: 1.1
|
|
@@ -64,18 +64,19 @@ function IconButton({
|
|
|
64
64
|
tooltip,
|
|
65
65
|
size = "small",
|
|
66
66
|
dictionaryTooltip,
|
|
67
|
+
bgColor = "active",
|
|
67
68
|
...other
|
|
68
69
|
}) {
|
|
69
70
|
const {
|
|
70
71
|
getLabel
|
|
71
72
|
} = useModuleDictionary();
|
|
72
|
-
const
|
|
73
|
-
size,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
})
|
|
78
|
-
}
|
|
73
|
+
const iconMemo = useMemo(() => {
|
|
74
|
+
console.log("IconButton", size, other, src);
|
|
75
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
76
|
+
src,
|
|
77
|
+
bgColor
|
|
78
|
+
});
|
|
79
|
+
}, [src, bgColor]);
|
|
79
80
|
const finalTooltip = useMemo(() => {
|
|
80
81
|
if (dictionaryTooltip && getLabel) {
|
|
81
82
|
return getLabel(dictionaryTooltip);
|
|
@@ -85,9 +86,17 @@ function IconButton({
|
|
|
85
86
|
if (finalTooltip && !other.disabled) {
|
|
86
87
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
87
88
|
title: finalTooltip,
|
|
88
|
-
children:
|
|
89
|
+
children: /* @__PURE__ */ jsx(IconButton$1, {
|
|
90
|
+
size,
|
|
91
|
+
...other,
|
|
92
|
+
children: iconMemo
|
|
93
|
+
})
|
|
89
94
|
});
|
|
90
95
|
}
|
|
91
|
-
return
|
|
96
|
+
return /* @__PURE__ */ jsx(IconButton$1, {
|
|
97
|
+
size,
|
|
98
|
+
...other,
|
|
99
|
+
children: iconMemo
|
|
100
|
+
});
|
|
92
101
|
}
|
|
93
102
|
export { IconButton as I, IconButtonAnimate as a };
|
|
@@ -3,7 +3,7 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { IconButton, Tooltip, MenuItem } from "@mui/material";
|
|
4
4
|
import { M as MenuPopover } from "../MenuPopover/index.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import {
|
|
6
|
+
import { I as Icon } from "../../Icon/index.js";
|
|
7
7
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
8
8
|
const WrapperMenuActions = styled(IconButton)(() => ({}));
|
|
9
9
|
const LabelMemuItem = styled("div")(({
|
|
@@ -30,7 +30,7 @@ function MenuActions(props) {
|
|
|
30
30
|
} = props;
|
|
31
31
|
const {
|
|
32
32
|
host_static_assets,
|
|
33
|
-
|
|
33
|
+
environment_assets
|
|
34
34
|
} = useEnvironment();
|
|
35
35
|
const {
|
|
36
36
|
getLabel
|
|
@@ -42,8 +42,8 @@ function MenuActions(props) {
|
|
|
42
42
|
const urlFinalIcon = useMemo(() => {
|
|
43
43
|
if (urlIcon)
|
|
44
44
|
return urlIcon;
|
|
45
|
-
return `${host_static_assets}/${
|
|
46
|
-
}, [urlIcon, host_static_assets,
|
|
45
|
+
return `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/more_vertical.svg`;
|
|
46
|
+
}, [urlIcon, host_static_assets, environment_assets]);
|
|
47
47
|
const handleClose = () => {
|
|
48
48
|
setOpen(null);
|
|
49
49
|
};
|
|
@@ -67,12 +67,10 @@ function MenuActions(props) {
|
|
|
67
67
|
id: "WrapperMenuActions",
|
|
68
68
|
size: "small",
|
|
69
69
|
onClick: handleOpen,
|
|
70
|
-
children: /* @__PURE__ */ jsx(
|
|
70
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
71
71
|
src: urlFinalIcon,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
height: 20
|
|
75
|
-
}
|
|
72
|
+
width: 16,
|
|
73
|
+
height: 16
|
|
76
74
|
})
|
|
77
75
|
})
|
|
78
76
|
}), /* @__PURE__ */ jsx(MenuPopover, {
|
|
@@ -101,7 +99,7 @@ function MenuActions(props) {
|
|
|
101
99
|
color: menuAction.color ? menuAction.color : "text.main"
|
|
102
100
|
},
|
|
103
101
|
disabled: menuAction.disabled,
|
|
104
|
-
children: [/* @__PURE__ */ jsx(
|
|
102
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
105
103
|
src: menuAction.urlIcon
|
|
106
104
|
}), /* @__PURE__ */ jsx(LabelMemuItem, {
|
|
107
105
|
children: getLabel(menuAction.dictionaryField)
|
|
@@ -24,7 +24,7 @@ function PagerActions(props) {
|
|
|
24
24
|
} = props;
|
|
25
25
|
const {
|
|
26
26
|
host_static_assets,
|
|
27
|
-
|
|
27
|
+
environment_assets
|
|
28
28
|
} = useEnvironment();
|
|
29
29
|
const handleFirstPageButtonClick = (event) => {
|
|
30
30
|
onPageChange(event, 0);
|
|
@@ -45,25 +45,25 @@ function PagerActions(props) {
|
|
|
45
45
|
onClick: handleFirstPageButtonClick,
|
|
46
46
|
disabled: page === 0,
|
|
47
47
|
"aria-label": "first page",
|
|
48
|
-
src: `${host_static_assets}/${
|
|
48
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/first.svg`
|
|
49
49
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
50
50
|
dictionaryTooltip: "pager.previous",
|
|
51
51
|
onClick: handleBackButtonClick,
|
|
52
52
|
disabled: page === 0,
|
|
53
53
|
"aria-label": "first page",
|
|
54
|
-
src: `${host_static_assets}/${
|
|
54
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/previous.svg`
|
|
55
55
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
56
56
|
dictionaryTooltip: "pager.next",
|
|
57
57
|
onClick: handleNextButtonClick,
|
|
58
58
|
disabled: page >= Math.ceil(count / rowsPerPage) - 1,
|
|
59
59
|
"aria-label": "next page",
|
|
60
|
-
src: `${host_static_assets}/${
|
|
60
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/next.svg`
|
|
61
61
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
62
62
|
dictionaryTooltip: "pager.last",
|
|
63
63
|
onClick: handleLastPageButtonClick,
|
|
64
64
|
disabled: page >= Math.ceil(count / rowsPerPage) - 1,
|
|
65
65
|
"aria-label": "last page",
|
|
66
|
-
src: `${host_static_assets}/${
|
|
66
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/last.svg`
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -47,11 +47,11 @@ const ContentConfirm = (props) => {
|
|
|
47
47
|
} = props;
|
|
48
48
|
const {
|
|
49
49
|
host_static_assets,
|
|
50
|
-
|
|
50
|
+
environment_assets
|
|
51
51
|
} = useEnvironment();
|
|
52
|
-
const illustrationWarning = `${host_static_assets}/${
|
|
53
|
-
const illustrationError = `${host_static_assets}/${
|
|
54
|
-
const illustrationInfo = `${host_static_assets}/${
|
|
52
|
+
const illustrationWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_warning.svg`;
|
|
53
|
+
const illustrationError = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_danger.svg`;
|
|
54
|
+
const illustrationInfo = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_info.svg`;
|
|
55
55
|
return /* @__PURE__ */ jsx(WrapperContentConfirm, {
|
|
56
56
|
children: /* @__PURE__ */ jsxs(ModalContent, {
|
|
57
57
|
children: [/* @__PURE__ */ jsx(IllustrationContainer, {
|
package/dist/vendor.js
CHANGED
|
@@ -15,10 +15,11 @@ import "./components/hook-form/RHFDateTime.js";
|
|
|
15
15
|
import "@mui/x-date-pickers";
|
|
16
16
|
import "./components/hook-form/RHFTextField/index.js";
|
|
17
17
|
import "./lodash.js";
|
|
18
|
-
import "./react-lazy-load-image-component.js";
|
|
19
18
|
import { styled } from "@mui/material/styles";
|
|
19
|
+
import "./react-lazy-load-image-component.js";
|
|
20
20
|
import "./components/Image/index.js";
|
|
21
21
|
import "./components/hook-form/RHFUpload.js";
|
|
22
|
+
import "./components/Icon/index.js";
|
|
22
23
|
import "./components/mui_extended/LoadingButton/index.js";
|
|
23
24
|
import "./components/mui_extended/MenuPopover/index.js";
|
|
24
25
|
import "./components/mui_extended/MenuActions/index.js";
|
|
@@ -32,7 +33,6 @@ import "react-dnd-html5-backend";
|
|
|
32
33
|
import "date-fns";
|
|
33
34
|
import "./components/ScrollBar/index.js";
|
|
34
35
|
import "./components/DynamicFilter/index.js";
|
|
35
|
-
import "./components/Icon/index.js";
|
|
36
36
|
import "./simplebar.js";
|
|
37
37
|
import "yup";
|
|
38
38
|
import "./components/FormActions/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.37",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
"format": "npm run prettier:fix && npm run lint:fix"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"@m4l/graphics": "^0.0.28",
|
|
17
18
|
"react": "^17.0.0 || 18.x",
|
|
18
19
|
"react-dom": "^18.0.0",
|
|
19
20
|
"react-draggable": "^4.4.5"
|
|
20
21
|
},
|
|
21
22
|
"peerDependencies": {
|
|
22
23
|
"@hookform/resolvers": "^2.9.5",
|
|
23
|
-
"@m4l/core": "^0.0.32",
|
|
24
|
-
"@m4l/graphics": "^0.0.24",
|
|
25
24
|
"@mui/lab": "^5.0.0-alpha.89",
|
|
26
25
|
"@mui/material": "^5.8.7",
|
|
27
26
|
"@mui/x-date-pickers": "^5.0.0-beta.0",
|
|
@@ -42,8 +41,6 @@
|
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@emotion/styled": "^11.9.3",
|
|
44
43
|
"@hookform/resolvers": "^2.9.5",
|
|
45
|
-
"@m4l/core": "^0.0.32",
|
|
46
|
-
"@m4l/graphics": "^0.0.24",
|
|
47
44
|
"@mui/lab": "^5.0.0-alpha.89",
|
|
48
45
|
"@mui/material": "^5.8.7",
|
|
49
46
|
"@mui/x-date-pickers": "^5.0.0-beta.0",
|