@m4l/components 0.1.76 → 0.1.77
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 +19 -0
- package/components/AccountPopover/{index.47cf6c43.js → index.3a79c395.js} +7 -6
- package/components/AppBar/{index.f04f5e45.js → index.71b38ee9.js} +7 -6
- package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.b748a38e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.27ad09e1.js} +18 -18
- package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.2556f054.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.a7d92e66.js} +2 -2
- package/components/CommonActions/components/Actions/{index.e376a68e.js → index.3eba9d91.js} +16 -17
- package/components/DataGrid/{index.ffaf000e.js → index.545b492f.js} +42 -30
- package/components/DataGrid/types.d.ts +5 -1
- package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
- package/components/DynamicFilter/{index.d7c03a61.js → index.d7be0f37.js} +40 -33
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +2 -1
- package/components/DynamicFilter/subcomponents/InnerForHooks/types.d.ts +2 -0
- package/components/DynamicFilter/tests/contants.d.ts +1 -1
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/GridLayout/GridLayout.d.ts +6 -0
- package/components/GridLayout/Responsive/index.a12a8cec.js +335 -0
- package/components/GridLayout/WidthProvider/index.8ff65909.js +67 -0
- package/components/GridLayout/calculateUtils.d.ts +42 -0
- package/components/GridLayout/index.4ba3767a.js +1400 -0
- package/components/GridLayout/index.d.ts +6 -0
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +25 -0
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +76 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +61 -0
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +71 -0
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
- package/components/GridLayout/types.d.ts +355 -0
- package/components/GridLayout/utils.d.ts +123 -0
- package/components/HelperText/{index.9864f773.js → index.ef31df1f.js} +7 -6
- package/components/Icon/{index.9dae8337.js → index.ecb63e65.js} +1 -1
- package/components/LanguagePopover/{index.938c6675.js → index.0023d069.js} +7 -6
- package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
- package/components/ModalDialog/{index.d9c5d400.js → index.d880e685.js} +8 -56
- package/components/NavLink/{index.21c8fd90.js → index.cd92eceb.js} +7 -6
- package/components/ObjectLogs/{index.a2709fc2.js → index.f174c542.js} +19 -19
- package/components/PaperForm/{index.5e1bc99f.js → index.1bd86ee5.js} +1 -1
- package/components/Period/{index.526791a3.js → index.711db043.js} +21 -22
- package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
- package/components/SideBar/{index.9e1a5b96.js → index.c5ce0bad.js} +5 -5
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +2 -0
- package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.cc4cbf56.js} +120 -46
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.9c2aaaeb.js} +258 -259
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
- package/components/areas/components/{index.2bb534cb.js → index.0f7ac464.js} +11 -10
- package/components/areas/contexts/AreasContext/helper.d.ts +6 -16
- package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.c8147e8e.js} +244 -339
- package/components/areas/contexts/AreasContext/types.d.ts +23 -20
- package/components/areas/contexts/{index.1809650a.js → index.02336412.js} +1 -1
- package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
- package/components/areas/dictionary.d.ts +4 -1
- package/components/areas/hooks/useAreas/{index.40917e99.js → index.3406a6cb.js} +1 -1
- package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
- package/components/areas/icons.d.ts +4 -0
- package/components/areas/{index.9bd48013.js → index.6f2e5dab.js} +11 -10
- package/components/areas/types.d.ts +30 -22
- package/components/formatters/BooleanFormatter/{index.431dc923.js → index.5268b024.js} +1 -1
- package/components/formatters/{index.e1af75e6.js → index.137169d8.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.ac2b1fae.js} +8 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.8b4ccc8d.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.acef119c.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.d330709b.js → index.5b080342.js} +9 -8
- package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.5304e3bd.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e5336d09.js → index.e751dca7.js} +5 -5
- package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.25db0511.js} +8 -7
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.850ea31a.js} +9 -8
- package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.cb37bc58.js} +18 -18
- package/components/modal/classes/index.d.ts +1 -0
- package/components/modal/classes/types.d.ts +1 -0
- package/components/modal/{index.1b25b61d.js → index.a0978193.js} +18 -16
- package/components/mui_extended/Accordion/{index.3faafd8b.js → index.12b1339a.js} +2 -2
- package/components/mui_extended/Badge/Badge.d.ts +3 -0
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
- package/components/mui_extended/Badge/classes/index.d.ts +6 -0
- package/components/mui_extended/Badge/classes/types.d.ts +6 -0
- package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
- package/components/mui_extended/Badge/index.d.ts +2 -0
- package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
- package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +4 -0
- package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
- package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.fc5b7c2d.js} +1 -1
- package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.f5b1c022.js} +28 -9
- package/components/mui_extended/MenuActions/types.d.ts +8 -0
- package/components/mui_extended/Pager/{index.67bda2c5.js → index.435af0df.js} +1 -1
- package/components/mui_extended/{index.73e536de.js → index.83979b6a.js} +7 -6
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.699f95fa.js → index.dee85a61.js} +1 -1
- package/hooks/useModal/{index.7b7d26ba.js → index.de522a10.js} +1 -1
- package/index.js +94 -83
- package/node_modules.d73a220d.js +363 -0
- package/package.json +4 -3
- package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
- package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
- package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
- package/components/modal/ModalDialog/types.d.ts +0 -7
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import { A as Actions } from "../CommonActions/components/Actions/index.
|
|
5
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
6
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.de522a10.js";
|
|
4
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.3eba9d91.js";
|
|
5
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.b748a38e.js";
|
|
6
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.a7d92e66.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import { Typography } from "@mui/material";
|
|
9
9
|
import "@mui/material/Button";
|
|
10
|
-
import "../mui_extended/Button/index.
|
|
10
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
11
11
|
import "clsx";
|
|
12
12
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
13
|
-
import "../../react-draggable.
|
|
14
|
-
import "../
|
|
15
|
-
import "../Resizeable/index.f6e48e56.js";
|
|
13
|
+
import "../../react-draggable.7abb5d0a.js";
|
|
14
|
+
import "../Resizeable/index.9a9c79a4.js";
|
|
16
15
|
import "@m4l/graphics";
|
|
17
|
-
import "../Icon/index.
|
|
18
|
-
import { m as modalUtilityClasses } from "./index.
|
|
16
|
+
import "../Icon/index.ecb63e65.js";
|
|
17
|
+
import { m as modalUtilityClasses } from "./index.a0978193.js";
|
|
19
18
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
20
|
-
import "../mui_extended/IconButton/index.
|
|
21
|
-
import "../mui_extended/Accordion/index.
|
|
19
|
+
import "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
20
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
22
21
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
23
22
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
24
23
|
import "react-router-dom";
|
|
24
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
25
25
|
import "@mui/lab";
|
|
26
26
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
27
|
-
import "../mui_extended/MenuActions/index.
|
|
28
|
-
import "../mui_extended/Pager/index.
|
|
27
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
28
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
29
29
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
30
30
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
31
31
|
import "zustand";
|
|
32
|
-
import "../areas/contexts/AreasContext/index.
|
|
33
|
-
import "../areas/components/AreasAdmin/index.
|
|
32
|
+
import "../areas/contexts/AreasContext/index.c8147e8e.js";
|
|
33
|
+
import "../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
34
34
|
import "zustand/shallow";
|
|
35
35
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
36
|
-
import "../areas/components/AreasViewer/index.
|
|
37
|
-
import "../LinearProgressIndeterminate/index.
|
|
36
|
+
import "../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
37
|
+
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
38
38
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
39
39
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
40
40
|
const dictionary = {
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import "../../react-draggable.
|
|
2
|
+
import "../../react-draggable.7abb5d0a.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../contexts/ModalContext/index.
|
|
5
|
-
import "../
|
|
6
|
-
import "../Resizeable/index.f6e48e56.js";
|
|
4
|
+
import "../../contexts/ModalContext/index.dee85a61.js";
|
|
5
|
+
import "../Resizeable/index.9a9c79a4.js";
|
|
7
6
|
import "react/jsx-runtime";
|
|
8
7
|
import "@m4l/graphics";
|
|
9
|
-
import "../Icon/index.
|
|
8
|
+
import "../Icon/index.ecb63e65.js";
|
|
10
9
|
import "clsx";
|
|
11
10
|
import "@m4l/core";
|
|
12
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
|
-
import "../CommonActions/components/Actions/index.
|
|
12
|
+
import "../CommonActions/components/Actions/index.3eba9d91.js";
|
|
14
13
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
14
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
16
15
|
import "react-hook-form";
|
|
17
|
-
import "../mui_extended/IconButton/index.
|
|
18
|
-
import "../mui_extended/Accordion/index.
|
|
16
|
+
import "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
17
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
19
18
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
20
19
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
21
20
|
import "react-router-dom";
|
|
21
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
22
22
|
import "../Image/index.c18ebf5a.js";
|
|
23
23
|
import "@mui/lab";
|
|
24
24
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
25
|
-
import "../mui_extended/MenuActions/index.
|
|
26
|
-
import "../mui_extended/Pager/index.
|
|
25
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
26
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
27
27
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
28
28
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
29
|
import "zustand";
|
|
30
|
-
import "../areas/contexts/AreasContext/index.
|
|
31
|
-
import "../areas/components/AreasAdmin/index.
|
|
30
|
+
import "../areas/contexts/AreasContext/index.c8147e8e.js";
|
|
31
|
+
import "../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
32
32
|
import "zustand/shallow";
|
|
33
33
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
34
|
-
import "../areas/components/AreasViewer/index.
|
|
35
|
-
import "../LinearProgressIndeterminate/index.
|
|
34
|
+
import "../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
35
|
+
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
36
36
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
37
37
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
38
38
|
const componentName = "M4LModal";
|
|
@@ -49,6 +49,7 @@ generateUtilityClasses(componentName, [
|
|
|
49
49
|
"illustrationContainer",
|
|
50
50
|
"messageContainer",
|
|
51
51
|
"illustration",
|
|
52
|
+
"windowConfirm",
|
|
52
53
|
"variantDelete",
|
|
53
54
|
"variantWarning",
|
|
54
55
|
"variantInfo",
|
|
@@ -70,7 +71,8 @@ const modalUtilityClasses = (ownerState) => {
|
|
|
70
71
|
modalContent: ["modalContent"],
|
|
71
72
|
illustrationContainer: ["illustrationContainer"],
|
|
72
73
|
messageContainer: ["messageContainer"],
|
|
73
|
-
illustration: ["illustration"]
|
|
74
|
+
illustration: ["illustration"],
|
|
75
|
+
windowConfirm: ["windowConfirm"]
|
|
74
76
|
};
|
|
75
77
|
const composedClasses = unstable_composeClasses(slots, getModalUtilityClass, {});
|
|
76
78
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
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.fc5b7c2d.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.ecb63e65.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LBadge";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { generateUtilityClasses, styled, Badge as Badge$1 } from "@mui/material";
|
|
2
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import "@mui/base";
|
|
5
|
+
const componentName = "M4LBadge";
|
|
6
|
+
const badgeClasses = generateUtilityClasses(componentName, [
|
|
7
|
+
"root"
|
|
8
|
+
]);
|
|
9
|
+
const BadgeRoot = styled("div")(({ theme }) => ({
|
|
10
|
+
display: "flex",
|
|
11
|
+
...theme.components?.M4LBadge?.styleOverrides
|
|
12
|
+
}));
|
|
13
|
+
const BADGE_PREFIX = "M4LBadge";
|
|
14
|
+
const getNameBadgeDataTestId = (ELEMENTKEY, ID) => {
|
|
15
|
+
return `${BADGE_PREFIX}-${ELEMENTKEY}-${ID}`;
|
|
16
|
+
};
|
|
17
|
+
const Badge = (props) => {
|
|
18
|
+
const {
|
|
19
|
+
children,
|
|
20
|
+
dataTestId,
|
|
21
|
+
...others
|
|
22
|
+
} = props;
|
|
23
|
+
return /* @__PURE__ */ jsx(BadgeRoot, {
|
|
24
|
+
className: badgeClasses.root,
|
|
25
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
26
|
+
[TEST_PROP_ID]: getNameBadgeDataTestId("root", dataTestId)
|
|
27
|
+
} : {},
|
|
28
|
+
children: /* @__PURE__ */ jsx(Badge$1, {
|
|
29
|
+
...others,
|
|
30
|
+
children
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
Badge as B
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BADGE_PREFIX = "M4LBadge";
|
|
@@ -173,14 +173,17 @@ const LoadingButton = (props) => {
|
|
|
173
173
|
const {
|
|
174
174
|
children,
|
|
175
175
|
skeletonWidth = "100%",
|
|
176
|
+
size = "small",
|
|
177
|
+
variant = "contained",
|
|
178
|
+
disabled,
|
|
176
179
|
className,
|
|
177
180
|
...other
|
|
178
181
|
} = props;
|
|
179
182
|
const isSkeleton = useModuleSkeleton();
|
|
180
183
|
const ownerState = {
|
|
181
|
-
size
|
|
182
|
-
variant
|
|
183
|
-
isDisabled:
|
|
184
|
+
size,
|
|
185
|
+
variant,
|
|
186
|
+
isDisabled: disabled
|
|
184
187
|
};
|
|
185
188
|
const classes = useUtilityClasses(ownerState);
|
|
186
189
|
return /* @__PURE__ */ jsx(LoadingButtonRoot, {
|
|
@@ -190,6 +193,8 @@ const LoadingButton = (props) => {
|
|
|
190
193
|
} : {},
|
|
191
194
|
children: !isSkeleton ? /* @__PURE__ */ jsx(LoadingButton$1, {
|
|
192
195
|
...other,
|
|
196
|
+
variant,
|
|
197
|
+
size,
|
|
193
198
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
194
199
|
variant: "action",
|
|
195
200
|
children
|
|
@@ -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.ecb63e65.js";
|
|
5
5
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useState, useMemo } from "react";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { IconButton, MenuItem } from "@mui/material";
|
|
3
|
+
import { IconButton, MenuItem, Badge } 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.ecb63e65.js";
|
|
7
|
+
import { I as IconButton$1 } from "../IconButton/index.fc5b7c2d.js";
|
|
8
8
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
9
9
|
styled(IconButton)(() => ({}));
|
|
10
10
|
const LabelMemuItem = styled("div")(({
|
|
@@ -23,6 +23,9 @@ const ICONS = {
|
|
|
23
23
|
function MenuActions(props) {
|
|
24
24
|
const {
|
|
25
25
|
menuActions,
|
|
26
|
+
endListElement,
|
|
27
|
+
menuActionSx,
|
|
28
|
+
className,
|
|
26
29
|
objItem = {},
|
|
27
30
|
urlIcon,
|
|
28
31
|
toolTip = "",
|
|
@@ -31,6 +34,8 @@ function MenuActions(props) {
|
|
|
31
34
|
marginLeft,
|
|
32
35
|
marginRight,
|
|
33
36
|
width = 200,
|
|
37
|
+
withBadge = false,
|
|
38
|
+
badgeContent,
|
|
34
39
|
arrowType = "right-top",
|
|
35
40
|
...other
|
|
36
41
|
} = props;
|
|
@@ -66,17 +71,30 @@ function MenuActions(props) {
|
|
|
66
71
|
}
|
|
67
72
|
return ret;
|
|
68
73
|
}, [menuActions, objItem]);
|
|
69
|
-
|
|
70
|
-
children:
|
|
74
|
+
const IconButtonElement = /* @__PURE__ */ jsx(Fragment, {
|
|
75
|
+
children: withBadge ? /* @__PURE__ */ jsx(Badge, {
|
|
76
|
+
badgeContent,
|
|
77
|
+
color: "primary",
|
|
78
|
+
overlap: "circular",
|
|
79
|
+
children: /* @__PURE__ */ jsx(IconButton$1, {
|
|
80
|
+
src: urlFinalIcon,
|
|
81
|
+
onClick: handleOpen,
|
|
82
|
+
tooltip: toolTip
|
|
83
|
+
})
|
|
84
|
+
}) : /* @__PURE__ */ jsx(IconButton$1, {
|
|
71
85
|
src: urlFinalIcon,
|
|
72
86
|
onClick: handleOpen,
|
|
73
87
|
tooltip: toolTip
|
|
74
|
-
})
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
91
|
+
children: [IconButtonElement, /* @__PURE__ */ jsxs(Popover, {
|
|
75
92
|
id: "Popover",
|
|
76
93
|
open: Boolean(open),
|
|
77
94
|
anchorEl: open,
|
|
78
95
|
onClose: handleClose,
|
|
79
96
|
arrowType,
|
|
97
|
+
className,
|
|
80
98
|
sx: {
|
|
81
99
|
marginTop,
|
|
82
100
|
marginBottom,
|
|
@@ -88,10 +106,11 @@ function MenuActions(props) {
|
|
|
88
106
|
px: 1,
|
|
89
107
|
typography: "body2",
|
|
90
108
|
borderRadius: 0.75
|
|
91
|
-
}
|
|
109
|
+
},
|
|
110
|
+
...menuActionSx
|
|
92
111
|
},
|
|
93
112
|
...other,
|
|
94
|
-
children: finalActions.map((menuAction, index) => /* @__PURE__ */ jsxs(MenuItem, {
|
|
113
|
+
children: [finalActions.map((menuAction, index) => /* @__PURE__ */ jsxs(MenuItem, {
|
|
95
114
|
dense: true,
|
|
96
115
|
onClick: () => handleClick(menuAction),
|
|
97
116
|
sx: {
|
|
@@ -103,7 +122,7 @@ function MenuActions(props) {
|
|
|
103
122
|
}) : null, /* @__PURE__ */ jsx(LabelMemuItem, {
|
|
104
123
|
children: menuAction.label || menuAction.dictionaryId && getLabel(menuAction.dictionaryId)
|
|
105
124
|
})]
|
|
106
|
-
}, `menu_action_${index}`))
|
|
125
|
+
}, `menu_action_${index}`)), endListElement ? endListElement : null]
|
|
107
126
|
})]
|
|
108
127
|
});
|
|
109
128
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
1
2
|
import { PopoverProps } from '../Popover/types';
|
|
3
|
+
import { ComponentNameToClassKey, SxProps } from '@mui/material';
|
|
4
|
+
import { Theme } from '@mui/material';
|
|
5
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
2
6
|
export interface ComponentActionProps {
|
|
3
7
|
description?: string;
|
|
4
8
|
onClick: (props?: any) => void;
|
|
@@ -23,4 +27,8 @@ export interface MenuActionsProps extends Omit<PopoverProps, 'open'> {
|
|
|
23
27
|
marginRight?: number | string;
|
|
24
28
|
marginLeft?: number | string;
|
|
25
29
|
width?: number;
|
|
30
|
+
endListElement?: ReactElement;
|
|
31
|
+
menuActionSx?: SxProps<Theme> | Partial<OverridesStyleRules<string, ComponentNameToClassKey, Theme>>;
|
|
32
|
+
withBadge?: boolean;
|
|
33
|
+
badgeContent?: string;
|
|
26
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { Skeleton, TablePagination } from "@mui/material";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { I as IconButton } from "../IconButton/index.
|
|
4
|
+
import { I as IconButton } from "../IconButton/index.fc5b7c2d.js";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
6
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
7
7
|
const WrapperPagerActions = styled("div")(({ theme }) => ({
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import "@mui/material";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.ecb63e65.js";
|
|
5
5
|
import "clsx";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
|
-
import "./IconButton/index.
|
|
7
|
+
import "./IconButton/index.fc5b7c2d.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "./Accordion/index.
|
|
9
|
+
import "./Accordion/index.12b1339a.js";
|
|
10
10
|
import "./Typography/index.443590d6.js";
|
|
11
11
|
import "./Avatar/index.75e6ed57.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
|
-
import "./Button/index.
|
|
14
|
+
import "./Button/index.4288f9fc.js";
|
|
15
|
+
import "./Badge/index.8c2b8b66.js";
|
|
15
16
|
import "../Image/index.c18ebf5a.js";
|
|
16
17
|
import "@mui/lab";
|
|
17
18
|
import "./Popover/index.9f35d0eb.js";
|
|
18
|
-
import "./MenuActions/index.
|
|
19
|
-
import "./Pager/index.
|
|
19
|
+
import "./MenuActions/index.f5b1c022.js";
|
|
20
|
+
import "./Pager/index.435af0df.js";
|
|
20
21
|
import "./Tab/index.9e2f6e34.js";
|
|
21
22
|
import "./Tooltip/index.5a795dcd.js";
|
|
@@ -6,6 +6,7 @@ export { Breadcrumbs } from './Breadcrumbs';
|
|
|
6
6
|
export type { TLink } from './Breadcrumbs/types';
|
|
7
7
|
export * from './Button/Button';
|
|
8
8
|
export { CircularProgress } from './CircularProgress';
|
|
9
|
+
export { Badge } from './Badge';
|
|
9
10
|
export * from './IconButton/IconButton';
|
|
10
11
|
export * from './ImageButton/ImageButton';
|
|
11
12
|
export { LinearProgress } from './LinearProgress';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useState } from "react";
|
|
2
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
2
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.d880e685.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.dee85a61.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|