@m4l/components 0.1.85 → 0.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AccountPopover/{index.35c29a55.js → index.09f33fee.js} +15 -20
- package/components/AppBar/{index.291da9fd.js → index.4fac1368.js} +7 -7
- package/components/CommonActions/components/ActionCancel/{index.67b91376.js → index.d995d986.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.d4503410.js → index.48e066b3.js} +15 -15
- package/components/CommonActions/components/ActionFormIntro/{index.01ed67de.js → index.cc97ed0a.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.53e7fe2b.js → index.98eb4b3b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.c91c27f9.js → index.99a8e55e.js} +13 -13
- package/components/CommonActions/index.d.ts +1 -0
- package/components/DataGrid/{index.37e14e83.js → index.d38e3b49.js} +7 -7
- package/components/DataGrid/subcomponents/Actions/{index.155c63af.js → index.7015aadc.js} +20 -19
- package/components/DynamicFilter/classes/types.d.ts +1 -0
- package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +6 -2
- package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +4 -0
- package/components/DynamicFilter/{index.a8c2609c.js → index.fddefc23.js} +42 -30
- package/components/HelperText/{index.8b5911d1.js → index.bbbe24c9.js} +7 -7
- package/components/Icon/{index.c3a579e7.js → index.435df215.js} +1 -1
- package/components/LanguagePopover/{index.7681b08e.js → index.7d2ccfe4.js} +7 -7
- package/components/ModalDialog/{index.b85ee3cb.js → index.b66c43e7.js} +4 -4
- package/components/NavLink/{index.bb879650.js → index.abbcb9b2.js} +7 -7
- package/components/ObjectLogs/{index.2ed38a84.js → index.ad313913.js} +17 -17
- package/components/PaperForm/{index.989377a5.js → index.ad703ab6.js} +1 -1
- package/components/Period/{index.061c9b2f.js → index.32d475b8.js} +14 -14
- package/components/PropertyValue/{index.ac46f441.js → index.d52295d9.js} +1 -1
- package/components/ScrollBar/classes/constants.d.ts +1 -0
- package/components/ScrollBar/classes/index.d.ts +6 -0
- package/components/ScrollBar/classes/types.d.ts +6 -0
- package/components/ScrollBar/{index.1247c1c5.js → index.65bb2930.js} +29 -9
- package/components/SideBar/{index.e0587639.js → index.387a2fa1.js} +3 -3
- package/components/areas/components/AreasAdmin/{index.f505897a.js → index.23a09c81.js} +29 -29
- package/components/areas/components/AreasViewer/{index.cacec884.js → index.68eb0f6b.js} +35 -35
- package/components/areas/components/{index.6d5dfeec.js → index.296bc2a4.js} +11 -11
- package/components/areas/contexts/AreasContext/{index.6f56b1da.js → index.8af3058c.js} +2 -2
- package/components/areas/contexts/{index.999e8b1e.js → index.41c24465.js} +1 -1
- package/components/areas/hooks/useAreas/{index.4baec91c.js → index.d1cf9820.js} +1 -1
- package/components/areas/{index.3088f99e.js → index.fd46ec65.js} +11 -11
- package/components/formatters/BooleanFormatter/{index.e7f0b76a.js → index.14cfcbc7.js} +1 -1
- package/components/formatters/{index.d911949d.js → index.b574dda9.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.aca6984f.js → index.60c6f592.js} +8 -8
- package/components/hook-form/RHFAutocompleteAsync/{index.8511bcf8.js → index.9a40fb06.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.0f45e6b0.js → index.da4ebb03.js} +8 -8
- package/components/hook-form/RHFDateTime/{index.07412ef0.js → index.c56219ea.js} +8 -8
- package/components/hook-form/RHFPeriod/{index.15b8f11e.js → index.ee6a3d61.js} +2 -2
- package/components/hook-form/RHFTextField/{index.94c8c59b.js → index.413a74ca.js} +3 -3
- package/components/hook-form/RHFUpload/{index.7ef1e124.js → index.03faa7f0.js} +8 -8
- package/components/modal/{WindowBase.d485315d.js → WindowBase.0eea1a27.js} +25 -12
- package/components/modal/{WindowConfirm.3d9cd6e1.js → WindowConfirm.6896f0aa.js} +23 -23
- package/components/modal/{index.c7e4beba.js → index.6cdf65c9.js} +15 -15
- package/components/modal/index.d.ts +1 -1
- package/components/mui_extended/Accordion/{index.854f4c90.js → index.d15e51bf.js} +3 -3
- package/components/mui_extended/Button/{index.40af964e.js → index.f79eb74e.js} +2 -1
- package/components/mui_extended/IconButton/{index.be111a34.js → index.d88a3f2e.js} +1 -1
- package/components/mui_extended/MenuActions/{index.b16e84c1.js → index.c53370f6.js} +2 -2
- package/components/mui_extended/Pager/{index.5b77fa4c.js → index.d6c87c44.js} +1 -1
- package/components/mui_extended/Tab/{index.c1dc7bbf.js → index.97d04d6b.js} +1 -1
- package/components/mui_extended/{index.d1ee9a6a.js → index.0d5b8e73.js} +7 -7
- package/contexts/ModalContext/{index.1ea79d7e.js → index.5c908fe3.js} +1 -1
- package/contexts/RHFormContext/dictionary.d.ts +3 -0
- package/contexts/RHFormContext/{index.e019f87d.js → index.ea2758ed.js} +6 -2
- package/contexts/index.d.ts +1 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/dictionary.d.ts +1 -0
- package/hooks/useFormAddEdit/index.16475afe.js +111 -0
- package/hooks/useFormAddEdit/index.d.ts +1 -0
- package/hooks/useModal/{index.c906706c.js → index.2387ea76.js} +1 -1
- package/index.js +51 -49
- package/package.json +1 -1
- package/{vendor.f27b86c9.js → vendor.7751caf6.js} +56 -56
- package/hooks/useFormAddEdit/index.15de3ba8.js +0 -49
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import "@mui/material";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.435df215.js";
|
|
5
5
|
import "clsx";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
|
-
import "./IconButton/index.
|
|
7
|
+
import "./IconButton/index.d88a3f2e.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "./Accordion/index.
|
|
9
|
+
import "./Accordion/index.d15e51bf.js";
|
|
10
10
|
import "./Typography/index.443590d6.js";
|
|
11
11
|
import "./Avatar/index.75e6ed57.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
|
-
import "./Button/index.
|
|
14
|
+
import "./Button/index.f79eb74e.js";
|
|
15
15
|
import "./CheckBox.38abccd8.js";
|
|
16
16
|
import "./Badge/index.8c2b8b66.js";
|
|
17
17
|
import "../Image/index.c18ebf5a.js";
|
|
18
18
|
import "@mui/lab";
|
|
19
|
-
import "./MenuActions/index.
|
|
19
|
+
import "./MenuActions/index.c53370f6.js";
|
|
20
20
|
import "./Popover/index.9f35d0eb.js";
|
|
21
21
|
import "./Stack/index.0e53197c.js";
|
|
22
|
-
import "./Tab/index.
|
|
23
|
-
import "./Pager/index.
|
|
22
|
+
import "./Tab/index.97d04d6b.js";
|
|
23
|
+
import "./Pager/index.d6c87c44.js";
|
|
24
24
|
import "./Tooltip/index.5a795dcd.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useState } from "react";
|
|
2
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
2
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.b66c43e7.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({
|
|
@@ -2,7 +2,7 @@ import { useEffect } from "react";
|
|
|
2
2
|
import { useForm, FormProvider } from "react-hook-form";
|
|
3
3
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import { S as ScrollBar } from "../../components/ScrollBar/index.
|
|
5
|
+
import { S as ScrollBar } from "../../components/ScrollBar/index.65bb2930.js";
|
|
6
6
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -77,6 +77,10 @@ function RHFormProvider(props) {
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
+
function getFormComponentsDictionary() {
|
|
81
|
+
return ["form_provider"];
|
|
82
|
+
}
|
|
80
83
|
export {
|
|
81
|
-
RHFormProvider as R
|
|
84
|
+
RHFormProvider as R,
|
|
85
|
+
getFormComponentsDictionary as g
|
|
82
86
|
};
|
package/contexts/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export * from './ModalContext/index';
|
|
|
3
3
|
export * from './ModalContext/types';
|
|
4
4
|
export type { FormInitialValues, FormStatusLoad } from './RHFormContext/types';
|
|
5
5
|
export { RHFormProvider } from './RHFormContext';
|
|
6
|
+
export { getFormComponentsDictionary } from './RHFormContext/dictionary';
|
package/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getformAddEditDictionary: () => string;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { useNetwork, useFlags, useModuleDictionary } from "@m4l/core";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { u as useModal } from "../useModal/index.2387ea76.js";
|
|
4
|
+
import "@mui/material";
|
|
5
|
+
import "../../react-draggable.7abb5d0a.js";
|
|
6
|
+
import "../../components/Resizeable/index.9a9c79a4.js";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import "../../components/Icon/index.435df215.js";
|
|
10
|
+
import "clsx";
|
|
11
|
+
import "../../components/modal/index.6cdf65c9.js";
|
|
12
|
+
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.6896f0aa.js";
|
|
13
|
+
import "../../components/mui_extended/IconButton/index.d88a3f2e.js";
|
|
14
|
+
import "../../components/mui_extended/Accordion/index.d15e51bf.js";
|
|
15
|
+
import "../../components/mui_extended/Typography/index.443590d6.js";
|
|
16
|
+
import "../../components/mui_extended/Avatar/index.75e6ed57.js";
|
|
17
|
+
import "react-router-dom";
|
|
18
|
+
import "@mui/material/Button";
|
|
19
|
+
import "../../components/mui_extended/Button/index.f79eb74e.js";
|
|
20
|
+
import "../../components/mui_extended/CheckBox.38abccd8.js";
|
|
21
|
+
import "../../components/mui_extended/Badge/index.8c2b8b66.js";
|
|
22
|
+
import "../../components/Image/index.c18ebf5a.js";
|
|
23
|
+
import "@mui/lab";
|
|
24
|
+
import "../../components/mui_extended/MenuActions/index.c53370f6.js";
|
|
25
|
+
import "../../components/mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
+
import "../../components/mui_extended/Stack/index.0e53197c.js";
|
|
27
|
+
import "../../components/mui_extended/Tab/index.97d04d6b.js";
|
|
28
|
+
import "../../components/mui_extended/Pager/index.d6c87c44.js";
|
|
29
|
+
import "../../components/mui_extended/Tooltip/index.5a795dcd.js";
|
|
30
|
+
const useFormAddEdit = (props) => {
|
|
31
|
+
const {
|
|
32
|
+
initialValues,
|
|
33
|
+
objectId,
|
|
34
|
+
endPoint,
|
|
35
|
+
formatDataEnpoint
|
|
36
|
+
} = props;
|
|
37
|
+
const {
|
|
38
|
+
openModal
|
|
39
|
+
} = useModal();
|
|
40
|
+
const [formValues, setFormValues] = useState(initialValues);
|
|
41
|
+
const [statusLoad, setStatusLoad] = useState(objectId === void 0 ? "new" : "edit");
|
|
42
|
+
const {
|
|
43
|
+
networkOperation
|
|
44
|
+
} = useNetwork();
|
|
45
|
+
const {
|
|
46
|
+
addFlag
|
|
47
|
+
} = useFlags();
|
|
48
|
+
const {
|
|
49
|
+
getLabel
|
|
50
|
+
} = useModuleDictionary();
|
|
51
|
+
console.log("statusLoad", statusLoad);
|
|
52
|
+
const setRefresh = () => {
|
|
53
|
+
if (statusLoad === "ready") {
|
|
54
|
+
setStatusLoad("edit");
|
|
55
|
+
console.log("useFormAddEdit statusLoad", statusLoad);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
let mounted = true;
|
|
60
|
+
if (statusLoad === "edit") {
|
|
61
|
+
networkOperation({
|
|
62
|
+
method: "GET",
|
|
63
|
+
endPoint: `${endPoint}/${objectId}`
|
|
64
|
+
}).then((response) => {
|
|
65
|
+
if (mounted) {
|
|
66
|
+
if (formatDataEnpoint) {
|
|
67
|
+
setFormValues(formatDataEnpoint(response));
|
|
68
|
+
} else {
|
|
69
|
+
setFormValues(response);
|
|
70
|
+
}
|
|
71
|
+
setStatusLoad("reload_values_provider");
|
|
72
|
+
}
|
|
73
|
+
}, () => {
|
|
74
|
+
setStatusLoad("error");
|
|
75
|
+
openModal({
|
|
76
|
+
window: /* @__PURE__ */ jsx(WindowConfirm, {
|
|
77
|
+
variant: "delete",
|
|
78
|
+
title: getLabel("form_add_edit.label_error_title"),
|
|
79
|
+
msg: getLabel("form_add_edit.error_authorization_message"),
|
|
80
|
+
onClickIntro: () => close()
|
|
81
|
+
}),
|
|
82
|
+
variant: "delete"
|
|
83
|
+
});
|
|
84
|
+
addFlag("form_loaded");
|
|
85
|
+
});
|
|
86
|
+
} else if (statusLoad === "new" || statusLoad === "reload_values_provider") {
|
|
87
|
+
addFlag("form_loaded");
|
|
88
|
+
setStatusLoad("ready");
|
|
89
|
+
}
|
|
90
|
+
return () => {
|
|
91
|
+
mounted = false;
|
|
92
|
+
};
|
|
93
|
+
}, [statusLoad]);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (statusLoad === "ready" && objectId !== void 0) {
|
|
96
|
+
setStatusLoad("edit");
|
|
97
|
+
}
|
|
98
|
+
}, [objectId]);
|
|
99
|
+
return {
|
|
100
|
+
formValues,
|
|
101
|
+
statusLoad,
|
|
102
|
+
setRefresh
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const getformAddEditDictionary = () => {
|
|
106
|
+
return "form_add_edit";
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
getformAddEditDictionary as g,
|
|
110
|
+
useFormAddEdit as u
|
|
111
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.5c908fe3.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|
package/index.js
CHANGED
|
@@ -7,90 +7,90 @@ import { M } from "./components/animate/MotionContainer/index.8d9f9d80.js";
|
|
|
7
7
|
import { M as M2 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
|
|
8
8
|
import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
|
|
9
9
|
import { P } from "./components/animate/PropagateLoader/index.7fab43c8.js";
|
|
10
|
-
import { A as A2 } from "./components/areas/components/AreasAdmin/index.
|
|
11
|
-
import { A as A3 } from "./components/areas/components/AreasViewer/index.
|
|
12
|
-
import { A as A4, a as a2 } from "./components/areas/contexts/AreasContext/index.
|
|
10
|
+
import { A as A2 } from "./components/areas/components/AreasAdmin/index.23a09c81.js";
|
|
11
|
+
import { A as A3 } from "./components/areas/components/AreasViewer/index.68eb0f6b.js";
|
|
12
|
+
import { A as A4, a as a2 } from "./components/areas/contexts/AreasContext/index.8af3058c.js";
|
|
13
13
|
import { a as a3, W } from "./components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
14
14
|
import { u } from "./components/areas/hooks/useDynamicMFParameters/index.e52c5392.js";
|
|
15
15
|
import { u as u2 } from "./components/areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
16
16
|
import { A as A5, D, L as L2, a as a4, g } from "./components/areas/dictionary.afb7e3d9.js";
|
|
17
|
-
import { R, g as g2 } from "./components/hook-form/RHFAutocomplete/index.
|
|
18
|
-
import { R as R2, g as g3 } from "./components/hook-form/RHFAutocompleteAsync/index.
|
|
19
|
-
import { R as R3 } from "./components/hook-form/RHFCheckbox/index.
|
|
20
|
-
import { R as R4 } from "./components/hook-form/RHFDateTime/index.
|
|
17
|
+
import { R, g as g2 } from "./components/hook-form/RHFAutocomplete/index.60c6f592.js";
|
|
18
|
+
import { R as R2, g as g3 } from "./components/hook-form/RHFAutocompleteAsync/index.9a40fb06.js";
|
|
19
|
+
import { R as R3 } from "./components/hook-form/RHFCheckbox/index.da4ebb03.js";
|
|
20
|
+
import { R as R4 } from "./components/hook-form/RHFDateTime/index.c56219ea.js";
|
|
21
21
|
import { R as R5 } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
|
|
22
22
|
import { R as R6 } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
|
|
23
|
-
import { b as b2, c, a as a5, R as R7, d } from "./components/hook-form/RHFTextField/index.
|
|
23
|
+
import { b as b2, c, a as a5, R as R7, d } from "./components/hook-form/RHFTextField/index.413a74ca.js";
|
|
24
24
|
import { R as R8 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
|
|
25
|
-
import { R as R9 } from "./components/hook-form/RHFPeriod/index.
|
|
26
|
-
import { P as P2, g as g4 } from "./components/Period/index.
|
|
27
|
-
import { R as R10 } from "./components/hook-form/RHFUpload/index.
|
|
28
|
-
import { A as A6 } from "./components/mui_extended/Accordion/index.
|
|
25
|
+
import { R as R9 } from "./components/hook-form/RHFPeriod/index.ee6a3d61.js";
|
|
26
|
+
import { P as P2, g as g4 } from "./components/Period/index.32d475b8.js";
|
|
27
|
+
import { R as R10 } from "./components/hook-form/RHFUpload/index.03faa7f0.js";
|
|
28
|
+
import { A as A6 } from "./components/mui_extended/Accordion/index.d15e51bf.js";
|
|
29
29
|
import { A as A7 } from "./components/mui_extended/Avatar/index.75e6ed57.js";
|
|
30
30
|
import { B } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
31
31
|
import { B as B2 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
32
|
-
import { B as B3, I as I2, L as L3 } from "./components/mui_extended/Button/index.
|
|
32
|
+
import { B as B3, I as I2, L as L3 } from "./components/mui_extended/Button/index.f79eb74e.js";
|
|
33
33
|
import { C } from "./components/mui_extended/CheckBox.38abccd8.js";
|
|
34
34
|
import { C as C2 } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
35
35
|
import { B as B4 } from "./components/mui_extended/Badge/index.8c2b8b66.js";
|
|
36
|
-
import { I as I3 } from "./components/mui_extended/IconButton/index.
|
|
36
|
+
import { I as I3 } from "./components/mui_extended/IconButton/index.d88a3f2e.js";
|
|
37
37
|
import { L as L4 } from "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
38
38
|
import { L as L5 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
39
|
-
import { M as M3 } from "./components/mui_extended/MenuActions/index.
|
|
39
|
+
import { M as M3 } from "./components/mui_extended/MenuActions/index.c53370f6.js";
|
|
40
40
|
import { P as P3 } from "./components/mui_extended/Popover/index.9f35d0eb.js";
|
|
41
41
|
import { S } from "./components/mui_extended/Stack/index.0e53197c.js";
|
|
42
|
-
import { T, a as a6 } from "./components/mui_extended/Tab/index.
|
|
43
|
-
import { P as P4, g as g5 } from "./components/mui_extended/Pager/index.
|
|
42
|
+
import { T, a as a6 } from "./components/mui_extended/Tab/index.97d04d6b.js";
|
|
43
|
+
import { P as P4, g as g5 } from "./components/mui_extended/Pager/index.d6c87c44.js";
|
|
44
44
|
import { T as T2 } from "./components/mui_extended/Tooltip/index.5a795dcd.js";
|
|
45
45
|
import { T as T3 } from "./components/mui_extended/Typography/index.443590d6.js";
|
|
46
|
-
import { B as B5 } from "./components/formatters/BooleanFormatter/index.
|
|
46
|
+
import { B as B5 } from "./components/formatters/BooleanFormatter/index.14cfcbc7.js";
|
|
47
47
|
import { D as D2, g as g6 } from "./components/formatters/DateFormatter/index.578a9f53.js";
|
|
48
48
|
import { U, g as g7 } from "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
|
|
49
49
|
import { P as P5, g as g8 } from "./components/formatters/PointsFormatter/index.80a4e414.js";
|
|
50
|
-
import { C as C3, F, P as P6, g as g9, a as a7, b as b3 } from "./components/formatters/index.
|
|
50
|
+
import { C as C3, F, P as P6, g as g9, a as a7, b as b3 } from "./components/formatters/index.b574dda9.js";
|
|
51
51
|
import { P as P7, g as g10 } from "./components/formatters/PriceFormatter/index.83cbe7be.js";
|
|
52
|
-
import { c as c2, f, i, h, e, g as g11 } from "./components/DataGrid/index.
|
|
52
|
+
import { c as c2, f, i, h, e, g as g11 } from "./components/DataGrid/index.d38e3b49.js";
|
|
53
53
|
import { c as c3 } from "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
|
|
54
54
|
import { c as c4 } from "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
|
|
55
55
|
import { c as c5 } from "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
|
|
56
56
|
import { c as c6 } from "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
57
57
|
import { N, T as T4 } from "./components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
58
|
-
import { D as D3, g as g12 } from "./components/DynamicFilter/index.
|
|
59
|
-
import { H, e as e2 } from "./components/HelperText/index.
|
|
60
|
-
import { A as A8, d as d2, g as g13 } from "./components/CommonActions/components/Actions/index.
|
|
61
|
-
import { A as A9 } from "./components/CommonActions/components/ActionCancel/index.
|
|
62
|
-
import { A as A10 } from "./components/CommonActions/components/ActionIntro/index.
|
|
63
|
-
import { A as A11 } from "./components/CommonActions/components/ActionFormCancel/index.
|
|
64
|
-
import { A as A12 } from "./components/CommonActions/components/ActionFormIntro/index.
|
|
58
|
+
import { D as D3, g as g12 } from "./components/DynamicFilter/index.fddefc23.js";
|
|
59
|
+
import { H, e as e2 } from "./components/HelperText/index.bbbe24c9.js";
|
|
60
|
+
import { A as A8, d as d2, g as g13 } from "./components/CommonActions/components/Actions/index.99a8e55e.js";
|
|
61
|
+
import { A as A9 } from "./components/CommonActions/components/ActionCancel/index.d995d986.js";
|
|
62
|
+
import { A as A10 } from "./components/CommonActions/components/ActionIntro/index.98eb4b3b.js";
|
|
63
|
+
import { A as A11 } from "./components/CommonActions/components/ActionFormCancel/index.48e066b3.js";
|
|
64
|
+
import { A as A12 } from "./components/CommonActions/components/ActionFormIntro/index.cc97ed0a.js";
|
|
65
65
|
import { D as D4 } from "./components/DraggableWindow/index.c702d3f2.js";
|
|
66
66
|
import { G, S as S2, w, z } from "./components/GridLayout/index.2383aaf9.js";
|
|
67
67
|
import { R as R11, a as a8, b as b4, c as c7 } from "./components/GridLayout/subcomponents/Responsive/index.a6642437.js";
|
|
68
|
-
import { I as I4 } from "./components/Icon/index.
|
|
69
|
-
import { L as L6 } from "./components/LanguagePopover/index.
|
|
68
|
+
import { I as I4 } from "./components/Icon/index.435df215.js";
|
|
69
|
+
import { L as L6 } from "./components/LanguagePopover/index.7d2ccfe4.js";
|
|
70
70
|
import { L as L7 } from "./components/LinearProgressIndeterminate/index.60dabc06.js";
|
|
71
71
|
import { I as I5 } from "./components/Image/index.c18ebf5a.js";
|
|
72
72
|
import { L as L8 } from "./components/Loadable/index.e994fc3e.js";
|
|
73
|
-
import { M as M4, d as d3, g as g14 } from "./components/ModalDialog/index.
|
|
74
|
-
import { W as W2 } from "./components/modal/WindowConfirm.
|
|
75
|
-
import { W as W3 } from "./components/modal/WindowBase.
|
|
76
|
-
import { N as N2 } from "./components/NavLink/index.
|
|
73
|
+
import { M as M4, d as d3, g as g14 } from "./components/ModalDialog/index.b66c43e7.js";
|
|
74
|
+
import { W as W2 } from "./components/modal/WindowConfirm.6896f0aa.js";
|
|
75
|
+
import { W as W3 } from "./components/modal/WindowBase.0eea1a27.js";
|
|
76
|
+
import { N as N2 } from "./components/NavLink/index.abbcb9b2.js";
|
|
77
77
|
import { N as N3, d as d4, g as g15 } from "./components/NoItemSelected/index.a2807715.js";
|
|
78
|
-
import { O, d as d5, g as g16 } from "./components/ObjectLogs/index.
|
|
79
|
-
import { P as P8 } from "./components/PaperForm/index.
|
|
78
|
+
import { O, d as d5, g as g16 } from "./components/ObjectLogs/index.ad313913.js";
|
|
79
|
+
import { P as P8 } from "./components/PaperForm/index.ad703ab6.js";
|
|
80
80
|
import { H as H2 } from "./components/Page/index.4237c241.js";
|
|
81
|
-
import { P as P9 } from "./components/PropertyValue/index.
|
|
81
|
+
import { P as P9 } from "./components/PropertyValue/index.d52295d9.js";
|
|
82
82
|
import { R as R12 } from "./components/Resizeable/index.9a9c79a4.js";
|
|
83
|
-
import { S as S3 } from "./components/ScrollBar/index.
|
|
83
|
+
import { S as S3 } from "./components/ScrollBar/index.65bb2930.js";
|
|
84
84
|
import { S as S4 } from "./components/ScrollToTop/index.e06f98f6.js";
|
|
85
85
|
import { S as S5 } from "./components/SplitLayout/index.9ef430f6.js";
|
|
86
|
-
import { S as S6 } from "./components/SideBar/index.
|
|
87
|
-
import { A as A13, g as g17 } from "./components/AppBar/index.
|
|
88
|
-
import { A as A14, g as g18 } from "./components/AccountPopover/index.
|
|
86
|
+
import { S as S6 } from "./components/SideBar/index.387a2fa1.js";
|
|
87
|
+
import { A as A13, g as g17 } from "./components/AppBar/index.4fac1368.js";
|
|
88
|
+
import { A as A14, g as g18 } from "./components/AccountPopover/index.09f33fee.js";
|
|
89
89
|
import { a as a9, D as D5, M as M5 } from "./components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
90
|
-
import { M as M6, a as a10 } from "./contexts/ModalContext/index.
|
|
91
|
-
import { R as R13 } from "./contexts/RHFormContext/index.
|
|
92
|
-
import { u as u3 } from "./hooks/useFormAddEdit/index.
|
|
93
|
-
import { u as u4 } from "./hooks/useModal/index.
|
|
90
|
+
import { M as M6, a as a10 } from "./contexts/ModalContext/index.5c908fe3.js";
|
|
91
|
+
import { R as R13, g as g19 } from "./contexts/RHFormContext/index.ea2758ed.js";
|
|
92
|
+
import { g as g20, u as u3 } from "./hooks/useFormAddEdit/index.16475afe.js";
|
|
93
|
+
import { u as u4 } from "./hooks/useModal/index.2387ea76.js";
|
|
94
94
|
import { L as L9 } from "./assets/Logo/index.228dcb5a.js";
|
|
95
95
|
import "react";
|
|
96
96
|
import "react/jsx-runtime";
|
|
@@ -100,7 +100,7 @@ import "@mui/material/styles";
|
|
|
100
100
|
import "react-router-dom";
|
|
101
101
|
import "simplebar-react";
|
|
102
102
|
import "./react-spinners.342a6578.js";
|
|
103
|
-
import "./components/areas/hooks/useAreas/index.
|
|
103
|
+
import "./components/areas/hooks/useAreas/index.d1cf9820.js";
|
|
104
104
|
import "zustand";
|
|
105
105
|
import "@m4l/core";
|
|
106
106
|
import "yup";
|
|
@@ -118,18 +118,18 @@ import "@mui/x-date-pickers";
|
|
|
118
118
|
import "./react-draggable.7abb5d0a.js";
|
|
119
119
|
import "prop-types";
|
|
120
120
|
import "react-dom";
|
|
121
|
-
import "./components/modal/index.
|
|
121
|
+
import "./components/modal/index.6cdf65c9.js";
|
|
122
122
|
import "zustand/shallow";
|
|
123
123
|
import "@mui/material/ButtonBase/TouchRipple";
|
|
124
124
|
import "lodash/isString";
|
|
125
125
|
import "react-dropzone";
|
|
126
|
-
import "./components/areas/index.
|
|
126
|
+
import "./components/areas/index.fd46ec65.js";
|
|
127
127
|
import "./react-resizable.ba08699a.js";
|
|
128
128
|
import "./components/GridLayout/subcomponents/Griditem/index.58168132.js";
|
|
129
129
|
import "./node_modules.d73a220d.js";
|
|
130
130
|
import "react-dnd";
|
|
131
131
|
import "react-dnd-html5-backend";
|
|
132
|
-
import "./components/DataGrid/subcomponents/Actions/index.
|
|
132
|
+
import "./components/DataGrid/subcomponents/Actions/index.7015aadc.js";
|
|
133
133
|
import "./react-data-grid.d46d625e.js";
|
|
134
134
|
import "lodash";
|
|
135
135
|
import "./react-json-view.57125fcf.js";
|
|
@@ -138,7 +138,7 @@ import "./react-splitter-layout.8b1655c8.js";
|
|
|
138
138
|
import "zustand/middleware";
|
|
139
139
|
import "zustand/middleware/immer";
|
|
140
140
|
import "./test/constants_no_mock.86c553a9.js";
|
|
141
|
-
import "./vendor.
|
|
141
|
+
import "./vendor.7751caf6.js";
|
|
142
142
|
import "./components/WrapperComponent/index.5e872594.js";
|
|
143
143
|
import "react-helmet-async";
|
|
144
144
|
import "simplebar/dist/simplebar.min.css?used";
|
|
@@ -267,6 +267,7 @@ export {
|
|
|
267
267
|
g13 as getCommonActionsDictionary,
|
|
268
268
|
e as getDataGridRowsFromSet,
|
|
269
269
|
g12 as getDynamicFilterComponentsDictionary,
|
|
270
|
+
g19 as getFormComponentsDictionary,
|
|
270
271
|
g9 as getFormatConcatenated,
|
|
271
272
|
g6 as getFormatDate,
|
|
272
273
|
a7 as getFormatPeriod,
|
|
@@ -282,6 +283,7 @@ export {
|
|
|
282
283
|
g3 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
283
284
|
g2 as getRHFAutocompleteComponentsDictionary,
|
|
284
285
|
g7 as getUncertaintyFormat,
|
|
286
|
+
g20 as getformAddEditDictionary,
|
|
285
287
|
w as isEqualLayout,
|
|
286
288
|
z as isEqualLayouts,
|
|
287
289
|
u as useDynamicMFParametersStore,
|
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
import "./components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
2
|
-
import "./contexts/ModalContext/index.
|
|
3
|
-
import "./contexts/RHFormContext/index.
|
|
2
|
+
import "./contexts/ModalContext/index.5c908fe3.js";
|
|
3
|
+
import "./contexts/RHFormContext/index.ea2758ed.js";
|
|
4
4
|
import "@m4l/core";
|
|
5
5
|
import "react";
|
|
6
|
-
import "react-hook-form";
|
|
7
6
|
import "@mui/material";
|
|
8
|
-
import "./
|
|
9
|
-
import "./components/
|
|
7
|
+
import "./react-draggable.7abb5d0a.js";
|
|
8
|
+
import "./components/Resizeable/index.9a9c79a4.js";
|
|
10
9
|
import "react/jsx-runtime";
|
|
10
|
+
import "@m4l/graphics";
|
|
11
|
+
import "./components/Icon/index.435df215.js";
|
|
11
12
|
import "clsx";
|
|
13
|
+
import "./components/modal/index.6cdf65c9.js";
|
|
14
|
+
import "./components/CommonActions/components/Actions/index.99a8e55e.js";
|
|
15
|
+
import "@mui/material/Button";
|
|
16
|
+
import "./components/mui_extended/Button/index.f79eb74e.js";
|
|
17
|
+
import "react-hook-form";
|
|
18
|
+
import "./components/mui_extended/IconButton/index.d88a3f2e.js";
|
|
19
|
+
import "zustand";
|
|
20
|
+
import "./components/areas/contexts/AreasContext/index.8af3058c.js";
|
|
21
|
+
import "./components/areas/components/AreasAdmin/index.23a09c81.js";
|
|
22
|
+
import "zustand/shallow";
|
|
23
|
+
import "./components/ScrollBar/index.65bb2930.js";
|
|
24
|
+
import "./components/mui_extended/Accordion/index.d15e51bf.js";
|
|
12
25
|
import "./components/mui_extended/Typography/index.443590d6.js";
|
|
13
|
-
import "./components/Icon/index.c3a579e7.js";
|
|
14
|
-
import "./components/mui_extended/IconButton/index.be111a34.js";
|
|
15
|
-
import "@m4l/graphics";
|
|
16
|
-
import "./components/mui_extended/Accordion/index.854f4c90.js";
|
|
17
26
|
import "./components/mui_extended/Avatar/index.75e6ed57.js";
|
|
18
27
|
import "react-router-dom";
|
|
19
|
-
import "@mui/material/Button";
|
|
20
|
-
import "./components/mui_extended/Button/index.40af964e.js";
|
|
21
28
|
import "./components/mui_extended/CheckBox.38abccd8.js";
|
|
22
29
|
import "./components/mui_extended/Badge/index.8c2b8b66.js";
|
|
30
|
+
import "./components/Image/index.c18ebf5a.js";
|
|
23
31
|
import "@mui/lab";
|
|
24
|
-
import "./components/mui_extended/MenuActions/index.
|
|
32
|
+
import "./components/mui_extended/MenuActions/index.c53370f6.js";
|
|
25
33
|
import "./components/mui_extended/Popover/index.9f35d0eb.js";
|
|
26
34
|
import "./components/mui_extended/Stack/index.0e53197c.js";
|
|
27
|
-
import "./components/mui_extended/Tab/index.
|
|
28
|
-
import "./components/mui_extended/Pager/index.
|
|
35
|
+
import "./components/mui_extended/Tab/index.97d04d6b.js";
|
|
36
|
+
import "./components/mui_extended/Pager/index.d6c87c44.js";
|
|
29
37
|
import "./components/mui_extended/Tooltip/index.5a795dcd.js";
|
|
30
|
-
import "./components/
|
|
31
|
-
import "lodash/debounce";
|
|
32
|
-
import "./components/hook-form/RHFAutocompleteAsync/index.8511bcf8.js";
|
|
33
|
-
import "./components/hook-form/RHFCheckbox/index.0f45e6b0.js";
|
|
34
|
-
import "@mui/x-date-pickers";
|
|
35
|
-
import "./components/hook-form/RHFDateTime/index.07412ef0.js";
|
|
36
|
-
import "./components/hook-form/RHFTextField/index.94c8c59b.js";
|
|
37
|
-
import "./components/hook-form/RHFPeriod/index.15b8f11e.js";
|
|
38
|
-
import "./components/Period/index.061c9b2f.js";
|
|
39
|
-
import "./components/CommonActions/components/Actions/index.c91c27f9.js";
|
|
40
|
-
import "./react-draggable.7abb5d0a.js";
|
|
41
|
-
import "./components/Resizeable/index.9a9c79a4.js";
|
|
42
|
-
import "./components/modal/index.c7e4beba.js";
|
|
43
|
-
import "zustand";
|
|
44
|
-
import "./components/areas/contexts/AreasContext/index.6f56b1da.js";
|
|
45
|
-
import "./components/areas/components/AreasAdmin/index.f505897a.js";
|
|
46
|
-
import "zustand/shallow";
|
|
47
|
-
import "./components/ScrollBar/index.1247c1c5.js";
|
|
48
|
-
import "./components/areas/components/AreasViewer/index.cacec884.js";
|
|
38
|
+
import "./components/areas/components/AreasViewer/index.68eb0f6b.js";
|
|
49
39
|
import "./components/LinearProgressIndeterminate/index.60dabc06.js";
|
|
50
40
|
import "./components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
41
|
+
import "./components/hook-form/RHFAutocomplete/index.60c6f592.js";
|
|
42
|
+
import "./components/HelperText/index.bbbe24c9.js";
|
|
43
|
+
import "lodash/debounce";
|
|
44
|
+
import "./components/hook-form/RHFAutocompleteAsync/index.9a40fb06.js";
|
|
45
|
+
import "./components/hook-form/RHFCheckbox/index.da4ebb03.js";
|
|
46
|
+
import "@mui/x-date-pickers";
|
|
47
|
+
import "./components/hook-form/RHFDateTime/index.c56219ea.js";
|
|
48
|
+
import "./components/hook-form/RHFTextField/index.413a74ca.js";
|
|
49
|
+
import "./components/hook-form/RHFPeriod/index.ee6a3d61.js";
|
|
50
|
+
import "./components/Period/index.32d475b8.js";
|
|
51
51
|
import "lodash/isString";
|
|
52
52
|
import "react-dropzone";
|
|
53
|
-
import "./components/hook-form/RHFUpload/index.
|
|
53
|
+
import "./components/hook-form/RHFUpload/index.03faa7f0.js";
|
|
54
54
|
import "./components/animate/index.4e9774a6.js";
|
|
55
55
|
import "framer-motion";
|
|
56
56
|
import "@mui/material/styles";
|
|
57
57
|
import "./components/animate/LoadingScreen/index.1d0c4307.js";
|
|
58
58
|
import "./components/animate/PropagateLoader/index.7fab43c8.js";
|
|
59
|
-
import "./components/DataGrid/index.
|
|
59
|
+
import "./components/DataGrid/index.d38e3b49.js";
|
|
60
60
|
import "react-dnd";
|
|
61
61
|
import "react-dnd-html5-backend";
|
|
62
|
-
import "./components/DataGrid/subcomponents/Actions/index.
|
|
62
|
+
import "./components/DataGrid/subcomponents/Actions/index.7015aadc.js";
|
|
63
63
|
import "./components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
64
|
-
import "./components/DynamicFilter/index.
|
|
64
|
+
import "./components/DynamicFilter/index.fddefc23.js";
|
|
65
65
|
import "yup";
|
|
66
66
|
import "./components/GridLayout/subcomponents/Griditem/index.58168132.js";
|
|
67
67
|
import "./components/GridLayout/index.2383aaf9.js";
|
|
68
68
|
import "lodash";
|
|
69
|
-
import "./components/LanguagePopover/index.
|
|
70
|
-
import "./components/NavLink/index.
|
|
69
|
+
import "./components/LanguagePopover/index.7d2ccfe4.js";
|
|
70
|
+
import "./components/NavLink/index.abbcb9b2.js";
|
|
71
71
|
import "./components/NoItemSelected/index.a2807715.js";
|
|
72
|
-
import "./components/ObjectLogs/index.
|
|
72
|
+
import "./components/ObjectLogs/index.ad313913.js";
|
|
73
73
|
import "./react-json-view.57125fcf.js";
|
|
74
|
-
import "./components/PaperForm/index.
|
|
74
|
+
import "./components/PaperForm/index.ad703ab6.js";
|
|
75
75
|
import "./components/Page/index.4237c241.js";
|
|
76
|
-
import "./components/PropertyValue/index.
|
|
76
|
+
import "./components/PropertyValue/index.d52295d9.js";
|
|
77
77
|
import "./components/SplitLayout/index.9ef430f6.js";
|
|
78
78
|
import "./react-splitter-layout.8b1655c8.js";
|
|
79
|
-
import "./components/SideBar/index.
|
|
80
|
-
import "./components/AppBar/index.
|
|
81
|
-
import "./components/AccountPopover/index.
|
|
79
|
+
import "./components/SideBar/index.387a2fa1.js";
|
|
80
|
+
import "./components/AppBar/index.4fac1368.js";
|
|
81
|
+
import "./components/AccountPopover/index.09f33fee.js";
|
|
82
82
|
import "./components/animate/variants/fade.b561c0fc.js";
|
|
83
83
|
import "./components/animate/variants/bounce.784aaaaa.js";
|
|
84
84
|
import "./components/animate/variants/container.11f82b76.js";
|
|
@@ -96,29 +96,29 @@ import "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
|
96
96
|
import "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
97
97
|
import "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
98
98
|
import "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
99
|
-
import "./components/formatters/BooleanFormatter/index.
|
|
99
|
+
import "./components/formatters/BooleanFormatter/index.14cfcbc7.js";
|
|
100
100
|
import "./components/formatters/DateFormatter/index.578a9f53.js";
|
|
101
101
|
import "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
|
|
102
102
|
import "./components/formatters/PointsFormatter/index.80a4e414.js";
|
|
103
|
-
import "./components/formatters/index.
|
|
103
|
+
import "./components/formatters/index.b574dda9.js";
|
|
104
104
|
import "./components/formatters/PriceFormatter/index.83cbe7be.js";
|
|
105
105
|
import "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
|
|
106
106
|
import "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
|
|
107
107
|
import "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
|
|
108
108
|
import "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
109
|
-
import "./components/CommonActions/components/ActionCancel/index.
|
|
110
|
-
import "./components/CommonActions/components/ActionIntro/index.
|
|
111
|
-
import "./components/CommonActions/components/ActionFormCancel/index.
|
|
112
|
-
import "./components/CommonActions/components/ActionFormIntro/index.
|
|
109
|
+
import "./components/CommonActions/components/ActionCancel/index.d995d986.js";
|
|
110
|
+
import "./components/CommonActions/components/ActionIntro/index.98eb4b3b.js";
|
|
111
|
+
import "./components/CommonActions/components/ActionFormCancel/index.48e066b3.js";
|
|
112
|
+
import "./components/CommonActions/components/ActionFormIntro/index.cc97ed0a.js";
|
|
113
113
|
import "./components/DraggableWindow/index.c702d3f2.js";
|
|
114
114
|
import "./components/GridLayout/subcomponents/Responsive/index.a6642437.js";
|
|
115
115
|
import "./components/Loadable/index.e994fc3e.js";
|
|
116
|
-
import "./components/ModalDialog/index.
|
|
117
|
-
import "./components/modal/WindowConfirm.
|
|
118
|
-
import "./components/modal/WindowBase.
|
|
116
|
+
import "./components/ModalDialog/index.b66c43e7.js";
|
|
117
|
+
import "./components/modal/WindowConfirm.6896f0aa.js";
|
|
118
|
+
import "./components/modal/WindowBase.0eea1a27.js";
|
|
119
119
|
import "./components/ScrollToTop/index.e06f98f6.js";
|
|
120
|
-
import "./hooks/useFormAddEdit/index.
|
|
121
|
-
import "./hooks/useModal/index.
|
|
120
|
+
import "./hooks/useFormAddEdit/index.16475afe.js";
|
|
121
|
+
import "./hooks/useModal/index.2387ea76.js";
|
|
122
122
|
import "./assets/Logo/index.228dcb5a.js";
|
|
123
123
|
const getNameDataTestId = (ELEMENT_PREFIX, ELEMENT_KEY, ELEMENT_ID) => {
|
|
124
124
|
return `${ELEMENT_PREFIX}-${[ELEMENT_KEY]}-${ELEMENT_ID}`;
|