@m4l/components 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AccountPopover/{index.2604c389.js → index.8a11a7b6.js} +21 -9
- package/components/AppBar/{index.9522f237.js → index.966d5162.js} +22 -5
- package/components/CommonActions/components/ActionCancel/{index.06539086.js → index.68bf349a.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/index.728bb37d.js +146 -0
- package/components/CommonActions/components/ActionFormIntro/{index.5a719043.js → index.a7e8711b.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.3e8a2e60.js → index.7cc0a393.js} +2 -2
- package/components/CommonActions/components/Actions/index.b61826a4.js +163 -0
- package/components/DataGrid/constants.d.ts +2 -0
- package/components/DataGrid/{index.fbda09b5.js → index.3a2e683c.js} +21 -18
- package/components/DataGrid/subcomponents/Actions/{index.a3282769.js → index.063a0197.js} +90 -10
- package/components/DynamicFilter/{index.07734f95.js → index.a5197d85.js} +92 -23
- package/components/GridLayout/{index.e8c04242.js → index.68093cfb.js} +7 -6
- package/components/GridLayout/subcomponents/Griditem/{index.4d38f12e.js → index.8e4af155.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.e25df1dc.js → index.c32210fc.js} +1 -1
- package/components/HelperText/{index.7d2afdb3.js → index.a6a02c79.js} +23 -2
- package/components/Icon/{index.05984e7f.js → index.29065051.js} +5 -5
- package/components/Image/{index.bf37e923.js → index.cf640615.js} +3 -3
- package/components/LanguagePopover/{index.5ff37dbf.js → index.0319d6a8.js} +20 -4
- package/components/LoadingError/{index.fabad214.js → index.1426339a.js} +23 -5
- package/components/MFLoader/{index.7b4ee2a4.js → index.cbd2e5af.js} +21 -5
- package/components/ModalDialog/{index.89e26413.js → index.82ccabcc.js} +3 -3
- package/components/NavLink/{index.b75c91e1.js → index.618dabfb.js} +22 -2
- package/components/NoItemSelected/{index.7db73e77.js → index.50d06852.js} +1 -1
- package/components/ObjectLogs/{index.9521ca72.js → index.fb34f372.js} +84 -5
- package/components/PDFViewer/{index.5c2db67a.js → index.ec8d0f79.js} +23 -3
- package/components/Page/{index.710cb16f.js → index.5aefe8f7.js} +1 -1
- package/components/PaperForm/classes/index.d.ts +2 -1
- package/components/PaperForm/classes/types.d.ts +1 -0
- package/components/PaperForm/{index.7ea3883f.js → index.6859d4e8.js} +11 -6
- package/components/PaperForm/types.d.ts +4 -1
- package/components/Period/{index.0aa8e507.js → index.df612223.js} +90 -5
- package/components/PrintingSystem/{index.ed3b22b7.js → index.73dd98b3.js} +12 -12
- package/components/PrintingSystem/subcomponents/BodyNode/{index.7acc6016.js → index.d70a5d24.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.e4a23bdd.js → index.4cd7f6d8.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.16fff262.js → index.56efaa0c.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.6c67dec0.js → index.4320bb03.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.f466062b.js → index.6cabbf31.js} +1 -5
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.77d3d39a.js → index.0e23ffd4.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2a3d54a3.js → index.f97e7aa6.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.e71ad971.js → index.7d3a3c8f.js} +1 -2
- package/components/PrintingSystem/subcomponents/SectionNode/{index.ce4f6d16.js → index.05d1fcf7.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.850d20a1.js → index.3894059c.js} +1 -1
- package/components/PropertyValue/{index.711d80ae.js → index.df683b35.js} +20 -4
- package/components/SideBar/{index.58d29b84.js → index.f322ee0b.js} +22 -23
- package/components/ToastContainer/{index.ed440301.js → index.f67795cb.js} +7 -5
- package/components/animate/{index.5d4575bc.js → index.4e9774a6.js} +6 -2
- package/components/areas/components/AreasAdmin/{index.d3f818ae.js → index.6024578a.js} +98 -27
- package/components/areas/components/AreasViewer/{index.796a9d98.js → index.41e89676.js} +84 -18
- package/components/areas/components/index.198e8954.js +32 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.3d7cf850.js → index.9c8e3b41.js} +10 -17
- package/components/areas/contexts/index.eba30173.js +4 -0
- package/components/areas/hooks/index.0184c6f7.js +4 -0
- package/components/areas/hooks/useAreas/{index.08ece0b8.js → index.fb721543.js} +1 -1
- package/components/areas/index.abedae6a.js +56 -0
- package/components/formatters/BooleanFormatter/{index.4f3cbdce.js → index.64ed2d71.js} +2 -3
- package/components/formatters/{index.4ca6946d.js → index.57f0da1b.js} +7 -3
- package/components/hook-form/RHFAutocomplete/{index.0ce87ac3.js → index.e830f749.js} +22 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.57789d3a.js → index.12580722.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.a38715e3.js → index.938321c1.js} +22 -2
- package/components/hook-form/RHFColorPicker/{index.d00a2b53.js → index.e292aa86.js} +21 -5
- package/components/hook-form/RHFDateTime/{index.ae5d3a39.js → index.321e4b87.js} +21 -5
- package/components/hook-form/RHFPeriod/{index.ae9bcf41.js → index.98b2667a.js} +2 -3
- package/components/hook-form/RHFTextField/{index.80cc07e0.js → index.d08c142b.js} +7 -5
- package/components/hook-form/RHFUpload/{index.587aac00.js → index.cdb2e584.js} +22 -5
- package/components/modal/WindowBase.4fe313e7.js +160 -0
- package/components/modal/WindowConfirm.355df4de.js +188 -0
- package/components/modal/index.ea3a21cb.js +148 -0
- package/components/mui_extended/Accordion/{index.4d39e652.js → index.3e247bd4.js} +4 -4
- package/components/mui_extended/Button/{index.570fd3a4.js → index.f538e360.js} +3 -3
- package/components/mui_extended/{CheckBox.e662d20c.js → CheckBox.38abccd8.js} +1 -1
- package/components/mui_extended/IconButton/{index.26de70bd.js → index.e295aa1f.js} +2 -2
- package/components/mui_extended/MenuActions/{index.8c02ff61.js → index.9b37fadc.js} +19 -5
- package/components/mui_extended/Pager/{index.5629e82b.js → index.78dea971.js} +2 -3
- package/components/mui_extended/Tab/{index.ff5075c5.js → index.4c797c00.js} +2 -2
- package/components/mui_extended/ToggleButton/{index.21a1f8e5.js → index.43140642.js} +5 -1
- package/components/mui_extended/ToggleIconButton/{index.00f13c40.js → index.3d725376.js} +6 -1
- package/components/mui_extended/index.1da3a53e.js +24 -0
- package/contexts/ModalContext/{index.b39d303d.js → index.6d2dda38.js} +1 -1
- package/hooks/useFormAddEdit/index.0d294209.js +183 -0
- package/hooks/useModal/{index.abdc0962.js → index.97742698.js} +1 -1
- package/hooks/useTab/index.cb48ec45.js +103 -0
- package/index.js +187 -187
- package/{node_modules.8f15d11f.js → node_modules.56dca1cf.js} +1 -1
- package/package.json +1 -1
- package/vendor.3c20510a.js +142 -0
- package/components/CommonActions/components/ActionFormCancel/index.33fc6c79.js +0 -61
- package/components/CommonActions/components/Actions/index.2f6286eb.js +0 -74
- package/components/areas/components/index.558684b3.js +0 -1
- package/components/areas/contexts/index.24025b97.js +0 -1
- package/components/areas/hooks/index.d9dc1e21.js +0 -1
- package/components/areas/index.4cc6a221.js +0 -22
- package/components/modal/WindowBase.ea17cf20.js +0 -74
- package/components/modal/WindowConfirm.19ddbd5d.js +0 -102
- package/components/modal/index.61389369.js +0 -57
- package/components/mui_extended/index.b606cd9d.js +0 -1
- package/hooks/useFormAddEdit/index.32aa4f64.js +0 -96
- package/hooks/useTab/index.a97c10ec.js +0 -12
- package/vendor.c026edad.js +0 -110
- package/components/mui_extended/Badge/{index.09f5aee5.js → index.b09524fe.js} +1 -1
- package/components/mui_extended/Popover/{index.b3eca6b1.js → index.9f35d0eb.js} +2 -2
- package/components/mui_extended/Tooltip/{index.24a2bc3f.js → index.5a795dcd.js} +1 -1
- package/components/mui_extended/Typography/{index.379dd374.js → index.443590d6.js} +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
2
|
-
import { styled, alpha } from "@mui/material/styles";
|
|
3
|
-
import { styled as styled$1, generateUtilityClasses, ListItemText, Tooltip, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
4
2
|
import { useEnvironment, useBase, BaseProvider } from "@m4l/core";
|
|
5
3
|
import { createContext, useContext, useState, useEffect } from "react";
|
|
6
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
8
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
|
-
import { I as Image } from "../Image/index.
|
|
11
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
5
|
+
import { I as Image } from "../Image/index.cf640615.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.e295aa1f.js";
|
|
7
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
|
+
import { styled as styled$1, generateUtilityClasses, ListItemText, Tooltip, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.29065051.js";
|
|
10
|
+
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
14
11
|
import clsx from "clsx";
|
|
15
12
|
import { useLocation } from "react-router-dom";
|
|
16
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
13
|
+
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
17
14
|
import { S as ScrollBar } from "../ScrollBar/index.010f1b9d.js";
|
|
15
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
16
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
17
|
+
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
18
18
|
const SideBarRoot = styled("div")(({
|
|
19
19
|
theme
|
|
20
20
|
}) => ({
|
|
@@ -207,7 +207,6 @@ const SideBarProvider = (props) => {
|
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
const useSideBar = () => useContext(SideBarContext);
|
|
210
|
-
const useSideBar$1 = useSideBar;
|
|
211
210
|
const SIDEBAR_PREFIX = "M4LSideBar";
|
|
212
211
|
const getNameDataTestId = (KEY) => {
|
|
213
212
|
return `${SIDEBAR_PREFIX}-${KEY}`;
|
|
@@ -224,7 +223,7 @@ function CollapseButton(props) {
|
|
|
224
223
|
const {
|
|
225
224
|
classes,
|
|
226
225
|
companyLogoNormalUrl
|
|
227
|
-
} = useSideBar
|
|
226
|
+
} = useSideBar();
|
|
228
227
|
return /* @__PURE__ */ jsxs(CollapseButtonRoot, {
|
|
229
228
|
className: classes.collapseButton,
|
|
230
229
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -354,7 +353,7 @@ const NavItemMainContent = (props) => {
|
|
|
354
353
|
const {
|
|
355
354
|
collapsed,
|
|
356
355
|
classes
|
|
357
|
-
} = useSideBar
|
|
356
|
+
} = useSideBar();
|
|
358
357
|
const isDesktop = useResponsiveDesktop();
|
|
359
358
|
const handlerClick = (event) => {
|
|
360
359
|
onClick && onClick(item);
|
|
@@ -444,7 +443,7 @@ const NavSubItemContent = (props) => {
|
|
|
444
443
|
isItemActive,
|
|
445
444
|
onToggleVisible,
|
|
446
445
|
classes
|
|
447
|
-
} = useSideBar
|
|
446
|
+
} = useSideBar();
|
|
448
447
|
const active = isItemActive(item);
|
|
449
448
|
const isDesktop = useResponsiveDesktop();
|
|
450
449
|
const hasChildren = item.children && Array.isArray(item.children) && item.children.length > 0;
|
|
@@ -488,7 +487,7 @@ function NavSubItem(props) {
|
|
|
488
487
|
} = props;
|
|
489
488
|
const {
|
|
490
489
|
onClick
|
|
491
|
-
} = useSideBar
|
|
490
|
+
} = useSideBar();
|
|
492
491
|
return /* @__PURE__ */ jsx(NavSubItemContent, {
|
|
493
492
|
item,
|
|
494
493
|
onClick: () => onClick(item),
|
|
@@ -510,7 +509,7 @@ function NavListSubItem(props) {
|
|
|
510
509
|
const {
|
|
511
510
|
classes,
|
|
512
511
|
isItemActive
|
|
513
|
-
} = useSideBar
|
|
512
|
+
} = useSideBar();
|
|
514
513
|
const active = isItemActive(list);
|
|
515
514
|
const [openSub, setOpenSub] = useState(false);
|
|
516
515
|
const hasChildren = list.children && Array.isArray(list.children) && list.children.length > 0;
|
|
@@ -578,7 +577,7 @@ function NavItemMain(props) {
|
|
|
578
577
|
isItemActive,
|
|
579
578
|
onToggleVisible,
|
|
580
579
|
classes
|
|
581
|
-
} = useSideBar
|
|
580
|
+
} = useSideBar();
|
|
582
581
|
const [popoverStatus, setPopoverStatus] = useState(null);
|
|
583
582
|
const theme = useTheme();
|
|
584
583
|
const active = isItemActive(item);
|
|
@@ -666,7 +665,7 @@ function ItemListMain(props) {
|
|
|
666
665
|
collapsed: isSideBarCollapsed,
|
|
667
666
|
isItemActive,
|
|
668
667
|
classes
|
|
669
|
-
} = useSideBar
|
|
668
|
+
} = useSideBar();
|
|
670
669
|
const location = useLocation();
|
|
671
670
|
const [internalItemActive, setInternalItemActive] = useState(false);
|
|
672
671
|
const [active, setActive] = useState(false);
|
|
@@ -783,7 +782,7 @@ const SkeletonNavSectionVertical = () => {
|
|
|
783
782
|
const {
|
|
784
783
|
collapsed,
|
|
785
784
|
classes
|
|
786
|
-
} = useSideBar
|
|
785
|
+
} = useSideBar();
|
|
787
786
|
return /* @__PURE__ */ jsxs(WrapperSKTNavSectionVertical, {
|
|
788
787
|
collapse: collapsed,
|
|
789
788
|
className: classes.skeleton,
|
|
@@ -844,7 +843,7 @@ const ContentGroups = () => {
|
|
|
844
843
|
collapsed,
|
|
845
844
|
menuData,
|
|
846
845
|
classes
|
|
847
|
-
} = useSideBar
|
|
846
|
+
} = useSideBar();
|
|
848
847
|
const [itemMainActive, setItemMainActive] = useState(-1);
|
|
849
848
|
if (menuData && menuData.length > 0) {
|
|
850
849
|
return /* @__PURE__ */ jsxs(ContentGroupsRoot, {
|
|
@@ -899,7 +898,7 @@ const ContentDesktop = () => {
|
|
|
899
898
|
companyLogoSmallUrl,
|
|
900
899
|
classes,
|
|
901
900
|
companyName
|
|
902
|
-
} = useSideBar
|
|
901
|
+
} = useSideBar();
|
|
903
902
|
return /* @__PURE__ */ jsxs(WrapperContentDesktop, {
|
|
904
903
|
className: classes.contentDesktop,
|
|
905
904
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -971,7 +970,7 @@ const ContentMobile = () => {
|
|
|
971
970
|
collapsed,
|
|
972
971
|
classes,
|
|
973
972
|
companyName
|
|
974
|
-
} = useSideBar
|
|
973
|
+
} = useSideBar();
|
|
975
974
|
const theme = useTheme();
|
|
976
975
|
return /* @__PURE__ */ jsx(Drawer, {
|
|
977
976
|
open: visible,
|
|
@@ -1076,5 +1075,5 @@ const SideBar = (props) => {
|
|
|
1076
1075
|
export {
|
|
1077
1076
|
SideBar as S,
|
|
1078
1077
|
getNameDataTestId as g,
|
|
1079
|
-
useSideBar
|
|
1078
|
+
useSideBar as u
|
|
1080
1079
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A } from "../../node_modules.8f15d11f.js";
|
|
1
|
+
import { A } from "../../node_modules.56dca1cf.js";
|
|
3
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
3
|
+
import { I as Icon } from "../Icon/index.29065051.js";
|
|
6
4
|
import { useEnvironment } from "@m4l/core";
|
|
7
5
|
import { useMemo } from "react";
|
|
8
|
-
import {
|
|
6
|
+
import { styled, generateUtilityClasses } from "@mui/material";
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
9
|
+
import "clsx";
|
|
10
|
+
import "@m4l/graphics";
|
|
9
11
|
const ToastContainerRoot = styled("div")(({ theme }) => ({
|
|
10
12
|
...theme.components?.M4LToastContainer?.styleOverrides
|
|
11
13
|
}));
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { m } from "framer-motion";
|
|
2
1
|
import { forwardRef, useRef } from "react";
|
|
3
|
-
import { IconButton, Box, styled, alpha } from "@mui/material";
|
|
4
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { m } from "framer-motion";
|
|
4
|
+
import { IconButton, Box, styled, alpha } from "@mui/material";
|
|
5
|
+
import "@mui/material/styles";
|
|
6
|
+
import "react-router-dom";
|
|
7
|
+
import "./LoadingScreen/index.1d0c4307.js";
|
|
8
|
+
import "./PropagateLoader/index.7fab43c8.js";
|
|
5
9
|
import SimpleBarReact from "simplebar-react";
|
|
6
10
|
const varSmall = {
|
|
7
11
|
hover: {
|
|
@@ -1,32 +1,105 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.e295aa1f.js";
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.fb721543.js";
|
|
2
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
4
|
import { useState, useRef, useMemo } from "react";
|
|
4
5
|
import * as Yup from "yup";
|
|
5
|
-
import clsx from "clsx";
|
|
6
6
|
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
7
|
+
import "../../../mui_extended/Accordion/index.3e247bd4.js";
|
|
8
|
+
import { I as Icon } from "../../../Icon/index.29065051.js";
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
11
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
12
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
13
|
+
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
|
+
import "react-router-dom";
|
|
15
|
+
import "@mui/material/Button";
|
|
16
|
+
import { B as Button } from "../../../mui_extended/Button/index.f538e360.js";
|
|
17
|
+
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
18
|
+
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
19
|
+
import "../../../Image/index.cf640615.js";
|
|
20
|
+
import "@mui/lab";
|
|
21
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
22
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
+
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
+
import "../../../mui_extended/Tab/index.4c797c00.js";
|
|
25
|
+
import "../../../mui_extended/Pager/index.78dea971.js";
|
|
26
|
+
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
7
27
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
28
|
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
9
29
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
10
30
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
11
|
-
import
|
|
31
|
+
import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
32
|
+
import "../../../../contexts/ModalContext/index.6d2dda38.js";
|
|
33
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.7769076a.js";
|
|
34
|
+
import "react-hook-form";
|
|
35
|
+
import "../../../hook-form/RHFAutocomplete/index.e830f749.js";
|
|
36
|
+
import "../../../HelperText/index.a6a02c79.js";
|
|
37
|
+
import "../../../../node_modules.56dca1cf.js";
|
|
38
|
+
import "lodash-es/debounce";
|
|
39
|
+
import "lodash-es/each";
|
|
40
|
+
import "../../../hook-form/RHFColorPicker/index.e292aa86.js";
|
|
12
41
|
import { styled } from "@mui/material/styles";
|
|
13
|
-
import
|
|
42
|
+
import "lodash/debounce";
|
|
43
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.12580722.js";
|
|
44
|
+
import "../../../hook-form/RHFCheckbox/index.938321c1.js";
|
|
45
|
+
import "@mui/x-date-pickers";
|
|
46
|
+
import "../../../hook-form/RHFDateTime/index.321e4b87.js";
|
|
47
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.d08c142b.js";
|
|
48
|
+
import "../../../hook-form/RHFPeriod/index.98b2667a.js";
|
|
49
|
+
import "../../../Period/index.df612223.js";
|
|
50
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.b61826a4.js";
|
|
51
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.68bf349a.js";
|
|
52
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.7cc0a393.js";
|
|
53
|
+
import "../../../../react-draggable.ee21cb7e.js";
|
|
54
|
+
import "../../../Resizeable/index.6478d7d8.js";
|
|
55
|
+
import "../../../modal/index.ea3a21cb.js";
|
|
56
|
+
import "../../../animate/index.4e9774a6.js";
|
|
57
|
+
import "framer-motion";
|
|
58
|
+
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
59
|
+
import "../../../animate/PropagateLoader/index.7fab43c8.js";
|
|
14
60
|
import { shallow } from "zustand/shallow";
|
|
15
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
16
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.8c02ff61.js";
|
|
17
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.7769076a.js";
|
|
18
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.80cc07e0.js";
|
|
19
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.2f6286eb.js";
|
|
20
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.06539086.js";
|
|
21
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.3e8a2e60.js";
|
|
22
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.26de70bd.js";
|
|
23
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.b3eca6b1.js";
|
|
24
|
-
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
25
61
|
import { S as ScrollBar } from "../../../ScrollBar/index.010f1b9d.js";
|
|
62
|
+
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
26
63
|
import TouchRipple from "@mui/material/ButtonBase/TouchRipple";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
64
|
+
import "../AreasViewer/index.41e89676.js";
|
|
65
|
+
import "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
66
|
+
import "../../../LoadingError/index.1426339a.js";
|
|
67
|
+
import "../../contexts/AreasContext/index.9c8e3b41.js";
|
|
68
|
+
import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
69
|
+
import "zustand";
|
|
70
|
+
import "zustand/middleware/immer";
|
|
71
|
+
import "../../../formatters/index.57f0da1b.js";
|
|
72
|
+
import "../../../DataGrid/index.3a2e683c.js";
|
|
73
|
+
import "react-dnd";
|
|
74
|
+
import "react-dnd-html5-backend";
|
|
75
|
+
import "../../../DataGrid/subcomponents/Actions/index.063a0197.js";
|
|
76
|
+
import "../../../DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
77
|
+
import "../../../DynamicFilter/index.a5197d85.js";
|
|
78
|
+
import "../../../GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
79
|
+
import "../../../GridLayout/index.68093cfb.js";
|
|
80
|
+
import "fast-equals";
|
|
81
|
+
import "lodash";
|
|
82
|
+
import "../../../PrintingSystem/index.73dd98b3.js";
|
|
83
|
+
import "../../../LanguagePopover/index.0319d6a8.js";
|
|
84
|
+
import "../../../MFLoader/index.cbd2e5af.js";
|
|
85
|
+
import "../../../NavLink/index.618dabfb.js";
|
|
86
|
+
import "../../../NoItemSelected/index.50d06852.js";
|
|
87
|
+
import "../../../ObjectLogs/index.fb34f372.js";
|
|
88
|
+
import "../../../../react-json-view.5636414a.js";
|
|
89
|
+
import "../../../PaperForm/index.6859d4e8.js";
|
|
90
|
+
import "../../../PDFViewer/index.ec8d0f79.js";
|
|
91
|
+
import "../../../Page/index.5aefe8f7.js";
|
|
92
|
+
import "../../../PropertyValue/index.df683b35.js";
|
|
93
|
+
import "../../../SplitLayout/index.30fd5861.js";
|
|
94
|
+
import "../../../../react-splitter-layout.c5d98bf7.js";
|
|
95
|
+
import "../../../ToastContainer/index.f67795cb.js";
|
|
96
|
+
import "../../../SideBar/index.f322ee0b.js";
|
|
97
|
+
import "../../../AppBar/index.966d5162.js";
|
|
98
|
+
import "../../../AccountPopover/index.8a11a7b6.js";
|
|
99
|
+
import "lodash/isString";
|
|
100
|
+
import "react-dropzone";
|
|
101
|
+
import "../../../hook-form/RHFUpload/index.cdb2e584.js";
|
|
102
|
+
import { u as useOnClickOutside } from "../../index.abedae6a.js";
|
|
30
103
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
31
104
|
"root",
|
|
32
105
|
"rootContent",
|
|
@@ -650,21 +723,19 @@ const PanelWindowPopUp = (props) => {
|
|
|
650
723
|
});
|
|
651
724
|
};
|
|
652
725
|
function AreasAdmin() {
|
|
653
|
-
const areas = useAreasStore((
|
|
654
|
-
const currentArea = useAreasStore((
|
|
655
|
-
const status = useAreasStore((
|
|
726
|
+
const areas = useAreasStore((state) => state.areasIds, shallow);
|
|
727
|
+
const currentArea = useAreasStore((state) => state.currentAreaId, shallow);
|
|
728
|
+
const status = useAreasStore((state) => state.ownerState.status);
|
|
656
729
|
const {
|
|
657
730
|
setFocus
|
|
658
|
-
} = useAreasStore((
|
|
659
|
-
const classesRoot = useAreasStore((
|
|
660
|
-
const areasLength = useAreasStore((
|
|
731
|
+
} = useAreasStore((state) => state.areaAdminActions, shallow);
|
|
732
|
+
const classesRoot = useAreasStore((state) => state.adminClasses.root);
|
|
733
|
+
const areasLength = useAreasStore((state) => state.areasIds.length);
|
|
661
734
|
const isDesktop = useResponsiveDesktop();
|
|
662
735
|
const {
|
|
663
736
|
addArea
|
|
664
|
-
} = useAreasStore((
|
|
665
|
-
const maximizedId = useAreasStore((
|
|
666
|
-
const state = useAreasStore((state2) => state2, shallow);
|
|
667
|
-
console.log("store state", state);
|
|
737
|
+
} = useAreasStore((state) => state.areasActions, shallow);
|
|
738
|
+
const maximizedId = useAreasStore((state) => state.hashAreas[currentArea] ? state.hashAreas[currentArea].maximizedId : false, shallow);
|
|
668
739
|
const {
|
|
669
740
|
host_static_assets,
|
|
670
741
|
environment_assets
|
|
@@ -7,30 +7,100 @@ import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
|
7
7
|
import { shallow } from "zustand/shallow";
|
|
8
8
|
import React__default, { useMemo, useEffect } from "react";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
10
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.fb721543.js";
|
|
11
11
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
12
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.e295aa1f.js";
|
|
13
|
+
import "../../../mui_extended/Accordion/index.3e247bd4.js";
|
|
14
|
+
import { I as Icon } from "../../../Icon/index.29065051.js";
|
|
15
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
14
16
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
17
|
+
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
18
|
+
import { useLocation } from "react-router-dom";
|
|
19
|
+
import "@mui/material/Button";
|
|
20
|
+
import "../../../mui_extended/Button/index.f538e360.js";
|
|
21
|
+
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
22
|
+
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
23
|
+
import "../../../Image/index.cf640615.js";
|
|
24
|
+
import "@mui/lab";
|
|
25
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
26
|
+
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
27
|
+
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
28
|
+
import "../../../mui_extended/Tab/index.4c797c00.js";
|
|
29
|
+
import "../../../mui_extended/Pager/index.78dea971.js";
|
|
30
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
31
|
+
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
15
32
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
16
33
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
17
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.26de70bd.js";
|
|
18
34
|
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
19
|
-
import {
|
|
20
|
-
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
21
|
-
import { M as MFLoader } from "../../../MFLoader/index.7b4ee2a4.js";
|
|
35
|
+
import { M as MFLoader } from "../../../MFLoader/index.cbd2e5af.js";
|
|
22
36
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
23
37
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
38
|
+
import "../../../../contexts/ModalContext/index.6d2dda38.js";
|
|
39
|
+
import "../../../../contexts/RHFormContext/index.7769076a.js";
|
|
24
40
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
25
41
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
26
|
-
import { g as getNameDataTestId } from "../../../../vendor.
|
|
27
|
-
import
|
|
28
|
-
import { S as SizeProvider } from "../../../GridLayout/index.
|
|
29
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
30
|
-
import {
|
|
31
|
-
import { L as LoadingError } from "../../../LoadingError/index.
|
|
42
|
+
import { g as getNameDataTestId } from "../../../../vendor.3c20510a.js";
|
|
43
|
+
import "../../../GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
44
|
+
import { S as SizeProvider } from "../../../GridLayout/index.68093cfb.js";
|
|
45
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.c32210fc.js";
|
|
46
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.9c8e3b41.js";
|
|
47
|
+
import { L as LoadingError } from "../../../LoadingError/index.1426339a.js";
|
|
48
|
+
import "../../../animate/index.4e9774a6.js";
|
|
49
|
+
import "framer-motion";
|
|
50
|
+
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
51
|
+
import "../../../animate/PropagateLoader/index.7fab43c8.js";
|
|
52
|
+
import "../AreasAdmin/index.6024578a.js";
|
|
53
|
+
import "../../../ScrollBar/index.010f1b9d.js";
|
|
54
|
+
import "zustand";
|
|
55
|
+
import "zustand/middleware/immer";
|
|
56
|
+
import "react-hook-form";
|
|
57
|
+
import "../../../hook-form/RHFAutocomplete/index.e830f749.js";
|
|
58
|
+
import "../../../HelperText/index.a6a02c79.js";
|
|
59
|
+
import "../../../../node_modules.56dca1cf.js";
|
|
60
|
+
import "lodash-es/debounce";
|
|
61
|
+
import "lodash-es/each";
|
|
62
|
+
import "../../../hook-form/RHFColorPicker/index.e292aa86.js";
|
|
63
|
+
import "lodash/debounce";
|
|
64
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.12580722.js";
|
|
65
|
+
import "../../../hook-form/RHFCheckbox/index.938321c1.js";
|
|
66
|
+
import "@mui/x-date-pickers";
|
|
67
|
+
import "../../../hook-form/RHFDateTime/index.321e4b87.js";
|
|
68
|
+
import "../../../hook-form/RHFTextField/index.d08c142b.js";
|
|
69
|
+
import "../../../hook-form/RHFPeriod/index.98b2667a.js";
|
|
70
|
+
import "../../../Period/index.df612223.js";
|
|
71
|
+
import "../../../CommonActions/components/Actions/index.b61826a4.js";
|
|
32
72
|
import { c as cjs } from "../../../../react-draggable.ee21cb7e.js";
|
|
33
73
|
import { R as ResizeableWindow } from "../../../Resizeable/index.6478d7d8.js";
|
|
74
|
+
import "../../../modal/index.ea3a21cb.js";
|
|
75
|
+
import "lodash/isString";
|
|
76
|
+
import "react-dropzone";
|
|
77
|
+
import "../../../hook-form/RHFUpload/index.cdb2e584.js";
|
|
78
|
+
import "../../../formatters/index.57f0da1b.js";
|
|
79
|
+
import "../../../DataGrid/index.3a2e683c.js";
|
|
80
|
+
import "react-dnd";
|
|
81
|
+
import "react-dnd-html5-backend";
|
|
82
|
+
import "../../../DataGrid/subcomponents/Actions/index.063a0197.js";
|
|
83
|
+
import "../../../DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
84
|
+
import "../../../DynamicFilter/index.a5197d85.js";
|
|
85
|
+
import "yup";
|
|
86
|
+
import "fast-equals";
|
|
87
|
+
import "lodash";
|
|
88
|
+
import "../../../PrintingSystem/index.73dd98b3.js";
|
|
89
|
+
import "../../../LanguagePopover/index.0319d6a8.js";
|
|
90
|
+
import "../../../NavLink/index.618dabfb.js";
|
|
91
|
+
import "../../../NoItemSelected/index.50d06852.js";
|
|
92
|
+
import "../../../ObjectLogs/index.fb34f372.js";
|
|
93
|
+
import "../../../../react-json-view.5636414a.js";
|
|
94
|
+
import "../../../PaperForm/index.6859d4e8.js";
|
|
95
|
+
import "../../../PDFViewer/index.ec8d0f79.js";
|
|
96
|
+
import "../../../Page/index.5aefe8f7.js";
|
|
97
|
+
import "../../../PropertyValue/index.df683b35.js";
|
|
98
|
+
import "../../../SplitLayout/index.30fd5861.js";
|
|
99
|
+
import "../../../../react-splitter-layout.c5d98bf7.js";
|
|
100
|
+
import "../../../ToastContainer/index.f67795cb.js";
|
|
101
|
+
import "../../../SideBar/index.f322ee0b.js";
|
|
102
|
+
import "../../../AppBar/index.966d5162.js";
|
|
103
|
+
import "../../../AccountPopover/index.8a11a7b6.js";
|
|
34
104
|
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
35
105
|
"root",
|
|
36
106
|
"areaRoot",
|
|
@@ -846,8 +916,6 @@ const Window = (props) => {
|
|
|
846
916
|
return emergeType === "layout" ? state.hashAreas[areaId]?.currentLayoutId : state.hashAreas[areaId]?.currentPopUpId;
|
|
847
917
|
}) === windowId;
|
|
848
918
|
const mfProps = useAreasStore((state) => state.hashWindows[windowId]?.mfProps, shallow);
|
|
849
|
-
const areaStore = useAreasStore((state) => state, shallow);
|
|
850
|
-
console.log("areaStore", areaStore);
|
|
851
919
|
const component = useAreasStore((state) => state.hashWindows[windowId]?.component, shallow);
|
|
852
920
|
const loading = useAreasStore((state) => state.hashWindows[windowId]?.loading, shallow);
|
|
853
921
|
const status = useAreasStore((state) => state.hashWindows[windowId]?.status, shallow);
|
|
@@ -922,7 +990,7 @@ const Window = (props) => {
|
|
|
922
990
|
areasViewerClasses.windowContent
|
|
923
991
|
),
|
|
924
992
|
children: [status === "init" ? /* @__PURE__ */ jsx(Fragment, {
|
|
925
|
-
children: "...
|
|
993
|
+
children: "Cargando..."
|
|
926
994
|
}) : null, status === "loaded" ? winType === "microfrontend" ? /* @__PURE__ */ jsx(MemonizedMicroFrontend, {
|
|
927
995
|
moduleId,
|
|
928
996
|
dynamicMFStore,
|
|
@@ -984,8 +1052,6 @@ const AreaGridLayout = (props) => {
|
|
|
984
1052
|
if (p.type === "placeholder") {
|
|
985
1053
|
return /* @__PURE__ */ jsx("div", {});
|
|
986
1054
|
}
|
|
987
|
-
console.log("layoutItemRender window", hashLayoutItems, p.i, p.type);
|
|
988
|
-
console.log("layoutItemRender window value p argument", p);
|
|
989
1055
|
return /* @__PURE__ */ jsx(Window, {
|
|
990
1056
|
windowId: p.i,
|
|
991
1057
|
areaId
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "@m4l/core";
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "../../Icon/index.29065051.js";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "@m4l/graphics";
|
|
7
|
+
import "react/jsx-runtime";
|
|
8
|
+
import "../../mui_extended/IconButton/index.e295aa1f.js";
|
|
9
|
+
import "zustand";
|
|
10
|
+
import "../contexts/AreasContext/index.9c8e3b41.js";
|
|
11
|
+
import "./AreasAdmin/index.6024578a.js";
|
|
12
|
+
import "zustand/shallow";
|
|
13
|
+
import "../../ScrollBar/index.010f1b9d.js";
|
|
14
|
+
import "../../mui_extended/Accordion/index.3e247bd4.js";
|
|
15
|
+
import "../../mui_extended/Typography/index.443590d6.js";
|
|
16
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
17
|
+
import "react-router-dom";
|
|
18
|
+
import "@mui/material/Button";
|
|
19
|
+
import "../../mui_extended/Button/index.f538e360.js";
|
|
20
|
+
import "../../mui_extended/CheckBox.38abccd8.js";
|
|
21
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
22
|
+
import "../../Image/index.cf640615.js";
|
|
23
|
+
import "@mui/lab";
|
|
24
|
+
import "../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
25
|
+
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
+
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
27
|
+
import "../../mui_extended/Tab/index.4c797c00.js";
|
|
28
|
+
import "../../mui_extended/Pager/index.78dea971.js";
|
|
29
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
30
|
+
import "./AreasViewer/index.41e89676.js";
|
|
31
|
+
import "../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
32
|
+
import "../../LoadingError/index.1426339a.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WritableDraft } from 'immer/dist/internal';
|
|
2
2
|
import type { Area, AreasStateWithActions } from './types';
|
|
3
3
|
import type { WindowState, WindowStateProps } from '../../types';
|
|
4
|
-
export declare const PADDING_GRIDLAYOUT =
|
|
5
|
-
export declare const MARGIN_GRIDLAYOUT =
|
|
4
|
+
export declare const PADDING_GRIDLAYOUT = 8;
|
|
5
|
+
export declare const MARGIN_GRIDLAYOUT = 8;
|
|
6
6
|
export declare const DEBOUCED_SAVE_TIME = 500;
|
|
7
7
|
export declare const THROTTLE_RESIZE_TIME = 300;
|
|
8
8
|
export declare const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
@@ -5,17 +5,20 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
5
5
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
6
6
|
import { devtools } from "zustand/middleware";
|
|
7
7
|
import { immer } from "zustand/middleware/immer";
|
|
8
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.
|
|
9
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.
|
|
8
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.41e89676.js";
|
|
9
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.6024578a.js";
|
|
10
10
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.1607c78e.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
12
|
-
import
|
|
12
|
+
import "clsx";
|
|
13
|
+
import "../../../GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
14
|
+
import { z as isEqualLayouts } from "../../../GridLayout/index.68093cfb.js";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.c32210fc.js";
|
|
17
|
+
import "fast-equals";
|
|
13
18
|
import { debounce, cloneDeep } from "lodash";
|
|
14
|
-
import { A as isEqualLayouts } from "../../../GridLayout/index.e8c04242.js";
|
|
15
19
|
import { useNavigate } from "react-router-dom";
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
const MARGIN_GRIDLAYOUT = 4;
|
|
20
|
+
const PADDING_GRIDLAYOUT = 8;
|
|
21
|
+
const MARGIN_GRIDLAYOUT = 8;
|
|
19
22
|
const DEBOUCED_SAVE_TIME = 500;
|
|
20
23
|
const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
21
24
|
const COOKIE_WINDOWS = "windows";
|
|
@@ -398,7 +401,6 @@ const createAreasStore = (initProps) => {
|
|
|
398
401
|
},
|
|
399
402
|
areaActions: {
|
|
400
403
|
addWindow: (newWindowProps) => {
|
|
401
|
-
console.log("se ejecut\xF3 addWindow");
|
|
402
404
|
const windowId = `${get().currentAreaId}_window_${new Date().getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
403
405
|
if (newWindowProps.emergeType === "layout" || newWindowProps.emergeType === "popup") {
|
|
404
406
|
get().areaActions.addLayout(
|
|
@@ -429,8 +431,6 @@ const createAreasStore = (initProps) => {
|
|
|
429
431
|
if (!area) {
|
|
430
432
|
return;
|
|
431
433
|
}
|
|
432
|
-
console.log("state data", state);
|
|
433
|
-
console.log("area data", area.layoutItemsIds);
|
|
434
434
|
if (newWindowProps.replaceMeId) {
|
|
435
435
|
for (let index = 0; index < area.layoutItemsIds.length; index++) {
|
|
436
436
|
const key = area.layoutItemsIds[index];
|
|
@@ -640,11 +640,6 @@ const createAreasStore = (initProps) => {
|
|
|
640
640
|
}
|
|
641
641
|
},
|
|
642
642
|
onContainerChange: (areaId, e) => {
|
|
643
|
-
console.log(
|
|
644
|
-
`onContainerChange [${e.containerWidth}, ${e.containerHeight}] Store`,
|
|
645
|
-
areaId,
|
|
646
|
-
e.breakpoint
|
|
647
|
-
);
|
|
648
643
|
set((state) => {
|
|
649
644
|
state.hashAreas[areaId].containerHeight = e.containerHeight;
|
|
650
645
|
state.hashAreas[areaId].currentBreakpoint = e.breakpoint;
|
|
@@ -937,7 +932,6 @@ const createAreasStore = (initProps) => {
|
|
|
937
932
|
hw2.timeStart = new Date().getTime();
|
|
938
933
|
hw2.percentExecuted = 0;
|
|
939
934
|
hw2.timer = setInterval(() => {
|
|
940
|
-
console.log("toast timer edit tick");
|
|
941
935
|
set((state3) => {
|
|
942
936
|
verifyRemoveToasty(
|
|
943
937
|
state3.hashWindows[windowId],
|
|
@@ -1071,7 +1065,6 @@ function AreasProvider(props) {
|
|
|
1071
1065
|
const addWindow = useCallback((newWindow) => {
|
|
1072
1066
|
const currentAreaId = areasStoreRef.current?.getState().currentAreaId;
|
|
1073
1067
|
const areas = areasStoreRef.current?.getState().areasIds;
|
|
1074
|
-
console.log("newWindow argument", newWindow);
|
|
1075
1068
|
if (currentAreaId && areas) {
|
|
1076
1069
|
areasStoreRef.current?.getState().areaActions.addWindow(newWindow);
|
|
1077
1070
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { A as AreasContext } from "../../contexts/AreasContext/index.
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.9c8e3b41.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|