@m4l/components 0.1.51 → 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.27e301c5.js → index.bd0d16d6.js} +10 -11
- package/components/CommonActions/components/Actions/{index.c06ea173.js → index.f0a3167b.js} +9 -9
- package/components/DataGrid/{index.eb1bdc97.js → index.85390177.js} +10 -10
- package/components/DynamicFilter/{index.17731fda.js → index.cddd7472.js} +13 -13
- package/components/ModalDialog/{index.de10969f.js → index.5a307e29.js} +2 -2
- package/components/ObjectLogs/{index.338656c6.js → index.1315af37.js} +12 -12
- package/components/Period/{index.89daad51.js → index.85fe764a.js} +10 -10
- package/components/areas/components/Area/subcomponents/InnerForHooks/index.d.ts +2 -0
- package/components/areas/components/AreasAdmin/{index.3e586e9b.js → index.dbab59f1.js} +1 -3
- package/components/areas/components/AreasContainer/{index.15e4628d.js → index.f3f921b9.js} +2 -7
- package/components/areas/components/GridLayout/{index.f38f5b74.js → index.9953146d.js} +32 -30
- package/components/areas/components/Window/{index.d1a59be4.js → index.e34225ae.js} +112 -36
- package/components/areas/components/Window/subcomponents/InnerForHooks/index.d.ts +2 -2
- package/components/areas/components/WindowPopUp/{index.90566fca.js → index.90eb0348.js} +18 -19
- package/components/areas/components/WindowsPanel/index.d.ts +2 -0
- package/components/areas/components/{index.29809e82.js → index.6d863764.js} +20 -15
- package/components/areas/contexts/AreaContext/helper.d.ts +27 -0
- package/components/areas/contexts/AreaContext/{index.c787aee6.js → index.f25f7180.js} +151 -23
- package/components/areas/contexts/AreaContext/store.d.ts +17 -1
- package/components/areas/contexts/AreasContext/{index.4f938baa.js → index.7406c20f.js} +1 -5
- package/components/areas/contexts/{index.4cfa6ea9.js → index.e80d8f0f.js} +1 -13
- package/components/areas/hooks/{index.b15baf14.js → index.0fd57f88.js} +1 -1
- package/components/areas/hooks/useArea/{index.575c2abe.js → index.7bdbbb79.js} +2 -2
- package/components/areas/{index.8c6f9e65.js → index.6f09d168.js} +5 -5
- package/components/hook-form/RHFPeriod/{index.47cf646d.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/{WindowBase.ed279350.js → WindowBase.b5e29758.js} +1 -1
- package/components/modal/{WindowConfirm.72de5ce8.js → WindowConfirm.cbc7720c.js} +9 -9
- package/components/modal/{index.7197145d.js → index.f6de895f.js} +10 -10
- package/contexts/ModalContext/{index.e94f0e72.js → index.3d92d9f9.js} +1 -1
- package/hooks/useModal/{index.56c03c00.js → index.4454145e.js} +1 -1
- package/index.js +29 -60
- package/package.json +1 -1
- package/components/CmpDisenoTest/index.d.ts +0 -4
- package/components/CmpDisenoTest/types.d.ts +0 -20
package/components/CommonActions/components/ActionFormCancel/{index.27e301c5.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")(({
|
|
@@ -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) => {
|
|
@@ -1,61 +1,64 @@
|
|
|
1
1
|
import { WidthProvider, Responsive } from "react-grid-layout";
|
|
2
|
-
import { a as useAreaStore } from "../../hooks/useArea/index.
|
|
2
|
+
import { a as useAreaStore } from "../../hooks/useArea/index.7bdbbb79.js";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { M as MemonizedWindowPopUp } from "../WindowPopUp/index.
|
|
5
|
-
import { M as MemonizedWindow,
|
|
4
|
+
import { M as MemonizedWindowPopUp } from "../WindowPopUp/index.90eb0348.js";
|
|
5
|
+
import { M as MemonizedWindow, a as MemonizedWindowModal } from "../Window/index.e34225ae.js";
|
|
6
6
|
import "react-grid-layout/css/styles.css";
|
|
7
7
|
import "../../../../react-resizable.bb58c8fc.js";
|
|
8
8
|
import { shallow } from "zustand/shallow";
|
|
9
|
-
import {
|
|
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";
|
|
10
11
|
const WrapperPoups = styled("div")(() => ({
|
|
11
12
|
zIndex: 1,
|
|
12
13
|
" .react-draggable": {
|
|
13
14
|
position: "absolute"
|
|
14
15
|
}
|
|
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
|
+
}));
|
|
16
30
|
const ResponsiveGridLayout = WidthProvider(Responsive);
|
|
17
31
|
const GridLayout = () => {
|
|
18
32
|
const areaId = useAreaStore((state) => state.id);
|
|
33
|
+
const isDesktop = useAreaStore((state) => state.isDesktop);
|
|
19
34
|
const gridLayouts = useAreaStore((state) => state.gridLayouts, shallow);
|
|
20
35
|
const hashWindowsPopups = useAreaStore((state) => state.hashWindowsPopups, shallow);
|
|
21
36
|
const hashWindowsLayouts = useAreaStore((state) => state.hashWindowsLayouts, shallow);
|
|
22
37
|
const breakPointsLayouts = useAreaStore((state) => state.breakpointsLayouts, shallow);
|
|
23
38
|
const windowsPopUps = useAreaStore((state) => state.windowsPopUps, shallow);
|
|
24
39
|
const windowModal = useAreaStore((state) => state.windowModal, shallow);
|
|
40
|
+
const breakpoints = useAreaStore((state) => state.breakpoints, shallow);
|
|
41
|
+
const cols = useAreaStore((state) => state.cols, shallow);
|
|
25
42
|
const {
|
|
26
|
-
onBreakpointsLayoutsChange
|
|
43
|
+
onBreakpointsLayoutsChange
|
|
27
44
|
} = useAreaStore((state) => state.actions);
|
|
28
45
|
function onBreakpointChange(_newBreakpoint, _newCols) {
|
|
29
46
|
}
|
|
30
|
-
|
|
31
|
-
|
|
47
|
+
return /* @__PURE__ */ jsxs(WrapperGridLayout, {
|
|
48
|
+
isDesktop,
|
|
49
|
+
className: `M4L_WrapperGridLayout_${isDesktop ? "desktop" : "mobile"} ${`M4L_WrapperGridLayout_${areaId}`}`,
|
|
32
50
|
children: [/* @__PURE__ */ jsxs(ResponsiveGridLayout, {
|
|
33
51
|
className: `M4L_GridLayout M4L_GridLayout_${areaId}`,
|
|
34
|
-
|
|
52
|
+
layouts: breakPointsLayouts,
|
|
53
|
+
onLayoutChange: onBreakpointsLayoutsChange,
|
|
35
54
|
onBreakpointChange,
|
|
36
|
-
breakpoints
|
|
37
|
-
|
|
38
|
-
|
|
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,
|
|
55
|
+
breakpoints,
|
|
56
|
+
cols,
|
|
57
|
+
rowHeight: ROW_HEIGTH_GRIDLAYOUT,
|
|
51
58
|
margin: [5, 5],
|
|
52
|
-
containerPadding: [
|
|
59
|
+
containerPadding: [CONTAINER_PADDING_GRIDLAYOUT, CONTAINER_PADDING_GRIDLAYOUT],
|
|
53
60
|
draggableHandle: ".m4l_draggable_handle",
|
|
54
61
|
compactType: "horizontal",
|
|
55
|
-
layouts: breakPointsLayouts,
|
|
56
|
-
onResizeStart: (item) => {
|
|
57
|
-
console.log("onResizestart", item);
|
|
58
|
-
},
|
|
59
62
|
children: [/* @__PURE__ */ jsx(WrapperPoups, {
|
|
60
63
|
id: "WrapperPoups",
|
|
61
64
|
"data-grid": {
|
|
@@ -83,7 +86,6 @@ const GridLayout = () => {
|
|
|
83
86
|
}, "none"), gridLayouts.map((l) => {
|
|
84
87
|
if (hashWindowsLayouts[l.i]) {
|
|
85
88
|
return /* @__PURE__ */ jsx("div", {
|
|
86
|
-
"data-grid": l,
|
|
87
89
|
children: /* @__PURE__ */ jsx(MemonizedWindow, {
|
|
88
90
|
...hashWindowsLayouts[l.i]
|
|
89
91
|
})
|
|
@@ -91,7 +93,7 @@ const GridLayout = () => {
|
|
|
91
93
|
}
|
|
92
94
|
return null;
|
|
93
95
|
})]
|
|
94
|
-
}), windowModal && /* @__PURE__ */ jsx(
|
|
96
|
+
}), windowModal && /* @__PURE__ */ jsx(MemonizedWindowModal, {
|
|
95
97
|
...windowModal
|
|
96
98
|
})]
|
|
97
99
|
});
|