@m4l/components 0.1.74 → 0.1.75
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 +46 -1
- package/components/AccountPopover/classes/constants.d.ts +1 -1
- package/components/AccountPopover/classes/index.d.ts +7 -1
- package/components/AccountPopover/classes/types.d.ts +9 -1
- package/components/AccountPopover/index.93aefccd.js +265 -0
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +2 -1
- package/components/AccountPopover/types.d.ts +13 -0
- package/components/AppBar/classes/index.d.ts +3 -1
- package/components/AppBar/classes/types.d.ts +4 -0
- package/components/AppBar/index.cc974d56.js +85 -0
- package/components/AppBar/tests/constants.d.ts +1 -1
- package/components/AppBar/types.d.ts +3 -2
- package/components/CommonActions/classes/index.d.ts +1 -1
- package/components/CommonActions/classes/types.d.ts +3 -2
- package/components/CommonActions/components/ActionCancel/{index.fad4a0dc.js → index.574ea031.js} +3 -3
- package/components/CommonActions/components/ActionFormCancel/{index.a26820a9.js → index.e62db5d3.js} +20 -20
- package/components/CommonActions/components/ActionFormIntro/{index.403d8952.js → index.304da410.js} +4 -4
- package/components/CommonActions/components/ActionIntro/{index.0fb6efbe.js → index.d635cbc4.js} +4 -4
- package/components/CommonActions/components/Actions/{index.51b9c92a.js → index.37ffde59.js} +35 -25
- package/components/CommonActions/tests/constants.d.ts +1 -0
- package/components/CommonActions/tests/utils.d.ts +2 -0
- package/components/DataGrid/{index.dbae54dd.js → index.c0c626cd.js} +20 -20
- package/components/DraggableWindow/index.b95a678e.js +39 -0
- package/components/DynamicFilter/{index.cb7fd1b6.js → index.3034c6ba.js} +32 -32
- package/components/HelperText/{index.d449d124.js → index.ec9b3e6a.js} +9 -9
- package/components/Icon/{index.d214a74d.js → index.f9119f5e.js} +6 -63
- package/components/Image/{index.1af119da.js → index.8aae9322.js} +1 -1
- package/components/LanguagePopover/classes/index.d.ts +1 -1
- package/components/LanguagePopover/{index.4fef99ac.js → index.491e1306.js} +10 -10
- package/components/Loadable/{index.117eaced.js → index.e994fc3e.js} +1 -1
- package/components/ModalDialog/{index.6c35e653.js → index.f652ea12.js} +6 -6
- package/components/NavLink/{index.9e56bcd3.js → index.f8aee9f4.js} +10 -10
- package/components/NoItemSelected/{index.cd842b62.js → index.cce86db4.js} +1 -1
- package/components/ObjectLogs/{index.e1a1b27c.js → index.c31b3f8b.js} +16 -16
- package/components/PaperForm/{index.76bd3a6d.js → index.d79c6f76.js} +1 -1
- package/components/Period/{index.b93d22fa.js → index.ff110093.js} +19 -19
- package/components/Resizeable/{index.834a9144.js → index.41a8048b.js} +1 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.ff7cbe91.js → index.1ae13a73.js} +6 -6
- package/components/SplitLayout/SplitLayout.d.ts +3 -0
- package/components/SplitLayout/classes/constants.d.ts +1 -0
- package/components/SplitLayout/classes/index.d.ts +9 -0
- package/components/SplitLayout/classes/types.d.ts +10 -0
- package/components/SplitLayout/index.9ef430f6.js +99 -0
- package/components/SplitLayout/index.d.ts +2 -3
- package/components/SplitLayout/styles.d.ts +1 -1
- package/components/SplitLayout/tests/constants.d.ts +1 -0
- package/components/SplitLayout/tests/utils.d.ts +2 -0
- package/components/SplitLayout/types.d.ts +2 -0
- package/components/animate/PropagateLoader/{index.be5b02c3.js → index.7fab43c8.js} +1 -1
- package/components/animate/index.1f8eadd4.js +66 -0
- package/components/areas/components/AreasAdmin/{index.1eda80b9.js → index.158621e0.js} +31 -31
- package/components/areas/components/AreasViewer/{index.eddc9945.js → index.621c0de4.js} +50 -44
- package/components/areas/components/index.2ed9d60b.js +14 -0
- package/components/areas/contexts/AreasContext/{index.a88b73a6.js → index.d98b89fc.js} +2 -2
- package/components/areas/contexts/{index.7dd01403.js → index.79d1912d.js} +1 -1
- package/components/areas/hooks/useAreas/{index.7a37ede8.js → index.a7b597fb.js} +1 -1
- package/components/areas/{index.95c4ed37.js → index.d6b8e205.js} +5 -5
- package/components/formatters/BooleanFormatter/{index.820a2130.js → index.60aa1c9d.js} +1 -1
- package/components/formatters/{index.0c692a4b.js → index.1f0efb32.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.72437d8a.js → index.af3296ac.js} +11 -11
- package/components/hook-form/RHFAutocompleteAsync/{index.2a84f2b2.js → index.76864056.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.6e6389e7.js → index.865ba239.js} +3 -3
- package/components/hook-form/RHFDateTime/classes/index.d.ts +1 -1
- package/components/hook-form/RHFDateTime/{index.745b101b.js → index.fd9c5aca.js} +65 -57
- package/components/hook-form/RHFDateTime/test/constants.d.ts +1 -0
- package/components/hook-form/RHFDateTime/test/utils.d.ts +2 -0
- package/components/hook-form/RHFPeriod/{index.6969af99.js → index.77486f61.js} +2 -2
- package/components/hook-form/RHFTextField/{index.ca7393a7.js → index.abcbc2d3.js} +6 -6
- package/components/hook-form/RHFUpload/{index.d74ca00d.js → index.522bcad5.js} +1 -1
- package/components/index.d.ts +1 -1
- package/components/modal/{WindowBase.9b93578e.js → WindowBase.c223e4da.js} +11 -11
- package/components/modal/{WindowConfirm.7ec9dcd3.js → WindowConfirm.023e293f.js} +16 -16
- package/components/modal/index.dbce0cab.js +36 -0
- package/components/mui_extended/Accordion/{index.09a89d3d.js → index.03bd0e2a.js} +2 -2
- package/components/mui_extended/Avatar/{index.d.ts → Avatar.d.ts} +0 -1
- package/components/mui_extended/Avatar/classes/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/classes/index.d.ts +7 -0
- package/components/mui_extended/Avatar/classes/types.d.ts +7 -0
- package/components/mui_extended/Avatar/index.1e1a91a3.js +69 -0
- package/components/mui_extended/Avatar/styles.d.ts +2 -0
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +2 -1
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/types.d.ts +3 -0
- package/components/mui_extended/Avatar/tests/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/tests/utils.d.ts +2 -0
- package/components/mui_extended/Avatar/types.d.ts +1 -5
- package/components/mui_extended/Button/{index.f9d54780.js → index.aebbab34.js} +5 -4
- package/components/mui_extended/IconButton/{index.822cdaac.js → index.3b05af71.js} +1 -1
- package/components/mui_extended/MenuActions/{index.03403529.js → index.ca5ce35a.js} +2 -2
- package/components/mui_extended/Pager/{index.6428b07c.js → index.80ec975a.js} +1 -1
- package/components/mui_extended/Typography/{index.e2d9e3f2.js → index.443590d6.js} +1 -1
- package/components/mui_extended/index.6dcdbb1f.js +20 -0
- package/components/mui_extended/index.d.ts +1 -1
- package/contexts/ModalContext/{index.0484ca54.js → index.a0de81f0.js} +1 -1
- package/hooks/useModal/{index.c6069beb.js → index.26075cdd.js} +1 -1
- package/index.js +207 -203
- package/package.json +1 -1
- package/{react-draggable.17b4ec8a.js → react-draggable.e625b0d1.js} +1 -1
- package/{react-resizable.ffd7c2aa.js → react-resizable.24367d77.js} +2 -2
- package/test/constants_no_mock.86c553a9.js +4 -0
- package/utils/{index.aca80f3a.js → index.b61dccbe.js} +0 -5
- package/components/AccountPopover/subcomponents/PopOver/styles.d.ts +0 -8
- package/components/SplitLayout/index.5a8355d8.js +0 -133
- package/components/areas/components/index.f3a98b6d.js +0 -14
- package/components/modal/index.dba72820.js +0 -36
- package/components/mui_extended/Avatar/index.fe06afd7.js +0 -51
- package/components/mui_extended/index.b4ced9e3.js +0 -20
- package/vendor.99e0c856.js +0 -456
- /package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/createAvatar.d.ts +0 -0
- /package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/index.d.ts +0 -0
- /package/{node_modules.416f1da3.js → react-spinners.342a6578.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
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.c0c626cd.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.26075cdd.js";
|
|
11
|
+
import { I as Icon } from "../Icon/index.f9119f5e.js";
|
|
12
|
+
import "../../react-draggable.e625b0d1.js";
|
|
13
|
+
import "../ModalDialog/index.f652ea12.js";
|
|
14
|
+
import "../Resizeable/index.41a8048b.js";
|
|
15
|
+
import "../CommonActions/components/Actions/index.37ffde59.js";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
|
-
import "../mui_extended/Button/index.
|
|
17
|
+
import "../mui_extended/Button/index.aebbab34.js";
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "react-hook-form";
|
|
20
|
-
import "../mui_extended/IconButton/index.
|
|
20
|
+
import "../mui_extended/IconButton/index.3b05af71.js";
|
|
21
21
|
import "zustand";
|
|
22
|
-
import "../areas/contexts/AreasContext/index.
|
|
23
|
-
import "../areas/components/AreasAdmin/index.
|
|
22
|
+
import "../areas/contexts/AreasContext/index.d98b89fc.js";
|
|
23
|
+
import "../areas/components/AreasAdmin/index.158621e0.js";
|
|
24
24
|
import "zustand/shallow";
|
|
25
25
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
26
|
-
import "../areas/components/AreasViewer/index.
|
|
26
|
+
import "../areas/components/AreasViewer/index.621c0de4.js";
|
|
27
27
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
28
28
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
29
29
|
import "@mui/lab";
|
|
30
|
-
import "../mui_extended/Typography/index.
|
|
31
|
-
import "../modal/WindowConfirm.
|
|
32
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
33
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
30
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
31
|
+
import "../modal/WindowConfirm.023e293f.js";
|
|
32
|
+
import { W as WindowBase } from "../modal/WindowBase.c223e4da.js";
|
|
33
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.3034c6ba.js";
|
|
34
34
|
const Container$1 = styled("div")(() => ({
|
|
35
35
|
height: "100%",
|
|
36
36
|
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.f9119f5e.js";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
6
|
const WrapperPaper = styled("div")(({
|
|
7
7
|
theme
|
|
@@ -1,37 +1,37 @@
|
|
|
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.f9119f5e.js";
|
|
5
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.37ffde59.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.aebbab34.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.a0de81f0.js";
|
|
12
|
+
import "../../react-draggable.e625b0d1.js";
|
|
13
|
+
import "../ModalDialog/index.f652ea12.js";
|
|
14
|
+
import "../Resizeable/index.41a8048b.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.
|
|
20
|
-
import "../mui_extended/Avatar/index.
|
|
16
|
+
import "../modal/WindowConfirm.023e293f.js";
|
|
17
|
+
import "../modal/WindowBase.c223e4da.js";
|
|
18
|
+
import "../mui_extended/IconButton/index.3b05af71.js";
|
|
19
|
+
import "../mui_extended/Accordion/index.03bd0e2a.js";
|
|
20
|
+
import "../mui_extended/Avatar/index.1e1a91a3.js";
|
|
21
21
|
import "react-router-dom";
|
|
22
|
-
import "../Image/index.
|
|
22
|
+
import "../Image/index.8aae9322.js";
|
|
23
23
|
import "@mui/lab";
|
|
24
|
-
import "../mui_extended/Typography/index.
|
|
24
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
25
25
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
-
import "../mui_extended/MenuActions/index.
|
|
27
|
-
import "../mui_extended/Pager/index.
|
|
26
|
+
import "../mui_extended/MenuActions/index.ca5ce35a.js";
|
|
27
|
+
import "../mui_extended/Pager/index.80ec975a.js";
|
|
28
28
|
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
29
29
|
import "zustand";
|
|
30
|
-
import "../areas/contexts/AreasContext/index.
|
|
31
|
-
import "../areas/components/AreasAdmin/index.
|
|
30
|
+
import "../areas/contexts/AreasContext/index.d98b89fc.js";
|
|
31
|
+
import "../areas/components/AreasAdmin/index.158621e0.js";
|
|
32
32
|
import "zustand/shallow";
|
|
33
33
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
34
|
-
import "../areas/components/AreasViewer/index.
|
|
34
|
+
import "../areas/components/AreasViewer/index.621c0de4.js";
|
|
35
35
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
36
36
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
37
37
|
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.24367d77.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -4,6 +4,7 @@ export declare const SideBarClasses: SideBarClassesType;
|
|
|
4
4
|
export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
5
5
|
root: string;
|
|
6
6
|
drawer: string;
|
|
7
|
+
popover: string;
|
|
7
8
|
containerSideBarLogo: string;
|
|
8
9
|
contentDesktop: string;
|
|
9
10
|
contentMobile: string;
|
|
@@ -35,5 +36,4 @@ export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
|
35
36
|
collapseButtontriangleBottom: string;
|
|
36
37
|
subItemCollapseActive: string;
|
|
37
38
|
contentGroupsLine: string;
|
|
38
|
-
popover: string;
|
|
39
39
|
};
|
|
@@ -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 "../../
|
|
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 "../../test/constants_no_mock.86c553a9.js";
|
|
5
|
+
import { I as Image } from "../Image/index.8aae9322.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.3b05af71.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.
|
|
10
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.f9119f5e.js";
|
|
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.b61dccbe.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LSplitLayout";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SplitLayoutClassesType } from './types';
|
|
2
|
+
import { OwnerState } from '../types';
|
|
3
|
+
export declare const splitLayoutClasses: SplitLayoutClassesType;
|
|
4
|
+
export declare function getSplitLayoutUtilityClass(slot: string): string;
|
|
5
|
+
export declare const useSplitLayoutUtilityClasses: (ownerState: OwnerState) => {
|
|
6
|
+
root: string;
|
|
7
|
+
firstPart: string;
|
|
8
|
+
secondPart: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useSplitLayoutUtilityClasses } from "./index";
|
|
2
|
+
export interface SplitLayoutClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
firstPart: string;
|
|
5
|
+
secondPart: string;
|
|
6
|
+
stateVertical: string;
|
|
7
|
+
stateHorizontal: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type SplitLayoutClassesKey = keyof SplitLayoutClassesType;
|
|
10
|
+
export declare type Classes = ReturnType<typeof useSplitLayoutUtilityClasses>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
|
+
import { S as SplitterLayout } from "../../react-splitter-layout.8b1655c8.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
const SplitLayoutRoot = styled("div")(({
|
|
9
|
+
theme
|
|
10
|
+
}) => ({
|
|
11
|
+
...theme.components?.M4LSplitLayout?.styleOverrides
|
|
12
|
+
}));
|
|
13
|
+
const SplitMaster = styled("div")(() => ({
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
position: "relative",
|
|
17
|
+
width: "100%",
|
|
18
|
+
height: "100%",
|
|
19
|
+
overflow: "hidden"
|
|
20
|
+
}));
|
|
21
|
+
const SplitDetail = styled("div")(() => ({
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
justifyContent: "center",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
overflow: "hidden",
|
|
27
|
+
position: "absolute",
|
|
28
|
+
left: "0px",
|
|
29
|
+
right: "0px",
|
|
30
|
+
top: "0px",
|
|
31
|
+
bottom: "0px"
|
|
32
|
+
}));
|
|
33
|
+
const componentName = "M4LSplitLayout";
|
|
34
|
+
generateUtilityClasses(componentName, [
|
|
35
|
+
"root",
|
|
36
|
+
"firstPart",
|
|
37
|
+
"secondPart",
|
|
38
|
+
"stateVertical",
|
|
39
|
+
"stateHorizontal"
|
|
40
|
+
]);
|
|
41
|
+
function getSplitLayoutUtilityClass(slot) {
|
|
42
|
+
return generateUtilityClass(componentName, slot);
|
|
43
|
+
}
|
|
44
|
+
const useSplitLayoutUtilityClasses = (ownerState) => {
|
|
45
|
+
const slots = {
|
|
46
|
+
root: ["root", ownerState.splitPosition === "vertical" && "stateVertical", ownerState.splitPosition === "horizontal" && "stateHorizontal"],
|
|
47
|
+
firstPart: ["firstPart"],
|
|
48
|
+
secondPart: ["secondPart"]
|
|
49
|
+
};
|
|
50
|
+
const composedClasses = unstable_composeClasses(slots, getSplitLayoutUtilityClass, {});
|
|
51
|
+
return {
|
|
52
|
+
...composedClasses
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
|
|
56
|
+
const getNameSplitLayoutDataTestId = (KEY) => {
|
|
57
|
+
return `${SPLITLAYOUT_PREFIX}-${KEY}`;
|
|
58
|
+
};
|
|
59
|
+
function SplitLayout(props) {
|
|
60
|
+
const {
|
|
61
|
+
splitPosition,
|
|
62
|
+
firstPart,
|
|
63
|
+
secondPart,
|
|
64
|
+
secondParrtInitialSize = 50,
|
|
65
|
+
percentage = true,
|
|
66
|
+
className
|
|
67
|
+
} = props;
|
|
68
|
+
const ownerState = {
|
|
69
|
+
splitPosition
|
|
70
|
+
};
|
|
71
|
+
const classes = useSplitLayoutUtilityClasses(ownerState);
|
|
72
|
+
return /* @__PURE__ */ jsx(SplitLayoutRoot, {
|
|
73
|
+
className: clsx(classes.root, className),
|
|
74
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
75
|
+
[TEST_PROP_ID]: getNameSplitLayoutDataTestId("root")
|
|
76
|
+
} : {},
|
|
77
|
+
children: SplitterLayout ? /* @__PURE__ */ jsxs(SplitterLayout, {
|
|
78
|
+
vertical: splitPosition === "vertical",
|
|
79
|
+
percentage,
|
|
80
|
+
secondaryInitialSize: secondParrtInitialSize,
|
|
81
|
+
children: [/* @__PURE__ */ jsx(SplitMaster, {
|
|
82
|
+
className: classes.firstPart,
|
|
83
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
84
|
+
[TEST_PROP_ID]: getNameSplitLayoutDataTestId("firstPart")
|
|
85
|
+
} : {},
|
|
86
|
+
children: typeof firstPart === "function" ? firstPart() : firstPart
|
|
87
|
+
}), splitPosition !== "none" && /* @__PURE__ */ jsx(SplitDetail, {
|
|
88
|
+
className: classes.secondPart,
|
|
89
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
90
|
+
[TEST_PROP_ID]: getNameSplitLayoutDataTestId("secondPart")
|
|
91
|
+
} : {},
|
|
92
|
+
children: typeof secondPart === "function" ? secondPart() : secondPart
|
|
93
|
+
})]
|
|
94
|
+
}) : null
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
SplitLayout as S
|
|
99
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function SplitLayout(props: SplitLayoutProps): import("react").JSX.Element;
|
|
1
|
+
export { SplitLayout } from './SplitLayout';
|
|
2
|
+
export type { SplitLayoutProps } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SplitLayoutRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
3
|
export declare const SplitMaster: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
4
|
export declare const SplitDetail: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
|
|
@@ -6,4 +6,6 @@ export interface SplitLayoutProps {
|
|
|
6
6
|
secondParrtInitialSize?: number;
|
|
7
7
|
firstPart: ((props?: any) => JSX.Element) | ReactNode;
|
|
8
8
|
secondPart: ((props?: any) => JSX.Element) | ReactNode;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
11
|
+
export declare type OwnerState = Pick<SplitLayoutProps, 'splitPosition'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled, useTheme } from "@mui/material";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { P as PropagateLoader$1 } from "../../../
|
|
3
|
+
import { P as PropagateLoader$1 } from "../../../react-spinners.342a6578.js";
|
|
4
4
|
const WrapperPropageteLoader = styled("div")(({
|
|
5
5
|
theme
|
|
6
6
|
}) => ({
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { m } from "framer-motion";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { IconButton, Box } from "@mui/material";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import "@mui/material/styles";
|
|
6
|
+
import "react-router-dom";
|
|
7
|
+
import "./LoadingScreen/index.1d0c4307.js";
|
|
8
|
+
import "./PropagateLoader/index.7fab43c8.js";
|
|
9
|
+
const varSmall = {
|
|
10
|
+
hover: {
|
|
11
|
+
scale: 1.1
|
|
12
|
+
},
|
|
13
|
+
tap: {
|
|
14
|
+
scale: 0.95
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const varMedium = {
|
|
18
|
+
hover: {
|
|
19
|
+
scale: 1.09
|
|
20
|
+
},
|
|
21
|
+
tap: {
|
|
22
|
+
scale: 0.97
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const varLarge = {
|
|
26
|
+
hover: {
|
|
27
|
+
scale: 1.08
|
|
28
|
+
},
|
|
29
|
+
tap: {
|
|
30
|
+
scale: 0.99
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function AnimateWrap({
|
|
34
|
+
size,
|
|
35
|
+
children
|
|
36
|
+
}) {
|
|
37
|
+
const isSmall = size === "small";
|
|
38
|
+
const isLarge = size === "large";
|
|
39
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
40
|
+
component: m.div,
|
|
41
|
+
whileTap: "tap",
|
|
42
|
+
whileHover: "hover",
|
|
43
|
+
variants: isSmall && varSmall || isLarge && varLarge || varMedium,
|
|
44
|
+
sx: {
|
|
45
|
+
display: "inline-flex"
|
|
46
|
+
},
|
|
47
|
+
children
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const IconButtonAnimate = forwardRef(({
|
|
51
|
+
children,
|
|
52
|
+
size = "medium",
|
|
53
|
+
...other
|
|
54
|
+
}, ref) => /* @__PURE__ */ jsx(AnimateWrap, {
|
|
55
|
+
size,
|
|
56
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
57
|
+
size,
|
|
58
|
+
ref,
|
|
59
|
+
...other,
|
|
60
|
+
children
|
|
61
|
+
})
|
|
62
|
+
}));
|
|
63
|
+
IconButtonAnimate.displayName = "IconButtonAnimate";
|
|
64
|
+
export {
|
|
65
|
+
IconButtonAnimate as I
|
|
66
|
+
};
|
|
@@ -1,62 +1,62 @@
|
|
|
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.3b05af71.js";
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.a7b597fb.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 } from "@mui/material";
|
|
7
|
-
import { I as Icon } from "../../../Icon/index.
|
|
7
|
+
import { I as Icon } from "../../../Icon/index.f9119f5e.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
|
-
import "../../../mui_extended/Accordion/index.
|
|
11
|
-
import "../../../mui_extended/Avatar/index.
|
|
10
|
+
import "../../../mui_extended/Accordion/index.03bd0e2a.js";
|
|
11
|
+
import "../../../mui_extended/Avatar/index.1e1a91a3.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
|
-
import "../../../mui_extended/Button/index.
|
|
15
|
-
import "../../../Image/index.
|
|
14
|
+
import "../../../mui_extended/Button/index.aebbab34.js";
|
|
15
|
+
import "../../../Image/index.8aae9322.js";
|
|
16
16
|
import "@mui/lab";
|
|
17
|
-
import { T as Typography } from "../../../mui_extended/Typography/index.
|
|
17
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
18
18
|
import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
19
|
-
import "../../../mui_extended/MenuActions/index.
|
|
20
|
-
import "../../../mui_extended/Pager/index.
|
|
19
|
+
import "../../../mui_extended/MenuActions/index.ca5ce35a.js";
|
|
20
|
+
import "../../../mui_extended/Pager/index.80ec975a.js";
|
|
21
21
|
import "../../../mui_extended/Tab/index.e0653a0a.js";
|
|
22
22
|
import { unstable_composeClasses } from "@mui/base";
|
|
23
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
23
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.b61dccbe.js";
|
|
24
24
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
25
25
|
import { I as ICONS } from "../../icons.3ec589d3.js";
|
|
26
26
|
import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
27
|
-
import "../../../../contexts/ModalContext/index.
|
|
27
|
+
import "../../../../contexts/ModalContext/index.a0de81f0.js";
|
|
28
28
|
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.a7511399.js";
|
|
29
29
|
import "react-hook-form";
|
|
30
|
-
import "../../../hook-form/RHFAutocomplete/index.
|
|
31
|
-
import "../../../HelperText/index.
|
|
30
|
+
import "../../../hook-form/RHFAutocomplete/index.af3296ac.js";
|
|
31
|
+
import "../../../HelperText/index.ec9b3e6a.js";
|
|
32
32
|
import "lodash/debounce";
|
|
33
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
34
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
33
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.76864056.js";
|
|
34
|
+
import "../../../hook-form/RHFCheckbox/index.865ba239.js";
|
|
35
35
|
import "@mui/x-date-pickers";
|
|
36
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
36
|
+
import "../../../hook-form/RHFDateTime/index.fd9c5aca.js";
|
|
37
37
|
import "@m4l/graphics";
|
|
38
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
39
|
-
import "../../../hook-form/RHFPeriod/index.
|
|
40
|
-
import "../../../Period/index.
|
|
41
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
42
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
43
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
44
|
-
import "../../../../react-draggable.
|
|
45
|
-
import "../../../ModalDialog/index.
|
|
46
|
-
import "../../../Resizeable/index.
|
|
47
|
-
import "../../../modal/WindowConfirm.
|
|
48
|
-
import "../../../modal/WindowBase.
|
|
38
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.abcbc2d3.js";
|
|
39
|
+
import "../../../hook-form/RHFPeriod/index.77486f61.js";
|
|
40
|
+
import "../../../Period/index.ff110093.js";
|
|
41
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.37ffde59.js";
|
|
42
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.574ea031.js";
|
|
43
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.d635cbc4.js";
|
|
44
|
+
import "../../../../react-draggable.e625b0d1.js";
|
|
45
|
+
import "../../../ModalDialog/index.f652ea12.js";
|
|
46
|
+
import "../../../Resizeable/index.41a8048b.js";
|
|
47
|
+
import "../../../modal/WindowConfirm.023e293f.js";
|
|
48
|
+
import "../../../modal/WindowBase.c223e4da.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 "../AreasViewer/index.
|
|
53
|
-
import "../../contexts/AreasContext/index.
|
|
52
|
+
import "../AreasViewer/index.621c0de4.js";
|
|
53
|
+
import "../../contexts/AreasContext/index.d98b89fc.js";
|
|
54
54
|
import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
55
55
|
import "zustand";
|
|
56
56
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.e72db809.js";
|
|
57
57
|
import "lodash/isString";
|
|
58
58
|
import "react-dropzone";
|
|
59
|
-
import "../../../hook-form/RHFUpload/index.
|
|
59
|
+
import "../../../hook-form/RHFUpload/index.522bcad5.js";
|
|
60
60
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
61
61
|
"root",
|
|
62
62
|
"areaChipRoot",
|