@m4l/components 3.1.7 → 3.1.8

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/index.js +183 -340
  2. package/node_modules-CQtkw0uG.js +7350 -0
  3. package/package.json +1 -1
  4. package/vendor-AfIOyqRr.js +24636 -0
  5. package/components/AccountPopover/index-Dm2-k-Mv.js +0 -334
  6. package/components/AppBar/index-i0rhG3J1.js +0 -93
  7. package/components/BaseModule/index-CiNNlxzS.js +0 -30
  8. package/components/CommonActions/components/ActionCancel/index-CIdpDXkr.js +0 -12
  9. package/components/CommonActions/components/ActionFormCancel/index-CpyASN3q.js +0 -56
  10. package/components/CommonActions/components/ActionFormIntro/index-7KKtcUra.js +0 -33
  11. package/components/CommonActions/components/ActionIntro/index-CqqDZZcG.js +0 -25
  12. package/components/CommonActions/components/Actions/index-CuG1pnXW.js +0 -70
  13. package/components/DataGrid/constants-8L7QgBKi.js +0 -10
  14. package/components/DataGrid/formatters/ColumnBooleanFormatter/index-CveSCbq_.js +0 -26
  15. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-CHqvieM2.js +0 -22
  16. package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
  17. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-DE6bwaKP.js +0 -23
  18. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
  19. package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
  20. package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
  21. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js +0 -36
  22. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
  23. package/components/DataGrid/formatters/index-CrZXPa0e.js +0 -13
  24. package/components/DataGrid/index-BZ-lbmuU.js +0 -908
  25. package/components/DataGrid/subcomponents/Actions/index-CHvPZ4Ru.js +0 -549
  26. package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
  27. package/components/DragResizeWindow/index-D2jLYExo.js +0 -505
  28. package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
  29. package/components/DynamicFilter/dictionary-PrbXU3VZ.js +0 -51
  30. package/components/DynamicFilter/index-DZiJc9h7.js +0 -116
  31. package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
  32. package/components/DynamicFilter/slots/dynamicFilterSlots-DHxelhXP.js +0 -151
  33. package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
  34. package/components/DynamicFilter/store/index-BT-eWVnJ.js +0 -254
  35. package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-B32bAzi-.js +0 -60
  36. package/components/DynamicFilter/subcomponents/AppliedFilters/index-Bha19drV.js +0 -26
  37. package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-BmvzoHit.js +0 -40
  38. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-BcO3SlP5.js +0 -129
  39. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-BCJhpNS8.js +0 -171
  40. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-DCNhz68u.js +0 -153
  41. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-BdypjM1Y.js +0 -146
  42. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-D-NFIVnK.js +0 -114
  43. package/components/DynamicFilter/subcomponents/FieldTypes/index-BwQHJqk9.js +0 -38
  44. package/components/DynamicFilter/subcomponents/FilterActions/index-B9UWmk07.js +0 -88
  45. package/components/DynamicFilter/subcomponents/InputFilter/index-CfGb1TfV.js +0 -188
  46. package/components/DynamicFilter/subcomponents/PopoverFilter/index-DkfRGrlO.js +0 -158
  47. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-DSegwAm2.js +0 -63
  48. package/components/FieldLabel/index-CI57EizR.js +0 -54
  49. package/components/GridLayout/index-C4HyxNYX.js +0 -1044
  50. package/components/GridLayout/subcomponents/Griditem/index-C7jT4s8t.js +0 -395
  51. package/components/GridLayout/subcomponents/Responsive/index-BKcU2OnF.js +0 -348
  52. package/components/GridLayout/subcomponents/SizeProvider/index-1aJ-e_54.js +0 -71
  53. package/components/HelperText/index-Crn_XIPF.js +0 -50
  54. package/components/Icon/index-C89MAkeH.js +0 -176
  55. package/components/Image/index-COp8vP0X.js +0 -175
  56. package/components/LanguagePopover/index-BA2Igs9L.js +0 -179
  57. package/components/LinearProgressIndeterminate/index-BwI756Mb.js +0 -55
  58. package/components/Loadable/index-BMbi9ISF.js +0 -9
  59. package/components/LoadingError/index-Cf0oGUrL.js +0 -89
  60. package/components/MFIsolationApp/index-V4R55hNU.js +0 -169
  61. package/components/MFLoader/index-BI8vQZSH.js +0 -299
  62. package/components/ModalDialog/index-CEVQBQ7W.js +0 -77
  63. package/components/NavLink/index-D1S_vtFO.js +0 -55
  64. package/components/NoItemSelected/index-B9oM26AX.js +0 -54
  65. package/components/ObjectLogs/index-CiXOJpS4.js +0 -233
  66. package/components/PDFViewer/index-GVN2rfd6.js +0 -51
  67. package/components/Page/index-DZMkYmr4.js +0 -117
  68. package/components/PaperForm/index-DwgAfjci.js +0 -59
  69. package/components/Period/index-2pJG3VmY.js +0 -238
  70. package/components/PrintingSystem/index-B2qcnfw0.js +0 -187
  71. package/components/PrintingSystem/subcomponents/BodyNode/index-Cv2aoy8S.js +0 -49
  72. package/components/PrintingSystem/subcomponents/ChartNode/index-BmJm8v_C.js +0 -105
  73. package/components/PrintingSystem/subcomponents/DividerNode/index-MpFhE-H0.js +0 -20
  74. package/components/PrintingSystem/subcomponents/FooterNode/index-ZEcWdMSM.js +0 -49
  75. package/components/PrintingSystem/subcomponents/GridNode/index-SsKax2xu.js +0 -74
  76. package/components/PrintingSystem/subcomponents/HeaderNode/index-Cs8TOOBL.js +0 -49
  77. package/components/PrintingSystem/subcomponents/PaperNode/index-DBb25Ecg.js +0 -30
  78. package/components/PrintingSystem/subcomponents/PropertyValueNode/index-CTVn7J9Q.js +0 -47
  79. package/components/PrintingSystem/subcomponents/SectionNode/index-iYPM3EaS.js +0 -49
  80. package/components/PrintingSystem/subcomponents/TextBoxNode/index-DGjXCFKJ.js +0 -24
  81. package/components/PropertyValue/index-Bh-Jnrte.js +0 -264
  82. package/components/Resizeable/index-DdP1xfE9.js +0 -20
  83. package/components/ScrollBar/index-f2URPPE2.js +0 -35
  84. package/components/ScrollToTop/index-TxORk5dB.js +0 -12
  85. package/components/SideBar/index-PUBBe0yH.js +0 -758
  86. package/components/SplitLayout/index-Bu1hcO6G.js +0 -89
  87. package/components/ToastContainer/index-DK1d8NNd.js +0 -191
  88. package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
  89. package/components/animate/LoadingScreen/index-CkVLOrMz.js +0 -70
  90. package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
  91. package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
  92. package/components/animate/PropagateLoader/index-Bkq8V2SN.js +0 -23
  93. package/components/animate/features-BbnE33u3.js +0 -5
  94. package/components/animate/index-BsWiJfzp.js +0 -89
  95. package/components/animate/variants/bounce-DanQqHAX.js +0 -101
  96. package/components/animate/variants/container-Dmpr6tg5.js +0 -22
  97. package/components/animate/variants/fade-CAOJNn06.js +0 -65
  98. package/components/animate/variants/index-l0sNRNKZ.js +0 -1
  99. package/components/animate/variants/transition-B9W5SWTa.js +0 -20
  100. package/components/areas/components/AreasAdmin/index-OxQU3P8Y.js +0 -699
  101. package/components/areas/components/AreasViewer/index-DQ0aPioP.js +0 -805
  102. package/components/areas/components/index-l0sNRNKZ.js +0 -1
  103. package/components/areas/constants-rqODZNZe.js +0 -6
  104. package/components/areas/contexts/AreasContext/index-BqRlA7JA.js +0 -1110
  105. package/components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js +0 -36
  106. package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
  107. package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
  108. package/components/areas/dictionary-YUsP9beq.js +0 -36
  109. package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
  110. package/components/areas/hooks/useAreas/index-BSbwbJLS.js +0 -11
  111. package/components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js +0 -12
  112. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +0 -31
  113. package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
  114. package/components/areas/icons-CwFr-alN.js +0 -24
  115. package/components/areas/index-B_Odny9h.js +0 -22
  116. package/components/commercial/AppBarCommercial/index-CHq3P3GY.js +0 -28
  117. package/components/commercial/SectionCommercial/index-BeABGtdr.js +0 -56
  118. package/components/commercial/TopBar/index-F1repmti.js +0 -232
  119. package/components/commercial/index-CxDzs6Ax.js +0 -81
  120. package/components/formatters/BooleanFormatter/index-DktIidqW.js +0 -44
  121. package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
  122. package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
  123. package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
  124. package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
  125. package/components/formatters/index-pnJhDYKe.js +0 -109
  126. package/components/hook-form/HelperError/index-BVnmUazV.js +0 -19
  127. package/components/hook-form/RHFAutocomplete/index-BtPL16HR.js +0 -657
  128. package/components/hook-form/RHFAutocompleteAsync/index-BfzjLHG8.js +0 -226
  129. package/components/hook-form/RHFCheckbox/index-Vyttu8Vx.js +0 -132
  130. package/components/hook-form/RHFColorPicker/index-Cxxb5Wa_.js +0 -191
  131. package/components/hook-form/RHFDateTime/index-CW1Slb-f.js +0 -190
  132. package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
  133. package/components/hook-form/RHFPeriod/index-r-HeIOoZ.js +0 -98
  134. package/components/hook-form/RHFRadioGroup/index-CTD-0zKo.js +0 -52
  135. package/components/hook-form/RHFSelect/index-LdwRuFz-.js +0 -29
  136. package/components/hook-form/RHFTextField/index-B6ufruSB.js +0 -337
  137. package/components/hook-form/RHFUpload/index-CDPbm8NR.js +0 -253
  138. package/components/maps/components/GpsTools/index-5MXlhIEt.js +0 -1948
  139. package/components/maps/components/Map/index-2Lx5ARXa.js +0 -2546
  140. package/components/maps/index-Ci-7-FHg.js +0 -7
  141. package/components/modal/WindowBase-Gd27v5FU.js +0 -44
  142. package/components/modal/WindowConfirm-u6vAMFo7.js +0 -73
  143. package/components/modal/index-CydPIpKZ.js +0 -65
  144. package/components/mui_extended/Accordion/index-DMLYJL7o.js +0 -124
  145. package/components/mui_extended/Avatar/index-ClBa-6eF.js +0 -64
  146. package/components/mui_extended/Badge/index-zI-F_Qkq.js +0 -29
  147. package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
  148. package/components/mui_extended/Breadcrumbs/index-DTS7rOZH.js +0 -86
  149. package/components/mui_extended/Button/index-CGfZbaea.js +0 -222
  150. package/components/mui_extended/CheckBox-BXUrbonB.js +0 -76
  151. package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
  152. package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
  153. package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
  154. package/components/mui_extended/IconButton/index-CusYFjie.js +0 -97
  155. package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
  156. package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
  157. package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
  158. package/components/mui_extended/MenuActions/MenuActions-C6CjSU6C.js +0 -149
  159. package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
  160. package/components/mui_extended/MenuActions/dictionary-Dj_07puT.js +0 -11
  161. package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
  162. package/components/mui_extended/MenuActions/slots/MenuActionsSlots-D65KZAKF.js +0 -46
  163. package/components/mui_extended/Pager/index-DCbxiTZA.js +0 -257
  164. package/components/mui_extended/Popover/index-DfrJAQkV.js +0 -153
  165. package/components/mui_extended/Stack/index-DzEeCYfp.js +0 -31
  166. package/components/mui_extended/Tab/index-Bu3dPidV.js +0 -129
  167. package/components/mui_extended/ToggleButton/index-C9cBkT1V.js +0 -18
  168. package/components/mui_extended/ToggleIconButton/index--0b3Td6C.js +0 -26
  169. package/components/mui_extended/Tooltip/index-B8QUytCK.js +0 -42
  170. package/components/mui_extended/Typography/index-Cf_4Zw8f.js +0 -54
  171. package/components/mui_extended/index-l0sNRNKZ.js +0 -1
  172. package/components/popups/PopupsProvider/index-DhSxmtfJ.js +0 -172
  173. package/components/popups/PopupsViewer/constants-DuyD7aCn.js +0 -4
  174. package/components/popups/PopupsViewer/icons-BUujqqbu.js +0 -7
  175. package/components/popups/PopupsViewer/index-BecevSns.js +0 -172
  176. package/components/popups/PopupsViewer/slots/index-B98CiRLa.js +0 -14
  177. package/components/popups/PopupsViewer/slots/popupsViewerSlots-BXH77nCF.js +0 -46
  178. package/components/popups/index-l0sNRNKZ.js +0 -1
  179. package/contexts/ModalContext/index-CPfNnfTL.js +0 -39
  180. package/contexts/RHFormContext/index-D_nK759o.js +0 -78
  181. package/hocs/withToggle/index-C1_DMZD3.js +0 -14
  182. package/hooks/useFormAddEdit/index-D9oSjUn1.js +0 -90
  183. package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
  184. package/hooks/useModal/index-BJSQOX3U.js +0 -10
  185. package/hooks/useSizeContainer/index-D4hDjM1P.js +0 -37
  186. package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
  187. package/hooks/useTab/index-B_GEQFOP.js +0 -12
  188. package/react-data-grid-BfYuZ6AK.js +0 -2606
  189. package/react-draggable-DsCPdgQP.js +0 -811
  190. package/react-json-view-bhqIAaNg.js +0 -2576
  191. package/react-resizable-eBbFl2dX.js +0 -618
  192. package/react-spinners-TpKN9lZg.js +0 -123
  193. package/react-splitter-layout-C-JTsNGs.js +0 -158
  194. package/styles/DynamicFilter-CJFsIegc.js +0 -319
  195. package/styles/MenuActions-lTi-ynPM.js +0 -42
  196. package/styles/index-DKj6m8SL.js +0 -1691
  197. package/test/constants_no_mock-CF-669v-.js +0 -4
  198. package/test/getNameDataTestId-BaBTWhBr.js +0 -10
  199. package/utils/index-DiMrtgIu.js +0 -502
  200. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
  201. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
@@ -1,7 +0,0 @@
1
- function bearingRawToCSS(gpsBearing, offsetRotate) {
2
- const rotation = -((360 + offsetRotate - gpsBearing) % 360);
3
- return rotation;
4
- }
5
- export {
6
- bearingRawToCSS as b
7
- };
@@ -1,44 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { m as modalUtilityClasses } from "./index-CydPIpKZ.js";
3
- import { useEnvironment } from "@m4l/core";
4
- import clsx from "clsx";
5
- import { I as Icon } from "../Icon/index-C89MAkeH.js";
6
- import { I as IconButton } from "../mui_extended/IconButton/index-CusYFjie.js";
7
- import { u as useModal } from "../../hooks/useModal/index-BJSQOX3U.js";
8
- const Header = (props) => {
9
- const { title, onClickCancel, urlIcon, classes } = props;
10
- const { host_static_assets, environment_assets } = useEnvironment();
11
- const handlerClick = (e) => {
12
- e.stopPropagation();
13
- onClickCancel && onClickCancel();
14
- };
15
- return /* @__PURE__ */ jsxs("div", { id: "Header", className: clsx(classes.headerContainer, "m4l_draggable_handle"), children: [
16
- urlIcon && /* @__PURE__ */ jsx("div", { className: classes.iconHeader, children: /* @__PURE__ */ jsx(Icon, { src: urlIcon, size: "medium" }) }),
17
- /* @__PURE__ */ jsx("div", { className: classes.titleHeader, children: title }),
18
- /* @__PURE__ */ jsx(
19
- IconButton,
20
- {
21
- className: classes.iconCloseHeader,
22
- src: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/close.svg`,
23
- onClick: (e) => handlerClick(e),
24
- "aria-label": "click"
25
- }
26
- )
27
- ] });
28
- };
29
- const WindowBase = (props) => {
30
- const { children, onClickCancel, ...other } = props;
31
- const { closeModal, variant } = useModal();
32
- const onCloseCancel = () => {
33
- onClickCancel && onClickCancel();
34
- closeModal();
35
- };
36
- const classes = modalUtilityClasses({ variant });
37
- return /* @__PURE__ */ jsxs("div", { className: classes.windowBaseRoot, children: [
38
- /* @__PURE__ */ jsx(Header, { ...other, onClickCancel: onCloseCancel, classes }),
39
- /* @__PURE__ */ jsx("div", { className: classes.windowContent, children })
40
- ] });
41
- };
42
- export {
43
- WindowBase as W
44
- };
@@ -1,73 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { A as Actions } from "../CommonActions/components/Actions/index-CuG1pnXW.js";
3
- import { Typography } from "@mui/material";
4
- import { useModuleDictionary, useEnvironment } from "@m4l/core";
5
- import { u as useModal } from "../../hooks/useModal/index-BJSQOX3U.js";
6
- import { I as Image } from "../Image/index-COp8vP0X.js";
7
- import { m as modalUtilityClasses } from "./index-CydPIpKZ.js";
8
- import { W as WindowBase } from "./WindowBase-Gd27v5FU.js";
9
- import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index-CIdpDXkr.js";
10
- import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index-CqqDZZcG.js";
11
- const dictionary = {
12
- MESSAGE: "common_actions.confirm_quit_msg"
13
- };
14
- const MessageIlustration = (props) => {
15
- const { getLabel } = useModuleDictionary();
16
- const { variant } = useModal();
17
- const {
18
- msg = getLabel(dictionary.MESSAGE),
19
- classes,
20
- title
21
- // msg = 'Are you sure you want to perform this action? Once complete, the information will be deleted.',
22
- } = props;
23
- const { host_static_assets, environment_assets } = useEnvironment();
24
- const illustrationWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_warning.svg`;
25
- const illustrationDanger = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_danger.svg`;
26
- const illustrationSuccess = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_success.svg`;
27
- const illustrationInfo = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_info.svg`;
28
- return /* @__PURE__ */ jsx("div", { className: classes.containerMassageIlustration, children: /* @__PURE__ */ jsxs("div", { className: classes.modalContent, children: [
29
- /* @__PURE__ */ jsx("div", { className: classes.illustrationContainer, children: /* @__PURE__ */ jsx(
30
- Image,
31
- {
32
- className: classes.illustration,
33
- src: variant === "warning" ? illustrationWarning : variant === "delete" ? illustrationDanger : variant === "success" ? illustrationSuccess : illustrationInfo
34
- }
35
- ) }),
36
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Typography, { variant: "subtitle", children: title }) }),
37
- /* @__PURE__ */ jsx("div", { className: classes.messageContainer, children: /* @__PURE__ */ jsx(Typography, { variant: "body", children: msg }) })
38
- ] }) });
39
- };
40
- const WindowConfirm = (props) => {
41
- const { variant, title, onClickCancel, onClickIntro, msg } = props;
42
- const { closeModal } = useModal();
43
- const { getLabel } = useModuleDictionary();
44
- const { host_static_assets, environment_assets } = useEnvironment();
45
- const onCloseCancel = () => {
46
- onClickCancel && onClickCancel();
47
- closeModal();
48
- };
49
- const onClikIntroLocal = () => {
50
- closeModal();
51
- if (onClickIntro) {
52
- onClickIntro();
53
- }
54
- };
55
- const classes = modalUtilityClasses({ variant });
56
- return /* @__PURE__ */ jsxs(
57
- WindowBase,
58
- {
59
- title: getLabel("modal_dialog.label_window_confirm"),
60
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/window_confirm.svg`,
61
- children: [
62
- /* @__PURE__ */ jsx(MessageIlustration, { classes, msg, title }),
63
- /* @__PURE__ */ jsxs(Actions, { children: [
64
- /* @__PURE__ */ jsx(ActionCancel, { onClick: onCloseCancel }),
65
- /* @__PURE__ */ jsx(ActionIntro, { onClick: onClikIntroLocal })
66
- ] })
67
- ]
68
- }
69
- );
70
- };
71
- export {
72
- WindowConfirm as W
73
- };
@@ -1,65 +0,0 @@
1
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
- import { unstable_composeClasses } from "@mui/base";
3
- const componentName = "M4LModal";
4
- generateUtilityClasses(componentName, [
5
- /* elements */
6
- "root",
7
- "windowBaseRoot",
8
- "containerWindow",
9
- "headerContainer",
10
- "iconHeader",
11
- "titleHeader",
12
- "iconCloseHeader",
13
- "containerMassageIlustration",
14
- "modalContent",
15
- "illustrationContainer",
16
- "messageContainer",
17
- "illustration",
18
- "windowConfirm",
19
- "resizeHandle",
20
- "windowContent",
21
- /* states or variants of elements */
22
- "variantDelete",
23
- "variantWarning",
24
- "variantInfo",
25
- "variantPrimary"
26
- ]);
27
- function getModalUtilityClass(slot) {
28
- return generateUtilityClass(componentName, slot);
29
- }
30
- const modalUtilityClasses = (ownerState) => {
31
- const slots = {
32
- root: [
33
- "root",
34
- ownerState?.variant === "delete" && "variantDelete",
35
- ownerState.variant === "warning" && "variantWarning",
36
- ownerState.variant === "info" && "variantInfo",
37
- ownerState.variant === "success" && "variantSuccess"
38
- ],
39
- windowBaseRoot: ["windowBaseRoot"],
40
- containerWindow: ["containerWindow"],
41
- headerContainer: ["headerContainer"],
42
- iconHeader: ["iconHeader"],
43
- titleHeader: ["titleHeader"],
44
- iconCloseHeader: ["iconCloseHeader"],
45
- containerMassageIlustration: ["containerMassageIlustration"],
46
- modalContent: ["modalContent"],
47
- illustrationContainer: ["illustrationContainer"],
48
- messageContainer: ["messageContainer"],
49
- illustration: ["illustration"],
50
- windowConfirm: ["windowConfirm"],
51
- resizeHandle: ["resizeHandle"],
52
- windowContent: ["windowContent"]
53
- };
54
- const composedClasses = unstable_composeClasses(slots, getModalUtilityClass, {});
55
- return {
56
- ...composedClasses
57
- };
58
- };
59
- const getModalDictionary = () => {
60
- return "modal_dialog";
61
- };
62
- export {
63
- getModalDictionary as g,
64
- modalUtilityClasses as m
65
- };
@@ -1,124 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { generateUtilityClasses, generateUtilityClass, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
3
- import { I as IconButton } from "../IconButton/index-CusYFjie.js";
4
- import { useEnvironment } from "@m4l/core";
5
- import { unstable_composeClasses } from "@mui/base";
6
- import { ax as AccordionRoot } from "../../../styles/index-DKj6m8SL.js";
7
- import clsx from "clsx";
8
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
9
- import { g as getNameDataTestId } from "../../../test/getNameDataTestId-BaBTWhBr.js";
10
- import { I as Icon } from "../../Icon/index-C89MAkeH.js";
11
- import { T as Typography } from "../Typography/index-Cf_4Zw8f.js";
12
- const componentName = "M4LAccordion";
13
- generateUtilityClasses(componentName, [
14
- /* elements */
15
- "root",
16
- "endIcon",
17
- "labelIcon",
18
- "label",
19
- "content"
20
- /* states or variants of elements */
21
- ]);
22
- function getAccordionUtilityClass(slot) {
23
- return generateUtilityClass(componentName, slot);
24
- }
25
- const accordionUtilityClasses = () => {
26
- const slots = {
27
- root: ["root"],
28
- endIcon: ["endIcon"],
29
- labelIcon: ["labelIcon"],
30
- label: ["label"],
31
- content: ["content"]
32
- };
33
- const composedClasses = unstable_composeClasses(slots, getAccordionUtilityClass, {});
34
- return {
35
- ...composedClasses
36
- };
37
- };
38
- const COMPONENT_PREFIX = "m4l-accordion";
39
- function Accordion(props) {
40
- const {
41
- label,
42
- SKTWidht,
43
- SKTHeight,
44
- children,
45
- accordionProps,
46
- summaryProps,
47
- labelIcon,
48
- className,
49
- dataTestId = ""
50
- } = props;
51
- const { host_static_assets, environment_assets } = useEnvironment();
52
- const classes = accordionUtilityClasses();
53
- return /* @__PURE__ */ jsx(
54
- AccordionRoot,
55
- {
56
- className: clsx(classes.root, className),
57
- ...process.env.NODE_ENV !== "production" ? {
58
- [TEST_PROP_ID]: getNameDataTestId(
59
- COMPONENT_PREFIX,
60
- "root",
61
- dataTestId
62
- )
63
- } : {},
64
- children: /* @__PURE__ */ jsxs(
65
- Accordion$1,
66
- {
67
- variant: "outlined",
68
- square: true,
69
- TransitionProps: { unmountOnExit: true },
70
- defaultExpanded: true,
71
- ...accordionProps,
72
- children: [
73
- /* @__PURE__ */ jsx(
74
- AccordionSummary,
75
- {
76
- "aria-controls": "expanded-content",
77
- disableTouchRipple: false,
78
- expandIcon: /* @__PURE__ */ jsx(
79
- IconButton,
80
- {
81
- "aria-label": "settings",
82
- src: `${host_static_assets}/${environment_assets}/frontend/components/accordion/assets/icons/expanded.svg`,
83
- className: classes.endIcon
84
- }
85
- ),
86
- ...summaryProps,
87
- children: /* @__PURE__ */ jsxs(
88
- "div",
89
- {
90
- className: classes.labelIcon,
91
- ...process.env.NODE_ENV !== "production" ? {
92
- [TEST_PROP_ID]: getNameDataTestId(
93
- COMPONENT_PREFIX,
94
- "labelIcon",
95
- dataTestId
96
- )
97
- } : {},
98
- children: [
99
- labelIcon && /* @__PURE__ */ jsx(Icon, { src: labelIcon }),
100
- /* @__PURE__ */ jsx(
101
- Typography,
102
- {
103
- className: classes.label,
104
- variant: "subtitle",
105
- skeletonWidth: SKTWidht,
106
- skeletongHeight: SKTHeight,
107
- children: label
108
- }
109
- )
110
- ]
111
- }
112
- )
113
- }
114
- ),
115
- /* @__PURE__ */ jsx(AccordionDetails, { className: classes.content, children })
116
- ]
117
- }
118
- )
119
- }
120
- );
121
- }
122
- export {
123
- Accordion as A
124
- };
@@ -1,64 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { Skeleton, generateUtilityClasses, generateUtilityClass, Avatar as Avatar$1 } from "@mui/material";
4
- import { useModuleSkeleton } from "@m4l/core";
5
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
6
- import { unstable_composeClasses } from "@mui/base";
7
- import { ay as AvatarRoot } from "../../../styles/index-DKj6m8SL.js";
8
- import clsx from "clsx";
9
- const AVATAR_PREFIX = "M4LAvatar";
10
- const getNameAvatarDataTestId = (KEY) => {
11
- return `${AVATAR_PREFIX}-${KEY}`;
12
- };
13
- const SkeletonAvatar = (props) => {
14
- const { className } = props;
15
- return /* @__PURE__ */ jsx(
16
- Skeleton,
17
- {
18
- variant: "circular",
19
- width: "32px",
20
- height: "32px",
21
- className,
22
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameAvatarDataTestId("skeleton") } : {}
23
- }
24
- );
25
- };
26
- const componentName = "M4LAvatar";
27
- generateUtilityClasses(componentName, [
28
- /* elements */
29
- "root",
30
- "skeleton"
31
- /* states or variants of elements */
32
- ]);
33
- function getAvatarUtilityClass(slot) {
34
- return generateUtilityClass(componentName, slot);
35
- }
36
- const useAvatarUtilityClasses = () => {
37
- const slots = {
38
- root: ["root"],
39
- skeleton: ["skeleton"]
40
- };
41
- const composedClasses = unstable_composeClasses(slots, getAvatarUtilityClass, {});
42
- return {
43
- ...composedClasses
44
- };
45
- };
46
- const Avatar = forwardRef(
47
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
48
- ({ color = "default", sx, className, ...other }, ref) => {
49
- const isSkeleton = useModuleSkeleton();
50
- const classes = useAvatarUtilityClasses();
51
- return /* @__PURE__ */ jsx(
52
- AvatarRoot,
53
- {
54
- className: clsx(classes.root, className),
55
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameAvatarDataTestId("root") } : {},
56
- children: !isSkeleton ? /* @__PURE__ */ jsx(Avatar$1, { ref, ...other }) : /* @__PURE__ */ jsx(SkeletonAvatar, { className: classes.skeleton })
57
- }
58
- );
59
- }
60
- );
61
- Avatar.displayName = "Avatar";
62
- export {
63
- Avatar as A
64
- };
@@ -1,29 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { generateUtilityClasses, Badge as Badge$1 } from "@mui/material";
3
- import "@mui/base";
4
- import { az as BadgeRoot } from "../../../styles/index-DKj6m8SL.js";
5
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
6
- const componentName = "M4LBadge";
7
- const badgeClasses = generateUtilityClasses(componentName, [
8
- /* elements */
9
- "root"
10
- /* states or variants of elements */
11
- ]);
12
- const BADGE_PREFIX = "M4LBadge";
13
- const getNameBadgeDataTestId = (ELEMENTKEY, ID) => {
14
- return `${BADGE_PREFIX}-${ELEMENTKEY}-${ID}`;
15
- };
16
- const Badge = (props) => {
17
- const { children, dataTestId = "", ...others } = props;
18
- return /* @__PURE__ */ jsx(
19
- BadgeRoot,
20
- {
21
- className: badgeClasses.root,
22
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameBadgeDataTestId("root", dataTestId) } : {},
23
- children: /* @__PURE__ */ jsx(Badge$1, { ...others, children })
24
- }
25
- );
26
- };
27
- export {
28
- Badge as B
29
- };
@@ -1,22 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Box } from "@mui/material";
3
- function BoxIcon({ src, sx }) {
4
- return /* @__PURE__ */ jsx(
5
- Box,
6
- {
7
- component: "span",
8
- sx: {
9
- width: 20,
10
- height: 20,
11
- display: "inline-block",
12
- bgcolor: "currentColor",
13
- mask: `url(${src}) no-repeat center / contain`,
14
- WebkitMask: `url(${src}) no-repeat center / contain`,
15
- ...sx
16
- }
17
- }
18
- );
19
- }
20
- export {
21
- BoxIcon as B
22
- };
@@ -1,86 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useMemo } from "react";
3
- import { useModuleDictionary } from "@m4l/core";
4
- import { Link, Box, Typography, Breadcrumbs as Breadcrumbs$1 } from "@mui/material";
5
- import { Link as Link$1 } from "react-router-dom";
6
- function LinkItem({ link }) {
7
- const { href, name, icon, dictionaryField: dictionaryDescription } = link;
8
- const { getLabel } = useModuleDictionary();
9
- return /* @__PURE__ */ jsxs(
10
- Link,
11
- {
12
- variant: "body2",
13
- component: Link$1,
14
- to: href || "#",
15
- sx: {
16
- lineHeight: 2,
17
- display: "flex",
18
- alignItems: "center",
19
- color: "text.primary",
20
- "& > div": { display: "inherit" }
21
- },
22
- children: [
23
- icon && /* @__PURE__ */ jsx(Box, { sx: { mr: 1, "& svg": { width: 20, height: 20 } }, children: icon }),
24
- dictionaryDescription !== void 0 && getLabel ? getLabel(dictionaryDescription) : name
25
- ]
26
- },
27
- name
28
- );
29
- }
30
- function Breadcrumbs(props) {
31
- const { links, activeLast = false, ...other } = props;
32
- const { getLabel } = useModuleDictionary();
33
- const currentLink = useMemo(() => {
34
- if (links.length === 0) return "";
35
- const { dictionaryField } = links[links.length - 1];
36
- return getLabel(dictionaryField);
37
- }, [getLabel, links]);
38
- const listDefault = useMemo(
39
- () => links.map((link) => /* @__PURE__ */ jsx(LinkItem, { link }, link.name)),
40
- [links]
41
- );
42
- const listActiveLast = useMemo(
43
- () => links.map(
44
- (link) => link.name !== currentLink ? /* @__PURE__ */ jsx(LinkItem, { link }, link.name) : /* @__PURE__ */ jsx(
45
- Typography,
46
- {
47
- variant: "body2",
48
- sx: {
49
- maxWidth: 260,
50
- overflow: "hidden",
51
- whiteSpace: "nowrap",
52
- color: "text.disabled",
53
- textOverflow: "ellipsis"
54
- },
55
- children: currentLink
56
- },
57
- link.name
58
- )
59
- ),
60
- [currentLink, links]
61
- );
62
- return /* @__PURE__ */ jsx(
63
- Breadcrumbs$1,
64
- {
65
- id: "MUIBreadcrumbs",
66
- separator: /* @__PURE__ */ jsx(
67
- Box,
68
- {
69
- component: "span",
70
- sx: {
71
- width: 4,
72
- height: 4,
73
- mx: 0.5,
74
- borderRadius: "50%",
75
- bgcolor: "text.disabled"
76
- }
77
- }
78
- ),
79
- ...other,
80
- children: activeLast ? listDefault : listActiveLast
81
- }
82
- );
83
- }
84
- export {
85
- Breadcrumbs as B
86
- };