@m4l/components 0.2.25 → 0.2.27
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 +3 -0
- package/components/AccountPopover/{index.505e278a.js → index.3994a80b.js} +2 -2
- package/components/AppBar/{index.7106417d.js → index.23323f96.js} +3 -4
- package/components/CommonActions/components/ActionCancel/{index.de862adf.js → index.bd767c14.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.3fd5c858.js → index.d737bddc.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.07394f62.js → index.d5b80747.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.79fc2386.js → index.9bd56cd0.js} +2 -2
- package/components/CommonActions/components/Actions/{index.2f6286eb.js → index.16946bfd.js} +12 -13
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.36270dd1.js → index.29cf6542.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.8b008692.js → index.2c4fd22e.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.cb308086.js → index.e30c976f.js} +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/{index.f3d6036f.js → index.4335c26b.js} +1 -1
- package/components/DataGrid/{index.b1eafce1.js → index.a3792770.js} +4 -5
- package/components/DataGrid/subcomponents/Actions/{index.9af87fa1.js → index.a317b384.js} +11 -12
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.91380a55.js → index.eac1749c.js} +12 -1
- package/components/DragResizeWindow/{index.051c743d.js → index.bf1a4a47.js} +2 -3
- package/components/DynamicFilter/{index.b93e5649.js → index.cce92677.js} +19 -17
- package/components/FieldLabel/FieldLabel.d.ts +2 -0
- package/components/FieldLabel/classes/constants.d.ts +1 -0
- package/components/FieldLabel/classes/index.d.ts +10 -0
- package/components/FieldLabel/classes/types.d.ts +11 -0
- package/components/FieldLabel/index.8d3d6bb4.js +82 -0
- package/components/FieldLabel/index.d.ts +1 -0
- package/components/FieldLabel/types.d.ts +8 -0
- package/components/GridLayout/subcomponents/Responsive/{index.0fd1b7f8.js → index.d2ec9ddb.js} +1 -0
- package/components/GridLayout/subcomponents/SizeProvider/{index.7669a2cd.js → index.06986ab4.js} +9 -5
- package/components/HamburgerMenu/{index.25029e23.js → index.06905db3.js} +2 -2
- package/components/Icon/{index.b920baf8.js → index.58eaf354.js} +8 -48
- package/components/Icon/types.d.ts +0 -5
- package/components/Image/classes/index.d.ts +7 -0
- package/components/Image/{utils/classes → classes}/types.d.ts +0 -5
- package/components/Image/index.fa98eb78.js +203 -0
- package/components/Image/tests/utils.d.ts +1 -1
- package/components/Image/types.d.ts +3 -43
- package/components/LanguagePopover/{index.e54c5cc7.js → index.2740fb8e.js} +3 -4
- package/components/LoadingError/{index.123e16f8.js → index.4f4724c4.js} +2 -2
- package/components/MFLoader/{index.52096ea5.js → index.f6a46c70.js} +1 -1
- package/components/ModalDialog/{index.2e931b5f.js → index.86de725b.js} +3 -3
- package/components/NoItemSelected/{index.1024b856.js → index.aa3679f1.js} +2 -3
- package/components/ObjectLogs/{index.d10f4a2f.js → index.0e365006.js} +7 -8
- package/components/PDFViewer/{index.98852f91.js → index.85d4e010.js} +1 -1
- package/components/Page/{index.def863f2.js → index.aa33f20b.js} +1 -1
- package/components/PaperForm/{index.8a617a66.js → index.b6811634.js} +2 -3
- package/components/Period/classes/index.d.ts +3 -1
- package/components/Period/classes/types.d.ts +6 -1
- package/components/Period/{index.d80dff10.js → index.ba79014c.js} +76 -61
- package/components/Period/subcomponents/SkeletonPeriod/index.d.ts +2 -0
- package/components/Period/subcomponents/SkeletonPeriod/types.d.ts +4 -0
- package/components/Period/types.d.ts +4 -1
- package/components/PrintingSystem/{index.2e17cae5.js → index.b3ed9375.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.c5ffe20a.js → index.7a5c7bdd.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.020c037c.js → index.85914c4b.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.78b023bb.js → index.45284722.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.b29fc1e9.js → index.a83e65dc.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.11626284.js → index.cb7d0af9.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.ef44c8ab.js → index.d67484e5.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.d72d224b.js → index.ab17815a.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8e53440c.js → index.8a2617ae.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.0b66458e.js → index.2c52ee12.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.b4c72fef.js → index.f0ac0243.js} +1 -1
- package/components/PropertyValue/{index.3b6670d4.js → index.a3527d10.js} +2 -3
- package/components/Resizeable/{index.0eb66c37.js → index.8db8f77d.js} +1 -1
- package/components/ScrollBar/{index.010f1b9d.js → index.7dfc2f29.js} +4 -3
- package/components/ScrollBar/index.d.ts +2 -2
- package/components/SideBar/classes/index.d.ts +7 -2
- package/components/SideBar/classes/types.d.ts +6 -1
- package/components/SideBar/constants.d.ts +2 -0
- package/components/SideBar/context/sideBarContext/types.d.ts +3 -1
- package/components/SideBar/{index.cdb70977.js → index.0d49daff.js} +255 -427
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.d.ts +1 -0
- package/components/SideBar/types.d.ts +1 -4
- package/components/SplitLayout/{index.30fd5861.js → index.3856385c.js} +1 -2
- package/components/ToastContainer/{index.97fdba82.js → index.b42aca02.js} +2 -2
- package/components/areas/components/AreasAdmin/{index.e4f0ccc1.js → index.6d902d47.js} +17 -18
- package/components/areas/components/AreasViewer/{index.f87c63ca.js → index.2a286dfa.js} +120 -221
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/index.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/types.d.ts +3 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.3e3d8c62.js → index.3eb6b2a4.js} +5 -5
- package/components/areas/hooks/useAreas/{index.b18fe111.js → index.febe901b.js} +1 -1
- package/components/commercial/TopBar/{index.8e2163f7.js → index.08853566.js} +5 -18
- package/components/formatters/BooleanFormatter/{index.b3052107.js → index.4bb3d2f9.js} +2 -2
- package/components/formatters/PointsFormatter/{index.5c94c5e8.js → index.8a4fa393.js} +4 -4
- package/components/formatters/{index.95cc337e.js → index.3e9e2305.js} +1 -1
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +1 -0
- package/components/hook-form/RHFAutocomplete/{index.cf399b24.js → index.f9be5465.js} +41 -23
- package/components/hook-form/RHFAutocomplete/types.d.ts +7 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.b2b75475.js → index.c01fd38a.js} +2 -3
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +2 -0
- package/components/hook-form/RHFCheckbox/{index.a38715e3.js → index.4f650b78.js} +37 -10
- package/components/hook-form/RHFCheckbox/types.d.ts +4 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +8 -0
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +4 -0
- package/components/hook-form/RHFColorPicker/dictionary.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/index.5be9e237.js +206 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +2 -8
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFColorPicker/types.d.ts +13 -2
- package/components/hook-form/RHFDateTime/classes/types.d.ts +3 -0
- package/components/hook-form/RHFDateTime/{index.5a673a96.js → index.ace3f52e.js} +52 -47
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/types.d.ts +3 -2
- package/components/hook-form/RHFDateTime/types.d.ts +4 -2
- package/components/hook-form/RHFPeriod/classes/index.d.ts +2 -1
- package/components/hook-form/RHFPeriod/classes/types.d.ts +2 -0
- package/components/hook-form/RHFPeriod/index.88812636.js +112 -0
- package/components/hook-form/RHFPeriod/types.d.ts +7 -1
- package/components/hook-form/RHFTextField/classes/types.d.ts +1 -0
- package/components/hook-form/RHFTextField/{index.fbb29ee1.js → index.d4192912.js} +40 -25
- package/components/hook-form/RHFTextField/types.d.ts +4 -3
- package/components/hook-form/RHFTextFieldPassword/types.d.ts +0 -1
- package/components/hook-form/RHFUpload/{index.05d7e2a7.js → index.f7efd0e2.js} +4 -5
- package/components/hook-form/index.d.ts +1 -1
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.998b8a38.js → WindowBase.4881da1f.js} +3 -3
- package/components/modal/{WindowConfirm.55ac3c8f.js → WindowConfirm.3b0e842b.js} +6 -6
- package/components/mui_extended/Accordion/{index.fb4eb664.js → index.a32a5761.js} +2 -2
- package/components/mui_extended/Button/{index.e520bd15.js → index.81367a73.js} +3 -7
- package/components/mui_extended/CheckBox/types.d.ts +2 -1
- package/components/mui_extended/{CheckBox.e662d20c.js → CheckBox.b3c0f2ad.js} +21 -23
- package/components/mui_extended/IconButton/classes/types.d.ts +0 -1
- package/components/mui_extended/IconButton/{index.9ea23f87.js → index.32fc9419.js} +2 -5
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/ImageButton/ImageButton.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.fa7c26a5.js → index.fdea20e7.js} +4 -5
- package/components/mui_extended/Pager/{index.0c703574.js → index.c843dde3.js} +2 -3
- package/components/mui_extended/Popover/{index.b3eca6b1.js → index.d85de73b.js} +1 -2
- package/components/mui_extended/Tab/{index.409b9c74.js → index.2068925d.js} +2 -3
- package/components/mui_extended/ToggleButton/{index.bcaea74b.js → index.3d71f374.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.131772d7.js → index.1cff26af.js} +1 -1
- package/contexts/ModalContext/{index.978a412d.js → index.e748f329.js} +1 -1
- package/contexts/RHFormContext/{index.7769076a.js → index.7b2a8723.js} +1 -2
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/{index.4caddd24.js → index.5c3d8e48.js} +2 -2
- package/hooks/useFormFocus/index.d.ts +7 -0
- package/hooks/useFormFocus/types.d.ts +8 -0
- package/hooks/useModal/{index.786a4439.js → index.66a0c82e.js} +1 -1
- package/hooks/useTab/{index.eee18a49.js → index.c0564138.js} +1 -1
- package/index.js +124 -120
- package/{node_modules.71622512.js → node_modules.47f7709b.js} +1 -1
- package/package.json +1 -1
- package/{vendor.a735310a.js → vendor.47f1f3d4.js} +90 -70
- package/components/Image/index.d034ca68.js +0 -388
- package/components/Image/subcomponents/BasicIntersectComponent/index.d.ts +0 -3
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +0 -7
- package/components/Image/subcomponents/Skeleton/index.d.ts +0 -2
- package/components/Image/subcomponents/Skeleton/types.d.ts +0 -6
- package/components/Image/utils/classes/index.d.ts +0 -12
- package/components/Image/utils/isIntersectionObserverAvailable.d.ts +0 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/types.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/type.d.ts +0 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/skeleton.d.ts +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +0 -2
- package/components/hook-form/RHFColorPicker/index.48a1ee1b.js +0 -153
- package/components/hook-form/RHFPeriod/index.4205c8ab.js +0 -76
- package/components/mui_extended/Popover/index.d.ts +0 -2
- /package/components/Image/{utils/classes → classes}/constant.d.ts +0 -0
package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ declare type CollapseButtonProps = {
|
|
|
11
11
|
* @param {VoidFunction} props.collapsed - Variable que guarda el estado de colapsado en desktop
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
export default function
|
|
14
|
+
export default function FooterSidebar(_props: CollapseButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ContentComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,8 +9,6 @@ export interface LogoConainerProps {
|
|
|
9
9
|
* Propiedades para el componente WrapperSideBar.
|
|
10
10
|
*/
|
|
11
11
|
export interface WrapperSideBarProps {
|
|
12
|
-
/** Ancho de la barra lateral.*/
|
|
13
|
-
width: string | number;
|
|
14
12
|
/** Indica si la barra lateral está visible.*/
|
|
15
13
|
visible: boolean;
|
|
16
14
|
}
|
|
@@ -47,8 +45,7 @@ export interface SideBarProps {
|
|
|
47
45
|
visible: boolean;
|
|
48
46
|
companyLogoSmallUrl?: string;
|
|
49
47
|
companyLogoNormalUrl?: string;
|
|
50
|
-
|
|
51
|
-
unCollapsedWidht?: string | number;
|
|
48
|
+
expandedWidth?: string | number;
|
|
52
49
|
companyName?: string;
|
|
53
50
|
variantStyle?: 'variantDefault' | 'variantComercial';
|
|
54
51
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { styled } from "@mui/material
|
|
2
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
1
|
+
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
3
|
import clsx from "clsx";
|
|
5
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses } from "@mui/material";
|
|
2
|
-
import { A } from "../../node_modules.
|
|
2
|
+
import { A } from "../../node_modules.47f7709b.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
6
6
|
import { useEnvironment } from "@m4l/core";
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
-
import { I as Icon } from "../Icon/index.
|
|
8
|
+
import { I as Icon } from "../Icon/index.58eaf354.js";
|
|
9
9
|
const ToastContainerRoot = styled("div")(({ theme }) => ({
|
|
10
10
|
...theme.components?.M4LToastContainer?.styleOverrides
|
|
11
11
|
}));
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
1
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.febe901b.js";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useRef, useMemo } from "react";
|
|
4
4
|
import * as Yup from "yup";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
6
|
+
import { generateUtilityClasses, styled, useTheme } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
9
9
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
10
10
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
12
|
-
import { styled } from "@mui/material/styles";
|
|
13
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
13
|
import { shallow } from "zustand/shallow";
|
|
15
14
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
16
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
17
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
18
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
19
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
20
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
21
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
22
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
23
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.
|
|
15
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.fdea20e7.js";
|
|
16
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.7b2a8723.js";
|
|
17
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.d4192912.js";
|
|
18
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.16946bfd.js";
|
|
19
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.bd767c14.js";
|
|
20
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.9bd56cd0.js";
|
|
21
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.32fc9419.js";
|
|
22
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.d85de73b.js";
|
|
24
23
|
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
25
|
-
import { S as ScrollBar } from "../../../ScrollBar/index.
|
|
24
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.7dfc2f29.js";
|
|
26
25
|
import TouchRipple from "@mui/material/ButtonBase/TouchRipple";
|
|
27
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
28
|
-
import { I as Icon } from "../../../Icon/index.
|
|
26
|
+
import { B as Button } from "../../../mui_extended/Button/index.81367a73.js";
|
|
27
|
+
import { I as Icon } from "../../../Icon/index.58eaf354.js";
|
|
29
28
|
import { u as useOnClickOutside } from "../../index.4cc6a221.js";
|
|
30
29
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
31
30
|
"root",
|
|
@@ -240,7 +239,7 @@ const AreaChip = (props) => {
|
|
|
240
239
|
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
241
240
|
className: areasAdminClasses.areaChipEditButton,
|
|
242
241
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
243
|
-
size: "
|
|
242
|
+
size: "small",
|
|
244
243
|
onClick: (e) => {
|
|
245
244
|
handlerOpenPopoverEditArea(e);
|
|
246
245
|
},
|
|
@@ -248,7 +247,7 @@ const AreaChip = (props) => {
|
|
|
248
247
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
249
248
|
className: areasAdminClasses.areaChipDeleteButton,
|
|
250
249
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
251
|
-
size: "
|
|
250
|
+
size: "small",
|
|
252
251
|
onClick: (e) => {
|
|
253
252
|
onClickDeleteArea(e);
|
|
254
253
|
},
|
|
@@ -433,14 +432,14 @@ const ChipMobile = (props) => {
|
|
|
433
432
|
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
434
433
|
className: areasAdminClasses.areaChipEditButton,
|
|
435
434
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
436
|
-
size: "
|
|
435
|
+
size: "small",
|
|
437
436
|
onClick: (e) => {
|
|
438
437
|
handlerOpenPopoverEditArea(e);
|
|
439
438
|
}
|
|
440
439
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
441
440
|
className: areasAdminClasses.areaChipDeleteButton,
|
|
442
441
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
443
|
-
size: "
|
|
442
|
+
size: "small",
|
|
444
443
|
onClick: (e) => {
|
|
445
444
|
onClickDeleteArea(e);
|
|
446
445
|
}
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { styled } from "@mui/material
|
|
1
|
+
import { generateUtilityClasses, styled, Skeleton, Dialog } from "@mui/material";
|
|
2
2
|
import { r as react_resizable_css } from "../../../../react-resizable.ee028152.js";
|
|
3
|
-
import { generateUtilityClasses, Skeleton, Dialog } from "@mui/material";
|
|
4
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
4
|
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
6
5
|
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
7
6
|
import { shallow } from "zustand/shallow";
|
|
8
|
-
import React__default, { useMemo, useEffect } from "react";
|
|
7
|
+
import React__default, { useMemo, useRef, useEffect } from "react";
|
|
9
8
|
import clsx from "clsx";
|
|
10
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
9
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.febe901b.js";
|
|
11
10
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
|
-
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.fdea20e7.js";
|
|
12
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
13
|
+
import { useResponsiveDesktop, useResponsiveRelativeStore, ResponsiveRelativeProvider } from "@m4l/graphics";
|
|
15
14
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
16
15
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
17
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
16
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.32fc9419.js";
|
|
18
17
|
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
19
|
-
import { I as Icon } from "../../../Icon/index.
|
|
18
|
+
import { I as Icon } from "../../../Icon/index.58eaf354.js";
|
|
20
19
|
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
21
|
-
import { M as MFLoader } from "../../../MFLoader/index.
|
|
20
|
+
import { M as MFLoader } from "../../../MFLoader/index.f6a46c70.js";
|
|
22
21
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
23
22
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
24
23
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
25
24
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
26
25
|
import { g as getNameDataTestId } from "../../../../test/getNameDataTestId.14875ec7.js";
|
|
27
|
-
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.
|
|
28
|
-
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.
|
|
29
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
26
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.3eb6b2a4.js";
|
|
27
|
+
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.06986ab4.js";
|
|
28
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.d2ec9ddb.js";
|
|
30
29
|
import { useLocation } from "react-router-dom";
|
|
31
|
-
import { L as LoadingError } from "../../../LoadingError/index.
|
|
30
|
+
import { L as LoadingError } from "../../../LoadingError/index.4f4724c4.js";
|
|
32
31
|
import { c as cjs } from "../../../../react-draggable.ee21cb7e.js";
|
|
33
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.
|
|
32
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index.8db8f77d.js";
|
|
34
33
|
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
35
34
|
"root",
|
|
36
35
|
"areaRoot",
|
|
@@ -238,151 +237,72 @@ const AreasViewerRoot = styled("div")`
|
|
|
238
237
|
|
|
239
238
|
${(props) => props.theme.components?.M4LAreasViewer?.styleOverrides}
|
|
240
239
|
`;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
"& .splitactions.Mui-disabled": {
|
|
262
|
-
color: theme.palette.primary.main
|
|
263
|
-
},
|
|
264
|
-
"& svg ": {
|
|
265
|
-
width: "20px",
|
|
266
|
-
height: "20px"
|
|
267
|
-
}
|
|
268
|
-
}));
|
|
269
|
-
const Wrapper = styled("div")(({
|
|
270
|
-
theme
|
|
271
|
-
}) => ({
|
|
272
|
-
display: "flex",
|
|
273
|
-
justifyContent: "space-between",
|
|
274
|
-
padding: `0 0`,
|
|
275
|
-
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
276
|
-
minHeight: "60px"
|
|
277
|
-
}));
|
|
278
|
-
const ModuleTitleContent = styled("div")(({
|
|
279
|
-
theme
|
|
280
|
-
}) => ({
|
|
281
|
-
display: "grid",
|
|
282
|
-
gridTemplateColumns: "auto",
|
|
283
|
-
gridGap: theme.spacing(1.75),
|
|
284
|
-
alignItems: "center",
|
|
285
|
-
width: "auto",
|
|
286
|
-
height: "auto",
|
|
287
|
-
[theme.breakpoints.up("sm")]: {
|
|
288
|
-
gridTemplateColumns: "repeat(3, auto)"
|
|
289
|
-
}
|
|
290
|
-
}));
|
|
291
|
-
const ModuleTitle = styled("div")(({
|
|
292
|
-
theme
|
|
293
|
-
}) => ({
|
|
294
|
-
display: "grid",
|
|
295
|
-
gridTemplateColumns: `${theme.spacing(3)} auto`,
|
|
296
|
-
gridGap: theme.spacing(2),
|
|
297
|
-
alignItems: "center",
|
|
298
|
-
width: "auto",
|
|
299
|
-
height: "auto"
|
|
300
|
-
}));
|
|
301
|
-
const Separator = styled("div")(({
|
|
302
|
-
theme
|
|
303
|
-
}) => ({
|
|
304
|
-
display: "none",
|
|
305
|
-
alignItems: "center",
|
|
306
|
-
width: "1px",
|
|
307
|
-
background: theme.palette.divider,
|
|
308
|
-
height: "100%",
|
|
309
|
-
margin: `0 ${theme.spacing(2)}`,
|
|
310
|
-
[theme.breakpoints.up("sm")]: {
|
|
311
|
-
display: "flex"
|
|
312
|
-
}
|
|
313
|
-
}));
|
|
314
|
-
const Breadcrumbs = styled("div")(({
|
|
315
|
-
theme
|
|
316
|
-
}) => ({
|
|
317
|
-
display: "grid",
|
|
318
|
-
alignItems: "center",
|
|
319
|
-
gridTemplateColumns: `repeat(3, auto)`,
|
|
320
|
-
gridGap: theme.spacing(2)
|
|
321
|
-
}));
|
|
322
|
-
const ModuleActions = styled("div")(({
|
|
323
|
-
theme
|
|
324
|
-
}) => ({
|
|
325
|
-
display: "grid",
|
|
326
|
-
gridTemplateColumns: "auto",
|
|
327
|
-
alignItems: "center",
|
|
328
|
-
width: "auto",
|
|
329
|
-
height: "auto",
|
|
330
|
-
[theme.breakpoints.up("sm")]: {
|
|
331
|
-
gridTemplateColumns: `repeat(3, ${theme.spacing(3)})`,
|
|
332
|
-
gridGap: theme.spacing(2)
|
|
333
|
-
}
|
|
334
|
-
}));
|
|
335
|
-
function SKTModuleHeader() {
|
|
336
|
-
const isDesktop = useResponsiveDesktop();
|
|
337
|
-
return /* @__PURE__ */ jsxs(Wrapper, {
|
|
338
|
-
id: "HeaderSkeleton",
|
|
339
|
-
children: [/* @__PURE__ */ jsxs(ModuleTitleContent, {
|
|
340
|
-
children: [/* @__PURE__ */ jsxs(ModuleTitle, {
|
|
341
|
-
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
342
|
-
variant: "circular",
|
|
343
|
-
width: 24,
|
|
344
|
-
height: 24
|
|
345
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
346
|
-
variant: "text",
|
|
347
|
-
width: 120,
|
|
348
|
-
height: 14
|
|
349
|
-
})]
|
|
350
|
-
}), /* @__PURE__ */ jsx(Separator, {}), /* @__PURE__ */ jsxs(Breadcrumbs, {
|
|
351
|
-
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
352
|
-
variant: "text",
|
|
353
|
-
width: 68,
|
|
354
|
-
height: 14
|
|
355
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
356
|
-
variant: "circular",
|
|
357
|
-
width: 4,
|
|
358
|
-
height: 4
|
|
359
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
240
|
+
function WindowHeaderSkeleton(props) {
|
|
241
|
+
const {
|
|
242
|
+
colapsed
|
|
243
|
+
} = props;
|
|
244
|
+
return /* @__PURE__ */ jsx("div", {
|
|
245
|
+
className: clsx(areasViewerClasses.windowHeader),
|
|
246
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
247
|
+
className: areasViewerClasses.windowHeaderContent,
|
|
248
|
+
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
249
|
+
variant: "circular",
|
|
250
|
+
sx: {
|
|
251
|
+
margin: "0 5px",
|
|
252
|
+
minWidth: "18px",
|
|
253
|
+
minHeight: "18px"
|
|
254
|
+
}
|
|
255
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
256
|
+
style: {
|
|
257
|
+
width: "100%"
|
|
258
|
+
},
|
|
259
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
360
260
|
variant: "text",
|
|
361
|
-
width:
|
|
362
|
-
height:
|
|
363
|
-
})
|
|
364
|
-
})
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
261
|
+
width: 80,
|
|
262
|
+
height: 16
|
|
263
|
+
})
|
|
264
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
265
|
+
className: areasViewerClasses.windowHeaderCancelHandle,
|
|
266
|
+
children: !colapsed && /* @__PURE__ */ jsxs(Fragment, {
|
|
267
|
+
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
268
|
+
variant: "circular",
|
|
269
|
+
sx: {
|
|
270
|
+
margin: "0 5px",
|
|
271
|
+
minWidth: "16px",
|
|
272
|
+
minHeight: "16px"
|
|
273
|
+
}
|
|
274
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
275
|
+
variant: "circular",
|
|
276
|
+
sx: {
|
|
277
|
+
margin: "0 5px",
|
|
278
|
+
minWidth: "16px",
|
|
279
|
+
minHeight: "16px"
|
|
280
|
+
}
|
|
281
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
282
|
+
variant: "circular",
|
|
283
|
+
sx: {
|
|
284
|
+
margin: "0 5px",
|
|
285
|
+
minWidth: "16px",
|
|
286
|
+
minHeight: "16px"
|
|
287
|
+
}
|
|
288
|
+
})]
|
|
289
|
+
})
|
|
290
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
381
291
|
variant: "circular",
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
292
|
+
sx: {
|
|
293
|
+
margin: "0 5px",
|
|
294
|
+
minWidth: "16px",
|
|
295
|
+
minHeight: "16px"
|
|
296
|
+
}
|
|
297
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
298
|
+
variant: "circular",
|
|
299
|
+
sx: {
|
|
300
|
+
margin: "0 5px",
|
|
301
|
+
minWidth: "16px",
|
|
302
|
+
minHeight: "16px"
|
|
303
|
+
}
|
|
304
|
+
})]
|
|
305
|
+
})
|
|
386
306
|
});
|
|
387
307
|
}
|
|
388
308
|
function getMainActions(isDesktop, moduleActions) {
|
|
@@ -481,38 +401,6 @@ function MainActions(props) {
|
|
|
481
401
|
})
|
|
482
402
|
});
|
|
483
403
|
}
|
|
484
|
-
const WindowPopUpsList = (props) => {
|
|
485
|
-
const {
|
|
486
|
-
areaId,
|
|
487
|
-
windowId
|
|
488
|
-
} = props;
|
|
489
|
-
const windowsPopUps = useAreasStore((state) => state.hashAreas[areaId].layoutItemsIds.filter((li) => state.hashWindows[li].parentLayoutId === windowId && state.hashWindows[li].emergeType === "popup").map((lim) => {
|
|
490
|
-
const w = state.hashWindows[lim];
|
|
491
|
-
return {
|
|
492
|
-
i: w.windowId,
|
|
493
|
-
url_icon: w.url_icon,
|
|
494
|
-
title: w.title
|
|
495
|
-
};
|
|
496
|
-
}), shallow);
|
|
497
|
-
const {
|
|
498
|
-
maximizeLayout
|
|
499
|
-
} = useAreasStore((state) => state.areaActions);
|
|
500
|
-
const onTouched = (layoutId) => {
|
|
501
|
-
maximizeLayout(areaId, layoutId);
|
|
502
|
-
};
|
|
503
|
-
const menuActions = windowsPopUps ? windowsPopUps.map((element) => {
|
|
504
|
-
return {
|
|
505
|
-
onClick: () => onTouched(element.i),
|
|
506
|
-
label: element.title,
|
|
507
|
-
urlIcon: element.url_icon
|
|
508
|
-
};
|
|
509
|
-
}) : null;
|
|
510
|
-
if (menuActions && menuActions.length > 0) {
|
|
511
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
512
|
-
} else {
|
|
513
|
-
return null;
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
404
|
function Header(props) {
|
|
517
405
|
const {
|
|
518
406
|
areaId,
|
|
@@ -593,7 +481,7 @@ function Header(props) {
|
|
|
593
481
|
e.stopPropagation();
|
|
594
482
|
};
|
|
595
483
|
if (isSkeleton) {
|
|
596
|
-
return /* @__PURE__ */ jsx(
|
|
484
|
+
return /* @__PURE__ */ jsx(WindowHeaderSkeleton, {});
|
|
597
485
|
}
|
|
598
486
|
return /* @__PURE__ */ jsxs("div", {
|
|
599
487
|
className: clsx(areasViewerClasses.windowHeader, "m4l_draggable_handle"),
|
|
@@ -610,10 +498,7 @@ function Header(props) {
|
|
|
610
498
|
className: areasViewerClasses.windowHeaderCancelHandle,
|
|
611
499
|
children: [!colapsed && /* @__PURE__ */ jsx(MainActions, {
|
|
612
500
|
windowId
|
|
613
|
-
}), !colapsed
|
|
614
|
-
areaId,
|
|
615
|
-
windowId
|
|
616
|
-
}) : null, !colapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(MemonizedMenuActions, {
|
|
501
|
+
}), !colapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(MemonizedMenuActions, {
|
|
617
502
|
arrowType: "no-arrow",
|
|
618
503
|
marginTop: "12px!important",
|
|
619
504
|
marginLeft: "14px!important",
|
|
@@ -651,6 +536,8 @@ function Header(props) {
|
|
|
651
536
|
});
|
|
652
537
|
}
|
|
653
538
|
const MicroFrontend = (props) => {
|
|
539
|
+
const breakPoint = useResponsiveRelativeStore((state) => state.breakPoint, shallow);
|
|
540
|
+
console.log("test breakPoint", breakPoint);
|
|
654
541
|
return /* @__PURE__ */ jsx(MFLoader, {
|
|
655
542
|
...props
|
|
656
543
|
});
|
|
@@ -845,6 +732,7 @@ const Window = (props) => {
|
|
|
845
732
|
const selected = useAreasStore((state) => {
|
|
846
733
|
return emergeType === "layout" ? state.hashAreas[areaId]?.currentLayoutId : state.hashAreas[areaId]?.currentPopUpId;
|
|
847
734
|
}) === windowId;
|
|
735
|
+
const observedDivRef = useRef(null);
|
|
848
736
|
const mfProps = useAreasStore((state) => state.hashWindows[windowId]?.mfProps, shallow);
|
|
849
737
|
const component = useAreasStore((state) => state.hashWindows[windowId]?.component, shallow);
|
|
850
738
|
const loading = useAreasStore((state) => state.hashWindows[windowId]?.loading, shallow);
|
|
@@ -907,32 +795,43 @@ const Window = (props) => {
|
|
|
907
795
|
...process.env.NODE_ENV !== "production" ? {
|
|
908
796
|
[TEST_PROP_ID]: getNameDataTestId(AREAS_VIEWER_CLASS_NAME, "windowRoot", `${emergeType}`)
|
|
909
797
|
} : {},
|
|
910
|
-
children: /* @__PURE__ */
|
|
911
|
-
|
|
912
|
-
children:
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
areasViewerClasses.
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
798
|
+
children: /* @__PURE__ */ jsx(ResponsiveRelativeProvider, {
|
|
799
|
+
observedDivRef,
|
|
800
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
801
|
+
ref: observedDivRef,
|
|
802
|
+
className: "div-breakpoint-observer",
|
|
803
|
+
style: {
|
|
804
|
+
width: "100%",
|
|
805
|
+
height: "100%"
|
|
806
|
+
},
|
|
807
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
808
|
+
className: areasViewerClasses.windowRootContainer,
|
|
809
|
+
children: [/* @__PURE__ */ jsx(Header, {
|
|
810
|
+
areaId,
|
|
811
|
+
windowId,
|
|
812
|
+
emergeType
|
|
813
|
+
}), /* @__PURE__ */ jsx(Toasties, {
|
|
814
|
+
windowId
|
|
815
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
816
|
+
className: clsx(
|
|
817
|
+
areasViewerClasses.windowContent
|
|
818
|
+
),
|
|
819
|
+
children: [status === "init" ? /* @__PURE__ */ jsx(Fragment, {
|
|
820
|
+
children: "Cargando..."
|
|
821
|
+
}) : null, status === "loaded" ? winType === "microfrontend" ? /* @__PURE__ */ jsx(MemonizedMicroFrontend, {
|
|
822
|
+
moduleId,
|
|
823
|
+
dynamicMFStore,
|
|
824
|
+
windowTools,
|
|
825
|
+
...mfProps
|
|
826
|
+
}) : /* @__PURE__ */ jsx(Component, {
|
|
827
|
+
moduleId,
|
|
828
|
+
dynamicMFStore,
|
|
829
|
+
windowTools,
|
|
830
|
+
component
|
|
831
|
+
}) : null]
|
|
832
|
+
})]
|
|
833
|
+
})
|
|
834
|
+
})
|
|
936
835
|
})
|
|
937
836
|
});
|
|
938
837
|
};
|
|
@@ -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 = 10;
|
|
5
|
+
export declare const MARGIN_GRIDLAYOUT = 10;
|
|
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,17 @@ 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.2a286dfa.js";
|
|
9
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.6d902d47.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 { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
12
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.d2ec9ddb.js";
|
|
13
13
|
import { debounce, cloneDeep } from "lodash";
|
|
14
14
|
import { A as isEqualLayouts } from "../../../GridLayout/index.0996cd19.js";
|
|
15
15
|
import { useNavigate } from "react-router-dom";
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
17
|
-
const PADDING_GRIDLAYOUT =
|
|
18
|
-
const MARGIN_GRIDLAYOUT =
|
|
17
|
+
const PADDING_GRIDLAYOUT = 10;
|
|
18
|
+
const MARGIN_GRIDLAYOUT = 10;
|
|
19
19
|
const DEBOUCED_SAVE_TIME = 500;
|
|
20
20
|
const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
21
21
|
const COOKIE_WINDOWS = "windows";
|
|
@@ -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.3eb6b2a4.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|