@m4l/components 0.2.36 → 1.0.0

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 (201) hide show
  1. package/components/AccountPopover/{index.a9dc9f92.js → index.efc74d5c.js} +3 -5
  2. package/components/AppBar/{index.7dee7427.js → index.fc126a22.js} +6 -5
  3. package/components/AppBar/styles.d.ts +1 -1
  4. package/components/CommonActions/components/Actions/styles.d.ts +1 -1
  5. package/components/DataGrid/styles.d.ts +1 -1
  6. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +7 -7
  7. package/components/DragResizeWindow/{index.a9f25040.js → index.46b380e1.js} +3 -6
  8. package/components/DynamicFilter/dynamicFilterSlots.d.ts +76 -101
  9. package/components/DynamicFilter/{index.48d809e2.js → index.d9168c12.js} +22 -96
  10. package/components/FieldLabel/{index.2622ee40.js → index.f9cdcc27.js} +4 -4
  11. package/components/GridLayout/{index.b9c47a4c.js → index.bb3b7769.js} +23 -46
  12. package/components/GridLayout/subcomponents/Griditem/{index.69bc14e5.js → index.bb23f651.js} +4 -3
  13. package/components/GridLayout/subcomponents/Responsive/{index.094c1d09.js → index.b8a2a121.js} +2 -1
  14. package/components/GridLayout/subcomponents/SizeProvider/{index.e1d2df80.js → index.094bc6b5.js} +1 -1
  15. package/components/{commercial/index.b90488db.js → HamburgerMenu/index.5997af31.js} +4 -6
  16. package/components/HelperText/{index.81c5d349.js → index.be949cdf.js} +3 -2
  17. package/components/HelperText/styles.d.ts +1 -1
  18. package/components/Icon/index.d5fed418.js +420 -0
  19. package/components/Icon/styles.d.ts +2 -2
  20. package/components/{hook-form/RHFUpload/index.c5e5c61c.js → Image/index.36a3d440.js} +233 -32
  21. package/components/Image/styles.d.ts +1 -1
  22. package/components/LanguagePopover/{index.72f316fc.js → index.e6fa2336.js} +5 -8
  23. package/components/LanguagePopover/styles.d.ts +5 -5
  24. package/components/LinearProgressIndeterminate/{index.2ecd571e.js → index.de9d447c.js} +2 -4
  25. package/components/Loadable/{index.97fe63f9.js → index.e83cdb4e.js} +1 -1
  26. package/components/LoadingError/{index.7aaba1cf.js → index.9f00c83c.js} +8 -12
  27. package/components/LoadingError/styles.d.ts +1 -1
  28. package/components/MFLoader/{index.40c419c0.js → index.402c1acc.js} +4 -8
  29. package/components/ModalDialog/{index.42349189.js → index.ea9189c3.js} +5 -14
  30. package/components/NavLink/{index.9e847eb5.js → index.4e548cee.js} +4 -4
  31. package/components/NavLink/styles.d.ts +1 -1
  32. package/components/NoItemSelected/{index.5a8160fd.js → index.418c8316.js} +6 -15
  33. package/components/NoItemSelected/styles.d.ts +4 -4
  34. package/components/ObjectLogs/{index.6955149e.js → index.bfa7dad3.js} +10 -27
  35. package/components/ObjectLogs/styles.d.ts +3 -3
  36. package/components/PDFViewer/{index.47bb0928.js → index.bb2eca5a.js} +2 -2
  37. package/components/{mui_extended/Pager/index.1ba2d52b.js → Page/index.fdf04592.js} +134 -26
  38. package/components/PaperForm/{index.9f6fd02d.js → index.8121e3da.js} +8 -7
  39. package/components/PaperForm/styles.d.ts +6 -6
  40. package/components/Period/{index.c6d1a95a.js → index.5233694b.js} +157 -22
  41. package/components/Period/styles.d.ts +5 -5
  42. package/components/PrintingSystem/{index.f51a00f8.js → index.fb176a93.js} +14 -14
  43. package/components/PrintingSystem/subcomponents/BodyNode/{index.6792c353.js → index.c1d61038.js} +1 -1
  44. package/components/PrintingSystem/subcomponents/ChartNode/{index.eec6b4cd.js → index.18bd9bad.js} +1 -1
  45. package/components/PrintingSystem/subcomponents/DividerNode/{index.e58467c9.js → index.67d9f1b4.js} +1 -1
  46. package/components/PrintingSystem/subcomponents/FooterNode/{index.920b75c9.js → index.eaee152a.js} +1 -1
  47. package/components/PrintingSystem/subcomponents/GridNode/{index.6c1ad53c.js → index.f5f63a2a.js} +1 -1
  48. package/components/PrintingSystem/subcomponents/HeaderNode/{index.e8b151ad.js → index.7de4e411.js} +1 -1
  49. package/components/PrintingSystem/subcomponents/PaperNode/{index.bf199422.js → index.f9ccf22b.js} +1 -1
  50. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.44d436b9.js → index.f2f2e903.js} +1 -1
  51. package/components/PrintingSystem/subcomponents/SectionNode/{index.879cf13d.js → index.540a4b19.js} +1 -1
  52. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.eb6af0ca.js → index.41e7fcb0.js} +1 -1
  53. package/components/PropertyValue/{index.5e59580c.js → index.9572c347.js} +4 -7
  54. package/components/Resizeable/{index.5e8e48b1.js → index.1f0c1359.js} +7 -7
  55. package/components/ResizeableWindow/styles.d.ts +1 -1
  56. package/components/ScrollBar/{index.4b965665.js → index.adf0eade.js} +2 -4
  57. package/components/SideBar/classes/index.d.ts +1 -1
  58. package/components/SideBar/{index.5d1f4a23.js → index.629ba840.js} +24 -26
  59. package/components/SideBar/styles.d.ts +2 -2
  60. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +3 -3
  61. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +1 -1
  62. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +2 -18
  63. package/components/SplitLayout/{index.15756f0f.js → index.74091a81.js} +1 -3
  64. package/components/ToastContainer/{index.dbd78941.js → index.f9b507b9.js} +3 -3
  65. package/components/animate/LoadingScreen/{index.1a83615a.js → index.779690a7.js} +3 -5
  66. package/components/animate/PropagateLoader/{index.76d7ea70.js → index.a9da8d00.js} +3 -2
  67. package/components/animate/PropagateLoader/syles.d.ts +1 -1
  68. package/components/animate/{index.87296638.js → index.b8497385.js} +3 -2
  69. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +3 -3
  70. package/components/areas/constants.5387d83e.js +412 -0
  71. package/components/areas/contexts/AreasContext/{index.19c7b906.js → index.bb316000.js} +5 -6
  72. package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index.37d1d444.js} +2 -2
  73. package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index.69d95c15.js} +2 -2
  74. package/components/areas/dictionary.7e74022a.js +286 -0
  75. package/components/areas/hooks/useAreas/{index.cedd30ee.js → index.e24bd74d.js} +1 -1
  76. package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index.03ce6078.js} +1 -1
  77. package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index.09801b66.js} +1 -1
  78. package/components/areas/icons.504ec098.js +83 -0
  79. package/components/commercial/HamburgerMenu/styles.d.ts +1 -1
  80. package/components/commercial/SectionCommercial/styles.d.ts +4 -9
  81. package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -1
  82. package/components/hook-form/RHFAutocomplete/styles.d.ts +1 -1
  83. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +1 -1
  84. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +4 -4
  85. package/components/hook-form/RHFCheckbox/styles.d.ts +2 -10
  86. package/components/hook-form/RHFPeriod/styles.d.ts +1 -1
  87. package/components/hook-form/RHFTextField/styles.d.ts +2 -2
  88. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -2
  89. package/components/hook-form/RHFTextFieldPassword/styles.d.ts +1 -1
  90. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +1 -1
  91. package/components/maps/components/GpsTools/{index.4ea69dd1.js → index.75880ce0.js} +14 -136
  92. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +4 -9
  93. package/components/maps/{components/Map/index.62b7d09b.js → index.8ec46ce4.js} +19 -194
  94. package/components/modal/{WindowBase.2414cd02.js → WindowBase.a3ac7adc.js} +3 -4
  95. package/components/modal/{WindowConfirm.48140481.js → WindowConfirm.e35da619.js} +6 -10
  96. package/components/modal/{index.81eb6def.js → index.a0e30c8b.js} +1 -5
  97. package/components/mui_extended/Accordion/styles.d.ts +3 -3
  98. package/components/mui_extended/Badge/styles.d.ts +1 -1
  99. package/components/mui_extended/Button/styles.d.ts +2 -10
  100. package/components/mui_extended/IconButton/styles.d.ts +1 -1
  101. package/components/mui_extended/ImageButton/styles.d.ts +1 -1
  102. package/components/mui_extended/MenuActions/styles.d.ts +2 -27
  103. package/components/mui_extended/Pager/styles.d.ts +1 -1
  104. package/components/mui_extended/Stack/styles.d.ts +2 -9
  105. package/components/mui_extended/Tab/styles.d.ts +2 -2
  106. package/components/mui_extended/Tabs/styles.d.ts +3 -58
  107. package/components/mui_extended/Typography/styles.d.ts +1 -1
  108. package/components/popups/PopupsProvider/{index.8fb6232a.js → index.18669fb4.js} +1 -1
  109. package/components/popups/PopupsViewer/{index.813854e4.js → index.ba354267.js} +5 -10
  110. package/contexts/ModalContext/{index.45c275cd.js → index.cf02e6bd.js} +1 -1
  111. package/contexts/RHFormContext/{index.bf3a2812.js → index.dc955a09.js} +2 -6
  112. package/hooks/useFormAddEdit/{index.9b27ca02.js → index.f156a2cd.js} +4 -8
  113. package/hooks/useModal/index.ef54bcf2.js +66 -0
  114. package/hooks/useTab/{index.f7973779.js → index.bce8b99e.js} +1 -1
  115. package/index.d.ts +0 -1
  116. package/index.js +276 -360
  117. package/package.json +3 -2
  118. package/{react-draggable.79b4c69a.js → react-draggable.5331add7.js} +1 -1
  119. package/{react-resizable.af1f31c1.js → react-resizable.37bfb965.js} +3 -5
  120. package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId.aee44365.js} +2 -2
  121. package/test/index.6d4b98b9.js +4 -0
  122. package/utils/{index.0718eeac.js → index.9ee4c99a.js} +113 -3
  123. package/vendor.a1ce6777.js +6352 -0
  124. package/assets/Logo/index.109a182d.js +0 -38
  125. package/assets/Logo.d.ts +0 -6
  126. package/components/CommonActions/components/ActionCancel/index.46f636e9.js +0 -12
  127. package/components/CommonActions/components/ActionFormCancel/index.2b0bd50d.js +0 -56
  128. package/components/CommonActions/components/ActionFormIntro/index.4f212c39.js +0 -33
  129. package/components/CommonActions/components/ActionIntro/index.7406bd47.js +0 -25
  130. package/components/CommonActions/components/Actions/index.273645af.js +0 -70
  131. package/components/DataGrid/constants.e334cd50.js +0 -10
  132. package/components/DataGrid/formatters/ColumnBooleanFormatter/index.cee6b676.js +0 -26
  133. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.708f3fb5.js +0 -22
  134. package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +0 -19
  135. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.c064bb07.js +0 -23
  136. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +0 -14
  137. package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +0 -10
  138. package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +0 -10
  139. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +0 -36
  140. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +0 -10
  141. package/components/DataGrid/formatters/index.2c2f0ae4.js +0 -1
  142. package/components/DataGrid/index.304437ee.js +0 -917
  143. package/components/DataGrid/subcomponents/Actions/index.f14590d2.js +0 -595
  144. package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +0 -76
  145. package/components/Icon/index.ee7b85c9.js +0 -192
  146. package/components/Image/index.8cc036b1.js +0 -168
  147. package/components/Page/index.c1d4a319.js +0 -114
  148. package/components/animate/variants/index.7a912140.js +0 -1
  149. package/components/areas/components/AreasAdmin/index.f239c717.js +0 -733
  150. package/components/areas/components/AreasViewer/index.61e0538b.js +0 -1071
  151. package/components/areas/components/index.558684b3.js +0 -1
  152. package/components/areas/constants.66529246.js +0 -6
  153. package/components/areas/contexts/index.24025b97.js +0 -1
  154. package/components/areas/dictionary.08cfc4c9.js +0 -36
  155. package/components/areas/hooks/index.d9dc1e21.js +0 -1
  156. package/components/areas/icons.8266ccc8.js +0 -26
  157. package/components/areas/index.4cc6a221.js +0 -22
  158. package/components/commercial/AppBarCommercial/index.9f654f8e.js +0 -28
  159. package/components/commercial/SectionCommercial/index.3df4685b.js +0 -57
  160. package/components/commercial/TopBar/index.7aeb6ec0.js +0 -234
  161. package/components/formatters/BooleanFormatter/index.0c2d8e35.js +0 -44
  162. package/components/formatters/DateFormatter/index.2ef6f261.js +0 -43
  163. package/components/formatters/PointsFormatter/index.d8a4ee54.js +0 -25
  164. package/components/formatters/PriceFormatter/index.97f75b4b.js +0 -35
  165. package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +0 -29
  166. package/components/formatters/index.b816c6b6.js +0 -117
  167. package/components/hook-form/HelperError/index.c8b046b7.js +0 -19
  168. package/components/hook-form/RHFAutocomplete/index.ea2ac2b1.js +0 -408
  169. package/components/hook-form/RHFAutocompleteAsync/index.98dcf0de.js +0 -158
  170. package/components/hook-form/RHFCheckbox/index.c32278fa.js +0 -142
  171. package/components/hook-form/RHFColorPicker/index.8c939bfd.js +0 -191
  172. package/components/hook-form/RHFDateTime/index.ac27deab.js +0 -190
  173. package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +0 -34
  174. package/components/hook-form/RHFPeriod/index.70cfc422.js +0 -104
  175. package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
  176. package/components/hook-form/RHFSelect/index.c6c60ecc.js +0 -29
  177. package/components/hook-form/RHFTextField/index.fa97889a.js +0 -325
  178. package/components/maps/index.13bb982c.js +0 -7
  179. package/components/mui_extended/Accordion/index.d08a0361.js +0 -142
  180. package/components/mui_extended/Avatar/index.fb9ad158.js +0 -63
  181. package/components/mui_extended/Badge/index.2a3aef2c.js +0 -30
  182. package/components/mui_extended/BoxIcon/index.d61e7ac5.js +0 -22
  183. package/components/mui_extended/Breadcrumbs/index.4a44883c.js +0 -87
  184. package/components/mui_extended/Button/index.5395d101.js +0 -213
  185. package/components/mui_extended/CheckBox.256169f0.js +0 -76
  186. package/components/mui_extended/CircularProgress/index.967e70b7.js +0 -8
  187. package/components/mui_extended/IconButton/index.b0ee4965.js +0 -119
  188. package/components/mui_extended/LinearProgress/index.4092bb69.js +0 -9
  189. package/components/mui_extended/LinkWithRoute/index.288c51f3.js +0 -15
  190. package/components/mui_extended/MenuActions/index.d92ed0d6.js +0 -175
  191. package/components/mui_extended/Popover/index.4e7340b4.js +0 -142
  192. package/components/mui_extended/Stack/index.fe363ca5.js +0 -31
  193. package/components/mui_extended/Tab/index.c5ad86e2.js +0 -134
  194. package/components/mui_extended/ToggleButton/index.7fbc8614.js +0 -18
  195. package/components/mui_extended/ToggleIconButton/index.0cd347b4.js +0 -24
  196. package/components/mui_extended/Tooltip/index.49bb5ee1.js +0 -40
  197. package/components/mui_extended/Typography/index.a1e774a2.js +0 -54
  198. package/components/mui_extended/index.b606cd9d.js +0 -1
  199. package/hooks/useModal/index.30674bb7.js +0 -11
  200. package/style.css +0 -65
  201. package/test/constants_no_mock.86c553a9.js +0 -4
@@ -1,29 +1,182 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { useCallback } from "react";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { useMemo, useCallback } from "react";
3
+ import { generateUtilityClasses, generateUtilityClass, IconButton, Tooltip, Skeleton, styled as styled$1 } from "@mui/material";
4
+ import { styled } from "@mui/material/styles";
5
+ import { unstable_composeClasses } from "@mui/base";
6
+ import { v as IMAGE_PREFIX, T as TEST_PROP_ID, w as componentName$1, x as IMAGEBUTTON_PREFIX, y as ICON_PREFIX, z as componentName$2 } from "../areas/constants.5387d83e.js";
3
7
  import { useFormContext, Controller } from "react-hook-form";
4
8
  import isString from "lodash/isString";
5
9
  import { useDropzone } from "react-dropzone";
6
- import { I as Image } from "../../Image/index.8cc036b1.js";
7
- import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
8
- import { styled, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
9
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
10
- import { unstable_composeClasses } from "@mui/base";
11
- import { T as Typography } from "../../mui_extended/Typography/index.a1e774a2.js";
12
- import { B as Button } from "../../mui_extended/Button/index.5395d101.js";
13
- import { H as HelperText } from "../../HelperText/index.81c5d349.js";
10
+ import clsx from "clsx";
11
+ import { useEnvironment, useModuleDictionary, useModuleSkeleton, useBase, evaluateWithContext } from "@m4l/core";
12
+ import { T as Typography, B as Button } from "../../vendor.a1ce6777.js";
13
+ import { H as HelperText } from "../HelperText/index.be949cdf.js";
14
+ import { c as classes, g as getSize } from "../PrintingSystem/index.fb176a93.js";
15
+ import QRCode from "qrcode.react";
16
+ const ImageRoot = styled("div")(({ theme }) => ({
17
+ ...theme.components?.M4LImage?.styleOverrides
18
+ }));
19
+ const ratioOptions = {
20
+ "1.168:1": {
21
+ width: 1.168,
22
+ height: 1
23
+ },
24
+ "16:9": {
25
+ width: 16,
26
+ height: 9
27
+ },
28
+ "1:1": {
29
+ width: 1,
30
+ height: 1
31
+ },
32
+ "1:1.168": {
33
+ width: 1,
34
+ height: 1.168
35
+ },
36
+ "2:1": {
37
+ width: 2,
38
+ height: 1
39
+ },
40
+ "2:3": {
41
+ width: 2,
42
+ height: 3
43
+ },
44
+ "3:1": {
45
+ width: 3,
46
+ height: 1
47
+ },
48
+ "3:2": {
49
+ width: 3,
50
+ height: 2
51
+ },
52
+ "3:4": {
53
+ width: 3,
54
+ height: 4
55
+ },
56
+ "4:3": {
57
+ width: 4,
58
+ height: 3
59
+ },
60
+ "5:2": {
61
+ width: 5,
62
+ height: 2
63
+ }
64
+ };
65
+ const getRatioValues = (ratio) => {
66
+ const numType = ratioOptions[ratio];
67
+ const numRef = numType.width / numType.height;
68
+ if (numRef >= 1) {
69
+ return {
70
+ width: "100%",
71
+ height: `${Math.trunc(numRef * 100)}%`
72
+ };
73
+ } else {
74
+ return {
75
+ width: `${Math.trunc(numRef * 100)}%`,
76
+ height: "100%"
77
+ };
78
+ }
79
+ };
80
+ const getNameDataTestId$1 = (KEY) => {
81
+ return `${IMAGE_PREFIX}-${KEY}`;
82
+ };
83
+ const componentName = "M4LImage";
84
+ generateUtilityClasses(componentName, [
85
+ "root",
86
+ "img"
87
+ ]);
88
+ function getImagenClassesUtilityClass(slot) {
89
+ return generateUtilityClass(componentName, slot);
90
+ }
91
+ const useUtilityClasses$1 = () => {
92
+ const slots = {
93
+ root: ["root"],
94
+ img: ["img"]
95
+ };
96
+ const composedClasses = unstable_composeClasses(slots, getImagenClassesUtilityClass, {});
97
+ return {
98
+ ...composedClasses
99
+ };
100
+ };
101
+ function Image(props) {
102
+ const { src, alt, width, height, ratio = "1:1", className } = props;
103
+ const ratioImage = getRatioValues(ratio);
104
+ const classes2 = useUtilityClasses$1();
105
+ return /* @__PURE__ */ jsx(
106
+ ImageRoot,
107
+ {
108
+ className: clsx(classes2.root, className),
109
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$1("root") } : {},
110
+ style: width && height ? { minWidth: width, minHeight: height, width, height } : { width: "100%", height: "100%" },
111
+ children: /* @__PURE__ */ jsx(
112
+ "img",
113
+ {
114
+ alt,
115
+ src,
116
+ className: classes2.img,
117
+ width: !width ? "100%" : ratioImage.width,
118
+ height: !height ? "100%" : ratioImage.height,
119
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$1("img") } : {}
120
+ }
121
+ )
122
+ }
123
+ );
124
+ }
125
+ const WrapperImageButton = styled("div")(({ theme }) => ({
126
+ ...theme.components?.M4LImageButton?.styleOverrides
127
+ }));
128
+ generateUtilityClasses(componentName$1, [
129
+ "root"
130
+ ]);
131
+ function getImageButtonUtilityClass(slot) {
132
+ return generateUtilityClass(componentName$1, slot);
133
+ }
134
+ const useUtilityClasses = () => {
135
+ const slots = {
136
+ root: ["root"]
137
+ };
138
+ const composedClasses = unstable_composeClasses(slots, getImageButtonUtilityClass, {});
139
+ return {
140
+ ...composedClasses
141
+ };
142
+ };
143
+ const getNameDataTestId = (KEY) => {
144
+ return `${IMAGEBUTTON_PREFIX}-${KEY}`;
145
+ };
146
+ function ImageButton({
147
+ src,
148
+ width,
149
+ height,
150
+ tooltip,
151
+ sx = { width, height },
152
+ ...other
153
+ }) {
154
+ const finalTooltip = tooltip;
155
+ const classes2 = useUtilityClasses();
156
+ const imageButton = useMemo(() => {
157
+ return /* @__PURE__ */ jsx(IconButton, { sx, ...other, children: /* @__PURE__ */ jsx(Image, { src }) });
158
+ }, [src, width, height, sx]);
159
+ return /* @__PURE__ */ jsx(
160
+ WrapperImageButton,
161
+ {
162
+ className: classes2.root,
163
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
164
+ children: finalTooltip ? /* @__PURE__ */ jsx(Tooltip, { title: finalTooltip || "", children: imageButton }) : imageButton
165
+ }
166
+ );
167
+ }
14
168
  const UploadImageRoot = styled("div")(({ theme }) => ({
15
169
  ...theme.components?.M4LRHFUploadImage?.styleOverrides
16
170
  }));
17
- const ICON_PREFIX = "M4LRHFUploadImage";
18
171
  const getNameRHFUploadImageDataTestId = (KEY) => {
19
172
  return `${ICON_PREFIX}-${KEY}`;
20
173
  };
21
174
  const SkeletonUploadImage = (props) => {
22
- const { classes } = props;
175
+ const { classes: classes2 } = props;
23
176
  return /* @__PURE__ */ jsxs(
24
177
  "div",
25
178
  {
26
- className: classes,
179
+ className: classes2,
27
180
  ...process.env.NODE_ENV !== "production" ? {
28
181
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("skeleton")
29
182
  } : {},
@@ -34,9 +187,8 @@ const SkeletonUploadImage = (props) => {
34
187
  }
35
188
  );
36
189
  };
37
- const componentName = "M4LRHFUploadImage";
38
190
  generateUtilityClasses(
39
- componentName,
191
+ componentName$2,
40
192
  [
41
193
  "root",
42
194
  "dropZoneStyle",
@@ -56,7 +208,7 @@ generateUtilityClasses(
56
208
  ]
57
209
  );
58
210
  function getRHFUploadImagebUtilityClass(slot) {
59
- return generateUtilityClass(componentName, slot);
211
+ return generateUtilityClass(componentName$2, slot);
60
212
  }
61
213
  const RHFUploadImageUtilityClasses = (ownerState) => {
62
214
  const slots = {
@@ -97,25 +249,25 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
97
249
  isDragActive,
98
250
  hasFile: file
99
251
  };
100
- const classes = RHFUploadImageUtilityClasses(ownerSate);
252
+ const classes2 = RHFUploadImageUtilityClasses(ownerSate);
101
253
  return /* @__PURE__ */ jsx(
102
254
  UploadImageRoot,
103
255
  {
104
- className: classes.root,
256
+ className: classes2.root,
105
257
  ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("root") } : {},
106
258
  children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
107
259
  "est\xE1 sin skeleton",
108
260
  /* @__PURE__ */ jsx(
109
261
  "div",
110
262
  {
111
- className: classes.containerUploadImage,
263
+ className: classes2.containerUploadImage,
112
264
  ...process.env.NODE_ENV !== "production" ? {
113
265
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerUploadImage")
114
266
  } : {},
115
267
  children: /* @__PURE__ */ jsxs(
116
268
  "div",
117
269
  {
118
- className: classes.dropZoneStyle,
270
+ className: classes2.dropZoneStyle,
119
271
  ...getRootProps(),
120
272
  ...process.env.NODE_ENV !== "production" ? {
121
273
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("dropZoneStyle")
@@ -125,7 +277,7 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
125
277
  "input",
126
278
  {
127
279
  ...getInputProps(),
128
- className: classes.inputDropZone,
280
+ className: classes2.inputDropZone,
129
281
  ...process.env.NODE_ENV !== "production" ? {
130
282
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("inputDropZone")
131
283
  } : {}
@@ -134,7 +286,7 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
134
286
  file && /* @__PURE__ */ jsx(
135
287
  "div",
136
288
  {
137
- className: classes.containerFileImage,
289
+ className: classes2.containerFileImage,
138
290
  ...process.env.NODE_ENV !== "production" ? {
139
291
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerFileImage")
140
292
  } : {},
@@ -151,14 +303,14 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
151
303
  /* @__PURE__ */ jsx(
152
304
  "div",
153
305
  {
154
- className: classes.placeHolder,
306
+ className: classes2.placeHolder,
155
307
  ...process.env.NODE_ENV !== "production" ? {
156
308
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("placeHolder")
157
309
  } : {},
158
310
  children: /* @__PURE__ */ jsxs(
159
311
  "div",
160
312
  {
161
- className: classes.containerUploadBoddy,
313
+ className: classes2.containerUploadBoddy,
162
314
  ...process.env.NODE_ENV !== "production" ? {
163
315
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerUploadBoddy")
164
316
  } : {},
@@ -166,7 +318,7 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
166
318
  /* @__PURE__ */ jsx(
167
319
  "div",
168
320
  {
169
- className: classes.containerBodyImage,
321
+ className: classes2.containerBodyImage,
170
322
  ...process.env.NODE_ENV !== "production" ? {
171
323
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerBodyImage")
172
324
  } : {},
@@ -182,7 +334,7 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
182
334
  /* @__PURE__ */ jsxs(
183
335
  "div",
184
336
  {
185
- className: classes.containerMessage,
337
+ className: classes2.containerMessage,
186
338
  ...process.env.NODE_ENV !== "production" ? {
187
339
  [TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerMessage")
188
340
  } : {},
@@ -190,14 +342,14 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
190
342
  /* @__PURE__ */ jsx(
191
343
  Typography,
192
344
  {
193
- className: classes.containerTitle,
345
+ className: classes2.containerTitle,
194
346
  variant: "subtitle",
195
347
  skeletonWidth: "150px",
196
348
  children: getLabel("upload_image.title_upload")
197
349
  }
198
350
  ),
199
- /* @__PURE__ */ jsx(Typography, { className: classes.containerDescription, variant: "body", children: getLabel("upload_image.description") }),
200
- /* @__PURE__ */ jsx(Typography, { className: classes.containerConditions, variant: "body", children: getLabel("upload_image.conditions") }),
351
+ /* @__PURE__ */ jsx(Typography, { className: classes2.containerDescription, variant: "body", children: getLabel("upload_image.description") }),
352
+ /* @__PURE__ */ jsx(Typography, { className: classes2.containerConditions, variant: "body", children: getLabel("upload_image.conditions") }),
201
353
  /* @__PURE__ */ jsx(Button, { onClick: open, children: getLabel("upload_image.label_button") })
202
354
  ]
203
355
  }
@@ -213,11 +365,11 @@ function UploadImage({ error, file, helperText, sx, ...other }) {
213
365
  }
214
366
  ),
215
367
  helperText && helperText
216
- ] }) : /* @__PURE__ */ jsx(SkeletonUploadImage, { classes: classes.skeleton })
368
+ ] }) : /* @__PURE__ */ jsx(SkeletonUploadImage, { classes: classes2.skeleton })
217
369
  }
218
370
  );
219
371
  }
220
- const WrapperRHFUploadImage = styled("div")(() => ({
372
+ const WrapperRHFUploadImage = styled$1("div")(() => ({
221
373
  width: "inherit",
222
374
  height: "inherit",
223
375
  padding: "1px"
@@ -253,6 +405,55 @@ function RHFUploadImage({ name, ...other }) {
253
405
  }
254
406
  );
255
407
  }
408
+ const ImageNode = (props) => {
409
+ const { className, style, src, width = "100%", height = "100%" } = props;
410
+ const { unitSize, sourceData } = useBase();
411
+ const { host_static_assets, environment_assets } = useEnvironment();
412
+ const resourceImg = evaluateWithContext(sourceData, src);
413
+ return /* @__PURE__ */ jsx(
414
+ "img",
415
+ {
416
+ src: `${host_static_assets}/${environment_assets}/${resourceImg}`,
417
+ className: clsx(classes.imageNodeRoot, className),
418
+ style: {
419
+ width: getSize(width, unitSize),
420
+ height: getSize(height, unitSize),
421
+ ...style
422
+ }
423
+ }
424
+ );
425
+ };
426
+ const convertToPx = (size, magnitud) => {
427
+ if (isNaN(size)) {
428
+ return 0;
429
+ }
430
+ if (magnitud === "px") {
431
+ return size;
432
+ }
433
+ switch (magnitud) {
434
+ case "cm":
435
+ return size * 37.8;
436
+ case "mm":
437
+ return size * 3.78;
438
+ case "in":
439
+ return size * 96;
440
+ case "pt":
441
+ return size * 1.33;
442
+ case "pc":
443
+ return size * 16;
444
+ default:
445
+ return 100;
446
+ }
447
+ };
448
+ const QRImageNode = (props) => {
449
+ const { url, size = 8, color } = props;
450
+ const { unitSize } = useBase();
451
+ return /* @__PURE__ */ jsx(QRCode, { value: url, size: convertToPx(size, unitSize), fgColor: color, renderAs: "canvas" });
452
+ };
256
453
  export {
257
- RHFUploadImage as R
454
+ Image as I,
455
+ QRImageNode as Q,
456
+ RHFUploadImage as R,
457
+ ImageButton as a,
458
+ ImageNode as b
258
459
  };
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const ImageRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const ImageRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,14 +1,13 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
- import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
4
- import { I as Image } from "../Image/index.8cc036b1.js";
3
+ import { generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
4
+ import { a as ImageButton, I as Image } from "../Image/index.36a3d440.js";
5
5
  import { useLocales } from "@m4l/graphics";
6
- import { I as ImageButton } from "../mui_extended/Button/index.5395d101.js";
6
+ import { styled } from "@mui/material/styles";
7
7
  import { useEnvironment, useNetwork } from "@m4l/core";
8
8
  import { unstable_composeClasses } from "@mui/base";
9
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
10
- import { C as CircularProgress } from "../mui_extended/CircularProgress/index.967e70b7.js";
11
- import { P as Popover } from "../mui_extended/Popover/index.4e7340b4.js";
9
+ import { E as componentName, F as LANGUAGEPOPOVER_PREFIX, T as TEST_PROP_ID } from "../areas/constants.5387d83e.js";
10
+ import { P as Popover, C as CircularProgress } from "../../vendor.a1ce6777.js";
12
11
  const LanguagePopoverRoot = styled("div")(({ theme }) => ({
13
12
  ...theme.components?.M4LanguagePopover?.styleOverrides
14
13
  }));
@@ -29,7 +28,6 @@ const ContainerImage = styled("div")(() => ({
29
28
  width: "16px",
30
29
  height: "16px"
31
30
  }));
32
- const componentName = "M4LanguagePopover";
33
31
  generateUtilityClasses(
34
32
  componentName,
35
33
  [
@@ -55,7 +53,6 @@ const useUtilityClasses = () => {
55
53
  ...composedClasses
56
54
  };
57
55
  };
58
- const LANGUAGEPOPOVER_PREFIX = "LanguagePopover";
59
56
  const getNameDataTestId = (KEY) => {
60
57
  return `${LANGUAGEPOPOVER_PREFIX}-${KEY}`;
61
58
  };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const LanguagePopoverRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const LabelItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
- export declare const ContainerProgress: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
- export declare const ContainerMenuItems: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const ContainerImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const LanguagePopoverRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const LabelItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ export declare const ContainerProgress: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const ContainerMenuItems: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const ContainerImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -2,9 +2,8 @@ import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import { generateUtilityClasses, styled } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { g as getComponentUtilityClass } from "../../utils/index.0718eeac.js";
6
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
7
- const LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME = "M4LinearProgressIndeterminate";
5
+ import { G as LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME, J as ICON_PREFIX, T as TEST_PROP_ID } from "../areas/constants.5387d83e.js";
6
+ import { g as getComponentUtilityClass } from "../../utils/index.9ee4c99a.js";
8
7
  generateUtilityClasses(
9
8
  LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME,
10
9
  [
@@ -27,7 +26,6 @@ const useLinearProgressIndeterminateUtilityClasses = () => {
27
26
  const LinearProgressIndeterminateRoot = styled("div")(({ theme }) => ({
28
27
  ...theme.components?.M4LinearProgressIndeterminate?.styleOverrides
29
28
  }));
30
- const ICON_PREFIX = "M4LinearProgressIndeterminate";
31
29
  const getNameLinearProgressIndeterminateDataTestId = (KEY) => {
32
30
  return `${ICON_PREFIX}-${KEY}`;
33
31
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Suspense } from "react";
3
- import { P as PropagateLoader } from "../animate/PropagateLoader/index.76d7ea70.js";
3
+ import { P as PropagateLoader } from "../animate/PropagateLoader/index.a9da8d00.js";
4
4
  const Loadable = (Component) => function EmbededLoadable(props) {
5
5
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(PropagateLoader, {}), children: /* @__PURE__ */ jsx(Component, { ...props }) });
6
6
  };
@@ -1,13 +1,13 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useEnvironment, useModuleDictionary } from "@m4l/core";
3
- import { I as ICONS } from "../areas/icons.8266ccc8.js";
4
- import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
3
+ import { I as ICONS } from "../areas/icons.504ec098.js";
4
+ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
- import { L as LinearProgressIndeterminate } from "../LinearProgressIndeterminate/index.2ecd571e.js";
7
- import { I as Icon } from "../Icon/index.ee7b85c9.js";
8
- import { T as Typography } from "../mui_extended/Typography/index.a1e774a2.js";
9
- import { B as Button } from "../mui_extended/Button/index.5395d101.js";
10
- const componentName = "M4LoadingError";
6
+ import { K as componentName } from "../areas/constants.5387d83e.js";
7
+ import { styled } from "@mui/material/styles";
8
+ import { L as LinearProgressIndeterminate } from "../LinearProgressIndeterminate/index.de9d447c.js";
9
+ import { I as Icon } from "../Icon/index.d5fed418.js";
10
+ import { T as Typography, B as Button } from "../../vendor.a1ce6777.js";
11
11
  generateUtilityClasses(componentName, [
12
12
  "root",
13
13
  "loadingErrorLoading",
@@ -80,10 +80,6 @@ const LoadingError = (props) => {
80
80
  /* @__PURE__ */ jsx(Button, { onClick: action, children: introMessage ? introMessage : getLabel("loading_error.label_error_intro") })
81
81
  ] }) });
82
82
  };
83
- const getLoadingErrorComponentsDictionary = () => {
84
- return ["loading_error"];
85
- };
86
83
  export {
87
- LoadingError as L,
88
- getLoadingErrorComponentsDictionary as g
84
+ LoadingError as L
89
85
  };
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const LoadingErrorRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const LoadingErrorRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -11,9 +11,9 @@ import { useHostTheme, useFormatter, useLocales, useFirstRender } from "@m4l/gra
11
11
  import debounce from "lodash/debounce";
12
12
  import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
13
13
  import { unstable_composeClasses } from "@mui/base";
14
- import { L as LinearProgress } from "../mui_extended/LinearProgress/index.4092bb69.js";
15
- import { L as LoadingError } from "../LoadingError/index.7aaba1cf.js";
16
- const componentName = "M4LMFLoader";
14
+ import { O as componentName } from "../areas/constants.5387d83e.js";
15
+ import { L as LinearProgress } from "../../vendor.a1ce6777.js";
16
+ import { L as LoadingError } from "../LoadingError/index.9f00c83c.js";
17
17
  const mfLoaderClasses = generateUtilityClasses(componentName, [
18
18
  "root",
19
19
  "containerLinearProgress"
@@ -275,10 +275,6 @@ MFLoader.defaultProps = {
275
275
  document,
276
276
  window
277
277
  };
278
- function getMFLoaderComponentsDictionary() {
279
- return ["mf_loader"];
280
- }
281
278
  export {
282
- MFLoader as M,
283
- getMFLoaderComponentsDictionary as g
279
+ MFLoader as M
284
280
  };
@@ -1,12 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useTheme, Dialog, Paper } from "@mui/material";
3
- import { c as cjs } from "../../react-draggable.79b4c69a.js";
4
- import { u as useModal } from "../../hooks/useModal/index.30674bb7.js";
5
- import { R as ResizeableWindow } from "../Resizeable/index.5e8e48b1.js";
3
+ import { c as cjs } from "../../react-draggable.5331add7.js";
4
+ import { u as useModal } from "../../hooks/useModal/index.ef54bcf2.js";
5
+ import { R as ResizeableWindow } from "../Resizeable/index.1f0c1359.js";
6
6
  import { useIsMobile } from "@m4l/graphics";
7
- import { m as modalUtilityClasses } from "../modal/index.81eb6def.js";
7
+ import { m as modalUtilityClasses } from "../modal/index.a0e30c8b.js";
8
8
  import { useState, useEffect } from "react";
9
- import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.273645af.js";
10
9
  const DragabblePaperComponent = (props) => {
11
10
  return /* @__PURE__ */ jsx(cjs.exports, { handle: ".m4l_draggable_handle", cancel: '[class*="MuiDialogContent-root"]', children: /* @__PURE__ */ jsx(Paper, { sx: { maxHeight: "unset", maxWidth: "unset" }, ...props }) });
12
11
  };
@@ -64,14 +63,6 @@ const ModalDialog = () => {
64
63
  }
65
64
  );
66
65
  };
67
- function getModalDialogComponentsDictionary() {
68
- return ["modal_dialog"].concat(getCommonActionsDictionary());
69
- }
70
- const defaultModalDialogDictionary = {
71
- modal_dialog: {}
72
- };
73
66
  export {
74
- ModalDialog as M,
75
- defaultModalDialogDictionary as d,
76
- getModalDialogComponentsDictionary as g
67
+ ModalDialog as M
77
68
  };
@@ -1,9 +1,10 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { NavLink as NavLink$1 } from "react-router-dom";
3
- import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
3
+ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
6
- import { T as Typography } from "../mui_extended/Typography/index.a1e774a2.js";
5
+ import { styled } from "@mui/material/styles";
6
+ import { P as NAVLINK_PREFIX, T as TEST_PROP_ID } from "../areas/constants.5387d83e.js";
7
+ import { T as Typography } from "../../vendor.a1ce6777.js";
7
8
  const componentName = "M4LNavLink";
8
9
  generateUtilityClasses(componentName, [
9
10
  "root"
@@ -23,7 +24,6 @@ const useUtilityClasses = () => {
23
24
  const NavLinkRoot = styled("div")(({ theme }) => ({
24
25
  ...theme.components?.M4LNavLink?.styleOverrides
25
26
  }));
26
- const NAVLINK_PREFIX = "Navlink";
27
27
  const getNameDataTestId = (KEY) => {
28
28
  return `${NAVLINK_PREFIX}-${KEY}`;
29
29
  };
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const NavLinkRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const NavLinkRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,9 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
3
- import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
4
- import { I as Image } from "../Image/index.8cc036b1.js";
3
+ import { I as Image } from "../Image/index.36a3d440.js";
4
+ import { styled } from "@mui/material/styles";
5
+ import { generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
5
6
  import { useMemo } from "react";
6
7
  import { unstable_composeClasses } from "@mui/base";
8
+ import { Q as componentName } from "../areas/constants.5387d83e.js";
7
9
  const WrapperNoItemSelected = styled("div")(({ theme }) => ({
8
10
  ...theme.components?.M4LNoItemSelected?.styleOverrides
9
11
  }));
@@ -11,7 +13,7 @@ const Img = styled(Image)(() => ({
11
13
  display: "flex"
12
14
  }));
13
15
  const Label = styled("span")(({ theme }) => ({
14
- ...theme.typography.body,
16
+ ...theme.colorSchemes.finalTheme.typography.body,
15
17
  padding: `${theme.spacing(1.5)} ${theme.spacing(1)} ${theme.spacing(1)} ${theme.spacing(1)}`
16
18
  }));
17
19
  const WrapperSKTNoItemSelected = styled("div")(() => ({
@@ -22,7 +24,6 @@ const WrapperSKTNoItemSelected = styled("div")(() => ({
22
24
  mask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
23
25
  WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`
24
26
  }));
25
- const componentName = "M4LNoItemSelected";
26
27
  generateUtilityClasses(
27
28
  componentName,
28
29
  [
@@ -55,16 +56,6 @@ function NoItemSelected(props) {
55
56
  !image ? /* @__PURE__ */ jsx(Img, { src: defaultImage }) : /* @__PURE__ */ jsx(Img, { src: image })
56
57
  ] }) : /* @__PURE__ */ jsx(WrapperSKTNoItemSelected, { id: "WrapperSKTNoItemSelected", children: /* @__PURE__ */ jsx(Skeleton, { variant: "rectangular", width: "100%", height: "100%" }) }) });
57
58
  }
58
- function getNoItemSelectedComponentsDictionary() {
59
- return ["no_item_selected"];
60
- }
61
- const defaultNoItemSelectedDictionary = {
62
- no_item_selected: {
63
- message: "Please select a item to show detail"
64
- }
65
- };
66
59
  export {
67
- NoItemSelected as N,
68
- defaultNoItemSelectedDictionary as d,
69
- getNoItemSelectedComponentsDictionary as g
60
+ NoItemSelected as N
70
61
  };