@m4l/components 0.1.50 → 0.1.51
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.27e301c5.js} +10 -10
- package/components/CommonActions/components/Actions/{index.274f0ce8.js → index.c06ea173.js} +9 -9
- package/components/DataGrid/{index.01df4f26.js → index.eb1bdc97.js} +10 -10
- package/components/DynamicFilter/{index.c1022a6f.js → index.17731fda.js} +12 -12
- package/components/ModalDialog/{index.1e2f7995.js → index.de10969f.js} +2 -2
- package/components/ObjectLogs/{index.820d75ac.js → index.338656c6.js} +12 -12
- package/components/Period/{index.514252d6.js → index.89daad51.js} +10 -10
- package/components/areas/components/Area/types.d.ts +4 -2
- package/components/areas/components/AreasAdmin/{index.c6ccc79c.js → index.3e586e9b.js} +1 -1
- package/components/areas/components/AreasContainer/{index.a4393459.js → index.15e4628d.js} +2 -2
- package/components/areas/components/GridLayout/index.f38f5b74.js +101 -0
- package/components/areas/components/Window/{index.ac629c20.js → index.d1a59be4.js} +136 -25
- package/components/areas/components/Window/subcomponents/InnerForHooks/index.d.ts +2 -2
- package/components/areas/components/WindowModal/index.d.ts +4 -0
- package/components/areas/components/WindowPopUp/{index.ba674a09.js → index.90566fca.js} +17 -17
- package/components/areas/components/{index.3c88ce04.js → index.29809e82.js} +17 -17
- package/components/areas/contexts/AreaContext/{index.282b9a30.js → index.c787aee6.js} +34 -47
- package/components/areas/contexts/AreaContext/index.d.ts +18 -4
- package/components/areas/contexts/AreaContext/store.d.ts +6 -2
- package/components/areas/contexts/AreasContext/{index.cbfa4a53.js → index.4f938baa.js} +7 -10
- package/components/areas/contexts/AreasContext/store.d.ts +2 -2
- package/components/areas/contexts/{index.ea2185f5.js → index.4cfa6ea9.js} +10 -3
- package/components/areas/hooks/{index.98cf18fc.js → index.b15baf14.js} +1 -1
- package/components/areas/hooks/useArea/{index.868089ed.js → index.575c2abe.js} +8 -8
- package/components/areas/hooks/useArea/index.d.ts +9 -1
- package/components/areas/{index.d1ebea1b.js → index.8c6f9e65.js} +5 -5
- package/components/hook-form/RHFPeriod/{index.72f32f9b.js → index.47cf646d.js} +1 -1
- package/components/modal/ModalDialog/types.d.ts +2 -1
- package/components/modal/{WindowBase.9f5db87e.js → WindowBase.ed279350.js} +1 -1
- package/components/modal/{WindowConfirm.d5026cb4.js → WindowConfirm.72de5ce8.js} +9 -9
- package/components/modal/{index.a568e1f0.js → index.7197145d.js} +10 -10
- package/contexts/ModalContext/{index.6a6bf90d.js → index.e94f0e72.js} +1 -1
- package/hooks/useModal/{index.2097260d.js → index.56c03c00.js} +1 -1
- package/index.js +24 -24
- package/package.json +5 -3
- 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/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.27e301c5.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.56c03c00.js";
|
|
7
7
|
import "../../../../react-draggable.0eef011c.js";
|
|
8
|
-
import "../../../ModalDialog/index.
|
|
8
|
+
import "../../../ModalDialog/index.de10969f.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.72de5ce8.js";
|
|
13
|
+
import "../../../modal/WindowBase.ed279350.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.29809e82.js";
|
|
17
|
+
import "../../../areas/components/AreasAdmin/index.3e586e9b.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.4f938baa.js";
|
|
21
21
|
import "zustand/shallow";
|
|
22
|
-
import "../../../areas/components/AreasContainer/index.
|
|
22
|
+
import "../../../areas/components/AreasContainer/index.15e4628d.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.4cfa6ea9.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.b15baf14.js";
|
|
28
28
|
function ActionFormCancel() {
|
|
29
29
|
const {
|
|
30
30
|
getLabel
|
|
@@ -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.e94f0e72.js";
|
|
10
10
|
import "../../../../react-draggable.0eef011c.js";
|
|
11
|
-
import "../../../ModalDialog/index.
|
|
11
|
+
import "../../../ModalDialog/index.de10969f.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.72de5ce8.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.ed279350.js";
|
|
18
|
+
import "../../../areas/components/index.29809e82.js";
|
|
19
|
+
import "../../../areas/components/AreasAdmin/index.3e586e9b.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.4f938baa.js";
|
|
23
23
|
import "zustand/shallow";
|
|
24
|
-
import "../../../areas/components/AreasContainer/index.
|
|
24
|
+
import "../../../areas/components/AreasContainer/index.15e4628d.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.4cfa6ea9.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.56c03c00.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.de10969f.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.c06ea173.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.29809e82.js";
|
|
24
|
+
import "../areas/components/AreasAdmin/index.3e586e9b.js";
|
|
25
25
|
import "zustand";
|
|
26
|
-
import "../areas/contexts/AreasContext/index.
|
|
26
|
+
import "../areas/contexts/AreasContext/index.4f938baa.js";
|
|
27
27
|
import "zustand/shallow";
|
|
28
|
-
import "../areas/components/AreasContainer/index.
|
|
28
|
+
import "../areas/components/AreasContainer/index.15e4628d.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.4cfa6ea9.js";
|
|
32
32
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
33
33
|
import "@mui/lab";
|
|
34
|
-
import "../modal/WindowConfirm.
|
|
34
|
+
import "../modal/WindowConfirm.72de5ce8.js";
|
|
35
35
|
import "../Icon/index.f6e8d810.js";
|
|
36
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
36
|
+
import { W as WindowBase } from "../modal/WindowBase.ed279350.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";
|
|
@@ -28,24 +28,24 @@ 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
30
|
import { R as RHFTextField } from "../hook-form/RHFTextField/index.57f138f7.js";
|
|
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.
|
|
31
|
+
import "../hook-form/RHFPeriod/index.47cf646d.js";
|
|
32
|
+
import "../Period/index.89daad51.js";
|
|
33
|
+
import { A as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.c06ea173.js";
|
|
34
|
+
import "../../contexts/ModalContext/index.e94f0e72.js";
|
|
35
35
|
import "../../react-draggable.0eef011c.js";
|
|
36
|
-
import "../ModalDialog/index.
|
|
36
|
+
import "../ModalDialog/index.de10969f.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.72de5ce8.js";
|
|
39
|
+
import "../modal/WindowBase.ed279350.js";
|
|
40
|
+
import "../areas/components/index.29809e82.js";
|
|
41
|
+
import "../areas/components/AreasAdmin/index.3e586e9b.js";
|
|
42
42
|
import "zustand";
|
|
43
|
-
import "../areas/contexts/AreasContext/index.
|
|
43
|
+
import "../areas/contexts/AreasContext/index.4f938baa.js";
|
|
44
44
|
import "zustand/shallow";
|
|
45
|
-
import "../areas/components/AreasContainer/index.
|
|
45
|
+
import "../areas/components/AreasContainer/index.15e4628d.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.4cfa6ea9.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.56c03c00.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.c06ea173.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.eb1bdc97.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.56c03c00.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.de10969f.js";
|
|
14
14
|
import "../Resizeable/index.8a442a8b.js";
|
|
15
|
-
import "../CommonActions/components/Actions/index.
|
|
15
|
+
import "../CommonActions/components/Actions/index.c06ea173.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.29809e82.js";
|
|
20
|
+
import "../areas/components/AreasAdmin/index.3e586e9b.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.4f938baa.js";
|
|
24
24
|
import "zustand/shallow";
|
|
25
|
-
import "../areas/components/AreasContainer/index.
|
|
25
|
+
import "../areas/components/AreasContainer/index.15e4628d.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.4cfa6ea9.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.72de5ce8.js";
|
|
32
|
+
import { W as WindowBase } from "../modal/WindowBase.ed279350.js";
|
|
33
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.17731fda.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.c06ea173.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.e94f0e72.js";
|
|
11
11
|
import "../../react-draggable.0eef011c.js";
|
|
12
|
-
import "../ModalDialog/index.
|
|
12
|
+
import "../ModalDialog/index.de10969f.js";
|
|
13
13
|
import "../Resizeable/index.8a442a8b.js";
|
|
14
14
|
import "@m4l/graphics";
|
|
15
|
-
import "../modal/WindowConfirm.
|
|
15
|
+
import "../modal/WindowConfirm.72de5ce8.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.ed279350.js";
|
|
18
|
+
import "../areas/components/index.29809e82.js";
|
|
19
|
+
import "../areas/components/AreasAdmin/index.3e586e9b.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.4f938baa.js";
|
|
23
23
|
import "zustand/shallow";
|
|
24
|
-
import "../areas/components/AreasContainer/index.
|
|
24
|
+
import "../areas/components/AreasContainer/index.15e4628d.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.4cfa6ea9.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.575c2abe.js";
|
|
4
4
|
import { useEnvironment } from "@m4l/core";
|
|
5
5
|
import "@mui/material";
|
|
6
6
|
import "../../../Icon/index.f6e8d810.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { A as Area } from "../index.
|
|
2
|
+
import { A as Area } from "../index.29809e82.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.
|
|
5
|
+
import { u as useAreasStore } from "../../hooks/useArea/index.575c2abe.js";
|
|
6
6
|
import { useEffect } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
const ContainerAreas = styled("div")(({
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { WidthProvider, Responsive } from "react-grid-layout";
|
|
2
|
+
import { a as useAreaStore } from "../../hooks/useArea/index.575c2abe.js";
|
|
3
|
+
import { styled } from "@mui/material/styles";
|
|
4
|
+
import { M as MemonizedWindowPopUp } from "../WindowPopUp/index.90566fca.js";
|
|
5
|
+
import { M as MemonizedWindow, W as WindowModal } from "../Window/index.d1a59be4.js";
|
|
6
|
+
import "react-grid-layout/css/styles.css";
|
|
7
|
+
import "../../../../react-resizable.bb58c8fc.js";
|
|
8
|
+
import { shallow } from "zustand/shallow";
|
|
9
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
10
|
+
const WrapperPoups = styled("div")(() => ({
|
|
11
|
+
zIndex: 1,
|
|
12
|
+
" .react-draggable": {
|
|
13
|
+
position: "absolute"
|
|
14
|
+
}
|
|
15
|
+
}));
|
|
16
|
+
const ResponsiveGridLayout = WidthProvider(Responsive);
|
|
17
|
+
const GridLayout = () => {
|
|
18
|
+
const areaId = useAreaStore((state) => state.id);
|
|
19
|
+
const gridLayouts = useAreaStore((state) => state.gridLayouts, shallow);
|
|
20
|
+
const hashWindowsPopups = useAreaStore((state) => state.hashWindowsPopups, shallow);
|
|
21
|
+
const hashWindowsLayouts = useAreaStore((state) => state.hashWindowsLayouts, shallow);
|
|
22
|
+
const breakPointsLayouts = useAreaStore((state) => state.breakpointsLayouts, shallow);
|
|
23
|
+
const windowsPopUps = useAreaStore((state) => state.windowsPopUps, shallow);
|
|
24
|
+
const windowModal = useAreaStore((state) => state.windowModal, shallow);
|
|
25
|
+
const {
|
|
26
|
+
onBreakpointsLayoutsChange: onBreakPointsLayoutsChange
|
|
27
|
+
} = useAreaStore((state) => state.actions);
|
|
28
|
+
function onBreakpointChange(_newBreakpoint, _newCols) {
|
|
29
|
+
}
|
|
30
|
+
console.log("Render GridLayout windowModal", windowModal);
|
|
31
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
32
|
+
children: [/* @__PURE__ */ jsxs(ResponsiveGridLayout, {
|
|
33
|
+
className: `M4L_GridLayout M4L_GridLayout_${areaId}`,
|
|
34
|
+
onLayoutChange: onBreakPointsLayoutsChange,
|
|
35
|
+
onBreakpointChange,
|
|
36
|
+
breakpoints: {
|
|
37
|
+
lg: 1200,
|
|
38
|
+
md: 996,
|
|
39
|
+
sm: 768,
|
|
40
|
+
xs: 480,
|
|
41
|
+
xxs: 0
|
|
42
|
+
},
|
|
43
|
+
cols: {
|
|
44
|
+
lg: 24,
|
|
45
|
+
md: 20,
|
|
46
|
+
sm: 12,
|
|
47
|
+
xs: 8,
|
|
48
|
+
xxs: 2
|
|
49
|
+
},
|
|
50
|
+
rowHeight: 100,
|
|
51
|
+
margin: [5, 5],
|
|
52
|
+
containerPadding: [3, 3],
|
|
53
|
+
draggableHandle: ".m4l_draggable_handle",
|
|
54
|
+
compactType: "horizontal",
|
|
55
|
+
layouts: breakPointsLayouts,
|
|
56
|
+
onResizeStart: (item) => {
|
|
57
|
+
console.log("onResizestart", item);
|
|
58
|
+
},
|
|
59
|
+
children: [/* @__PURE__ */ jsx(WrapperPoups, {
|
|
60
|
+
id: "WrapperPoups",
|
|
61
|
+
"data-grid": {
|
|
62
|
+
i: "none",
|
|
63
|
+
x: 0,
|
|
64
|
+
y: 0,
|
|
65
|
+
w: 0,
|
|
66
|
+
h: 0,
|
|
67
|
+
maxW: 0,
|
|
68
|
+
maxH: 0,
|
|
69
|
+
minW: 0,
|
|
70
|
+
minH: 0,
|
|
71
|
+
static: true,
|
|
72
|
+
isDraggable: false,
|
|
73
|
+
isResizable: false
|
|
74
|
+
},
|
|
75
|
+
children: windowsPopUps.map((wp) => {
|
|
76
|
+
if (hashWindowsPopups[wp]) {
|
|
77
|
+
return /* @__PURE__ */ jsx(MemonizedWindowPopUp, {
|
|
78
|
+
...hashWindowsPopups[wp]
|
|
79
|
+
}, hashWindowsPopups[wp].windowId);
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
})
|
|
83
|
+
}, "none"), gridLayouts.map((l) => {
|
|
84
|
+
if (hashWindowsLayouts[l.i]) {
|
|
85
|
+
return /* @__PURE__ */ jsx("div", {
|
|
86
|
+
"data-grid": l,
|
|
87
|
+
children: /* @__PURE__ */ jsx(MemonizedWindow, {
|
|
88
|
+
...hashWindowsLayouts[l.i]
|
|
89
|
+
})
|
|
90
|
+
}, l.i);
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
})]
|
|
94
|
+
}), windowModal && /* @__PURE__ */ jsx(WindowModal, {
|
|
95
|
+
...windowModal
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
GridLayout as G
|
|
101
|
+
};
|
|
@@ -1,38 +1,81 @@
|
|
|
1
1
|
import React__default, { useMemo, useState, useRef, useCallback, useEffect } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { I as Icon } from "../../../Icon/index.f6e8d810.js";
|
|
3
|
+
import { m } from "framer-motion";
|
|
4
|
+
import { Skeleton, Typography, styled as styled$1, Dialog, Paper } from "@mui/material";
|
|
5
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
6
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import
|
|
7
|
+
import "react-router-dom";
|
|
8
|
+
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
9
|
+
import "../../../animate/PropagateLoader/index.be5b02c3.js";
|
|
10
|
+
import "../index.29809e82.js";
|
|
11
|
+
import "../AreasAdmin/index.3e586e9b.js";
|
|
12
|
+
import { useEnvironment, useModuleSkeleton, useModuleDictionary, useNetwork, useHostTools, axiosOperation } from "@m4l/core";
|
|
13
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.1318a283.js";
|
|
14
|
+
import "zustand";
|
|
15
|
+
import "../../contexts/AreasContext/index.4f938baa.js";
|
|
5
16
|
import { shallow } from "zustand/shallow";
|
|
17
|
+
import "../AreasContainer/index.15e4628d.js";
|
|
18
|
+
import "react-grid-layout/css/styles.css";
|
|
19
|
+
import "../../../../react-resizable.bb58c8fc.js";
|
|
20
|
+
import { W as WindowToolsMFProvider, a as WindowMFProvider } from "../../contexts/index.4cfa6ea9.js";
|
|
6
21
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
7
|
-
import "../../../../contexts/ModalContext/index.6a6bf90d.js";
|
|
8
22
|
import "react-hook-form";
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { useEnvironment, useModuleSkeleton, useModuleDictionary, useNetwork, useHostTools, axiosOperation } from "@m4l/core";
|
|
14
|
-
import { Skeleton, Typography, styled as styled$1 } from "@mui/material";
|
|
15
|
-
import { useResponsiveDesktop, useHostTheme, useFormatter, useLocales, useFirstRender } from "@m4l/graphics";
|
|
16
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.1318a283.js";
|
|
17
|
-
import { I as Icon } from "../../../Icon/index.f6e8d810.js";
|
|
23
|
+
import "../../../hook-form/RHFAutocomplete/index.74add0d0.js";
|
|
24
|
+
import { I as Image } from "../../../Image/index.aa24e982.js";
|
|
25
|
+
import debounce from "lodash/debounce";
|
|
26
|
+
import "../../../hook-form/RHFCheckbox/index.ca94a050.js";
|
|
18
27
|
import "../../../mui_extended/Accordion/index.1d513477.js";
|
|
19
28
|
import "../../../mui_extended/Avatar/index.fe06afd7.js";
|
|
20
|
-
import "
|
|
29
|
+
import "@mui/material/Button";
|
|
21
30
|
import { B as Button } from "../../../mui_extended/Button/index.8406ed5b.js";
|
|
22
|
-
import { I as Image } from "../../../Image/index.aa24e982.js";
|
|
23
31
|
import "@mui/lab";
|
|
24
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.1261168c.js";
|
|
25
32
|
import "../../../mui_extended/Popover/index.58c49cc0.js";
|
|
33
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.1261168c.js";
|
|
26
34
|
import "../../../mui_extended/Pager/index.984aac44.js";
|
|
27
35
|
import "../../../mui_extended/Tab/index.e0653a0a.js";
|
|
28
36
|
import "../../../mui_extended/Typography/index.be3a279a.js";
|
|
29
|
-
import
|
|
30
|
-
import "@mui/
|
|
37
|
+
import "../../../ErrorLabel/index.78553a1e.js";
|
|
38
|
+
import "@mui/x-date-pickers";
|
|
39
|
+
import "../../../hook-form/RHFDateTime/index.7f1cbd85.js";
|
|
40
|
+
import { useResponsiveDesktop, useHostTheme, useFormatter, useLocales, useFirstRender } from "@m4l/graphics";
|
|
41
|
+
import "../../../hook-form/RHFTextField/index.57f138f7.js";
|
|
42
|
+
import "../../../hook-form/RHFPeriod/index.47cf646d.js";
|
|
43
|
+
import "../../../Period/index.89daad51.js";
|
|
44
|
+
import "../../../CommonActions/components/Actions/index.c06ea173.js";
|
|
45
|
+
import "../../../../contexts/ModalContext/index.e94f0e72.js";
|
|
46
|
+
import { c as cjs } from "../../../../react-draggable.0eef011c.js";
|
|
47
|
+
import "../../../ModalDialog/index.de10969f.js";
|
|
48
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index.8a442a8b.js";
|
|
49
|
+
import "../../../modal/WindowConfirm.72de5ce8.js";
|
|
50
|
+
import "../../../modal/WindowBase.ed279350.js";
|
|
51
|
+
import "lodash/isString";
|
|
52
|
+
import "react-dropzone";
|
|
53
|
+
import "../../../hook-form/RHFUpload/index.7fdff30f.js";
|
|
54
|
+
import "../../../DataGrid/index.eb1bdc97.js";
|
|
55
|
+
import "react-dnd";
|
|
56
|
+
import "react-dnd-html5-backend";
|
|
57
|
+
import "../../../ScrollBar/index.39eeb2de.js";
|
|
58
|
+
import "../../../DynamicFilter/index.17731fda.js";
|
|
59
|
+
import "clsx";
|
|
60
|
+
import "simplebar/dist/simplebar.min.css";
|
|
61
|
+
import "@hookform/resolvers/yup";
|
|
62
|
+
import "../../../../contexts/RHFormContext/index.828b60ad.js";
|
|
63
|
+
import "yup";
|
|
64
|
+
import "../../../../index.js";
|
|
65
|
+
import "@mui/base";
|
|
66
|
+
import "../../../LanguagePopover/index.5047b444.js";
|
|
67
|
+
import "../../../NoItemSelected/index.9636ec8a.js";
|
|
68
|
+
import "../../../ObjectLogs/index.338656c6.js";
|
|
69
|
+
import "../../../../react-json-view.57125fcf.js";
|
|
70
|
+
import "../../../PaperForm/index.0114aa9b.js";
|
|
71
|
+
import "../../../Page/index.4237c241.js";
|
|
72
|
+
import "../../../PropertyValue/index.dfcfe1ba.js";
|
|
73
|
+
import "../../../../react-splitter-layout.8b1655c8.js";
|
|
74
|
+
import "../../../SplitLayout/index.5a8355d8.js";
|
|
75
|
+
import { a as useAreaStore } from "../../hooks/useArea/index.575c2abe.js";
|
|
76
|
+
import { a as useWindow, b as useWindowStore } from "../../hooks/index.b15baf14.js";
|
|
31
77
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
32
|
-
import { m } from "framer-motion";
|
|
33
78
|
import { v as varBounce } from "../../../animate/variants/bounce.784aaaaa.js";
|
|
34
|
-
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
35
|
-
import "../../../animate/PropagateLoader/index.be5b02c3.js";
|
|
36
79
|
const WrapperWindow = styled("div", {
|
|
37
80
|
shouldForwardProp: (props) => props !== "selected"
|
|
38
81
|
})(({ theme, selected }) => ({
|
|
@@ -614,9 +657,6 @@ const InnerForHooks = (props) => {
|
|
|
614
657
|
const {
|
|
615
658
|
winType
|
|
616
659
|
} = props;
|
|
617
|
-
const areaStatus = useAreaStore((state) => state.status);
|
|
618
|
-
if (areaStatus !== "loaded")
|
|
619
|
-
return null;
|
|
620
660
|
console.log("Render InnerForHooks", props.windowId);
|
|
621
661
|
return /* @__PURE__ */ jsxs(WindowMFProvider, {
|
|
622
662
|
...props,
|
|
@@ -644,7 +684,7 @@ const Window = (props) => {
|
|
|
644
684
|
if (!selected) {
|
|
645
685
|
if (emergeType === "popup") {
|
|
646
686
|
selectWindowPopUp(props.windowId);
|
|
647
|
-
} else {
|
|
687
|
+
} else if (emergeType === "layout") {
|
|
648
688
|
selectWindowLayout(props.windowId);
|
|
649
689
|
}
|
|
650
690
|
}
|
|
@@ -660,7 +700,78 @@ const Window = (props) => {
|
|
|
660
700
|
});
|
|
661
701
|
};
|
|
662
702
|
const MemonizedWindow = React__default.memo(Window);
|
|
703
|
+
const Container = styled("div")(({ theme }) => ({
|
|
704
|
+
display: "flex",
|
|
705
|
+
flexDirection: "column",
|
|
706
|
+
height: "100%",
|
|
707
|
+
overflow: "hidden",
|
|
708
|
+
padding: theme.spacing(3)
|
|
709
|
+
}));
|
|
710
|
+
const WrapperWindowModal = styled(Dialog)(() => ({
|
|
711
|
+
height: "100%",
|
|
712
|
+
"&.m4l_selected": {
|
|
713
|
+
borderTop: "1px solid green"
|
|
714
|
+
}
|
|
715
|
+
}));
|
|
716
|
+
const DragabblePaperComponent = (props) => {
|
|
717
|
+
return /* @__PURE__ */ jsx(cjs.exports, {
|
|
718
|
+
handle: ".m4l_draggable_handle",
|
|
719
|
+
cancel: '[class*="MuiDialogContent-root"]',
|
|
720
|
+
children: /* @__PURE__ */ jsx(Paper, {
|
|
721
|
+
sx: {
|
|
722
|
+
maxHeight: "unset",
|
|
723
|
+
maxWidth: "unset"
|
|
724
|
+
},
|
|
725
|
+
...props
|
|
726
|
+
})
|
|
727
|
+
});
|
|
728
|
+
};
|
|
729
|
+
function PaperComponent(props) {
|
|
730
|
+
return /* @__PURE__ */ jsx(Paper, {
|
|
731
|
+
sx: {
|
|
732
|
+
maxHeight: "unset",
|
|
733
|
+
maxWidth: "unset",
|
|
734
|
+
height: "100%"
|
|
735
|
+
},
|
|
736
|
+
...props
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
const WindowModal = (props) => {
|
|
740
|
+
const {
|
|
741
|
+
closeWindowModal
|
|
742
|
+
} = useAreaStore((state) => state.actions);
|
|
743
|
+
const isDesktop = useResponsiveDesktop();
|
|
744
|
+
const onClose = () => {
|
|
745
|
+
closeWindowModal();
|
|
746
|
+
};
|
|
747
|
+
const contentComnponent = /* @__PURE__ */ jsx(Container, {
|
|
748
|
+
id: "Container",
|
|
749
|
+
children: /* @__PURE__ */ jsx(Window, {
|
|
750
|
+
...props,
|
|
751
|
+
onClose
|
|
752
|
+
})
|
|
753
|
+
});
|
|
754
|
+
console.log("Render WindowModal");
|
|
755
|
+
return /* @__PURE__ */ jsxs(WrapperWindowModal, {
|
|
756
|
+
open: true,
|
|
757
|
+
"aria-labelledby": "child-modal-title",
|
|
758
|
+
"aria-describedby": "child-modal-description",
|
|
759
|
+
PaperComponent: isDesktop ? DragabblePaperComponent : PaperComponent,
|
|
760
|
+
maxWidth: false,
|
|
761
|
+
fullWidth: !isDesktop,
|
|
762
|
+
fullScreen: false,
|
|
763
|
+
disableEnforceFocus: true,
|
|
764
|
+
children: [isDesktop && /* @__PURE__ */ jsx(
|
|
765
|
+
ResizeableWindow,
|
|
766
|
+
{
|
|
767
|
+
children: contentComnponent
|
|
768
|
+
}
|
|
769
|
+
), !isDesktop && contentComnponent]
|
|
770
|
+
});
|
|
771
|
+
};
|
|
772
|
+
React__default.memo(WindowModal);
|
|
663
773
|
export {
|
|
664
774
|
MemonizedWindow as M,
|
|
665
|
-
|
|
775
|
+
WindowModal as W,
|
|
776
|
+
Window as a
|
|
666
777
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WindowProps } from '../../../Area/types';
|
|
3
|
-
export declare const InnerForHooks: (props: WindowProps) => JSX.Element
|
|
4
|
-
export declare const MemonizedInnerForHooks: React.MemoExoticComponent<(props: WindowProps) => JSX.Element
|
|
3
|
+
export declare const InnerForHooks: (props: WindowProps) => JSX.Element;
|
|
4
|
+
export declare const MemonizedInnerForHooks: React.MemoExoticComponent<(props: WindowProps) => JSX.Element>;
|