@m4l/components 0.1.64 → 0.1.66
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 +8 -0
- package/components/CommonActions/components/ActionCancel/{index.2eb2c1e1.js → index.4d0333c0.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.2864d574.js → index.298e0109.js} +11 -18
- package/components/CommonActions/components/ActionFormIntro/{index.e7f83ddd.js → index.b45922ff.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.0d138cb3.js → index.138101aa.js} +2 -2
- package/components/CommonActions/components/Actions/{index.433cd345.js → index.77574633.js} +11 -18
- package/components/DataGrid/{index.42521a55.js → index.ef23d0a9.js} +28 -35
- package/components/DynamicFilter/{index.442bda79.js → index.04ed3d58.js} +34 -46
- package/components/DynamicFilter/index.d.ts +1 -1
- package/components/HelperText/{index.3c07ca2a.js → index.c35dcb93.js} +10 -10
- package/components/Icon/{index.0f9b360e.js → index.fbeeacc8.js} +2 -2
- package/components/Icon/tests/utils.d.ts +1 -1
- package/components/Image/{index.1a9c0327.js → index.77396f79.js} +1 -1
- package/components/LanguagePopover/{index.68de7176.js → index.c0fc94c7.js} +11 -11
- package/components/ModalDialog/{index.3efe049b.js → index.e600b43a.js} +5 -5
- package/components/NavLink/{index.ae9f1cc9.js → index.3f4e2417.js} +11 -11
- package/components/NoItemSelected/{index.7cfd7613.js → index.609c3c20.js} +1 -1
- package/components/ObjectLogs/{index.b50726fb.js → index.7f93ba51.js} +14 -21
- package/components/PaperForm/{index.44bf4469.js → index.fb4fa784.js} +1 -1
- package/components/Period/{index.99feb99e.js → index.0c5bf66f.js} +12 -19
- package/components/Resizeable/{index.b5d42efb.js → index.4545dd6a.js} +3 -3
- package/components/SideBar/{index.011880b6.js → index.7d970041.js} +7 -7
- package/components/areas/components/AreasAdmin/classes/index.d.ts +5 -0
- package/components/areas/components/AreasAdmin/classes/types.d.ts +11 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/index.d.ts +5 -0
- package/components/areas/components/AreasViewer/classes/types.d.ts +19 -0
- package/components/areas/components/AreasViewer/index.d.ts +7 -0
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/contexts}/AreaContext/helper.d.ts +2 -2
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/contexts}/AreaContext/index.d.ts +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/store.d.ts +11 -0
- package/components/areas/{contexts/AreaContext/store.d.ts → components/AreasViewer/subcomponents/Area/contexts/AreaContext/types.d.ts} +29 -16
- package/components/areas/components/AreasViewer/subcomponents/Area/index.d.ts +12 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/GridLayout/index.d.ts +5 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +6 -0
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/store.d.ts +8 -3
- package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/types.d.ts +1 -1
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/index.d.ts +1 -1
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/index.d.ts +1 -1
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/Component/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Header/helper.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/Header/subcomponents/MainActions/index.d.ts +1 -0
- package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +8 -0
- package/components/areas/components/{WindowModal → AreasViewer/subcomponents/Area/subcomponents/WindowModal}/index.d.ts +1 -1
- package/components/areas/components/{WindowPopUp → AreasViewer/subcomponents/Area/subcomponents/WindowPopUp}/index.d.ts +1 -1
- package/components/areas/components/{Area → AreasViewer/subcomponents/Area}/types.d.ts +6 -11
- package/components/areas/components/index.d.ts +3 -4
- package/components/areas/constants.d.ts +3 -0
- package/components/areas/contexts/AreasContext/index.d.ts +10 -4
- package/components/areas/contexts/AreasContext/store.d.ts +8 -29
- package/components/areas/contexts/AreasContext/types.d.ts +119 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/dictionary.d.ts +9 -14
- package/components/areas/hooks/useArea/index.d.ts +1 -1
- package/components/areas/hooks/useAreas/index.d.ts +1 -1
- package/components/areas/hooks/useWindow/index.d.ts +1 -1
- package/components/areas/icons.d.ts +8 -0
- package/components/areas/index.d.ts +1 -0
- package/components/areas/index.d7519516.js +2416 -0
- package/components/formatters/BooleanFormatter/{index.cd00c8e1.js → index.0edacc9b.js} +1 -1
- package/components/formatters/{index.deae4701.js → index.879170b2.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.083e23c1.js → index.5f27e28c.js} +13 -12
- package/components/hook-form/RHFAutocomplete/test/constants.d.ts +1 -0
- package/components/hook-form/RHFAutocomplete/test/utils.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.ba751be9.js → index.35e17cd6.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.c19393b1.js → index.4f134f09.js} +3 -3
- package/components/hook-form/RHFPeriod/{index.c0a80aeb.js → index.dcaa0c87.js} +2 -2
- package/components/hook-form/RHFTextField/{index.97485ff2.js → index.fc90a570.js} +13 -13
- package/components/hook-form/RHFUpload/{index.798eb11d.js → index.654ad316.js} +1 -1
- package/components/index.d.ts +1 -3
- package/components/modal/{WindowBase.59f50553.js → WindowBase.230a498f.js} +3 -3
- package/components/modal/{WindowConfirm.c1339cf8.js → WindowConfirm.575b4d41.js} +14 -21
- package/components/modal/index.237881ea.js +23 -0
- package/components/mui_extended/Accordion/{index.b7487e37.js → index.0b15f939.js} +2 -2
- package/components/mui_extended/Button/{index.d9e0ae2e.js → index.b7b70e5f.js} +3 -3
- package/components/mui_extended/IconButton/{index.be9c2ce5.js → index.a5072cd3.js} +15 -11
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/MenuActions/icons.d.ts +3 -0
- package/components/mui_extended/MenuActions/{index.ec654122.js → index.3a275abb.js} +21 -20
- package/components/mui_extended/MenuActions/types.d.ts +5 -6
- package/components/mui_extended/Pager/{index.9e123670.js → index.5a69ab10.js} +5 -5
- package/components/mui_extended/Popover/{index.260aae81.js → index.e271e4f0.js} +1 -0
- package/components/mui_extended/Typography/{index.41b60a6b.js → index.eab3d85c.js} +1 -1
- package/components/mui_extended/index.35f74599.js +19 -0
- package/contexts/ModalContext/{index.ae8041f3.js → index.de0a3457.js} +1 -1
- package/hooks/useModal/{index.5c159ed2.js → index.e103db09.js} +1 -1
- package/index.js +118 -132
- package/package.json +2 -3
- package/{react-draggable.1aa81436.js → react-draggable.4d08d714.js} +1 -1
- package/{react-resizable.e86cb01e.js → react-resizable.23b980cb.js} +5 -4
- package/utils/{index.e199226a.js → index.c2e62d8f.js} +32 -32
- package/{vendor.a15d263e.js → vendor.be57c149.js} +43 -52
- package/components/areas/components/Area/index.d.ts +0 -5
- package/components/areas/components/AreasAdmin/index.51e28f63.js +0 -120
- package/components/areas/components/AreasContainer/index.1e5e6e91.js +0 -37
- package/components/areas/components/AreasContainer/index.d.ts +0 -1
- package/components/areas/components/GridLayout/index.5bf8d5e4.js +0 -103
- package/components/areas/components/GridLayout/index.d.ts +0 -1
- package/components/areas/components/Window/icons.d.ts +0 -3
- package/components/areas/components/Window/index.416a874f.js +0 -855
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +0 -8
- package/components/areas/components/WindowPopUp/index.f053fca7.js +0 -118
- package/components/areas/components/WindowsPanel/index.d.ts +0 -1
- package/components/areas/components/index.eace295a.js +0 -77
- package/components/areas/contexts/AreaContext/index.7890e58d.js +0 -509
- package/components/areas/contexts/AreaContext/types.d.ts +0 -20
- package/components/areas/contexts/AreasContext/index.0792a8d1.js +0 -197
- package/components/areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js +0 -43
- package/components/areas/contexts/index.2a915acf.js +0 -198
- package/components/areas/hooks/index.f4d78492.js +0 -27
- package/components/areas/hooks/useArea/index.d6263051.js +0 -20
- package/components/areas/hooks/useDynamicMFParameters/index.041a666b.js +0 -14
- package/components/areas/index.8fca0f8f.js +0 -20
- package/components/modal/index.7a84f64d.js +0 -30
- package/components/mui_extended/index.459cbd6c.js +0 -19
- /package/components/areas/components/{Area → AreasViewer/subcomponents/Area}/subcomponents/InnerForHooks/index.d.ts +0 -0
- /package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/helper.d.ts +0 -0
- /package/components/areas/{contexts → components/AreasViewer/subcomponents/Area/subcomponents/Window/contexts}/WindowContext/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/Header/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/Header/skeleton.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -0
- /package/components/areas/components/{Window → AreasViewer/subcomponents/Area/subcomponents/Window}/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -0
|
@@ -1,38 +1,31 @@
|
|
|
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.ef23d0a9.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.e103db09.js";
|
|
11
|
+
import { I as Icon } from "../Icon/index.fbeeacc8.js";
|
|
12
|
+
import "../../react-draggable.4d08d714.js";
|
|
13
|
+
import "../ModalDialog/index.e600b43a.js";
|
|
14
|
+
import "../Resizeable/index.4545dd6a.js";
|
|
15
|
+
import "../CommonActions/components/Actions/index.77574633.js";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
|
-
import "../mui_extended/Button/index.
|
|
17
|
+
import "../mui_extended/Button/index.b7b70e5f.js";
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "react-hook-form";
|
|
20
|
-
import "../
|
|
21
|
-
import "../areas/components/AreasAdmin/index.51e28f63.js";
|
|
22
|
-
import "../mui_extended/IconButton/index.be9c2ce5.js";
|
|
20
|
+
import "../mui_extended/IconButton/index.a5072cd3.js";
|
|
23
21
|
import "zustand";
|
|
24
|
-
import "../areas/
|
|
22
|
+
import "../areas/index.d7519516.js";
|
|
25
23
|
import "zustand/shallow";
|
|
26
|
-
import "../areas/components/AreasContainer/index.1e5e6e91.js";
|
|
27
|
-
import "react-grid-layout/css/styles.css";
|
|
28
|
-
import "../../react-resizable.e86cb01e.js";
|
|
29
|
-
import "../areas/contexts/index.2a915acf.js";
|
|
30
|
-
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
31
24
|
import "@mui/lab";
|
|
32
|
-
import "../mui_extended/Typography/index.
|
|
33
|
-
import "../modal/WindowConfirm.
|
|
34
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
35
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
25
|
+
import "../mui_extended/Typography/index.eab3d85c.js";
|
|
26
|
+
import "../modal/WindowConfirm.575b4d41.js";
|
|
27
|
+
import { W as WindowBase } from "../modal/WindowBase.230a498f.js";
|
|
28
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.04ed3d58.js";
|
|
36
29
|
const Container$1 = styled("div")(() => ({
|
|
37
30
|
height: "100%",
|
|
38
31
|
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.fbeeacc8.js";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
6
|
const WrapperPaper = styled("div")(({
|
|
7
7
|
theme
|
|
@@ -1,33 +1,26 @@
|
|
|
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.fbeeacc8.js";
|
|
5
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.77574633.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.b7b70e5f.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.de0a3457.js";
|
|
12
|
+
import "../../react-draggable.4d08d714.js";
|
|
13
|
+
import "../ModalDialog/index.e600b43a.js";
|
|
14
|
+
import "../Resizeable/index.4545dd6a.js";
|
|
15
15
|
import "@m4l/graphics";
|
|
16
|
-
import "../modal/WindowConfirm.
|
|
17
|
-
import "../modal/WindowBase.
|
|
18
|
-
import "../
|
|
19
|
-
import "../areas/components/AreasAdmin/index.51e28f63.js";
|
|
20
|
-
import "../mui_extended/IconButton/index.be9c2ce5.js";
|
|
16
|
+
import "../modal/WindowConfirm.575b4d41.js";
|
|
17
|
+
import "../modal/WindowBase.230a498f.js";
|
|
18
|
+
import "../mui_extended/IconButton/index.a5072cd3.js";
|
|
21
19
|
import "zustand";
|
|
22
|
-
import "../areas/
|
|
20
|
+
import "../areas/index.d7519516.js";
|
|
23
21
|
import "zustand/shallow";
|
|
24
|
-
import "../areas/components/AreasContainer/index.1e5e6e91.js";
|
|
25
|
-
import "react-grid-layout/css/styles.css";
|
|
26
|
-
import "../../react-resizable.e86cb01e.js";
|
|
27
|
-
import "../areas/contexts/index.2a915acf.js";
|
|
28
|
-
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
29
22
|
import "@mui/lab";
|
|
30
|
-
import "../mui_extended/Typography/index.
|
|
23
|
+
import "../mui_extended/Typography/index.eab3d85c.js";
|
|
31
24
|
const ContainerPeriod = styled("div")(({
|
|
32
25
|
theme,
|
|
33
26
|
error,
|
|
@@ -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.23b980cb.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -76,8 +76,8 @@ const WrapperResizeable = styled(ResizableBox)(({
|
|
|
76
76
|
function ResizeableWindow(props) {
|
|
77
77
|
const {
|
|
78
78
|
children,
|
|
79
|
-
width =
|
|
80
|
-
height =
|
|
79
|
+
width = 600,
|
|
80
|
+
height = 400,
|
|
81
81
|
maxHeigth,
|
|
82
82
|
maxWidth,
|
|
83
83
|
...other
|
|
@@ -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.be57c149.js";
|
|
5
|
+
import { I as Image } from "../Image/index.77396f79.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.a5072cd3.js";
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { styled as styled$1, ListItemText, ListItemButton, Collapse, Skeleton, generateUtilityClasses, 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.
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.fbeeacc8.js";
|
|
10
|
+
import { T as Typography } from "../mui_extended/Typography/index.eab3d85c.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.e271e4f0.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.c2e62d8f.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AreasAdmninClasses } from './types';
|
|
2
|
+
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
|
+
export declare const areasAdminClasses: AreasAdmninClasses;
|
|
4
|
+
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaChipTitle" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
|
|
5
|
+
export declare type AdminClasses = ReturnType<typeof useAreasAdminUtilityClasses>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AreasAdmninClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
areaChipRoot: string;
|
|
4
|
+
areaChipTitle: string;
|
|
5
|
+
areaChipDeleteButton: string;
|
|
6
|
+
areaChipEditButton: string;
|
|
7
|
+
areasAddButton: string;
|
|
8
|
+
selected: string;
|
|
9
|
+
isMobile: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type AreasViewerClassesKey = keyof AreasAdmninClasses;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AreasViewerClasses } from './types';
|
|
2
|
+
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
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>;
|
|
5
|
+
export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface AreasViewerClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
areaRoot: string;
|
|
4
|
+
areaGridLayoutPanelContainer: string;
|
|
5
|
+
areaGridLayout: string;
|
|
6
|
+
areaGridLayoutPopupsContainer: string;
|
|
7
|
+
panelWindowsRoot: string;
|
|
8
|
+
panelWindowsButtonContainer: string;
|
|
9
|
+
windowRoot: string;
|
|
10
|
+
windowHeader: string;
|
|
11
|
+
windowHeaderTitle: string;
|
|
12
|
+
windowHeaderMainActions: string;
|
|
13
|
+
windowContent: string;
|
|
14
|
+
windowPopupRoot: string;
|
|
15
|
+
windowModalRoot: string;
|
|
16
|
+
selected: string;
|
|
17
|
+
isMobile: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type AreasViewerClassesKey = keyof AreasViewerClasses;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Muestra las áreas cargadas en el store, si no se han cargado muestra un componente indicando la carga.
|
|
3
|
+
* Se debe visualizar todas las areas, y con display:none para todas menos para la activa, para que no se tengan que estar montando y destruyendo
|
|
4
|
+
* las ventanas que al cambiar entre áreas
|
|
5
|
+
* @returns JSX Areas
|
|
6
|
+
*/
|
|
7
|
+
export declare function AreasViewer(): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WritableDraft } from 'immer/dist/internal';
|
|
2
2
|
import { Layouts } from 'react-grid-layout';
|
|
3
|
-
import { HashWindowsByLayouts } from '../../
|
|
4
|
-
import { AreaStateWithActions } from './
|
|
3
|
+
import { HashWindowsByLayouts } from '../../types';
|
|
4
|
+
import { AreaStateWithActions } from './types';
|
|
5
5
|
import { WinLayout } from './types';
|
|
6
6
|
export declare const ROW_HEIGTH_GRIDLAYOUT = 100;
|
|
7
7
|
export declare const CONTAINER_PADDING_GRIDLAYOUT = 3;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AreaProviderProps } from './types';
|
|
3
|
-
declare const AreaContext: React.Context<(Omit<Omit<import("zustand").StoreApi<import("./
|
|
3
|
+
declare const AreaContext: React.Context<(Omit<Omit<import("zustand").StoreApi<import("./types").AreaStateWithActions>, "setState"> & {
|
|
4
4
|
setState<A extends string | {
|
|
5
5
|
type: unknown;
|
|
6
|
-
}>(partial: import("./
|
|
6
|
+
}>(partial: import("./types").AreaStateWithActions | Partial<import("./types").AreaStateWithActions> | ((state: import("./types").AreaStateWithActions) => import("./types").AreaStateWithActions | Partial<import("./types").AreaStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
7
7
|
}, "setState"> & {
|
|
8
|
-
setState(nextStateOrUpdater: import("./
|
|
8
|
+
setState(nextStateOrUpdater: import("./types").AreaStateWithActions | Partial<import("./types").AreaStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").AreaStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
9
9
|
type: unknown;
|
|
10
10
|
} | undefined): void;
|
|
11
11
|
}) | null>;
|
package/components/areas/components/AreasViewer/subcomponents/Area/contexts/AreaContext/store.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AreaStateWithActions, InitialStoreProps } from './types';
|
|
2
|
+
export declare const createAreaStore: (initProps: InitialStoreProps) => Omit<Omit<import("zustand").StoreApi<AreaStateWithActions>, "setState"> & {
|
|
3
|
+
setState<A extends string | {
|
|
4
|
+
type: unknown;
|
|
5
|
+
}>(partial: AreaStateWithActions | Partial<AreaStateWithActions> | ((state: AreaStateWithActions) => AreaStateWithActions | Partial<AreaStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
6
|
+
}, "setState"> & {
|
|
7
|
+
setState(nextStateOrUpdater: AreaStateWithActions | Partial<AreaStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<AreaStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
8
|
+
type: unknown;
|
|
9
|
+
} | undefined): void;
|
|
10
|
+
};
|
|
11
|
+
export declare type AreaStore = ReturnType<typeof createAreaStore>;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Layout, Layouts } from 'react-grid-layout';
|
|
1
|
+
import { ReactNode } from 'react';
|
|
3
2
|
import { DebouncedFunc } from 'lodash';
|
|
4
|
-
import {
|
|
3
|
+
import { Layout, Layouts } from 'react-grid-layout';
|
|
4
|
+
import { HashWindowsByLayouts, HashWindowsByPopups, ModalProps, NewLayoutProps, NewModalProps, NewPopUpProps, NewWindowProps, WinType } from '../../types';
|
|
5
|
+
import { AreaProps } from '../../types';
|
|
6
|
+
import { AreaStore } from './store';
|
|
7
|
+
import { Maybe, NetworkProps } from '@m4l/core';
|
|
8
|
+
export declare type WinLayout = Layout & {
|
|
9
|
+
winType: WinType;
|
|
10
|
+
};
|
|
5
11
|
export declare type AreaStatus = 'init' | 'load' | 'loaded' | 'error';
|
|
6
12
|
export declare type Breakpoints = {
|
|
7
13
|
[P: string]: number;
|
|
@@ -11,9 +17,16 @@ export declare type Cols = {
|
|
|
11
17
|
};
|
|
12
18
|
export declare type ViewAreaMode = 'multiple' | 'single';
|
|
13
19
|
export interface AreaState {
|
|
14
|
-
zPopUpIndex: number;
|
|
15
20
|
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* "loadAreasFromNetwork" Indica si se deben cargar las ventanas desde la API
|
|
23
|
+
*/
|
|
16
24
|
loadAreasFromNetwork: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* "loadCookiesFromNetwork" Indica si se deben cargar/grabar las cookies en la API
|
|
27
|
+
*/
|
|
28
|
+
loadCookiesFromNetwork: boolean;
|
|
29
|
+
zPopUpIndex: number;
|
|
17
30
|
loadWindows: boolean;
|
|
18
31
|
status: AreaStatus;
|
|
19
32
|
breakpointsLayouts: Layouts;
|
|
@@ -54,16 +67,16 @@ export interface AreaStateWithActions extends AreaState {
|
|
|
54
67
|
changeDesktopBreakpoint: (isDesktop: boolean) => void;
|
|
55
68
|
};
|
|
56
69
|
}
|
|
57
|
-
declare type DefaultStoreProps = Omit<AreaState, 'id'>;
|
|
58
|
-
declare type InitialStoreProps = Pick<AreaState, 'id' | 'networkOperation' | '
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
type: unknown;
|
|
66
|
-
} | undefined): void;
|
|
70
|
+
export declare type DefaultStoreProps = Omit<AreaState, 'id'>;
|
|
71
|
+
export declare type InitialStoreProps = Pick<AreaState, 'id' | 'networkOperation' | 'loadWindows' | 'isDesktop' | 'loadAreasFromNetwork' | 'loadCookiesFromNetwork'> & Partial<DefaultStoreProps>;
|
|
72
|
+
export interface AreaProviderProps extends AreaProps {
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
}
|
|
75
|
+
export declare type AreaProviderRef = {
|
|
76
|
+
store: AreaStore;
|
|
77
|
+
addWindow: (newWindow: NewWindowProps) => string;
|
|
67
78
|
};
|
|
68
|
-
export
|
|
69
|
-
|
|
79
|
+
export interface AreaContextProps {
|
|
80
|
+
store: AreaStore;
|
|
81
|
+
addWindow: (newWindow: NewWindowProps) => string;
|
|
82
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AreaProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @description Funcion encargada de renderizar un área completa.
|
|
4
|
+
* El AreaProvider crea el store del área, por medio del cual se controla todo el estado y almacenamiento del área
|
|
5
|
+
*
|
|
6
|
+
* @param props AreaProps
|
|
7
|
+
* @returns JSX
|
|
8
|
+
*/
|
|
9
|
+
export declare const Area: {
|
|
10
|
+
(props: AreaProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { ModuleAction, WindowToolsMF } from '
|
|
2
|
-
import { Cookies, WindowBaseProps } from '
|
|
1
|
+
import { ModuleAction, WindowToolsMF } from '../../../../../../../../contexts';
|
|
2
|
+
import { Cookies, WindowBaseProps } from '../../../../types';
|
|
3
3
|
import { NetworkProps } from '@m4l/core';
|
|
4
|
-
import { DynamicMFStore } from '
|
|
4
|
+
import { DynamicMFStore } from '../../../../../../../../contexts/DynamicMFParmsContext/store';
|
|
5
|
+
import { AreaStore } from '../../../../contexts/AreaContext/store';
|
|
6
|
+
import { AreasStore } from '../../../../../../../../contexts/AreasContext/store';
|
|
5
7
|
export declare type WindowStatus = 'init' | 'loaded' | 'error';
|
|
6
8
|
export interface WindowState extends WindowBaseProps {
|
|
7
9
|
status: WindowStatus;
|
|
8
10
|
dynamicMFStore: DynamicMFStore;
|
|
11
|
+
areaStore: AreaStore;
|
|
12
|
+
areasStore: AreasStore;
|
|
13
|
+
version?: string;
|
|
9
14
|
moduleActions: ModuleAction[];
|
|
10
15
|
networkOperation: (props: NetworkProps) => Promise<any>;
|
|
11
16
|
cookies: Cookies;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WindowProps } from '
|
|
2
|
+
import { WindowProps } from '../../types';
|
|
3
3
|
export declare const Window: (props: WindowProps) => JSX.Element;
|
|
4
4
|
export declare const MemonizedWindow: React.MemoExoticComponent<(props: WindowProps) => JSX.Element>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WindowProps } from '
|
|
2
|
+
import { WindowProps } from '../../../../types';
|
|
3
3
|
export declare const InnerForHooks: (props: WindowProps) => JSX.Element | null;
|
|
4
4
|
export declare const MemonizedInnerForHooks: React.MemoExoticComponent<(props: WindowProps) => JSX.Element | null>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ModuleAction } from '../../../../../../../../../../contexts';
|
|
2
|
+
export declare function getMainActions(isDesktop: boolean | undefined, moduleActions: ModuleAction[]): ModuleAction[];
|
|
3
|
+
export declare function getMenuActions(isDesktop: boolean | undefined, moduleActions: ModuleAction[], urlPrefix: string, saveModuleCookies: () => void, version?: string): ModuleAction[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MainActions(): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MFBaseProps } from '
|
|
2
|
+
import { MFBaseProps } from '../../../../../../types';
|
|
3
3
|
export declare const MicroFrontend: (props: MFBaseProps) => JSX.Element;
|
|
4
4
|
export declare const MemonizedMF: React.MemoExoticComponent<(props: MFBaseProps) => JSX.Element>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WindowToolsMF } from '../../../../../../../../../../contexts/WindowToolsMFContext/types';
|
|
2
|
+
import { MFBaseProps } from '../../../../../../types';
|
|
3
|
+
import { DynamicMFStore } from '../../../../../../../../../../contexts/DynamicMFParmsContext/store';
|
|
4
|
+
export interface MicroFrontendProps extends MFBaseProps {
|
|
5
|
+
moduleId: string;
|
|
6
|
+
dynamicMFStore?: DynamicMFStore;
|
|
7
|
+
windowTools: WindowToolsMF;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ModalProps } from '
|
|
2
|
+
import { ModalProps } from '../../types';
|
|
3
3
|
export declare const WindowModal: (props: ModalProps) => JSX.Element;
|
|
4
4
|
export declare const MemonizedWindowModal: React.MemoExoticComponent<(props: ModalProps) => JSX.Element>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PopUpProps } from '
|
|
2
|
+
import { PopUpProps } from '../../types';
|
|
3
3
|
export declare const WindowPopUp: (props: PopUpProps) => JSX.Element;
|
|
4
4
|
export declare const MemonizedWindowPopUp: React.MemoExoticComponent<(props: PopUpProps) => JSX.Element>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { DynamicMFParameters } from '
|
|
2
|
+
import { DynamicMFParameters } from '../../../../contexts/DynamicMFParmsContext/types';
|
|
3
3
|
import type { Layout } from 'react-grid-layout';
|
|
4
|
-
import { WindowStore } from '
|
|
5
|
-
import { AreaStore } from '
|
|
4
|
+
import { WindowStore } from './subcomponents/Window/contexts/WindowContext/store';
|
|
5
|
+
import { AreaStore } from './contexts/AreaContext/store';
|
|
6
6
|
export declare type WinType = 'microfrontend' | 'component';
|
|
7
7
|
export declare type EmergeType = 'layout' | 'popup' | 'modal';
|
|
8
8
|
export interface MFBaseProps {
|
|
@@ -73,7 +73,8 @@ export interface HashWindowsByPopups {
|
|
|
73
73
|
export interface ModalBaseProps extends WindowBaseProps {
|
|
74
74
|
emergeType: 'modal';
|
|
75
75
|
zIndex?: number;
|
|
76
|
-
|
|
76
|
+
width?: number;
|
|
77
|
+
height?: number;
|
|
77
78
|
}
|
|
78
79
|
export interface ModalMFProps extends ModalBaseProps {
|
|
79
80
|
winType: 'microfrontend';
|
|
@@ -96,11 +97,5 @@ export interface AreaType {
|
|
|
96
97
|
linked?: boolean;
|
|
97
98
|
}
|
|
98
99
|
export interface AreaProps extends Omit<AreaType, 'url_icon' | 'name'> {
|
|
99
|
-
|
|
100
|
+
selected: boolean;
|
|
100
101
|
}
|
|
101
|
-
export declare type AreaRef = {
|
|
102
|
-
addWindow?: (newWindow: NewWindowProps) => string;
|
|
103
|
-
current: {
|
|
104
|
-
divRef: HTMLDivElement | null;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from './Area';
|
|
2
1
|
export * from './AreasAdmin';
|
|
3
|
-
export * from './
|
|
4
|
-
export type { NewWindowProps as NewWindow } from './Area/types';
|
|
5
|
-
export type { MicroFrontendProps } from './Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types';
|
|
2
|
+
export * from './AreasViewer';
|
|
3
|
+
export type { NewWindowProps as NewWindow } from './AreasViewer/subcomponents/Area/types';
|
|
4
|
+
export type { MicroFrontendProps } from './AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types';
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AreasProviderProps } from './types';
|
|
3
|
-
declare const AreasContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./
|
|
2
|
+
import type { AreasProviderProps } from './types';
|
|
3
|
+
declare const AreasContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").AreasStateWithActions>, "setState"> & {
|
|
4
4
|
setState<A extends string | {
|
|
5
5
|
type: unknown;
|
|
6
|
-
}>(partial: import("./
|
|
6
|
+
}>(partial: import("./types").AreasStateWithActions | Partial<import("./types").AreasStateWithActions> | ((state: import("./types").AreasStateWithActions) => import("./types").AreasStateWithActions | Partial<import("./types").AreasStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
7
7
|
}, "setState"> & {
|
|
8
|
-
setState(nextStateOrUpdater: import("./
|
|
8
|
+
setState(nextStateOrUpdater: import("./types").AreasStateWithActions | Partial<import("./types").AreasStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").AreasStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
9
9
|
type: unknown;
|
|
10
10
|
} | undefined): void;
|
|
11
11
|
}) | null>;
|
|
12
|
+
/**
|
|
13
|
+
* @description Provedor del contexto de las areas de trabajo,
|
|
14
|
+
* Expone el store (AreasStore) encargado de gestionar la creación, modificación y borrado de las areas de trabajo.
|
|
15
|
+
* @param props
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
12
18
|
declare function AreasProvider(props: AreasProviderProps): JSX.Element;
|
|
13
19
|
export { AreasProvider, AreasContext };
|
|
@@ -1,31 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
loadAreasFromNetwork: boolean;
|
|
10
|
-
currentArea: string;
|
|
11
|
-
status: AreasStatus;
|
|
12
|
-
areas: AreaType[];
|
|
13
|
-
}
|
|
14
|
-
export interface AreasStateWithActions extends AreasState {
|
|
15
|
-
actions: {
|
|
16
|
-
addArea: () => string;
|
|
17
|
-
deleteArea: (areaId: string) => void;
|
|
18
|
-
selectArea: (newAreaId: string) => void;
|
|
19
|
-
};
|
|
20
|
-
internalActions: {
|
|
21
|
-
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
22
|
-
loadFromApi: () => void;
|
|
23
|
-
setAreaLink: (areaId: string, store: AreaStore) => void;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
declare type DefaultStoreProps = Omit<AreasState, 'currentArea'>;
|
|
27
|
-
declare type InitialStoreProps = Pick<AreasState, 'networkOperation' | 'loadAreasFromNetwork' | 'getLabel'> & Partial<DefaultStoreProps>;
|
|
28
|
-
export declare const createAreasStore: (initProps: InitialStoreProps) => Omit<Omit<import("zustand").StoreApi<AreasStateWithActions>, "setState"> & {
|
|
1
|
+
import type { WritableDraft } from 'immer/dist/internal';
|
|
2
|
+
import type { AreasStateWithActions, InitialAreasStoreProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @description Crea el Store, por defecto inicia en estado 'init'
|
|
5
|
+
* @param initProps propiedades iniciales del store
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const createAreasStore: (initProps: InitialAreasStoreProps) => Omit<Omit<import("zustand").StoreApi<AreasStateWithActions>, "setState"> & {
|
|
29
9
|
setState<A extends string | {
|
|
30
10
|
type: unknown;
|
|
31
11
|
}>(partial: AreasStateWithActions | Partial<AreasStateWithActions> | ((state: AreasStateWithActions) => AreasStateWithActions | Partial<AreasStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
@@ -35,4 +15,3 @@ export declare const createAreasStore: (initProps: InitialStoreProps) => Omit<Om
|
|
|
35
15
|
} | undefined): void;
|
|
36
16
|
};
|
|
37
17
|
export declare type AreasStore = ReturnType<typeof createAreasStore>;
|
|
38
|
-
export {};
|