@m4l/components 0.1.87 → 0.1.89
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 +84 -112
- package/components/AccountPopover/{index.0bee6fca.js → index.bb2c369d.js} +7 -7
- package/components/AppBar/{index.8e3e0148.js → index.58233583.js} +7 -7
- package/components/CommonActions/components/ActionCancel/{index.e66f9b5f.js → index.ffc5618a.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.51311bde.js → index.baa35ca3.js} +15 -15
- package/components/CommonActions/components/ActionFormIntro/{index.2ecd7ba1.js → index.906d46a0.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.33892c01.js → index.81d2648b.js} +1 -1
- package/components/CommonActions/components/Actions/{index.018d4c62.js → index.366cb775.js} +13 -13
- package/components/DataGrid/formatters/columnNestedValueFormatter/{index.f68ef4e1.js → index.b63f7246.js} +3 -1
- package/components/DataGrid/{index.c348b106.js → index.8c887df9.js} +7 -7
- package/components/DataGrid/subcomponents/Actions/{index.080e8c7d.js → index.895fc73f.js} +25 -23
- package/components/DynamicFilter/dictionary.d.ts +6 -2
- package/components/DynamicFilter/{index.20ee6e21.js → index.d2e7bdcc.js} +56 -53
- package/components/GridLayout/{index.2383aaf9.js → index.8ae34c50.js} +25 -16
- package/components/GridLayout/subcomponents/Griditem/{index.58168132.js → index.c7a33781.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.a6642437.js → index.96cdb1b4.js} +1 -2
- package/components/HelperText/{index.d00b45e5.js → index.69791151.js} +7 -7
- package/components/Icon/{index.435df215.js → index.a70c4729.js} +1 -1
- package/components/LanguagePopover/{index.3f25054a.js → index.349d359c.js} +7 -7
- package/components/ModalDialog/{index.df9b1e97.js → index.302a87c9.js} +5 -15
- package/components/NavLink/{index.cc66f31f.js → index.8fe407ef.js} +7 -7
- package/components/NoItemSelected/{index.a2807715.js → index.1eaf72d8.js} +7 -8
- package/components/ObjectLogs/{index.ca98686d.js → index.98d3400e.js} +17 -17
- package/components/PaperForm/{index.ad703ab6.js → index.e02c772c.js} +3 -14
- package/components/Period/{index.83b88249.js → index.972dbe64.js} +14 -14
- package/components/PropertyValue/{index.45b365c3.js → index.d3d71d50.js} +5 -4
- package/components/Resizeable/{index.9a9c79a4.js → index.676c96fe.js} +33 -12
- package/components/SideBar/{index.387a2fa1.js → index.2dfc5445.js} +2 -2
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +1 -0
- package/components/areas/components/AreasAdmin/{index.f0fd024a.js → index.cb3d7bd6.js} +44 -40
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/{index.6c28b2c0.js → index.1eef603d.js} +68 -77
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +2 -0
- package/components/areas/components/{index.d920205b.js → index.44ec162f.js} +10 -10
- package/components/areas/contexts/AreasContext/{index.060aa7b0.js → index.7a2d5394.js} +9 -15
- package/components/areas/contexts/{index.1485986f.js → index.7bae4208.js} +1 -1
- package/components/areas/{dictionary.afb7e3d9.js → dictionary.08cfc4c9.js} +7 -1
- package/components/areas/dictionary.d.ts +6 -0
- package/components/areas/hooks/useAreas/{index.e4e54402.js → index.1f112e0b.js} +1 -1
- package/components/areas/{index.e9f2274c.js → index.aaaa1f62.js} +10 -10
- package/components/formatters/BooleanFormatter/{index.14cfcbc7.js → index.a013b080.js} +1 -1
- package/components/formatters/{index.b574dda9.js → index.576922c9.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.f4eb65ce.js → index.5c23bd25.js} +8 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.8ecce8fd.js → index.85b11f3a.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.45b6ee0b.js → index.a136882e.js} +9 -8
- package/components/hook-form/RHFDateTime/{index.802fb228.js → index.1ca795b0.js} +8 -10
- package/components/hook-form/RHFPeriod/{index.6395b24a.js → index.90777c53.js} +2 -2
- package/components/hook-form/RHFTextField/{index.75129118.js → index.ccea64e7.js} +3 -3
- package/components/hook-form/RHFUpload/{index.fead1c63.js → index.85e59119.js} +8 -8
- package/components/modal/{WindowBase.f568bcac.js → WindowBase.39a70f35.js} +21 -17
- package/components/modal/{WindowConfirm.3c4da58c.js → WindowConfirm.f53c02f6.js} +29 -19
- package/components/modal/classes/index.d.ts +2 -0
- package/components/modal/classes/types.d.ts +2 -0
- package/components/modal/dictionary.d.ts +1 -0
- package/components/modal/index.d.ts +1 -0
- package/components/modal/{index.8d846036.js → index.dbdb6ac0.js} +24 -16
- package/components/mui_extended/Accordion/{index.1d182a0e.js → index.0e0090ca.js} +3 -3
- package/components/mui_extended/Badge/{index.8c2b8b66.js → index.b09524fe.js} +1 -1
- package/components/mui_extended/Badge/types.d.ts +1 -1
- package/components/mui_extended/IconButton/{index.d88a3f2e.js → index.76624519.js} +2 -2
- package/components/mui_extended/MenuActions/classes/constants.d.ts +1 -0
- package/components/mui_extended/MenuActions/classes/index.d.ts +7 -0
- package/components/mui_extended/MenuActions/classes/types.d.ts +7 -0
- package/components/mui_extended/MenuActions/{index.c53370f6.js → index.4c2e48d4.js} +42 -11
- package/components/mui_extended/MenuActions/types.d.ts +2 -0
- package/components/mui_extended/Pager/{index.d6c87c44.js → index.ac2a21f0.js} +1 -1
- package/components/mui_extended/Tab/{index.8592b93c.js → index.3db2e0c7.js} +37 -5
- package/components/mui_extended/TabContent/TabContent.d.ts +3 -0
- package/components/mui_extended/TabContent/classes/constants.d.ts +1 -0
- package/components/mui_extended/TabContent/classes/index.d.ts +6 -0
- package/components/mui_extended/TabContent/classes/types.d.ts +6 -0
- package/components/mui_extended/TabContent/index.d.ts +2 -0
- package/components/mui_extended/TabContent/types.d.ts +6 -0
- package/components/mui_extended/{index.5ffe6d2b.js → index.9e8aeca8.js} +7 -7
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.9fb8e0a2.js → index.1fc9f5d9.js} +3 -1
- package/contexts/RHFormContext/{index.ea2758ed.js → index.1755b324.js} +4 -7
- package/hooks/useFormAddEdit/{index.3f77d470.js → index.4906dbb4.js} +15 -14
- package/hooks/useModal/{index.caaeaddd.js → index.6457198c.js} +1 -1
- package/index.js +65 -63
- package/package.json +1 -1
- package/{vendor.15beabcd.js → vendor.92191f81.js} +53 -53
|
@@ -6,26 +6,26 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
6
6
|
import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
7
7
|
import { useState, useEffect } from "react";
|
|
8
8
|
import clsx from "clsx";
|
|
9
|
-
import "../../Icon/index.
|
|
9
|
+
import "../../Icon/index.a70c4729.js";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
|
-
import "../../mui_extended/IconButton/index.
|
|
12
|
-
import "../../mui_extended/Accordion/index.
|
|
11
|
+
import "../../mui_extended/IconButton/index.76624519.js";
|
|
12
|
+
import "../../mui_extended/Accordion/index.0e0090ca.js";
|
|
13
13
|
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
14
14
|
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
15
15
|
import "react-router-dom";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
17
|
import "../../mui_extended/Button/index.f79eb74e.js";
|
|
18
18
|
import "../../mui_extended/CheckBox.38abccd8.js";
|
|
19
|
-
import "../../mui_extended/Badge/index.
|
|
19
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
20
20
|
import "../../Image/index.c18ebf5a.js";
|
|
21
21
|
import "@mui/lab";
|
|
22
|
-
import "../../mui_extended/MenuActions/index.
|
|
22
|
+
import "../../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
23
23
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
24
24
|
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
25
|
-
import "../../mui_extended/Tab/index.
|
|
26
|
-
import "../../mui_extended/Pager/index.
|
|
25
|
+
import "../../mui_extended/Tab/index.3db2e0c7.js";
|
|
26
|
+
import "../../mui_extended/Pager/index.ac2a21f0.js";
|
|
27
27
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
28
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
28
|
+
import { H as HelperText } from "../../HelperText/index.69791151.js";
|
|
29
29
|
import { styled } from "@mui/material/styles";
|
|
30
30
|
import { unstable_composeClasses } from "@mui/base";
|
|
31
31
|
const SKTRHFWrapperTextField = styled("div")(({
|
|
@@ -173,8 +173,6 @@ function RHFDateTime(props) {
|
|
|
173
173
|
slots: {},
|
|
174
174
|
slotProps: {
|
|
175
175
|
textField: {
|
|
176
|
-
error: !!error,
|
|
177
|
-
helperText: error?.message,
|
|
178
176
|
onFocus: handlerFocus,
|
|
179
177
|
onBlur: handlerBlur
|
|
180
178
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
4
|
-
import { P as Period } from "../../Period/index.
|
|
3
|
+
import { H as HelperText } from "../../HelperText/index.69791151.js";
|
|
4
|
+
import { P as Period } from "../../Period/index.972dbe64.js";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
const RHFPeriodRoot = styled("div")(({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { forwardRef, useState, useEffect } from "react";
|
|
4
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
4
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.76624519.js";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
7
|
-
import "../../Icon/index.
|
|
7
|
+
import "../../Icon/index.a70c4729.js";
|
|
8
8
|
import "clsx";
|
|
9
9
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
10
10
|
import { useFormContext, Controller } from "react-hook-form";
|
|
@@ -12,7 +12,7 @@ import { styled as styled$1 } from "@mui/material/styles";
|
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
13
|
import { g as getComponentUtilityClass } from "../../../utils/index.c43a95f4.js";
|
|
14
14
|
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
15
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
15
|
+
import { H as HelperText } from "../../HelperText/index.69791151.js";
|
|
16
16
|
const SkeletonTextFieldRoot = styled("div")(() => ({
|
|
17
17
|
display: "flex",
|
|
18
18
|
flexDirection: "column",
|
|
@@ -9,25 +9,25 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
|
9
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
10
|
import { B as Button } from "../../mui_extended/Button/index.f79eb74e.js";
|
|
11
11
|
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
12
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
12
|
+
import { H as HelperText } from "../../HelperText/index.69791151.js";
|
|
13
13
|
import "clsx";
|
|
14
14
|
import { styled } from "@mui/material/styles";
|
|
15
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
|
-
import "../../Icon/index.
|
|
18
|
-
import "../../mui_extended/IconButton/index.
|
|
17
|
+
import "../../Icon/index.a70c4729.js";
|
|
18
|
+
import "../../mui_extended/IconButton/index.76624519.js";
|
|
19
19
|
import "@m4l/graphics";
|
|
20
|
-
import "../../mui_extended/Accordion/index.
|
|
20
|
+
import "../../mui_extended/Accordion/index.0e0090ca.js";
|
|
21
21
|
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
22
22
|
import "react-router-dom";
|
|
23
23
|
import "../../mui_extended/CheckBox.38abccd8.js";
|
|
24
|
-
import "../../mui_extended/Badge/index.
|
|
24
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
25
25
|
import "@mui/lab";
|
|
26
|
-
import "../../mui_extended/MenuActions/index.
|
|
26
|
+
import "../../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
27
27
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
28
28
|
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
29
|
-
import "../../mui_extended/Tab/index.
|
|
30
|
-
import "../../mui_extended/Pager/index.
|
|
29
|
+
import "../../mui_extended/Tab/index.3db2e0c7.js";
|
|
30
|
+
import "../../mui_extended/Pager/index.ac2a21f0.js";
|
|
31
31
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
32
32
|
const UploadImageRoot = styled("div")(({
|
|
33
33
|
theme
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.6457198c.js";
|
|
4
4
|
import "@mui/material";
|
|
5
5
|
import "../../react-draggable.7abb5d0a.js";
|
|
6
|
-
import "../Resizeable/index.
|
|
6
|
+
import "../Resizeable/index.676c96fe.js";
|
|
7
7
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import { m as modalUtilityClasses } from "./index.8d846036.js";
|
|
12
|
-
import "../CommonActions/components/Actions/index.018d4c62.js";
|
|
9
|
+
import { m as modalUtilityClasses } from "./index.dbdb6ac0.js";
|
|
10
|
+
import "../CommonActions/components/Actions/index.366cb775.js";
|
|
13
11
|
import "@mui/material/Button";
|
|
14
12
|
import "../mui_extended/Button/index.f79eb74e.js";
|
|
13
|
+
import clsx from "clsx";
|
|
15
14
|
import "react-hook-form";
|
|
16
|
-
import { I as
|
|
15
|
+
import { I as Icon } from "../Icon/index.a70c4729.js";
|
|
16
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
|
|
17
17
|
import "zustand";
|
|
18
|
-
import "../areas/contexts/AreasContext/index.
|
|
19
|
-
import "../areas/components/AreasAdmin/index.
|
|
18
|
+
import "../areas/contexts/AreasContext/index.7a2d5394.js";
|
|
19
|
+
import "../areas/components/AreasAdmin/index.cb3d7bd6.js";
|
|
20
20
|
import "zustand/shallow";
|
|
21
21
|
import "../ScrollBar/index.65bb2930.js";
|
|
22
|
-
import "../mui_extended/Accordion/index.
|
|
22
|
+
import "../mui_extended/Accordion/index.0e0090ca.js";
|
|
23
23
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
24
24
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
25
25
|
import "react-router-dom";
|
|
26
26
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
27
|
-
import "../mui_extended/Badge/index.
|
|
27
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
28
28
|
import "../Image/index.c18ebf5a.js";
|
|
29
29
|
import "@mui/lab";
|
|
30
|
-
import "../mui_extended/MenuActions/index.
|
|
30
|
+
import "../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
31
31
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
32
32
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
33
|
-
import "../mui_extended/Tab/index.
|
|
34
|
-
import "../mui_extended/Pager/index.
|
|
33
|
+
import "../mui_extended/Tab/index.3db2e0c7.js";
|
|
34
|
+
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
35
35
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
36
|
-
import "../areas/components/AreasViewer/index.
|
|
36
|
+
import "../areas/components/AreasViewer/index.1eef603d.js";
|
|
37
37
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
38
38
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
39
39
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -58,7 +58,8 @@ const Header = (props) => {
|
|
|
58
58
|
children: [urlIcon && /* @__PURE__ */ jsx("div", {
|
|
59
59
|
className: classes.iconHeader,
|
|
60
60
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
61
|
-
src: urlIcon
|
|
61
|
+
src: urlIcon,
|
|
62
|
+
size: "medium"
|
|
62
63
|
})
|
|
63
64
|
}), /* @__PURE__ */ jsx("div", {
|
|
64
65
|
className: classes.titleHeader,
|
|
@@ -94,7 +95,10 @@ const WindowBase = (props) => {
|
|
|
94
95
|
...other,
|
|
95
96
|
onClickCancel: onCloseCancel,
|
|
96
97
|
classes
|
|
97
|
-
}),
|
|
98
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
99
|
+
className: classes.windowContent,
|
|
100
|
+
children
|
|
101
|
+
})]
|
|
98
102
|
});
|
|
99
103
|
};
|
|
100
104
|
export {
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.6457198c.js";
|
|
4
4
|
import { Typography } from "@mui/material";
|
|
5
5
|
import "../../react-draggable.7abb5d0a.js";
|
|
6
|
-
import "../Resizeable/index.
|
|
7
|
-
import { jsx, jsxs
|
|
6
|
+
import "../Resizeable/index.676c96fe.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
12
|
-
import { A as
|
|
13
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.e66f9b5f.js";
|
|
14
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.33892c01.js";
|
|
9
|
+
import { m as modalUtilityClasses } from "./index.dbdb6ac0.js";
|
|
10
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.366cb775.js";
|
|
11
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.ffc5618a.js";
|
|
12
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.81d2648b.js";
|
|
15
13
|
import "react-hook-form";
|
|
16
14
|
import "@mui/material/Button";
|
|
17
15
|
import "../mui_extended/Button/index.f79eb74e.js";
|
|
18
|
-
import "
|
|
16
|
+
import "clsx";
|
|
17
|
+
import "../Icon/index.a70c4729.js";
|
|
18
|
+
import "../mui_extended/IconButton/index.76624519.js";
|
|
19
19
|
import "zustand";
|
|
20
|
-
import "../areas/contexts/AreasContext/index.
|
|
21
|
-
import "../areas/components/AreasAdmin/index.
|
|
20
|
+
import "../areas/contexts/AreasContext/index.7a2d5394.js";
|
|
21
|
+
import "../areas/components/AreasAdmin/index.cb3d7bd6.js";
|
|
22
22
|
import "zustand/shallow";
|
|
23
23
|
import "../ScrollBar/index.65bb2930.js";
|
|
24
|
-
import "../mui_extended/Accordion/index.
|
|
24
|
+
import "../mui_extended/Accordion/index.0e0090ca.js";
|
|
25
25
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
26
26
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
27
27
|
import "react-router-dom";
|
|
28
28
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
29
|
-
import "../mui_extended/Badge/index.
|
|
29
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
30
30
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
31
31
|
import "@mui/lab";
|
|
32
|
-
import "../mui_extended/MenuActions/index.
|
|
32
|
+
import "../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
33
33
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
34
34
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
35
|
-
import "../mui_extended/Tab/index.
|
|
36
|
-
import "../mui_extended/Pager/index.
|
|
35
|
+
import "../mui_extended/Tab/index.3db2e0c7.js";
|
|
36
|
+
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
37
37
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
38
|
-
import "../areas/components/AreasViewer/index.
|
|
38
|
+
import "../areas/components/AreasViewer/index.1eef603d.js";
|
|
39
39
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
40
40
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
41
41
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
42
|
+
import { W as WindowBase } from "./WindowBase.39a70f35.js";
|
|
42
43
|
const dictionary = {
|
|
43
44
|
MESSAGE: "common_actions.confirm_quit_msg"
|
|
44
45
|
};
|
|
@@ -98,6 +99,13 @@ const WindowConfirm = (props) => {
|
|
|
98
99
|
const {
|
|
99
100
|
closeModal
|
|
100
101
|
} = useModal();
|
|
102
|
+
const {
|
|
103
|
+
getLabel
|
|
104
|
+
} = useModuleDictionary();
|
|
105
|
+
const {
|
|
106
|
+
host_static_assets,
|
|
107
|
+
environment_assets
|
|
108
|
+
} = useEnvironment();
|
|
101
109
|
const onCloseCancel = () => {
|
|
102
110
|
onClickCancel && onClickCancel();
|
|
103
111
|
closeModal();
|
|
@@ -105,7 +113,9 @@ const WindowConfirm = (props) => {
|
|
|
105
113
|
const classes = modalUtilityClasses({
|
|
106
114
|
variant
|
|
107
115
|
});
|
|
108
|
-
return /* @__PURE__ */ jsxs(
|
|
116
|
+
return /* @__PURE__ */ jsxs(WindowBase, {
|
|
117
|
+
title: getLabel("modal_dialog.label_window_confirm"),
|
|
118
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/window_confirm.svg`,
|
|
109
119
|
children: [/* @__PURE__ */ jsx(MessageIlustration, {
|
|
110
120
|
classes,
|
|
111
121
|
msg,
|
|
@@ -4,6 +4,7 @@ export declare const modalClasses: ModalClassesType;
|
|
|
4
4
|
export declare function getModalUtilityClass(slot: string): string;
|
|
5
5
|
export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfim) => {
|
|
6
6
|
root: string;
|
|
7
|
+
resizeHandle: string;
|
|
7
8
|
headerContainer: string;
|
|
8
9
|
windowBaseRoot: string;
|
|
9
10
|
containerWindow: string;
|
|
@@ -16,4 +17,5 @@ export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfim) =
|
|
|
16
17
|
messageContainer: string;
|
|
17
18
|
illustration: string;
|
|
18
19
|
windowConfirm: string;
|
|
20
|
+
windowContent: string;
|
|
19
21
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getModalDictionary: () => string;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import "../../react-draggable.7abb5d0a.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../contexts/ModalContext/index.
|
|
5
|
-
import "../Resizeable/index.
|
|
4
|
+
import "../../contexts/ModalContext/index.1fc9f5d9.js";
|
|
5
|
+
import "../Resizeable/index.676c96fe.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "@m4l/graphics";
|
|
8
|
-
import "../Icon/index.435df215.js";
|
|
9
|
-
import "clsx";
|
|
10
|
-
import "@m4l/core";
|
|
11
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
-
import "
|
|
13
|
-
import "../
|
|
9
|
+
import "@m4l/core";
|
|
10
|
+
import "../Icon/index.a70c4729.js";
|
|
11
|
+
import "clsx";
|
|
12
|
+
import "../mui_extended/IconButton/index.76624519.js";
|
|
13
|
+
import "../mui_extended/Accordion/index.0e0090ca.js";
|
|
14
14
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
15
15
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
16
16
|
import "react-router-dom";
|
|
17
17
|
import "@mui/material/Button";
|
|
18
18
|
import "../mui_extended/Button/index.f79eb74e.js";
|
|
19
19
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
20
|
-
import "../mui_extended/Badge/index.
|
|
20
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
21
21
|
import "../Image/index.c18ebf5a.js";
|
|
22
22
|
import "@mui/lab";
|
|
23
|
-
import "../mui_extended/MenuActions/index.
|
|
23
|
+
import "../mui_extended/MenuActions/index.4c2e48d4.js";
|
|
24
24
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
25
25
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
26
|
-
import "../mui_extended/Tab/index.
|
|
27
|
-
import "../mui_extended/Pager/index.
|
|
26
|
+
import "../mui_extended/Tab/index.3db2e0c7.js";
|
|
27
|
+
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
28
28
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
|
-
import "../CommonActions/components/Actions/index.
|
|
29
|
+
import "../CommonActions/components/Actions/index.366cb775.js";
|
|
30
30
|
import "react-hook-form";
|
|
31
31
|
import "zustand";
|
|
32
|
-
import "../areas/contexts/AreasContext/index.
|
|
33
|
-
import "../areas/components/AreasAdmin/index.
|
|
32
|
+
import "../areas/contexts/AreasContext/index.7a2d5394.js";
|
|
33
|
+
import "../areas/components/AreasAdmin/index.cb3d7bd6.js";
|
|
34
34
|
import "zustand/shallow";
|
|
35
35
|
import "../ScrollBar/index.65bb2930.js";
|
|
36
|
-
import "../areas/components/AreasViewer/index.
|
|
36
|
+
import "../areas/components/AreasViewer/index.1eef603d.js";
|
|
37
37
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
38
38
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
39
39
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -52,6 +52,8 @@ generateUtilityClasses(componentName, [
|
|
|
52
52
|
"messageContainer",
|
|
53
53
|
"illustration",
|
|
54
54
|
"windowConfirm",
|
|
55
|
+
"resizeHandle",
|
|
56
|
+
"windowContent",
|
|
55
57
|
"variantDelete",
|
|
56
58
|
"variantWarning",
|
|
57
59
|
"variantInfo",
|
|
@@ -74,13 +76,19 @@ const modalUtilityClasses = (ownerState) => {
|
|
|
74
76
|
illustrationContainer: ["illustrationContainer"],
|
|
75
77
|
messageContainer: ["messageContainer"],
|
|
76
78
|
illustration: ["illustration"],
|
|
77
|
-
windowConfirm: ["windowConfirm"]
|
|
79
|
+
windowConfirm: ["windowConfirm"],
|
|
80
|
+
resizeHandle: ["resizeHandle"],
|
|
81
|
+
windowContent: ["windowContent"]
|
|
78
82
|
};
|
|
79
83
|
const composedClasses = unstable_composeClasses(slots, getModalUtilityClass, {});
|
|
80
84
|
return {
|
|
81
85
|
...composedClasses
|
|
82
86
|
};
|
|
83
87
|
};
|
|
88
|
+
const getModalDictionary = () => {
|
|
89
|
+
return "modal_dialog";
|
|
90
|
+
};
|
|
84
91
|
export {
|
|
92
|
+
getModalDictionary as g,
|
|
85
93
|
modalUtilityClasses as m
|
|
86
94
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass, styled, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
2
|
-
import { I as IconButton } from "../IconButton/index.
|
|
2
|
+
import { I as IconButton } from "../IconButton/index.76624519.js";
|
|
3
3
|
import { useEnvironment } from "@m4l/core";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { I as Icon } from "../../Icon/index.
|
|
5
|
+
import { I as Icon } from "../../Icon/index.a70c4729.js";
|
|
6
6
|
import { T as Typography } from "../Typography/index.443590d6.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
9
|
+
import { g as getNameDataTestId } from "../../../vendor.92191f81.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
const componentName = "M4LAccordion";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo, useState } from "react";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, styled, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../../Icon/index.
|
|
4
|
+
import { I as Icon } from "../../Icon/index.a70c4729.js";
|
|
5
5
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -78,7 +78,7 @@ const IconButton = (props) => {
|
|
|
78
78
|
return getLabel(dictionaryTooltipId);
|
|
79
79
|
}
|
|
80
80
|
return void 0;
|
|
81
|
-
}, [tooltip, dictionaryTooltipId, getLabel]);
|
|
81
|
+
}, [tooltip, dictionaryTooltipId, getLabel, disabled]);
|
|
82
82
|
const [isfocus] = useState(false);
|
|
83
83
|
const ownerState = {
|
|
84
84
|
variant,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LMenuActions";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuActionsClassesType } from './types';
|
|
2
|
+
export declare const menuActionsClasses: MenuActionsClassesType;
|
|
3
|
+
export declare function getMenuActionsUtilityClass(slot: string): string;
|
|
4
|
+
export declare const useMenuActionsUtilityClasses: () => {
|
|
5
|
+
root: string;
|
|
6
|
+
itemDelete: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useMenuActionsUtilityClasses } from ".";
|
|
2
|
+
export interface MenuActionsClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
itemDelete: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type StackClassesKey = keyof MenuActionsClassesType;
|
|
7
|
+
export declare type Classes = ReturnType<typeof useMenuActionsUtilityClasses>;
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useMemo } from "react";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { IconButton,
|
|
3
|
+
import { IconButton, generateUtilityClasses, generateUtilityClass, useTheme, MenuItem } from "@mui/material";
|
|
4
4
|
import { P as Popover } from "../Popover/index.9f35d0eb.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import { I as Icon } from "../../Icon/index.
|
|
7
|
-
import { I as IconButton$1 } from "../IconButton/index.
|
|
6
|
+
import { I as Icon } from "../../Icon/index.a70c4729.js";
|
|
7
|
+
import { I as IconButton$1 } from "../IconButton/index.76624519.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
|
+
import "../Accordion/index.0e0090ca.js";
|
|
10
|
+
import "../Typography/index.443590d6.js";
|
|
9
11
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
12
|
+
import "../Avatar/index.75e6ed57.js";
|
|
13
|
+
import "react-router-dom";
|
|
14
|
+
import "@mui/material/Button";
|
|
15
|
+
import "../Button/index.f79eb74e.js";
|
|
16
|
+
import "../CheckBox.38abccd8.js";
|
|
17
|
+
import { B as Badge } from "../Badge/index.b09524fe.js";
|
|
18
|
+
import "../../Image/index.c18ebf5a.js";
|
|
19
|
+
import "@mui/lab";
|
|
20
|
+
import "../Stack/index.0e53197c.js";
|
|
21
|
+
import "../Tab/index.3db2e0c7.js";
|
|
22
|
+
import "../Pager/index.ac2a21f0.js";
|
|
23
|
+
import "@m4l/graphics";
|
|
24
|
+
import "../Tooltip/index.5a795dcd.js";
|
|
25
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
10
26
|
styled(IconButton)(() => ({}));
|
|
11
27
|
const LabelMemuItem = styled("div")(({
|
|
12
28
|
theme
|
|
@@ -21,6 +37,24 @@ const LabelMemuItem = styled("div")(({
|
|
|
21
37
|
const ICONS = {
|
|
22
38
|
MENU: "menu.svg"
|
|
23
39
|
};
|
|
40
|
+
const componentName = "M4LMenuActions";
|
|
41
|
+
generateUtilityClasses(componentName, [
|
|
42
|
+
"root",
|
|
43
|
+
"itemDelete"
|
|
44
|
+
]);
|
|
45
|
+
function getMenuActionsUtilityClass(slot) {
|
|
46
|
+
return generateUtilityClass(componentName, slot);
|
|
47
|
+
}
|
|
48
|
+
const useMenuActionsUtilityClasses = () => {
|
|
49
|
+
const slots = {
|
|
50
|
+
root: ["root"],
|
|
51
|
+
itemDelete: ["itemDelete"]
|
|
52
|
+
};
|
|
53
|
+
const composedClasses = unstable_composeClasses(slots, getMenuActionsUtilityClass, {});
|
|
54
|
+
return {
|
|
55
|
+
...composedClasses
|
|
56
|
+
};
|
|
57
|
+
};
|
|
24
58
|
function MenuActions(props) {
|
|
25
59
|
const {
|
|
26
60
|
menuActions,
|
|
@@ -52,10 +86,10 @@ function MenuActions(props) {
|
|
|
52
86
|
} = useModuleDictionary();
|
|
53
87
|
const [open, setOpen] = useState(null);
|
|
54
88
|
const handleOpen = (event) => {
|
|
55
|
-
console.log("MenuActions event", event);
|
|
56
|
-
console.log("handleOpen");
|
|
57
89
|
setOpen(event.currentTarget);
|
|
58
90
|
};
|
|
91
|
+
const theme = useTheme();
|
|
92
|
+
const classes = useMenuActionsUtilityClasses();
|
|
59
93
|
useEffect(() => {
|
|
60
94
|
let mounted = true;
|
|
61
95
|
if (mounted) {
|
|
@@ -74,8 +108,6 @@ function MenuActions(props) {
|
|
|
74
108
|
e.stopPropagation();
|
|
75
109
|
setOpen(null);
|
|
76
110
|
externalClose && externalClose(null);
|
|
77
|
-
console.log("Se ejecut\xF3 el handle close");
|
|
78
|
-
console.log("externalClose value", externalClose);
|
|
79
111
|
};
|
|
80
112
|
const handleClick = (e, menuAction) => {
|
|
81
113
|
e.stopPropagation();
|
|
@@ -94,8 +126,6 @@ function MenuActions(props) {
|
|
|
94
126
|
const IconButtonElement = /* @__PURE__ */ jsx(Fragment, {
|
|
95
127
|
children: withBadge ? /* @__PURE__ */ jsx(Badge, {
|
|
96
128
|
badgeContent,
|
|
97
|
-
color: "primary",
|
|
98
|
-
overlap: "circular",
|
|
99
129
|
children: /* @__PURE__ */ jsx(IconButton$1, {
|
|
100
130
|
src: urlFinalIcon,
|
|
101
131
|
onClick: handleOpen,
|
|
@@ -116,7 +146,7 @@ function MenuActions(props) {
|
|
|
116
146
|
anchorEl: open,
|
|
117
147
|
onClose: handleClose,
|
|
118
148
|
arrowType,
|
|
119
|
-
className,
|
|
149
|
+
className: clsx(classes.root, className),
|
|
120
150
|
sx: {
|
|
121
151
|
marginTop,
|
|
122
152
|
marginBottom,
|
|
@@ -129,6 +159,7 @@ function MenuActions(props) {
|
|
|
129
159
|
typography: "body2",
|
|
130
160
|
borderRadius: 0.75
|
|
131
161
|
},
|
|
162
|
+
...theme.components?.M4LMenuActions?.styleOverrides,
|
|
132
163
|
...menuActionSx
|
|
133
164
|
},
|
|
134
165
|
...other,
|
|
@@ -141,7 +172,7 @@ function MenuActions(props) {
|
|
|
141
172
|
color: menuAction.color ?? "text.main"
|
|
142
173
|
},
|
|
143
174
|
disabled: menuAction.disabled,
|
|
144
|
-
className: clsx(menuAction?.className),
|
|
175
|
+
className: clsx(menuAction?.className, menuAction.variant === "delete" && classes.itemDelete),
|
|
145
176
|
children: [menuAction.urlIcon ? /* @__PURE__ */ jsx(Icon, {
|
|
146
177
|
src: menuAction.urlIcon
|
|
147
178
|
}) : null, /* @__PURE__ */ jsx(LabelMemuItem, {
|
|
@@ -7,6 +7,7 @@ export interface ComponentActionProps {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
onClick: (props?: any) => void;
|
|
9
9
|
}
|
|
10
|
+
export declare type ItemVariant = 'normal' | 'delete';
|
|
10
11
|
export declare type MenuAction = {
|
|
11
12
|
urlIcon?: string;
|
|
12
13
|
iconWidth?: number;
|
|
@@ -17,6 +18,7 @@ export declare type MenuAction = {
|
|
|
17
18
|
label?: string;
|
|
18
19
|
dictionaryId?: string;
|
|
19
20
|
className?: string;
|
|
21
|
+
variant?: ItemVariant;
|
|
20
22
|
};
|
|
21
23
|
export interface MenuActionsProps extends Omit<PopoverProps, 'open'> {
|
|
22
24
|
iconButtonClassName?: string;
|
|
@@ -3,7 +3,7 @@ import { styled } from "@mui/material/styles";
|
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { T as Typography } from "../Typography/index.443590d6.js";
|
|
6
|
-
import { I as IconButton } from "../IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../IconButton/index.76624519.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
9
9
|
import { useResponsiveDesktop } from "@m4l/graphics";
|