@m4l/components 0.1.26 → 0.1.28
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.228dcb5a.js +42 -35
- package/commonjs.565e6834.js +5 -5
- package/components/CommonActions/components/ActionCancel/index.e498eeb2.js +17 -0
- package/components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js +64 -0
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +28 -22
- package/components/CommonActions/components/ActionIntro/index.60ef7bd7.js +18 -0
- package/components/CommonActions/components/Actions/index.0645e30f.js +867 -0
- package/components/DataGrid/index.76d8fd25.js +1075 -0
- package/components/DynamicFilter/index.342ba5fe.js +1577 -0
- package/components/ErrorLabel/index.c8615f16.js +13 -12
- package/components/Icon/index.619c31c4.js +96 -0
- package/components/Icon/types.d.ts +2 -1
- package/components/Image/index.93d5f37f.js +190 -0
- package/components/Loadable/index.f5518558.js +8 -8
- package/components/ModalDialog/index.9ea10764.js +184 -0
- package/components/NoItemSelected/{index.9609a7f7.js → index.46d2f632.js} +52 -41
- package/components/ObjectLogs/index.f941fb79.js +288 -0
- package/components/Page/index.4237c241.js +22 -20
- package/components/PaperForm/index.ec9cb8c9.js +112 -0
- package/components/Period/index.2941fbda.js +249 -0
- package/components/PropertyValue/index.dfcfe1ba.js +147 -0
- package/components/PropertyValue/styles.d.ts +2 -1
- package/components/PropertyValue/types.d.ts +3 -3
- package/components/Resizeable/index.45995d2b.js +19 -19
- package/components/ScrollBar/index.39eeb2de.js +26 -21
- package/components/ScrollToTop/index.e06f98f6.js +8 -7
- package/components/SplitLayout/index.4032673d.js +35 -33
- package/components/animate/LoadingScreen/index.1d0c4307.js +33 -33
- package/components/animate/MotionContainer/index.8d9f9d80.js +25 -22
- package/components/animate/MotionLazyContainer/index.572dd012.js +10 -10
- package/components/animate/features.0fbf41e1.js +3 -3
- package/components/animate/variants/bounce.784aaaaa.js +16 -13
- package/components/animate/variants/container.11f82b76.js +8 -6
- package/components/animate/variants/fade.b561c0fc.js +32 -28
- package/components/animate/variants/transition.bd46b9ce.js +17 -12
- package/components/formatters/BooleanFormatter/index.8da35c9c.js +55 -0
- package/components/formatters/DateFormatter/index.1b9baacc.js +69 -0
- package/components/formatters/index.689a8086.js +119 -0
- package/components/hook-form/RHFAutocomplete/index.59a68f9f.js +224 -0
- package/components/hook-form/RHFAutocompleteAsync/index.c3083062.js +87 -0
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +49 -39
- package/components/hook-form/RHFDateTime/index.9231a7c7.js +69 -56
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +23 -23
- package/components/hook-form/RHFPeriod/index.64a228d5.js +55 -0
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +29 -29
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +24 -24
- package/components/hook-form/RHFTextField/index.f9aaaa90.js +146 -0
- 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.d5cc7c13.js +285 -0
- package/components/mui_extended/Accordion/index.a02ac6ae.js +107 -0
- package/components/mui_extended/Avatar/index.fe06afd7.js +51 -0
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +10 -10
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +49 -44
- package/components/mui_extended/Button/index.53b56958.js +178 -0
- package/components/mui_extended/CircularProgress/index.ad569afd.js +8 -6
- package/components/mui_extended/IconButton/index.a321e5cb.js +120 -0
- package/components/mui_extended/IconButton/index.d.ts +1 -1
- package/components/mui_extended/LinkWithRoute/index.16436ab8.js +25 -21
- package/components/mui_extended/Pager/index.c0865b70.js +141 -0
- package/components/mui_extended/Popover/index.705275a4.js +278 -0
- package/components/mui_extended/Tab/index.e0653a0a.js +25 -21
- package/components/mui_extended/Typography/index.e5494696.js +25 -21
- package/contexts/ModalContext/index.b92fa565.js +153 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/index.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/styles.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/types.d.ts +0 -0
- package/contexts/RHFormContext/index.b142190a.js +63 -0
- package/hooks/useFormAddEdit/index.d4845f1a.js +40 -22
- package/hooks/useModal/index.5fee01a3.js +11 -0
- package/index.js +153 -153
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +2206 -1663
- package/react-draggable.20e95c61.js +800 -553
- package/react-json-view.f56a7f8e.js +2344 -2340
- package/react-resizable.5277deaf.js +470 -298
- package/react-splitter-layout.7810ac1b.js +130 -128
- package/utils/index.214d9542.js +500 -354
- package/components/CommonActions/components/ActionCancel/index.6736b782.js +0 -17
- package/components/CommonActions/components/ActionFormCancel/index.281ee166.js +0 -49
- package/components/CommonActions/components/ActionIntro/index.4665a611.js +0 -18
- package/components/CommonActions/components/Actions/index.cd7b2671.js +0 -742
- package/components/DataGrid/index.2caf6231.js +0 -894
- package/components/DynamicFilter/index.f2377369.js +0 -1157
- package/components/Icon/index.f569765b.js +0 -82
- package/components/Image/index.c9da2d5a.js +0 -152
- package/components/ModalDialog/index.bee344a5.js +0 -168
- package/components/ObjectLogs/index.6b6f95e6.js +0 -266
- package/components/PaperForm/index.3f8c7ef2.js +0 -105
- package/components/Period/index.a112ce37.js +0 -175
- package/components/PropertyValue/index.ab3dd7e9.js +0 -116
- package/components/contexts/RHFormContext/index.33dba822.js +0 -56
- package/components/formatters/BooleanFormatter/index.3ec56305.js +0 -42
- package/components/formatters/DateFormatter/index.08d8823b.js +0 -57
- package/components/formatters/index.6959c2de.js +0 -106
- package/components/hook-form/RHFAutocomplete/index.5eee9d7c.js +0 -174
- package/components/hook-form/RHFAutocompleteAsync/index.757b5080.js +0 -65
- package/components/hook-form/RHFPeriod/index.979d0898.js +0 -51
- package/components/hook-form/RHFTextField/index.ba2a8f67.js +0 -129
- package/components/hook-form/RHFUpload/index.6347159a.js +0 -258
- package/components/mui_extended/Accordion/index.49f5df8e.js +0 -103
- package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
- package/components/mui_extended/Button/index.52d18aea.js +0 -144
- package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
- package/components/mui_extended/Pager/index.951b6975.js +0 -126
- package/components/mui_extended/Popover/index.4da8587a.js +0 -252
- package/contexts/ModalContext/index.5388dfd5.js +0 -136
- package/hooks/useModal/index.3b1ff084.js +0 -11
- package/node_modules.168cb897.js +0 -55
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { createContext, useState } from "react";
|
|
2
|
+
import { useEnvironment, voidFunction } from "@m4l/core";
|
|
3
|
+
import { Typography } from "@mui/material";
|
|
4
|
+
import { styled } from "@mui/material/styles";
|
|
5
|
+
import { B as BoxIcon } from "../../components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
6
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.9ea10764.js";
|
|
8
|
+
import { A as ActionIntro } from "../../components/CommonActions/components/ActionIntro/index.60ef7bd7.js";
|
|
9
|
+
import { A as ActionCancel } from "../../components/CommonActions/components/ActionCancel/index.e498eeb2.js";
|
|
10
|
+
import { b as getVariantColor } from "../../utils/index.214d9542.js";
|
|
11
|
+
const WrapperContentConfirm = styled("div")(() => ({
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
height: "100%"
|
|
15
|
+
}));
|
|
16
|
+
const ModalContent = styled("div")(({
|
|
17
|
+
theme
|
|
18
|
+
}) => ({
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
gridGap: theme.spacing(5),
|
|
24
|
+
flexGrow: 1,
|
|
25
|
+
[theme.breakpoints.up("sm")]: {
|
|
26
|
+
display: "grid",
|
|
27
|
+
flexDirection: "row",
|
|
28
|
+
gridTemplateColumns: "1fr 1fr"
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
31
|
+
const IllustrationContainer = styled("div")(({
|
|
32
|
+
theme,
|
|
33
|
+
variant
|
|
34
|
+
}) => ({
|
|
35
|
+
display: "flex",
|
|
36
|
+
justifyContent: "center",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
"& > span": {
|
|
39
|
+
background: variant === "warning" ? theme.palette.warning.main : variant === "delete" ? theme.palette.error.main : variant === "info" ? theme.palette.info.main : "theme.palette.text.primary"
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
const MessageContainer = styled("div")(() => ({
|
|
43
|
+
display: "flex",
|
|
44
|
+
alignItems: "center"
|
|
45
|
+
}));
|
|
46
|
+
const ContentConfirm = (props) => {
|
|
47
|
+
const {
|
|
48
|
+
variant = "info",
|
|
49
|
+
msg = "Are you sure you want to perform this action? Once complete, the information will be deleted."
|
|
50
|
+
} = props;
|
|
51
|
+
const {
|
|
52
|
+
host_static_assets,
|
|
53
|
+
environment_assets
|
|
54
|
+
} = useEnvironment();
|
|
55
|
+
const illustrationWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_warning.svg`;
|
|
56
|
+
const illustrationError = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_danger.svg`;
|
|
57
|
+
const illustrationInfo = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_info.svg`;
|
|
58
|
+
return /* @__PURE__ */ jsx(WrapperContentConfirm, {
|
|
59
|
+
children: /* @__PURE__ */ jsxs(ModalContent, {
|
|
60
|
+
children: [/* @__PURE__ */ jsx(IllustrationContainer, {
|
|
61
|
+
variant,
|
|
62
|
+
children: /* @__PURE__ */ jsx(BoxIcon, {
|
|
63
|
+
src: variant === "warning" ? illustrationWarning : variant === "delete" ? illustrationError : illustrationInfo,
|
|
64
|
+
sx: {
|
|
65
|
+
width: "230px",
|
|
66
|
+
height: "194px"
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
}), /* @__PURE__ */ jsx(MessageContainer, {
|
|
70
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
71
|
+
variant: "body1",
|
|
72
|
+
children: msg
|
|
73
|
+
})
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
const ModalContext = createContext(null);
|
|
79
|
+
function ModalProvider({
|
|
80
|
+
children
|
|
81
|
+
}) {
|
|
82
|
+
const [modalOptions, setModalOptions] = useState({
|
|
83
|
+
open: false,
|
|
84
|
+
withClose: true,
|
|
85
|
+
onQueryClose: voidFunction,
|
|
86
|
+
title: "",
|
|
87
|
+
iconComponent: void 0,
|
|
88
|
+
contentComponent: void 0,
|
|
89
|
+
variant: void 0
|
|
90
|
+
});
|
|
91
|
+
const [hasChanges, setHasChanges] = useState(false);
|
|
92
|
+
const openModal = (modalOpenProps) => {
|
|
93
|
+
setModalOptions({
|
|
94
|
+
open: true,
|
|
95
|
+
...modalOpenProps
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
const openModalConfirm = (modalOpenConfirmProps) => {
|
|
99
|
+
const {
|
|
100
|
+
variant = "warning",
|
|
101
|
+
title,
|
|
102
|
+
msg,
|
|
103
|
+
onClickIntro,
|
|
104
|
+
onClickCancel = closeModal
|
|
105
|
+
} = modalOpenConfirmProps;
|
|
106
|
+
const onClickIntroClose = () => {
|
|
107
|
+
onClickIntro && onClickIntro();
|
|
108
|
+
closeModal();
|
|
109
|
+
};
|
|
110
|
+
setModalOptions({
|
|
111
|
+
open: true,
|
|
112
|
+
title,
|
|
113
|
+
variant,
|
|
114
|
+
contentComponent: /* @__PURE__ */ jsx(ContentConfirm, {
|
|
115
|
+
variant,
|
|
116
|
+
msg
|
|
117
|
+
}),
|
|
118
|
+
actions: /* @__PURE__ */ jsxs(Fragment, {
|
|
119
|
+
children: [/* @__PURE__ */ jsx(ActionCancel, {
|
|
120
|
+
onClick: onClickCancel
|
|
121
|
+
}), " ", /* @__PURE__ */ jsx(ActionIntro, {
|
|
122
|
+
onClick: onClickIntroClose,
|
|
123
|
+
color: getVariantColor(variant)
|
|
124
|
+
})]
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
const closeModal = () => {
|
|
129
|
+
setModalOptions((last) => ({
|
|
130
|
+
...last,
|
|
131
|
+
open: false
|
|
132
|
+
}));
|
|
133
|
+
setHasChanges(false);
|
|
134
|
+
};
|
|
135
|
+
const setChanges = () => {
|
|
136
|
+
setHasChanges(true);
|
|
137
|
+
};
|
|
138
|
+
return /* @__PURE__ */ jsxs(ModalContext.Provider, {
|
|
139
|
+
value: {
|
|
140
|
+
...modalOptions,
|
|
141
|
+
openModal,
|
|
142
|
+
openModalConfirm,
|
|
143
|
+
closeModal,
|
|
144
|
+
hasChanges,
|
|
145
|
+
setChanges
|
|
146
|
+
},
|
|
147
|
+
children: [children, /* @__PURE__ */ jsx(ModalDialog, {})]
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
export {
|
|
151
|
+
ModalContext as M,
|
|
152
|
+
ModalProvider as a
|
|
153
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useForm, FormProvider } from "react-hook-form";
|
|
3
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
+
import { styled } from "@mui/material/styles";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
const WrapperFormProvider = styled("form")(({
|
|
7
|
+
theme
|
|
8
|
+
}) => ({
|
|
9
|
+
display: "flex",
|
|
10
|
+
marginBottom: theme.spacing(1),
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
width: "100%",
|
|
13
|
+
overflow: "auto",
|
|
14
|
+
maxWidth: theme.stretch ? "unset" : "900px",
|
|
15
|
+
padding: theme.spacing(3)
|
|
16
|
+
}));
|
|
17
|
+
function RHFormProvider(props) {
|
|
18
|
+
const {
|
|
19
|
+
children,
|
|
20
|
+
onSubmit,
|
|
21
|
+
values,
|
|
22
|
+
validationSchema,
|
|
23
|
+
statusLoad = "ready"
|
|
24
|
+
} = props;
|
|
25
|
+
const methods = useForm({
|
|
26
|
+
resolver: yupResolver(validationSchema),
|
|
27
|
+
defaultValues: values
|
|
28
|
+
});
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (statusLoad === "reload_values_provider") {
|
|
31
|
+
const keys = Object.keys(values);
|
|
32
|
+
keys.forEach((key) => {
|
|
33
|
+
methods.setValue(key, values[key], {
|
|
34
|
+
shouldValidate: false,
|
|
35
|
+
shouldDirty: false,
|
|
36
|
+
shouldTouch: false
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}, [methods, statusLoad, values]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (statusLoad === "ready") {
|
|
44
|
+
console.log("useEffect FormProvider Ready", statusLoad);
|
|
45
|
+
methods.setValue("statusLoad", "ready", {
|
|
46
|
+
shouldValidate: false,
|
|
47
|
+
shouldDirty: false,
|
|
48
|
+
shouldTouch: false
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}, [statusLoad]);
|
|
52
|
+
return /* @__PURE__ */ jsx(FormProvider, {
|
|
53
|
+
...methods,
|
|
54
|
+
children: /* @__PURE__ */ jsx(WrapperFormProvider, {
|
|
55
|
+
id: "formProvider",
|
|
56
|
+
onSubmit: methods.handleSubmit(onSubmit),
|
|
57
|
+
children
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
RHFormProvider as R
|
|
63
|
+
};
|
|
@@ -1,26 +1,44 @@
|
|
|
1
|
-
import { useNetwork
|
|
2
|
-
import { useState
|
|
3
|
-
const
|
|
4
|
-
const { initialValues
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { useNetwork, useFlags } from "@m4l/core";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
const useFormAddEdit = (props) => {
|
|
4
|
+
const { initialValues, objectId, endPoint, formatDataEnpoint } = props;
|
|
5
|
+
const [formValues, setFormValues] = useState(initialValues);
|
|
6
|
+
const [statusLoad, setStatusLoad] = useState(
|
|
7
|
+
objectId === void 0 ? "new" : "edit"
|
|
8
|
+
);
|
|
9
|
+
const { networkOperation } = useNetwork();
|
|
10
|
+
const { addFlag } = useFlags();
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
let mounted = true;
|
|
13
|
+
if (statusLoad === "edit") {
|
|
14
|
+
networkOperation({
|
|
15
|
+
method: "GET",
|
|
16
|
+
endPoint: `${endPoint}/${objectId}`
|
|
17
|
+
}).then(
|
|
18
|
+
(response) => {
|
|
19
|
+
if (mounted) {
|
|
20
|
+
if (formatDataEnpoint) {
|
|
21
|
+
setFormValues(formatDataEnpoint(response));
|
|
22
|
+
} else {
|
|
23
|
+
setFormValues(response);
|
|
24
|
+
}
|
|
25
|
+
setStatusLoad("reload_values_provider");
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
() => {
|
|
29
|
+
setStatusLoad("error");
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
} else if (statusLoad === "new" || statusLoad === "reload_values_provider") {
|
|
33
|
+
addFlag("form_loaded");
|
|
34
|
+
setStatusLoad("ready");
|
|
35
|
+
}
|
|
36
|
+
return () => {
|
|
37
|
+
mounted = false;
|
|
21
38
|
};
|
|
22
|
-
}, [
|
|
39
|
+
}, [statusLoad]);
|
|
40
|
+
return { formValues, statusLoad };
|
|
23
41
|
};
|
|
24
42
|
export {
|
|
25
|
-
|
|
43
|
+
useFormAddEdit as u
|
|
26
44
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.b92fa565.js";
|
|
3
|
+
function useModal() {
|
|
4
|
+
const context = useContext(ModalContext);
|
|
5
|
+
if (!context)
|
|
6
|
+
throw new Error("useModal context must be use inside ModalContext");
|
|
7
|
+
return context;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
useModal as u
|
|
11
|
+
};
|
package/index.js
CHANGED
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
import { I
|
|
1
|
+
import { I, a } from "./components/mui_extended/IconButton/index.a321e5cb.js";
|
|
2
2
|
import "framer-motion";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "@mui/material/styles";
|
|
6
6
|
import "react-router-dom";
|
|
7
|
-
import { L
|
|
7
|
+
import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
|
|
8
8
|
import "@m4l/core";
|
|
9
9
|
import "react-hook-form";
|
|
10
|
-
import { R
|
|
10
|
+
import { R, g } from "./components/hook-form/RHFAutocomplete/index.59a68f9f.js";
|
|
11
11
|
import "react";
|
|
12
|
-
import { I as
|
|
12
|
+
import { I as I2 } from "./components/Image/index.93d5f37f.js";
|
|
13
13
|
import "lodash/debounce";
|
|
14
|
-
import { R as
|
|
14
|
+
import { R as R2 } from "./components/hook-form/RHFCheckbox/index.6dcec9e2.js";
|
|
15
15
|
import "@mui/x-date-pickers";
|
|
16
|
-
import { R as
|
|
17
|
-
import { R as
|
|
18
|
-
import { I as
|
|
19
|
-
import { R as
|
|
20
|
-
import { E
|
|
21
|
-
import { P
|
|
22
|
-
import { b
|
|
16
|
+
import { R as R3 } from "./components/hook-form/RHFDateTime/index.9231a7c7.js";
|
|
17
|
+
import { R as R4, a as a2 } from "./components/hook-form/RHFTextField/index.f9aaaa90.js";
|
|
18
|
+
import { I as I3 } from "./components/Icon/index.619c31c4.js";
|
|
19
|
+
import { R as R5 } from "./components/hook-form/RHFPeriod/index.64a228d5.js";
|
|
20
|
+
import { E } from "./components/ErrorLabel/index.c8615f16.js";
|
|
21
|
+
import { P, g as g2 } from "./components/Period/index.2941fbda.js";
|
|
22
|
+
import { b, M, d, g as g3 } from "./components/CommonActions/components/Actions/index.0645e30f.js";
|
|
23
23
|
import "@mui/material/Button";
|
|
24
|
-
import { M as
|
|
24
|
+
import { M as M2, a as a3 } from "./contexts/ModalContext/index.b92fa565.js";
|
|
25
25
|
import "@mui/lab";
|
|
26
26
|
import "lodash/isString";
|
|
27
27
|
import "react-dropzone";
|
|
28
|
-
import { R as
|
|
29
|
-
import { A
|
|
30
|
-
import { A as
|
|
31
|
-
import { B
|
|
32
|
-
import { L as
|
|
33
|
-
import { P as
|
|
34
|
-
import { T
|
|
35
|
-
import { D
|
|
28
|
+
import { R as R6 } from "./components/hook-form/RHFUpload/index.d5cc7c13.js";
|
|
29
|
+
import { A } from "./components/mui_extended/Accordion/index.a02ac6ae.js";
|
|
30
|
+
import { A as A2 } from "./components/mui_extended/Avatar/index.fe06afd7.js";
|
|
31
|
+
import { B, L as L2 } from "./components/mui_extended/Button/index.53b56958.js";
|
|
32
|
+
import { L as L3, P as P2 } from "./components/mui_extended/Popover/index.705275a4.js";
|
|
33
|
+
import { P as P3, g as g4 } from "./components/mui_extended/Pager/index.c0865b70.js";
|
|
34
|
+
import { T } from "./components/mui_extended/Tab/index.e0653a0a.js";
|
|
35
|
+
import { D, N, T as T2, g as g5 } from "./components/DataGrid/index.76d8fd25.js";
|
|
36
36
|
import "react-dnd";
|
|
37
37
|
import "react-dnd-html5-backend";
|
|
38
38
|
import "@m4l/graphics";
|
|
39
|
-
import { S
|
|
40
|
-
import { D as
|
|
39
|
+
import { S } from "./components/ScrollBar/index.39eeb2de.js";
|
|
40
|
+
import { D as D2, d as d2, g as g6 } from "./components/DynamicFilter/index.342ba5fe.js";
|
|
41
41
|
import "simplebar/dist/simplebar.min.css";
|
|
42
|
-
import
|
|
42
|
+
import "@hookform/resolvers/yup";
|
|
43
|
+
import { R as R7 } from "./contexts/RHFormContext/index.b142190a.js";
|
|
43
44
|
import "yup";
|
|
44
45
|
import "./react-draggable.20e95c61.js";
|
|
45
|
-
import { M as
|
|
46
|
-
import { R as
|
|
47
|
-
import { N as
|
|
48
|
-
import { O
|
|
46
|
+
import { M as M3, d as d3, g as g7 } from "./components/ModalDialog/index.9ea10764.js";
|
|
47
|
+
import { R as R8 } from "./components/Resizeable/index.45995d2b.js";
|
|
48
|
+
import { N as N2, d as d4, g as g8 } from "./components/NoItemSelected/index.46d2f632.js";
|
|
49
|
+
import { O, d as d5, g as g9 } from "./components/ObjectLogs/index.f941fb79.js";
|
|
49
50
|
import "./react-json-view.f56a7f8e.js";
|
|
50
|
-
import { P as
|
|
51
|
-
import { H
|
|
52
|
-
import { P as
|
|
51
|
+
import { P as P4 } from "./components/PaperForm/index.ec9cb8c9.js";
|
|
52
|
+
import { H } from "./components/Page/index.4237c241.js";
|
|
53
|
+
import { P as P5 } from "./components/PropertyValue/index.dfcfe1ba.js";
|
|
53
54
|
import "./react-splitter-layout.7810ac1b.js";
|
|
54
|
-
import { S as
|
|
55
|
-
import { v
|
|
56
|
-
import { v as
|
|
57
|
-
import { v as
|
|
58
|
-
import { v as
|
|
59
|
-
import { M as
|
|
60
|
-
import { M as
|
|
61
|
-
import { R as
|
|
62
|
-
import { R as
|
|
63
|
-
import { R as
|
|
64
|
-
import { R as
|
|
65
|
-
import { B as
|
|
66
|
-
import { B as
|
|
67
|
-
import { C
|
|
68
|
-
import { L as
|
|
69
|
-
import { T as
|
|
70
|
-
import { B as
|
|
71
|
-
import { D as
|
|
72
|
-
import { P as
|
|
73
|
-
import { A as
|
|
74
|
-
import { A as
|
|
75
|
-
import { A as
|
|
76
|
-
import { A as
|
|
77
|
-
import { L as
|
|
78
|
-
import { S as
|
|
79
|
-
import { u
|
|
80
|
-
import { u as
|
|
81
|
-
import { L as
|
|
55
|
+
import { S as S2 } from "./components/SplitLayout/index.4032673d.js";
|
|
56
|
+
import { v } from "./components/animate/variants/fade.b561c0fc.js";
|
|
57
|
+
import { v as v2 } from "./components/animate/variants/bounce.784aaaaa.js";
|
|
58
|
+
import { v as v3 } from "./components/animate/variants/container.11f82b76.js";
|
|
59
|
+
import { v as v4, a as a4, b as b2 } from "./components/animate/variants/transition.bd46b9ce.js";
|
|
60
|
+
import { M as M4 } from "./components/animate/MotionContainer/index.8d9f9d80.js";
|
|
61
|
+
import { M as M5 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
|
|
62
|
+
import { R as R9, g as g10 } from "./components/hook-form/RHFAutocompleteAsync/index.c3083062.js";
|
|
63
|
+
import { R as R10 } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
|
|
64
|
+
import { R as R11 } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
|
|
65
|
+
import { R as R12 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
|
|
66
|
+
import { B as B2 } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
67
|
+
import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
68
|
+
import { C } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
69
|
+
import { L as L4 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
70
|
+
import { T as T3 } from "./components/mui_extended/Typography/index.e5494696.js";
|
|
71
|
+
import { B as B4, c } from "./components/formatters/BooleanFormatter/index.8da35c9c.js";
|
|
72
|
+
import { D as D3, c as c2 } from "./components/formatters/DateFormatter/index.1b9baacc.js";
|
|
73
|
+
import { P as P6, a as a5, U, e, b as b3, c as c3, d as d6, g as g11 } from "./components/formatters/index.689a8086.js";
|
|
74
|
+
import { A as A3 } from "./components/CommonActions/components/ActionCancel/index.e498eeb2.js";
|
|
75
|
+
import { A as A4 } from "./components/CommonActions/components/ActionIntro/index.60ef7bd7.js";
|
|
76
|
+
import { A as A5 } from "./components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js";
|
|
77
|
+
import { A as A6 } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
|
|
78
|
+
import { L as L5 } from "./components/Loadable/index.f5518558.js";
|
|
79
|
+
import { S as S3 } from "./components/ScrollToTop/index.e06f98f6.js";
|
|
80
|
+
import { u } from "./hooks/useFormAddEdit/index.d4845f1a.js";
|
|
81
|
+
import { u as u2 } from "./hooks/useModal/index.5fee01a3.js";
|
|
82
|
+
import { L as L6 } from "./assets/Logo/index.228dcb5a.js";
|
|
82
83
|
import "./utils/index.214d9542.js";
|
|
83
84
|
import "./react-data-grid.d46d625e.js";
|
|
84
85
|
import "clsx";
|
|
85
86
|
import "simplebar-react";
|
|
86
|
-
import "./node_modules.168cb897.js";
|
|
87
87
|
import "prop-types";
|
|
88
88
|
import "react-dom";
|
|
89
89
|
import "./react-resizable.5277deaf.js";
|
|
90
90
|
import "./commonjs.565e6834.js";
|
|
91
91
|
import "react-helmet-async";
|
|
92
92
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
93
|
+
A as Accordion,
|
|
94
|
+
A3 as ActionCancel,
|
|
95
|
+
A5 as ActionFormCancel,
|
|
96
|
+
A6 as ActionFormIntro,
|
|
97
|
+
A4 as ActionIntro,
|
|
98
|
+
b as Actions,
|
|
99
|
+
A2 as Avatar,
|
|
100
|
+
B4 as BooleanFormatter,
|
|
101
|
+
B2 as BoxIcon,
|
|
102
|
+
B3 as Breadcrumbs,
|
|
103
|
+
B as Button,
|
|
104
|
+
C as CircularProgress,
|
|
105
|
+
D as DataGrid,
|
|
106
|
+
D3 as DateFormatter,
|
|
107
|
+
D2 as DynamicFilter,
|
|
108
|
+
E as ErrorLabel,
|
|
109
|
+
H as HelmetPage,
|
|
110
|
+
I3 as Icon,
|
|
111
|
+
I as IconButton,
|
|
112
|
+
a as IconButtonAnimate,
|
|
113
|
+
I2 as Image,
|
|
114
|
+
L3 as LanguagePopover,
|
|
115
|
+
L4 as LinkWithRoute,
|
|
116
|
+
L5 as Loadable,
|
|
117
|
+
L2 as LoadingButton,
|
|
118
|
+
L as LoadingScreen,
|
|
119
|
+
L6 as Logo,
|
|
120
|
+
M as MenuActions,
|
|
121
|
+
M2 as ModalContext,
|
|
122
|
+
M3 as ModalDialog,
|
|
123
|
+
a3 as ModalProvider,
|
|
124
|
+
M4 as MotionContainer,
|
|
125
|
+
M5 as MotionLazyContainer,
|
|
126
|
+
N2 as NoItemSelected,
|
|
127
|
+
N as NumberEditor,
|
|
128
|
+
O as ObjectLogs,
|
|
129
|
+
P3 as Pager,
|
|
130
|
+
P4 as PaperForm,
|
|
131
|
+
P as Period,
|
|
132
|
+
P6 as PointsFormatter,
|
|
133
|
+
P2 as Popover,
|
|
134
|
+
a5 as PriceFormatter,
|
|
135
|
+
P5 as PropertyValue,
|
|
136
|
+
R as RHFAutocomplete,
|
|
137
|
+
R9 as RHFAutocompleteAsync,
|
|
138
|
+
R2 as RHFCheckbox,
|
|
139
|
+
R3 as RHFDateTime,
|
|
140
|
+
R10 as RHFMultiCheckbox,
|
|
141
|
+
R5 as RHFPeriod,
|
|
142
|
+
R12 as RHFRadioGroup,
|
|
143
|
+
R11 as RHFSelect,
|
|
144
|
+
R4 as RHFTextField,
|
|
145
|
+
a2 as RHFTextFieldPassword,
|
|
146
|
+
R6 as RHFUploadImage,
|
|
147
|
+
R7 as RHFormProvider,
|
|
148
|
+
R8 as Resizeable,
|
|
149
|
+
S as ScrollBar,
|
|
150
|
+
S3 as ScrollToTop,
|
|
151
|
+
S2 as SplitLayout,
|
|
152
|
+
T as Tab,
|
|
153
|
+
T2 as TextEditor,
|
|
154
|
+
T3 as Typography,
|
|
155
|
+
U as UncertaintyFormatter,
|
|
156
|
+
c as columnBooleanFormatter,
|
|
157
|
+
c2 as columnDateFormatter,
|
|
158
|
+
e as columnNestedValueFormatter,
|
|
159
|
+
b3 as columnPointsFormatter,
|
|
160
|
+
c3 as columnUncertaintyFormatter,
|
|
161
|
+
d as defaultCommonActionsDictionary,
|
|
162
|
+
d2 as defaultDynamicFilterDictionary,
|
|
163
|
+
d6 as defaultFormattersDictionary,
|
|
164
|
+
d3 as defaultModalDialogDictionary,
|
|
165
|
+
d4 as defaultNoItemSelectedDictionary,
|
|
166
|
+
d5 as defaultObjectLogDictionary,
|
|
167
|
+
g3 as getCommonActionsDictionary,
|
|
168
|
+
g6 as getDynamicFilterComponentsDictionary,
|
|
169
|
+
g11 as getFormattersComponentsDictionary,
|
|
170
|
+
g5 as getGridComponentsDictionary,
|
|
171
|
+
g7 as getModalDialogComponentsDictionary,
|
|
172
|
+
g8 as getNoItemSelectedComponentsDictionary,
|
|
173
|
+
g9 as getObjectLogsComponentsDictionary,
|
|
174
|
+
g4 as getPagerComponentsDictionary,
|
|
175
|
+
g2 as getPeriodComponetsDictionary,
|
|
176
|
+
g10 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
177
|
+
g as getRHFAutocompleteComponentsDictionary,
|
|
178
|
+
u as useFormAddEdit,
|
|
179
|
+
u2 as useModal,
|
|
180
|
+
v2 as varBounce,
|
|
181
|
+
v3 as varContainer,
|
|
182
|
+
v as varFade,
|
|
183
|
+
v4 as varTranEnter,
|
|
184
|
+
a4 as varTranExit,
|
|
185
|
+
b2 as varTranHover
|
|
186
186
|
};
|