@m4l/components 3.1.6 → 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 (203) hide show
  1. package/components/mui_extended/IconButton/index.d.ts +1 -1
  2. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +2 -4
  3. package/index.js +183 -339
  4. package/node_modules-CQtkw0uG.js +7350 -0
  5. package/package.json +1 -1
  6. package/vendor-AfIOyqRr.js +24636 -0
  7. package/components/AccountPopover/index-BdnzI23R.js +0 -334
  8. package/components/AppBar/index-Dvrx1jsr.js +0 -93
  9. package/components/BaseModule/index-BQ2UIUCy.js +0 -30
  10. package/components/CommonActions/components/ActionCancel/index-DSVEMl41.js +0 -12
  11. package/components/CommonActions/components/ActionFormCancel/index-DMsGH0wx.js +0 -56
  12. package/components/CommonActions/components/ActionFormIntro/index-C8zb7R3W.js +0 -33
  13. package/components/CommonActions/components/ActionIntro/index-BNIG3KAH.js +0 -25
  14. package/components/CommonActions/components/Actions/index-90JsZTzb.js +0 -70
  15. package/components/DataGrid/constants-8L7QgBKi.js +0 -10
  16. package/components/DataGrid/formatters/ColumnBooleanFormatter/index-ZsSxUL_T.js +0 -26
  17. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-D-gZpvcm.js +0 -22
  18. package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
  19. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-kZGiDU5k.js +0 -23
  20. package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
  21. package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
  22. package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
  23. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js +0 -36
  24. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
  25. package/components/DataGrid/formatters/index-iKq2iRoa.js +0 -13
  26. package/components/DataGrid/index-DGHnRo8z.js +0 -908
  27. package/components/DataGrid/subcomponents/Actions/index-BhBvobKS.js +0 -549
  28. package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
  29. package/components/DragResizeWindow/index-D2jLYExo.js +0 -505
  30. package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
  31. package/components/DynamicFilter/dictionary-D9Z9YGDb.js +0 -51
  32. package/components/DynamicFilter/index-CRmtRWlr.js +0 -116
  33. package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
  34. package/components/DynamicFilter/slots/dynamicFilterSlots-CQiB8TmY.js +0 -151
  35. package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
  36. package/components/DynamicFilter/store/index-DoIifWTk.js +0 -254
  37. package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-DQESCg04.js +0 -60
  38. package/components/DynamicFilter/subcomponents/AppliedFilters/index-CGmflaoY.js +0 -26
  39. package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-BfH6YHNi.js +0 -40
  40. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-Dv3KjuYK.js +0 -129
  41. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-BnhNICK4.js +0 -171
  42. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-CNN6DeHY.js +0 -153
  43. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-C2dNPFtM.js +0 -146
  44. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-B03ahaU6.js +0 -114
  45. package/components/DynamicFilter/subcomponents/FieldTypes/index-EF7A6WnZ.js +0 -38
  46. package/components/DynamicFilter/subcomponents/FilterActions/index-CQtA2ELu.js +0 -88
  47. package/components/DynamicFilter/subcomponents/InputFilter/index-EXbXDSZA.js +0 -188
  48. package/components/DynamicFilter/subcomponents/PopoverFilter/index-BX8YCh9v.js +0 -158
  49. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-DvAYf5-a.js +0 -63
  50. package/components/FieldLabel/index-C8od8D0w.js +0 -54
  51. package/components/GridLayout/index-EPw3AYiQ.js +0 -1044
  52. package/components/GridLayout/subcomponents/Griditem/index-B8Q7iMhr.js +0 -395
  53. package/components/GridLayout/subcomponents/Responsive/index-D6BbBdVx.js +0 -348
  54. package/components/GridLayout/subcomponents/SizeProvider/index-OhbtnEN4.js +0 -71
  55. package/components/HelperText/index-sLK3dYG0.js +0 -50
  56. package/components/Icon/index-BJF_0F6d.js +0 -176
  57. package/components/Image/index-BxphCFC7.js +0 -175
  58. package/components/LanguagePopover/index-CkKie1Ph.js +0 -179
  59. package/components/LinearProgressIndeterminate/index-CTvXOPRx.js +0 -55
  60. package/components/Loadable/index-BMbi9ISF.js +0 -9
  61. package/components/LoadingError/index-BaaPhmyF.js +0 -89
  62. package/components/MFIsolationApp/index-BfHLGDcN.js +0 -169
  63. package/components/MFLoader/index-B8FmSpE7.js +0 -299
  64. package/components/ModalDialog/index-WSVr5sZr.js +0 -77
  65. package/components/NavLink/index-CKgi5l5M.js +0 -55
  66. package/components/NoItemSelected/index-BKsZKc_f.js +0 -54
  67. package/components/ObjectLogs/index-BJkjYQaa.js +0 -233
  68. package/components/PDFViewer/index-Cnbioqzo.js +0 -51
  69. package/components/Page/index-DSSwuNSp.js +0 -117
  70. package/components/PaperForm/index-C1OKDnuY.js +0 -59
  71. package/components/Period/index-DYE7Bj45.js +0 -238
  72. package/components/PrintingSystem/index-BkfHXcTV.js +0 -187
  73. package/components/PrintingSystem/subcomponents/BodyNode/index-Btg2zXVQ.js +0 -49
  74. package/components/PrintingSystem/subcomponents/ChartNode/index-GLjhqKd2.js +0 -105
  75. package/components/PrintingSystem/subcomponents/DividerNode/index-D9T1MWQd.js +0 -20
  76. package/components/PrintingSystem/subcomponents/FooterNode/index-C3LET1ZY.js +0 -49
  77. package/components/PrintingSystem/subcomponents/GridNode/index-BPz7lGvC.js +0 -74
  78. package/components/PrintingSystem/subcomponents/HeaderNode/index-DY4Yci1r.js +0 -49
  79. package/components/PrintingSystem/subcomponents/PaperNode/index-BYoGJll5.js +0 -30
  80. package/components/PrintingSystem/subcomponents/PropertyValueNode/index-vFZ5Skyl.js +0 -47
  81. package/components/PrintingSystem/subcomponents/SectionNode/index-BNqGWpcj.js +0 -49
  82. package/components/PrintingSystem/subcomponents/TextBoxNode/index-wgdfWbfF.js +0 -24
  83. package/components/PropertyValue/index-dwO3Qo0Y.js +0 -264
  84. package/components/Resizeable/index-CHseEYjL.js +0 -20
  85. package/components/ScrollBar/index-BYMy_qJE.js +0 -35
  86. package/components/ScrollToTop/index-TxORk5dB.js +0 -12
  87. package/components/SideBar/index-DqKD_S9_.js +0 -758
  88. package/components/SplitLayout/index-D4lxi0ig.js +0 -89
  89. package/components/ToastContainer/index-jnQcIcV1.js +0 -191
  90. package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
  91. package/components/animate/LoadingScreen/index-CTGGa4Yt.js +0 -70
  92. package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
  93. package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
  94. package/components/animate/PropagateLoader/index-Bkq8V2SN.js +0 -23
  95. package/components/animate/features-BbnE33u3.js +0 -5
  96. package/components/animate/index-9dC9NmWv.js +0 -89
  97. package/components/animate/variants/bounce-DanQqHAX.js +0 -101
  98. package/components/animate/variants/container-Dmpr6tg5.js +0 -22
  99. package/components/animate/variants/fade-CAOJNn06.js +0 -65
  100. package/components/animate/variants/index-l0sNRNKZ.js +0 -1
  101. package/components/animate/variants/transition-B9W5SWTa.js +0 -20
  102. package/components/areas/components/AreasAdmin/index-BU9AX60_.js +0 -699
  103. package/components/areas/components/AreasViewer/index-CPlZxIzK.js +0 -805
  104. package/components/areas/components/index-l0sNRNKZ.js +0 -1
  105. package/components/areas/constants-rqODZNZe.js +0 -6
  106. package/components/areas/contexts/AreasContext/index-DGguLxcX.js +0 -1110
  107. package/components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js +0 -36
  108. package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
  109. package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
  110. package/components/areas/dictionary-YUsP9beq.js +0 -36
  111. package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
  112. package/components/areas/hooks/useAreas/index-DBXtbtIu.js +0 -11
  113. package/components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js +0 -12
  114. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +0 -31
  115. package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
  116. package/components/areas/icons-CwFr-alN.js +0 -24
  117. package/components/areas/index-B_Odny9h.js +0 -22
  118. package/components/commercial/AppBarCommercial/index-faX1fxjn.js +0 -28
  119. package/components/commercial/SectionCommercial/index-Dspd2Hd7.js +0 -56
  120. package/components/commercial/TopBar/index-zACdM_C0.js +0 -232
  121. package/components/commercial/index-9P0yOdH4.js +0 -81
  122. package/components/formatters/BooleanFormatter/index-PoFZ3r_m.js +0 -44
  123. package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
  124. package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
  125. package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
  126. package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
  127. package/components/formatters/index-CEJ6VCMb.js +0 -109
  128. package/components/hook-form/HelperError/index-DRvAkpwm.js +0 -19
  129. package/components/hook-form/RHFAutocomplete/index-DS57m8AX.js +0 -657
  130. package/components/hook-form/RHFAutocompleteAsync/index-Bu6NYmG_.js +0 -226
  131. package/components/hook-form/RHFCheckbox/index-BsB42rRc.js +0 -132
  132. package/components/hook-form/RHFColorPicker/index-Dox0FPrV.js +0 -191
  133. package/components/hook-form/RHFDateTime/index-ef19Az1N.js +0 -190
  134. package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
  135. package/components/hook-form/RHFPeriod/index-DyRLTD0w.js +0 -98
  136. package/components/hook-form/RHFRadioGroup/index-pgTLVF9t.js +0 -52
  137. package/components/hook-form/RHFSelect/index-LdwRuFz-.js +0 -29
  138. package/components/hook-form/RHFTextField/index-BgsElxUF.js +0 -337
  139. package/components/hook-form/RHFUpload/index-B6m3ypzh.js +0 -253
  140. package/components/maps/components/GpsTools/index-CeLi75XZ.js +0 -1948
  141. package/components/maps/components/Map/index-D4B8Lfgv.js +0 -2545
  142. package/components/maps/index-Ci-7-FHg.js +0 -7
  143. package/components/modal/WindowBase-CkftshqR.js +0 -44
  144. package/components/modal/WindowConfirm-C5YnzF-B.js +0 -73
  145. package/components/modal/index-CydPIpKZ.js +0 -65
  146. package/components/mui_extended/Accordion/index-jF2uxSmi.js +0 -124
  147. package/components/mui_extended/Avatar/index-CHmsrmfc.js +0 -64
  148. package/components/mui_extended/Badge/index-B_BGIjkQ.js +0 -29
  149. package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
  150. package/components/mui_extended/Breadcrumbs/index-DTS7rOZH.js +0 -86
  151. package/components/mui_extended/Button/index-CgvCim_g.js +0 -222
  152. package/components/mui_extended/CheckBox-H73kpinr.js +0 -76
  153. package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
  154. package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
  155. package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
  156. package/components/mui_extended/IconButton/index-B8lOMybH.js +0 -117
  157. package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
  158. package/components/mui_extended/IconButton/types-l0sNRNKZ.js +0 -1
  159. package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
  160. package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
  161. package/components/mui_extended/MenuActions/MenuActions-DA_aS7o5.js +0 -149
  162. package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
  163. package/components/mui_extended/MenuActions/dictionary-Dj_07puT.js +0 -11
  164. package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
  165. package/components/mui_extended/MenuActions/slots/MenuActionsSlots-BVp0M8fu.js +0 -47
  166. package/components/mui_extended/Pager/index-Dtk4aUiU.js +0 -257
  167. package/components/mui_extended/Popover/index-Dl1PwIS2.js +0 -153
  168. package/components/mui_extended/Stack/index-CRzpVi2a.js +0 -31
  169. package/components/mui_extended/Tab/index-DmrsMLOq.js +0 -129
  170. package/components/mui_extended/ToggleButton/index-CAnHC1N-.js +0 -18
  171. package/components/mui_extended/Tooltip/index-B8QUytCK.js +0 -42
  172. package/components/mui_extended/Typography/index-DXq1fG8k.js +0 -54
  173. package/components/mui_extended/index-l0sNRNKZ.js +0 -1
  174. package/components/popups/PopupsProvider/index-DhSxmtfJ.js +0 -172
  175. package/components/popups/PopupsViewer/constants-DuyD7aCn.js +0 -4
  176. package/components/popups/PopupsViewer/icons-BUujqqbu.js +0 -7
  177. package/components/popups/PopupsViewer/index-CMI1SK_O.js +0 -172
  178. package/components/popups/PopupsViewer/slots/index-B98CiRLa.js +0 -14
  179. package/components/popups/PopupsViewer/slots/popupsViewerSlots-DOkmuvnx.js +0 -46
  180. package/components/popups/index-l0sNRNKZ.js +0 -1
  181. package/contexts/ModalContext/index-Bp_s1qUm.js +0 -39
  182. package/contexts/RHFormContext/index-BQ0XWrpK.js +0 -78
  183. package/hocs/withToggle/index-C1_DMZD3.js +0 -14
  184. package/hooks/useFormAddEdit/index-dLVQB7hC.js +0 -90
  185. package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
  186. package/hooks/useModal/index-69rbrQ0v.js +0 -10
  187. package/hooks/useSizeContainer/index-D4hDjM1P.js +0 -37
  188. package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
  189. package/hooks/useTab/index-DYRxOmMI.js +0 -12
  190. package/react-data-grid-BfYuZ6AK.js +0 -2606
  191. package/react-draggable-DsCPdgQP.js +0 -811
  192. package/react-json-view-bhqIAaNg.js +0 -2576
  193. package/react-resizable-eBbFl2dX.js +0 -618
  194. package/react-spinners-TpKN9lZg.js +0 -123
  195. package/react-splitter-layout-C-JTsNGs.js +0 -158
  196. package/styles/DynamicFilter-CJFsIegc.js +0 -319
  197. package/styles/MenuActions-lTi-ynPM.js +0 -42
  198. package/styles/index-CqpubQQr.js +0 -1691
  199. package/test/constants_no_mock-CF-669v-.js +0 -4
  200. package/test/getNameDataTestId-BaBTWhBr.js +0 -10
  201. package/utils/index-DiMrtgIu.js +0 -502
  202. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
  203. /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-BJF_0F6d.js";
6
- import { I as IconButton } from "../mui_extended/IconButton/index-B8lOMybH.js";
7
- import { u as useModal } from "../../hooks/useModal/index-69rbrQ0v.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-90JsZTzb.js";
3
- import { Typography } from "@mui/material";
4
- import { useModuleDictionary, useEnvironment } from "@m4l/core";
5
- import { u as useModal } from "../../hooks/useModal/index-69rbrQ0v.js";
6
- import { I as Image } from "../Image/index-BxphCFC7.js";
7
- import { m as modalUtilityClasses } from "./index-CydPIpKZ.js";
8
- import { W as WindowBase } from "./WindowBase-CkftshqR.js";
9
- import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index-DSVEMl41.js";
10
- import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index-BNIG3KAH.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-B8lOMybH.js";
4
- import { useEnvironment } from "@m4l/core";
5
- import { unstable_composeClasses } from "@mui/base";
6
- import { ax as AccordionRoot } from "../../../styles/index-CqpubQQr.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-BJF_0F6d.js";
11
- import { T as Typography } from "../Typography/index-DXq1fG8k.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-CqpubQQr.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-CqpubQQr.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
- };