@m4l/components 0.1.72 → 0.1.73
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/components/CommonActions/components/ActionCancel/{index.07ba5a89.js → index.583dd385.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.9bdae569.js → index.673cb6bc.js} +18 -18
- package/components/CommonActions/components/ActionFormIntro/{index.e077d11f.js → index.ca18700c.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.a454d0e4.js → index.41d66b77.js} +3 -3
- package/components/CommonActions/components/Actions/{index.e190561b.js → index.665b1d56.js} +18 -18
- package/components/DataGrid/{index.549bd646.js → index.860f4d1c.js} +20 -20
- package/components/DynamicFilter/{index.c1a3e2f1.js → index.09d83f9d.js} +31 -31
- package/components/HelperText/{index.4c27bfc1.js → index.581ddb8f.js} +8 -8
- package/components/Icon/{index.9839297c.js → index.4eeb3de9.js} +2 -2
- package/components/Image/{index.a88f6341.js → index.52c84d9f.js} +1 -1
- package/components/LanguagePopover/{index.84c51cd3.js → index.f7ee5a9c.js} +9 -9
- package/components/ModalDialog/{index.75ddf6de.js → index.1e6150f6.js} +7 -7
- package/components/NavLink/{index.e88494ef.js → index.5f3e2493.js} +9 -9
- package/components/NoItemSelected/{index.c3b67da1.js → index.b51f007c.js} +1 -1
- package/components/ObjectLogs/{index.88bcf75a.js → index.26644722.js} +16 -16
- package/components/PaperForm/{index.b141d583.js → index.be12afa3.js} +1 -1
- package/components/Period/{index.2ab4f2a1.js → index.f24d7084.js} +18 -18
- package/components/Resizeable/{index.086ff29e.js → index.949b18ff.js} +1 -1
- package/components/SideBar/{index.90137dc5.js → index.e716e9e0.js} +6 -6
- package/components/areas/components/AreasAdmin/{index.218451cf.js → index.b26ee1b2.js} +31 -31
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +14 -2
- package/components/areas/components/AreasViewer/{index.51ee3d38.js → index.d33b4a7d.js} +174 -48
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/index.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/subcomponents/Toasty/index.d.ts +7 -0
- package/components/areas/components/index.b2ee7610.js +14 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.0b50676d.js → index.9c35425b.js} +66 -27
- package/components/areas/contexts/AreasContext/types.d.ts +2 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +2 -1
- package/components/areas/contexts/{index.b0ce327e.js → index.d2f1c19a.js} +1 -1
- package/components/areas/hooks/useAreas/{index.e868e3d9.js → index.6540b5ab.js} +1 -1
- package/components/areas/{icons.b36751f2.js → icons.3ec589d3.js} +3 -1
- package/components/areas/icons.d.ts +2 -0
- package/components/areas/{index.05b7b8e2.js → index.8ed127ca.js} +5 -5
- package/components/areas/index.d.ts +1 -0
- package/components/areas/types.d.ts +5 -2
- package/components/formatters/BooleanFormatter/{index.e610de08.js → index.87ca7bb3.js} +1 -1
- package/components/formatters/{index.982e909b.js → index.83c50bdb.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.b185393e.js → index.743b5558.js} +10 -10
- package/components/hook-form/RHFAutocompleteAsync/{index.7a569646.js → index.5be9ea91.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.7a9ea396.js → index.77758da5.js} +3 -3
- package/components/hook-form/RHFDateTime/{index.2fd1d56b.js → index.d554d467.js} +9 -9
- package/components/hook-form/RHFPeriod/{index.df3d3f69.js → index.02253c2d.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e1b50c30.js → index.5066b599.js} +6 -6
- package/components/hook-form/RHFUpload/{index.ec977af6.js → index.6ecf3230.js} +1 -1
- package/components/modal/{WindowBase.e5ec6128.js → WindowBase.e59ef8a1.js} +10 -10
- package/components/modal/{WindowConfirm.b89712de.js → WindowConfirm.a9e351fa.js} +16 -16
- package/components/modal/index.2e83c400.js +36 -0
- package/components/mui_extended/Accordion/{index.d420b666.js → index.9c36b7a5.js} +2 -2
- package/components/mui_extended/Button/{index.1cd0c4e4.js → index.1cb53ba2.js} +3 -3
- package/components/mui_extended/IconButton/{index.590049b4.js → index.89428485.js} +1 -1
- package/components/mui_extended/MenuActions/{index.f9eb6463.js → index.d426f50b.js} +2 -2
- package/components/mui_extended/Pager/{index.c058b933.js → index.2c081f2c.js} +1 -1
- package/components/mui_extended/Typography/{index.1659d310.js → index.1ff05abe.js} +1 -1
- package/components/mui_extended/{index.ec312b5a.js → index.bc3da862.js} +8 -8
- package/contexts/ModalContext/{index.92e80136.js → index.ca4ffa64.js} +1 -1
- package/hooks/useModal/{index.18a7cb8f.js → index.97628a64.js} +1 -1
- package/index.js +47 -47
- package/package.json +1 -1
- package/{react-draggable.21aa9ee1.js → react-draggable.64706389.js} +1 -1
- package/{react-resizable.e78d1cc8.js → react-resizable.67e38975.js} +2 -2
- package/utils/{index.8608d16c.js → index.94b9dc32.js} +1 -1
- package/{vendor.d194839d.js → vendor.fcb620ee.js} +43 -43
- package/components/areas/components/index.ae4cbf2e.js +0 -14
- package/components/modal/index.97752555.js +0 -36
|
@@ -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.fcb620ee.js";
|
|
5
|
+
import { I as Image } from "../Image/index.52c84d9f.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.89428485.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.4eeb3de9.js";
|
|
10
|
+
import { T as Typography } from "../mui_extended/Typography/index.1ff05abe.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.94b9dc32.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -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.89428485.js";
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.6540b5ab.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.4eeb3de9.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
|
-
import "../../../mui_extended/Accordion/index.
|
|
10
|
+
import "../../../mui_extended/Accordion/index.9c36b7a5.js";
|
|
11
11
|
import "../../../mui_extended/Avatar/index.fe06afd7.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.1cb53ba2.js";
|
|
15
|
+
import "../../../Image/index.52c84d9f.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.1ff05abe.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.d426f50b.js";
|
|
20
|
+
import "../../../mui_extended/Pager/index.2c081f2c.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.94b9dc32.js";
|
|
24
24
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
25
|
-
import { I as ICONS } from "../../icons.
|
|
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.ca4ffa64.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.743b5558.js";
|
|
31
|
+
import "../../../HelperText/index.581ddb8f.js";
|
|
32
32
|
import "lodash/debounce";
|
|
33
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
34
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
33
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.5be9ea91.js";
|
|
34
|
+
import "../../../hook-form/RHFCheckbox/index.77758da5.js";
|
|
35
35
|
import "@mui/x-date-pickers";
|
|
36
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
36
|
+
import "../../../hook-form/RHFDateTime/index.d554d467.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.5066b599.js";
|
|
39
|
+
import "../../../hook-form/RHFPeriod/index.02253c2d.js";
|
|
40
|
+
import "../../../Period/index.f24d7084.js";
|
|
41
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.665b1d56.js";
|
|
42
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.583dd385.js";
|
|
43
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.41d66b77.js";
|
|
44
|
+
import "../../../../react-draggable.64706389.js";
|
|
45
|
+
import "../../../ModalDialog/index.1e6150f6.js";
|
|
46
|
+
import "../../../Resizeable/index.949b18ff.js";
|
|
47
|
+
import "../../../modal/WindowConfirm.a9e351fa.js";
|
|
48
|
+
import "../../../modal/WindowBase.e59ef8a1.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.d33b4a7d.js";
|
|
53
|
+
import "../../contexts/AreasContext/index.9c35425b.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.6ecf3230.js";
|
|
60
60
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
61
61
|
"root",
|
|
62
62
|
"areaChipRoot",
|
|
@@ -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" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "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" | "windowToastiesContainer" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
5
5
|
export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -4,8 +4,6 @@ export interface AreasViewerClasses {
|
|
|
4
4
|
areaGridLayoutPanelContainer: string;
|
|
5
5
|
areaGridLayout: string;
|
|
6
6
|
areaGridLayoutPopupsContainer: string;
|
|
7
|
-
panelWindowsRoot: string;
|
|
8
|
-
panelWindowsButtonContainer: string;
|
|
9
7
|
windowRoot: string;
|
|
10
8
|
windowHeader: string;
|
|
11
9
|
windowHeaderTitle: string;
|
|
@@ -14,9 +12,23 @@ export interface AreasViewerClasses {
|
|
|
14
12
|
windowRootContainer: string;
|
|
15
13
|
windowPopupRoot: string;
|
|
16
14
|
windowModalRoot: string;
|
|
15
|
+
windowToastiesContainer: string;
|
|
16
|
+
windowToastyContainer: string;
|
|
17
|
+
windowToastyMeesageButtonsContainer: string;
|
|
18
|
+
windowToastyMessage: string;
|
|
19
|
+
windowToastyButtonsContainer: string;
|
|
20
|
+
windowToastyPin: string;
|
|
21
|
+
windowToastyClose: string;
|
|
22
|
+
panelWindowsRoot: string;
|
|
23
|
+
panelWindowsButtonContainer: string;
|
|
17
24
|
selected: string;
|
|
18
25
|
selectedWindow: string;
|
|
19
26
|
isMobile: string;
|
|
20
27
|
loading: string;
|
|
28
|
+
pinIn: string;
|
|
29
|
+
success: string;
|
|
30
|
+
info: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
error: string;
|
|
21
33
|
}
|
|
22
34
|
export declare type AreasViewerClassesKey = keyof AreasViewerClasses;
|
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { r as react_resizable_css } from "../../../../react-resizable.
|
|
2
|
+
import { r as react_resizable_css } from "../../../../react-resizable.67e38975.js";
|
|
3
3
|
import { generateUtilityClasses, Skeleton, styled as styled$1, Typography as Typography$1, Dialog } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
5
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.94b9dc32.js";
|
|
6
6
|
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
7
7
|
import React__default, { useMemo, useState, useRef, useCallback, useEffect } from "react";
|
|
8
8
|
import { WidthProvider, Responsive } from "react-grid-layout";
|
|
9
9
|
import { shallow } from "zustand/shallow";
|
|
10
|
-
import { I as Icon } from "../../../Icon/index.
|
|
10
|
+
import { I as Icon } from "../../../Icon/index.4eeb3de9.js";
|
|
11
11
|
import { m } from "framer-motion";
|
|
12
12
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
13
13
|
import "react-router-dom";
|
|
14
14
|
import "../../../animate/LoadingScreen/index.1d0c4307.js";
|
|
15
15
|
import "../../../animate/PropagateLoader/index.be5b02c3.js";
|
|
16
16
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useNetwork, useHostTools, axiosOperation } from "@m4l/core";
|
|
17
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
17
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.89428485.js";
|
|
18
18
|
import clsx from "clsx";
|
|
19
19
|
import { useResponsiveDesktop, useHostTheme, useFormatter, useLocales, useFirstRender, useResizeObserver } from "@m4l/graphics";
|
|
20
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
21
|
-
import "../AreasAdmin/index.
|
|
22
|
-
import { I as ICONS } from "../../icons.
|
|
20
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.6540b5ab.js";
|
|
21
|
+
import "../AreasAdmin/index.b26ee1b2.js";
|
|
22
|
+
import { I as ICONS } from "../../icons.3ec589d3.js";
|
|
23
23
|
import "../../../ScrollBar/index.bbe48f4d.js";
|
|
24
|
-
import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT, T as THROTTLE_RESIZE_TIME } from "../../contexts/AreasContext/index.
|
|
24
|
+
import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT, T as THROTTLE_RESIZE_TIME } from "../../contexts/AreasContext/index.9c35425b.js";
|
|
25
25
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
26
26
|
import "zustand";
|
|
27
27
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
28
28
|
import "react-hook-form";
|
|
29
|
-
import "../../../hook-form/RHFAutocomplete/index.
|
|
30
|
-
import { I as Image } from "../../../Image/index.
|
|
31
|
-
import { T as Typography } from "../../../mui_extended/Typography/index.
|
|
32
|
-
import "../../../mui_extended/Accordion/index.
|
|
29
|
+
import "../../../hook-form/RHFAutocomplete/index.743b5558.js";
|
|
30
|
+
import { I as Image } from "../../../Image/index.52c84d9f.js";
|
|
31
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.1ff05abe.js";
|
|
32
|
+
import "../../../mui_extended/Accordion/index.9c36b7a5.js";
|
|
33
33
|
import "../../../mui_extended/Avatar/index.fe06afd7.js";
|
|
34
34
|
import "@mui/material/Button";
|
|
35
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
35
|
+
import { B as Button } from "../../../mui_extended/Button/index.1cb53ba2.js";
|
|
36
36
|
import "@mui/lab";
|
|
37
37
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
38
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
39
|
-
import "../../../mui_extended/Pager/index.
|
|
38
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.d426f50b.js";
|
|
39
|
+
import "../../../mui_extended/Pager/index.2c081f2c.js";
|
|
40
40
|
import "../../../mui_extended/Tab/index.e0653a0a.js";
|
|
41
|
-
import "../../../HelperText/index.
|
|
41
|
+
import "../../../HelperText/index.581ddb8f.js";
|
|
42
42
|
import debounce from "lodash/debounce";
|
|
43
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
44
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
43
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.5be9ea91.js";
|
|
44
|
+
import "../../../hook-form/RHFCheckbox/index.77758da5.js";
|
|
45
45
|
import "@mui/x-date-pickers";
|
|
46
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
47
|
-
import "../../../hook-form/RHFTextField/index.
|
|
48
|
-
import "../../../hook-form/RHFPeriod/index.
|
|
49
|
-
import "../../../Period/index.
|
|
50
|
-
import "../../../CommonActions/components/Actions/index.
|
|
51
|
-
import "../../../../contexts/ModalContext/index.
|
|
52
|
-
import { c as cjs } from "../../../../react-draggable.
|
|
53
|
-
import "../../../ModalDialog/index.
|
|
54
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.
|
|
55
|
-
import "../../../modal/WindowConfirm.
|
|
56
|
-
import "../../../modal/WindowBase.
|
|
46
|
+
import "../../../hook-form/RHFDateTime/index.d554d467.js";
|
|
47
|
+
import "../../../hook-form/RHFTextField/index.5066b599.js";
|
|
48
|
+
import "../../../hook-form/RHFPeriod/index.02253c2d.js";
|
|
49
|
+
import "../../../Period/index.f24d7084.js";
|
|
50
|
+
import "../../../CommonActions/components/Actions/index.665b1d56.js";
|
|
51
|
+
import "../../../../contexts/ModalContext/index.ca4ffa64.js";
|
|
52
|
+
import { c as cjs } from "../../../../react-draggable.64706389.js";
|
|
53
|
+
import "../../../ModalDialog/index.1e6150f6.js";
|
|
54
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index.949b18ff.js";
|
|
55
|
+
import "../../../modal/WindowConfirm.a9e351fa.js";
|
|
56
|
+
import "../../../modal/WindowBase.e59ef8a1.js";
|
|
57
57
|
import "lodash/isString";
|
|
58
58
|
import "react-dropzone";
|
|
59
|
-
import "../../../hook-form/RHFUpload/index.
|
|
60
|
-
import "../../../DataGrid/index.
|
|
59
|
+
import "../../../hook-form/RHFUpload/index.6ecf3230.js";
|
|
60
|
+
import "../../../DataGrid/index.860f4d1c.js";
|
|
61
61
|
import "react-dnd";
|
|
62
62
|
import "react-dnd-html5-backend";
|
|
63
|
-
import "../../../DynamicFilter/index.
|
|
63
|
+
import "../../../DynamicFilter/index.09d83f9d.js";
|
|
64
64
|
import "yup";
|
|
65
65
|
import "@hookform/resolvers/yup";
|
|
66
66
|
import "../../../../contexts/RHFormContext/index.a7511399.js";
|
|
67
|
-
import "../../../LanguagePopover/index.
|
|
68
|
-
import "../../../NavLink/index.
|
|
69
|
-
import "../../../NoItemSelected/index.
|
|
70
|
-
import "../../../ObjectLogs/index.
|
|
67
|
+
import "../../../LanguagePopover/index.f7ee5a9c.js";
|
|
68
|
+
import "../../../NavLink/index.5f3e2493.js";
|
|
69
|
+
import "../../../NoItemSelected/index.b51f007c.js";
|
|
70
|
+
import "../../../ObjectLogs/index.26644722.js";
|
|
71
71
|
import "../../../../react-json-view.57125fcf.js";
|
|
72
|
-
import "../../../PaperForm/index.
|
|
72
|
+
import "../../../PaperForm/index.be12afa3.js";
|
|
73
73
|
import "../../../Page/index.4237c241.js";
|
|
74
74
|
import "../../../PropertyValue/index.dfcfe1ba.js";
|
|
75
75
|
import "../../../../react-splitter-layout.8b1655c8.js";
|
|
76
76
|
import "../../../SplitLayout/index.5a8355d8.js";
|
|
77
|
-
import "../../../SideBar/index.
|
|
78
|
-
import { D as DraggableWindow } from "../../../../vendor.
|
|
77
|
+
import "../../../SideBar/index.e716e9e0.js";
|
|
78
|
+
import { D as DraggableWindow } from "../../../../vendor.fcb620ee.js";
|
|
79
79
|
import { g as getAreasDictionary } from "../../dictionary.e72db809.js";
|
|
80
80
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
81
81
|
import { v as varBounce } from "../../../animate/variants/bounce.784aaaaa.js";
|
|
@@ -94,12 +94,24 @@ const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
|
94
94
|
"windowPopupRoot",
|
|
95
95
|
"windowModalRoot",
|
|
96
96
|
"windowRootContainer",
|
|
97
|
+
"windowToastiesContainer",
|
|
98
|
+
"windowToastyContainer",
|
|
99
|
+
"windowToastyMeesageButtonsContainer",
|
|
100
|
+
"windowToastyMessage",
|
|
101
|
+
"windowToastyButtonsContainer",
|
|
102
|
+
"windowToastyPin",
|
|
103
|
+
"windowToastyClose",
|
|
97
104
|
"panelWindowsRoot",
|
|
98
105
|
"panelWindowsButtonContainer",
|
|
99
106
|
"selected",
|
|
100
107
|
"selectedWindow",
|
|
101
108
|
"isMobile",
|
|
102
|
-
"loading"
|
|
109
|
+
"loading",
|
|
110
|
+
"pinIn",
|
|
111
|
+
"success",
|
|
112
|
+
"info",
|
|
113
|
+
"warning",
|
|
114
|
+
"error"
|
|
103
115
|
], AREAS_VIEWER_CLASS_NAME);
|
|
104
116
|
const useAreasViewerUtilityClasses = (ownerState) => {
|
|
105
117
|
const slots = {
|
|
@@ -117,6 +129,13 @@ const useAreasViewerUtilityClasses = (ownerState) => {
|
|
|
117
129
|
windowPopupRoot: ["windowPopupRoot"],
|
|
118
130
|
windowModalRoot: ["windowModalRoot"],
|
|
119
131
|
selectedWindow: ["selectedWindow"],
|
|
132
|
+
windowToastiesContainer: ["windowToastiesContainer"],
|
|
133
|
+
windowToastyContainer: ["windowToastiesContainer"],
|
|
134
|
+
windowToastyMeesageButtonsContainer: ["windowToastyMeesageButtonsContainer"],
|
|
135
|
+
windowToastyMessage: ["windowToastyMessage"],
|
|
136
|
+
windowToastyButtonsContainer: ["windowToastyButtonsContainer"],
|
|
137
|
+
windowToastyPin: ["windowToastyPin"],
|
|
138
|
+
windowToastyClose: ["windowToastyClose"],
|
|
120
139
|
panelWindowsRoot: ["panelWindowsRoot"],
|
|
121
140
|
panelWindowsButtonContainer: ["panelWindowsButtonContainer"]
|
|
122
141
|
};
|
|
@@ -195,7 +214,7 @@ const AreasViewerRoot = styled("div")`
|
|
|
195
214
|
|
|
196
215
|
// windowRoot
|
|
197
216
|
& .${areasViewerClasses.windowRoot} {
|
|
198
|
-
inset:0;
|
|
217
|
+
inset: 0;
|
|
199
218
|
position: absolute;
|
|
200
219
|
display: flex;
|
|
201
220
|
flex-direction: column;
|
|
@@ -215,21 +234,19 @@ const AreasViewerRoot = styled("div")`
|
|
|
215
234
|
& .${areasViewerClasses.windowHeader} {
|
|
216
235
|
display: flex;
|
|
217
236
|
gap: 4px;
|
|
218
|
-
|
|
237
|
+
|
|
219
238
|
align-items: center;
|
|
220
239
|
position: relative;
|
|
221
240
|
|
|
222
241
|
padding: 8px;
|
|
223
242
|
justify-content: end;
|
|
224
|
-
min-height: ${(props) => props.theme.spacing(5)}
|
|
243
|
+
min-height: ${(props) => props.theme.spacing(5)};
|
|
225
244
|
|
|
226
245
|
border-bottom: 1px solid ${(props) => props.theme.palette.divider};
|
|
227
246
|
overflow: hidden;
|
|
228
247
|
cursor: move;
|
|
229
248
|
height: 60px;
|
|
230
249
|
|
|
231
|
-
|
|
232
|
-
|
|
233
250
|
> span: {
|
|
234
251
|
margin-right: 12px;
|
|
235
252
|
}
|
|
@@ -252,7 +269,6 @@ const AreasViewerRoot = styled("div")`
|
|
|
252
269
|
gap: 4px;
|
|
253
270
|
}
|
|
254
271
|
|
|
255
|
-
|
|
256
272
|
// windowHeaderMainActions
|
|
257
273
|
& .${areasViewerClasses.windowContent} {
|
|
258
274
|
flex-grow: 1;
|
|
@@ -994,7 +1010,10 @@ const Component = (props) => {
|
|
|
994
1010
|
...windowTools,
|
|
995
1011
|
children: /* @__PURE__ */ jsx(DynamicMFParmsProvider, {
|
|
996
1012
|
store: dynamicMFStore,
|
|
997
|
-
children: typeof component === "function" ? component(
|
|
1013
|
+
children: typeof component === "function" ? component({
|
|
1014
|
+
windowTools,
|
|
1015
|
+
dynamicMFStore
|
|
1016
|
+
}) : component
|
|
998
1017
|
})
|
|
999
1018
|
});
|
|
1000
1019
|
};
|
|
@@ -1071,10 +1090,111 @@ const WindowRoot = styled("div")`
|
|
|
1071
1090
|
padding: 16px;
|
|
1072
1091
|
}
|
|
1073
1092
|
|
|
1093
|
+
// windowToastiesContainer
|
|
1094
|
+
& .${areasViewerClasses.windowToastiesContainer} {
|
|
1095
|
+
padding: 4px;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
// windowToastyContainer
|
|
1099
|
+
& .${areasViewerClasses.windowToastyContainer} {
|
|
1100
|
+
display: flex;
|
|
1101
|
+
flex-direction: column;
|
|
1102
|
+
}
|
|
1103
|
+
// windowToastyContainer
|
|
1104
|
+
& .${areasViewerClasses.windowToastyContainer}.${areasViewerClasses.success} {
|
|
1105
|
+
background-color: ${(props) => props.theme.palette.success.main}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
// windowToastyMeesageButtonsContainer
|
|
1109
|
+
& .${areasViewerClasses.windowToastyMeesageButtonsContainer} {
|
|
1110
|
+
display: flex;
|
|
1111
|
+
|
|
1112
|
+
}
|
|
1113
|
+
& .MuiLinearProgress-root {
|
|
1114
|
+
width: 100%;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
// windowToastyMessage
|
|
1121
|
+
& .${areasViewerClasses.windowToastyMessage} {
|
|
1122
|
+
flex-grow: 1;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
// windowToastyContainer
|
|
1126
|
+
& .${areasViewerClasses.windowToastyPin}.${areasViewerClasses.pinIn} {
|
|
1127
|
+
border: 1px solid red;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1074
1132
|
${(props) => props.theme.components?.M4LAreasViewerWindow?.styleOverrides}
|
|
1075
1133
|
|
|
1076
1134
|
|
|
1077
1135
|
`;
|
|
1136
|
+
function Toasty(props) {
|
|
1137
|
+
const {
|
|
1138
|
+
windowId,
|
|
1139
|
+
toastyId
|
|
1140
|
+
} = props;
|
|
1141
|
+
const toasty = useAreasStore((state) => state.hashWindows[windowId].hashToasties[toastyId], shallow);
|
|
1142
|
+
console.log("percentExecuted", toasty.percentExecuted, toasty.timer);
|
|
1143
|
+
const {
|
|
1144
|
+
pinToasty,
|
|
1145
|
+
closeToasty
|
|
1146
|
+
} = useAreasStore((state) => state.windowActions, shallow);
|
|
1147
|
+
const {
|
|
1148
|
+
host_static_assets,
|
|
1149
|
+
environment_assets
|
|
1150
|
+
} = useEnvironment();
|
|
1151
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1152
|
+
className: clsx(areasViewerClasses.windowToastyContainer, areasViewerClasses[toasty.type]),
|
|
1153
|
+
children: [toasty.timer ? /* @__PURE__ */ jsx(LinearProgress, {
|
|
1154
|
+
variant: "determinate",
|
|
1155
|
+
value: toasty.percentExecuted
|
|
1156
|
+
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
1157
|
+
className: areasViewerClasses.windowToastyMeesageButtonsContainer,
|
|
1158
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
1159
|
+
className: areasViewerClasses.windowToastyMessage,
|
|
1160
|
+
children: toasty.message
|
|
1161
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
1162
|
+
className: areasViewerClasses.windowToastyButtonsContainer,
|
|
1163
|
+
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
1164
|
+
className: clsx(areasViewerClasses.windowToastyPin, toasty.timer ? null : areasViewerClasses.pinIn),
|
|
1165
|
+
onClick: () => {
|
|
1166
|
+
pinToasty(windowId, toastyId);
|
|
1167
|
+
},
|
|
1168
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_PIN}`
|
|
1169
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1170
|
+
className: areasViewerClasses.windowToastyClose,
|
|
1171
|
+
onClick: () => {
|
|
1172
|
+
closeToasty(windowId, toastyId);
|
|
1173
|
+
},
|
|
1174
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_CLOSE}`
|
|
1175
|
+
})]
|
|
1176
|
+
})]
|
|
1177
|
+
})]
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
function Toasties(props) {
|
|
1181
|
+
const {
|
|
1182
|
+
windowId
|
|
1183
|
+
} = props;
|
|
1184
|
+
const tosties = useAreasStore((state) => state.hashWindows[windowId].toasties, shallow);
|
|
1185
|
+
if (tosties.length === 0) {
|
|
1186
|
+
return null;
|
|
1187
|
+
}
|
|
1188
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1189
|
+
className: areasViewerClasses.windowToastiesContainer,
|
|
1190
|
+
children: tosties.map((t) => {
|
|
1191
|
+
return /* @__PURE__ */ jsx(Toasty, {
|
|
1192
|
+
windowId,
|
|
1193
|
+
toastyId: t.id
|
|
1194
|
+
}, t.id);
|
|
1195
|
+
})
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1078
1198
|
const Window = (props) => {
|
|
1079
1199
|
const {
|
|
1080
1200
|
emergeType,
|
|
@@ -1090,7 +1210,8 @@ const Window = (props) => {
|
|
|
1090
1210
|
getCookies,
|
|
1091
1211
|
setCookie,
|
|
1092
1212
|
close,
|
|
1093
|
-
setLoading
|
|
1213
|
+
setLoading,
|
|
1214
|
+
toasty
|
|
1094
1215
|
} = useAreasStore((state) => state.windowActions, shallow);
|
|
1095
1216
|
const {
|
|
1096
1217
|
selectWindowPopUp,
|
|
@@ -1121,6 +1242,9 @@ const Window = (props) => {
|
|
|
1121
1242
|
close: () => close(windowId),
|
|
1122
1243
|
setLoading: (isLoading) => {
|
|
1123
1244
|
setLoading(windowId, isLoading);
|
|
1245
|
+
},
|
|
1246
|
+
toasty: (toastyOptions) => {
|
|
1247
|
+
toasty(windowId, toastyOptions);
|
|
1124
1248
|
}
|
|
1125
1249
|
}), []);
|
|
1126
1250
|
useEffect(() => {
|
|
@@ -1134,6 +1258,8 @@ const Window = (props) => {
|
|
|
1134
1258
|
areaId,
|
|
1135
1259
|
windowId,
|
|
1136
1260
|
emergeType
|
|
1261
|
+
}), /* @__PURE__ */ jsx(Toasties, {
|
|
1262
|
+
windowId
|
|
1137
1263
|
}), /* @__PURE__ */ jsx("div", {
|
|
1138
1264
|
className: areasViewerClasses.windowContent,
|
|
1139
1265
|
children: wd.status === "init" ? /* @__PURE__ */ jsx("div", {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "@m4l/core";
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "../../Icon/index.4eeb3de9.js";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "../../mui_extended/IconButton/index.89428485.js";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import "zustand";
|
|
10
|
+
import "../contexts/AreasContext/index.9c35425b.js";
|
|
11
|
+
import "./AreasAdmin/index.b26ee1b2.js";
|
|
12
|
+
import "zustand/shallow";
|
|
13
|
+
import "../../ScrollBar/index.bbe48f4d.js";
|
|
14
|
+
import "./AreasViewer/index.d33b4a7d.js";
|
|
@@ -31,7 +31,7 @@ export declare const MAXIMIZED_COLS: {
|
|
|
31
31
|
xs: number;
|
|
32
32
|
xxs: number;
|
|
33
33
|
};
|
|
34
|
-
export declare const DEFAULT_WINDOW: Pick<WindowState, 'status' | 'moduleActions' | 'cookies' | 'loading' | '
|
|
34
|
+
export declare const DEFAULT_WINDOW: Pick<WindowState, 'status' | 'moduleActions' | 'cookies' | 'loading' | 'toasties' | 'toastyCount' | 'hashToasties'>;
|
|
35
35
|
export declare const DEFAULT_AREA: Omit<Area, 'id' | 'name' | 'loadWindows' | 'viewMode'>;
|
|
36
36
|
/**
|
|
37
37
|
* @description Función de apoyo que crea un área de trabajo,
|
|
@@ -58,4 +58,4 @@ export declare function getDataFromResponse(data: any, state: WritableDraft<Area
|
|
|
58
58
|
newHashWindowLayouts: HashWindowsByLayouts;
|
|
59
59
|
};
|
|
60
60
|
export declare function getCookiesContainer(data: any, containerId: string): Record<string, any>;
|
|
61
|
-
export declare const
|
|
61
|
+
export declare const verifyRemoveToasty: (state: WritableDraft<WindowStateProps>, toastyId: number, forceRemove?: boolean | undefined) => void;
|