@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,19 +0,0 @@
|
|
|
1
|
-
import { styled as p } from "@mui/material";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
const a = p("p")(({
|
|
4
|
-
theme: r
|
|
5
|
-
}) => ({
|
|
6
|
-
...r.typography.caption,
|
|
7
|
-
color: r.palette.error.main,
|
|
8
|
-
margin: "8px 14px 0 14px"
|
|
9
|
-
})), s = (r) => {
|
|
10
|
-
const {
|
|
11
|
-
message: o
|
|
12
|
-
} = r;
|
|
13
|
-
return /* @__PURE__ */ t(a, {
|
|
14
|
-
children: o
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
s as E
|
|
19
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { styled as c } from "@mui/material";
|
|
2
|
-
import { useState as j, useMemo as C, useEffect as l } from "react";
|
|
3
|
-
import { useTheme as g } from "@mui/material/styles";
|
|
4
|
-
import { g as m } from "../../utils/index.214d9542.js";
|
|
5
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
-
const I = c("div", {
|
|
7
|
-
shouldForwardProp: (M) => M !== "src" && M !== "sizeIcon" && M !== "bgColor"
|
|
8
|
-
})(({
|
|
9
|
-
size: M,
|
|
10
|
-
src: L,
|
|
11
|
-
bgColor: e
|
|
12
|
-
}) => ({
|
|
13
|
-
maskPosition: "center!important",
|
|
14
|
-
maskRepeat: "no-repeat!important",
|
|
15
|
-
WebkitMaskRepeat: "no-repeat!important",
|
|
16
|
-
width: M,
|
|
17
|
-
height: M,
|
|
18
|
-
backgroundColor: e,
|
|
19
|
-
mask: `url('data:image/svg+xml;base64,${L}')`,
|
|
20
|
-
WebkitMask: `url('data:image/svg+xml;base64,${L}')`
|
|
21
|
-
})), D = c("div")(() => ({
|
|
22
|
-
display: "flex",
|
|
23
|
-
justifyContent: "center",
|
|
24
|
-
alignItems: "center"
|
|
25
|
-
}));
|
|
26
|
-
function A(M) {
|
|
27
|
-
const {
|
|
28
|
-
src: L,
|
|
29
|
-
size: e = "small",
|
|
30
|
-
bgColor: o = "action.active"
|
|
31
|
-
} = M, [u, w] = j(void 0), a = g(), r = C(() => {
|
|
32
|
-
switch (e) {
|
|
33
|
-
case "extra-small":
|
|
34
|
-
return "12px";
|
|
35
|
-
case "small":
|
|
36
|
-
return "16px";
|
|
37
|
-
case "medium":
|
|
38
|
-
return "18px";
|
|
39
|
-
case "large":
|
|
40
|
-
return "22px";
|
|
41
|
-
}
|
|
42
|
-
return e;
|
|
43
|
-
}, [e]);
|
|
44
|
-
return l(() => {
|
|
45
|
-
let i = !0;
|
|
46
|
-
return async function() {
|
|
47
|
-
await fetch(L).then((t) => t.text() || "").then((t) => {
|
|
48
|
-
t = t.match(
|
|
49
|
-
/(<svg\b[^>]*\s*(viewBox="(\b[^"]*)").*?>([\s\S]*?)<\/svg>|<svg>([\s\S]*?)<\/svg>)/g
|
|
50
|
-
)?.toString() || "", i && w(window.btoa(t));
|
|
51
|
-
}).catch((t) => {
|
|
52
|
-
});
|
|
53
|
-
}(), function() {
|
|
54
|
-
i = !1;
|
|
55
|
-
};
|
|
56
|
-
}, [L]), /* @__PURE__ */ s(D, {
|
|
57
|
-
className: "m4l_icon",
|
|
58
|
-
children: u ? /* @__PURE__ */ s(I, {
|
|
59
|
-
src: u,
|
|
60
|
-
size: r,
|
|
61
|
-
bgColor: m(a.palette, o)
|
|
62
|
-
}) : /* @__PURE__ */ s("img", {
|
|
63
|
-
src: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
|
|
64
|
-
alt: "icon_svg"
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
A as I
|
|
70
|
-
};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { b as s } from "../../react-lazy-load-image-component.45b56650.js";
|
|
2
|
-
import { Skeleton as N, Box as l } from "@mui/material";
|
|
3
|
-
import { styled as I, useTheme as g } from "@mui/material/styles";
|
|
4
|
-
import { jsx as L } from "react/jsx-runtime";
|
|
5
|
-
const z = I("div")(({
|
|
6
|
-
theme: M,
|
|
7
|
-
width: w
|
|
8
|
-
}) => ({
|
|
9
|
-
width: w,
|
|
10
|
-
height: "100%",
|
|
11
|
-
padding: M.spacing(3),
|
|
12
|
-
mask: `zurl("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
|
|
13
|
-
WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`
|
|
14
|
-
})), t = I("div")(({
|
|
15
|
-
width: M,
|
|
16
|
-
height: w
|
|
17
|
-
}) => ({
|
|
18
|
-
".lazy-load-image-background.blur": {
|
|
19
|
-
filter: "blur(15px)"
|
|
20
|
-
},
|
|
21
|
-
".lazy-load-image-background.blur.lazy-load-image-loaded": {
|
|
22
|
-
filter: "blur(0)",
|
|
23
|
-
transition: "filter .3s;"
|
|
24
|
-
},
|
|
25
|
-
".lazy-load-image-background.blur > img": {
|
|
26
|
-
opacity: "0"
|
|
27
|
-
},
|
|
28
|
-
".lazy-load-image-background.blur.lazy-load-image-loaded > img": {
|
|
29
|
-
opacity: 1,
|
|
30
|
-
transition: "opacity .3s"
|
|
31
|
-
},
|
|
32
|
-
width: M,
|
|
33
|
-
height: w,
|
|
34
|
-
lineHeight: 0,
|
|
35
|
-
display: "block",
|
|
36
|
-
overflow: "hidden",
|
|
37
|
-
"& > span": {
|
|
38
|
-
width: "100%",
|
|
39
|
-
height: "100%"
|
|
40
|
-
},
|
|
41
|
-
"& .LazyLoadImage": {
|
|
42
|
-
width: "100%",
|
|
43
|
-
height: "100%",
|
|
44
|
-
objectFit: "contain"
|
|
45
|
-
}
|
|
46
|
-
}));
|
|
47
|
-
function A({
|
|
48
|
-
ratio: M,
|
|
49
|
-
sx: w,
|
|
50
|
-
isSkeleton: D = !1,
|
|
51
|
-
width: u = "100%",
|
|
52
|
-
height: j = "100%",
|
|
53
|
-
src: C,
|
|
54
|
-
...i
|
|
55
|
-
}) {
|
|
56
|
-
const c = g().palette.mode;
|
|
57
|
-
return D ? /* @__PURE__ */ L(z, {
|
|
58
|
-
width: u,
|
|
59
|
-
children: /* @__PURE__ */ L(N, {
|
|
60
|
-
variant: "rectangular",
|
|
61
|
-
width: "100%",
|
|
62
|
-
height: "100%"
|
|
63
|
-
})
|
|
64
|
-
}) : M ? /* @__PURE__ */ L(l, {
|
|
65
|
-
component: "span",
|
|
66
|
-
sx: {
|
|
67
|
-
width: 1,
|
|
68
|
-
lineHeight: 0,
|
|
69
|
-
display: "block",
|
|
70
|
-
overflow: "hidden",
|
|
71
|
-
position: "relative",
|
|
72
|
-
pt: a(M),
|
|
73
|
-
"& .wrapper": {
|
|
74
|
-
top: 0,
|
|
75
|
-
left: 0,
|
|
76
|
-
right: 0,
|
|
77
|
-
bottom: 0,
|
|
78
|
-
lineHeight: 0,
|
|
79
|
-
position: "absolute",
|
|
80
|
-
backgroundSize: "cover !important"
|
|
81
|
-
},
|
|
82
|
-
...w
|
|
83
|
-
},
|
|
84
|
-
children: /* @__PURE__ */ L(t, {
|
|
85
|
-
width: u,
|
|
86
|
-
height: j,
|
|
87
|
-
id: "WrapperLazyLoadImage",
|
|
88
|
-
children: /* @__PURE__ */ L(s.exports.LazyLoadImage, {
|
|
89
|
-
className: "LazyLoadImage",
|
|
90
|
-
src: C,
|
|
91
|
-
placeholderSrc: c === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIu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sNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
|
|
92
|
-
...i
|
|
93
|
-
})
|
|
94
|
-
})
|
|
95
|
-
}) : /* @__PURE__ */ L(t, {
|
|
96
|
-
width: u,
|
|
97
|
-
height: j,
|
|
98
|
-
id: "WrapperLazyLoadImage",
|
|
99
|
-
children: /* @__PURE__ */ L(s.exports.LazyLoadImage, {
|
|
100
|
-
className: "LazyLoadImage",
|
|
101
|
-
src: C,
|
|
102
|
-
placeholderSrc: c === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40L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LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
|
|
103
|
-
...i
|
|
104
|
-
})
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function a(M = "1/1") {
|
|
108
|
-
return {
|
|
109
|
-
"4/3": "calc(100% / 4 * 3)",
|
|
110
|
-
"3/4": "calc(100% / 3 * 4)",
|
|
111
|
-
"6/4": "calc(100% / 6 * 4)",
|
|
112
|
-
"4/6": "calc(100% / 4 * 6)",
|
|
113
|
-
"16/9": "calc(100% / 16 * 9)",
|
|
114
|
-
"9/16": "calc(100% / 9 * 16)",
|
|
115
|
-
"21/9": "calc(100% / 21 * 9)",
|
|
116
|
-
"9/21": "calc(100% / 9 * 21)",
|
|
117
|
-
"1/1": "100%"
|
|
118
|
-
}[M];
|
|
119
|
-
}
|
|
120
|
-
export {
|
|
121
|
-
A as I
|
|
122
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { useState as u } from "react";
|
|
2
|
-
import { styled as d, Skeleton as h, IconButton as g, Stack as f, MenuItem as v } from "@mui/material";
|
|
3
|
-
import { I as a } from "../Image/index.e790b50b.js";
|
|
4
|
-
import { useLocales as L } from "@m4l/graphics";
|
|
5
|
-
import { useModuleSkeleton as b } from "@m4l/core";
|
|
6
|
-
import "../Icon/index.cbca79b0.js";
|
|
7
|
-
import "@mui/material/styles";
|
|
8
|
-
import { jsx as r, jsxs as m, Fragment as x } from "react/jsx-runtime";
|
|
9
|
-
import "../mui_extended/Accordion/index.2116e423.js";
|
|
10
|
-
import "../mui_extended/Avatar/index.0a2a4523.js";
|
|
11
|
-
import "react-router-dom";
|
|
12
|
-
import "@mui/material/Button";
|
|
13
|
-
import "../mui_extended/Button/index.84d8898c.js";
|
|
14
|
-
import "@mui/lab";
|
|
15
|
-
import { M as k } from "../mui_extended/MenuPopover/index.488fc536.js";
|
|
16
|
-
import "../CommonActions/components/Actions/index.e8148d98.js";
|
|
17
|
-
import "../mui_extended/Pager/index.0576814f.js";
|
|
18
|
-
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
19
|
-
const I = d("div")(({
|
|
20
|
-
theme: t
|
|
21
|
-
}) => ({
|
|
22
|
-
marginLeft: t.spacing(1)
|
|
23
|
-
}));
|
|
24
|
-
function H() {
|
|
25
|
-
const t = b(), {
|
|
26
|
-
allLang: c,
|
|
27
|
-
currentLang: o,
|
|
28
|
-
onChangeLang: s
|
|
29
|
-
} = L(), [n, l] = u(null), p = (e) => {
|
|
30
|
-
l(e.currentTarget);
|
|
31
|
-
}, i = () => {
|
|
32
|
-
l(null);
|
|
33
|
-
};
|
|
34
|
-
return t ? /* @__PURE__ */ r(h, {
|
|
35
|
-
variant: "circular",
|
|
36
|
-
width: 20,
|
|
37
|
-
height: 20
|
|
38
|
-
}) : /* @__PURE__ */ m(x, {
|
|
39
|
-
children: [/* @__PURE__ */ r(g, {
|
|
40
|
-
onClick: p,
|
|
41
|
-
sx: {
|
|
42
|
-
width: 40,
|
|
43
|
-
height: 40,
|
|
44
|
-
...n && {
|
|
45
|
-
bgcolor: "action.selected"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
children: /* @__PURE__ */ r(a, {
|
|
49
|
-
src: o.icon,
|
|
50
|
-
alt: o.label
|
|
51
|
-
})
|
|
52
|
-
}), /* @__PURE__ */ r(k, {
|
|
53
|
-
open: Boolean(n),
|
|
54
|
-
anchorEl: n,
|
|
55
|
-
onClose: i,
|
|
56
|
-
sx: {
|
|
57
|
-
mt: 1.5,
|
|
58
|
-
ml: 0.75,
|
|
59
|
-
width: 180,
|
|
60
|
-
"& .MuiMenuItem-root": {
|
|
61
|
-
px: 1,
|
|
62
|
-
typography: "body2",
|
|
63
|
-
borderRadius: 0.75
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
children: /* @__PURE__ */ r(f, {
|
|
67
|
-
spacing: 0.75,
|
|
68
|
-
children: c.map((e) => /* @__PURE__ */ m(v, {
|
|
69
|
-
selected: e.value === o.value,
|
|
70
|
-
onClick: () => {
|
|
71
|
-
s(e.value), i();
|
|
72
|
-
},
|
|
73
|
-
children: [/* @__PURE__ */ r(a, {
|
|
74
|
-
alt: e.label,
|
|
75
|
-
src: e.icon,
|
|
76
|
-
width: "24px"
|
|
77
|
-
}), /* @__PURE__ */ r(I, {
|
|
78
|
-
children: e.label
|
|
79
|
-
})]
|
|
80
|
-
}, e.value))
|
|
81
|
-
})
|
|
82
|
-
})]
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
H as L
|
|
87
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Suspense as a } from "react";
|
|
2
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
const l = (o) => function(r) {
|
|
4
|
-
return /* @__PURE__ */ e(a, {
|
|
5
|
-
fallback: /* @__PURE__ */ e("div", {
|
|
6
|
-
children: "Cargando"
|
|
7
|
-
}),
|
|
8
|
-
children: /* @__PURE__ */ e(o, {
|
|
9
|
-
...r
|
|
10
|
-
})
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
l as L
|
|
15
|
-
};
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { Dialog as b, IconButton as w, Paper as v } from "@mui/material";
|
|
2
|
-
import { c as D } from "../../react-draggable.20e95c61.js";
|
|
3
|
-
import { u as $ } from "../../hooks/useModal/index.6571d2d9.js";
|
|
4
|
-
import { styled as s } from "@mui/material/styles";
|
|
5
|
-
import { a as x } from "../../utils/index.214d9542.js";
|
|
6
|
-
import { R as M } from "../Resizeable/index.45995d2b.js";
|
|
7
|
-
import { useResponsiveDesktop as H } from "@m4l/graphics";
|
|
8
|
-
import { useEnvironment as I } from "@m4l/core";
|
|
9
|
-
import { I as C } from "../Icon/index.cbca79b0.js";
|
|
10
|
-
import { jsxs as h, jsx as n } from "react/jsx-runtime";
|
|
11
|
-
import { b as W, g as _ } from "../CommonActions/components/Actions/index.e8148d98.js";
|
|
12
|
-
const j = s(b)(() => ({})), k = s("div")(({ theme: o }) => ({
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
height: "100%",
|
|
16
|
-
overflow: "hidden",
|
|
17
|
-
padding: o.spacing(3)
|
|
18
|
-
})), P = s("div")(({ theme: o }) => ({
|
|
19
|
-
display: "flex",
|
|
20
|
-
alignItems: "center",
|
|
21
|
-
justifyContent: "space-between",
|
|
22
|
-
minHeight: o.spacing(5),
|
|
23
|
-
borderBottom: `1px solid ${o.palette.divider}`,
|
|
24
|
-
overflow: "hidden"
|
|
25
|
-
}));
|
|
26
|
-
s("div")(({ theme: o }) => ({
|
|
27
|
-
display: "flex",
|
|
28
|
-
flexDirection: "row",
|
|
29
|
-
flexGrow: 1,
|
|
30
|
-
alignItems: "center",
|
|
31
|
-
cursor: "move",
|
|
32
|
-
...o.typography.subtitle1,
|
|
33
|
-
color: o.palette.text.primary
|
|
34
|
-
}));
|
|
35
|
-
const R = s("div")(({ theme: o, variant: t }) => ({
|
|
36
|
-
display: "flex",
|
|
37
|
-
alignItems: "center",
|
|
38
|
-
justifyContent: "center",
|
|
39
|
-
marginRight: o.spacing(1.5),
|
|
40
|
-
"& > span": {
|
|
41
|
-
background: x(o, t)
|
|
42
|
-
}
|
|
43
|
-
})), S = s("div")(() => ({
|
|
44
|
-
flexGrow: 1,
|
|
45
|
-
position: "relative",
|
|
46
|
-
overflow: "auto"
|
|
47
|
-
})), A = s("div")(({ theme: o, variant: t }) => ({
|
|
48
|
-
...o.typography.subtitle1,
|
|
49
|
-
color: x(o, t),
|
|
50
|
-
width: "100%",
|
|
51
|
-
whiteSpace: "nowrap",
|
|
52
|
-
textOverflow: "ellipsis",
|
|
53
|
-
overflow: "hidden"
|
|
54
|
-
})), B = (o) => {
|
|
55
|
-
const {
|
|
56
|
-
host_static_assets: t,
|
|
57
|
-
environment_assets: e
|
|
58
|
-
} = I(), {
|
|
59
|
-
variant: i,
|
|
60
|
-
title: d,
|
|
61
|
-
iconComponent: r,
|
|
62
|
-
withClose: p,
|
|
63
|
-
onCloseModal: a
|
|
64
|
-
} = o, m = `${t}/${e}/frontend/components/dialog/assets/icons/warning.svg`, g = `${t}/${e}/frontend/components/dialog/assets/icons/error.svg`, f = `${t}/${e}/frontend/components/dialog/assets/icons/info.svg`, l = `${t}/${e}/frontend/components/dialog/assets/icons/icon_bar_title.svg`;
|
|
65
|
-
return /* @__PURE__ */ h(P, {
|
|
66
|
-
id: "Header",
|
|
67
|
-
className: "draggable-dialog-title",
|
|
68
|
-
children: [/* @__PURE__ */ n(R, {
|
|
69
|
-
variant: i,
|
|
70
|
-
children: r || /* @__PURE__ */ n(C, {
|
|
71
|
-
src: i === "warning" ? m : i === "delete" ? g : i === "info" ? f : l
|
|
72
|
-
})
|
|
73
|
-
}), /* @__PURE__ */ n(A, {
|
|
74
|
-
variant: i,
|
|
75
|
-
children: d
|
|
76
|
-
}), p && /* @__PURE__ */ n(w, {
|
|
77
|
-
onClick: a,
|
|
78
|
-
"aria-label": "click",
|
|
79
|
-
children: /* @__PURE__ */ n(C, {
|
|
80
|
-
src: `${t}/${e}/frontend/components/dialog/assets/icons/close.svg`
|
|
81
|
-
})
|
|
82
|
-
})]
|
|
83
|
-
});
|
|
84
|
-
}, E = (o) => /* @__PURE__ */ n(D.exports, {
|
|
85
|
-
handle: ".draggable-dialog-title",
|
|
86
|
-
cancel: '[class*="MuiDialogContent-root"]',
|
|
87
|
-
children: /* @__PURE__ */ n(v, {
|
|
88
|
-
sx: {
|
|
89
|
-
maxHeight: "unset",
|
|
90
|
-
maxWidth: "unset"
|
|
91
|
-
},
|
|
92
|
-
...o
|
|
93
|
-
})
|
|
94
|
-
});
|
|
95
|
-
function G(o) {
|
|
96
|
-
return /* @__PURE__ */ n(v, {
|
|
97
|
-
sx: {
|
|
98
|
-
maxHeight: "unset",
|
|
99
|
-
maxWidth: "unset",
|
|
100
|
-
height: "100%"
|
|
101
|
-
},
|
|
102
|
-
...o
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
const X = () => {
|
|
106
|
-
const {
|
|
107
|
-
open: o,
|
|
108
|
-
initialWidth: t = 600,
|
|
109
|
-
initialHeigth: e = 400,
|
|
110
|
-
maxWidth: i,
|
|
111
|
-
maxHeigth: d,
|
|
112
|
-
withClose: r = !0,
|
|
113
|
-
onQueryClose: p,
|
|
114
|
-
contentComponent: a,
|
|
115
|
-
title: m,
|
|
116
|
-
closeModal: g,
|
|
117
|
-
iconComponent: f,
|
|
118
|
-
actions: l,
|
|
119
|
-
variant: y
|
|
120
|
-
} = $(), c = H(), u = /* @__PURE__ */ h(k, {
|
|
121
|
-
id: "Container",
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ n(B, {
|
|
124
|
-
variant: y,
|
|
125
|
-
title: m,
|
|
126
|
-
iconComponent: f,
|
|
127
|
-
withClose: r,
|
|
128
|
-
onCloseModal: () => {
|
|
129
|
-
g();
|
|
130
|
-
}
|
|
131
|
-
}),
|
|
132
|
-
/* @__PURE__ */ n(S, {
|
|
133
|
-
id: "Content",
|
|
134
|
-
children: typeof a == "function" ? a() : a
|
|
135
|
-
}),
|
|
136
|
-
l && /* @__PURE__ */ n(W, {
|
|
137
|
-
children: l
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
});
|
|
141
|
-
return /* @__PURE__ */ h(j, {
|
|
142
|
-
open: o,
|
|
143
|
-
onClose: p,
|
|
144
|
-
"aria-labelledby": "child-modal-title",
|
|
145
|
-
"aria-describedby": "child-modal-description",
|
|
146
|
-
PaperComponent: c ? E : G,
|
|
147
|
-
maxWidth: !1,
|
|
148
|
-
fullWidth: !c,
|
|
149
|
-
children: [c && /* @__PURE__ */ n(M, {
|
|
150
|
-
width: t,
|
|
151
|
-
height: e,
|
|
152
|
-
maxWidth: i,
|
|
153
|
-
maxHeigth: d,
|
|
154
|
-
children: u
|
|
155
|
-
}), !c && u]
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
function Y() {
|
|
159
|
-
return ["modal_dialog"].concat(_());
|
|
160
|
-
}
|
|
161
|
-
const Z = {
|
|
162
|
-
modal_dialog: {}
|
|
163
|
-
};
|
|
164
|
-
export {
|
|
165
|
-
X as M,
|
|
166
|
-
Z as d,
|
|
167
|
-
Y as g
|
|
168
|
-
};
|