@m4l/components 0.1.76 → 0.1.78
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 +22 -3
- package/components/AccountPopover/{index.47cf6c43.js → index.7e76dbb7.js} +8 -7
- package/components/AppBar/{index.f04f5e45.js → index.06858422.js} +8 -7
- package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.d536ccfa.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.a915b105.js} +19 -19
- package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.14e65d6c.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.aa1648eb.js} +2 -2
- package/components/CommonActions/components/Actions/{index.e376a68e.js → index.52125041.js} +17 -18
- package/components/DataGrid/{index.ffaf000e.js → index.9fb3e6a1.js} +40 -31
- package/components/DataGrid/types.d.ts +5 -1
- package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
- package/components/DynamicFilter/constants.d.ts +1 -0
- package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +6 -1
- package/components/DynamicFilter/{index.d7c03a61.js → index.d1a2e2d1.js} +54 -47
- package/components/DynamicFilter/tests/contants.d.ts +2 -3
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/GridLayout/GridLayout.d.ts +6 -0
- package/components/GridLayout/Responsive/index.0905a698.js +353 -0
- package/components/GridLayout/WidthProvider/index.9a26dfe4.js +65 -0
- package/components/GridLayout/calculateUtils.d.ts +42 -0
- package/components/GridLayout/index.d.ts +6 -0
- package/components/GridLayout/index.da6fd387.js +1410 -0
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +26 -0
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +78 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +64 -0
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +69 -0
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
- package/components/GridLayout/types.d.ts +355 -0
- package/components/GridLayout/utils.d.ts +123 -0
- package/components/HelperText/{index.9864f773.js → index.a019742c.js} +8 -7
- package/components/Icon/{index.9dae8337.js → index.9fcd1476.js} +1 -1
- package/components/LanguagePopover/{index.938c6675.js → index.98b63dcb.js} +8 -7
- package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
- package/components/ModalDialog/{index.d9c5d400.js → index.d9937d46.js} +8 -56
- package/components/NavLink/{index.21c8fd90.js → index.a5dea6d3.js} +8 -7
- package/components/ObjectLogs/{index.a2709fc2.js → index.d9d20b9d.js} +27 -21
- package/components/ObjectLogs/types.d.ts +1 -0
- package/components/PaperForm/{index.5e1bc99f.js → index.ba38a0bd.js} +1 -1
- package/components/Period/{index.526791a3.js → index.7b94c418.js} +22 -23
- package/components/PropertyValue/constants.d.ts +3 -0
- package/components/PropertyValue/{index.8a1adf3e.js → index.45c73161.js} +17 -11
- package/components/PropertyValue/types.d.ts +2 -1
- package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
- package/components/SideBar/{index.9e1a5b96.js → index.2f497e6c.js} +5 -5
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +5 -0
- package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.43ecd998.js} +167 -81
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.14e62059.js} +326 -345
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
- package/components/areas/components/index.a87653a9.js +29 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +8 -16
- package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.02c4e7be.js} +262 -336
- package/components/areas/contexts/AreasContext/types.d.ts +22 -20
- package/components/areas/contexts/{index.1809650a.js → index.1ff9b360.js} +1 -1
- package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
- package/components/areas/dictionary.d.ts +4 -1
- package/components/areas/hooks/useAreas/{index.40917e99.js → index.85e4b2e2.js} +1 -1
- package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
- package/components/areas/icons.d.ts +4 -0
- package/components/areas/{index.9bd48013.js → index.d1dcccf5.js} +12 -11
- package/components/areas/types.d.ts +29 -22
- package/components/formatters/BooleanFormatter/{index.431dc923.js → index.e8de8e4c.js} +1 -1
- package/components/formatters/{index.e1af75e6.js → index.67aeb049.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.6aa51705.js} +25 -13
- package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.1a3dfe5f.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.a08a65b3.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.d330709b.js → index.4d671108.js} +10 -9
- package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.39b4be49.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e5336d09.js → index.9004e898.js} +5 -5
- package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.bed8573e.js} +9 -11
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.a0c0b322.js} +10 -9
- package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.6c063f2d.js} +19 -19
- package/components/modal/classes/index.d.ts +1 -0
- package/components/modal/classes/types.d.ts +1 -0
- package/components/modal/{index.1b25b61d.js → index.00efea85.js} +19 -17
- package/components/mui_extended/Accordion/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/{index.3faafd8b.js → index.9877f7bf.js} +8 -9
- package/components/mui_extended/Accordion/types.d.ts +1 -0
- package/components/mui_extended/Badge/Badge.d.ts +3 -0
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
- package/components/mui_extended/Badge/classes/index.d.ts +6 -0
- package/components/mui_extended/Badge/classes/types.d.ts +6 -0
- package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
- package/components/mui_extended/Badge/index.d.ts +2 -0
- package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
- package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +4 -0
- package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
- package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.12f1a3c3.js} +4 -1
- package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.43a2e1ae.js} +41 -13
- package/components/mui_extended/MenuActions/index.d.ts +3 -2
- package/components/mui_extended/MenuActions/types.d.ts +9 -0
- package/components/mui_extended/Pager/{index.67bda2c5.js → index.2f6d6d7d.js} +1 -1
- package/components/mui_extended/Tab/constant.d.ts +1 -0
- package/components/mui_extended/Tab/{index.9e2f6e34.js → index.7c82e43d.js} +5 -6
- package/components/mui_extended/Tab/types.d.ts +1 -0
- package/components/mui_extended/{index.73e536de.js → index.0e2ff642.js} +8 -7
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.699f95fa.js → index.e9a7ba4a.js} +1 -1
- package/hooks/useModal/{index.7b7d26ba.js → index.8e85f7ae.js} +1 -1
- package/index.js +228 -214
- package/node_modules.d73a220d.js +363 -0
- package/package.json +4 -3
- package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
- package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
- package/test/getNameDataTestId.d.ts +1 -0
- package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
- package/vendor.e353394b.js +124 -0
- package/components/DynamicFilter/tests/types.d.ts +0 -2
- package/components/DynamicFilter/tests/utils.d.ts +0 -2
- package/components/PropertyValue/tests/constants.d.ts +0 -1
- package/components/PropertyValue/tests/utils.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
- package/components/areas/components/index.2bb534cb.js +0 -28
- package/components/modal/ModalDialog/types.d.ts +0 -7
- package/components/mui_extended/Accordion/tests/constants.d.ts +0 -1
- package/components/mui_extended/Accordion/tests/utils.d.ts +0 -2
- package/components/mui_extended/Tab/tests/constants.d.ts +0 -1
- package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
|
@@ -3,17 +3,17 @@ import { useEnvironment } from "@m4l/core";
|
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
5
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { styled as styled$1, generateUtilityClasses, ListItemText, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
9
|
-
import { I as Icon, A as ArrowIcon } from "../Icon/index.
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.9fcd1476.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
13
13
|
import { S as ScrollBar } from "../ScrollBar/index.bbe48f4d.js";
|
|
14
14
|
import { styled, alpha } from "@mui/material/styles";
|
|
15
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
16
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
16
|
+
import { g as getComponentUtilityClass } from "../../utils/index.c43a95f4.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -850,8 +850,8 @@ const ContentDesktop = () => {
|
|
|
850
850
|
[TEST_PROP_ID]: getNameDataTestId("containerLogo")
|
|
851
851
|
} : {},
|
|
852
852
|
children: [/* @__PURE__ */ jsx(Image, {
|
|
853
|
-
width: "
|
|
854
|
-
height: "
|
|
853
|
+
width: "60px",
|
|
854
|
+
height: "60px",
|
|
855
855
|
src: companyLogoSmallUrl,
|
|
856
856
|
alt: "logo"
|
|
857
857
|
}, "Logo"), /* @__PURE__ */ jsx(Typography, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AreasAdmninClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
3
|
export declare const areasAdminClasses: AreasAdmninClasses;
|
|
4
|
-
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
|
|
4
|
+
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChipsIcon" | "areaContainerChips" | "areaContainerContentChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton" | "areasPopoverMobileOptions" | "areasPopoverListWindows", string>;
|
|
5
5
|
export declare type AdminClasses = ReturnType<typeof useAreasAdminUtilityClasses>;
|
|
@@ -3,14 +3,19 @@ export interface AreasAdmninClasses {
|
|
|
3
3
|
areaChipRoot: string;
|
|
4
4
|
areaChipTitle: string;
|
|
5
5
|
areaContainerChips: string;
|
|
6
|
+
areaContainerContentChips: string;
|
|
7
|
+
areaContainerChipsIcon: string;
|
|
6
8
|
areaChipMobileRoot: string;
|
|
7
9
|
areaEditPopover: string;
|
|
8
10
|
areaChipMobileIconContainer: string;
|
|
9
11
|
areaIconLayer: string;
|
|
12
|
+
areaIconLayerContent: string;
|
|
10
13
|
areaContainerChipEditButton: string;
|
|
11
14
|
areaChipDeleteButton: string;
|
|
12
15
|
areaChipEditButton: string;
|
|
13
16
|
areasAddButton: string;
|
|
17
|
+
areasPopoverMobileOptions: string;
|
|
18
|
+
areasPopoverListWindows: string;
|
|
14
19
|
selected: string;
|
|
15
20
|
isMobile: string;
|
|
16
21
|
disabled: string;
|
|
@@ -1,63 +1,63 @@
|
|
|
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.12f1a3c3.js";
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.85e4b2e2.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.9877f7bf.js";
|
|
8
|
+
import { I as Icon } from "../../../Icon/index.9fcd1476.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 "../../../mui_extended/Button/index.
|
|
15
|
+
import { B as Button } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
16
|
+
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
16
17
|
import "../../../Image/index.c18ebf5a.js";
|
|
17
18
|
import "@mui/lab";
|
|
19
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
18
20
|
import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
19
|
-
import
|
|
20
|
-
import "../../../mui_extended/
|
|
21
|
-
import "../../../mui_extended/Tab/index.9e2f6e34.js";
|
|
21
|
+
import "../../../mui_extended/Pager/index.2f6d6d7d.js";
|
|
22
|
+
import "../../../mui_extended/Tab/index.7c82e43d.js";
|
|
22
23
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
23
24
|
import { unstable_composeClasses } from "@mui/base";
|
|
24
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
25
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.c43a95f4.js";
|
|
25
26
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
26
|
-
import { I as ICONS } from "../../icons.
|
|
27
|
+
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
27
28
|
import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
28
|
-
import "../../../../contexts/ModalContext/index.
|
|
29
|
+
import "../../../../contexts/ModalContext/index.e9a7ba4a.js";
|
|
29
30
|
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.fe175bab.js";
|
|
30
31
|
import "react-hook-form";
|
|
31
|
-
import "../../../hook-form/RHFAutocomplete/index.
|
|
32
|
-
import "../../../HelperText/index.
|
|
32
|
+
import "../../../hook-form/RHFAutocomplete/index.6aa51705.js";
|
|
33
|
+
import "../../../HelperText/index.a019742c.js";
|
|
33
34
|
import "lodash/debounce";
|
|
34
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
35
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
35
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.1a3dfe5f.js";
|
|
36
|
+
import "../../../hook-form/RHFCheckbox/index.a08a65b3.js";
|
|
36
37
|
import "@mui/x-date-pickers";
|
|
37
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
38
|
+
import "../../../hook-form/RHFDateTime/index.4d671108.js";
|
|
38
39
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
39
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
40
|
-
import "../../../hook-form/RHFPeriod/index.
|
|
41
|
-
import "../../../Period/index.
|
|
42
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
43
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
44
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
45
|
-
import "../../../../react-draggable.
|
|
46
|
-
import "../../../
|
|
47
|
-
import "../../../
|
|
48
|
-
import "../../../modal/index.1b25b61d.js";
|
|
40
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.9004e898.js";
|
|
41
|
+
import "../../../hook-form/RHFPeriod/index.39b4be49.js";
|
|
42
|
+
import "../../../Period/index.7b94c418.js";
|
|
43
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.52125041.js";
|
|
44
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.d536ccfa.js";
|
|
45
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.aa1648eb.js";
|
|
46
|
+
import "../../../../react-draggable.7abb5d0a.js";
|
|
47
|
+
import "../../../Resizeable/index.9a9c79a4.js";
|
|
48
|
+
import "../../../modal/index.00efea85.js";
|
|
49
49
|
import { shallow } from "zustand/shallow";
|
|
50
50
|
import { styled } from "@mui/material/styles";
|
|
51
51
|
import { S as ScrollBar } from "../../../ScrollBar/index.bbe48f4d.js";
|
|
52
|
-
import "
|
|
53
|
-
import "
|
|
54
|
-
import
|
|
55
|
-
import "../../contexts/AreasContext/index.
|
|
52
|
+
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.afb7e3d9.js";
|
|
53
|
+
import "../AreasViewer/index.14e62059.js";
|
|
54
|
+
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
55
|
+
import "../../contexts/AreasContext/index.02c4e7be.js";
|
|
56
56
|
import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
57
57
|
import "zustand";
|
|
58
58
|
import "lodash/isString";
|
|
59
59
|
import "react-dropzone";
|
|
60
|
-
import "../../../hook-form/RHFUpload/index.
|
|
60
|
+
import "../../../hook-form/RHFUpload/index.bed8573e.js";
|
|
61
61
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
62
62
|
"root",
|
|
63
63
|
"areaChipRoot",
|
|
@@ -66,11 +66,16 @@ const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
|
66
66
|
"areasAddButton",
|
|
67
67
|
"areaContainerChipEditButton",
|
|
68
68
|
"areaContainerChips",
|
|
69
|
+
"areaContainerContentChips",
|
|
70
|
+
"areaContainerChipsIcon",
|
|
69
71
|
"areaEditPopover",
|
|
70
72
|
"areaChipMobileRoot",
|
|
71
73
|
"areaChipMobileIconContainer",
|
|
72
74
|
"areaIconLayer",
|
|
75
|
+
"areaIconLayerContent",
|
|
73
76
|
"areaChipEditButton",
|
|
77
|
+
"areasPopoverMobileOptions",
|
|
78
|
+
"areasPopoverListWindows",
|
|
74
79
|
"selected",
|
|
75
80
|
"isMobile",
|
|
76
81
|
"disabled"
|
|
@@ -80,7 +85,9 @@ const useAreasAdminUtilityClasses = (ownerState) => {
|
|
|
80
85
|
root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
|
|
81
86
|
areaChipRoot: ["areaChipRoot"],
|
|
82
87
|
areaIconLayer: ["areaIconLayer"],
|
|
88
|
+
areaContainerChipsIcon: ["areaContainerChipsIcon"],
|
|
83
89
|
areaContainerChips: ["areaContainerChips"],
|
|
90
|
+
areaContainerContentChips: ["areaContainerContentChips"],
|
|
84
91
|
areaEditPopover: ["areaEditPopover"],
|
|
85
92
|
areaChipMobileRoot: ["areaChipMobileRoot"],
|
|
86
93
|
areaChipMobileIconContainer: ["areaChipMobileIconContainer"],
|
|
@@ -88,7 +95,9 @@ const useAreasAdminUtilityClasses = (ownerState) => {
|
|
|
88
95
|
areaContainerChipEditButton: ["areaContainerChipEditButton"],
|
|
89
96
|
areaChipDeleteButton: ["areaChipDeleteButton"],
|
|
90
97
|
areaChipEditButton: ["areaChipEditButton"],
|
|
91
|
-
areasAddButton: ["areasAddButton"]
|
|
98
|
+
areasAddButton: ["areasAddButton"],
|
|
99
|
+
areasPopoverMobileOptions: ["areasPopoverMobileOptions"],
|
|
100
|
+
areasPopoverListWindows: ["areasPopoverListWindows"]
|
|
92
101
|
};
|
|
93
102
|
return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_ADMIN_CLASS_NAME), {});
|
|
94
103
|
};
|
|
@@ -164,7 +173,6 @@ const AreaChip = (props) => {
|
|
|
164
173
|
const {
|
|
165
174
|
areaId,
|
|
166
175
|
selected,
|
|
167
|
-
areaName,
|
|
168
176
|
disabled
|
|
169
177
|
} = props;
|
|
170
178
|
const {
|
|
@@ -176,6 +184,7 @@ const AreaChip = (props) => {
|
|
|
176
184
|
selectArea,
|
|
177
185
|
editArea
|
|
178
186
|
} = useAreasStore((state) => state.areasActions);
|
|
187
|
+
const areaName = useAreasStore((state) => state.hashAreas[areaId].name, shallow);
|
|
179
188
|
const [open, setOpen] = useState(false);
|
|
180
189
|
const {
|
|
181
190
|
getLabel
|
|
@@ -188,7 +197,6 @@ const AreaChip = (props) => {
|
|
|
188
197
|
deleteArea(areaId);
|
|
189
198
|
};
|
|
190
199
|
const onSubmit = (data) => {
|
|
191
|
-
console.log("data areachip", data);
|
|
192
200
|
editArea(areaId, data.inputEditArea);
|
|
193
201
|
setOpen(false);
|
|
194
202
|
};
|
|
@@ -199,7 +207,7 @@ const AreaChip = (props) => {
|
|
|
199
207
|
inputEditArea: areaName
|
|
200
208
|
};
|
|
201
209
|
const validationSchema = useMemo(() => Yup.object().shape({
|
|
202
|
-
inputEditArea: Yup.string().required(getLabel(getAreasDictionary(
|
|
210
|
+
inputEditArea: Yup.string().required(getLabel(getAreasDictionary(DICCTIONARY.validation_edit_area)))
|
|
203
211
|
}), [getLabel]);
|
|
204
212
|
return /* @__PURE__ */ jsxs("div", {
|
|
205
213
|
role: "presentation",
|
|
@@ -251,7 +259,7 @@ const AreaChip = (props) => {
|
|
|
251
259
|
validationSchema,
|
|
252
260
|
children: [/* @__PURE__ */ jsxs(EditAreaHeader, {
|
|
253
261
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
254
|
-
children: getLabel(
|
|
262
|
+
children: getLabel(DICCTIONARY.label_edit_area)
|
|
255
263
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
256
264
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
|
|
257
265
|
size: "small",
|
|
@@ -292,12 +300,70 @@ const AreasAdminRoot = styled("div")`
|
|
|
292
300
|
|
|
293
301
|
|
|
294
302
|
`;
|
|
303
|
+
const PanelWindowPopUp = (props) => {
|
|
304
|
+
const {
|
|
305
|
+
currentAreaId
|
|
306
|
+
} = props;
|
|
307
|
+
const {
|
|
308
|
+
host_static_assets,
|
|
309
|
+
environment_assets
|
|
310
|
+
} = useEnvironment();
|
|
311
|
+
const windowsLayouts = useAreasStore((state) => state.hashAreas[currentAreaId].layoutItemsIds.filter((li) => state.hashWindows[li].emergeType === "layout").map((lim) => {
|
|
312
|
+
const w = state.hashWindows[lim];
|
|
313
|
+
return {
|
|
314
|
+
i: w.windowId,
|
|
315
|
+
url_icon: w.url_icon,
|
|
316
|
+
title: w.title
|
|
317
|
+
};
|
|
318
|
+
}), shallow);
|
|
319
|
+
const theme = useTheme();
|
|
320
|
+
const {
|
|
321
|
+
maximizeLayout
|
|
322
|
+
} = useAreasStore((state) => state.areaActions);
|
|
323
|
+
const onTouched = (layoutId) => {
|
|
324
|
+
maximizeLayout(currentAreaId, layoutId);
|
|
325
|
+
};
|
|
326
|
+
const menuActions = windowsLayouts.map((element) => {
|
|
327
|
+
return {
|
|
328
|
+
onClick: () => onTouched(element.i),
|
|
329
|
+
label: element.title,
|
|
330
|
+
urlIcon: element.url_icon
|
|
331
|
+
};
|
|
332
|
+
});
|
|
333
|
+
return /* @__PURE__ */ jsx(MenuActions, {
|
|
334
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MODULE}`,
|
|
335
|
+
arrowType: "no-arrow",
|
|
336
|
+
marginTop: "12px!important",
|
|
337
|
+
marginLeft: "14px!important",
|
|
338
|
+
anchorOrigin: {
|
|
339
|
+
vertical: "bottom",
|
|
340
|
+
horizontal: "right"
|
|
341
|
+
},
|
|
342
|
+
transformOrigin: {
|
|
343
|
+
vertical: "top",
|
|
344
|
+
horizontal: "right"
|
|
345
|
+
},
|
|
346
|
+
menuActions,
|
|
347
|
+
className: areasAdminClasses.areasPopoverListWindows,
|
|
348
|
+
menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides
|
|
349
|
+
});
|
|
350
|
+
};
|
|
295
351
|
const AreaChipMobile = () => {
|
|
296
|
-
const areas = useAreasStore((state) => state.areas
|
|
352
|
+
const areas = useAreasStore((state) => state.areas.map((a) => ({
|
|
353
|
+
id: a,
|
|
354
|
+
name: state.hashAreas[a].name
|
|
355
|
+
})), shallow);
|
|
297
356
|
const {
|
|
298
357
|
selectArea
|
|
299
358
|
} = useAreasStore((state) => state.areasActions);
|
|
300
359
|
const currentAreaId = useAreasStore((state) => state.currentAreaId, shallow);
|
|
360
|
+
const {
|
|
361
|
+
addArea
|
|
362
|
+
} = useAreasStore((state) => state.areasActions, shallow);
|
|
363
|
+
const {
|
|
364
|
+
getLabel
|
|
365
|
+
} = useModuleDictionary();
|
|
366
|
+
const theme = useTheme();
|
|
301
367
|
const currentArea = areas.find((area) => area.id === currentAreaId);
|
|
302
368
|
const {
|
|
303
369
|
host_static_assets,
|
|
@@ -310,32 +376,45 @@ const AreaChipMobile = () => {
|
|
|
310
376
|
label: area.name
|
|
311
377
|
};
|
|
312
378
|
}), [areas, currentAreaId]);
|
|
313
|
-
|
|
314
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
379
|
+
return /* @__PURE__ */ jsx("div", {
|
|
315
380
|
className: areasAdminClasses.areaChipMobileRoot,
|
|
316
|
-
children:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
381
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
382
|
+
className: areasAdminClasses.areaContainerContentChips,
|
|
383
|
+
children: [currentArea ? /* @__PURE__ */ jsx(AreaChip, {
|
|
384
|
+
areaId: currentArea.id,
|
|
385
|
+
selected: true,
|
|
386
|
+
disabled: true
|
|
387
|
+
}, currentArea.id) : null, menuActions.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
388
|
+
className: areasAdminClasses.areaChipMobileIconContainer,
|
|
389
|
+
children: [currentArea ? /* @__PURE__ */ jsx(PanelWindowPopUp, {
|
|
390
|
+
currentAreaId: currentArea.id
|
|
391
|
+
}) : null, /* @__PURE__ */ jsx(MenuActions, {
|
|
392
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CHEVRON_DOWN}`,
|
|
393
|
+
arrowType: "no-arrow",
|
|
394
|
+
marginTop: "12px!important",
|
|
395
|
+
marginLeft: "14px!important",
|
|
396
|
+
anchorOrigin: {
|
|
397
|
+
vertical: "bottom",
|
|
398
|
+
horizontal: "right"
|
|
399
|
+
},
|
|
400
|
+
transformOrigin: {
|
|
401
|
+
vertical: "top",
|
|
402
|
+
horizontal: "right"
|
|
403
|
+
},
|
|
404
|
+
menuActions,
|
|
405
|
+
className: areasAdminClasses.areasPopoverMobileOptions,
|
|
406
|
+
menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides,
|
|
407
|
+
endListElement: /* @__PURE__ */ jsx(Button, {
|
|
408
|
+
onClick: addArea,
|
|
409
|
+
variant: "outlined",
|
|
410
|
+
startIcon: /* @__PURE__ */ jsx(Icon, {
|
|
411
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`
|
|
412
|
+
}),
|
|
413
|
+
children: getLabel(getAreasDictionary(DICCTIONARY.area_add_new))
|
|
414
|
+
})
|
|
415
|
+
})]
|
|
416
|
+
}) : null]
|
|
417
|
+
})
|
|
339
418
|
});
|
|
340
419
|
};
|
|
341
420
|
function AreasAdmin() {
|
|
@@ -352,35 +431,42 @@ function AreasAdmin() {
|
|
|
352
431
|
host_static_assets,
|
|
353
432
|
environment_assets
|
|
354
433
|
} = useEnvironment();
|
|
355
|
-
console.log("Render AreasAdmin", areas);
|
|
356
434
|
if (status !== "loaded") {
|
|
357
435
|
return null;
|
|
358
436
|
}
|
|
359
437
|
return /* @__PURE__ */ jsxs(AreasAdminRoot, {
|
|
360
438
|
className: classesRoot,
|
|
361
|
-
children: [/* @__PURE__ */
|
|
362
|
-
className: areasAdminClasses.
|
|
363
|
-
children: /* @__PURE__ */ jsx(
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
439
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
440
|
+
className: areasAdminClasses.areaContainerChipsIcon,
|
|
441
|
+
children: [isDesktop ? /* @__PURE__ */ jsx("div", {
|
|
442
|
+
className: areasAdminClasses.areaIconLayer,
|
|
443
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
444
|
+
className: areasAdminClasses.areaIconLayerContent,
|
|
445
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
446
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.LAYERS}`
|
|
447
|
+
})
|
|
448
|
+
})
|
|
449
|
+
}) : null, /* @__PURE__ */ jsx("div", {
|
|
450
|
+
className: areasAdminClasses.areaContainerChips,
|
|
451
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
452
|
+
className: areasAdminClasses.areaContainerContentChips,
|
|
453
|
+
children: isDesktop ? /* @__PURE__ */ jsx(ScrollBar, {
|
|
454
|
+
children: /* @__PURE__ */ jsx(Fragment, {
|
|
455
|
+
children: areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
|
|
456
|
+
areaId: area,
|
|
457
|
+
selected: area === currentArea,
|
|
458
|
+
disabled: areasLength === 1
|
|
459
|
+
}, area))
|
|
460
|
+
})
|
|
461
|
+
}) : /* @__PURE__ */ jsx(AreaChipMobile, {})
|
|
376
462
|
})
|
|
377
|
-
})
|
|
378
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
463
|
+
})]
|
|
464
|
+
}), isDesktop ? /* @__PURE__ */ jsx(IconButton, {
|
|
379
465
|
className: areasAdminClasses.areasAddButton,
|
|
380
466
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
381
467
|
size: "small",
|
|
382
468
|
onClick: addArea
|
|
383
|
-
})]
|
|
469
|
+
}) : null]
|
|
384
470
|
});
|
|
385
471
|
}
|
|
386
472
|
export {
|
|
@@ -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" | "windowLinearProgressBar" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
4
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "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>;
|
|
@@ -12,11 +12,13 @@ export interface AreasViewerClasses {
|
|
|
12
12
|
areaGridLayoutPanelContainer: string;
|
|
13
13
|
areaGridLayout: string;
|
|
14
14
|
areaGridLayoutPopupsContainer: string;
|
|
15
|
+
areasWindowPopUpList: string;
|
|
15
16
|
windowRoot: string;
|
|
16
17
|
windowHeader: string;
|
|
17
18
|
windowHeaderContent: string;
|
|
18
19
|
windowHeaderTitle: string;
|
|
19
20
|
windowHeaderMainActions: string;
|
|
21
|
+
windowHeaderCancelHandle: string;
|
|
20
22
|
windowContent: string;
|
|
21
23
|
windowRootContainer: string;
|
|
22
24
|
windowLinearProgressRoot: string;
|
|
@@ -35,6 +37,7 @@ export interface AreasViewerClasses {
|
|
|
35
37
|
panelWindowsButtonContainer: string;
|
|
36
38
|
selected: string;
|
|
37
39
|
selectedWindow: string;
|
|
40
|
+
colapsed: string;
|
|
38
41
|
isMobile: string;
|
|
39
42
|
loading: string;
|
|
40
43
|
pinIn: string;
|