@m4l/components 0.1.72 → 0.1.74

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.
Files changed (66) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.07ba5a89.js → index.fad4a0dc.js} +2 -2
  2. package/components/CommonActions/components/ActionFormCancel/{index.9bdae569.js → index.a26820a9.js} +18 -18
  3. package/components/CommonActions/components/ActionFormIntro/{index.e077d11f.js → index.403d8952.js} +2 -2
  4. package/components/CommonActions/components/ActionIntro/{index.a454d0e4.js → index.0fb6efbe.js} +3 -3
  5. package/components/CommonActions/components/Actions/{index.e190561b.js → index.51b9c92a.js} +18 -18
  6. package/components/DataGrid/{index.549bd646.js → index.dbae54dd.js} +20 -20
  7. package/components/DynamicFilter/{index.c1a3e2f1.js → index.cb7fd1b6.js} +31 -31
  8. package/components/HelperText/{index.4c27bfc1.js → index.d449d124.js} +8 -8
  9. package/components/Icon/{index.9839297c.js → index.d214a74d.js} +2 -2
  10. package/components/Image/{index.a88f6341.js → index.1af119da.js} +1 -1
  11. package/components/LanguagePopover/{index.84c51cd3.js → index.4fef99ac.js} +9 -9
  12. package/components/ModalDialog/{index.75ddf6de.js → index.6c35e653.js} +7 -7
  13. package/components/NavLink/{index.e88494ef.js → index.9e56bcd3.js} +9 -9
  14. package/components/NoItemSelected/{index.c3b67da1.js → index.cd842b62.js} +1 -1
  15. package/components/ObjectLogs/{index.88bcf75a.js → index.e1a1b27c.js} +16 -16
  16. package/components/PaperForm/{index.b141d583.js → index.76bd3a6d.js} +1 -1
  17. package/components/Period/{index.2ab4f2a1.js → index.b93d22fa.js} +18 -18
  18. package/components/Resizeable/{index.086ff29e.js → index.834a9144.js} +1 -1
  19. package/components/SideBar/{index.90137dc5.js → index.ff7cbe91.js} +6 -6
  20. package/components/areas/components/AreasAdmin/{index.218451cf.js → index.1eda80b9.js} +31 -31
  21. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  22. package/components/areas/components/AreasViewer/classes/types.d.ts +14 -2
  23. package/components/areas/components/AreasViewer/{index.51ee3d38.js → index.eddc9945.js} +176 -49
  24. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/index.d.ts +6 -0
  25. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/subcomponents/Toasty/index.d.ts +7 -0
  26. package/components/areas/components/index.f3a98b6d.js +14 -0
  27. package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
  28. package/components/areas/contexts/AreasContext/{index.0b50676d.js → index.a88b73a6.js} +66 -27
  29. package/components/areas/contexts/AreasContext/types.d.ts +2 -0
  30. package/components/areas/contexts/WindowToolsMFContext/types.d.ts +2 -1
  31. package/components/areas/contexts/{index.b0ce327e.js → index.7dd01403.js} +1 -1
  32. package/components/areas/hooks/useAreas/{index.e868e3d9.js → index.7a37ede8.js} +1 -1
  33. package/components/areas/{icons.b36751f2.js → icons.3ec589d3.js} +3 -1
  34. package/components/areas/icons.d.ts +2 -0
  35. package/components/areas/{index.05b7b8e2.js → index.95c4ed37.js} +5 -5
  36. package/components/areas/index.d.ts +1 -0
  37. package/components/areas/types.d.ts +5 -2
  38. package/components/formatters/BooleanFormatter/{index.e610de08.js → index.820a2130.js} +1 -1
  39. package/components/formatters/{index.982e909b.js → index.0c692a4b.js} +2 -2
  40. package/components/hook-form/RHFAutocomplete/{index.b185393e.js → index.72437d8a.js} +10 -10
  41. package/components/hook-form/RHFAutocompleteAsync/{index.7a569646.js → index.2a84f2b2.js} +2 -2
  42. package/components/hook-form/RHFCheckbox/{index.7a9ea396.js → index.6e6389e7.js} +3 -3
  43. package/components/hook-form/RHFDateTime/{index.2fd1d56b.js → index.745b101b.js} +9 -9
  44. package/components/hook-form/RHFPeriod/{index.df3d3f69.js → index.6969af99.js} +2 -2
  45. package/components/hook-form/RHFTextField/{index.e1b50c30.js → index.ca7393a7.js} +6 -6
  46. package/components/hook-form/RHFUpload/{index.ec977af6.js → index.d74ca00d.js} +1 -1
  47. package/components/modal/{WindowBase.e5ec6128.js → WindowBase.9b93578e.js} +10 -10
  48. package/components/modal/{WindowConfirm.b89712de.js → WindowConfirm.7ec9dcd3.js} +16 -16
  49. package/components/modal/index.dba72820.js +36 -0
  50. package/components/mui_extended/Accordion/{index.d420b666.js → index.09a89d3d.js} +2 -2
  51. package/components/mui_extended/Button/{index.1cd0c4e4.js → index.f9d54780.js} +3 -3
  52. package/components/mui_extended/IconButton/{index.590049b4.js → index.822cdaac.js} +1 -1
  53. package/components/mui_extended/MenuActions/{index.f9eb6463.js → index.03403529.js} +2 -2
  54. package/components/mui_extended/Pager/{index.c058b933.js → index.6428b07c.js} +1 -1
  55. package/components/mui_extended/Typography/{index.1659d310.js → index.e2d9e3f2.js} +1 -1
  56. package/components/mui_extended/{index.ec312b5a.js → index.b4ced9e3.js} +8 -8
  57. package/contexts/ModalContext/{index.92e80136.js → index.0484ca54.js} +1 -1
  58. package/hooks/useModal/{index.18a7cb8f.js → index.c6069beb.js} +1 -1
  59. package/index.js +47 -47
  60. package/package.json +1 -1
  61. package/{react-draggable.21aa9ee1.js → react-draggable.17b4ec8a.js} +1 -1
  62. package/{react-resizable.e78d1cc8.js → react-resizable.ffd7c2aa.js} +2 -2
  63. package/utils/{index.8608d16c.js → index.aca80f3a.js} +1 -1
  64. package/{vendor.d194839d.js → vendor.99e0c856.js} +43 -43
  65. package/components/areas/components/index.ae4cbf2e.js +0 -14
  66. 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.d194839d.js";
5
- import { I as Image } from "../Image/index.a88f6341.js";
6
- import { I as IconButton } from "../mui_extended/IconButton/index.590049b4.js";
4
+ import { T as TEST_PROP_ID } from "../../vendor.99e0c856.js";
5
+ import { I as Image } from "../Image/index.1af119da.js";
6
+ import { I as IconButton } from "../mui_extended/IconButton/index.822cdaac.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.9839297c.js";
10
- import { T as Typography } from "../mui_extended/Typography/index.1659d310.js";
9
+ import { I as Icon, A as ArrowIcon } from "../Icon/index.d214a74d.js";
10
+ import { T as Typography } from "../mui_extended/Typography/index.e2d9e3f2.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.8608d16c.js";
16
+ import { g as getComponentUtilityClass } from "../../utils/index.aca80f3a.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.590049b4.js";
2
- import { u as useAreasStore } from "../../hooks/useAreas/index.e868e3d9.js";
1
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.822cdaac.js";
2
+ import { u as useAreasStore } from "../../hooks/useAreas/index.7a37ede8.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.9839297c.js";
7
+ import { I as Icon } from "../../../Icon/index.d214a74d.js";
8
8
  import clsx from "clsx";
9
9
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
10
- import "../../../mui_extended/Accordion/index.d420b666.js";
10
+ import "../../../mui_extended/Accordion/index.09a89d3d.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.1cd0c4e4.js";
15
- import "../../../Image/index.a88f6341.js";
14
+ import "../../../mui_extended/Button/index.f9d54780.js";
15
+ import "../../../Image/index.1af119da.js";
16
16
  import "@mui/lab";
17
- import { T as Typography } from "../../../mui_extended/Typography/index.1659d310.js";
17
+ import { T as Typography } from "../../../mui_extended/Typography/index.e2d9e3f2.js";
18
18
  import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
19
- import "../../../mui_extended/MenuActions/index.f9eb6463.js";
20
- import "../../../mui_extended/Pager/index.c058b933.js";
19
+ import "../../../mui_extended/MenuActions/index.03403529.js";
20
+ import "../../../mui_extended/Pager/index.6428b07c.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.8608d16c.js";
23
+ import { g as getComponentUtilityClass } from "../../../../utils/index.aca80f3a.js";
24
24
  import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
25
- import { I as ICONS } from "../../icons.b36751f2.js";
25
+ import { I as ICONS } from "../../icons.3ec589d3.js";
26
26
  import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
27
- import "../../../../contexts/ModalContext/index.92e80136.js";
27
+ import "../../../../contexts/ModalContext/index.0484ca54.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.b185393e.js";
31
- import "../../../HelperText/index.4c27bfc1.js";
30
+ import "../../../hook-form/RHFAutocomplete/index.72437d8a.js";
31
+ import "../../../HelperText/index.d449d124.js";
32
32
  import "lodash/debounce";
33
- import "../../../hook-form/RHFAutocompleteAsync/index.7a569646.js";
34
- import "../../../hook-form/RHFCheckbox/index.7a9ea396.js";
33
+ import "../../../hook-form/RHFAutocompleteAsync/index.2a84f2b2.js";
34
+ import "../../../hook-form/RHFCheckbox/index.6e6389e7.js";
35
35
  import "@mui/x-date-pickers";
36
- import "../../../hook-form/RHFDateTime/index.2fd1d56b.js";
36
+ import "../../../hook-form/RHFDateTime/index.745b101b.js";
37
37
  import "@m4l/graphics";
38
- import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.e1b50c30.js";
39
- import "../../../hook-form/RHFPeriod/index.df3d3f69.js";
40
- import "../../../Period/index.2ab4f2a1.js";
41
- import { A as Actions } from "../../../CommonActions/components/Actions/index.e190561b.js";
42
- import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.07ba5a89.js";
43
- import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.a454d0e4.js";
44
- import "../../../../react-draggable.21aa9ee1.js";
45
- import "../../../ModalDialog/index.75ddf6de.js";
46
- import "../../../Resizeable/index.086ff29e.js";
47
- import "../../../modal/WindowConfirm.b89712de.js";
48
- import "../../../modal/WindowBase.e5ec6128.js";
38
+ import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.ca7393a7.js";
39
+ import "../../../hook-form/RHFPeriod/index.6969af99.js";
40
+ import "../../../Period/index.b93d22fa.js";
41
+ import { A as Actions } from "../../../CommonActions/components/Actions/index.51b9c92a.js";
42
+ import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.fad4a0dc.js";
43
+ import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.0fb6efbe.js";
44
+ import "../../../../react-draggable.17b4ec8a.js";
45
+ import "../../../ModalDialog/index.6c35e653.js";
46
+ import "../../../Resizeable/index.834a9144.js";
47
+ import "../../../modal/WindowConfirm.7ec9dcd3.js";
48
+ import "../../../modal/WindowBase.9b93578e.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.51ee3d38.js";
53
- import "../../contexts/AreasContext/index.0b50676d.js";
52
+ import "../AreasViewer/index.eddc9945.js";
53
+ import "../../contexts/AreasContext/index.a88b73a6.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.ec977af6.js";
59
+ import "../../../hook-form/RHFUpload/index.d74ca00d.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.e78d1cc8.js";
2
+ import { r as react_resizable_css } from "../../../../react-resizable.ffd7c2aa.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.8608d16c.js";
5
+ import { g as getComponentUtilityClass } from "../../../../utils/index.aca80f3a.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.9839297c.js";
10
+ import { I as Icon } from "../../../Icon/index.d214a74d.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.590049b4.js";
17
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.822cdaac.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.e868e3d9.js";
21
- import "../AreasAdmin/index.218451cf.js";
22
- import { I as ICONS } from "../../icons.b36751f2.js";
20
+ import { u as useAreasStore } from "../../hooks/useAreas/index.7a37ede8.js";
21
+ import "../AreasAdmin/index.1eda80b9.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.0b50676d.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.a88b73a6.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.b185393e.js";
30
- import { I as Image } from "../../../Image/index.a88f6341.js";
31
- import { T as Typography } from "../../../mui_extended/Typography/index.1659d310.js";
32
- import "../../../mui_extended/Accordion/index.d420b666.js";
29
+ import "../../../hook-form/RHFAutocomplete/index.72437d8a.js";
30
+ import { I as Image } from "../../../Image/index.1af119da.js";
31
+ import { T as Typography } from "../../../mui_extended/Typography/index.e2d9e3f2.js";
32
+ import "../../../mui_extended/Accordion/index.09a89d3d.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.1cd0c4e4.js";
35
+ import { B as Button } from "../../../mui_extended/Button/index.f9d54780.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.f9eb6463.js";
39
- import "../../../mui_extended/Pager/index.c058b933.js";
38
+ import { M as MenuActions } from "../../../mui_extended/MenuActions/index.03403529.js";
39
+ import "../../../mui_extended/Pager/index.6428b07c.js";
40
40
  import "../../../mui_extended/Tab/index.e0653a0a.js";
41
- import "../../../HelperText/index.4c27bfc1.js";
41
+ import "../../../HelperText/index.d449d124.js";
42
42
  import debounce from "lodash/debounce";
43
- import "../../../hook-form/RHFAutocompleteAsync/index.7a569646.js";
44
- import "../../../hook-form/RHFCheckbox/index.7a9ea396.js";
43
+ import "../../../hook-form/RHFAutocompleteAsync/index.2a84f2b2.js";
44
+ import "../../../hook-form/RHFCheckbox/index.6e6389e7.js";
45
45
  import "@mui/x-date-pickers";
46
- import "../../../hook-form/RHFDateTime/index.2fd1d56b.js";
47
- import "../../../hook-form/RHFTextField/index.e1b50c30.js";
48
- import "../../../hook-form/RHFPeriod/index.df3d3f69.js";
49
- import "../../../Period/index.2ab4f2a1.js";
50
- import "../../../CommonActions/components/Actions/index.e190561b.js";
51
- import "../../../../contexts/ModalContext/index.92e80136.js";
52
- import { c as cjs } from "../../../../react-draggable.21aa9ee1.js";
53
- import "../../../ModalDialog/index.75ddf6de.js";
54
- import { R as ResizeableWindow } from "../../../Resizeable/index.086ff29e.js";
55
- import "../../../modal/WindowConfirm.b89712de.js";
56
- import "../../../modal/WindowBase.e5ec6128.js";
46
+ import "../../../hook-form/RHFDateTime/index.745b101b.js";
47
+ import "../../../hook-form/RHFTextField/index.ca7393a7.js";
48
+ import "../../../hook-form/RHFPeriod/index.6969af99.js";
49
+ import "../../../Period/index.b93d22fa.js";
50
+ import "../../../CommonActions/components/Actions/index.51b9c92a.js";
51
+ import "../../../../contexts/ModalContext/index.0484ca54.js";
52
+ import { c as cjs } from "../../../../react-draggable.17b4ec8a.js";
53
+ import "../../../ModalDialog/index.6c35e653.js";
54
+ import { R as ResizeableWindow } from "../../../Resizeable/index.834a9144.js";
55
+ import "../../../modal/WindowConfirm.7ec9dcd3.js";
56
+ import "../../../modal/WindowBase.9b93578e.js";
57
57
  import "lodash/isString";
58
58
  import "react-dropzone";
59
- import "../../../hook-form/RHFUpload/index.ec977af6.js";
60
- import "../../../DataGrid/index.549bd646.js";
59
+ import "../../../hook-form/RHFUpload/index.d74ca00d.js";
60
+ import "../../../DataGrid/index.dbae54dd.js";
61
61
  import "react-dnd";
62
62
  import "react-dnd-html5-backend";
63
- import "../../../DynamicFilter/index.c1a3e2f1.js";
63
+ import "../../../DynamicFilter/index.cb7fd1b6.js";
64
64
  import "yup";
65
65
  import "@hookform/resolvers/yup";
66
66
  import "../../../../contexts/RHFormContext/index.a7511399.js";
67
- import "../../../LanguagePopover/index.84c51cd3.js";
68
- import "../../../NavLink/index.e88494ef.js";
69
- import "../../../NoItemSelected/index.c3b67da1.js";
70
- import "../../../ObjectLogs/index.88bcf75a.js";
67
+ import "../../../LanguagePopover/index.4fef99ac.js";
68
+ import "../../../NavLink/index.9e56bcd3.js";
69
+ import "../../../NoItemSelected/index.cd842b62.js";
70
+ import "../../../ObjectLogs/index.e1a1b27c.js";
71
71
  import "../../../../react-json-view.57125fcf.js";
72
- import "../../../PaperForm/index.b141d583.js";
72
+ import "../../../PaperForm/index.76bd3a6d.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.90137dc5.js";
78
- import { D as DraggableWindow } from "../../../../vendor.d194839d.js";
77
+ import "../../../SideBar/index.ff7cbe91.js";
78
+ import { D as DraggableWindow } from "../../../../vendor.99e0c856.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() : 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", {
@@ -1312,7 +1438,8 @@ const PanelWindows = (props) => {
1312
1438
  children: /* @__PURE__ */ jsx(IconButton, {
1313
1439
  src: hashWindowsLayouts[l.i].url_icon,
1314
1440
  size: "small",
1315
- onClick: () => onTouched(l.i)
1441
+ onClick: () => onTouched(l.i),
1442
+ tooltip: singleId !== l.i ? hashWindowsLayouts[l.i].title : void 0
1316
1443
  })
1317
1444
  }, l.i);
1318
1445
  })
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare type ToastiesProps = {
3
+ windowId: string;
4
+ };
5
+ export declare function Toasties(props: ToastiesProps): import("react").JSX.Element | null;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type ToastyProps = {
3
+ windowId: string;
4
+ toastyId: number;
5
+ };
6
+ export declare function Toasty(props: ToastyProps): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import "react";
2
+ import "@m4l/core";
3
+ import "@mui/material";
4
+ import "../../Icon/index.d214a74d.js";
5
+ import "clsx";
6
+ import "react/jsx-runtime";
7
+ import "../../mui_extended/IconButton/index.822cdaac.js";
8
+ import "@m4l/graphics";
9
+ import "zustand";
10
+ import "../contexts/AreasContext/index.a88b73a6.js";
11
+ import "./AreasAdmin/index.1eda80b9.js";
12
+ import "zustand/shallow";
13
+ import "../../ScrollBar/index.bbe48f4d.js";
14
+ import "./AreasViewer/index.eddc9945.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' | 'tosties' | 'toastyCount'>;
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 removeToasty: (state: WritableDraft<WindowStateProps>, toastyId: number) => void;
61
+ export declare const verifyRemoveToasty: (state: WritableDraft<WindowStateProps>, toastyId: number, forceRemove?: boolean | undefined) => void;