@m4l/components 1.0.11 → 1.0.13

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 (144) hide show
  1. package/components/AccountPopover/{index.62b1290b.js → index.f22ad364.js} +4 -4
  2. package/components/AppBar/{index.b48343d8.js → index.8d90ce87.js} +4 -4
  3. package/components/CommonActions/components/ActionCancel/index.609a78ca.js +12 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.a1318eac.js +56 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.34d569d1.js +33 -0
  6. package/components/CommonActions/components/ActionIntro/index.ebac0bc1.js +25 -0
  7. package/components/CommonActions/components/Actions/index.258bf919.js +71 -0
  8. package/components/DataGrid/constants.e334cd50.js +10 -0
  9. package/components/DataGrid/formatters/ColumnBooleanFormatter/index.7fb1ebaa.js +26 -0
  10. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.0ee10612.js +22 -0
  11. package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +19 -0
  12. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.dce9ada8.js +23 -0
  13. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +14 -0
  14. package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +10 -0
  15. package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +10 -0
  16. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +36 -0
  17. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +10 -0
  18. package/components/DataGrid/formatters/index.2c2f0ae4.js +1 -0
  19. package/components/DataGrid/index.68e19254.js +915 -0
  20. package/components/DataGrid/subcomponents/Actions/index.6b044e84.js +596 -0
  21. package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +76 -0
  22. package/components/DragResizeWindow/{index.8b3e79f7.js → index.a358789f.js} +6 -3
  23. package/components/DynamicFilter/constants.1dddd09c.js +31 -0
  24. package/components/DynamicFilter/dictionary.d28d39ef.js +51 -0
  25. package/components/DynamicFilter/helpers/{index.609b3915.js → index.11ed2896.js} +4 -4
  26. package/components/DynamicFilter/{index.0f04f223.js → index.056a99c7.js} +3 -3
  27. package/components/DynamicFilter/slots/{index.00b68384.js → index.82d7eaf2.js} +31 -31
  28. package/components/DynamicFilter/store/{index.85a2812f.js → index.9b5121d6.js} +2 -2
  29. package/components/DynamicFilter/subcomponents/{index.86c6fda2.js → index.778c93cc.js} +217 -15
  30. package/components/FieldLabel/{index.1577ac9c.js → index.6b6f708e.js} +4 -4
  31. package/components/GridLayout/{index.656840a5.js → index.68d907d4.js} +34 -11
  32. package/components/GridLayout/subcomponents/Griditem/{index.b23625d7.js → index.8955a794.js} +3 -4
  33. package/components/GridLayout/subcomponents/Responsive/{index.97505a31.js → index.45cecca2.js} +1 -2
  34. package/components/GridLayout/subcomponents/SizeProvider/{index.36cb4139.js → index.7050ac4f.js} +1 -1
  35. package/components/HelperText/{index.ebb53dac.js → index.09e80920.js} +1 -1
  36. package/components/Icon/{index.8ecfb193.js → index.83867398.js} +10 -26
  37. package/components/Image/{index.4a822ede.js → index.19aa7ff5.js} +3 -2
  38. package/components/LanguagePopover/index.921efd11.js +188 -0
  39. package/components/{mui_extended/LinearProgress/index.e9455b2e.js → LinearProgressIndeterminate/index.ea9c8518.js} +4 -9
  40. package/components/LoadingError/{index.9e829e8d.js → index.aee18b24.js} +11 -7
  41. package/components/MFLoader/{index.29f445e2.js → index.c975666e.js} +8 -4
  42. package/components/ModalDialog/{index.96c4aba3.js → index.0dd5af28.js} +14 -5
  43. package/components/NavLink/{index.9f5d5670.js → index.ad039baf.js} +3 -2
  44. package/components/NoItemSelected/{index.0ae9f28f.js → index.d10603d7.js} +13 -3
  45. package/components/ObjectLogs/{index.40c5047f.js → index.a3e42b21.js} +26 -8
  46. package/components/PDFViewer/{index.651cc4b6.js → index.35f68e67.js} +2 -2
  47. package/components/Page/{index.1d08818c.js → index.f4755eba.js} +18 -2
  48. package/components/PaperForm/{index.1a8b10d4.js → index.007ef4cf.js} +2 -2
  49. package/components/Period/{index.236971ae.js → index.9647181b.js} +15 -54
  50. package/components/PrintingSystem/{index.9fdae551.js → index.a69a9d85.js} +14 -15
  51. package/components/PrintingSystem/subcomponents/BodyNode/{index.794dbc69.js → index.528fcfbf.js} +1 -1
  52. package/components/PrintingSystem/subcomponents/ChartNode/{index.6bbf7d75.js → index.fbe87257.js} +1 -1
  53. package/components/PrintingSystem/subcomponents/DividerNode/{index.015a2212.js → index.f5adab1d.js} +1 -1
  54. package/components/PrintingSystem/subcomponents/FooterNode/{index.08eeb1d2.js → index.f42ca7dc.js} +1 -1
  55. package/components/PrintingSystem/subcomponents/GridNode/{index.23995699.js → index.041b9cff.js} +1 -1
  56. package/components/PrintingSystem/subcomponents/HeaderNode/{index.3fa36620.js → index.a8140332.js} +1 -1
  57. package/components/PrintingSystem/subcomponents/PaperNode/{index.8b7d43f4.js → index.aabde2bb.js} +1 -1
  58. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.9856c572.js → index.7f75ca46.js} +1 -1
  59. package/components/PrintingSystem/subcomponents/SectionNode/{index.89b3a4e0.js → index.61babb47.js} +1 -1
  60. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.dc6e9dc2.js → index.4d0e67a3.js} +1 -1
  61. package/components/PropertyValue/{index.646a7e8b.js → index.51faabb5.js} +7 -4
  62. package/components/Resizeable/{index.414ff687.js → index.4f75c0b5.js} +1 -1
  63. package/components/ScrollBar/{index.1e89bb44.js → index.21bc5025.js} +1 -1
  64. package/components/SideBar/{index.d221254d.js → index.4075c562.js} +36 -7
  65. package/components/SplitLayout/{index.7d9edf4e.js → index.15756f0f.js} +3 -1
  66. package/components/ToastContainer/{index.7f246bbd.js → index.2a7d304e.js} +3 -3
  67. package/components/animate/variants/index.7a912140.js +1 -0
  68. package/components/areas/components/AreasAdmin/index.325bac22.js +733 -0
  69. package/components/areas/components/AreasViewer/index.6e30ec72.js +1072 -0
  70. package/components/areas/components/index.558684b3.js +1 -0
  71. package/components/areas/constants.66529246.js +6 -0
  72. package/components/areas/contexts/AreasContext/{index.0815f278.js → index.3311cbf9.js} +6 -5
  73. package/components/areas/contexts/DynamicMFParmsContext/{index.37d1d444.js → index.3d9ad0ad.js} +2 -2
  74. package/components/areas/contexts/WindowToolsMFContext/{index.69d95c15.js → index.992ae7a3.js} +2 -2
  75. package/components/areas/contexts/index.24025b97.js +1 -0
  76. package/components/areas/dictionary.08cfc4c9.js +36 -0
  77. package/components/areas/hooks/index.d9dc1e21.js +1 -0
  78. package/components/areas/hooks/useAreas/{index.4039e30d.js → index.f81493ef.js} +1 -1
  79. package/components/areas/hooks/useDynamicMFParameters/{index.03ce6078.js → index.9e09e1e3.js} +1 -1
  80. package/components/areas/hooks/useWindowToolsMF/{index.09801b66.js → index.2fbae9dc.js} +1 -1
  81. package/components/areas/icons.8266ccc8.js +26 -0
  82. package/components/areas/index.4cc6a221.js +22 -0
  83. package/components/commercial/AppBarCommercial/index.cbd55cf8.js +28 -0
  84. package/components/commercial/SectionCommercial/index.d22ebbd5.js +57 -0
  85. package/components/commercial/TopBar/index.410fffa8.js +234 -0
  86. package/components/{HamburgerMenu/index.6c82741d.js → commercial/index.07638f52.js} +5 -3
  87. package/components/formatters/BooleanFormatter/index.cbf9cd6e.js +44 -0
  88. package/components/formatters/DateFormatter/index.2ef6f261.js +43 -0
  89. package/components/formatters/PointsFormatter/index.d8a4ee54.js +25 -0
  90. package/components/formatters/PriceFormatter/index.97f75b4b.js +35 -0
  91. package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +29 -0
  92. package/components/formatters/index.63a3e08e.js +117 -0
  93. package/components/hook-form/HelperError/{index.2ed03a3c.js → index.c0109d5b.js} +1 -1
  94. package/components/hook-form/RHFAutocomplete/index.2991d444.js +404 -0
  95. package/components/hook-form/RHFAutocompleteAsync/{index.69f5661d.js → index.d97c727b.js} +2 -3
  96. package/components/hook-form/RHFCheckbox/{index.13de27db.js → index.b57e3131.js} +4 -4
  97. package/components/hook-form/RHFColorPicker/{index.66004599.js → index.310f6ff0.js} +6 -6
  98. package/components/hook-form/RHFDateTime/{index.dfe07e18.js → index.5689a29f.js} +5 -5
  99. package/components/hook-form/RHFPeriod/{index.d852649b.js → index.019e61ae.js} +4 -4
  100. package/components/hook-form/RHFTextField/{index.d207efc1.js → index.10e57945.js} +6 -6
  101. package/components/hook-form/RHFUpload/{index.955a4ba5.js → index.7fd23b2a.js} +5 -5
  102. package/components/{mui_extended/Tab/index.37d588d6.js → maps/components/GpsTools/index.20f83559.js} +331 -645
  103. package/components/maps/{index.a1bf63f2.js → components/Map/index.c37f3304.js} +737 -28
  104. package/components/maps/index.13bb982c.js +7 -0
  105. package/components/modal/{WindowBase.390b0910.js → WindowBase.cfbb0c9e.js} +4 -4
  106. package/components/modal/{WindowConfirm.243e1bef.js → WindowConfirm.300bd34b.js} +10 -6
  107. package/components/modal/{index.5bce430d.js → index.81eb6def.js} +5 -1
  108. package/components/mui_extended/Accordion/{index.f7a17c83.js → index.0843a609.js} +5 -5
  109. package/components/mui_extended/Avatar/{index.12b96914.js → index.fb9ad158.js} +1 -1
  110. package/components/mui_extended/Badge/{index.4737c113.js → index.8beaeefc.js} +1 -1
  111. package/components/mui_extended/Button/{index.52852c42.js → index.d742e9ee.js} +6 -81
  112. package/components/mui_extended/{CheckBox/index.01218423.js → CheckBox.21c25705.js} +1 -1
  113. package/components/mui_extended/IconButton/{index.d5b273e6.js → index.b4532b85.js} +1 -1
  114. package/components/mui_extended/LinearProgress/index.4092bb69.js +9 -0
  115. package/components/mui_extended/MenuActions/index.eae97857.js +176 -0
  116. package/components/mui_extended/Pager/{index.8960227c.js → index.3926c835.js} +22 -40
  117. package/components/mui_extended/Popover/index.2348fc4f.js +143 -0
  118. package/components/mui_extended/Tab/index.e911930f.js +135 -0
  119. package/components/mui_extended/ToggleButton/{index.c441b949.js → index.b834f5f0.js} +1 -1
  120. package/components/mui_extended/ToggleIconButton/{index.8a84f25e.js → index.fcd5205c.js} +1 -1
  121. package/components/mui_extended/Typography/{index.463f613f.js → index.642798f1.js} +1 -1
  122. package/components/mui_extended/index.b606cd9d.js +1 -0
  123. package/components/popups/PopupsProvider/{index.d4caacc3.js → index.d7c9efce.js} +1 -1
  124. package/components/popups/PopupsViewer/{index.42312806.js → index.f3677ab1.js} +10 -6
  125. package/contexts/ModalContext/{index.5f77a463.js → index.ad1fb73b.js} +1 -1
  126. package/contexts/RHFormContext/{index.95ebabc9.js → index.bf3a2812.js} +6 -2
  127. package/hooks/useFormAddEdit/{index.ecb77e67.js → index.6d983cd8.js} +6 -2
  128. package/hooks/useModal/index.2003c854.js +11 -0
  129. package/hooks/useTab/index.8d1a6e63.js +12 -0
  130. package/index.js +328 -273
  131. package/package.json +1 -1
  132. package/{react-draggable.0cc9b257.js → react-draggable.1c1ba224.js} +1 -1
  133. package/{react-resizable.837c446d.js → react-resizable.a59c14f4.js} +2 -2
  134. package/test/constants_no_mock.86c553a9.js +4 -0
  135. package/test/{getNameDataTestId.aee44365.js → getNameDataTestId.0faeade8.js} +2 -2
  136. package/utils/{index.c64c2dd1.js → index.14912462.js} +1 -54
  137. package/components/CommonActions/index.19f39dca.js +0 -170
  138. package/components/areas/constants.0d3ba950.js +0 -289
  139. package/components/areas/dictionary.6168209a.js +0 -266
  140. package/components/areas/icons.504ec098.js +0 -83
  141. package/components/maps/components/GpsTools/index.01acaf3e.js +0 -251
  142. package/components/mui_extended/Popover/index.146ded9e.js +0 -1044
  143. package/hooks/useModal/index.d14c7e46.js +0 -67
  144. package/vendor.5b266106.js +0 -3952
@@ -0,0 +1,143 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Popover as Popover$1, generateUtilityClasses, generateUtilityClass } from "@mui/material";
3
+ import { styled } from "@mui/material/styles";
4
+ import { unstable_composeClasses } from "@mui/base";
5
+ import clsx from "clsx";
6
+ const PopoverRoot = styled(Popover$1)(({ theme }) => ({
7
+ ...theme.components?.M4LPopover?.styleOverrides
8
+ }));
9
+ generateUtilityClasses("M4LPopover", [
10
+ "root",
11
+ "arrowStyle",
12
+ "noArrow",
13
+ "topLeft",
14
+ "topCenter",
15
+ "topRight",
16
+ "bottomLeft",
17
+ "bottomCenter",
18
+ "bottomRight",
19
+ "leftTop",
20
+ "leftCenter",
21
+ "leftBottom",
22
+ "rightTop",
23
+ "rightCenter",
24
+ "rightBottom"
25
+ ]);
26
+ function getPopoverClassesUtilityClass(slot) {
27
+ return generateUtilityClass("M4LPopover", slot);
28
+ }
29
+ const useUtilityClasses = (ownerState) => {
30
+ const slots = {
31
+ root: ["root"],
32
+ arrowStyle: [
33
+ "arrowStyle",
34
+ ownerState.arrowType === "top-left" && "topLeft",
35
+ ownerState.arrowType === "top-center" && "topCenter",
36
+ ownerState.arrowType === "top-right" && "topRight",
37
+ ownerState.arrowType === "bottom-left" && "bottomLeft",
38
+ ownerState.arrowType === "bottom-center" && "bottomCenter",
39
+ ownerState.arrowType === "bottom-right" && "bottomRight",
40
+ ownerState.arrowType === "left-top" && "leftTop",
41
+ ownerState.arrowType === "left-center" && "leftCenter",
42
+ ownerState.arrowType === "left-bottom" && "leftBottom",
43
+ ownerState.arrowType === "right-top" && "rightTop",
44
+ ownerState.arrowType === "right-center" && "rightCenter",
45
+ ownerState.arrowType === "right-bottom" && "rightBottom"
46
+ ]
47
+ };
48
+ const composedClasses = unstable_composeClasses(slots, getPopoverClassesUtilityClass, {});
49
+ return {
50
+ ...composedClasses
51
+ };
52
+ };
53
+ const ArrowStyle = styled("span")(({ arrowType, theme }) => {
54
+ const SIZE = 12;
55
+ const POSITION = -(SIZE / 2);
56
+ const borderStyle = `solid 1px ${theme.vars.palette.state.borderDens}`;
57
+ const topStyle = {
58
+ borderRadius: "0 0 3px 0",
59
+ top: POSITION,
60
+ borderBottom: borderStyle,
61
+ borderRight: borderStyle
62
+ };
63
+ const bottomStyle = {
64
+ borderRadius: "3px 0 0 0",
65
+ bottom: POSITION,
66
+ borderTop: borderStyle,
67
+ borderLeft: borderStyle
68
+ };
69
+ const leftStyle = {
70
+ borderRadius: "0 3px 0 0",
71
+ left: POSITION,
72
+ borderTop: borderStyle,
73
+ borderRight: borderStyle
74
+ };
75
+ const rightStyle = {
76
+ borderRadius: "0 0 0 3px",
77
+ right: POSITION,
78
+ borderBottom: borderStyle,
79
+ borderLeft: borderStyle
80
+ };
81
+ return {
82
+ display: "none",
83
+ [theme.breakpoints.up("sm")]: {
84
+ width: SIZE,
85
+ height: SIZE,
86
+ content: "''",
87
+ position: "absolute",
88
+ display: "block",
89
+ transform: "rotate(-135deg)",
90
+ background: theme.vars.palette.background.default
91
+ },
92
+ ...arrowType === "top-left" && { ...topStyle, left: 20 },
93
+ ...arrowType === "top-center" && { ...topStyle, left: 0, right: 0, margin: "auto" },
94
+ ...arrowType === "top-right" && { ...topStyle, right: 20 },
95
+ ...arrowType === "bottom-left" && { ...bottomStyle, left: 20 },
96
+ ...arrowType === "bottom-center" && { ...bottomStyle, left: 0, right: 0, margin: "auto" },
97
+ ...arrowType === "bottom-right" && { ...bottomStyle, right: 20 },
98
+ ...arrowType === "left-top" && { ...leftStyle, top: 20 },
99
+ ...arrowType === "left-center" && { ...leftStyle, top: 0, bottom: 0, margin: "auto" },
100
+ ...arrowType === "left-bottom" && { ...leftStyle, bottom: 20 },
101
+ ...arrowType === "right-top" && { ...rightStyle, top: 20 },
102
+ ...arrowType === "right-center" && { ...rightStyle, top: 0, bottom: 0, margin: "auto" },
103
+ ...arrowType === "right-bottom" && { ...rightStyle, bottom: 20 }
104
+ };
105
+ });
106
+ const Popover = (props) => {
107
+ const { children, arrowType = "top-right", className, ...other } = props;
108
+ const ownerState = {
109
+ arrowType
110
+ };
111
+ const classes = useUtilityClasses(ownerState);
112
+ return /* @__PURE__ */ jsxs(
113
+ PopoverRoot,
114
+ {
115
+ className: clsx(classes.root, className),
116
+ "data-testid": "PopoverRoot",
117
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
118
+ transformOrigin: { vertical: "top", horizontal: "right" },
119
+ transitionDuration: 0,
120
+ PaperProps: {
121
+ sx: {
122
+ p: 1,
123
+ overflow: "inherit"
124
+ }
125
+ },
126
+ ...other,
127
+ children: [
128
+ /* @__PURE__ */ jsx(
129
+ ArrowStyle,
130
+ {
131
+ className: classes.arrowStyle,
132
+ "data-testid": "ArrowStyle",
133
+ arrowType
134
+ }
135
+ ),
136
+ children
137
+ ]
138
+ }
139
+ );
140
+ };
141
+ export {
142
+ Popover as P
143
+ };
@@ -0,0 +1,135 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import { generateUtilityClasses, generateUtilityClass, styled, Tabs as Tabs$1, Tab as Tab$1, Skeleton } from "@mui/material";
4
+ import { unstable_composeClasses } from "@mui/base";
5
+ import { useModuleSkeleton } from "@m4l/core";
6
+ import { styled as styled$1 } from "@mui/material/styles";
7
+ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
8
+ import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
9
+ import { createContext, useState } from "react";
10
+ const componentName$2 = "M4LTabs";
11
+ generateUtilityClasses(componentName$2, [
12
+ "root"
13
+ ]);
14
+ function getTabsUtilityClass(slot) {
15
+ return generateUtilityClass(componentName$2, slot);
16
+ }
17
+ const useTabsUtilityClasses = () => {
18
+ const slots = {
19
+ root: ["root"]
20
+ };
21
+ const composedClasses = unstable_composeClasses(slots, getTabsUtilityClass, {});
22
+ return {
23
+ ...composedClasses
24
+ };
25
+ };
26
+ const MUITabs = styled(Tabs$1)(({ theme }) => ({
27
+ ...theme.components?.M4LTabs?.styleOverrides
28
+ }));
29
+ const Tabs = (props) => {
30
+ const { children, className, ...others } = props;
31
+ const classes = useTabsUtilityClasses();
32
+ return /* @__PURE__ */ jsx(MUITabs, { className: clsx(classes.root, className), ...others, children });
33
+ };
34
+ const componentName$1 = "M4LTabContent";
35
+ generateUtilityClasses(componentName$1, [
36
+ "root"
37
+ ]);
38
+ function getTabContentUtilityClass(slot) {
39
+ return generateUtilityClass(componentName$1, slot);
40
+ }
41
+ const useTabContentUtilityClasses = () => {
42
+ const slots = {
43
+ root: ["root"]
44
+ };
45
+ const composedClasses = unstable_composeClasses(slots, getTabContentUtilityClass, {});
46
+ return {
47
+ ...composedClasses
48
+ };
49
+ };
50
+ const TabContentRoot = styled("div")(({ theme }) => ({
51
+ ...theme.components?.M4LTabContent?.styleOverrides
52
+ }));
53
+ const TabContent = (props) => {
54
+ const { children, className, ...others } = props;
55
+ const classes = useTabContentUtilityClasses();
56
+ return /* @__PURE__ */ jsx(TabContentRoot, { className: clsx(classes.root, className), ...others, children });
57
+ };
58
+ const TabRoot = styled$1("div")(({ theme }) => ({
59
+ ...theme.components?.M4LTab?.styleOverrides
60
+ }));
61
+ const SKTTabWrapper = styled$1("div")(({ theme }) => ({
62
+ padding: theme.spacing(1.5, 2)
63
+ }));
64
+ const componentName = "M4LTab";
65
+ generateUtilityClasses(componentName, [
66
+ "root",
67
+ "skeleton"
68
+ ]);
69
+ function getTabUtilityClass(slot) {
70
+ return generateUtilityClass(componentName, slot);
71
+ }
72
+ const tabUtilityClasses = () => {
73
+ const slots = {
74
+ root: ["root"],
75
+ skeleton: ["skeleton"]
76
+ };
77
+ const composedClasses = unstable_composeClasses(slots, getTabUtilityClass, {});
78
+ return {
79
+ ...composedClasses
80
+ };
81
+ };
82
+ const COMPONENT_PREFIX = "m4l-tab";
83
+ function Tab(props) {
84
+ const { SKTWidth, SKTHeight, className, dataTestId = "", ...other } = props;
85
+ const isSkeleton = useModuleSkeleton();
86
+ const classes = tabUtilityClasses();
87
+ return /* @__PURE__ */ jsx(
88
+ TabRoot,
89
+ {
90
+ className: clsx(classes.root, className),
91
+ ...process.env.NODE_ENV !== "production" ? {
92
+ [TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
93
+ } : {},
94
+ children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, { ...other }) : /* @__PURE__ */ jsx(
95
+ SKTTabWrapper,
96
+ {
97
+ className: classes.skeleton,
98
+ ...process.env.NODE_ENV !== "production" ? {
99
+ [TEST_PROP_ID]: getNameDataTestId(
100
+ COMPONENT_PREFIX,
101
+ "skeleton",
102
+ dataTestId
103
+ )
104
+ } : {},
105
+ children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: SKTWidth, height: SKTHeight })
106
+ }
107
+ )
108
+ }
109
+ );
110
+ }
111
+ const TabContext = createContext(null);
112
+ function TabProvider(props) {
113
+ const { children, initialValue } = props;
114
+ const [currentTab, setCurrentTab] = useState(initialValue);
115
+ const handleChange = (_event, newTab) => {
116
+ setCurrentTab(newTab);
117
+ };
118
+ return /* @__PURE__ */ jsx(
119
+ TabContext.Provider,
120
+ {
121
+ value: {
122
+ currentTab: currentTab.toString(),
123
+ handleChange
124
+ },
125
+ children
126
+ }
127
+ );
128
+ }
129
+ export {
130
+ Tabs as T,
131
+ Tab as a,
132
+ TabContent as b,
133
+ TabProvider as c,
134
+ TabContext as d
135
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
- import { B as Button, b as buttonClasses } from "../Button/index.52852c42.js";
3
+ import { B as Button, b as buttonClasses } from "../Button/index.d742e9ee.js";
4
4
  import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
5
5
  const ToggleAbleButton = ({ onToggle, isToggled, ...props }) => {
6
6
  return /* @__PURE__ */ jsx(
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
- import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.d5b273e6.js";
3
+ import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.b4532b85.js";
4
4
  import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
5
5
  const ToggleAbleIconButton = ({
6
6
  onToggle,
@@ -4,7 +4,7 @@ import { Skeleton, generateUtilityClasses, generateUtilityClass, Typography as T
4
4
  import { styled } from "@mui/material/styles";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import clsx from "clsx";
7
- import { T as TEST_PROP_ID } from "../../areas/constants.0d3ba950.js";
7
+ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
8
8
  const WarpperTypography = styled("div")(({ theme }) => ({
9
9
  ...theme.components?.M4LTypography?.styleOverrides
10
10
  }));
@@ -6,7 +6,7 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
6
6
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
7
7
  import { devtools } from "zustand/middleware";
8
8
  import { immer } from "zustand/middleware/immer";
9
- import { p as popupsUtilityClasses } from "../PopupsViewer/index.42312806.js";
9
+ import { p as popupsUtilityClasses } from "../PopupsViewer/index.f3677ab1.js";
10
10
  import { cloneDeep } from "lodash";
11
11
  const updateOwnerStateClasses = (state) => {
12
12
  state.classes = popupsUtilityClasses(state.ownerState);
@@ -4,16 +4,16 @@ import { shallow } from "zustand/shallow";
4
4
  import { useState, useRef } from "react";
5
5
  import clsx from "clsx";
6
6
  import { useEnvironment } from "@m4l/core";
7
- import { u as usePopupsStore } from "../PopupsProvider/index.d4caacc3.js";
7
+ import { u as usePopupsStore } from "../PopupsProvider/index.d7c9efce.js";
8
8
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
9
9
  import { unstable_composeClasses } from "@mui/base";
10
- import { af as COMPONENT_CLASS_NAME } from "../../areas/constants.0d3ba950.js";
11
- import { P as POPUPS_ICONS } from "../../areas/icons.504ec098.js";
12
- import { d as draggableWindowClasses, D as DragResizeWindow } from "../../DragResizeWindow/index.8b3e79f7.js";
13
- import { I as Icon } from "../../Icon/index.8ecfb193.js";
14
- import { I as IconButton } from "../../mui_extended/IconButton/index.d5b273e6.js";
10
+ import { d as draggableWindowClasses, D as DragResizeWindow } from "../../DragResizeWindow/index.a358789f.js";
11
+ import { I as Icon } from "../../Icon/index.83867398.js";
12
+ import { I as IconButton } from "../../mui_extended/IconButton/index.b4532b85.js";
15
13
  import { u as useSizeContainer } from "../../../hooks/useSizeContainer/index.3c48670c.js";
16
14
  import { styled } from "@mui/material/styles";
15
+ const COMPONENT_CLASS_NAME = "M4LPopupsViewer";
16
+ const MAP_ZINDEX_OVER_MAP = 1100;
17
17
  const popupsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
18
18
  "containerRoot",
19
19
  "popupRoot",
@@ -44,6 +44,9 @@ const popupsUtilityClasses = (_ownerState) => {
44
44
  ...composedClasses
45
45
  };
46
46
  };
47
+ const POPUPS_ICONS = {
48
+ CLOSE: "close.svg"
49
+ };
47
50
  const Header = (props) => {
48
51
  const { popupId } = props;
49
52
  const { host_static_assets, environment_assets } = useEnvironment();
@@ -162,6 +165,7 @@ const PopupsViewer = (props) => {
162
165
  }) }) });
163
166
  };
164
167
  export {
168
+ MAP_ZINDEX_OVER_MAP as M,
165
169
  PopupsViewer as P,
166
170
  popupsUtilityClasses as p
167
171
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { createContext, useState } from "react";
3
- import { M as ModalDialog } from "../../components/ModalDialog/index.96c4aba3.js";
3
+ import { M as ModalDialog } from "../../components/ModalDialog/index.0dd5af28.js";
4
4
  const ModalContext = createContext(null);
5
5
  function ModalProvider({ children }) {
6
6
  const [modalOptions, setModalOptions] = useState({
@@ -5,10 +5,10 @@ import { useForm, FormProvider } from "react-hook-form";
5
5
  import { yupResolver } from "@hookform/resolvers/yup";
6
6
  import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
7
7
  import { unstable_composeClasses } from "@mui/base";
8
- import { ag as componentName } from "../../components/areas/constants.0d3ba950.js";
9
8
  const FormProviderRoot = styled("form")(({ theme }) => ({
10
9
  ...theme.components?.M4LRHFormProvider?.styleOverrides
11
10
  }));
11
+ const componentName = "M4LRHFormProvider";
12
12
  generateUtilityClasses(
13
13
  componentName,
14
14
  [
@@ -69,6 +69,10 @@ function RHFormProvider(props) {
69
69
  }
70
70
  ) });
71
71
  }
72
+ function getFormComponentsDictionary() {
73
+ return ["form_provider"];
74
+ }
72
75
  export {
73
- RHFormProvider as R
76
+ RHFormProvider as R,
77
+ getFormComponentsDictionary as g
74
78
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useNetwork, useFlagsStore, useModuleDictionary } from "@m4l/core";
3
3
  import { useState, useEffect } from "react";
4
- import { u as useModal } from "../useModal/index.d14c7e46.js";
5
- import { W as WindowConfirm } from "../../components/modal/WindowConfirm.243e1bef.js";
4
+ import { u as useModal } from "../useModal/index.2003c854.js";
5
+ import { W as WindowConfirm } from "../../components/modal/WindowConfirm.300bd34b.js";
6
6
  function useFormAddEdit(props) {
7
7
  const {
8
8
  initialValues,
@@ -81,6 +81,10 @@ function useFormAddEdit(props) {
81
81
  }, [objectId]);
82
82
  return { formValues, statusLoad, setRefresh };
83
83
  }
84
+ const getformAddEditDictionary = () => {
85
+ return "form_add_edit";
86
+ };
84
87
  export {
88
+ getformAddEditDictionary as g,
85
89
  useFormAddEdit as u
86
90
  };
@@ -0,0 +1,11 @@
1
+ import { useContext } from "react";
2
+ import { M as ModalContext } from "../../contexts/ModalContext/index.ad1fb73b.js";
3
+ function useModal() {
4
+ const context = useContext(ModalContext);
5
+ if (!context)
6
+ throw new Error("useModal context must be use inside ModalContext");
7
+ return context;
8
+ }
9
+ export {
10
+ useModal as u
11
+ };
@@ -0,0 +1,12 @@
1
+ import { useContext } from "react";
2
+ import { d as TabContext } from "../../components/mui_extended/Tab/index.e911930f.js";
3
+ const useTab = () => {
4
+ const context = useContext(TabContext);
5
+ if (context === null) {
6
+ throw new Error("useTab must be used within a TabProvider");
7
+ }
8
+ return context;
9
+ };
10
+ export {
11
+ useTab as u
12
+ };