@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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { Skeleton } from "@mui/material";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
5
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
6
|
+
const WrapperPropertyValue = styled("div", {
|
|
7
|
+
shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
|
|
8
|
+
})(({
|
|
9
|
+
propertyWidth,
|
|
10
|
+
isForm,
|
|
11
|
+
theme
|
|
12
|
+
}) => ({
|
|
13
|
+
display: "grid",
|
|
14
|
+
gridTemplateColumns: "1fr",
|
|
15
|
+
alignItems: "flex-start",
|
|
16
|
+
width: "100%",
|
|
17
|
+
padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
|
|
18
|
+
":hover": {
|
|
19
|
+
backgroundColor: isForm ? "unset" : theme.palette.grid?.rowHover
|
|
20
|
+
},
|
|
21
|
+
borderBottom: isForm ? "none" : `1px solid ${theme.palette.divider}`,
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
[theme.breakpoints.up("sm")]: {
|
|
24
|
+
gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr",
|
|
25
|
+
gap: theme.spacing(2),
|
|
26
|
+
alignItems: "center"
|
|
27
|
+
}
|
|
28
|
+
}));
|
|
29
|
+
const Property = styled("div", {
|
|
30
|
+
shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
|
|
31
|
+
})(({
|
|
32
|
+
propertyWidth,
|
|
33
|
+
isForm,
|
|
34
|
+
theme
|
|
35
|
+
}) => ({
|
|
36
|
+
width: "100%",
|
|
37
|
+
minWidth: "100%",
|
|
38
|
+
...theme.typography.subtitle2,
|
|
39
|
+
color: theme.palette.text.primary,
|
|
40
|
+
height: "100%",
|
|
41
|
+
display: "flex",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
justifyContent: "flex-start",
|
|
44
|
+
position: "relative",
|
|
45
|
+
[theme.breakpoints.up("sm")]: {
|
|
46
|
+
borderRight: isForm ? "none" : `1px solid ${theme.palette.divider}`,
|
|
47
|
+
paddingRight: theme.spacing(2),
|
|
48
|
+
textAlign: "right",
|
|
49
|
+
width: propertyWidth || "150px",
|
|
50
|
+
minWidth: propertyWidth || "150px",
|
|
51
|
+
justifyContent: "flex-end"
|
|
52
|
+
},
|
|
53
|
+
overflow: "hidden",
|
|
54
|
+
overflowWrap: "break-word"
|
|
55
|
+
}));
|
|
56
|
+
const Value = styled("div", {
|
|
57
|
+
shouldForwardProp: (prop) => prop !== "valueWidth" && prop !== "valueHeight" && prop !== "withGrid"
|
|
58
|
+
})(({
|
|
59
|
+
valueWidth,
|
|
60
|
+
valueHeight,
|
|
61
|
+
theme
|
|
62
|
+
}) => ({
|
|
63
|
+
flexGrow: "1",
|
|
64
|
+
...theme.typography.body2,
|
|
65
|
+
color: theme.palette.text.secondary,
|
|
66
|
+
position: "relative",
|
|
67
|
+
padding: "1px",
|
|
68
|
+
maxWidth: `${valueWidth}%`,
|
|
69
|
+
width: `${valueWidth}%`,
|
|
70
|
+
height: valueHeight,
|
|
71
|
+
marginTop: theme.spacing(1),
|
|
72
|
+
[theme.breakpoints.up("sm")]: {
|
|
73
|
+
marginTop: "0px"
|
|
74
|
+
},
|
|
75
|
+
overflow: "hidden",
|
|
76
|
+
overflowWrap: "break-word"
|
|
77
|
+
}));
|
|
78
|
+
const SKTWrapperProperty = styled("div")(() => ({
|
|
79
|
+
display: "flex",
|
|
80
|
+
justifyContent: "flex-end"
|
|
81
|
+
}));
|
|
82
|
+
function SKTProperty() {
|
|
83
|
+
return /* @__PURE__ */ jsx(SKTWrapperProperty, {
|
|
84
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
85
|
+
variant: "text",
|
|
86
|
+
width: 68,
|
|
87
|
+
height: 14
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function PropertyValue(props) {
|
|
92
|
+
const {
|
|
93
|
+
property,
|
|
94
|
+
value,
|
|
95
|
+
propertyWidth = 200,
|
|
96
|
+
valueHeight = "auto",
|
|
97
|
+
valueWidth = "100",
|
|
98
|
+
isForm
|
|
99
|
+
} = props;
|
|
100
|
+
const isDesktop = useResponsiveDesktop();
|
|
101
|
+
const isSkeleton = useModuleSkeleton();
|
|
102
|
+
const getValueW = () => {
|
|
103
|
+
if (valueWidth === "75" && isDesktop) {
|
|
104
|
+
return "75";
|
|
105
|
+
} else if (valueWidth === "75" && !isDesktop) {
|
|
106
|
+
return "100";
|
|
107
|
+
}
|
|
108
|
+
if (valueWidth === "50" && isDesktop) {
|
|
109
|
+
return "50";
|
|
110
|
+
} else if (valueWidth === "50" && !isDesktop) {
|
|
111
|
+
return "100";
|
|
112
|
+
}
|
|
113
|
+
if (valueWidth === "25" && isDesktop || valueWidth === "12.5" && isDesktop) {
|
|
114
|
+
return `${valueWidth}`;
|
|
115
|
+
}
|
|
116
|
+
if (valueWidth === "25" && !isDesktop) {
|
|
117
|
+
return "50";
|
|
118
|
+
}
|
|
119
|
+
if (valueWidth === "12.5" && !isDesktop) {
|
|
120
|
+
return "25";
|
|
121
|
+
}
|
|
122
|
+
return "100";
|
|
123
|
+
};
|
|
124
|
+
const valueW = getValueW();
|
|
125
|
+
return /* @__PURE__ */ jsxs(WrapperPropertyValue, {
|
|
126
|
+
id: "WrapperPropertyValue",
|
|
127
|
+
isForm,
|
|
128
|
+
propertyWidth,
|
|
129
|
+
children: [/* @__PURE__ */ jsx(Property, {
|
|
130
|
+
id: "Property",
|
|
131
|
+
isForm,
|
|
132
|
+
propertyWidth,
|
|
133
|
+
children: isSkeleton ? /* @__PURE__ */ jsx(SKTProperty, {}) : property
|
|
134
|
+
}), /* @__PURE__ */ jsx(Value, {
|
|
135
|
+
id: "Value",
|
|
136
|
+
valueWidth: valueW,
|
|
137
|
+
valueHeight,
|
|
138
|
+
children: value
|
|
139
|
+
})]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
export { PropertyValue as P };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { styled
|
|
2
|
-
import { R as
|
|
3
|
-
import { jsx
|
|
4
|
-
const
|
|
5
|
-
theme
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { R as ResizableBox } from "../../react-resizable.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
|
+
theme
|
|
6
6
|
}) => ({
|
|
7
7
|
"&.react-resizable": {
|
|
8
8
|
position: "relative",
|
|
@@ -17,7 +17,7 @@ const g = n(i)(({
|
|
|
17
17
|
backgroundRepeat: "no-repeat",
|
|
18
18
|
backgroundOrigin: "content-box",
|
|
19
19
|
boxSizing: "border-box",
|
|
20
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: theme.palette.action.active,
|
|
21
21
|
mask: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
|
|
22
22
|
backgroundImage: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
|
|
23
23
|
backgroundPosition: "bottom right",
|
|
@@ -73,22 +73,20 @@ const g = n(i)(({
|
|
|
73
73
|
transform: "rotate(45deg)"
|
|
74
74
|
}
|
|
75
75
|
}));
|
|
76
|
-
function
|
|
76
|
+
function Resizeable(props) {
|
|
77
77
|
const {
|
|
78
|
-
children
|
|
79
|
-
width
|
|
80
|
-
height
|
|
81
|
-
maxHeigth
|
|
82
|
-
maxWidth
|
|
83
|
-
} =
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
-
width
|
|
86
|
-
height
|
|
87
|
-
maxConstraints:
|
|
78
|
+
children,
|
|
79
|
+
width,
|
|
80
|
+
height,
|
|
81
|
+
maxHeigth,
|
|
82
|
+
maxWidth
|
|
83
|
+
} = props;
|
|
84
|
+
return /* @__PURE__ */ jsx(WrapperResizeable, {
|
|
85
|
+
width,
|
|
86
|
+
height,
|
|
87
|
+
maxConstraints: maxHeigth && maxWidth ? [maxWidth, maxHeigth] : void 0,
|
|
88
88
|
resizeHandles: ["se", "nw"],
|
|
89
|
-
children
|
|
89
|
+
children
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
export {
|
|
93
|
-
x as R
|
|
94
|
-
};
|
|
92
|
+
export { Resizeable as R };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import SimpleBarReact from "simplebar-react";
|
|
2
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
3
|
+
import { Box } from "@mui/material";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
const RootStyle = styled("div")(() => ({
|
|
6
|
+
flexGrow: 1,
|
|
7
|
+
height: "100%",
|
|
8
|
+
overflow: "hidden"
|
|
9
|
+
}));
|
|
10
|
+
const SimpleBarStyle = styled(SimpleBarReact)(({
|
|
11
|
+
theme
|
|
12
|
+
}) => ({
|
|
13
|
+
maxHeight: "100%",
|
|
14
|
+
"& .simplebar-scrollbar": {
|
|
15
|
+
"&:before": {
|
|
16
|
+
backgroundColor: alpha(theme.palette.grey[600], 0.48)
|
|
17
|
+
},
|
|
18
|
+
"&.simplebar-visible:before": {
|
|
19
|
+
opacity: 1
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"& .simplebar-track.simplebar-vertical": {
|
|
23
|
+
width: 10
|
|
24
|
+
},
|
|
25
|
+
"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar": {
|
|
26
|
+
height: 6
|
|
27
|
+
},
|
|
28
|
+
"& .simplebar-mask": {
|
|
29
|
+
zIndex: "inherit"
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
function ScrollBar({
|
|
33
|
+
children
|
|
34
|
+
}) {
|
|
35
|
+
const userAgent = typeof navigator === "undefined" ? "SSR" : navigator.userAgent;
|
|
36
|
+
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
|
37
|
+
if (isMobile) {
|
|
38
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
39
|
+
sx: {
|
|
40
|
+
overflowX: "auto"
|
|
41
|
+
},
|
|
42
|
+
children
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return /* @__PURE__ */ jsx(RootStyle, {
|
|
46
|
+
children: /* @__PURE__ */ jsx(SimpleBarStyle, {
|
|
47
|
+
autoHide: false,
|
|
48
|
+
children
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
export { ScrollBar as S };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useLocation } from "react-router-dom";
|
|
3
|
+
function ScrollToTop() {
|
|
4
|
+
const { pathname } = useLocation();
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
window.scrollTo(0, 0);
|
|
7
|
+
}, [pathname]);
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
export { ScrollToTop as S };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { styled
|
|
3
|
-
import { jsx
|
|
4
|
-
const
|
|
5
|
-
theme
|
|
1
|
+
import { S as SplitterLayout } from "../../react-splitter-layout.js";
|
|
2
|
+
import { styled } from "@mui/material/styles";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
const WrapperSplit = styled("div")(({
|
|
5
|
+
theme
|
|
6
6
|
}) => ({
|
|
7
7
|
display: "flex",
|
|
8
8
|
flexDirection: "column",
|
|
@@ -31,7 +31,7 @@ const u = r("div")(({
|
|
|
31
31
|
"& .splitter-layout > .layout-splitter": {
|
|
32
32
|
display: "flex",
|
|
33
33
|
alignItems: "center",
|
|
34
|
-
backgroundColor:
|
|
34
|
+
backgroundColor: theme.palette.divider,
|
|
35
35
|
boxSizing: "border-box",
|
|
36
36
|
backgroundClip: "padding-box",
|
|
37
37
|
width: "11px",
|
|
@@ -43,17 +43,17 @@ const u = r("div")(({
|
|
|
43
43
|
height: "100%"
|
|
44
44
|
},
|
|
45
45
|
"& .splitter-layout .layout-splitter:before": {
|
|
46
|
-
content:
|
|
46
|
+
content: `""`,
|
|
47
47
|
height: "45px",
|
|
48
48
|
width: "4px",
|
|
49
49
|
top: "calc(50% - 22.5px)",
|
|
50
50
|
position: "absolute",
|
|
51
|
-
background:
|
|
51
|
+
background: theme.palette.grey[500],
|
|
52
52
|
borderRadius: "6px"
|
|
53
53
|
},
|
|
54
54
|
"& .splitter-layout > .layout-splitter:hover": {
|
|
55
|
-
borderLeft: `5px solid ${
|
|
56
|
-
borderRight: `5px solid ${
|
|
55
|
+
borderLeft: `5px solid ${theme.palette.grey[5008]}`,
|
|
56
|
+
borderRight: `5px solid ${theme.palette.grey[5008]}`
|
|
57
57
|
},
|
|
58
58
|
"& .splitter-layout.splitter-layout-vertical.layout-changing": {
|
|
59
59
|
cursor: "row-resize"
|
|
@@ -73,23 +73,25 @@ const u = r("div")(({
|
|
|
73
73
|
top: "unset"
|
|
74
74
|
},
|
|
75
75
|
"& .splitter-layout > .layout-splitter:hover:before, .splitter-layout.layout-changing > .layout-splitter:before": {
|
|
76
|
-
background:
|
|
76
|
+
background: theme.palette.primary.main
|
|
77
77
|
},
|
|
78
78
|
"& .splitter-layout.splitter-layout-vertical": {
|
|
79
79
|
flexDirection: "column"
|
|
80
80
|
},
|
|
81
81
|
"& .splitter-layout.splitter-layout-vertical > .layout-splitter:hover": {
|
|
82
|
-
borderTop: `5px solid ${
|
|
83
|
-
borderBottom: `5px solid ${
|
|
82
|
+
borderTop: `5px solid ${theme.palette.grey[5008]}`,
|
|
83
|
+
borderBottom: `5px solid ${theme.palette.grey[5008]}`
|
|
84
84
|
}
|
|
85
|
-
}))
|
|
85
|
+
}));
|
|
86
|
+
const SplitMaster = styled("div")(() => ({
|
|
86
87
|
display: "flex",
|
|
87
88
|
flexDirection: "column",
|
|
88
89
|
position: "relative",
|
|
89
90
|
width: "100%",
|
|
90
91
|
height: "100%",
|
|
91
92
|
overflow: "hidden"
|
|
92
|
-
}))
|
|
93
|
+
}));
|
|
94
|
+
const SplitDetail = styled("div")(() => ({
|
|
93
95
|
display: "flex",
|
|
94
96
|
flexDirection: "column",
|
|
95
97
|
justifyContent: "center",
|
|
@@ -101,31 +103,29 @@ const u = r("div")(({
|
|
|
101
103
|
top: "0px",
|
|
102
104
|
bottom: "0px"
|
|
103
105
|
}));
|
|
104
|
-
function
|
|
106
|
+
function SplitLayout(props) {
|
|
105
107
|
const {
|
|
106
|
-
splitPosition
|
|
107
|
-
firstPart
|
|
108
|
-
secondPart
|
|
109
|
-
secondParrtInitialSize
|
|
110
|
-
percentage
|
|
111
|
-
} =
|
|
112
|
-
return /* @__PURE__ */
|
|
108
|
+
splitPosition,
|
|
109
|
+
firstPart,
|
|
110
|
+
secondPart,
|
|
111
|
+
secondParrtInitialSize = 50,
|
|
112
|
+
percentage = true
|
|
113
|
+
} = props;
|
|
114
|
+
return /* @__PURE__ */ jsx(WrapperSplit, {
|
|
113
115
|
id: "WrapperSplit",
|
|
114
|
-
className: `split_${
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
vertical:
|
|
117
|
-
percentage
|
|
118
|
-
secondaryInitialSize:
|
|
119
|
-
children: [/* @__PURE__ */
|
|
116
|
+
className: `split_${splitPosition}`,
|
|
117
|
+
children: /* @__PURE__ */ jsxs(SplitterLayout, {
|
|
118
|
+
vertical: splitPosition === "vertical",
|
|
119
|
+
percentage,
|
|
120
|
+
secondaryInitialSize: secondParrtInitialSize,
|
|
121
|
+
children: [/* @__PURE__ */ jsx(SplitMaster, {
|
|
120
122
|
id: "splitMaster",
|
|
121
|
-
children: typeof
|
|
122
|
-
}),
|
|
123
|
+
children: typeof firstPart === "function" ? firstPart() : firstPart
|
|
124
|
+
}), splitPosition !== "none" && /* @__PURE__ */ jsx(SplitDetail, {
|
|
123
125
|
id: "detail2",
|
|
124
|
-
children: typeof
|
|
126
|
+
children: typeof secondPart === "function" ? secondPart() : secondPart
|
|
125
127
|
})]
|
|
126
128
|
})
|
|
127
129
|
});
|
|
128
130
|
}
|
|
129
|
-
export {
|
|
130
|
-
h as S
|
|
131
|
-
};
|
|
131
|
+
export { SplitLayout as S };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m
|
|
2
|
-
import { styled
|
|
3
|
-
import { Box
|
|
4
|
-
import { L as
|
|
5
|
-
import { jsx
|
|
6
|
-
const
|
|
7
|
-
theme
|
|
1
|
+
import { m } from "framer-motion";
|
|
2
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
3
|
+
import { Box } from "@mui/material";
|
|
4
|
+
import { L as Logo } from "../../../assets/Logo/index.js";
|
|
5
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
6
|
+
const RootStyle = styled("div")(({
|
|
7
|
+
theme
|
|
8
8
|
}) => ({
|
|
9
9
|
right: 0,
|
|
10
10
|
bottom: 0,
|
|
@@ -15,16 +15,16 @@ const m = d("div")(({
|
|
|
15
15
|
display: "flex",
|
|
16
16
|
alignItems: "center",
|
|
17
17
|
justifyContent: "center",
|
|
18
|
-
backgroundColor:
|
|
18
|
+
backgroundColor: theme.palette.background.default
|
|
19
19
|
}));
|
|
20
|
-
function
|
|
21
|
-
isDashboard
|
|
22
|
-
...
|
|
20
|
+
function LoadingScreen({
|
|
21
|
+
isDashboard,
|
|
22
|
+
...other
|
|
23
23
|
}) {
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
children: !
|
|
26
|
-
...
|
|
27
|
-
children: [/* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
25
|
+
children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, {
|
|
26
|
+
...other,
|
|
27
|
+
children: [/* @__PURE__ */ jsx(m.div, {
|
|
28
28
|
initial: {
|
|
29
29
|
rotateY: 0
|
|
30
30
|
},
|
|
@@ -35,17 +35,17 @@ function x({
|
|
|
35
35
|
duration: 2,
|
|
36
36
|
ease: "easeInOut",
|
|
37
37
|
repeatDelay: 1,
|
|
38
|
-
repeat:
|
|
38
|
+
repeat: Infinity
|
|
39
39
|
},
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
disabledLink:
|
|
40
|
+
children: /* @__PURE__ */ jsx(Logo, {
|
|
41
|
+
disabledLink: true,
|
|
42
42
|
sx: {
|
|
43
43
|
width: 32,
|
|
44
44
|
height: 32
|
|
45
45
|
}
|
|
46
46
|
})
|
|
47
|
-
}), /* @__PURE__ */
|
|
48
|
-
component:
|
|
47
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
48
|
+
component: m.div,
|
|
49
49
|
animate: {
|
|
50
50
|
scale: [1.2, 1, 1, 1.2, 1.2],
|
|
51
51
|
rotate: [270, 0, 0, 270, 270],
|
|
@@ -55,17 +55,17 @@ function x({
|
|
|
55
55
|
transition: {
|
|
56
56
|
ease: "linear",
|
|
57
57
|
duration: 3.2,
|
|
58
|
-
repeat:
|
|
58
|
+
repeat: Infinity
|
|
59
59
|
},
|
|
60
60
|
sx: {
|
|
61
61
|
width: 50,
|
|
62
62
|
height: 50,
|
|
63
63
|
borderRadius: "25%",
|
|
64
64
|
position: "absolute",
|
|
65
|
-
border: (
|
|
65
|
+
border: (theme) => `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`
|
|
66
66
|
}
|
|
67
|
-
}), /* @__PURE__ */
|
|
68
|
-
component:
|
|
67
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
68
|
+
component: m.div,
|
|
69
69
|
animate: {
|
|
70
70
|
scale: [1, 1.2, 1.2, 1, 1],
|
|
71
71
|
rotate: [0, 270, 270, 0, 0],
|
|
@@ -75,19 +75,17 @@ function x({
|
|
|
75
75
|
transition: {
|
|
76
76
|
ease: "linear",
|
|
77
77
|
duration: 3.2,
|
|
78
|
-
repeat:
|
|
78
|
+
repeat: Infinity
|
|
79
79
|
},
|
|
80
80
|
sx: {
|
|
81
81
|
width: 60,
|
|
82
82
|
height: 60,
|
|
83
83
|
borderRadius: "25%",
|
|
84
84
|
position: "absolute",
|
|
85
|
-
border: (
|
|
85
|
+
border: (theme) => `solid 8px ${alpha(theme.palette.primary.dark, 0.24)}`
|
|
86
86
|
}
|
|
87
87
|
})]
|
|
88
88
|
})
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
export {
|
|
92
|
-
x as L
|
|
93
|
-
};
|
|
91
|
+
export { LoadingScreen as L };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { m } from "framer-motion";
|
|
2
|
+
import { Box } from "@mui/material";
|
|
3
|
+
import { v as varContainer } from "../variants/container.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
function MotionContainer({
|
|
6
|
+
animate,
|
|
7
|
+
action = false,
|
|
8
|
+
children,
|
|
9
|
+
...other
|
|
10
|
+
}) {
|
|
11
|
+
if (action) {
|
|
12
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
13
|
+
component: m.div,
|
|
14
|
+
initial: false,
|
|
15
|
+
animate: animate ? "animate" : "exit",
|
|
16
|
+
variants: varContainer(),
|
|
17
|
+
...other,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
22
|
+
component: m.div,
|
|
23
|
+
initial: "initial",
|
|
24
|
+
animate: "animate",
|
|
25
|
+
exit: "exit",
|
|
26
|
+
variants: varContainer(),
|
|
27
|
+
...other,
|
|
28
|
+
children
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export { MotionContainer as M };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LazyMotion } from "framer-motion";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
const loadFeatures = () => import("../features.js").then((res) => res.default);
|
|
4
|
+
function MotionLazyContainer({
|
|
5
|
+
children
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ jsx(LazyMotion, {
|
|
8
|
+
strict: true,
|
|
9
|
+
features: loadFeatures,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export { MotionLazyContainer as M };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { v as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { v as varTranEnter, a as varTranExit } from "./transition.js";
|
|
2
|
+
const varBounce = (props) => {
|
|
3
|
+
const durationIn = props?.durationIn;
|
|
4
|
+
const durationOut = props?.durationOut;
|
|
5
|
+
const easeIn = props?.easeIn;
|
|
6
|
+
const easeOut = props?.easeOut;
|
|
4
7
|
return {
|
|
5
8
|
in: {
|
|
6
9
|
initial: {},
|
|
7
10
|
animate: {
|
|
8
11
|
scale: [0.3, 1.1, 0.9, 1.03, 0.97, 1],
|
|
9
12
|
opacity: [0, 1, 1, 1, 1, 1],
|
|
10
|
-
transition:
|
|
13
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
11
14
|
},
|
|
12
15
|
exit: {
|
|
13
16
|
scale: [0.9, 1.1, 0.3],
|
|
@@ -20,13 +23,13 @@ const r = (n) => {
|
|
|
20
23
|
y: [720, -24, 12, -4, 0],
|
|
21
24
|
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
22
25
|
opacity: [0, 1, 1, 1, 1],
|
|
23
|
-
transition: { ...
|
|
26
|
+
transition: { ...varTranEnter({ durationIn, easeIn }) }
|
|
24
27
|
},
|
|
25
28
|
exit: {
|
|
26
29
|
y: [12, -24, 720],
|
|
27
30
|
scaleY: [0.985, 0.9, 3],
|
|
28
31
|
opacity: [1, 1, 0],
|
|
29
|
-
transition:
|
|
32
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
30
33
|
}
|
|
31
34
|
},
|
|
32
35
|
inDown: {
|
|
@@ -35,13 +38,13 @@ const r = (n) => {
|
|
|
35
38
|
y: [-720, 24, -12, 4, 0],
|
|
36
39
|
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
37
40
|
opacity: [0, 1, 1, 1, 1],
|
|
38
|
-
transition:
|
|
41
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
39
42
|
},
|
|
40
43
|
exit: {
|
|
41
44
|
y: [-12, 24, -720],
|
|
42
45
|
scaleY: [0.985, 0.9, 3],
|
|
43
46
|
opacity: [1, 1, 0],
|
|
44
|
-
transition:
|
|
47
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
45
48
|
}
|
|
46
49
|
},
|
|
47
50
|
inLeft: {
|
|
@@ -50,13 +53,13 @@ const r = (n) => {
|
|
|
50
53
|
x: [-720, 24, -12, 4, 0],
|
|
51
54
|
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
52
55
|
opacity: [0, 1, 1, 1, 1],
|
|
53
|
-
transition:
|
|
56
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
54
57
|
},
|
|
55
58
|
exit: {
|
|
56
59
|
x: [0, 24, -720],
|
|
57
60
|
scaleX: [1, 0.9, 2],
|
|
58
61
|
opacity: [1, 1, 0],
|
|
59
|
-
transition:
|
|
62
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
60
63
|
}
|
|
61
64
|
},
|
|
62
65
|
inRight: {
|
|
@@ -65,13 +68,13 @@ const r = (n) => {
|
|
|
65
68
|
x: [720, -24, 12, -4, 0],
|
|
66
69
|
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
67
70
|
opacity: [0, 1, 1, 1, 1],
|
|
68
|
-
transition:
|
|
71
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
69
72
|
},
|
|
70
73
|
exit: {
|
|
71
74
|
x: [0, -24, 720],
|
|
72
75
|
scaleX: [1, 0.9, 2],
|
|
73
76
|
opacity: [1, 1, 0],
|
|
74
|
-
transition:
|
|
77
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
75
78
|
}
|
|
76
79
|
},
|
|
77
80
|
out: {
|
|
@@ -91,6 +94,4 @@ const r = (n) => {
|
|
|
91
94
|
}
|
|
92
95
|
};
|
|
93
96
|
};
|
|
94
|
-
export {
|
|
95
|
-
r as v
|
|
96
|
-
};
|
|
97
|
+
export { varBounce as v };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const varContainer = (props) => {
|
|
2
|
+
const staggerIn = props?.staggerIn || 0.05;
|
|
3
|
+
const delayIn = props?.staggerIn || 0.05;
|
|
4
|
+
const staggerOut = props?.staggerIn || 0.05;
|
|
5
|
+
return {
|
|
6
|
+
animate: {
|
|
7
|
+
transition: {
|
|
8
|
+
staggerChildren: staggerIn,
|
|
9
|
+
delayChildren: delayIn
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
exit: {
|
|
13
|
+
transition: {
|
|
14
|
+
staggerChildren: staggerOut,
|
|
15
|
+
staggerDirection: -1
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { varContainer as v };
|