@m4l/components 0.2.7 → 0.2.9
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.2604c389.js → index.8a11a7b6.js} +21 -9
- package/components/AppBar/{index.9522f237.js → index.966d5162.js} +22 -5
- package/components/CommonActions/components/ActionCancel/{index.06539086.js → index.68bf349a.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/index.728bb37d.js +146 -0
- package/components/CommonActions/components/ActionFormIntro/{index.5a719043.js → index.a7e8711b.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.3e8a2e60.js → index.7cc0a393.js} +2 -2
- package/components/CommonActions/components/Actions/index.b61826a4.js +163 -0
- package/components/DataGrid/constants.d.ts +2 -0
- package/components/DataGrid/{index.84a4843c.js → index.3a2e683c.js} +92 -92
- package/components/DataGrid/subcomponents/Actions/{index.dbcbee6d.js → index.063a0197.js} +89 -9
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.d.ts +0 -1
- package/components/DynamicFilter/{index.39033eb7.js → index.a5197d85.js} +92 -23
- package/components/GridLayout/{index.e8c04242.js → index.68093cfb.js} +7 -6
- package/components/GridLayout/subcomponents/Griditem/{index.4d38f12e.js → index.8e4af155.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.e25df1dc.js → index.c32210fc.js} +1 -1
- package/components/HelperText/{index.7d2afdb3.js → index.a6a02c79.js} +23 -2
- package/components/Icon/{index.05984e7f.js → index.29065051.js} +5 -5
- package/components/Image/{index.bf37e923.js → index.cf640615.js} +3 -3
- package/components/LanguagePopover/{index.5ff37dbf.js → index.0319d6a8.js} +20 -4
- package/components/LoadingError/{index.fabad214.js → index.1426339a.js} +23 -5
- package/components/MFLoader/{index.7b4ee2a4.js → index.cbd2e5af.js} +21 -5
- package/components/ModalDialog/{index.89e26413.js → index.82ccabcc.js} +3 -3
- package/components/NavLink/{index.b75c91e1.js → index.618dabfb.js} +22 -2
- package/components/NoItemSelected/{index.7db73e77.js → index.50d06852.js} +1 -1
- package/components/ObjectLogs/{index.aeb2540f.js → index.fb34f372.js} +84 -5
- package/components/PDFViewer/{index.5c2db67a.js → index.ec8d0f79.js} +23 -3
- package/components/Page/{index.710cb16f.js → index.5aefe8f7.js} +1 -1
- package/components/PaperForm/classes/index.d.ts +2 -1
- package/components/PaperForm/classes/types.d.ts +1 -0
- package/components/PaperForm/{index.7ea3883f.js → index.6859d4e8.js} +11 -6
- package/components/PaperForm/types.d.ts +4 -1
- package/components/Period/{index.0aa8e507.js → index.df612223.js} +90 -5
- package/components/PrintingSystem/{index.ed3b22b7.js → index.73dd98b3.js} +12 -12
- package/components/PrintingSystem/subcomponents/BodyNode/{index.7acc6016.js → index.d70a5d24.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.e4a23bdd.js → index.4cd7f6d8.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.16fff262.js → index.56efaa0c.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.6c67dec0.js → index.4320bb03.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.f466062b.js → index.6cabbf31.js} +1 -5
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.77d3d39a.js → index.0e23ffd4.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2a3d54a3.js → index.f97e7aa6.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.e71ad971.js → index.7d3a3c8f.js} +1 -2
- package/components/PrintingSystem/subcomponents/SectionNode/{index.ce4f6d16.js → index.05d1fcf7.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.850d20a1.js → index.3894059c.js} +1 -1
- package/components/PropertyValue/{index.43ac2a71.js → index.df683b35.js} +20 -4
- package/components/SideBar/{index.58d29b84.js → index.f322ee0b.js} +22 -23
- package/components/ToastContainer/{index.ed440301.js → index.f67795cb.js} +7 -5
- package/components/animate/{index.5d4575bc.js → index.4e9774a6.js} +6 -2
- package/components/areas/components/AreasAdmin/{index.d2ce1682.js → index.6024578a.js} +98 -27
- package/components/areas/components/AreasViewer/{index.977d2804.js → index.41e89676.js} +84 -18
- package/components/areas/components/index.198e8954.js +32 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.79ec57d5.js → index.9c8e3b41.js} +10 -17
- package/components/areas/contexts/index.eba30173.js +4 -0
- package/components/areas/hooks/index.0184c6f7.js +4 -0
- package/components/areas/hooks/useAreas/{index.de0591fe.js → index.fb721543.js} +1 -1
- package/components/areas/index.abedae6a.js +56 -0
- package/components/formatters/BooleanFormatter/{index.4f3cbdce.js → index.64ed2d71.js} +2 -3
- package/components/formatters/{index.4ca6946d.js → index.57f0da1b.js} +7 -3
- package/components/hook-form/RHFAutocomplete/{index.0ce87ac3.js → index.e830f749.js} +22 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.57789d3a.js → index.12580722.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.a38715e3.js → index.938321c1.js} +22 -2
- package/components/hook-form/RHFColorPicker/{index.d00a2b53.js → index.e292aa86.js} +21 -5
- package/components/hook-form/RHFDateTime/{index.ae5d3a39.js → index.321e4b87.js} +21 -5
- package/components/hook-form/RHFPeriod/{index.ae9bcf41.js → index.98b2667a.js} +2 -3
- package/components/hook-form/RHFTextField/{index.80cc07e0.js → index.d08c142b.js} +7 -5
- package/components/hook-form/RHFUpload/{index.587aac00.js → index.cdb2e584.js} +22 -5
- package/components/modal/WindowBase.4fe313e7.js +160 -0
- package/components/modal/WindowConfirm.355df4de.js +188 -0
- package/components/modal/index.ea3a21cb.js +148 -0
- package/components/mui_extended/Accordion/{index.eddcfe40.js → index.3e247bd4.js} +4 -4
- package/components/mui_extended/Button/{index.570fd3a4.js → index.f538e360.js} +3 -3
- package/components/mui_extended/{CheckBox.e662d20c.js → CheckBox.38abccd8.js} +1 -1
- package/components/mui_extended/IconButton/{index.26de70bd.js → index.e295aa1f.js} +2 -2
- package/components/mui_extended/MenuActions/{index.8c02ff61.js → index.9b37fadc.js} +19 -5
- package/components/mui_extended/Pager/{index.5629e82b.js → index.78dea971.js} +2 -3
- package/components/mui_extended/Tab/{index.f8795137.js → index.4c797c00.js} +2 -2
- package/components/mui_extended/ToggleButton/{index.21a1f8e5.js → index.43140642.js} +5 -1
- package/components/mui_extended/ToggleIconButton/{index.00f13c40.js → index.3d725376.js} +6 -1
- package/components/mui_extended/index.1da3a53e.js +24 -0
- package/contexts/ModalContext/{index.b39d303d.js → index.6d2dda38.js} +1 -1
- package/hooks/useFormAddEdit/index.0d294209.js +183 -0
- package/hooks/useModal/{index.abdc0962.js → index.97742698.js} +1 -1
- package/hooks/useTab/index.cb48ec45.js +103 -0
- package/index.js +176 -176
- package/{node_modules.8f15d11f.js → node_modules.56dca1cf.js} +1 -1
- package/package.json +1 -1
- package/vendor.3c20510a.js +142 -0
- package/components/CommonActions/components/ActionFormCancel/index.33fc6c79.js +0 -61
- package/components/CommonActions/components/Actions/index.2f6286eb.js +0 -74
- package/components/DataGrid/subcomponents/Table/subcomponents/constants.d.ts +0 -1
- package/components/areas/components/index.558684b3.js +0 -1
- package/components/areas/contexts/index.24025b97.js +0 -1
- package/components/areas/hooks/index.d9dc1e21.js +0 -1
- package/components/areas/index.4cc6a221.js +0 -22
- package/components/modal/WindowBase.ea17cf20.js +0 -74
- package/components/modal/WindowConfirm.19ddbd5d.js +0 -102
- package/components/modal/index.61389369.js +0 -57
- package/components/mui_extended/index.b606cd9d.js +0 -1
- package/hooks/useFormAddEdit/index.32aa4f64.js +0 -96
- package/hooks/useTab/index.9c611b31.js +0 -12
- package/vendor.75facc5e.js +0 -110
- package/components/mui_extended/Badge/{index.09f5aee5.js → index.b09524fe.js} +1 -1
- package/components/mui_extended/Popover/{index.b3eca6b1.js → index.9f35d0eb.js} +2 -2
- package/components/mui_extended/Tooltip/{index.24a2bc3f.js → index.5a795dcd.js} +1 -1
- package/components/mui_extended/Typography/{index.379dd374.js → index.443590d6.js} +1 -1
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import { useEnvironment, useModuleDictionary, useNetwork } from "@m4l/core";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { generateUtilityClasses, generateUtilityClass, styled, useTheme, ButtonBase } from "@mui/material";
|
|
4
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
5
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
|
+
import { generateUtilityClasses, generateUtilityClass, styled, useTheme, ButtonBase } from "@mui/material";
|
|
5
|
+
import { I as Icon } from "../Icon/index.29065051.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import "../mui_extended/IconButton/index.e295aa1f.js";
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
import "@m4l/graphics";
|
|
10
|
+
import "../mui_extended/Accordion/index.3e247bd4.js";
|
|
11
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
7
12
|
import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
|
+
import "react-router-dom";
|
|
14
|
+
import "@mui/material/Button";
|
|
15
|
+
import "../mui_extended/Button/index.f538e360.js";
|
|
16
|
+
import "../mui_extended/CheckBox.38abccd8.js";
|
|
8
17
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
18
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
19
|
+
import "../Image/index.cf640615.js";
|
|
20
|
+
import "@mui/lab";
|
|
21
|
+
import "../mui_extended/MenuActions/index.9b37fadc.js";
|
|
22
|
+
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
+
import "../mui_extended/Tab/index.4c797c00.js";
|
|
25
|
+
import "../mui_extended/Pager/index.78dea971.js";
|
|
26
|
+
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
27
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
12
28
|
const componentName = "M4LAccountPopover";
|
|
13
29
|
generateUtilityClasses(componentName, [
|
|
14
30
|
"root",
|
|
@@ -97,7 +113,6 @@ const MenuPopOver = (props) => {
|
|
|
97
113
|
host_static_assets,
|
|
98
114
|
environment_assets
|
|
99
115
|
} = useEnvironment();
|
|
100
|
-
console.log("MenuPopOver", data);
|
|
101
116
|
const {
|
|
102
117
|
avatar_url,
|
|
103
118
|
first_name,
|
|
@@ -119,8 +134,6 @@ const MenuPopOver = (props) => {
|
|
|
119
134
|
const handleOpen = (event) => {
|
|
120
135
|
setOpen(event.currentTarget);
|
|
121
136
|
};
|
|
122
|
-
const dataIsArray = Array.isArray(data) && data.length > 0;
|
|
123
|
-
console.log("dataIsArray", dataIsArray);
|
|
124
137
|
return /* @__PURE__ */ jsxs("div", {
|
|
125
138
|
role: "presentation",
|
|
126
139
|
className: classes.containerAvatarPopover,
|
|
@@ -279,7 +292,6 @@ const AccountPopover = (props) => {
|
|
|
279
292
|
};
|
|
280
293
|
}, [open]);
|
|
281
294
|
const accountPopoverClasses = useAccountPopoverUtilityClasses();
|
|
282
|
-
console.log("user data", userData);
|
|
283
295
|
return /* @__PURE__ */ jsx(AcountPopOverRoot, {
|
|
284
296
|
className: clsx(accountPopoverClasses.root, className),
|
|
285
297
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
1
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
3
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
|
-
import {
|
|
5
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.e295aa1f.js";
|
|
6
|
+
import "../mui_extended/Accordion/index.3e247bd4.js";
|
|
7
|
+
import "../Icon/index.29065051.js";
|
|
8
|
+
import "react";
|
|
9
|
+
import "clsx";
|
|
7
10
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
+
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
12
|
+
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
|
+
import "react-router-dom";
|
|
14
|
+
import "@mui/material/Button";
|
|
15
|
+
import "../mui_extended/Button/index.f538e360.js";
|
|
16
|
+
import "../mui_extended/CheckBox.38abccd8.js";
|
|
17
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
18
|
+
import { I as Image } from "../Image/index.cf640615.js";
|
|
19
|
+
import "@mui/lab";
|
|
20
|
+
import "../mui_extended/MenuActions/index.9b37fadc.js";
|
|
21
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
22
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
23
|
+
import "../mui_extended/Tab/index.4c797c00.js";
|
|
24
|
+
import "../mui_extended/Pager/index.78dea971.js";
|
|
25
|
+
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
|
+
import { styled } from "@mui/material/styles";
|
|
27
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
11
28
|
const AppBarRoot = styled("header")(({
|
|
12
29
|
theme
|
|
13
30
|
}) => ({
|
package/components/CommonActions/components/ActionCancel/{index.06539086.js → index.68bf349a.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
3
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.f538e360.js";
|
|
3
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.b61826a4.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const {
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { B as Button } from "../../../mui_extended/Button/index.f538e360.js";
|
|
4
|
+
import { useCallback, useEffect } from "react";
|
|
5
|
+
import { u as useModal } from "../../../../hooks/useModal/index.97742698.js";
|
|
6
|
+
import "@mui/material";
|
|
7
|
+
import "../../../../react-draggable.ee21cb7e.js";
|
|
8
|
+
import "../../../Resizeable/index.6478d7d8.js";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import "@m4l/graphics";
|
|
11
|
+
import "../../../modal/index.ea3a21cb.js";
|
|
12
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.355df4de.js";
|
|
13
|
+
import "../../../animate/index.4e9774a6.js";
|
|
14
|
+
import "framer-motion";
|
|
15
|
+
import "@mui/material/styles";
|
|
16
|
+
import "react-router-dom";
|
|
17
|
+
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
18
|
+
import "../../../animate/PropagateLoader/index.7fab43c8.js";
|
|
19
|
+
import "../../../Icon/index.29065051.js";
|
|
20
|
+
import "clsx";
|
|
21
|
+
import "../../../mui_extended/IconButton/index.e295aa1f.js";
|
|
22
|
+
import "zustand";
|
|
23
|
+
import "../../../areas/contexts/AreasContext/index.9c8e3b41.js";
|
|
24
|
+
import "../../../areas/components/AreasAdmin/index.6024578a.js";
|
|
25
|
+
import "zustand/shallow";
|
|
26
|
+
import "../../../ScrollBar/index.010f1b9d.js";
|
|
27
|
+
import "../../../mui_extended/Accordion/index.3e247bd4.js";
|
|
28
|
+
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
29
|
+
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
30
|
+
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
31
|
+
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
32
|
+
import "../../../Image/index.cf640615.js";
|
|
33
|
+
import "@mui/lab";
|
|
34
|
+
import "../../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
35
|
+
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
36
|
+
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
37
|
+
import "../../../mui_extended/Tab/index.4c797c00.js";
|
|
38
|
+
import "../../../mui_extended/Pager/index.78dea971.js";
|
|
39
|
+
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
40
|
+
import "../../../areas/components/AreasViewer/index.41e89676.js";
|
|
41
|
+
import "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
42
|
+
import "../../../LoadingError/index.1426339a.js";
|
|
43
|
+
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
|
+
import "zustand/middleware/immer";
|
|
45
|
+
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
46
|
+
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
47
|
+
import "../../../hook-form/RHFAutocomplete/index.e830f749.js";
|
|
48
|
+
import "../../../HelperText/index.a6a02c79.js";
|
|
49
|
+
import "../../../../node_modules.56dca1cf.js";
|
|
50
|
+
import "lodash-es/debounce";
|
|
51
|
+
import "lodash-es/each";
|
|
52
|
+
import "../../../hook-form/RHFColorPicker/index.e292aa86.js";
|
|
53
|
+
import "lodash/debounce";
|
|
54
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.12580722.js";
|
|
55
|
+
import "../../../hook-form/RHFCheckbox/index.938321c1.js";
|
|
56
|
+
import "@mui/x-date-pickers";
|
|
57
|
+
import "../../../hook-form/RHFDateTime/index.321e4b87.js";
|
|
58
|
+
import "../../../hook-form/RHFTextField/index.d08c142b.js";
|
|
59
|
+
import "../../../hook-form/RHFPeriod/index.98b2667a.js";
|
|
60
|
+
import "../../../Period/index.df612223.js";
|
|
61
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.b61826a4.js";
|
|
62
|
+
import "lodash/isString";
|
|
63
|
+
import "react-dropzone";
|
|
64
|
+
import "../../../hook-form/RHFUpload/index.cdb2e584.js";
|
|
65
|
+
import "../../../formatters/index.57f0da1b.js";
|
|
66
|
+
import "../../../DataGrid/index.3a2e683c.js";
|
|
67
|
+
import "react-dnd";
|
|
68
|
+
import "react-dnd-html5-backend";
|
|
69
|
+
import "../../../DataGrid/subcomponents/Actions/index.063a0197.js";
|
|
70
|
+
import "../../../DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
71
|
+
import "../../../DynamicFilter/index.a5197d85.js";
|
|
72
|
+
import "yup";
|
|
73
|
+
import "../../../../contexts/RHFormContext/index.7769076a.js";
|
|
74
|
+
import "../../../GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
75
|
+
import "../../../GridLayout/index.68093cfb.js";
|
|
76
|
+
import "fast-equals";
|
|
77
|
+
import "lodash";
|
|
78
|
+
import "../../../PrintingSystem/index.73dd98b3.js";
|
|
79
|
+
import "../../../LanguagePopover/index.0319d6a8.js";
|
|
80
|
+
import "../../../MFLoader/index.cbd2e5af.js";
|
|
81
|
+
import "../../../NavLink/index.618dabfb.js";
|
|
82
|
+
import "../../../NoItemSelected/index.50d06852.js";
|
|
83
|
+
import "../../../ObjectLogs/index.fb34f372.js";
|
|
84
|
+
import "../../../../react-json-view.5636414a.js";
|
|
85
|
+
import "../../../PaperForm/index.6859d4e8.js";
|
|
86
|
+
import "../../../PDFViewer/index.ec8d0f79.js";
|
|
87
|
+
import "../../../Page/index.5aefe8f7.js";
|
|
88
|
+
import "../../../PropertyValue/index.df683b35.js";
|
|
89
|
+
import "../../../SplitLayout/index.30fd5861.js";
|
|
90
|
+
import "../../../../react-splitter-layout.c5d98bf7.js";
|
|
91
|
+
import "../../../ToastContainer/index.f67795cb.js";
|
|
92
|
+
import "../../../SideBar/index.f322ee0b.js";
|
|
93
|
+
import "../../../AppBar/index.966d5162.js";
|
|
94
|
+
import "../../../AccountPopover/index.8a11a7b6.js";
|
|
95
|
+
function ActionFormCancel() {
|
|
96
|
+
const {
|
|
97
|
+
getLabel
|
|
98
|
+
} = useModuleDictionary();
|
|
99
|
+
const {
|
|
100
|
+
openModal
|
|
101
|
+
} = useModal();
|
|
102
|
+
const {
|
|
103
|
+
close: closeWindow,
|
|
104
|
+
setFnQueryClose: setQueryClose
|
|
105
|
+
} = useWindowToolsMF();
|
|
106
|
+
const {
|
|
107
|
+
control
|
|
108
|
+
} = useFormContext();
|
|
109
|
+
const {
|
|
110
|
+
isDirty
|
|
111
|
+
} = useFormState({
|
|
112
|
+
control
|
|
113
|
+
});
|
|
114
|
+
const onConfirmQuit = useCallback(() => {
|
|
115
|
+
closeWindow();
|
|
116
|
+
}, []);
|
|
117
|
+
const onClickCancel = useCallback(() => {
|
|
118
|
+
if (isDirty) {
|
|
119
|
+
openModal({
|
|
120
|
+
window: /* @__PURE__ */ jsx(WindowConfirm, {
|
|
121
|
+
variant: "warning",
|
|
122
|
+
title: getLabel("common_actions.confirm_quit_title"),
|
|
123
|
+
msg: getLabel("common_actions.confirm_quit_msg"),
|
|
124
|
+
onClickIntro: onConfirmQuit
|
|
125
|
+
}),
|
|
126
|
+
variant: "warning"
|
|
127
|
+
});
|
|
128
|
+
} else {
|
|
129
|
+
onConfirmQuit();
|
|
130
|
+
}
|
|
131
|
+
}, [getLabel, isDirty, openModal]);
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
setQueryClose(onClickCancel);
|
|
134
|
+
}, [onClickCancel]);
|
|
135
|
+
const classes = useCommonActionsUtilityClasses();
|
|
136
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
137
|
+
variant: "outlined",
|
|
138
|
+
color: "inherit",
|
|
139
|
+
onClick: onClickCancel,
|
|
140
|
+
className: classes.actionFormCancel,
|
|
141
|
+
children: getLabel("common_actions.cancel")
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
export {
|
|
145
|
+
ActionFormCancel as A
|
|
146
|
+
};
|
package/components/CommonActions/components/ActionFormIntro/{index.5a719043.js → index.a7e8711b.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { L as LoadingButton } from "../../../mui_extended/Button/index.
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { L as LoadingButton } from "../../../mui_extended/Button/index.f538e360.js";
|
|
5
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.b61826a4.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const {
|
package/components/CommonActions/components/ActionIntro/{index.3e8a2e60.js → index.7cc0a393.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.f538e360.js";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
4
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.b61826a4.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { generateUtilityClasses } from "@mui/material";
|
|
4
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
6
|
+
import { styled } from "@mui/material/styles";
|
|
7
|
+
import "@m4l/core";
|
|
8
|
+
import "@mui/material/Button";
|
|
9
|
+
import "../../../mui_extended/Button/index.f538e360.js";
|
|
10
|
+
import "clsx";
|
|
11
|
+
import "react-hook-form";
|
|
12
|
+
import "react";
|
|
13
|
+
import "../../../../contexts/ModalContext/index.6d2dda38.js";
|
|
14
|
+
import "../../../../react-draggable.ee21cb7e.js";
|
|
15
|
+
import "../../../Resizeable/index.6478d7d8.js";
|
|
16
|
+
import "@m4l/graphics";
|
|
17
|
+
import "../../../modal/index.ea3a21cb.js";
|
|
18
|
+
import "../../../animate/index.4e9774a6.js";
|
|
19
|
+
import "framer-motion";
|
|
20
|
+
import "react-router-dom";
|
|
21
|
+
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
22
|
+
import "../../../animate/PropagateLoader/index.7fab43c8.js";
|
|
23
|
+
import "../../../Icon/index.29065051.js";
|
|
24
|
+
import "../../../mui_extended/IconButton/index.e295aa1f.js";
|
|
25
|
+
import "zustand";
|
|
26
|
+
import "../../../areas/contexts/AreasContext/index.9c8e3b41.js";
|
|
27
|
+
import "../../../areas/components/AreasAdmin/index.6024578a.js";
|
|
28
|
+
import "zustand/shallow";
|
|
29
|
+
import "../../../ScrollBar/index.010f1b9d.js";
|
|
30
|
+
import "../../../mui_extended/Accordion/index.3e247bd4.js";
|
|
31
|
+
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
32
|
+
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
33
|
+
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
34
|
+
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
35
|
+
import "../../../Image/index.cf640615.js";
|
|
36
|
+
import "@mui/lab";
|
|
37
|
+
import "../../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
38
|
+
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
39
|
+
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
40
|
+
import "../../../mui_extended/Tab/index.4c797c00.js";
|
|
41
|
+
import "../../../mui_extended/Pager/index.78dea971.js";
|
|
42
|
+
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
43
|
+
import "../../../areas/components/AreasViewer/index.41e89676.js";
|
|
44
|
+
import "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
45
|
+
import "../../../LoadingError/index.1426339a.js";
|
|
46
|
+
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
47
|
+
import "zustand/middleware/immer";
|
|
48
|
+
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
49
|
+
import "../../../hook-form/RHFAutocomplete/index.e830f749.js";
|
|
50
|
+
import "../../../HelperText/index.a6a02c79.js";
|
|
51
|
+
import "../../../../node_modules.56dca1cf.js";
|
|
52
|
+
import "lodash-es/debounce";
|
|
53
|
+
import "lodash-es/each";
|
|
54
|
+
import "../../../hook-form/RHFColorPicker/index.e292aa86.js";
|
|
55
|
+
import "lodash/debounce";
|
|
56
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.12580722.js";
|
|
57
|
+
import "../../../hook-form/RHFCheckbox/index.938321c1.js";
|
|
58
|
+
import "@mui/x-date-pickers";
|
|
59
|
+
import "../../../hook-form/RHFDateTime/index.321e4b87.js";
|
|
60
|
+
import "../../../hook-form/RHFTextField/index.d08c142b.js";
|
|
61
|
+
import "../../../hook-form/RHFPeriod/index.98b2667a.js";
|
|
62
|
+
import "../../../Period/index.df612223.js";
|
|
63
|
+
import "lodash/isString";
|
|
64
|
+
import "react-dropzone";
|
|
65
|
+
import "../../../hook-form/RHFUpload/index.cdb2e584.js";
|
|
66
|
+
import "../../../formatters/index.57f0da1b.js";
|
|
67
|
+
import "../../../DataGrid/index.3a2e683c.js";
|
|
68
|
+
import "react-dnd";
|
|
69
|
+
import "react-dnd-html5-backend";
|
|
70
|
+
import "../../../DataGrid/subcomponents/Actions/index.063a0197.js";
|
|
71
|
+
import "../../../DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
72
|
+
import "../../../DynamicFilter/index.a5197d85.js";
|
|
73
|
+
import "yup";
|
|
74
|
+
import "../../../../contexts/RHFormContext/index.7769076a.js";
|
|
75
|
+
import "../../../GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
76
|
+
import "../../../GridLayout/index.68093cfb.js";
|
|
77
|
+
import "fast-equals";
|
|
78
|
+
import "lodash";
|
|
79
|
+
import "../../../PrintingSystem/index.73dd98b3.js";
|
|
80
|
+
import "../../../LanguagePopover/index.0319d6a8.js";
|
|
81
|
+
import "../../../MFLoader/index.cbd2e5af.js";
|
|
82
|
+
import "../../../NavLink/index.618dabfb.js";
|
|
83
|
+
import "../../../NoItemSelected/index.50d06852.js";
|
|
84
|
+
import "../../../ObjectLogs/index.fb34f372.js";
|
|
85
|
+
import "../../../../react-json-view.5636414a.js";
|
|
86
|
+
import "../../../PaperForm/index.6859d4e8.js";
|
|
87
|
+
import "../../../PDFViewer/index.ec8d0f79.js";
|
|
88
|
+
import "../../../Page/index.5aefe8f7.js";
|
|
89
|
+
import "../../../PropertyValue/index.df683b35.js";
|
|
90
|
+
import "../../../SplitLayout/index.30fd5861.js";
|
|
91
|
+
import "../../../../react-splitter-layout.c5d98bf7.js";
|
|
92
|
+
import "../../../ToastContainer/index.f67795cb.js";
|
|
93
|
+
import "../../../SideBar/index.f322ee0b.js";
|
|
94
|
+
import "../../../AppBar/index.966d5162.js";
|
|
95
|
+
import "../../../AccountPopover/index.8a11a7b6.js";
|
|
96
|
+
const componentName = "M4LCommonActions";
|
|
97
|
+
generateUtilityClasses(componentName, [
|
|
98
|
+
"root",
|
|
99
|
+
"skeleton",
|
|
100
|
+
"actionCancel",
|
|
101
|
+
"actionFormCancel",
|
|
102
|
+
"actionFormIntro",
|
|
103
|
+
"actionIntro",
|
|
104
|
+
"wrapperActions"
|
|
105
|
+
]);
|
|
106
|
+
const useCommonActionsUtilityClasses = () => {
|
|
107
|
+
const slots = {
|
|
108
|
+
root: ["root"],
|
|
109
|
+
skeleton: ["skeleton"],
|
|
110
|
+
actionCancel: ["actionCancel"],
|
|
111
|
+
actionFormCancel: ["actionFormCancel"],
|
|
112
|
+
actionFormIntro: ["actionFormIntro"],
|
|
113
|
+
actionIntro: ["actionIntro"],
|
|
114
|
+
wrapperActions: ["wrapperActions"]
|
|
115
|
+
};
|
|
116
|
+
return unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
117
|
+
};
|
|
118
|
+
const WrapperStandarActions = styled("div")(({
|
|
119
|
+
theme
|
|
120
|
+
}) => ({
|
|
121
|
+
paddingTop: theme.spacing(3),
|
|
122
|
+
display: "flex",
|
|
123
|
+
flexDirection: "row",
|
|
124
|
+
justifyContent: "flex-end",
|
|
125
|
+
"& > button": {
|
|
126
|
+
marginLeft: "10px"
|
|
127
|
+
},
|
|
128
|
+
...theme.components?.M4LCommonActions?.styleOverrides
|
|
129
|
+
}));
|
|
130
|
+
const COMMONACTIONS_PREFIX = "M4LCommonActions";
|
|
131
|
+
const getNameCommonActionsDataTestId = (KEY) => {
|
|
132
|
+
return `${COMMONACTIONS_PREFIX}-${KEY}`;
|
|
133
|
+
};
|
|
134
|
+
const Actions = (props) => {
|
|
135
|
+
const {
|
|
136
|
+
children
|
|
137
|
+
} = props;
|
|
138
|
+
const classes = useCommonActionsUtilityClasses();
|
|
139
|
+
return /* @__PURE__ */ jsx(WrapperStandarActions, {
|
|
140
|
+
className: classes.root,
|
|
141
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
142
|
+
[TEST_PROP_ID]: getNameCommonActionsDataTestId("root")
|
|
143
|
+
} : {},
|
|
144
|
+
children
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
function getCommonActionsDictionary() {
|
|
148
|
+
return ["common_actions"];
|
|
149
|
+
}
|
|
150
|
+
const defaultCommonActionsDictionary = {
|
|
151
|
+
common_actions: {
|
|
152
|
+
cancel: "Cancel",
|
|
153
|
+
intro: "Intro",
|
|
154
|
+
confirm_quit_title: "Confirm",
|
|
155
|
+
confirm_quit_msg: "Are your sure exit?"
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
export {
|
|
159
|
+
Actions as A,
|
|
160
|
+
defaultCommonActionsDictionary as d,
|
|
161
|
+
getCommonActionsDictionary as g,
|
|
162
|
+
useCommonActionsUtilityClasses as u
|
|
163
|
+
};
|