@m4l/components 0.1.85 → 0.1.87
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.0bee6fca.js} +15 -20
- package/components/AppBar/{index.291da9fd.js → index.8e3e0148.js} +7 -7
- package/components/CommonActions/components/ActionCancel/{index.67b91376.js → index.e66f9b5f.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.d4503410.js → index.51311bde.js} +15 -15
- package/components/CommonActions/components/ActionFormIntro/{index.01ed67de.js → index.2ecd7ba1.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.53e7fe2b.js → index.33892c01.js} +2 -2
- package/components/CommonActions/components/Actions/{index.c91c27f9.js → index.018d4c62.js} +13 -13
- package/components/CommonActions/index.d.ts +1 -0
- package/components/DataGrid/{index.37e14e83.js → index.c348b106.js} +7 -7
- package/components/DataGrid/subcomponents/Actions/{index.155c63af.js → index.080e8c7d.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.20ee6e21.js} +47 -32
- package/components/HelperText/{index.8b5911d1.js → index.d00b45e5.js} +7 -7
- package/components/Icon/{index.c3a579e7.js → index.435df215.js} +1 -1
- package/components/LanguagePopover/{index.7681b08e.js → index.3f25054a.js} +7 -7
- package/components/ModalDialog/{index.b85ee3cb.js → index.df9b1e97.js} +4 -4
- package/components/NavLink/{index.bb879650.js → index.cc66f31f.js} +7 -7
- package/components/ObjectLogs/{index.2ed38a84.js → index.ca98686d.js} +24 -40
- package/components/PaperForm/{index.989377a5.js → index.ad703ab6.js} +1 -1
- package/components/Period/{index.061c9b2f.js → index.83b88249.js} +14 -14
- package/components/PropertyValue/{index.ac46f441.js → index.45b365c3.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.f0fd024a.js} +29 -29
- package/components/areas/components/AreasViewer/{index.cacec884.js → index.6c28b2c0.js} +35 -35
- package/components/areas/components/{index.6d5dfeec.js → index.d920205b.js} +11 -11
- package/components/areas/contexts/AreasContext/{index.6f56b1da.js → index.060aa7b0.js} +2 -2
- package/components/areas/contexts/{index.999e8b1e.js → index.1485986f.js} +1 -1
- package/components/areas/hooks/useAreas/{index.4baec91c.js → index.e4e54402.js} +1 -1
- package/components/areas/{index.3088f99e.js → index.e9f2274c.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.f4eb65ce.js} +8 -8
- package/components/hook-form/RHFAutocompleteAsync/{index.8511bcf8.js → index.8ecce8fd.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.0f45e6b0.js → index.45b6ee0b.js} +8 -8
- package/components/hook-form/RHFDateTime/{index.07412ef0.js → index.802fb228.js} +8 -8
- package/components/hook-form/RHFPeriod/{index.15b8f11e.js → index.6395b24a.js} +2 -2
- package/components/hook-form/RHFTextField/{index.94c8c59b.js → index.75129118.js} +3 -3
- package/components/hook-form/RHFUpload/{index.7ef1e124.js → index.fead1c63.js} +8 -8
- package/components/modal/{WindowBase.d485315d.js → WindowBase.f568bcac.js} +25 -12
- package/components/modal/{WindowConfirm.3d9cd6e1.js → WindowConfirm.3c4da58c.js} +23 -23
- package/components/modal/{index.c7e4beba.js → index.8d846036.js} +15 -15
- package/components/modal/index.d.ts +1 -1
- package/components/mui_extended/Accordion/{index.854f4c90.js → index.1d182a0e.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.8592b93c.js} +1 -1
- package/components/mui_extended/{index.d1ee9a6a.js → index.5ffe6d2b.js} +7 -7
- package/contexts/ModalContext/{index.1ea79d7e.js → index.9fb8e0a2.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.3f77d470.js +111 -0
- package/hooks/useFormAddEdit/index.d.ts +1 -0
- package/hooks/useModal/{index.c906706c.js → index.caaeaddd.js} +1 -1
- package/index.js +51 -49
- package/package.json +1 -1
- package/{vendor.f27b86c9.js → vendor.15beabcd.js} +56 -56
- package/hooks/useFormAddEdit/index.15de3ba8.js +0 -49
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import "../../react-draggable.7abb5d0a.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../contexts/ModalContext/index.
|
|
4
|
+
import "../../contexts/ModalContext/index.9fb8e0a2.js";
|
|
5
5
|
import "../Resizeable/index.9a9c79a4.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "@m4l/graphics";
|
|
8
|
-
import "../Icon/index.
|
|
8
|
+
import "../Icon/index.435df215.js";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import "@m4l/core";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
-
import "../
|
|
13
|
-
import "
|
|
14
|
-
import "../mui_extended/Button/index.40af964e.js";
|
|
15
|
-
import "react-hook-form";
|
|
16
|
-
import "../mui_extended/IconButton/index.be111a34.js";
|
|
17
|
-
import "../mui_extended/Accordion/index.854f4c90.js";
|
|
12
|
+
import "../mui_extended/IconButton/index.d88a3f2e.js";
|
|
13
|
+
import "../mui_extended/Accordion/index.1d182a0e.js";
|
|
18
14
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
19
15
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
20
16
|
import "react-router-dom";
|
|
17
|
+
import "@mui/material/Button";
|
|
18
|
+
import "../mui_extended/Button/index.f79eb74e.js";
|
|
21
19
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
22
20
|
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
23
21
|
import "../Image/index.c18ebf5a.js";
|
|
24
22
|
import "@mui/lab";
|
|
25
|
-
import "../mui_extended/MenuActions/index.
|
|
23
|
+
import "../mui_extended/MenuActions/index.c53370f6.js";
|
|
26
24
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
27
25
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
28
|
-
import "../mui_extended/Tab/index.
|
|
29
|
-
import "../mui_extended/Pager/index.
|
|
26
|
+
import "../mui_extended/Tab/index.8592b93c.js";
|
|
27
|
+
import "../mui_extended/Pager/index.d6c87c44.js";
|
|
30
28
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
|
+
import "../CommonActions/components/Actions/index.018d4c62.js";
|
|
30
|
+
import "react-hook-form";
|
|
31
31
|
import "zustand";
|
|
32
|
-
import "../areas/contexts/AreasContext/index.
|
|
33
|
-
import "../areas/components/AreasAdmin/index.
|
|
32
|
+
import "../areas/contexts/AreasContext/index.060aa7b0.js";
|
|
33
|
+
import "../areas/components/AreasAdmin/index.f0fd024a.js";
|
|
34
34
|
import "zustand/shallow";
|
|
35
|
-
import "../ScrollBar/index.
|
|
36
|
-
import "../areas/components/AreasViewer/index.
|
|
35
|
+
import "../ScrollBar/index.65bb2930.js";
|
|
36
|
+
import "../areas/components/AreasViewer/index.6c28b2c0.js";
|
|
37
37
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
38
38
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
39
39
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ModalDialog } from './ModalDialog';
|
|
2
2
|
export * from './ModalDialog/dictionary';
|
|
3
|
-
export
|
|
3
|
+
export * from './WindowConfirm';
|
|
4
4
|
export type { WindowConfirmProps } from './WindowConfirm/types';
|
|
5
5
|
export * from './WindowBase';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass, styled, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
2
|
-
import { I as IconButton } from "../IconButton/index.
|
|
2
|
+
import { I as IconButton } from "../IconButton/index.d88a3f2e.js";
|
|
3
3
|
import { useEnvironment } from "@m4l/core";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { I as Icon } from "../../Icon/index.
|
|
5
|
+
import { I as Icon } from "../../Icon/index.435df215.js";
|
|
6
6
|
import { T as Typography } from "../Typography/index.443590d6.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
9
|
+
import { g as getNameDataTestId } from "../../../vendor.15beabcd.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
const componentName = "M4LAccordion";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo, useState } from "react";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, styled, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../../Icon/index.
|
|
4
|
+
import { I as Icon } from "../../Icon/index.435df215.js";
|
|
5
5
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -3,8 +3,8 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { IconButton, MenuItem, Badge } from "@mui/material";
|
|
4
4
|
import { P as Popover } from "../Popover/index.9f35d0eb.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import { I as Icon } from "../../Icon/index.
|
|
7
|
-
import { I as IconButton$1 } from "../IconButton/index.
|
|
6
|
+
import { I as Icon } from "../../Icon/index.435df215.js";
|
|
7
|
+
import { I as IconButton$1 } from "../IconButton/index.d88a3f2e.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
10
10
|
styled(IconButton)(() => ({}));
|
|
@@ -3,7 +3,7 @@ import { styled } from "@mui/material/styles";
|
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { T as Typography } from "../Typography/index.443590d6.js";
|
|
6
|
-
import { I as IconButton } from "../IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../IconButton/index.d88a3f2e.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
9
9
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -5,7 +5,7 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
5
5
|
import { useModuleSkeleton } from "@m4l/core";
|
|
6
6
|
import { styled as styled$1 } from "@mui/material/styles";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
8
|
+
import { g as getNameDataTestId } from "../../../vendor.15beabcd.js";
|
|
9
9
|
const componentName$1 = "M4LTabs";
|
|
10
10
|
generateUtilityClasses(componentName$1, [
|
|
11
11
|
"root"
|
|
@@ -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.1d182a0e.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.8592b93c.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.df9b1e97.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.caaeaddd.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.8d846036.js";
|
|
12
|
+
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.3c4da58c.js";
|
|
13
|
+
import "../../components/mui_extended/IconButton/index.d88a3f2e.js";
|
|
14
|
+
import "../../components/mui_extended/Accordion/index.1d182a0e.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.8592b93c.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.9fb8e0a2.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.f0fd024a.js";
|
|
11
|
+
import { A as A3 } from "./components/areas/components/AreasViewer/index.6c28b2c0.js";
|
|
12
|
+
import { A as A4, a as a2 } from "./components/areas/contexts/AreasContext/index.060aa7b0.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.f4eb65ce.js";
|
|
18
|
+
import { R as R2, g as g3 } from "./components/hook-form/RHFAutocompleteAsync/index.8ecce8fd.js";
|
|
19
|
+
import { R as R3 } from "./components/hook-form/RHFCheckbox/index.45b6ee0b.js";
|
|
20
|
+
import { R as R4 } from "./components/hook-form/RHFDateTime/index.802fb228.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.75129118.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.6395b24a.js";
|
|
26
|
+
import { P as P2, g as g4 } from "./components/Period/index.83b88249.js";
|
|
27
|
+
import { R as R10 } from "./components/hook-form/RHFUpload/index.fead1c63.js";
|
|
28
|
+
import { A as A6 } from "./components/mui_extended/Accordion/index.1d182a0e.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.8592b93c.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.c348b106.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.20ee6e21.js";
|
|
59
|
+
import { H, e as e2 } from "./components/HelperText/index.d00b45e5.js";
|
|
60
|
+
import { A as A8, d as d2, g as g13 } from "./components/CommonActions/components/Actions/index.018d4c62.js";
|
|
61
|
+
import { A as A9 } from "./components/CommonActions/components/ActionCancel/index.e66f9b5f.js";
|
|
62
|
+
import { A as A10 } from "./components/CommonActions/components/ActionIntro/index.33892c01.js";
|
|
63
|
+
import { A as A11 } from "./components/CommonActions/components/ActionFormCancel/index.51311bde.js";
|
|
64
|
+
import { A as A12 } from "./components/CommonActions/components/ActionFormIntro/index.2ecd7ba1.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.3f25054a.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.df9b1e97.js";
|
|
74
|
+
import { W as W2 } from "./components/modal/WindowConfirm.3c4da58c.js";
|
|
75
|
+
import { W as W3 } from "./components/modal/WindowBase.f568bcac.js";
|
|
76
|
+
import { N as N2 } from "./components/NavLink/index.cc66f31f.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.ca98686d.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.45b365c3.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.8e3e0148.js";
|
|
88
|
+
import { A as A14, g as g18 } from "./components/AccountPopover/index.0bee6fca.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.9fb8e0a2.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.3f77d470.js";
|
|
93
|
+
import { u as u4 } from "./hooks/useModal/index.caaeaddd.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.e4e54402.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.8d846036.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.e9f2274c.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.080e8c7d.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.15beabcd.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,
|