@m4l/components 0.1.76 → 0.1.78

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 (133) hide show
  1. package/@types/export.d.ts +22 -3
  2. package/components/AccountPopover/{index.47cf6c43.js → index.7e76dbb7.js} +8 -7
  3. package/components/AppBar/{index.f04f5e45.js → index.06858422.js} +8 -7
  4. package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.d536ccfa.js} +2 -2
  5. package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.a915b105.js} +19 -19
  6. package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.14e65d6c.js} +2 -2
  7. package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.aa1648eb.js} +2 -2
  8. package/components/CommonActions/components/Actions/{index.e376a68e.js → index.52125041.js} +17 -18
  9. package/components/DataGrid/{index.ffaf000e.js → index.9fb3e6a1.js} +40 -31
  10. package/components/DataGrid/types.d.ts +5 -1
  11. package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
  12. package/components/DynamicFilter/constants.d.ts +1 -0
  13. package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +6 -1
  14. package/components/DynamicFilter/{index.d7c03a61.js → index.d1a2e2d1.js} +54 -47
  15. package/components/DynamicFilter/tests/contants.d.ts +2 -3
  16. package/components/DynamicFilter/types.d.ts +4 -0
  17. package/components/GridLayout/GridLayout.d.ts +6 -0
  18. package/components/GridLayout/Responsive/index.0905a698.js +353 -0
  19. package/components/GridLayout/WidthProvider/index.9a26dfe4.js +65 -0
  20. package/components/GridLayout/calculateUtils.d.ts +42 -0
  21. package/components/GridLayout/index.d.ts +6 -0
  22. package/components/GridLayout/index.da6fd387.js +1410 -0
  23. package/components/GridLayout/subcomponents/GridItem/index.d.ts +26 -0
  24. package/components/GridLayout/subcomponents/GridItem/types.d.ts +78 -0
  25. package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
  26. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +64 -0
  27. package/components/GridLayout/subcomponents/Responsive/types.d.ts +69 -0
  28. package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
  29. package/components/GridLayout/types.d.ts +355 -0
  30. package/components/GridLayout/utils.d.ts +123 -0
  31. package/components/HelperText/{index.9864f773.js → index.a019742c.js} +8 -7
  32. package/components/Icon/{index.9dae8337.js → index.9fcd1476.js} +1 -1
  33. package/components/LanguagePopover/{index.938c6675.js → index.98b63dcb.js} +8 -7
  34. package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
  35. package/components/ModalDialog/{index.d9c5d400.js → index.d9937d46.js} +8 -56
  36. package/components/NavLink/{index.21c8fd90.js → index.a5dea6d3.js} +8 -7
  37. package/components/ObjectLogs/{index.a2709fc2.js → index.d9d20b9d.js} +27 -21
  38. package/components/ObjectLogs/types.d.ts +1 -0
  39. package/components/PaperForm/{index.5e1bc99f.js → index.ba38a0bd.js} +1 -1
  40. package/components/Period/{index.526791a3.js → index.7b94c418.js} +22 -23
  41. package/components/PropertyValue/constants.d.ts +3 -0
  42. package/components/PropertyValue/{index.8a1adf3e.js → index.45c73161.js} +17 -11
  43. package/components/PropertyValue/types.d.ts +2 -1
  44. package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
  45. package/components/SideBar/{index.9e1a5b96.js → index.2f497e6c.js} +5 -5
  46. package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
  47. package/components/areas/components/AreasAdmin/classes/types.d.ts +5 -0
  48. package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.43ecd998.js} +167 -81
  49. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
  50. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
  51. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
  52. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  53. package/components/areas/components/AreasViewer/classes/types.d.ts +3 -0
  54. package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.14e62059.js} +326 -345
  55. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
  56. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
  57. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
  58. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
  59. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
  60. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
  61. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
  62. package/components/areas/components/index.a87653a9.js +29 -0
  63. package/components/areas/contexts/AreasContext/helper.d.ts +8 -16
  64. package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.02c4e7be.js} +262 -336
  65. package/components/areas/contexts/AreasContext/types.d.ts +22 -20
  66. package/components/areas/contexts/{index.1809650a.js → index.1ff9b360.js} +1 -1
  67. package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
  68. package/components/areas/dictionary.d.ts +4 -1
  69. package/components/areas/hooks/useAreas/{index.40917e99.js → index.85e4b2e2.js} +1 -1
  70. package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
  71. package/components/areas/icons.d.ts +4 -0
  72. package/components/areas/{index.9bd48013.js → index.d1dcccf5.js} +12 -11
  73. package/components/areas/types.d.ts +29 -22
  74. package/components/formatters/BooleanFormatter/{index.431dc923.js → index.e8de8e4c.js} +1 -1
  75. package/components/formatters/{index.e1af75e6.js → index.67aeb049.js} +2 -2
  76. package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.6aa51705.js} +25 -13
  77. package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.1a3dfe5f.js} +1 -1
  78. package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.a08a65b3.js} +1 -1
  79. package/components/hook-form/RHFDateTime/{index.d330709b.js → index.4d671108.js} +10 -9
  80. package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.39b4be49.js} +2 -2
  81. package/components/hook-form/RHFTextField/{index.e5336d09.js → index.9004e898.js} +5 -5
  82. package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.bed8573e.js} +9 -11
  83. package/components/index.d.ts +1 -0
  84. package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.a0c0b322.js} +10 -9
  85. package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.6c063f2d.js} +19 -19
  86. package/components/modal/classes/index.d.ts +1 -0
  87. package/components/modal/classes/types.d.ts +1 -0
  88. package/components/modal/{index.1b25b61d.js → index.00efea85.js} +19 -17
  89. package/components/mui_extended/Accordion/constants.d.ts +1 -0
  90. package/components/mui_extended/Accordion/{index.3faafd8b.js → index.9877f7bf.js} +8 -9
  91. package/components/mui_extended/Accordion/types.d.ts +1 -0
  92. package/components/mui_extended/Badge/Badge.d.ts +3 -0
  93. package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
  94. package/components/mui_extended/Badge/classes/index.d.ts +6 -0
  95. package/components/mui_extended/Badge/classes/types.d.ts +6 -0
  96. package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
  97. package/components/mui_extended/Badge/index.d.ts +2 -0
  98. package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
  99. package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
  100. package/components/mui_extended/Badge/types.d.ts +4 -0
  101. package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
  102. package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.12f1a3c3.js} +4 -1
  103. package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.43a2e1ae.js} +41 -13
  104. package/components/mui_extended/MenuActions/index.d.ts +3 -2
  105. package/components/mui_extended/MenuActions/types.d.ts +9 -0
  106. package/components/mui_extended/Pager/{index.67bda2c5.js → index.2f6d6d7d.js} +1 -1
  107. package/components/mui_extended/Tab/constant.d.ts +1 -0
  108. package/components/mui_extended/Tab/{index.9e2f6e34.js → index.7c82e43d.js} +5 -6
  109. package/components/mui_extended/Tab/types.d.ts +1 -0
  110. package/components/mui_extended/{index.73e536de.js → index.0e2ff642.js} +8 -7
  111. package/components/mui_extended/index.d.ts +1 -0
  112. package/contexts/ModalContext/{index.699f95fa.js → index.e9a7ba4a.js} +1 -1
  113. package/hooks/useModal/{index.7b7d26ba.js → index.8e85f7ae.js} +1 -1
  114. package/index.js +228 -214
  115. package/node_modules.d73a220d.js +363 -0
  116. package/package.json +4 -3
  117. package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
  118. package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
  119. package/test/getNameDataTestId.d.ts +1 -0
  120. package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
  121. package/vendor.e353394b.js +124 -0
  122. package/components/DynamicFilter/tests/types.d.ts +0 -2
  123. package/components/DynamicFilter/tests/utils.d.ts +0 -2
  124. package/components/PropertyValue/tests/constants.d.ts +0 -1
  125. package/components/PropertyValue/tests/utils.d.ts +0 -2
  126. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
  127. package/components/areas/components/index.2bb534cb.js +0 -28
  128. package/components/modal/ModalDialog/types.d.ts +0 -7
  129. package/components/mui_extended/Accordion/tests/constants.d.ts +0 -1
  130. package/components/mui_extended/Accordion/tests/utils.d.ts +0 -2
  131. package/components/mui_extended/Tab/tests/constants.d.ts +0 -1
  132. package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
  133. /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.7b7d26ba.js";
4
- import { A as Actions } from "../CommonActions/components/Actions/index.e376a68e.js";
5
- import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.453c2d24.js";
6
- import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.c653a266.js";
3
+ import { u as useModal } from "../../hooks/useModal/index.8e85f7ae.js";
4
+ import { A as Actions } from "../CommonActions/components/Actions/index.52125041.js";
5
+ import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.d536ccfa.js";
6
+ import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.aa1648eb.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.fdb5dcbd.js";
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.6d7949a3.js";
14
- import "../ModalDialog/index.d9c5d400.js";
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.9dae8337.js";
18
- import { m as modalUtilityClasses } from "./index.1b25b61d.js";
16
+ import "../Icon/index.9fcd1476.js";
17
+ import { m as modalUtilityClasses } from "./index.00efea85.js";
19
18
  import { I as Image } from "../Image/index.c18ebf5a.js";
20
- import "../mui_extended/IconButton/index.1a9d4fa5.js";
21
- import "../mui_extended/Accordion/index.3faafd8b.js";
19
+ import "../mui_extended/IconButton/index.12f1a3c3.js";
20
+ import "../mui_extended/Accordion/index.9877f7bf.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
+ import "../mui_extended/MenuActions/index.43a2e1ae.js";
26
27
  import "../mui_extended/Popover/index.9f35d0eb.js";
27
- import "../mui_extended/MenuActions/index.ba1da3b3.js";
28
- import "../mui_extended/Pager/index.67bda2c5.js";
29
- import "../mui_extended/Tab/index.9e2f6e34.js";
28
+ import "../mui_extended/Pager/index.2f6d6d7d.js";
29
+ import "../mui_extended/Tab/index.7c82e43d.js";
30
30
  import "../mui_extended/Tooltip/index.5a795dcd.js";
31
31
  import "zustand";
32
- import "../areas/contexts/AreasContext/index.f0397b7c.js";
33
- import "../areas/components/AreasAdmin/index.946eebb9.js";
32
+ import "../areas/contexts/AreasContext/index.02c4e7be.js";
33
+ import "../areas/components/AreasAdmin/index.43ecd998.js";
34
34
  import "zustand/shallow";
35
35
  import "../ScrollBar/index.bbe48f4d.js";
36
- import "../areas/components/AreasViewer/index.bf4191ea.js";
37
- import "../LinearProgressIndeterminate/index.d34d398f.js";
36
+ import "../areas/components/AreasViewer/index.14e62059.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 = {
@@ -15,4 +15,5 @@ export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfim) =
15
15
  illustrationContainer: string;
16
16
  messageContainer: string;
17
17
  illustration: string;
18
+ windowConfirm: string;
18
19
  };
@@ -12,6 +12,7 @@ export interface ModalClassesType {
12
12
  illustrationContainer: string;
13
13
  messageContainer: string;
14
14
  illustration: string;
15
+ windowConfirm: string;
15
16
  variantDelete: string;
16
17
  variantWarning: string;
17
18
  variantInfo: string;
@@ -1,38 +1,38 @@
1
1
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
- import "../../react-draggable.6d7949a3.js";
2
+ import "../../react-draggable.7abb5d0a.js";
3
3
  import "react";
4
- import "../../contexts/ModalContext/index.699f95fa.js";
5
- import "../ModalDialog/index.d9c5d400.js";
6
- import "../Resizeable/index.f6e48e56.js";
4
+ import "../../contexts/ModalContext/index.e9a7ba4a.js";
5
+ import "../Resizeable/index.9a9c79a4.js";
7
6
  import "react/jsx-runtime";
8
7
  import "@m4l/graphics";
9
- import "../Icon/index.9dae8337.js";
8
+ import "../Icon/index.9fcd1476.js";
10
9
  import "clsx";
11
10
  import "@m4l/core";
12
11
  import { unstable_composeClasses } from "@mui/base";
13
- import "../CommonActions/components/Actions/index.e376a68e.js";
12
+ import "../CommonActions/components/Actions/index.52125041.js";
14
13
  import "@mui/material/Button";
15
- import "../mui_extended/Button/index.fdb5dcbd.js";
14
+ import "../mui_extended/Button/index.4288f9fc.js";
16
15
  import "react-hook-form";
17
- import "../mui_extended/IconButton/index.1a9d4fa5.js";
18
- import "../mui_extended/Accordion/index.3faafd8b.js";
16
+ import "../mui_extended/IconButton/index.12f1a3c3.js";
17
+ import "../mui_extended/Accordion/index.9877f7bf.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
+ import "../mui_extended/MenuActions/index.43a2e1ae.js";
24
25
  import "../mui_extended/Popover/index.9f35d0eb.js";
25
- import "../mui_extended/MenuActions/index.ba1da3b3.js";
26
- import "../mui_extended/Pager/index.67bda2c5.js";
27
- import "../mui_extended/Tab/index.9e2f6e34.js";
26
+ import "../mui_extended/Pager/index.2f6d6d7d.js";
27
+ import "../mui_extended/Tab/index.7c82e43d.js";
28
28
  import "../mui_extended/Tooltip/index.5a795dcd.js";
29
29
  import "zustand";
30
- import "../areas/contexts/AreasContext/index.f0397b7c.js";
31
- import "../areas/components/AreasAdmin/index.946eebb9.js";
30
+ import "../areas/contexts/AreasContext/index.02c4e7be.js";
31
+ import "../areas/components/AreasAdmin/index.43ecd998.js";
32
32
  import "zustand/shallow";
33
33
  import "../ScrollBar/index.bbe48f4d.js";
34
- import "../areas/components/AreasViewer/index.bf4191ea.js";
35
- import "../LinearProgressIndeterminate/index.d34d398f.js";
34
+ import "../areas/components/AreasViewer/index.14e62059.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 {
@@ -0,0 +1 @@
1
+ export declare const COMPONENT_PREFIX = "m4l-accordion";
@@ -1,11 +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.1a9d4fa5.js";
2
+ import { I as IconButton } from "../IconButton/index.12f1a3c3.js";
3
3
  import { useEnvironment } from "@m4l/core";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { I as Icon } from "../../Icon/index.9dae8337.js";
5
+ import { I as Icon } from "../../Icon/index.9fcd1476.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.e353394b.js";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  const componentName = "M4LAccordion";
11
12
  generateUtilityClasses(componentName, [
@@ -58,10 +59,7 @@ const AccordionRoot = styled("div")(({
58
59
  }) => ({
59
60
  ...theme.components?.M4LAccordion?.styleOverrides
60
61
  }));
61
- const ICON_PREFIX = "M4LAccordion";
62
- const getNameAccordionDataTestId = (KEY) => {
63
- return `${ICON_PREFIX}-${KEY}`;
64
- };
62
+ const COMPONENT_PREFIX = "m4l-accordion";
65
63
  function Accordion(props) {
66
64
  const {
67
65
  label,
@@ -71,7 +69,8 @@ function Accordion(props) {
71
69
  accordionProps,
72
70
  summaryProps,
73
71
  labelIcon,
74
- className
72
+ className,
73
+ dataTestId = ""
75
74
  } = props;
76
75
  const {
77
76
  host_static_assets,
@@ -81,7 +80,7 @@ function Accordion(props) {
81
80
  return /* @__PURE__ */ jsx(AccordionRoot, {
82
81
  className: clsx(classes.root, className),
83
82
  ...process.env.NODE_ENV !== "production" ? {
84
- [TEST_PROP_ID]: getNameAccordionDataTestId("root")
83
+ [TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
85
84
  } : {},
86
85
  children: /* @__PURE__ */ jsxs(Accordion$1, {
87
86
  variant: "outlined",
@@ -103,7 +102,7 @@ function Accordion(props) {
103
102
  children: /* @__PURE__ */ jsxs("div", {
104
103
  className: classes.labelIcon,
105
104
  ...process.env.NODE_ENV !== "production" ? {
106
- [TEST_PROP_ID]: getNameAccordionDataTestId("labelIcon")
105
+ [TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "labelIcon", dataTestId)
107
106
  } : {},
108
107
  children: [labelIcon && /* @__PURE__ */ jsx(Icon, {
109
108
  src: labelIcon
@@ -7,6 +7,7 @@ export declare type AccordionProps = {
7
7
  accordionProps?: Omit<MUIAccordionProps, 'sx'>;
8
8
  summaryProps?: AccordionSummaryProps;
9
9
  labelIcon?: string;
10
+ dataTestId?: string;
10
11
  SKTWidht?: string | number;
11
12
  SKTHeight?: string | number;
12
13
  };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BadgeProps } from "./types";
3
+ export declare const Badge: (props: BadgeProps) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const componentName = "M4LBadge";
@@ -0,0 +1,6 @@
1
+ import { BabgeClassesType } from './types';
2
+ export declare const badgeClasses: BabgeClassesType;
3
+ export declare function getBadgeUtilityClass(slot: string): string;
4
+ export declare const badgeUtilityClasses: () => {
5
+ root: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { badgeUtilityClasses } from ".";
2
+ export interface BabgeClassesType {
3
+ root: string;
4
+ }
5
+ export declare type BadgeClassesKey = keyof BabgeClassesType;
6
+ export declare type Classes = ReturnType<typeof badgeUtilityClasses>;
@@ -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,2 @@
1
+ export { Badge } from './Badge';
2
+ export type { BadgeProps } from './types';
@@ -0,0 +1 @@
1
+ export declare const BADGE_PREFIX = "M4LBadge";
@@ -0,0 +1,2 @@
1
+ import { BadgeClassesKey } from '../classes/types';
2
+ export declare const getNameBadgeDataTestId: (ELEMENTKEY: BadgeClassesKey, ID: string) => string;
@@ -0,0 +1,4 @@
1
+ import { BadgeProps as MUIBadgeProps } from "@mui/material";
2
+ export interface BadgeProps extends MUIBadgeProps {
3
+ dataTestId: string;
4
+ }
@@ -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: other.size,
182
- variant: other.variant,
183
- isDisabled: other.disabled
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.9dae8337.js";
4
+ import { I as Icon } from "../../Icon/index.9fcd1476.js";
5
5
  import { jsx, Fragment } from "react/jsx-runtime";
6
6
  import clsx from "clsx";
7
7
  import { useResponsiveDesktop } from "@m4l/graphics";
@@ -59,6 +59,7 @@ const IconButton = (props) => {
59
59
  variant = "line",
60
60
  disabled,
61
61
  className,
62
+ onClick,
62
63
  ...other
63
64
  } = props;
64
65
  const {
@@ -101,6 +102,7 @@ const IconButton = (props) => {
101
102
  title: finalTooltip || "",
102
103
  children: /* @__PURE__ */ jsx(IconButton$1, {
103
104
  ...other,
105
+ onClick,
104
106
  disableRipple: true,
105
107
  onFocusVisible: handlerOnFocus,
106
108
  onBlur: handlerOnBlur,
@@ -112,6 +114,7 @@ const IconButton = (props) => {
112
114
  })
113
115
  }) : /* @__PURE__ */ jsx(IconButton$1, {
114
116
  ...other,
117
+ onClick,
115
118
  disableRipple: true,
116
119
  onFocusVisible: handlerOnFocus,
117
120
  onBlur: handlerOnBlur,
@@ -1,10 +1,11 @@
1
- import { useState, useMemo } from "react";
1
+ import React__default, { 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.9dae8337.js";
7
- import { I as IconButton$1 } from "../IconButton/index.1a9d4fa5.js";
6
+ import { I as Icon } from "../../Icon/index.9fcd1476.js";
7
+ import { I as IconButton$1 } from "../IconButton/index.12f1a3c3.js";
8
+ import clsx from "clsx";
8
9
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
9
10
  styled(IconButton)(() => ({}));
10
11
  const LabelMemuItem = styled("div")(({
@@ -23,6 +24,9 @@ const ICONS = {
23
24
  function MenuActions(props) {
24
25
  const {
25
26
  menuActions,
27
+ endListElement,
28
+ menuActionSx,
29
+ className,
26
30
  objItem = {},
27
31
  urlIcon,
28
32
  toolTip = "",
@@ -31,6 +35,8 @@ function MenuActions(props) {
31
35
  marginLeft,
32
36
  marginRight,
33
37
  width = 200,
38
+ withBadge = false,
39
+ badgeContent,
34
40
  arrowType = "right-top",
35
41
  ...other
36
42
  } = props;
@@ -43,7 +49,9 @@ function MenuActions(props) {
43
49
  } = useModuleDictionary();
44
50
  const [open, setOpen] = useState(null);
45
51
  const handleOpen = (event) => {
52
+ console.log("handleOpen");
46
53
  setOpen(event.currentTarget);
54
+ event.stopPropagation();
47
55
  };
48
56
  const urlFinalIcon = useMemo(() => {
49
57
  if (urlIcon)
@@ -53,9 +61,10 @@ function MenuActions(props) {
53
61
  const handleClose = () => {
54
62
  setOpen(null);
55
63
  };
56
- const handleClick = (menuAction) => {
64
+ const handleClick = (e, menuAction) => {
57
65
  setOpen(null);
58
66
  menuAction.onClick();
67
+ e.stopPropagation();
59
68
  };
60
69
  const finalActions = useMemo(() => {
61
70
  let ret;
@@ -66,17 +75,30 @@ function MenuActions(props) {
66
75
  }
67
76
  return ret;
68
77
  }, [menuActions, objItem]);
69
- return /* @__PURE__ */ jsxs(Fragment, {
70
- children: [/* @__PURE__ */ jsx(IconButton$1, {
78
+ const IconButtonElement = /* @__PURE__ */ jsx(Fragment, {
79
+ children: withBadge ? /* @__PURE__ */ jsx(Badge, {
80
+ badgeContent,
81
+ color: "primary",
82
+ overlap: "circular",
83
+ children: /* @__PURE__ */ jsx(IconButton$1, {
84
+ src: urlFinalIcon,
85
+ onClick: handleOpen,
86
+ tooltip: toolTip
87
+ })
88
+ }) : /* @__PURE__ */ jsx(IconButton$1, {
71
89
  src: urlFinalIcon,
72
90
  onClick: handleOpen,
73
91
  tooltip: toolTip
74
- }), /* @__PURE__ */ jsx(Popover, {
92
+ })
93
+ });
94
+ return /* @__PURE__ */ jsxs(Fragment, {
95
+ children: [IconButtonElement, /* @__PURE__ */ jsxs(Popover, {
75
96
  id: "Popover",
76
97
  open: Boolean(open),
77
98
  anchorEl: open,
78
99
  onClose: handleClose,
79
100
  arrowType,
101
+ className,
80
102
  sx: {
81
103
  marginTop,
82
104
  marginBottom,
@@ -88,26 +110,32 @@ function MenuActions(props) {
88
110
  px: 1,
89
111
  typography: "body2",
90
112
  borderRadius: 0.75
91
- }
113
+ },
114
+ ...menuActionSx
92
115
  },
93
116
  ...other,
94
- children: finalActions.map((menuAction, index) => /* @__PURE__ */ jsxs(MenuItem, {
117
+ children: [finalActions.map((menuAction, index) => /* @__PURE__ */ jsxs(MenuItem, {
95
118
  dense: true,
96
- onClick: () => handleClick(menuAction),
119
+ onClick: (e) => {
120
+ handleClick(e, menuAction);
121
+ },
97
122
  sx: {
98
123
  color: menuAction.color ?? "text.main"
99
124
  },
100
125
  disabled: menuAction.disabled,
126
+ className: clsx(menuAction?.className),
101
127
  children: [menuAction.urlIcon ? /* @__PURE__ */ jsx(Icon, {
102
128
  src: menuAction.urlIcon
103
129
  }) : null, /* @__PURE__ */ jsx(LabelMemuItem, {
104
130
  children: menuAction.label || menuAction.dictionaryId && getLabel(menuAction.dictionaryId)
105
131
  })]
106
- }, `menu_action_${index}`))
132
+ }, `menu_action_${index}`)), endListElement ? endListElement : null]
107
133
  })]
108
134
  });
109
135
  }
136
+ const MemonizedMenuActions = React__default.memo(MenuActions);
110
137
  export {
111
138
  LabelMemuItem as L,
112
- MenuActions as M
139
+ MenuActions as M,
140
+ MemonizedMenuActions as a
113
141
  };
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { MenuActionsProps } from './types';
3
- export declare function MenuActions(props: MenuActionsProps): import("react").JSX.Element;
3
+ export declare function MenuActions(props: MenuActionsProps): React.JSX.Element;
4
+ export declare const MemonizedMenuActions: React.MemoExoticComponent<typeof MenuActions>;
4
5
  export default MenuActions;
@@ -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;
@@ -12,6 +16,7 @@ export declare type MenuAction = {
12
16
  color?: string;
13
17
  label?: string;
14
18
  dictionaryId?: string;
19
+ className?: string;
15
20
  };
16
21
  export interface MenuActionsProps extends Omit<PopoverProps, 'open'> {
17
22
  objItem?: any;
@@ -23,4 +28,8 @@ export interface MenuActionsProps extends Omit<PopoverProps, 'open'> {
23
28
  marginRight?: number | string;
24
29
  marginLeft?: number | string;
25
30
  width?: number;
31
+ endListElement?: ReactElement;
32
+ menuActionSx?: SxProps<Theme> | Partial<OverridesStyleRules<string, ComponentNameToClassKey, Theme>>;
33
+ withBadge?: boolean;
34
+ badgeContent?: string;
26
35
  }
@@ -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.1a9d4fa5.js";
4
+ import { I as IconButton } from "../IconButton/index.12f1a3c3.js";
5
5
  import { useEnvironment } from "@m4l/core";
6
6
  import { jsxs, jsx } from "react/jsx-runtime";
7
7
  const WrapperPagerActions = styled("div")(({ theme }) => ({
@@ -0,0 +1 @@
1
+ export declare const COMPONENT_PREFIX = "m4l-tab";
@@ -4,6 +4,7 @@ import { styled } from "@mui/material/styles";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
5
  import clsx from "clsx";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
+ import { g as getNameDataTestId } from "../../../vendor.e353394b.js";
7
8
  import { jsx } from "react/jsx-runtime";
8
9
  const TabRoot = styled("div")(({
9
10
  theme
@@ -33,15 +34,13 @@ const tabUtilityClasses = () => {
33
34
  ...composedClasses
34
35
  };
35
36
  };
36
- const ICON_PREFIX = "M4LTab";
37
- const getNameTabDataTestId = (KEY) => {
38
- return `${ICON_PREFIX}-${KEY}`;
39
- };
37
+ const COMPONENT_PREFIX = "m4l-tab";
40
38
  function Tab(props) {
41
39
  const {
42
40
  SKTWidth,
43
41
  SKTHeight,
44
42
  className,
43
+ dataTestId = "",
45
44
  ...other
46
45
  } = props;
47
46
  const isSkeleton = useModuleSkeleton();
@@ -49,14 +48,14 @@ function Tab(props) {
49
48
  return /* @__PURE__ */ jsx(TabRoot, {
50
49
  className: clsx(classes.root, className),
51
50
  ...process.env.NODE_ENV !== "production" ? {
52
- [TEST_PROP_ID]: getNameTabDataTestId("root")
51
+ [TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
53
52
  } : {},
54
53
  children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, {
55
54
  ...other
56
55
  }) : /* @__PURE__ */ jsx(SKTTabWrapper, {
57
56
  className: classes.skeleton,
58
57
  ...process.env.NODE_ENV !== "production" ? {
59
- [TEST_PROP_ID]: getNameTabDataTestId("skeleton")
58
+ [TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "skeleton", dataTestId)
60
59
  } : {},
61
60
  children: /* @__PURE__ */ jsx(Skeleton, {
62
61
  variant: "text",
@@ -2,4 +2,5 @@ import { TabProps as MUITabProps } from '@mui/material';
2
2
  export interface TabProps extends MUITabProps {
3
3
  SKTWidth: string | number;
4
4
  SKTHeight: string | number;
5
+ dataTestId?: string;
5
6
  }
@@ -1,21 +1,22 @@
1
1
  import "@mui/material";
2
2
  import "react";
3
3
  import "@m4l/core";
4
- import "../Icon/index.9dae8337.js";
4
+ import "../Icon/index.9fcd1476.js";
5
5
  import "clsx";
6
6
  import "react/jsx-runtime";
7
- import "./IconButton/index.1a9d4fa5.js";
7
+ import "./IconButton/index.12f1a3c3.js";
8
8
  import "@m4l/graphics";
9
- import "./Accordion/index.3faafd8b.js";
9
+ import "./Accordion/index.9877f7bf.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.fdb5dcbd.js";
14
+ import "./Button/index.4288f9fc.js";
15
+ import "./Badge/index.8c2b8b66.js";
15
16
  import "../Image/index.c18ebf5a.js";
16
17
  import "@mui/lab";
18
+ import "./MenuActions/index.43a2e1ae.js";
17
19
  import "./Popover/index.9f35d0eb.js";
18
- import "./MenuActions/index.ba1da3b3.js";
19
- import "./Pager/index.67bda2c5.js";
20
- import "./Tab/index.9e2f6e34.js";
20
+ import "./Pager/index.2f6d6d7d.js";
21
+ import "./Tab/index.7c82e43d.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.d9c5d400.js";
2
+ import { M as ModalDialog } from "../../components/ModalDialog/index.d9937d46.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.699f95fa.js";
2
+ import { M as ModalContext } from "../../contexts/ModalContext/index.e9a7ba4a.js";
3
3
  function useModal() {
4
4
  const context = useContext(ModalContext);
5
5
  if (!context)