@m4l/components 0.1.50 → 0.1.52
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/CommonActions/components/ActionFormCancel/{index.bf4c99f9.js → index.bd0d16d6.js} +10 -11
- package/components/CommonActions/components/Actions/{index.274f0ce8.js → index.f0a3167b.js} +9 -9
- package/components/DataGrid/{index.01df4f26.js → index.85390177.js} +10 -10
- package/components/DynamicFilter/{index.c1022a6f.js → index.cddd7472.js} +13 -13
- package/components/ModalDialog/{index.1e2f7995.js → index.5a307e29.js} +2 -2
- package/components/ObjectLogs/{index.820d75ac.js → index.1315af37.js} +12 -12
- package/components/Period/{index.514252d6.js → index.85fe764a.js} +10 -10
- package/components/areas/components/Area/subcomponents/InnerForHooks/index.d.ts +2 -0
- package/components/areas/components/Area/types.d.ts +4 -2
- package/components/areas/components/AreasAdmin/{index.c6ccc79c.js → index.dbab59f1.js} +1 -3
- package/components/areas/components/AreasContainer/{index.a4393459.js → index.f3f921b9.js} +2 -7
- package/components/areas/components/GridLayout/index.9953146d.js +103 -0
- package/components/areas/components/Window/{index.ac629c20.js → index.e34225ae.js} +223 -36
- package/components/areas/components/WindowModal/index.d.ts +4 -0
- package/components/areas/components/WindowPopUp/{index.ba674a09.js → index.90eb0348.js} +18 -19
- package/components/areas/components/WindowsPanel/index.d.ts +2 -0
- package/components/areas/components/index.6d863764.js +77 -0
- package/components/areas/contexts/AreaContext/helper.d.ts +27 -0
- package/components/areas/contexts/AreaContext/index.d.ts +18 -4
- package/components/areas/contexts/AreaContext/{index.282b9a30.js → index.f25f7180.js} +181 -66
- package/components/areas/contexts/AreaContext/store.d.ts +23 -3
- package/components/areas/contexts/AreasContext/{index.cbfa4a53.js → index.7406c20f.js} +7 -14
- package/components/areas/contexts/AreasContext/store.d.ts +2 -2
- package/components/areas/contexts/{index.ea2185f5.js → index.e80d8f0f.js} +10 -15
- package/components/areas/hooks/{index.98cf18fc.js → index.0fd57f88.js} +1 -1
- package/components/areas/hooks/useArea/{index.868089ed.js → index.7bdbbb79.js} +8 -8
- package/components/areas/hooks/useArea/index.d.ts +9 -1
- package/components/areas/{index.d1ebea1b.js → index.6f09d168.js} +5 -5
- package/components/hook-form/RHFPeriod/{index.72f32f9b.js → index.5d2a2071.js} +1 -1
- package/components/hook-form/RHFTextField/{index.57f138f7.js → index.bef7eced.js} +0 -1
- package/components/index.d.ts +0 -1
- package/components/modal/ModalDialog/types.d.ts +2 -1
- package/components/modal/{WindowBase.9f5db87e.js → WindowBase.b5e29758.js} +1 -1
- package/components/modal/{WindowConfirm.d5026cb4.js → WindowConfirm.cbc7720c.js} +9 -9
- package/components/modal/{index.a568e1f0.js → index.f6de895f.js} +10 -10
- package/contexts/ModalContext/{index.6a6bf90d.js → index.3d92d9f9.js} +1 -1
- package/hooks/useModal/{index.2097260d.js → index.4454145e.js} +1 -1
- package/index.js +29 -60
- package/package.json +5 -3
- package/components/CmpDisenoTest/index.d.ts +0 -4
- package/components/CmpDisenoTest/types.d.ts +0 -20
- package/components/CommonActions/components/Actions/styles.d.ts +0 -2
- package/components/DataGrid/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/styles.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -8
- package/components/DataGrid/subcomponents/Table/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -6
- package/components/DynamicFilter/styles.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ApplyedFilters/components/ApplyedFilter/styles.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ApplyedFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/ClearFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/FilterButton/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/InputFilter/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/PopupEditFilter/styles.d.ts +0 -7
- package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/styles.d.ts +0 -3
- package/components/ErrorLabel/styles.d.ts +0 -2
- package/components/Icon/styles.d.ts +0 -4
- package/components/Image/styles.d.ts +0 -3
- package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +0 -2
- package/components/Image/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/LanguagePopover/styles.d.ts +0 -5
- package/components/NoItemSelected/styles.d.ts +0 -5
- package/components/ObjectLogs/components/DetailDialog/styles.d.ts +0 -3
- package/components/ObjectLogs/styles.d.ts +0 -4
- package/components/PaperForm/styles.d.ts +0 -7
- package/components/Period/styles.d.ts +0 -7
- package/components/PropertyValue/styles.d.ts +0 -6
- package/components/ResizeableWindow/styles.d.ts +0 -5
- package/components/SplitLayout/styles.d.ts +0 -4
- package/components/animate/LoadingScreen/styles.d.ts +0 -3
- package/components/animate/PropagateLoader/syles.d.ts +0 -2
- package/components/areas/components/Area/styles.d.ts +0 -2
- package/components/areas/components/AreasAdmin/styles.d.ts +0 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +0 -3
- package/components/areas/components/AreasContainer/styles.d.ts +0 -2
- package/components/areas/components/GridLayout/index.7a78196e.js +0 -102
- package/components/areas/components/GridLayout/styles.d.ts +0 -2
- package/components/areas/components/Window/styles.d.ts +0 -6
- package/components/areas/components/Window/subcomponents/InnerForHooks/styles.d.ts +0 -2
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/Header/styles.d.ts +0 -9
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -2
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -2
- package/components/areas/components/index.3c88ce04.js +0 -72
- package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +0 -14
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFPeriod/styles.d.ts +0 -2
- package/components/hook-form/RHFTextField/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +0 -12
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/modal/ModalDialog/styles.d.ts +0 -9
- package/components/modal/WindowBase/styles.d.ts +0 -2
- package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -6
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +0 -6
- package/components/mui_extended/Accordion/styles.d.ts +0 -4
- package/components/mui_extended/Button/styles.d.ts +0 -13
- package/components/mui_extended/IconButton/styles.d.ts +0 -2
- package/components/mui_extended/ImageButton/styles.d.ts +0 -2
- package/components/mui_extended/LoadingButton/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/mui_extended/MenuActions/styles.d.ts +0 -30
- package/components/mui_extended/Pager/components/PagerActions/styles.d.ts +0 -2
- package/components/mui_extended/Pager/styles.d.ts +0 -6
- package/components/mui_extended/Popover/styles.d.ts +0 -1
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +0 -3
- package/components/mui_extended/Tab/styles.d.ts +0 -2
- package/components/mui_extended/Typography/styles.d.ts +0 -2
- package/contexts/RHFormContext/styles.d.ts +0 -2
package/components/CommonActions/components/ActionFormCancel/{index.bf4c99f9.js → index.bd0d16d6.js}
RENAMED
|
@@ -3,28 +3,28 @@ import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
4
|
import { B as Button } from "../../../mui_extended/Button/index.8406ed5b.js";
|
|
5
5
|
import { useCallback } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.4454145e.js";
|
|
7
7
|
import "../../../../react-draggable.0eef011c.js";
|
|
8
|
-
import "../../../ModalDialog/index.
|
|
8
|
+
import "../../../ModalDialog/index.5a307e29.js";
|
|
9
9
|
import "../../../Resizeable/index.8a442a8b.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
import "@m4l/graphics";
|
|
12
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
13
|
-
import "../../../modal/WindowBase.
|
|
12
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.cbc7720c.js";
|
|
13
|
+
import "../../../modal/WindowBase.b5e29758.js";
|
|
14
14
|
import "../../../Icon/index.f6e8d810.js";
|
|
15
15
|
import "@mui/material/styles";
|
|
16
|
-
import "../../../areas/components/index.
|
|
17
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
16
|
+
import "../../../areas/components/index.6d863764.js";
|
|
17
|
+
import "../../../areas/components/AreasAdmin/index.dbab59f1.js";
|
|
18
18
|
import "../../../mui_extended/IconButton/index.1318a283.js";
|
|
19
19
|
import "zustand";
|
|
20
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
20
|
+
import "../../../areas/contexts/AreasContext/index.7406c20f.js";
|
|
21
21
|
import "zustand/shallow";
|
|
22
|
-
import "../../../areas/components/AreasContainer/index.
|
|
22
|
+
import "../../../areas/components/AreasContainer/index.f3f921b9.js";
|
|
23
23
|
import "react-grid-layout/css/styles.css";
|
|
24
24
|
import "../../../../react-resizable.bb58c8fc.js";
|
|
25
|
-
import "../../../areas/contexts/index.
|
|
25
|
+
import "../../../areas/contexts/index.e80d8f0f.js";
|
|
26
26
|
import "../../../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
27
|
-
import { u as useWindowToolsMF } from "../../../areas/hooks/index.
|
|
27
|
+
import { u as useWindowToolsMF } from "../../../areas/hooks/index.0fd57f88.js";
|
|
28
28
|
function ActionFormCancel() {
|
|
29
29
|
const {
|
|
30
30
|
getLabel
|
|
@@ -45,7 +45,6 @@ function ActionFormCancel() {
|
|
|
45
45
|
control
|
|
46
46
|
});
|
|
47
47
|
const onConfirmQuit = useCallback(() => {
|
|
48
|
-
console.log("onConfirmQuit");
|
|
49
48
|
closeWindow();
|
|
50
49
|
}, []);
|
|
51
50
|
const onClickCancel = useCallback(() => {
|
|
@@ -6,25 +6,25 @@ import "@mui/material/Button";
|
|
|
6
6
|
import "../../../mui_extended/Button/index.8406ed5b.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../../../../contexts/ModalContext/index.
|
|
9
|
+
import "../../../../contexts/ModalContext/index.3d92d9f9.js";
|
|
10
10
|
import "../../../../react-draggable.0eef011c.js";
|
|
11
|
-
import "../../../ModalDialog/index.
|
|
11
|
+
import "../../../ModalDialog/index.5a307e29.js";
|
|
12
12
|
import "../../../Resizeable/index.8a442a8b.js";
|
|
13
13
|
import "@m4l/graphics";
|
|
14
14
|
import "@mui/lab";
|
|
15
|
-
import "../../../modal/WindowConfirm.
|
|
15
|
+
import "../../../modal/WindowConfirm.cbc7720c.js";
|
|
16
16
|
import "../../../Icon/index.f6e8d810.js";
|
|
17
|
-
import "../../../modal/WindowBase.
|
|
18
|
-
import "../../../areas/components/index.
|
|
19
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
17
|
+
import "../../../modal/WindowBase.b5e29758.js";
|
|
18
|
+
import "../../../areas/components/index.6d863764.js";
|
|
19
|
+
import "../../../areas/components/AreasAdmin/index.dbab59f1.js";
|
|
20
20
|
import "../../../mui_extended/IconButton/index.1318a283.js";
|
|
21
21
|
import "zustand";
|
|
22
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
22
|
+
import "../../../areas/contexts/AreasContext/index.7406c20f.js";
|
|
23
23
|
import "zustand/shallow";
|
|
24
|
-
import "../../../areas/components/AreasContainer/index.
|
|
24
|
+
import "../../../areas/components/AreasContainer/index.f3f921b9.js";
|
|
25
25
|
import "react-grid-layout/css/styles.css";
|
|
26
26
|
import "../../../../react-resizable.bb58c8fc.js";
|
|
27
|
-
import "../../../areas/contexts/index.
|
|
27
|
+
import "../../../areas/contexts/index.e80d8f0f.js";
|
|
28
28
|
import "../../../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
29
29
|
const WrapperStandarActions = styled("div")(({
|
|
30
30
|
theme
|
|
@@ -9,31 +9,31 @@ import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByStri
|
|
|
9
9
|
import { M as MenuActions } from "../mui_extended/MenuActions/index.1261168c.js";
|
|
10
10
|
import { P as Pager, g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.984aac44.js";
|
|
11
11
|
import { I as IconButton } from "../mui_extended/IconButton/index.1318a283.js";
|
|
12
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
12
|
+
import { u as useModal } from "../../hooks/useModal/index.4454145e.js";
|
|
13
13
|
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.a81752ef.js";
|
|
14
14
|
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.d567aebb.js";
|
|
15
15
|
import "../../react-draggable.0eef011c.js";
|
|
16
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.
|
|
16
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.5a307e29.js";
|
|
17
17
|
import "../Resizeable/index.8a442a8b.js";
|
|
18
18
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
19
|
-
import { A as Actions$1 } from "../CommonActions/components/Actions/index.
|
|
19
|
+
import { A as Actions$1 } from "../CommonActions/components/Actions/index.f0a3167b.js";
|
|
20
20
|
import "react-hook-form";
|
|
21
21
|
import "@mui/material/Button";
|
|
22
22
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
23
|
-
import "../areas/components/index.
|
|
24
|
-
import "../areas/components/AreasAdmin/index.
|
|
23
|
+
import "../areas/components/index.6d863764.js";
|
|
24
|
+
import "../areas/components/AreasAdmin/index.dbab59f1.js";
|
|
25
25
|
import "zustand";
|
|
26
|
-
import "../areas/contexts/AreasContext/index.
|
|
26
|
+
import "../areas/contexts/AreasContext/index.7406c20f.js";
|
|
27
27
|
import "zustand/shallow";
|
|
28
|
-
import "../areas/components/AreasContainer/index.
|
|
28
|
+
import "../areas/components/AreasContainer/index.f3f921b9.js";
|
|
29
29
|
import "react-grid-layout/css/styles.css";
|
|
30
30
|
import "../../react-resizable.bb58c8fc.js";
|
|
31
|
-
import "../areas/contexts/index.
|
|
31
|
+
import "../areas/contexts/index.e80d8f0f.js";
|
|
32
32
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
33
33
|
import "@mui/lab";
|
|
34
|
-
import "../modal/WindowConfirm.
|
|
34
|
+
import "../modal/WindowConfirm.cbc7720c.js";
|
|
35
35
|
import "../Icon/index.f6e8d810.js";
|
|
36
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
36
|
+
import { W as WindowBase } from "../modal/WindowBase.b5e29758.js";
|
|
37
37
|
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.b3fb8a75.js";
|
|
38
38
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
39
39
|
import { C as ConcatenatedFormatter } from "../formatters/index.90a19f9f.js";
|
|
@@ -27,25 +27,25 @@ import "../ErrorLabel/index.78553a1e.js";
|
|
|
27
27
|
import "@mui/x-date-pickers";
|
|
28
28
|
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.7f1cbd85.js";
|
|
29
29
|
import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
30
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
31
|
-
import "../hook-form/RHFPeriod/index.
|
|
32
|
-
import "../Period/index.
|
|
33
|
-
import { A as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
34
|
-
import "../../contexts/ModalContext/index.
|
|
30
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.bef7eced.js";
|
|
31
|
+
import "../hook-form/RHFPeriod/index.5d2a2071.js";
|
|
32
|
+
import "../Period/index.85fe764a.js";
|
|
33
|
+
import { A as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.f0a3167b.js";
|
|
34
|
+
import "../../contexts/ModalContext/index.3d92d9f9.js";
|
|
35
35
|
import "../../react-draggable.0eef011c.js";
|
|
36
|
-
import "../ModalDialog/index.
|
|
36
|
+
import "../ModalDialog/index.5a307e29.js";
|
|
37
37
|
import "../Resizeable/index.8a442a8b.js";
|
|
38
|
-
import "../modal/WindowConfirm.
|
|
39
|
-
import "../modal/WindowBase.
|
|
40
|
-
import "../areas/components/index.
|
|
41
|
-
import "../areas/components/AreasAdmin/index.
|
|
38
|
+
import "../modal/WindowConfirm.cbc7720c.js";
|
|
39
|
+
import "../modal/WindowBase.b5e29758.js";
|
|
40
|
+
import "../areas/components/index.6d863764.js";
|
|
41
|
+
import "../areas/components/AreasAdmin/index.dbab59f1.js";
|
|
42
42
|
import "zustand";
|
|
43
|
-
import "../areas/contexts/AreasContext/index.
|
|
43
|
+
import "../areas/contexts/AreasContext/index.7406c20f.js";
|
|
44
44
|
import "zustand/shallow";
|
|
45
|
-
import "../areas/components/AreasContainer/index.
|
|
45
|
+
import "../areas/components/AreasContainer/index.f3f921b9.js";
|
|
46
46
|
import "react-grid-layout/css/styles.css";
|
|
47
47
|
import "../../react-resizable.bb58c8fc.js";
|
|
48
|
-
import "../areas/contexts/index.
|
|
48
|
+
import "../areas/contexts/index.e80d8f0f.js";
|
|
49
49
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
50
50
|
import "lodash/isString";
|
|
51
51
|
import "react-dropzone";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Dialog, Paper } from "@mui/material";
|
|
2
2
|
import { c as cjs } from "../../react-draggable.0eef011c.js";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.4454145e.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { a as getThemeVariantColor } from "../../utils/index.e882b264.js";
|
|
6
6
|
import { R as ResizeableWindow } from "../Resizeable/index.8a442a8b.js";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
9
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.f0a3167b.js";
|
|
10
10
|
const WrapperDialog = styled(Dialog)(() => ({}));
|
|
11
11
|
const Container = styled("div")(({ theme }) => ({
|
|
12
12
|
display: "flex",
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.
|
|
4
|
+
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.85390177.js";
|
|
5
5
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { R as ReactJson } from "../../react-json-view.57125fcf.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
10
|
+
import { u as useModal } from "../../hooks/useModal/index.4454145e.js";
|
|
11
11
|
import { I as Icon } from "../Icon/index.f6e8d810.js";
|
|
12
12
|
import "../../react-draggable.0eef011c.js";
|
|
13
|
-
import "../ModalDialog/index.
|
|
13
|
+
import "../ModalDialog/index.5a307e29.js";
|
|
14
14
|
import "../Resizeable/index.8a442a8b.js";
|
|
15
|
-
import "../CommonActions/components/Actions/index.
|
|
15
|
+
import "../CommonActions/components/Actions/index.f0a3167b.js";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
17
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
18
18
|
import "react-hook-form";
|
|
19
|
-
import "../areas/components/index.
|
|
20
|
-
import "../areas/components/AreasAdmin/index.
|
|
19
|
+
import "../areas/components/index.6d863764.js";
|
|
20
|
+
import "../areas/components/AreasAdmin/index.dbab59f1.js";
|
|
21
21
|
import "../mui_extended/IconButton/index.1318a283.js";
|
|
22
22
|
import "zustand";
|
|
23
|
-
import "../areas/contexts/AreasContext/index.
|
|
23
|
+
import "../areas/contexts/AreasContext/index.7406c20f.js";
|
|
24
24
|
import "zustand/shallow";
|
|
25
|
-
import "../areas/components/AreasContainer/index.
|
|
25
|
+
import "../areas/components/AreasContainer/index.f3f921b9.js";
|
|
26
26
|
import "react-grid-layout/css/styles.css";
|
|
27
27
|
import "../../react-resizable.bb58c8fc.js";
|
|
28
|
-
import "../areas/contexts/index.
|
|
28
|
+
import "../areas/contexts/index.e80d8f0f.js";
|
|
29
29
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
30
30
|
import "@mui/lab";
|
|
31
|
-
import "../modal/WindowConfirm.
|
|
32
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
33
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
31
|
+
import "../modal/WindowConfirm.cbc7720c.js";
|
|
32
|
+
import { W as WindowBase } from "../modal/WindowBase.b5e29758.js";
|
|
33
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.cddd7472.js";
|
|
34
34
|
const Container$1 = styled("div")(() => ({
|
|
35
35
|
height: "100%",
|
|
36
36
|
width: "100%",
|
|
@@ -3,28 +3,28 @@ import { styled, Skeleton, Autocomplete, TextField } from "@mui/material";
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { I as Icon } from "../Icon/index.f6e8d810.js";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
6
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.f0a3167b.js";
|
|
7
7
|
import "@mui/material/Button";
|
|
8
8
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
9
9
|
import "react-hook-form";
|
|
10
|
-
import "../../contexts/ModalContext/index.
|
|
10
|
+
import "../../contexts/ModalContext/index.3d92d9f9.js";
|
|
11
11
|
import "../../react-draggable.0eef011c.js";
|
|
12
|
-
import "../ModalDialog/index.
|
|
12
|
+
import "../ModalDialog/index.5a307e29.js";
|
|
13
13
|
import "../Resizeable/index.8a442a8b.js";
|
|
14
14
|
import "@m4l/graphics";
|
|
15
|
-
import "../modal/WindowConfirm.
|
|
15
|
+
import "../modal/WindowConfirm.cbc7720c.js";
|
|
16
16
|
import "@mui/material/styles";
|
|
17
|
-
import "../modal/WindowBase.
|
|
18
|
-
import "../areas/components/index.
|
|
19
|
-
import "../areas/components/AreasAdmin/index.
|
|
17
|
+
import "../modal/WindowBase.b5e29758.js";
|
|
18
|
+
import "../areas/components/index.6d863764.js";
|
|
19
|
+
import "../areas/components/AreasAdmin/index.dbab59f1.js";
|
|
20
20
|
import "../mui_extended/IconButton/index.1318a283.js";
|
|
21
21
|
import "zustand";
|
|
22
|
-
import "../areas/contexts/AreasContext/index.
|
|
22
|
+
import "../areas/contexts/AreasContext/index.7406c20f.js";
|
|
23
23
|
import "zustand/shallow";
|
|
24
|
-
import "../areas/components/AreasContainer/index.
|
|
24
|
+
import "../areas/components/AreasContainer/index.f3f921b9.js";
|
|
25
25
|
import "react-grid-layout/css/styles.css";
|
|
26
26
|
import "../../react-resizable.bb58c8fc.js";
|
|
27
|
-
import "../areas/contexts/index.
|
|
27
|
+
import "../areas/contexts/index.e80d8f0f.js";
|
|
28
28
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
29
29
|
import "@mui/lab";
|
|
30
30
|
const ContainerPeriod = styled("div")(({
|
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { DynamicMFParameters } from '../../contexts/DynamicMFParmsContext/types';
|
|
3
3
|
import type { Layout } from 'react-grid-layout';
|
|
4
4
|
import { WindowStore } from '../../contexts/WindowContext/store';
|
|
5
|
-
import {
|
|
5
|
+
import { AreaStore } from '../../contexts/AreaContext/store';
|
|
6
6
|
export declare type WinType = 'microfrontend' | 'component';
|
|
7
7
|
export declare type EmergeType = 'layout' | 'popup' | 'modal';
|
|
8
8
|
export interface MFBaseProps {
|
|
@@ -87,11 +87,13 @@ export declare type ModalProps = ModalMFProps | ModalComponentProps;
|
|
|
87
87
|
export declare type NewModalProps = Omit<ModalMFProps, 'windowId' | 'onClose'> | Omit<ModalComponentProps, 'windowId' | 'onClose'>;
|
|
88
88
|
export declare type WindowProps = LayoutProps | PopUpProps | ModalProps;
|
|
89
89
|
export declare type NewWindowProps = NewLayoutProps | NewPopUpProps | NewModalProps;
|
|
90
|
+
export declare type AddWindow = (newWindow: NewWindowProps) => string;
|
|
90
91
|
export interface AreaType {
|
|
91
92
|
id: string;
|
|
92
93
|
name: string;
|
|
93
94
|
loadWindows?: boolean;
|
|
94
|
-
|
|
95
|
+
store?: AreaStore;
|
|
96
|
+
linked?: boolean;
|
|
95
97
|
}
|
|
96
98
|
export interface AreaProps extends Omit<AreaType, 'url_icon' | 'name'> {
|
|
97
99
|
active: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { I as IconButton } from "../../../mui_extended/IconButton/index.1318a283.js";
|
|
3
|
-
import { u as useAreasStore } from "../../hooks/useArea/index.
|
|
3
|
+
import { u as useAreasStore } from "../../hooks/useArea/index.7bdbbb79.js";
|
|
4
4
|
import { useEnvironment } from "@m4l/core";
|
|
5
5
|
import "@mui/material";
|
|
6
6
|
import "../../../Icon/index.f6e8d810.js";
|
|
@@ -63,7 +63,6 @@ const AreaChip = (props) => {
|
|
|
63
63
|
} = useAreasStore((state) => state.actions);
|
|
64
64
|
const onClickDeleteArea = (e) => {
|
|
65
65
|
e.stopPropagation();
|
|
66
|
-
console.log("onClickDeleteArea", e.cancelable, e.eventPhase);
|
|
67
66
|
deleteArea(areaId);
|
|
68
67
|
};
|
|
69
68
|
return /* @__PURE__ */ jsxs(WrapperAreaChips, {
|
|
@@ -102,7 +101,6 @@ function AreasAdmin() {
|
|
|
102
101
|
if (status !== "loaded") {
|
|
103
102
|
return null;
|
|
104
103
|
}
|
|
105
|
-
console.log("Render AreasAdmin", currentArea, status);
|
|
106
104
|
return /* @__PURE__ */ jsxs(WrapperAreasAdmin, {
|
|
107
105
|
id: "ContainerTabs",
|
|
108
106
|
children: [areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { A as Area } from "../index.
|
|
2
|
+
import { A as Area } from "../index.6d863764.js";
|
|
3
3
|
import "react-grid-layout/css/styles.css";
|
|
4
4
|
import "../../../../react-resizable.bb58c8fc.js";
|
|
5
|
-
import { u as useAreasStore } from "../../hooks/useArea/index.
|
|
6
|
-
import { useEffect } from "react";
|
|
5
|
+
import { u as useAreasStore } from "../../hooks/useArea/index.7bdbbb79.js";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
const ContainerAreas = styled("div")(({
|
|
9
8
|
theme
|
|
@@ -19,13 +18,9 @@ function AreasContainer() {
|
|
|
19
18
|
const areas = useAreasStore((state) => state.areas);
|
|
20
19
|
const currentArea = useAreasStore((state) => state.currentArea);
|
|
21
20
|
const status = useAreasStore((state) => state.status);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
console.log("useEffect AreasContainer");
|
|
24
|
-
}, []);
|
|
25
21
|
if (status !== "loaded") {
|
|
26
22
|
return null;
|
|
27
23
|
}
|
|
28
|
-
console.log("Render AreasContainer", status, currentArea, areas);
|
|
29
24
|
return /* @__PURE__ */ jsx(ContainerAreas, {
|
|
30
25
|
id: "ContainerAreas",
|
|
31
26
|
children: areas.map((area) => {
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { WidthProvider, Responsive } from "react-grid-layout";
|
|
2
|
+
import { a as useAreaStore } from "../../hooks/useArea/index.7bdbbb79.js";
|
|
3
|
+
import { styled } from "@mui/material/styles";
|
|
4
|
+
import { M as MemonizedWindowPopUp } from "../WindowPopUp/index.90eb0348.js";
|
|
5
|
+
import { M as MemonizedWindow, a as MemonizedWindowModal } from "../Window/index.e34225ae.js";
|
|
6
|
+
import "react-grid-layout/css/styles.css";
|
|
7
|
+
import "../../../../react-resizable.bb58c8fc.js";
|
|
8
|
+
import { shallow } from "zustand/shallow";
|
|
9
|
+
import { R as ROW_HEIGTH_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT } from "../../contexts/AreaContext/index.f25f7180.js";
|
|
10
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
11
|
+
const WrapperPoups = styled("div")(() => ({
|
|
12
|
+
zIndex: 1,
|
|
13
|
+
" .react-draggable": {
|
|
14
|
+
position: "absolute"
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
const WrapperGridLayout = styled("div", {
|
|
18
|
+
shouldForwardProp: (props) => props !== "isDesktop"
|
|
19
|
+
})(({
|
|
20
|
+
isDesktop
|
|
21
|
+
}) => ({
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: isDesktop ? "row" : "column",
|
|
24
|
+
flexGrow: 1,
|
|
25
|
+
overflowY: "auto",
|
|
26
|
+
height: isDesktop ? "100%" : "unset",
|
|
27
|
+
width: isDesktop ? "unset" : "100%",
|
|
28
|
+
border: "1px dashed black"
|
|
29
|
+
}));
|
|
30
|
+
const ResponsiveGridLayout = WidthProvider(Responsive);
|
|
31
|
+
const GridLayout = () => {
|
|
32
|
+
const areaId = useAreaStore((state) => state.id);
|
|
33
|
+
const isDesktop = useAreaStore((state) => state.isDesktop);
|
|
34
|
+
const gridLayouts = useAreaStore((state) => state.gridLayouts, shallow);
|
|
35
|
+
const hashWindowsPopups = useAreaStore((state) => state.hashWindowsPopups, shallow);
|
|
36
|
+
const hashWindowsLayouts = useAreaStore((state) => state.hashWindowsLayouts, shallow);
|
|
37
|
+
const breakPointsLayouts = useAreaStore((state) => state.breakpointsLayouts, shallow);
|
|
38
|
+
const windowsPopUps = useAreaStore((state) => state.windowsPopUps, shallow);
|
|
39
|
+
const windowModal = useAreaStore((state) => state.windowModal, shallow);
|
|
40
|
+
const breakpoints = useAreaStore((state) => state.breakpoints, shallow);
|
|
41
|
+
const cols = useAreaStore((state) => state.cols, shallow);
|
|
42
|
+
const {
|
|
43
|
+
onBreakpointsLayoutsChange
|
|
44
|
+
} = useAreaStore((state) => state.actions);
|
|
45
|
+
function onBreakpointChange(_newBreakpoint, _newCols) {
|
|
46
|
+
}
|
|
47
|
+
return /* @__PURE__ */ jsxs(WrapperGridLayout, {
|
|
48
|
+
isDesktop,
|
|
49
|
+
className: `M4L_WrapperGridLayout_${isDesktop ? "desktop" : "mobile"} ${`M4L_WrapperGridLayout_${areaId}`}`,
|
|
50
|
+
children: [/* @__PURE__ */ jsxs(ResponsiveGridLayout, {
|
|
51
|
+
className: `M4L_GridLayout M4L_GridLayout_${areaId}`,
|
|
52
|
+
layouts: breakPointsLayouts,
|
|
53
|
+
onLayoutChange: onBreakpointsLayoutsChange,
|
|
54
|
+
onBreakpointChange,
|
|
55
|
+
breakpoints,
|
|
56
|
+
cols,
|
|
57
|
+
rowHeight: ROW_HEIGTH_GRIDLAYOUT,
|
|
58
|
+
margin: [5, 5],
|
|
59
|
+
containerPadding: [CONTAINER_PADDING_GRIDLAYOUT, CONTAINER_PADDING_GRIDLAYOUT],
|
|
60
|
+
draggableHandle: ".m4l_draggable_handle",
|
|
61
|
+
compactType: "horizontal",
|
|
62
|
+
children: [/* @__PURE__ */ jsx(WrapperPoups, {
|
|
63
|
+
id: "WrapperPoups",
|
|
64
|
+
"data-grid": {
|
|
65
|
+
i: "none",
|
|
66
|
+
x: 0,
|
|
67
|
+
y: 0,
|
|
68
|
+
w: 0,
|
|
69
|
+
h: 0,
|
|
70
|
+
maxW: 0,
|
|
71
|
+
maxH: 0,
|
|
72
|
+
minW: 0,
|
|
73
|
+
minH: 0,
|
|
74
|
+
static: true,
|
|
75
|
+
isDraggable: false,
|
|
76
|
+
isResizable: false
|
|
77
|
+
},
|
|
78
|
+
children: windowsPopUps.map((wp) => {
|
|
79
|
+
if (hashWindowsPopups[wp]) {
|
|
80
|
+
return /* @__PURE__ */ jsx(MemonizedWindowPopUp, {
|
|
81
|
+
...hashWindowsPopups[wp]
|
|
82
|
+
}, hashWindowsPopups[wp].windowId);
|
|
83
|
+
}
|
|
84
|
+
return null;
|
|
85
|
+
})
|
|
86
|
+
}, "none"), gridLayouts.map((l) => {
|
|
87
|
+
if (hashWindowsLayouts[l.i]) {
|
|
88
|
+
return /* @__PURE__ */ jsx("div", {
|
|
89
|
+
children: /* @__PURE__ */ jsx(MemonizedWindow, {
|
|
90
|
+
...hashWindowsLayouts[l.i]
|
|
91
|
+
})
|
|
92
|
+
}, l.i);
|
|
93
|
+
}
|
|
94
|
+
return null;
|
|
95
|
+
})]
|
|
96
|
+
}), windowModal && /* @__PURE__ */ jsx(MemonizedWindowModal, {
|
|
97
|
+
...windowModal
|
|
98
|
+
})]
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
GridLayout as G
|
|
103
|
+
};
|