@m4l/components 0.1.70 → 0.1.71
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 +20 -0
- package/components/CommonActions/components/ActionCancel/{index.9d521b2a.js → index.ff90f2c0.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.4756457f.js → index.392a17c0.js} +19 -18
- package/components/CommonActions/components/ActionFormIntro/{index.40321b1b.js → index.f88d8849.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.1ba5b02b.js → index.e31ab7e9.js} +3 -3
- package/components/CommonActions/components/Actions/{index.154d7cb6.js → index.6b7d480a.js} +19 -18
- package/components/DataGrid/{index.2f4a0e64.js → index.77ae9b4c.js} +21 -20
- package/components/DynamicFilter/{index.789ab474.js → index.b2ba5167.js} +47 -98
- package/components/HelperText/{index.a69e9509.js → index.d7b1b21a.js} +11 -10
- package/components/Icon/{index.caaed284.js → index.6f2a5618.js} +6 -4
- package/components/Icon/types.d.ts +1 -0
- package/components/Image/{index.82a6cd46.js → index.1e3b7ff6.js} +3 -3
- package/components/LanguagePopover/{index.5af28b9e.js → index.310e9a3a.js} +11 -11
- package/components/ModalDialog/{index.cdfd1ae8.js → index.598f9a86.js} +19 -5
- package/components/NavLink/{index.251fcf0d.js → index.ac3778af.js} +12 -11
- package/components/NoItemSelected/{index.3b9d16e3.js → index.3809e3d1.js} +1 -1
- package/components/ObjectLogs/{index.57ea68b3.js → index.949d3595.js} +16 -15
- package/components/PaperForm/{index.d2d492ea.js → index.cf8af08b.js} +1 -1
- package/components/Period/{index.fbf074d3.js → index.53ea0562.js} +19 -18
- package/components/Resizeable/{index.aafda79e.js → index.ff4ce7a4.js} +20 -6
- package/components/SideBar/{index.3bc6a634.js → index.4daafbab.js} +55 -40
- package/components/SideBar/subcomponents/ContentMobile/subcomponents/Drawer.d.ts +3 -0
- package/components/SideBar/subcomponents/ContentMobile/subcomponents/types.d.ts +8 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +4 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +2 -0
- package/components/areas/components/{index.359c2b18.js → index.31f39977.js} +267 -74
- package/components/areas/contexts/AreasContext/{index.de8b4e78.js → index.e14d6799.js} +17 -2
- package/components/areas/contexts/AreasContext/types.d.ts +5 -0
- package/components/areas/contexts/{index.771827bb.js → index.5ba05323.js} +1 -1
- package/components/areas/dictionary.d.ts +2 -0
- package/components/areas/hooks/useArea/{index.2adbe001.js → index.c135e0cf.js} +1 -1
- package/components/areas/icons.d.ts +2 -0
- package/components/areas/{index.8a58bcbf.js → index.bd29b1db.js} +13 -7
- package/components/formatters/BooleanFormatter/{index.7eb0498c.js → index.99c7fe49.js} +1 -1
- package/components/formatters/{index.f6b9ed01.js → index.1a92006b.js} +3 -2
- package/components/hook-form/RHFAutocomplete/{index.09c400c3.js → index.c4ba070a.js} +12 -11
- package/components/hook-form/RHFAutocompleteAsync/{index.e8acff04.js → index.a63f3704.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.70310f35.js → index.9055f88d.js} +3 -3
- package/components/hook-form/RHFDateTime/{index.7b815072.js → index.2cb94a66.js} +10 -10
- package/components/hook-form/RHFPeriod/{index.3c7d393c.js → index.14dcf762.js} +2 -2
- package/components/hook-form/RHFTextField/{index.d4c39859.js → index.7ce2b16e.js} +7 -6
- package/components/hook-form/RHFUpload/{index.31044674.js → index.c57a43f8.js} +1 -1
- package/components/modal/{WindowBase.6a40a945.js → WindowBase.32d35d71.js} +11 -11
- package/components/modal/{WindowConfirm.e21763cb.js → WindowConfirm.70bcbb69.js} +16 -15
- package/components/modal/index.ef3aa9ac.js +35 -0
- package/components/mui_extended/Accordion/{index.437bb3f8.js → index.44e96bb8.js} +2 -2
- package/components/mui_extended/Button/{index.f8ce9ccd.js → index.ec6525e0.js} +6 -4
- package/components/mui_extended/Button/types.d.ts +2 -0
- package/components/mui_extended/IconButton/{index.57824447.js → index.7aab3e04.js} +7 -3
- package/components/mui_extended/MenuActions/{index.37043326.js → index.bff47c06.js} +3 -3
- package/components/mui_extended/Pager/{index.eeed3bd5.js → index.907d5801.js} +1 -1
- package/components/mui_extended/Popover/{index.226f247e.js → index.9f35d0eb.js} +1 -3
- package/components/mui_extended/Popover/types.d.ts +6 -2
- package/components/mui_extended/Typography/{index.b3c6e71c.js → index.d5e0f69f.js} +1 -1
- package/components/mui_extended/index.1f766f93.js +20 -0
- package/contexts/ModalContext/{index.8e3cd7a8.js → index.fca184e2.js} +1 -1
- package/hooks/useModal/{index.d590f506.js → index.9b244379.js} +1 -1
- package/index.js +53 -53
- package/package.json +5 -3
- package/{react-draggable.0d64c8b1.js → react-draggable.29f78f6d.js} +1 -1
- package/{react-resizable.8307e056.js → react-resizable.baf54eb2.js} +3 -3
- package/utils/{index.a2312a73.js → index.ee16888d.js} +1 -1
- package/{vendor.8edaef93.js → vendor.619c3533.js} +46 -46
- package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/styles.d.ts +0 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/styles.d.ts +0 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/styles.d.ts +0 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/styles.d.ts +0 -2
- package/components/modal/index.438777d9.js +0 -34
- package/components/mui_extended/index.dacbb059.js +0 -19
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
|
|
3
|
-
import { I as Image } from "../Image/index.
|
|
3
|
+
import { I as Image } from "../Image/index.1e3b7ff6.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
6
|
-
import "../Icon/index.
|
|
7
|
-
import { T as TEST_PROP_ID } from "../../vendor.
|
|
8
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
9
|
-
import "../mui_extended/IconButton/index.57824447.js";
|
|
6
|
+
import "../Icon/index.6f2a5618.js";
|
|
7
|
+
import { T as TEST_PROP_ID } from "../../vendor.619c3533.js";
|
|
10
8
|
import "clsx";
|
|
11
|
-
import "
|
|
9
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
+
import "../mui_extended/IconButton/index.7aab3e04.js";
|
|
11
|
+
import "../mui_extended/Accordion/index.44e96bb8.js";
|
|
12
12
|
import "../mui_extended/Avatar/index.fe06afd7.js";
|
|
13
13
|
import "react-router-dom";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import { I as ImageButton } from "../mui_extended/Button/index.
|
|
15
|
+
import { I as ImageButton } from "../mui_extended/Button/index.ec6525e0.js";
|
|
16
16
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
17
17
|
import "@mui/lab";
|
|
18
|
-
import "../mui_extended/Typography/index.
|
|
19
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
20
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
-
import "../mui_extended/Pager/index.
|
|
18
|
+
import "../mui_extended/Typography/index.d5e0f69f.js";
|
|
19
|
+
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
20
|
+
import "../mui_extended/MenuActions/index.bff47c06.js";
|
|
21
|
+
import "../mui_extended/Pager/index.907d5801.js";
|
|
22
22
|
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
23
23
|
import { unstable_composeClasses } from "@mui/base";
|
|
24
24
|
const LanguagePopoverRoot = styled("div")(({
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Dialog, Paper } from "@mui/material";
|
|
2
|
-
import { c as cjs } from "../../react-draggable.
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
2
|
+
import { c as cjs } from "../../react-draggable.29f78f6d.js";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.9b244379.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import { a as getThemeVariantColor } from "../../utils/index.
|
|
6
|
-
import { R as ResizeableWindow } from "../Resizeable/index.
|
|
5
|
+
import { a as getThemeVariantColor } from "../../utils/index.ee16888d.js";
|
|
6
|
+
import { R as ResizeableWindow } from "../Resizeable/index.ff4ce7a4.js";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
|
+
import { I as Icon } from "../Icon/index.6f2a5618.js";
|
|
9
|
+
import { useEnvironment } from "@m4l/core";
|
|
10
|
+
import { I as ICONS } from "../areas/index.bd29b1db.js";
|
|
8
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
12
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.6b7d480a.js";
|
|
10
13
|
const WrapperDialog = styled(Dialog)(() => ({}));
|
|
11
14
|
const Container = styled("div")(({ theme }) => ({
|
|
12
15
|
display: "flex",
|
|
@@ -88,6 +91,10 @@ const ModalDialog = () => {
|
|
|
88
91
|
fullScreen
|
|
89
92
|
} = useModal();
|
|
90
93
|
const isDesktop = useResponsiveDesktop();
|
|
94
|
+
const {
|
|
95
|
+
host_static_assets,
|
|
96
|
+
environment_assets
|
|
97
|
+
} = useEnvironment();
|
|
91
98
|
const contentComnponent = /* @__PURE__ */ jsx(Container, {
|
|
92
99
|
id: "Container",
|
|
93
100
|
children: typeof window === "function" ? window() : window
|
|
@@ -106,6 +113,13 @@ const ModalDialog = () => {
|
|
|
106
113
|
height: initialHeigth,
|
|
107
114
|
maxWidth,
|
|
108
115
|
maxHeigth,
|
|
116
|
+
handle: (resizeHandle, ref) => /* @__PURE__ */ jsx("div", {
|
|
117
|
+
ref,
|
|
118
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
119
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.RESIZE}`,
|
|
120
|
+
className: `custom-handle custom-handle-${resizeHandle}`
|
|
121
|
+
})
|
|
122
|
+
}, resizeHandle),
|
|
109
123
|
children: contentComnponent
|
|
110
124
|
}), !isDesktop && contentComnponent]
|
|
111
125
|
});
|
|
@@ -2,21 +2,22 @@ import { NavLink as NavLink$1 } from "react-router-dom";
|
|
|
2
2
|
import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@m4l/core";
|
|
5
|
-
import "../Icon/index.
|
|
6
|
-
import { T as TEST_PROP_ID } from "../../vendor.
|
|
7
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
|
-
import "../mui_extended/IconButton/index.57824447.js";
|
|
5
|
+
import "../Icon/index.6f2a5618.js";
|
|
6
|
+
import { T as TEST_PROP_ID } from "../../vendor.619c3533.js";
|
|
9
7
|
import "clsx";
|
|
10
|
-
import "
|
|
8
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
|
+
import "../mui_extended/IconButton/index.7aab3e04.js";
|
|
10
|
+
import "@m4l/graphics";
|
|
11
|
+
import "../mui_extended/Accordion/index.44e96bb8.js";
|
|
11
12
|
import "../mui_extended/Avatar/index.fe06afd7.js";
|
|
12
13
|
import "@mui/material/Button";
|
|
13
|
-
import "../mui_extended/Button/index.
|
|
14
|
-
import "../Image/index.
|
|
14
|
+
import "../mui_extended/Button/index.ec6525e0.js";
|
|
15
|
+
import "../Image/index.1e3b7ff6.js";
|
|
15
16
|
import "@mui/lab";
|
|
16
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
17
|
-
import "../mui_extended/Popover/index.
|
|
18
|
-
import "../mui_extended/MenuActions/index.
|
|
19
|
-
import "../mui_extended/Pager/index.
|
|
17
|
+
import { T as Typography } from "../mui_extended/Typography/index.d5e0f69f.js";
|
|
18
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
19
|
+
import "../mui_extended/MenuActions/index.bff47c06.js";
|
|
20
|
+
import "../mui_extended/Pager/index.907d5801.js";
|
|
20
21
|
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
21
22
|
import { unstable_composeClasses } from "@mui/base";
|
|
22
23
|
const componentName = "M4LNavLink";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
|
-
import { I as Image } from "../Image/index.
|
|
3
|
+
import { I as Image } from "../Image/index.1e3b7ff6.js";
|
|
4
4
|
import { Skeleton } from "@mui/material";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.
|
|
4
|
+
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.77ae9b4c.js";
|
|
5
5
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { R as ReactJson } from "../../react-json-view.57125fcf.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
11
|
-
import { I as Icon } from "../Icon/index.
|
|
12
|
-
import "../../react-draggable.
|
|
13
|
-
import "../ModalDialog/index.
|
|
14
|
-
import "../Resizeable/index.
|
|
15
|
-
import "../CommonActions/components/Actions/index.
|
|
10
|
+
import { u as useModal } from "../../hooks/useModal/index.9b244379.js";
|
|
11
|
+
import { I as Icon } from "../Icon/index.6f2a5618.js";
|
|
12
|
+
import "../../react-draggable.29f78f6d.js";
|
|
13
|
+
import "../ModalDialog/index.598f9a86.js";
|
|
14
|
+
import "../Resizeable/index.ff4ce7a4.js";
|
|
15
|
+
import "../CommonActions/components/Actions/index.6b7d480a.js";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
|
-
import "../mui_extended/Button/index.
|
|
17
|
+
import "../mui_extended/Button/index.ec6525e0.js";
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "react-hook-form";
|
|
20
|
-
import "../mui_extended/IconButton/index.
|
|
20
|
+
import "../mui_extended/IconButton/index.7aab3e04.js";
|
|
21
21
|
import "zustand";
|
|
22
|
-
import "../areas/contexts/AreasContext/index.
|
|
23
|
-
import "../areas/components/index.
|
|
22
|
+
import "../areas/contexts/AreasContext/index.e14d6799.js";
|
|
23
|
+
import "../areas/components/index.31f39977.js";
|
|
24
24
|
import "zustand/shallow";
|
|
25
|
+
import "../ScrollBar/index.bbe48f4d.js";
|
|
25
26
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
26
27
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
27
28
|
import "@mui/lab";
|
|
28
|
-
import "../mui_extended/Typography/index.
|
|
29
|
-
import "../modal/WindowConfirm.
|
|
30
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
31
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
29
|
+
import "../mui_extended/Typography/index.d5e0f69f.js";
|
|
30
|
+
import "../modal/WindowConfirm.70bcbb69.js";
|
|
31
|
+
import { W as WindowBase } from "../modal/WindowBase.32d35d71.js";
|
|
32
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.b2ba5167.js";
|
|
32
33
|
const Container$1 = styled("div")(() => ({
|
|
33
34
|
height: "100%",
|
|
34
35
|
width: "100%",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.6f2a5618.js";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
6
|
const WrapperPaper = styled("div")(({
|
|
7
7
|
theme
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, Skeleton, Autocomplete, TextField } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { I as Icon } from "../Icon/index.
|
|
5
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
4
|
+
import { I as Icon } from "../Icon/index.6f2a5618.js";
|
|
5
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.6b7d480a.js";
|
|
6
6
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
7
7
|
import "@mui/material/Button";
|
|
8
|
-
import "../mui_extended/Button/index.
|
|
8
|
+
import "../mui_extended/Button/index.ec6525e0.js";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import "react-hook-form";
|
|
11
|
-
import "../../contexts/ModalContext/index.
|
|
12
|
-
import "../../react-draggable.
|
|
13
|
-
import "../ModalDialog/index.
|
|
14
|
-
import "../Resizeable/index.
|
|
11
|
+
import "../../contexts/ModalContext/index.fca184e2.js";
|
|
12
|
+
import "../../react-draggable.29f78f6d.js";
|
|
13
|
+
import "../ModalDialog/index.598f9a86.js";
|
|
14
|
+
import "../Resizeable/index.ff4ce7a4.js";
|
|
15
15
|
import "@m4l/graphics";
|
|
16
|
-
import "../modal/WindowConfirm.
|
|
17
|
-
import "../modal/WindowBase.
|
|
18
|
-
import "../mui_extended/IconButton/index.
|
|
19
|
-
import "../mui_extended/Accordion/index.
|
|
16
|
+
import "../modal/WindowConfirm.70bcbb69.js";
|
|
17
|
+
import "../modal/WindowBase.32d35d71.js";
|
|
18
|
+
import "../mui_extended/IconButton/index.7aab3e04.js";
|
|
19
|
+
import "../mui_extended/Accordion/index.44e96bb8.js";
|
|
20
20
|
import "../mui_extended/Avatar/index.fe06afd7.js";
|
|
21
21
|
import "react-router-dom";
|
|
22
|
-
import "../Image/index.
|
|
22
|
+
import "../Image/index.1e3b7ff6.js";
|
|
23
23
|
import "@mui/lab";
|
|
24
|
-
import "../mui_extended/Typography/index.
|
|
25
|
-
import "../mui_extended/Popover/index.
|
|
26
|
-
import "../mui_extended/MenuActions/index.
|
|
27
|
-
import "../mui_extended/Pager/index.
|
|
24
|
+
import "../mui_extended/Typography/index.d5e0f69f.js";
|
|
25
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
+
import "../mui_extended/MenuActions/index.bff47c06.js";
|
|
27
|
+
import "../mui_extended/Pager/index.907d5801.js";
|
|
28
28
|
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
29
29
|
import "zustand";
|
|
30
|
-
import "../areas/contexts/AreasContext/index.
|
|
31
|
-
import "../areas/components/index.
|
|
30
|
+
import "../areas/contexts/AreasContext/index.e14d6799.js";
|
|
31
|
+
import "../areas/components/index.31f39977.js";
|
|
32
32
|
import "zustand/shallow";
|
|
33
|
+
import "../ScrollBar/index.bbe48f4d.js";
|
|
33
34
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
34
35
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
35
36
|
const ContainerPeriod = styled("div")(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { R as ResizableBox } from "../../react-resizable.
|
|
2
|
+
import { R as ResizableBox } from "../../react-resizable.baf54eb2.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -27,18 +27,32 @@ const WrapperResizeable = styled(ResizableBox)(({
|
|
|
27
27
|
bottom: "0",
|
|
28
28
|
left: "0",
|
|
29
29
|
cursor: "sw-resize",
|
|
30
|
-
transform: "rotate(90deg)"
|
|
30
|
+
transform: "rotate(90deg)",
|
|
31
|
+
position: "absolute"
|
|
31
32
|
},
|
|
32
|
-
".
|
|
33
|
+
".M4LIcon-root.custom-handle.custom-handle-se": {
|
|
33
34
|
bottom: "0",
|
|
34
35
|
right: "0",
|
|
35
|
-
cursor: "se-resize"
|
|
36
|
+
cursor: "se-resize",
|
|
37
|
+
position: "absolute",
|
|
38
|
+
"& .M4LIcon-icon": {
|
|
39
|
+
width: "12px",
|
|
40
|
+
height: "12px",
|
|
41
|
+
minWidth: "12px",
|
|
42
|
+
minHeight: "12px"
|
|
43
|
+
}
|
|
36
44
|
},
|
|
37
|
-
"& .
|
|
45
|
+
"& .M4LIcon-root.custom-handle.custom-handle-nw": {
|
|
38
46
|
top: "0",
|
|
39
47
|
left: "0",
|
|
40
48
|
cursor: "nw-resize",
|
|
41
|
-
transform: "rotate(180deg)"
|
|
49
|
+
transform: "rotate(180deg)",
|
|
50
|
+
"& .M4LIcon-icon": {
|
|
51
|
+
width: "12px",
|
|
52
|
+
height: "12px",
|
|
53
|
+
minWidth: "12px",
|
|
54
|
+
minHeight: "12px"
|
|
55
|
+
}
|
|
42
56
|
},
|
|
43
57
|
"& .react-resizable-handle-ne": {
|
|
44
58
|
top: "0",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../vendor.
|
|
5
|
-
import { I as Image } from "../Image/index.
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
4
|
+
import { T as TEST_PROP_ID } from "../../vendor.619c3533.js";
|
|
5
|
+
import { I as Image } from "../Image/index.1e3b7ff6.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.7aab3e04.js";
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
|
-
import { styled as styled$1, generateUtilityClasses, ListItemText, ListItemButton, Collapse, Skeleton, Drawer } from "@mui/material";
|
|
9
|
-
import { I as Icon, A as ArrowIcon } from "../Icon/index.
|
|
10
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
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.6f2a5618.js";
|
|
10
|
+
import { T as Typography } from "../mui_extended/Typography/index.d5e0f69f.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
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.ee16888d.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -285,7 +285,7 @@ const WrapperGroupTitle = styled$1("li", {
|
|
|
285
285
|
...collapsed && {
|
|
286
286
|
opacity: 0,
|
|
287
287
|
width: 0,
|
|
288
|
-
|
|
288
|
+
overflow: "hidden"
|
|
289
289
|
}
|
|
290
290
|
}));
|
|
291
291
|
const NavItemMainRoot = styled("div", {
|
|
@@ -547,6 +547,7 @@ function NavItemMain(props) {
|
|
|
547
547
|
classes
|
|
548
548
|
} = useSideBar();
|
|
549
549
|
const [popoverStatus, setPopoverStatus] = useState(null);
|
|
550
|
+
const theme = useTheme();
|
|
550
551
|
const active = isItemActive(item);
|
|
551
552
|
const handleOpen = (event) => {
|
|
552
553
|
setPopoverStatus(event.currentTarget);
|
|
@@ -572,8 +573,8 @@ function NavItemMain(props) {
|
|
|
572
573
|
anchorEl: popoverStatus,
|
|
573
574
|
onClose: handleClose,
|
|
574
575
|
arrowType: "left-center",
|
|
575
|
-
disablePortal: true,
|
|
576
576
|
sx: {
|
|
577
|
+
...theme.components?.M4LSideBarPopover?.styleOverrides,
|
|
577
578
|
ml: "14px"
|
|
578
579
|
},
|
|
579
580
|
anchorOrigin: {
|
|
@@ -886,6 +887,15 @@ styled$1("div")(({
|
|
|
886
887
|
height: "auto",
|
|
887
888
|
padding: theme.spacing(0, 2)
|
|
888
889
|
}));
|
|
890
|
+
const Drawer = (props) => {
|
|
891
|
+
const {
|
|
892
|
+
children
|
|
893
|
+
} = props;
|
|
894
|
+
return /* @__PURE__ */ jsx(Drawer$1, {
|
|
895
|
+
...props,
|
|
896
|
+
children
|
|
897
|
+
});
|
|
898
|
+
};
|
|
889
899
|
const ContentMobile = () => {
|
|
890
900
|
const {
|
|
891
901
|
visible,
|
|
@@ -896,7 +906,8 @@ const ContentMobile = () => {
|
|
|
896
906
|
classes,
|
|
897
907
|
companyName
|
|
898
908
|
} = useSideBar();
|
|
899
|
-
|
|
909
|
+
const theme = useTheme();
|
|
910
|
+
return /* @__PURE__ */ jsx(Drawer, {
|
|
900
911
|
open: visible,
|
|
901
912
|
onClose: onToggleVisible,
|
|
902
913
|
PaperProps: {
|
|
@@ -905,40 +916,44 @@ const ContentMobile = () => {
|
|
|
905
916
|
}
|
|
906
917
|
},
|
|
907
918
|
className: classes.drawer,
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
[TEST_PROP_ID]: getNameDataTestId("lineLeft")
|
|
913
|
-
} : {}
|
|
914
|
-
}), /* @__PURE__ */ jsxs(WrapperContentMobile, {
|
|
915
|
-
className: classes.contentMobile,
|
|
916
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
917
|
-
[TEST_PROP_ID]: getNameDataTestId("contentMobile")
|
|
918
|
-
} : {},
|
|
919
|
+
sx: {
|
|
920
|
+
...theme.components?.M4LSideBarDrawer?.styleOverrides
|
|
921
|
+
},
|
|
922
|
+
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
919
923
|
children: [/* @__PURE__ */ jsx("div", {
|
|
920
|
-
className: classes.
|
|
924
|
+
className: classes.lineLeft,
|
|
925
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
926
|
+
[TEST_PROP_ID]: getNameDataTestId("lineLeft")
|
|
927
|
+
} : {}
|
|
928
|
+
}), /* @__PURE__ */ jsxs(WrapperContentMobile, {
|
|
929
|
+
className: classes.contentMobile,
|
|
921
930
|
...process.env.NODE_ENV !== "production" ? {
|
|
922
|
-
[TEST_PROP_ID]: getNameDataTestId("
|
|
931
|
+
[TEST_PROP_ID]: getNameDataTestId("contentMobile")
|
|
923
932
|
} : {},
|
|
924
|
-
children: /* @__PURE__ */
|
|
925
|
-
className: classes.
|
|
933
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
934
|
+
className: classes.containerSideBarLogo,
|
|
926
935
|
...process.env.NODE_ENV !== "production" ? {
|
|
927
|
-
[TEST_PROP_ID]: getNameDataTestId("
|
|
936
|
+
[TEST_PROP_ID]: getNameDataTestId("containerSideBarLogo")
|
|
928
937
|
} : {},
|
|
929
|
-
children:
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
938
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
939
|
+
className: classes.containerLogo,
|
|
940
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
941
|
+
[TEST_PROP_ID]: getNameDataTestId("containerLogo")
|
|
942
|
+
} : {},
|
|
943
|
+
children: [/* @__PURE__ */ jsx(Image, {
|
|
944
|
+
width: "40px",
|
|
945
|
+
height: "40px",
|
|
946
|
+
src: companyLogoSmallUrl,
|
|
947
|
+
alt: "logo"
|
|
948
|
+
}, "Logo"), !collapsed && /* @__PURE__ */ jsx(Typography, {
|
|
949
|
+
variant: "subtitleDens",
|
|
950
|
+
skeletonWidth: "100px",
|
|
951
|
+
children: companyName
|
|
952
|
+
})]
|
|
953
|
+
})
|
|
954
|
+
}), /* @__PURE__ */ jsx(ContentGroups, {})]
|
|
955
|
+
})]
|
|
956
|
+
})
|
|
942
957
|
});
|
|
943
958
|
};
|
|
944
959
|
const SideBar = (props) => {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DrawerProps as MUIDrawerProps, Theme } from "@mui/material";
|
|
2
|
+
import { ComponentNameToClassKey, SxProps } from "@mui/material";
|
|
3
|
+
import { OverridesStyleRules } from "@mui/material/styles/overrides";
|
|
4
|
+
import { ReactElement } from "react";
|
|
5
|
+
export interface DrawerProps extends Omit<MUIDrawerProps, 'sx'> {
|
|
6
|
+
sx?: SxProps<Theme> | Partial<OverridesStyleRules<string, ComponentNameToClassKey, Theme>>;
|
|
7
|
+
children: ReactElement;
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WrapperAreaChips: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const AreaSelect: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export declare const EditAreaHeader: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -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" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowPopupRoot" | "windowModalRoot" | "panelWindowsRoot" | "panelWindowsButtonContainer", string>;
|
|
4
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "panelWindowsRoot" | "panelWindowsButtonContainer", string>;
|
|
5
5
|
export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -11,9 +11,11 @@ export interface AreasViewerClasses {
|
|
|
11
11
|
windowHeaderTitle: string;
|
|
12
12
|
windowHeaderMainActions: string;
|
|
13
13
|
windowContent: string;
|
|
14
|
+
windowRootContainer: string;
|
|
14
15
|
windowPopupRoot: string;
|
|
15
16
|
windowModalRoot: string;
|
|
16
17
|
selected: string;
|
|
18
|
+
selectedWindow: string;
|
|
17
19
|
isMobile: string;
|
|
18
20
|
loading: string;
|
|
19
21
|
}
|