@m4l/components 0.1.84 → 0.1.86
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/@types/export.d.ts +25 -4
- package/components/AccountPopover/{index.bbeb9142.js → index.09f33fee.js} +29 -30
- package/components/AppBar/{index.43f8b54f.js → index.4fac1368.js} +9 -8
- package/components/CommonActions/components/ActionCancel/{index.29517521.js → index.d995d986.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.89f1ac8e.js → index.48e066b3.js} +17 -16
- package/components/CommonActions/components/ActionFormIntro/{index.bbc35e74.js → index.cc97ed0a.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.a9420126.js → index.98eb4b3b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.e70e8779.js → index.99a8e55e.js} +15 -14
- package/components/CommonActions/index.d.ts +1 -0
- package/components/DataGrid/{index.1d0a3dec.js → index.d38e3b49.js} +8 -7
- package/components/DataGrid/subcomponents/Actions/{index.a8fc9f6a.js → index.7015aadc.js} +22 -20
- package/components/DynamicFilter/classes/types.d.ts +1 -0
- package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +6 -2
- package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +4 -0
- package/components/DynamicFilter/{index.912679cc.js → index.fddefc23.js} +44 -31
- package/components/GridLayout/{index.c55f16eb.js → index.2383aaf9.js} +69 -10
- package/components/GridLayout/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Griditem/{index.6c68811f.js → index.58168132.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.a6e33b8d.js → index.a6642437.js} +1 -1
- package/components/HelperText/{index.a47ff233.js → index.bbbe24c9.js} +9 -8
- package/components/Icon/{index.d1402200.js → index.435df215.js} +1 -1
- package/components/LanguagePopover/{index.807f5272.js → index.7d2ccfe4.js} +9 -8
- package/components/ModalDialog/{index.42e804cf.js → index.b66c43e7.js} +4 -4
- package/components/NavLink/{index.ff5a939c.js → index.abbcb9b2.js} +9 -8
- package/components/NoItemSelected/classes/constants.d.ts +1 -0
- package/components/NoItemSelected/classes/index.d.ts +6 -0
- package/components/NoItemSelected/classes/types.d.ts +6 -0
- package/components/NoItemSelected/{index.23dfc897.js → index.a2807715.js} +46 -31
- package/components/NoItemSelected/index.d.ts +2 -1
- package/components/NoItemSelected/types.d.ts +4 -0
- package/components/ObjectLogs/{index.dc02715d.js → index.ad313913.js} +22 -19
- package/components/PaperForm/{index.249c2404.js → index.ad703ab6.js} +1 -1
- package/components/Period/{index.e129cdec.js → index.32d475b8.js} +16 -15
- package/components/PropertyValue/{index.93e40532.js → index.d52295d9.js} +1 -1
- package/components/ScrollBar/classes/constants.d.ts +1 -0
- package/components/ScrollBar/classes/index.d.ts +6 -0
- package/components/ScrollBar/classes/types.d.ts +6 -0
- package/components/ScrollBar/index.65bb2930.js +121 -0
- package/components/SideBar/{index.327679a6.js → index.387a2fa1.js} +111 -50
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +5 -0
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +2 -0
- package/components/areas/components/AreasAdmin/{index.8ab71eb9.js → index.23a09c81.js} +105 -56
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +1 -1
- package/components/areas/components/AreasViewer/{index.933e506b.js → index.68eb0f6b.js} +72 -126
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/subcomponents/ResizeHandle/index.d.ts +4 -0
- package/components/areas/components/index.296bc2a4.js +31 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +3 -3
- package/components/areas/contexts/AreasContext/{index.230d1584.js → index.8af3058c.js} +91 -78
- package/components/areas/contexts/AreasContext/types.d.ts +20 -8
- package/components/areas/contexts/{index.f494e241.js → index.41c24465.js} +1 -1
- package/components/areas/hooks/useAreas/{index.b8449343.js → index.d1cf9820.js} +1 -1
- package/components/areas/{index.32db4fa7.js → index.fd46ec65.js} +13 -12
- package/components/formatters/BooleanFormatter/{index.b2f02bc4.js → index.14cfcbc7.js} +1 -1
- package/components/formatters/{index.f9ad88b4.js → index.b574dda9.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.d5afb409.js → index.60c6f592.js} +10 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.a4f00088.js → index.9a40fb06.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.9bf6edb0.js → index.da4ebb03.js} +10 -9
- package/components/hook-form/RHFDateTime/{index.a2c1ed2c.js → index.c56219ea.js} +10 -9
- package/components/hook-form/RHFPeriod/{index.b5204ce2.js → index.ee6a3d61.js} +2 -2
- package/components/hook-form/RHFTextField/{index.5a0fa776.js → index.413a74ca.js} +3 -3
- package/components/hook-form/RHFUpload/{index.b36539d6.js → index.03faa7f0.js} +10 -9
- package/components/modal/{WindowBase.37158e8d.js → WindowBase.0eea1a27.js} +27 -13
- package/components/modal/{WindowConfirm.a68aa0f1.js → WindowConfirm.6896f0aa.js} +25 -24
- package/components/modal/{index.6f281ef8.js → index.6cdf65c9.js} +17 -16
- package/components/modal/index.d.ts +1 -1
- package/components/mui_extended/Accordion/{index.46771196.js → index.d15e51bf.js} +3 -3
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -1
- package/components/mui_extended/Badge/{index.cad260fe.js → index.8c2b8b66.js} +1 -1
- package/components/mui_extended/Button/{index.40af964e.js → index.f79eb74e.js} +2 -1
- package/components/mui_extended/IconButton/{index.62aea582.js → index.d88a3f2e.js} +1 -1
- package/components/mui_extended/MenuActions/{index.2493b1b1.js → index.c53370f6.js} +7 -4
- package/components/mui_extended/MenuActions/types.d.ts +1 -0
- package/components/mui_extended/Pager/{index.a7f87c96.js → index.d6c87c44.js} +1 -1
- package/components/mui_extended/Stack/Stack.d.ts +3 -0
- package/components/mui_extended/Stack/classes/constants.d.ts +1 -0
- package/components/mui_extended/Stack/classes/index.d.ts +6 -0
- package/components/mui_extended/Stack/classes/types.d.ts +6 -0
- package/components/mui_extended/Stack/index.0e53197c.js +39 -0
- package/components/mui_extended/Stack/index.d.ts +2 -0
- package/components/mui_extended/Stack/types.d.ts +2 -0
- package/components/mui_extended/Tab/{index.756fe693.js → index.97d04d6b.js} +42 -9
- package/components/mui_extended/Tabs/Tabs.d.ts +3 -0
- package/components/mui_extended/Tabs/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tabs/classes/index.d.ts +6 -0
- package/components/mui_extended/Tabs/classes/types.d.ts +6 -0
- package/components/mui_extended/Tabs/index.d.ts +1 -0
- package/components/mui_extended/{index.ba27649e.js → index.0d5b8e73.js} +9 -8
- package/components/mui_extended/index.d.ts +2 -0
- package/contexts/ModalContext/{index.51da83de.js → index.5c908fe3.js} +1 -1
- package/contexts/RHFormContext/dictionary.d.ts +3 -0
- package/contexts/RHFormContext/{index.b9266262.js → index.ea2758ed.js} +6 -2
- package/contexts/index.d.ts +1 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/dictionary.d.ts +1 -0
- package/hooks/useFormAddEdit/index.16475afe.js +111 -0
- package/hooks/useFormAddEdit/index.d.ts +1 -0
- package/hooks/useModal/{index.7611bf21.js → index.2387ea76.js} +1 -1
- package/index.js +71 -67
- package/package.json +1 -1
- package/{vendor.1af105d6.js → vendor.7751caf6.js} +62 -62
- package/components/GridLayout/subcomponents/SizeProvider/index.bfa05dfa.js +0 -62
- package/components/ScrollBar/index.d4410cb5.js +0 -72
- package/components/areas/components/index.9e48d8ff.js +0 -30
- package/hooks/useFormAddEdit/index.15de3ba8.js +0 -49
- /package/components/GridLayout/subcomponents/{SizeProvider → WidthProvider}/index.d.ts +0 -0
- /package/components/areas/components/{AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header → AreasAdmin}/subcomponents/PanelWindowPopUp/index.d.ts +0 -0
- /package/components/areas/components/{AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header → AreasAdmin}/subcomponents/PanelWindowPopUp/types.d.ts +0 -0
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
2
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
1
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.d88a3f2e.js";
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.d1cf9820.js";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { useState, useRef, useMemo } from "react";
|
|
5
5
|
import * as Yup from "yup";
|
|
6
6
|
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
7
|
-
import "../../../mui_extended/Accordion/index.
|
|
8
|
-
import { I as Icon } from "../../../Icon/index.
|
|
7
|
+
import "../../../mui_extended/Accordion/index.d15e51bf.js";
|
|
8
|
+
import { I as Icon } from "../../../Icon/index.435df215.js";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
11
11
|
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
12
12
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
13
|
import "react-router-dom";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
15
|
+
import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.js";
|
|
16
16
|
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
17
|
-
import "../../../mui_extended/Badge/index.
|
|
17
|
+
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
18
18
|
import "../../../Image/index.c18ebf5a.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
20
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.c53370f6.js";
|
|
21
21
|
import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
22
|
-
import "../../../mui_extended/
|
|
22
|
+
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
23
|
+
import "../../../mui_extended/Tab/index.97d04d6b.js";
|
|
24
|
+
import "../../../mui_extended/Pager/index.d6c87c44.js";
|
|
23
25
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
24
|
-
import "../../../mui_extended/Tab/index.756fe693.js";
|
|
25
26
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
27
|
import { unstable_composeClasses } from "@mui/base";
|
|
27
28
|
import { g as getComponentUtilityClass } from "../../../../utils/index.c43a95f4.js";
|
|
28
29
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
29
30
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
30
31
|
import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
31
|
-
import "../../../../contexts/ModalContext/index.
|
|
32
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
32
|
+
import "../../../../contexts/ModalContext/index.5c908fe3.js";
|
|
33
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.ea2758ed.js";
|
|
33
34
|
import "react-hook-form";
|
|
34
|
-
import "../../../hook-form/RHFAutocomplete/index.
|
|
35
|
-
import "../../../HelperText/index.
|
|
35
|
+
import "../../../hook-form/RHFAutocomplete/index.60c6f592.js";
|
|
36
|
+
import "../../../HelperText/index.bbbe24c9.js";
|
|
36
37
|
import "lodash/debounce";
|
|
37
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
38
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
38
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.9a40fb06.js";
|
|
39
|
+
import "../../../hook-form/RHFCheckbox/index.da4ebb03.js";
|
|
39
40
|
import "@mui/x-date-pickers";
|
|
40
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
41
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
42
|
-
import "../../../hook-form/RHFPeriod/index.
|
|
43
|
-
import "../../../Period/index.
|
|
44
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
45
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
46
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
41
|
+
import "../../../hook-form/RHFDateTime/index.c56219ea.js";
|
|
42
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.413a74ca.js";
|
|
43
|
+
import "../../../hook-form/RHFPeriod/index.ee6a3d61.js";
|
|
44
|
+
import "../../../Period/index.32d475b8.js";
|
|
45
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.99a8e55e.js";
|
|
46
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.d995d986.js";
|
|
47
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.98eb4b3b.js";
|
|
47
48
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
48
49
|
import "../../../Resizeable/index.9a9c79a4.js";
|
|
49
|
-
import "../../../modal/index.
|
|
50
|
+
import "../../../modal/index.6cdf65c9.js";
|
|
50
51
|
import { shallow } from "zustand/shallow";
|
|
51
52
|
import { styled } from "@mui/material/styles";
|
|
52
|
-
import { S as ScrollBar } from "../../../ScrollBar/index.
|
|
53
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.65bb2930.js";
|
|
53
54
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.afb7e3d9.js";
|
|
54
55
|
import TouchRipple from "@mui/material/ButtonBase/TouchRipple";
|
|
55
|
-
import "../AreasViewer/index.
|
|
56
|
+
import "../AreasViewer/index.68eb0f6b.js";
|
|
56
57
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
57
|
-
import "../../contexts/AreasContext/index.
|
|
58
|
+
import "../../contexts/AreasContext/index.8af3058c.js";
|
|
58
59
|
import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
59
60
|
import "zustand";
|
|
60
61
|
import "lodash/isString";
|
|
61
62
|
import "react-dropzone";
|
|
62
|
-
import "../../../hook-form/RHFUpload/index.
|
|
63
|
-
import { u as useOnClickOutside } from "../../index.
|
|
63
|
+
import "../../../hook-form/RHFUpload/index.03faa7f0.js";
|
|
64
|
+
import { u as useOnClickOutside } from "../../index.fd46ec65.js";
|
|
64
65
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
65
66
|
"root",
|
|
67
|
+
"rootContent",
|
|
66
68
|
"areaChipRoot",
|
|
67
69
|
"areaChipTitle",
|
|
68
70
|
"areaChipDeleteButton",
|
|
@@ -79,6 +81,7 @@ const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
|
79
81
|
"areaChipEditButton",
|
|
80
82
|
"areasPopoverMobileOptions",
|
|
81
83
|
"areasPopoverListWindows",
|
|
84
|
+
"areasPopoverListWindowsIcon",
|
|
82
85
|
"selected",
|
|
83
86
|
"isMobile",
|
|
84
87
|
"disabled",
|
|
@@ -87,6 +90,7 @@ const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
|
87
90
|
const useAreasAdminUtilityClasses = (ownerState) => {
|
|
88
91
|
const slots = {
|
|
89
92
|
root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton", ownerState.focus && "isFocus"],
|
|
93
|
+
rootContent: ["rootContent"],
|
|
90
94
|
areaChipRoot: ["areaChipRoot"],
|
|
91
95
|
areaIconLayer: ["areaIconLayer"],
|
|
92
96
|
areaContainerChipsIcon: ["areaContainerChipsIcon"],
|
|
@@ -101,7 +105,8 @@ const useAreasAdminUtilityClasses = (ownerState) => {
|
|
|
101
105
|
areaChipEditButton: ["areaChipEditButton"],
|
|
102
106
|
areasAddButton: ["areasAddButton"],
|
|
103
107
|
areasPopoverMobileOptions: ["areasPopoverMobileOptions"],
|
|
104
|
-
areasPopoverListWindows: ["areasPopoverListWindows"]
|
|
108
|
+
areasPopoverListWindows: ["areasPopoverListWindows"],
|
|
109
|
+
areasPopoverListWindowsIcon: ["areasPopoverListWindowsIcon"]
|
|
105
110
|
};
|
|
106
111
|
return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_ADMIN_CLASS_NAME), {});
|
|
107
112
|
};
|
|
@@ -145,7 +150,7 @@ const ChipActionsMobile = (props) => {
|
|
|
145
150
|
const {
|
|
146
151
|
setFocus
|
|
147
152
|
} = useAreasStore((state) => state.areaAdminActions, shallow);
|
|
148
|
-
const listAreas = useAreasStore((state) => state.
|
|
153
|
+
const listAreas = useAreasStore((state) => state.areasIds, shallow);
|
|
149
154
|
const {
|
|
150
155
|
host_static_assets,
|
|
151
156
|
environment_assets
|
|
@@ -204,7 +209,7 @@ const AreaChip = (props) => {
|
|
|
204
209
|
setFocus
|
|
205
210
|
} = useAreasStore((state) => state.areaAdminActions);
|
|
206
211
|
const areaName = useAreasStore((state) => state.hashAreas[areaId].name, shallow);
|
|
207
|
-
const listAreas = useAreasStore((state) => state.
|
|
212
|
+
const listAreas = useAreasStore((state) => state.areasIds, shallow);
|
|
208
213
|
const [open, setOpen] = useState(false);
|
|
209
214
|
const {
|
|
210
215
|
getLabel
|
|
@@ -317,7 +322,7 @@ const AreaChip = (props) => {
|
|
|
317
322
|
validationSchema,
|
|
318
323
|
children: [/* @__PURE__ */ jsxs(EditAreaHeader, {
|
|
319
324
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
320
|
-
children: getLabel(DICCTIONARY.label_edit_area)
|
|
325
|
+
children: getLabel(getAreasDictionary(DICCTIONARY.label_edit_area))
|
|
321
326
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
322
327
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
|
|
323
328
|
size: "small",
|
|
@@ -388,7 +393,7 @@ const ChipMobile = (props) => {
|
|
|
388
393
|
setFocus
|
|
389
394
|
} = useAreasStore((state) => state.areaAdminActions);
|
|
390
395
|
const areaName = useAreasStore((state) => state.hashAreas[areaId].name, shallow);
|
|
391
|
-
const listAreas = useAreasStore((state) => state.
|
|
396
|
+
const listAreas = useAreasStore((state) => state.areasIds, shallow);
|
|
392
397
|
const [open, setOpen] = useState(false);
|
|
393
398
|
const {
|
|
394
399
|
getLabel
|
|
@@ -478,6 +483,7 @@ const ChipMobile = (props) => {
|
|
|
478
483
|
areaId,
|
|
479
484
|
handlerOpenPopoverEditArea
|
|
480
485
|
}), /* @__PURE__ */ jsx("div", {
|
|
486
|
+
role: "presentation",
|
|
481
487
|
onClick: (e) => {
|
|
482
488
|
e.stopPropagation();
|
|
483
489
|
},
|
|
@@ -508,7 +514,7 @@ const ChipMobile = (props) => {
|
|
|
508
514
|
validationSchema,
|
|
509
515
|
children: [/* @__PURE__ */ jsxs(EditAreaHeader, {
|
|
510
516
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
511
|
-
children: getLabel(DICCTIONARY.label_edit_area)
|
|
517
|
+
children: getLabel(getAreasDictionary(DICCTIONARY.label_edit_area))
|
|
512
518
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
513
519
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
|
|
514
520
|
size: "small",
|
|
@@ -543,7 +549,7 @@ const ChipMobile = (props) => {
|
|
|
543
549
|
};
|
|
544
550
|
ChipMobile.displayName = "AreaButtons";
|
|
545
551
|
const AreaChipMobile = () => {
|
|
546
|
-
const areas = useAreasStore((state) => state.
|
|
552
|
+
const areas = useAreasStore((state) => state.areasIds.map((a) => ({
|
|
547
553
|
id: a,
|
|
548
554
|
name: state.hashAreas[a].name
|
|
549
555
|
})), shallow);
|
|
@@ -628,19 +634,72 @@ const AreaChipMobile = () => {
|
|
|
628
634
|
})
|
|
629
635
|
});
|
|
630
636
|
};
|
|
637
|
+
const PanelWindowPopUp = (props) => {
|
|
638
|
+
const {
|
|
639
|
+
currentAreaId
|
|
640
|
+
} = props;
|
|
641
|
+
const {
|
|
642
|
+
host_static_assets,
|
|
643
|
+
environment_assets
|
|
644
|
+
} = useEnvironment();
|
|
645
|
+
const windowsLayouts = useAreasStore((state) => state.hashAreas[currentAreaId].layoutItemsIds.filter((li) => state.hashWindows[li].emergeType === "layout").map((lim) => {
|
|
646
|
+
const w = state.hashWindows[lim];
|
|
647
|
+
return {
|
|
648
|
+
i: w.windowId,
|
|
649
|
+
url_icon: w.url_icon,
|
|
650
|
+
title: w.title
|
|
651
|
+
};
|
|
652
|
+
}), shallow);
|
|
653
|
+
const theme = useTheme();
|
|
654
|
+
const {
|
|
655
|
+
maximizeLayout
|
|
656
|
+
} = useAreasStore((state) => state.areaActions);
|
|
657
|
+
const onTouched = (layoutId) => {
|
|
658
|
+
maximizeLayout(currentAreaId, layoutId);
|
|
659
|
+
};
|
|
660
|
+
const menuActions = windowsLayouts.map((element) => {
|
|
661
|
+
return {
|
|
662
|
+
onClick: () => onTouched(element.i),
|
|
663
|
+
label: element.title,
|
|
664
|
+
urlIcon: element.url_icon
|
|
665
|
+
};
|
|
666
|
+
});
|
|
667
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
668
|
+
children: menuActions.length > 0 ? /* @__PURE__ */ jsx(MenuActions, {
|
|
669
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.LAYERS}`,
|
|
670
|
+
arrowType: "no-arrow",
|
|
671
|
+
marginTop: "12px!important",
|
|
672
|
+
marginLeft: "14px!important",
|
|
673
|
+
anchorOrigin: {
|
|
674
|
+
vertical: "bottom",
|
|
675
|
+
horizontal: "right"
|
|
676
|
+
},
|
|
677
|
+
transformOrigin: {
|
|
678
|
+
vertical: "top",
|
|
679
|
+
horizontal: "right"
|
|
680
|
+
},
|
|
681
|
+
menuActions,
|
|
682
|
+
className: areasAdminClasses.areasPopoverListWindows,
|
|
683
|
+
iconButtonClassName: areasAdminClasses.areasPopoverListWindowsIcon,
|
|
684
|
+
menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides
|
|
685
|
+
}) : null
|
|
686
|
+
});
|
|
687
|
+
};
|
|
631
688
|
function AreasAdmin() {
|
|
632
|
-
const areas = useAreasStore((state) => state.
|
|
689
|
+
const areas = useAreasStore((state) => state.areasIds, shallow);
|
|
633
690
|
const currentArea = useAreasStore((state) => state.currentAreaId, shallow);
|
|
634
691
|
const status = useAreasStore((state) => state.ownerState.status);
|
|
635
692
|
const {
|
|
636
693
|
setFocus
|
|
637
694
|
} = useAreasStore((state) => state.areaAdminActions, shallow);
|
|
638
695
|
const classesRoot = useAreasStore((state) => state.adminClasses.root);
|
|
639
|
-
const areasLength = useAreasStore((state) => state.
|
|
696
|
+
const areasLength = useAreasStore((state) => state.areasIds.length);
|
|
640
697
|
const isDesktop = useResponsiveDesktop();
|
|
641
698
|
const {
|
|
642
699
|
addArea
|
|
643
700
|
} = useAreasStore((state) => state.areasActions, shallow);
|
|
701
|
+
const maximizedId = useAreasStore((state) => state.hashAreas[currentArea] ? state.hashAreas[currentArea].maximizedId : false, shallow);
|
|
702
|
+
console.log("currentArea test", currentArea);
|
|
644
703
|
const {
|
|
645
704
|
host_static_assets,
|
|
646
705
|
environment_assets
|
|
@@ -665,30 +724,18 @@ function AreasAdmin() {
|
|
|
665
724
|
if (status !== "loaded") {
|
|
666
725
|
return null;
|
|
667
726
|
}
|
|
668
|
-
return /* @__PURE__ */ jsx(
|
|
727
|
+
return /* @__PURE__ */ jsx(AreasAdminRoot, {
|
|
669
728
|
ref: divRefOut,
|
|
670
|
-
style: {
|
|
671
|
-
width: "100%",
|
|
672
|
-
height: "100%",
|
|
673
|
-
position: "static"
|
|
674
|
-
},
|
|
675
729
|
onMouseDown: onRippleStart,
|
|
676
730
|
onMouseUp: onRippleStop,
|
|
677
|
-
|
|
731
|
+
className: classesRoot,
|
|
732
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
678
733
|
ref: divRef,
|
|
679
|
-
className:
|
|
734
|
+
className: areasAdminClasses.rootContent,
|
|
680
735
|
onClick: () => setFocus(true),
|
|
681
|
-
children: [/* @__PURE__ */
|
|
736
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
682
737
|
className: areasAdminClasses.areaContainerChipsIcon,
|
|
683
|
-
children:
|
|
684
|
-
className: areasAdminClasses.areaIconLayer,
|
|
685
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
686
|
-
className: areasAdminClasses.areaIconLayerContent,
|
|
687
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
688
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.LAYERS}`
|
|
689
|
-
})
|
|
690
|
-
})
|
|
691
|
-
}) : null, /* @__PURE__ */ jsx("div", {
|
|
738
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
692
739
|
className: areasAdminClasses.areaContainerChips,
|
|
693
740
|
children: /* @__PURE__ */ jsx("div", {
|
|
694
741
|
className: areasAdminClasses.areaContainerContentChips,
|
|
@@ -702,12 +749,14 @@ function AreasAdmin() {
|
|
|
702
749
|
})
|
|
703
750
|
}) : /* @__PURE__ */ jsx(AreaChipMobile, {})
|
|
704
751
|
})
|
|
705
|
-
})
|
|
752
|
+
})
|
|
706
753
|
}), isDesktop ? /* @__PURE__ */ jsx(IconButton, {
|
|
707
754
|
className: areasAdminClasses.areasAddButton,
|
|
708
755
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
709
756
|
size: "small",
|
|
710
757
|
onClick: addArea
|
|
758
|
+
}) : null, !isDesktop && maximizedId ? /* @__PURE__ */ jsx(PanelWindowPopUp, {
|
|
759
|
+
currentAreaId: currentArea
|
|
711
760
|
}) : null]
|
|
712
761
|
})
|
|
713
762
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AreasViewerClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
3
|
export declare const areasViewerClasses: AreasViewerClasses;
|
|
4
|
-
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "
|
|
4
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "resizeHandle" | "windowLinearProgressBar" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowHeaderCancelHandle" | "windowContent" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
5
5
|
export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -35,7 +35,7 @@ export interface AreasViewerClasses {
|
|
|
35
35
|
windowToastyClose: string;
|
|
36
36
|
panelWindowsRoot: string;
|
|
37
37
|
panelWindowsButtonContainer: string;
|
|
38
|
-
|
|
38
|
+
resizeHandle: string;
|
|
39
39
|
selected: string;
|
|
40
40
|
selectedWindow: string;
|
|
41
41
|
colapsed: string;
|
|
@@ -13,26 +13,27 @@ import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
|
13
13
|
import { shallow } from "zustand/shallow";
|
|
14
14
|
import React__default, { useMemo, useState, useCallback, useEffect } from "react";
|
|
15
15
|
import clsx from "clsx";
|
|
16
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
16
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.d1cf9820.js";
|
|
17
17
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useNetwork, useHostTools, axiosOperation } from "@m4l/core";
|
|
18
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
19
|
-
import "../../../mui_extended/Accordion/index.
|
|
20
|
-
import { I as Icon } from "../../../Icon/index.
|
|
18
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.d88a3f2e.js";
|
|
19
|
+
import "../../../mui_extended/Accordion/index.d15e51bf.js";
|
|
20
|
+
import { I as Icon } from "../../../Icon/index.435df215.js";
|
|
21
21
|
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
22
22
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
23
23
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
24
24
|
import "react-router-dom";
|
|
25
25
|
import "@mui/material/Button";
|
|
26
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
26
|
+
import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.js";
|
|
27
27
|
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
28
|
-
import "../../../mui_extended/Badge/index.
|
|
29
|
-
import "../../../Image/index.c18ebf5a.js";
|
|
28
|
+
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
29
|
+
import { I as Image } from "../../../Image/index.c18ebf5a.js";
|
|
30
30
|
import "@mui/lab";
|
|
31
|
-
import { M as MenuActions, a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.
|
|
31
|
+
import { M as MenuActions, a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.c53370f6.js";
|
|
32
32
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
33
|
-
import "../../../mui_extended/
|
|
33
|
+
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
34
|
+
import "../../../mui_extended/Tab/index.97d04d6b.js";
|
|
35
|
+
import "../../../mui_extended/Pager/index.d6c87c44.js";
|
|
34
36
|
import { useResponsiveDesktop, useHostTheme, useFormatter, useLocales, useFirstRender } from "@m4l/graphics";
|
|
35
|
-
import "../../../mui_extended/Tab/index.756fe693.js";
|
|
36
37
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
37
38
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
38
39
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.afb7e3d9.js";
|
|
@@ -41,58 +42,57 @@ import debounce from "lodash/debounce";
|
|
|
41
42
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
42
43
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
43
44
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
44
|
-
import "../../../../contexts/ModalContext/index.
|
|
45
|
-
import "../../../../contexts/RHFormContext/index.
|
|
46
|
-
import "../../../GridLayout/subcomponents/Griditem/index.
|
|
47
|
-
import "../../../GridLayout/index.
|
|
48
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
49
|
-
import {
|
|
50
|
-
import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.230d1584.js";
|
|
45
|
+
import "../../../../contexts/ModalContext/index.5c908fe3.js";
|
|
46
|
+
import "../../../../contexts/RHFormContext/index.ea2758ed.js";
|
|
47
|
+
import "../../../GridLayout/subcomponents/Griditem/index.58168132.js";
|
|
48
|
+
import { S as SizeProvider } from "../../../GridLayout/index.2383aaf9.js";
|
|
49
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.a6642437.js";
|
|
50
|
+
import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.8af3058c.js";
|
|
51
51
|
import "../../../animate/index.4e9774a6.js";
|
|
52
52
|
import "framer-motion";
|
|
53
53
|
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
54
54
|
import "../../../animate/PropagateLoader/index.7fab43c8.js";
|
|
55
|
-
import "../AreasAdmin/index.
|
|
56
|
-
import "../../../ScrollBar/index.
|
|
55
|
+
import "../AreasAdmin/index.23a09c81.js";
|
|
56
|
+
import "../../../ScrollBar/index.65bb2930.js";
|
|
57
57
|
import "zustand";
|
|
58
58
|
import "react-hook-form";
|
|
59
|
-
import "../../../hook-form/RHFAutocomplete/index.
|
|
60
|
-
import "../../../HelperText/index.
|
|
61
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
62
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
59
|
+
import "../../../hook-form/RHFAutocomplete/index.60c6f592.js";
|
|
60
|
+
import "../../../HelperText/index.bbbe24c9.js";
|
|
61
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.9a40fb06.js";
|
|
62
|
+
import "../../../hook-form/RHFCheckbox/index.da4ebb03.js";
|
|
63
63
|
import "@mui/x-date-pickers";
|
|
64
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
65
|
-
import "../../../hook-form/RHFTextField/index.
|
|
66
|
-
import "../../../hook-form/RHFPeriod/index.
|
|
67
|
-
import "../../../Period/index.
|
|
68
|
-
import "../../../CommonActions/components/Actions/index.
|
|
64
|
+
import "../../../hook-form/RHFDateTime/index.c56219ea.js";
|
|
65
|
+
import "../../../hook-form/RHFTextField/index.413a74ca.js";
|
|
66
|
+
import "../../../hook-form/RHFPeriod/index.ee6a3d61.js";
|
|
67
|
+
import "../../../Period/index.32d475b8.js";
|
|
68
|
+
import "../../../CommonActions/components/Actions/index.99a8e55e.js";
|
|
69
69
|
import { c as cjs } from "../../../../react-draggable.7abb5d0a.js";
|
|
70
70
|
import { R as ResizeableWindow } from "../../../Resizeable/index.9a9c79a4.js";
|
|
71
|
-
import "../../../modal/index.
|
|
71
|
+
import "../../../modal/index.6cdf65c9.js";
|
|
72
72
|
import "lodash/isString";
|
|
73
73
|
import "react-dropzone";
|
|
74
|
-
import "../../../hook-form/RHFUpload/index.
|
|
75
|
-
import "../../../DataGrid/index.
|
|
74
|
+
import "../../../hook-form/RHFUpload/index.03faa7f0.js";
|
|
75
|
+
import "../../../DataGrid/index.d38e3b49.js";
|
|
76
76
|
import "react-dnd";
|
|
77
77
|
import "react-dnd-html5-backend";
|
|
78
|
-
import "../../../DataGrid/subcomponents/Actions/index.
|
|
78
|
+
import "../../../DataGrid/subcomponents/Actions/index.7015aadc.js";
|
|
79
79
|
import "../../../DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
80
|
-
import "../../../DynamicFilter/index.
|
|
80
|
+
import "../../../DynamicFilter/index.fddefc23.js";
|
|
81
81
|
import "yup";
|
|
82
82
|
import "lodash";
|
|
83
|
-
import "../../../LanguagePopover/index.
|
|
84
|
-
import "../../../NavLink/index.
|
|
85
|
-
import "../../../NoItemSelected/index.
|
|
86
|
-
import "../../../ObjectLogs/index.
|
|
83
|
+
import "../../../LanguagePopover/index.7d2ccfe4.js";
|
|
84
|
+
import "../../../NavLink/index.abbcb9b2.js";
|
|
85
|
+
import "../../../NoItemSelected/index.a2807715.js";
|
|
86
|
+
import "../../../ObjectLogs/index.ad313913.js";
|
|
87
87
|
import "../../../../react-json-view.57125fcf.js";
|
|
88
|
-
import "../../../PaperForm/index.
|
|
88
|
+
import "../../../PaperForm/index.ad703ab6.js";
|
|
89
89
|
import "../../../Page/index.4237c241.js";
|
|
90
|
-
import "../../../PropertyValue/index.
|
|
90
|
+
import "../../../PropertyValue/index.d52295d9.js";
|
|
91
91
|
import "../../../SplitLayout/index.9ef430f6.js";
|
|
92
92
|
import "../../../../react-splitter-layout.8b1655c8.js";
|
|
93
|
-
import "../../../SideBar/index.
|
|
94
|
-
import "../../../AppBar/index.
|
|
95
|
-
import "../../../AccountPopover/index.
|
|
93
|
+
import "../../../SideBar/index.387a2fa1.js";
|
|
94
|
+
import "../../../AppBar/index.4fac1368.js";
|
|
95
|
+
import "../../../AccountPopover/index.09f33fee.js";
|
|
96
96
|
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
97
97
|
"root",
|
|
98
98
|
"areaRoot",
|
|
@@ -131,7 +131,7 @@ const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
|
131
131
|
"panelWindowsRoot",
|
|
132
132
|
"panelWindowsButtonContainer",
|
|
133
133
|
"containerLinearProgress",
|
|
134
|
-
"
|
|
134
|
+
"resizeHandle",
|
|
135
135
|
"selected",
|
|
136
136
|
"colapsed",
|
|
137
137
|
"selectedWindow",
|
|
@@ -180,7 +180,7 @@ const useAreasViewerUtilityClasses = (ownerState) => {
|
|
|
180
180
|
windowToastyClose: ["windowToastyClose"],
|
|
181
181
|
panelWindowsRoot: ["panelWindowsRoot"],
|
|
182
182
|
panelWindowsButtonContainer: ["panelWindowsButtonContainer"],
|
|
183
|
-
|
|
183
|
+
resizeHandle: ["resizeHandle"]
|
|
184
184
|
};
|
|
185
185
|
return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_VIEWER_CLASS_NAME), {});
|
|
186
186
|
};
|
|
@@ -604,56 +604,6 @@ const WindowPopUpsList = (props) => {
|
|
|
604
604
|
return null;
|
|
605
605
|
}
|
|
606
606
|
};
|
|
607
|
-
const PanelWindowPopUp = (props) => {
|
|
608
|
-
const {
|
|
609
|
-
currentAreaId
|
|
610
|
-
} = props;
|
|
611
|
-
const {
|
|
612
|
-
host_static_assets,
|
|
613
|
-
environment_assets
|
|
614
|
-
} = useEnvironment();
|
|
615
|
-
const windowsLayouts = useAreasStore((state) => state.hashAreas[currentAreaId].layoutItemsIds.filter((li) => state.hashWindows[li].emergeType === "layout").map((lim) => {
|
|
616
|
-
const w = state.hashWindows[lim];
|
|
617
|
-
return {
|
|
618
|
-
i: w.windowId,
|
|
619
|
-
url_icon: w.url_icon,
|
|
620
|
-
title: w.title
|
|
621
|
-
};
|
|
622
|
-
}), shallow);
|
|
623
|
-
const theme = useTheme();
|
|
624
|
-
const {
|
|
625
|
-
maximizeLayout
|
|
626
|
-
} = useAreasStore((state) => state.areaActions);
|
|
627
|
-
const onTouched = (layoutId) => {
|
|
628
|
-
maximizeLayout(currentAreaId, layoutId);
|
|
629
|
-
};
|
|
630
|
-
const menuActions = windowsLayouts.map((element) => {
|
|
631
|
-
return {
|
|
632
|
-
onClick: () => onTouched(element.i),
|
|
633
|
-
label: element.title,
|
|
634
|
-
urlIcon: element.url_icon
|
|
635
|
-
};
|
|
636
|
-
});
|
|
637
|
-
return /* @__PURE__ */ jsx(Fragment, {
|
|
638
|
-
children: menuActions.length > 0 ? /* @__PURE__ */ jsx(MenuActions, {
|
|
639
|
-
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MODULE}`,
|
|
640
|
-
arrowType: "no-arrow",
|
|
641
|
-
marginTop: "12px!important",
|
|
642
|
-
marginLeft: "14px!important",
|
|
643
|
-
anchorOrigin: {
|
|
644
|
-
vertical: "bottom",
|
|
645
|
-
horizontal: "right"
|
|
646
|
-
},
|
|
647
|
-
transformOrigin: {
|
|
648
|
-
vertical: "top",
|
|
649
|
-
horizontal: "right"
|
|
650
|
-
},
|
|
651
|
-
menuActions,
|
|
652
|
-
className: areasViewerClasses.areasPopoverListWindows,
|
|
653
|
-
menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides
|
|
654
|
-
}) : null
|
|
655
|
-
});
|
|
656
|
-
};
|
|
657
607
|
function Header(props) {
|
|
658
608
|
const {
|
|
659
609
|
areaId,
|
|
@@ -672,12 +622,6 @@ function Header(props) {
|
|
|
672
622
|
window2.fnQueryClose
|
|
673
623
|
];
|
|
674
624
|
}, shallow);
|
|
675
|
-
const currentAreaId = useAreasStore((state) => state.currentAreaId, shallow);
|
|
676
|
-
const areas = useAreasStore((state) => state.areas.map((a) => ({
|
|
677
|
-
id: a,
|
|
678
|
-
name: state.hashAreas[a].name
|
|
679
|
-
})), shallow);
|
|
680
|
-
const currentArea = areas.find((area) => area.id === currentAreaId);
|
|
681
625
|
const {
|
|
682
626
|
saveModuleCookies,
|
|
683
627
|
resetModuleCookies
|
|
@@ -769,9 +713,7 @@ function Header(props) {
|
|
|
769
713
|
horizontal: "right"
|
|
770
714
|
},
|
|
771
715
|
menuActions
|
|
772
|
-
}),
|
|
773
|
-
currentAreaId: currentArea.id
|
|
774
|
-
}) : null, !colapsed && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(IconButton, {
|
|
716
|
+
}), !colapsed && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(IconButton, {
|
|
775
717
|
className: "m4l_draggableCancel",
|
|
776
718
|
onClick: maxNormalize,
|
|
777
719
|
"aria-label": "click",
|
|
@@ -1375,29 +1317,31 @@ const Window = (props) => {
|
|
|
1375
1317
|
});
|
|
1376
1318
|
};
|
|
1377
1319
|
React__default.memo(Window);
|
|
1378
|
-
const
|
|
1379
|
-
const AreaGridLayout = (props) => {
|
|
1320
|
+
const ResizeHandle = React__default.forwardRef((props, ref) => {
|
|
1380
1321
|
const {
|
|
1381
|
-
|
|
1322
|
+
handleAxis,
|
|
1323
|
+
...restProps
|
|
1382
1324
|
} = props;
|
|
1383
1325
|
const {
|
|
1384
1326
|
host_static_assets,
|
|
1385
1327
|
environment_assets
|
|
1386
1328
|
} = useEnvironment();
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
1397
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/control_size.svg`
|
|
1398
|
-
})
|
|
1399
|
-
});
|
|
1329
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1330
|
+
ref,
|
|
1331
|
+
className: clsx(`react-resizable-handle react-resizable-handle-${handleAxis}`, areasViewerClasses.resizeHandle),
|
|
1332
|
+
...restProps,
|
|
1333
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
1334
|
+
width: "12px",
|
|
1335
|
+
height: "12px",
|
|
1336
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/control_size.svg`
|
|
1337
|
+
})
|
|
1400
1338
|
});
|
|
1339
|
+
});
|
|
1340
|
+
const ResponsiveGridLayout = SizeProvider(Responsive);
|
|
1341
|
+
const AreaGridLayout = (props) => {
|
|
1342
|
+
const {
|
|
1343
|
+
areaId
|
|
1344
|
+
} = props;
|
|
1401
1345
|
const hashLayoutItems = useAreasStore((state) => state.hashAreas[areaId].layoutItemsIds, shallow);
|
|
1402
1346
|
const layouts = useAreasStore((state) => state.hashAreas[areaId].layouts, shallow);
|
|
1403
1347
|
const breakpoints = useAreasStore((state) => state.hashAreas[areaId].breakpoints, shallow);
|
|
@@ -1599,15 +1543,17 @@ const WindowModal = (props) => {
|
|
|
1599
1543
|
};
|
|
1600
1544
|
const MemonizedWindowModal = React__default.memo(WindowModal);
|
|
1601
1545
|
function AreasViewer() {
|
|
1602
|
-
const areas = useAreasStore((
|
|
1603
|
-
const windowsModals = useAreasStore((
|
|
1604
|
-
const hashWindowsModals = useAreasStore((
|
|
1605
|
-
const currentArea = useAreasStore((
|
|
1606
|
-
const status = useAreasStore((
|
|
1607
|
-
const classesRoot = useAreasStore((
|
|
1546
|
+
const areas = useAreasStore((state2) => state2.areasIds, shallow);
|
|
1547
|
+
const windowsModals = useAreasStore((state2) => state2.windowsModals);
|
|
1548
|
+
const hashWindowsModals = useAreasStore((state2) => state2.hashWindowsModals);
|
|
1549
|
+
const currentArea = useAreasStore((state2) => state2.currentAreaId);
|
|
1550
|
+
const status = useAreasStore((state2) => state2.ownerState.status);
|
|
1551
|
+
const classesRoot = useAreasStore((state2) => state2.viwerClasses.root);
|
|
1552
|
+
const state = useAreasStore((state2) => state2);
|
|
1553
|
+
console.log("Areas state >>>>", state);
|
|
1608
1554
|
const {
|
|
1609
1555
|
init
|
|
1610
|
-
} = useAreasStore((
|
|
1556
|
+
} = useAreasStore((state2) => state2.areasActions);
|
|
1611
1557
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
1612
1558
|
children: [/* @__PURE__ */ jsx(AreasViewerRoot, {
|
|
1613
1559
|
className: classesRoot,
|