@m4l/components 3.0.0 → 3.0.2

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 (225) hide show
  1. package/@types/types.d.ts +31 -8
  2. package/components/AccountPopover/{index.af5aae0e.js → index-vXlaw69C.js} +7 -5
  3. package/components/AppBar/{index.b8f22046.js → index-3gXtikUI.js} +7 -5
  4. package/components/BaseModule/{index.f7a04fe7.js → index-CtN6b__U.js} +1 -1
  5. package/components/CommonActions/components/ActionCancel/{index.e67885bc.js → index-D_42VfUR.js} +2 -2
  6. package/components/CommonActions/components/ActionFormCancel/{index.92988013.js → index-DL7fDBi6.js} +5 -5
  7. package/components/CommonActions/components/ActionFormIntro/{index.f8867ae9.js → index-i3HmOpoU.js} +2 -2
  8. package/components/CommonActions/components/ActionIntro/{index.e58eb0c4.js → index-i5875EXe.js} +3 -3
  9. package/components/CommonActions/components/Actions/{index.f674be30.js → index-ChW1FuFf.js} +5 -3
  10. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.89a59c52.js → index-BjkuIa7y.js} +1 -1
  11. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d619d1db.js → index-CWQp1KWU.js} +1 -1
  12. package/components/DataGrid/formatters/ColumnDateFormatter/{index.e00d0cf2.js → index-CKg8CJ6A.js} +1 -1
  13. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.557bc8a5.js → index-DggW8-4n.js} +1 -1
  14. package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.880e743b.js → index-BslXGK-A.js} +1 -1
  15. package/components/DataGrid/formatters/ColumnPointsFormatter/{index.ab152484.js → index-BXGW2CsK.js} +1 -1
  16. package/components/DataGrid/formatters/ColumnPriceFormatter/{index.bf9d9e60.js → index-O11tBykn.js} +1 -1
  17. package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.4045b2f2.js → index-BaCawLr1.js} +1 -1
  18. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.a87302d1.js → index-Cq7a-jnE.js} +1 -1
  19. package/components/DataGrid/formatters/{index.06c18753.js → index-B3AsHKeD.js} +2 -2
  20. package/components/DataGrid/{index.b37d6cab.js → index-EgaRUtbL.js} +33 -26
  21. package/components/DataGrid/subcomponents/Actions/{index.c3b1c1e2.js → index-BF4pV_-K.js} +22 -26
  22. package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
  23. package/components/DragResizeWindow/{index.a4bcaab8.js → index-D2jLYExo.js} +25 -6
  24. package/components/DynamicFilter/{dictionary.94a74eb3.js → dictionary-B2qYGLOx.js} +2 -2
  25. package/components/DynamicFilter/{index.b07b567a.js → index-BLjn97jC.js} +7 -8
  26. package/components/DynamicFilter/slots/{dynamicFilterSlots.dd5824d5.js → dynamicFilterSlots-CaFVu7xW.js} +8 -8
  27. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
  28. package/components/DynamicFilter/store/{index.49d1b77f.js → index-EW1sL9gf.js} +3 -3
  29. package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.9e8fcc8c.js → index-DjgwIwH9.js} +3 -3
  30. package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3e52c5d7.js → index-Cfcgzcw7.js} +4 -4
  31. package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.68d855e9.js → index-BFcVswNb.js} +8 -8
  32. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.11f588b4.js → index-B4mhUk9e.js} +4 -3
  33. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.77555163.js → index-CA3JDlD0.js} +10 -9
  34. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.1c8454db.js → index-B4R83Pyi.js} +5 -4
  35. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.cb31333a.js → index-1XC3u2dm.js} +6 -6
  36. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.0ae3d439.js → index-BEMRO3Ng.js} +5 -4
  37. package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-Cfs28hud.js} +5 -5
  38. package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-CYY3cjbX.js} +3 -3
  39. package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-CAdtxARw.js} +33 -13
  40. package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-COoNIh4L.js} +7 -6
  41. package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.e5e439f1.js → index-Kz-jfM3o.js} +2 -2
  42. package/components/FieldLabel/{index.9a979def.js → index-DCAMDJoJ.js} +6 -4
  43. package/components/GridLayout/{index.dd291886.js → index-DUfp2sP_.js} +51 -72
  44. package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-DEi0Ai1D.js} +11 -13
  45. package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-B7v5X9un.js} +7 -7
  46. package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-BsKaLKRl.js} +15 -9
  47. package/components/HelperText/{index.6818980e.js → index-DVV5Jfc8.js} +10 -3
  48. package/components/Icon/{index.c06685f4.js → index-CueLDD9j.js} +9 -4
  49. package/components/Image/{index.ae542f70.js → index-By5vsRzf.js} +40 -31
  50. package/components/LanguagePopover/index-Dn2JPzf1.js +179 -0
  51. package/components/LinearProgressIndeterminate/{index.ca78fd37.js → index-CTlvokQp.js} +5 -3
  52. package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
  53. package/components/LoadingError/{index.765ff885.js → index-CXVOiscg.js} +8 -6
  54. package/components/MFIsolationApp/{index.677d9e93.js → index-BfFMo2Q2.js} +5 -5
  55. package/components/MFLoader/{index.6af7729c.js → index-CCtU6zwR.js} +36 -15
  56. package/components/ModalDialog/{index.a57ee020.js → index-KryIxH_j.js} +6 -6
  57. package/components/NavLink/{index.dd723dfd.js → index-D6eiKlc0.js} +5 -3
  58. package/components/NoItemSelected/{index.b3e365b1.js → index-DKhhgTAH.js} +3 -1
  59. package/components/ObjectLogs/{index.54fdee14.js → index-CpBmanv0.js} +19 -12
  60. package/components/PDFViewer/{index.7932d07b.js → index-3PBUibum.js} +4 -2
  61. package/components/Page/{index.5f2963f3.js → index-PXQkJn7v.js} +11 -8
  62. package/components/PaperForm/{index.cdb1f846.js → index-B6a3-CZt.js} +4 -2
  63. package/components/Period/{index.b0b2a03b.js → index-DtFWU3y5.js} +20 -31
  64. package/components/PrintingSystem/{index.800a7957.js → index-DJmGF2SQ.js} +16 -14
  65. package/components/PrintingSystem/subcomponents/BodyNode/{index.60ad80bd.js → index-DorXm6AO.js} +1 -1
  66. package/components/PrintingSystem/subcomponents/ChartNode/{index.d4aa116e.js → index-Cd9H-_3i.js} +3 -1
  67. package/components/PrintingSystem/subcomponents/DividerNode/{index.142bbf1a.js → index-Dm-RAH_l.js} +1 -1
  68. package/components/PrintingSystem/subcomponents/FooterNode/{index.d16d2c5e.js → index-BPg-NpDf.js} +1 -1
  69. package/components/PrintingSystem/subcomponents/GridNode/{index.044363bf.js → index-u0ZSP6s4.js} +6 -2
  70. package/components/PrintingSystem/subcomponents/HeaderNode/{index.5581a84d.js → index-C7eFFsTN.js} +1 -1
  71. package/components/PrintingSystem/subcomponents/PaperNode/{index.2994c128.js → index-D7M4YL4C.js} +1 -1
  72. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.166d7264.js → index-Drjfhq-n.js} +1 -1
  73. package/components/PrintingSystem/subcomponents/SectionNode/{index.642ab1b7.js → index-Banh4UxX.js} +1 -1
  74. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.d8a2a0af.js → index-OBnZLPEc.js} +1 -1
  75. package/components/PropertyValue/{index.d81eae0a.js → index-Cc7y20oI.js} +7 -5
  76. package/components/Resizeable/{index.df2f3bb8.js → index-BwQ6EKCK.js} +1 -1
  77. package/components/ScrollBar/{index.11feff65.js → index-P3SkjYOy.js} +3 -1
  78. package/components/SideBar/{index.990e8667.js → index-Ddxe1VvL.js} +100 -74
  79. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
  80. package/components/SplitLayout/{index.b247de95.js → index-CwmZT1x6.js} +5 -3
  81. package/components/ToastContainer/{index.c1657bde.js → index-DN3ZHpBT.js} +3 -3
  82. package/components/animate/LoadingScreen/{index.36a63311.js → index-CcjW-mkl.js} +1 -1
  83. package/components/animate/MotionContainer/{index.3032bd8f.js → index-eartnWyO.js} +1 -1
  84. package/components/animate/MotionLazyContainer/{index.d2902a6c.js → index-Be8osTiG.js} +1 -1
  85. package/components/animate/PropagateLoader/{index.a9da8d00.js → index-Bkq8V2SN.js} +1 -1
  86. package/components/animate/{index.ceb7669a.js → index-DsolrzTC.js} +1 -1
  87. package/components/animate/variants/{bounce.784aaaaa.js → bounce-DanQqHAX.js} +3 -1
  88. package/components/animate/variants/{fade.b561c0fc.js → fade-CAOJNn06.js} +3 -1
  89. package/components/areas/components/AreasAdmin/{index.b232384d.js → index-Y6S0Q7TN.js} +21 -19
  90. package/components/areas/components/AreasViewer/{index.d45bfcd2.js → index-DfcpQwSl.js} +67 -64
  91. package/components/areas/contexts/AreasContext/{index.9edd84c3.js → index-spCQnOlk.js} +180 -16
  92. package/components/areas/contexts/AreasContext/types.d.ts +1 -0
  93. package/components/areas/contexts/WindowToolsMFContext/types.d.ts +5 -0
  94. package/components/areas/hooks/index.d.ts +1 -0
  95. package/components/areas/hooks/useAreas/{index.5a57ab76.js → index-D6DaWBIP.js} +2 -3
  96. package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
  97. package/components/areas/hooks/useSetWindowsTitle/index.d.ts +1 -0
  98. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +31 -0
  99. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.d.ts +3 -0
  100. package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
  101. package/components/commercial/AppBarCommercial/{index.b4f6147e.js → index-D1jIOw7M.js} +4 -2
  102. package/components/commercial/SectionCommercial/{index.a250338c.js → index-C9THYik8.js} +4 -2
  103. package/components/commercial/TopBar/{index.4fdd66e5.js → index-DLn3yEcX.js} +13 -11
  104. package/components/commercial/{index.be1af158.js → index-D1bCIF7p.js} +4 -4
  105. package/components/formatters/BooleanFormatter/{index.91435984.js → index-Bc2l6GTX.js} +3 -3
  106. package/components/formatters/DateFormatter/{index.2ef6f261.js → index-CGcRZ8BA.js} +1 -1
  107. package/components/formatters/PointsFormatter/{index.51cd6774.js → index-C7sR8iqk.js} +1 -1
  108. package/components/formatters/PriceFormatter/{index.97f75b4b.js → index-CsvRawmc.js} +1 -1
  109. package/components/formatters/UncertaintyFormatter/{index.c3ffdebc.js → index-B9ESVEVp.js} +4 -4
  110. package/components/formatters/{index.64017cc1.js → index-Botdzyt2.js} +13 -19
  111. package/components/hook-form/HelperError/{index.360f8fb7.js → index-J-C5u9AH.js} +1 -1
  112. package/components/hook-form/RHFAutocomplete/{index.089af1b8.js → index-erpzYu8W.js} +20 -20
  113. package/components/hook-form/RHFAutocompleteAsync/{index.f05b6fe3.js → index-BV0f25eK.js} +5 -3
  114. package/components/hook-form/RHFCheckbox/{index.4cefbad2.js → index-Duf51-pS.js} +53 -46
  115. package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
  116. package/components/hook-form/RHFColorPicker/{index.ed380b30.js → index-C-tITRAx.js} +8 -6
  117. package/components/hook-form/RHFDateTime/{index.118ebe6d.js → index-OdXKdhJS.js} +7 -5
  118. package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +1 -0
  119. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +9 -0
  120. package/components/hook-form/RHFInputNumberSpinner/types.d.ts +21 -0
  121. package/components/hook-form/RHFPeriod/{index.404ba4c6.js → index-CjkIGYUY.js} +6 -4
  122. package/components/hook-form/RHFRadioGroup/{index.591f779d.js → index-Da_2zFu3.js} +1 -1
  123. package/components/hook-form/RHFTextField/index-BWZWPFn5.js +337 -0
  124. package/components/hook-form/RHFUpload/{index.7b7ee732.js → index-D4nrnFFT.js} +10 -8
  125. package/components/maps/components/GpsTools/{index.c1198f79.js → index-DPY-BjB8.js} +102 -32
  126. package/components/maps/components/Map/{index.8c947175.js → index-BRrVIyA-.js} +263 -73
  127. package/components/modal/{WindowBase.00b9e5f1.js → WindowBase-Ce6yRLcN.js} +4 -4
  128. package/components/modal/{WindowConfirm.abf49573.js → WindowConfirm-BaB3Ojgu.js} +8 -7
  129. package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
  130. package/components/mui_extended/Accordion/{index.26524ecd.js → index-D1775s1J.js} +8 -6
  131. package/components/mui_extended/Avatar/{index.e7bcc850.js → index-n5hK7nJD.js} +5 -2
  132. package/components/mui_extended/Badge/{index.48948839.js → index-Dfdw5Iaq.js} +4 -2
  133. package/components/mui_extended/Breadcrumbs/{index.4a44883c.js → index-DTS7rOZH.js} +1 -2
  134. package/components/mui_extended/Button/{index.3d14e3e9.js → index-CksGG1B8.js} +33 -13
  135. package/components/mui_extended/Button/styles.d.ts +1 -1
  136. package/components/mui_extended/{CheckBox.5dc01b37.js → CheckBox-CjxjIrmN.js} +4 -2
  137. package/components/mui_extended/IconButton/{index.7b6c1ee3.js → index-OMq0pPK0.js} +42 -22
  138. package/components/mui_extended/IconButton/types.d.ts +18 -0
  139. package/components/mui_extended/MenuActions/MenuActions.d.ts +5 -0
  140. package/components/mui_extended/MenuActions/constant.d.ts +5 -0
  141. package/components/mui_extended/MenuActions/dictionary.d.ts +7 -0
  142. package/components/mui_extended/MenuActions/index-De7dpdBH.js +202 -0
  143. package/components/mui_extended/MenuActions/index.d.ts +2 -5
  144. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +9 -0
  145. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +24 -0
  146. package/components/mui_extended/MenuActions/slots/index.d.ts +2 -0
  147. package/components/mui_extended/MenuActions/types.d.ts +11 -2
  148. package/components/mui_extended/Pager/{index.b28a2103.js → index-k7SRq6Jo.js} +8 -5
  149. package/components/mui_extended/Popover/{index.a7da93f1.js → index-BnKsmvtw.js} +39 -27
  150. package/components/mui_extended/Stack/{index.99de8138.js → index-C9YEChZB.js} +3 -1
  151. package/components/mui_extended/Tab/{index.5c6a6801.js → index-CpdHav0V.js} +9 -3
  152. package/components/mui_extended/Tabs/styles.d.ts +1 -1
  153. package/components/mui_extended/ToggleButton/{index.86098567.js → index-CS1mz-lH.js} +2 -2
  154. package/components/mui_extended/ToggleIconButton/{index.cbfe1cad.js → index-BNQrQ6-b.js} +3 -2
  155. package/components/mui_extended/Tooltip/{index.49bb5ee1.js → index-B8QUytCK.js} +2 -0
  156. package/components/mui_extended/Typography/{index.8c0801e4.js → index-W88rbpsJ.js} +4 -2
  157. package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
  158. package/components/popups/PopupsViewer/{index.52653047.js → index-Dn0XOI6q.js} +10 -7
  159. package/components/popups/PopupsViewer/slots/{popupsViewerSlots.69dd2614.js → popupsViewerSlots-Db8QAmEE.js} +4 -4
  160. package/contexts/ModalContext/{index.799110fe.js → index-DkUBXDpR.js} +1 -1
  161. package/contexts/RHFormContext/{index.f9d41b99.js → index-Ct48jRjb.js} +3 -1
  162. package/hooks/index.d.ts +1 -0
  163. package/hooks/useFormAddEdit/{index.8947ee59.js → index-BkBJNq8b.js} +2 -2
  164. package/hooks/useInterval/index.d.ts +7 -0
  165. package/hooks/useModal/{index.eb857f6e.js → index-CTAwKk5D.js} +2 -3
  166. package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
  167. package/hooks/useTab/{index.9ad15247.js → index-PXnpiLMx.js} +1 -1
  168. package/index.js +153 -244
  169. package/package.json +1 -1
  170. package/{react-data-grid.c5377916.js → react-data-grid-BfYuZ6AK.js} +59 -110
  171. package/{react-draggable.079122b0.js → react-draggable-DsCPdgQP.js} +238 -57
  172. package/{react-json-view.57125fcf.js → react-json-view-bhqIAaNg.js} +277 -467
  173. package/{react-resizable.330f1499.js → react-resizable-eBbFl2dX.js} +75 -37
  174. package/{react-spinners.342a6578.js → react-spinners-TpKN9lZg.js} +6 -8
  175. package/{react-splitter-layout.8b1655c8.js → react-splitter-layout-C-JTsNGs.js} +14 -23
  176. package/style.css +1 -65
  177. package/styles/{DynamicFilter.0713a406.js → DynamicFilter-CJFsIegc.js} +1 -1
  178. package/styles/MenuActions.styles.d.ts +2 -0
  179. package/styles/{index.db9e7ddb.js → index-C-MsxWtr.js} +90 -25
  180. package/utils/{index.f77cc2ab.js → index-DiMrtgIu.js} +26 -51
  181. package/components/LanguagePopover/index.2a7e40fc.js +0 -168
  182. package/components/hook-form/RHFTextField/index.80b98b98.js +0 -296
  183. package/components/mui_extended/MenuActions/classes/constants.d.ts +0 -1
  184. package/components/mui_extended/MenuActions/classes/index.d.ts +0 -7
  185. package/components/mui_extended/MenuActions/classes/types.d.ts +0 -7
  186. package/components/mui_extended/MenuActions/icons.d.ts +0 -3
  187. package/components/mui_extended/MenuActions/index.11d777bb.js +0 -167
  188. package/components/mui_extended/MenuActions/styles.d.ts +0 -5
  189. /package/{commonjs.565e6834.js → commonjs-BfYxJMv3.js} +0 -0
  190. /package/components/DataGrid/{constants.e334cd50.js → constants-8L7QgBKi.js} +0 -0
  191. /package/components/DynamicFilter/{constants.095f1dbb.js → constants-ByqmFATV.js} +0 -0
  192. /package/components/DynamicFilter/slots/{SlotsEnum.104a03d4.js → SlotsEnum-cawFeNzx.js} +0 -0
  193. /package/components/DynamicFilter/slots/{index.36b12be1.js → index-l0sNRNKZ.js} +0 -0
  194. /package/components/ScrollToTop/{index.e06f98f6.js → index-TxORk5dB.js} +0 -0
  195. /package/components/WrapperComponent/{index.57964195.js → index-BHV-CsDU.js} +0 -0
  196. /package/components/animate/{features.0fbf41e1.js → features-BbnE33u3.js} +0 -0
  197. /package/components/animate/variants/{container.11f82b76.js → container-Dmpr6tg5.js} +0 -0
  198. /package/components/animate/variants/{index.7a912140.js → index-l0sNRNKZ.js} +0 -0
  199. /package/components/animate/variants/{transition.bd46b9ce.js → transition-B9W5SWTa.js} +0 -0
  200. /package/components/areas/components/{index.558684b3.js → index-l0sNRNKZ.js} +0 -0
  201. /package/components/areas/{constants.66529246.js → constants-rqODZNZe.js} +0 -0
  202. /package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index-22c6E7vK.js} +0 -0
  203. /package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index-DkE30fhm.js} +0 -0
  204. /package/components/areas/contexts/{index.24025b97.js → index-l0sNRNKZ.js} +0 -0
  205. /package/components/areas/{dictionary.08cfc4c9.js → dictionary-YUsP9beq.js} +0 -0
  206. /package/components/areas/hooks/{index.d9dc1e21.js → index-l0sNRNKZ.js} +0 -0
  207. /package/components/areas/{icons.01fa3bcc.js → icons-CwFr-alN.js} +0 -0
  208. /package/components/areas/{index.4cc6a221.js → index-B_Odny9h.js} +0 -0
  209. /package/components/hook-form/RHFMultiCheckbox/{index.437e6ba3.js → index-BARudV1A.js} +0 -0
  210. /package/components/hook-form/RHFSelect/{index.c6c60ecc.js → index-LdwRuFz-.js} +0 -0
  211. /package/components/maps/{index.13bb982c.js → index-Ci-7-FHg.js} +0 -0
  212. /package/components/mui_extended/BoxIcon/{index.d61e7ac5.js → index-BUTJ2tKw.js} +0 -0
  213. /package/components/mui_extended/CircularProgress/{index.967e70b7.js → index-Bnnti_G6.js} +0 -0
  214. /package/components/mui_extended/LinearProgress/{index.4092bb69.js → index-CGgW8jq2.js} +0 -0
  215. /package/components/mui_extended/LinkWithRoute/{index.288c51f3.js → index-BC2miUjR.js} +0 -0
  216. /package/components/mui_extended/{index.b606cd9d.js → index-l0sNRNKZ.js} +0 -0
  217. /package/components/popups/PopupsViewer/{constants.29247547.js → constants-DuyD7aCn.js} +0 -0
  218. /package/components/popups/PopupsViewer/{icons.066abd43.js → icons-BUujqqbu.js} +0 -0
  219. /package/components/popups/PopupsViewer/slots/{index.37ef2263.js → index-B98CiRLa.js} +0 -0
  220. /package/components/popups/{index.c5eae682.js → index-l0sNRNKZ.js} +0 -0
  221. /package/hocs/withToggle/{index.548aeace.js → index-C1_DMZD3.js} +0 -0
  222. /package/hooks/useFormReadyForUpdate/{index.f60f500e.js → index-B3HygFCM.js} +0 -0
  223. /package/hooks/useStateRef/{index.538edb89.js → index-C3P6ZK3m.js} +0 -0
  224. /package/test/{constants_no_mock.86c553a9.js → constants_no_mock-CF-669v-.js} +0 -0
  225. /package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId-BaBTWhBr.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { m as modalUtilityClasses } from "./index.81eb6def.js";
2
+ import { m as modalUtilityClasses } from "./index-CydPIpKZ.js";
3
3
  import { useEnvironment } from "@m4l/core";
4
4
  import clsx from "clsx";
5
- import { I as Icon } from "../Icon/index.c06685f4.js";
6
- import { I as IconButton } from "../mui_extended/IconButton/index.7b6c1ee3.js";
7
- import { u as useModal } from "../../hooks/useModal/index.eb857f6e.js";
5
+ import { I as Icon } from "../Icon/index-CueLDD9j.js";
6
+ import { I as IconButton } from "../mui_extended/IconButton/index-OMq0pPK0.js";
7
+ import { u as useModal } from "../../hooks/useModal/index-CTAwKk5D.js";
8
8
  const Header = (props) => {
9
9
  const { title, onClickCancel, urlIcon, classes } = props;
10
10
  const { host_static_assets, environment_assets } = useEnvironment();
@@ -1,13 +1,13 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { A as Actions } from "../CommonActions/components/Actions/index.f674be30.js";
2
+ import { A as Actions } from "../CommonActions/components/Actions/index-ChW1FuFf.js";
3
3
  import { Typography } from "@mui/material";
4
4
  import { useModuleDictionary, useEnvironment } from "@m4l/core";
5
- import { u as useModal } from "../../hooks/useModal/index.eb857f6e.js";
6
- import { I as Image } from "../Image/index.ae542f70.js";
7
- import { m as modalUtilityClasses } from "./index.81eb6def.js";
8
- import { W as WindowBase } from "./WindowBase.00b9e5f1.js";
9
- import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.e67885bc.js";
10
- import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.e58eb0c4.js";
5
+ import { u as useModal } from "../../hooks/useModal/index-CTAwKk5D.js";
6
+ import { I as Image } from "../Image/index-By5vsRzf.js";
7
+ import { m as modalUtilityClasses } from "./index-CydPIpKZ.js";
8
+ import { W as WindowBase } from "./WindowBase-Ce6yRLcN.js";
9
+ import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index-D_42VfUR.js";
10
+ import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index-i5875EXe.js";
11
11
  const dictionary = {
12
12
  MESSAGE: "common_actions.confirm_quit_msg"
13
13
  };
@@ -18,6 +18,7 @@ const MessageIlustration = (props) => {
18
18
  msg = getLabel(dictionary.MESSAGE),
19
19
  classes,
20
20
  title
21
+ // msg = 'Are you sure you want to perform this action? Once complete, the information will be deleted.',
21
22
  } = props;
22
23
  const { host_static_assets, environment_assets } = useEnvironment();
23
24
  const illustrationWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_warning.svg`;
@@ -2,6 +2,7 @@ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
2
  import { unstable_composeClasses } from "@mui/base";
3
3
  const componentName = "M4LModal";
4
4
  generateUtilityClasses(componentName, [
5
+ /* elements */
5
6
  "root",
6
7
  "windowBaseRoot",
7
8
  "containerWindow",
@@ -17,6 +18,7 @@ generateUtilityClasses(componentName, [
17
18
  "windowConfirm",
18
19
  "resizeHandle",
19
20
  "windowContent",
21
+ /* states or variants of elements */
20
22
  "variantDelete",
21
23
  "variantWarning",
22
24
  "variantInfo",
@@ -1,21 +1,23 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses, generateUtilityClass, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
3
- import { I as IconButton } from "../IconButton/index.7b6c1ee3.js";
3
+ import { I as IconButton } from "../IconButton/index-OMq0pPK0.js";
4
4
  import { useEnvironment } from "@m4l/core";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
- import { ax as AccordionRoot } from "../../../styles/index.db9e7ddb.js";
6
+ import { ax as AccordionRoot } from "../../../styles/index-C-MsxWtr.js";
7
7
  import clsx from "clsx";
8
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
9
- import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
10
- import { I as Icon } from "../../Icon/index.c06685f4.js";
11
- import { T as Typography } from "../Typography/index.8c0801e4.js";
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-CueLDD9j.js";
11
+ import { T as Typography } from "../Typography/index-W88rbpsJ.js";
12
12
  const componentName = "M4LAccordion";
13
13
  generateUtilityClasses(componentName, [
14
+ /* elements */
14
15
  "root",
15
16
  "endIcon",
16
17
  "labelIcon",
17
18
  "label",
18
19
  "content"
20
+ /* states or variants of elements */
19
21
  ]);
20
22
  function getAccordionUtilityClass(slot) {
21
23
  return generateUtilityClass(componentName, slot);
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Skeleton, generateUtilityClasses, generateUtilityClass, Avatar as Avatar$1 } from "@mui/material";
4
4
  import { useModuleSkeleton } from "@m4l/core";
5
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
5
+ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
6
6
  import { unstable_composeClasses } from "@mui/base";
7
- import { ay as AvatarRoot } from "../../../styles/index.db9e7ddb.js";
7
+ import { ay as AvatarRoot } from "../../../styles/index-C-MsxWtr.js";
8
8
  import clsx from "clsx";
9
9
  const AVATAR_PREFIX = "M4LAvatar";
10
10
  const getNameAvatarDataTestId = (KEY) => {
@@ -25,8 +25,10 @@ const SkeletonAvatar = (props) => {
25
25
  };
26
26
  const componentName = "M4LAvatar";
27
27
  generateUtilityClasses(componentName, [
28
+ /* elements */
28
29
  "root",
29
30
  "skeleton"
31
+ /* states or variants of elements */
30
32
  ]);
31
33
  function getAvatarUtilityClass(slot) {
32
34
  return generateUtilityClass(componentName, slot);
@@ -42,6 +44,7 @@ const useAvatarUtilityClasses = () => {
42
44
  };
43
45
  };
44
46
  const Avatar = forwardRef(
47
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
45
48
  ({ color = "default", sx, className, ...other }, ref) => {
46
49
  const isSkeleton = useModuleSkeleton();
47
50
  const classes = useAvatarUtilityClasses();
@@ -1,11 +1,13 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses, Badge as Badge$1 } from "@mui/material";
3
3
  import "@mui/base";
4
- import { az as BadgeRoot } from "../../../styles/index.db9e7ddb.js";
5
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
4
+ import { az as BadgeRoot } from "../../../styles/index-C-MsxWtr.js";
5
+ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
6
6
  const componentName = "M4LBadge";
7
7
  const badgeClasses = generateUtilityClasses(componentName, [
8
+ /* elements */
8
9
  "root"
10
+ /* states or variants of elements */
9
11
  ]);
10
12
  const BADGE_PREFIX = "M4LBadge";
11
13
  const getNameBadgeDataTestId = (ELEMENTKEY, ID) => {
@@ -31,8 +31,7 @@ function Breadcrumbs(props) {
31
31
  const { links, activeLast = false, ...other } = props;
32
32
  const { getLabel } = useModuleDictionary();
33
33
  const currentLink = useMemo(() => {
34
- if (links.length === 0)
35
- return "";
34
+ if (links.length === 0) return "";
36
35
  const { dictionaryField } = links[links.length - 1];
37
36
  return getLabel(dictionaryField);
38
37
  }, [getLabel, links]);
@@ -2,18 +2,20 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useModuleSkeleton } from "@m4l/core";
3
3
  import { generateUtilityClasses, generateUtilityClass, Skeleton, IconButton, Tooltip } from "@mui/material";
4
4
  import MuiButton from "@mui/material/Button";
5
- import { aA as ButtonRoot, aB as WrapperImageButton, aC as LoadingButtonRoot } from "../../../styles/index.db9e7ddb.js";
5
+ import { aA as ButtonRoot, aB as WrapperImageButton, aC as LoadingButtonRoot } from "../../../styles/index-C-MsxWtr.js";
6
6
  import { unstable_composeClasses } from "@mui/base";
7
7
  import clsx from "clsx";
8
8
  import { useMemo } from "react";
9
- import { I as Image } from "../../Image/index.ae542f70.js";
10
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
9
+ import { I as Image } from "../../Image/index-By5vsRzf.js";
10
+ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
11
11
  import { LoadingButton as LoadingButton$1 } from "@mui/lab";
12
- import { T as Typography } from "../Typography/index.8c0801e4.js";
12
+ import { T as Typography } from "../Typography/index-W88rbpsJ.js";
13
13
  const componentName$2 = "M4LButton";
14
14
  const buttonClasses = generateUtilityClasses(componentName$2, [
15
+ /* elements */
15
16
  "root",
16
17
  "skeleton",
18
+ /* states or variants of elements */
17
19
  "sizeSmall",
18
20
  "sizeMedium",
19
21
  "variantOutlined",
@@ -23,6 +25,7 @@ const buttonClasses = generateUtilityClasses(componentName$2, [
23
25
  "colorError",
24
26
  "colorSuccess",
25
27
  "colorWarning",
28
+ /**Toggle */
26
29
  "togglePressed",
27
30
  "toggleNotPressed"
28
31
  ]);
@@ -57,6 +60,7 @@ const Button = (props) => {
57
60
  className,
58
61
  disabled,
59
62
  skeletonWidth = "100px",
63
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
60
64
  skeletonHeight = "28px",
61
65
  colorState,
62
66
  ...others
@@ -69,19 +73,33 @@ const Button = (props) => {
69
73
  colorState
70
74
  };
71
75
  const classes = useUtilityClasses$2(ownerState);
72
- return /* @__PURE__ */ jsx(ButtonRoot, { className: clsx(classes.root, className), "data-testid": "ButtonRoot", children: !isSkeleton ? /* @__PURE__ */ jsx(MuiButton, { ...others, variant, size, disableRipple: true, disabled }) : /* @__PURE__ */ jsx(
73
- Skeleton,
74
- {
75
- className: classes.skeleton,
76
- "data-testid": "MuiSkeleton",
77
- variant: "rectangular",
78
- width: skeletonWidth
79
- }
80
- ) });
76
+ return (
77
+ /* ButtonRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los overrides que
78
+ provienen del objeto del tema. Se usa para garantizar de que estos estilos no se propaguen a
79
+ otros componentes de la plataforna web. */
80
+ /* @__PURE__ */ jsx(ButtonRoot, { className: clsx(classes.root, className), "data-testid": "ButtonRoot", children: !isSkeleton ? (
81
+ /* MuiButton: Componente botón proporcionado por la librería externa material ui. */
82
+ /* @__PURE__ */ jsx(MuiButton, { ...others, variant, size, disableRipple: true, disabled })
83
+ ) : (
84
+ /* MuiSkeleton: Componente extendido de mui que se usa para mostrar la versión provisional de elementos en
85
+ la plataforma web. */
86
+ /* @__PURE__ */ jsx(
87
+ Skeleton,
88
+ {
89
+ className: classes.skeleton,
90
+ "data-testid": "MuiSkeleton",
91
+ variant: "rectangular",
92
+ width: skeletonWidth
93
+ }
94
+ )
95
+ ) })
96
+ );
81
97
  };
82
98
  const componentName$1 = "M4LImageButton";
83
99
  generateUtilityClasses(componentName$1, [
100
+ /* elements */
84
101
  "root"
102
+ /* states or variants of elements */
85
103
  ]);
86
104
  function getImageButtonUtilityClass(slot) {
87
105
  return generateUtilityClass(componentName$1, slot);
@@ -125,8 +143,10 @@ const componentName = "M4LLoadingButton";
125
143
  generateUtilityClasses(
126
144
  componentName,
127
145
  [
146
+ /* elements */
128
147
  "root",
129
148
  "skeleton",
149
+ /* states or variants of elements */
130
150
  "sizeSmall",
131
151
  "sizeMedium",
132
152
  "variantOutlined",
@@ -2,4 +2,4 @@
2
2
  export declare const ButtonRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
3
  export declare const SKTButton: import("@emotion/styled").StyledComponent<import("@mui/material").SkeletonOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
4
4
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
5
- }, "style" | "children" | "width" | "className" | "height" | "animation" | "variant" | "sx" | "classes"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
+ }, "style" | "children" | "width" | "className" | "height" | "animation" | "sx" | "classes" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -5,12 +5,14 @@ import { useResponsiveDesktop } from "@m4l/graphics";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import { useModuleSkeleton } from "@m4l/core";
7
7
  import { forwardRef } from "react";
8
- import { aD as CheckBoxRoot } from "../../styles/index.db9e7ddb.js";
9
- import { F as FieldLabel } from "../FieldLabel/index.9a979def.js";
8
+ import { aD as CheckBoxRoot } from "../../styles/index-C-MsxWtr.js";
9
+ import { F as FieldLabel } from "../FieldLabel/index-DCAMDJoJ.js";
10
10
  const COMPONENT_CLASS_NAME = "M4LCheckBox";
11
11
  generateUtilityClasses(COMPONENT_CLASS_NAME, [
12
+ /* elements */
12
13
  "root",
13
14
  "skeleton",
15
+ /* states or variants of elements */
14
16
  "small",
15
17
  "medium",
16
18
  "stateDisabled"
@@ -2,8 +2,8 @@ import { jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useMemo, useState } from "react";
3
3
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
4
4
  import { Skeleton, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
5
- import { I as Icon } from "../../Icon/index.c06685f4.js";
6
- import { aE as IconButtonRoot } from "../../../styles/index.db9e7ddb.js";
5
+ import { I as Icon } from "../../Icon/index-CueLDD9j.js";
6
+ import { aE as IconButtonRoot } from "../../../styles/index-C-MsxWtr.js";
7
7
  import { unstable_composeClasses } from "@mui/base";
8
8
  import clsx from "clsx";
9
9
  import { useResponsiveDesktop } from "@m4l/graphics";
@@ -20,8 +20,10 @@ const SkeletonIconButton = (props) => {
20
20
  };
21
21
  const componentName = "M4LIconButton";
22
22
  const iconButtonClasses = generateUtilityClasses(componentName, [
23
+ /* elements */
23
24
  "root",
24
25
  "skeleton",
26
+ /* states or variants of elements */
25
27
  "sizemSall",
26
28
  "sizeMedium",
27
29
  "variantPrimary",
@@ -29,6 +31,7 @@ const iconButtonClasses = generateUtilityClasses(componentName, [
29
31
  "variantLine",
30
32
  "isFocus",
31
33
  "isDisabled",
34
+ /**Toggle */
32
35
  "togglePressed",
33
36
  "toggleNotPressed"
34
37
  ]);
@@ -82,7 +85,10 @@ const IconButton = (props) => {
82
85
  }
83
86
  return void 0;
84
87
  }, [tooltip, dictionaryTooltipId, getLabel, disabled]);
85
- const [isfocus] = useState(false);
88
+ const [
89
+ isfocus
90
+ /* setIsFocus */
91
+ ] = useState(false);
86
92
  const ownerState = {
87
93
  variant,
88
94
  size: isDesktop ? size : "medium",
@@ -91,25 +97,39 @@ const IconButton = (props) => {
91
97
  isDisabled: disabled
92
98
  };
93
99
  const classes = useUtilityClasses(ownerState);
94
- return /* @__PURE__ */ jsx(IconButtonRoot, { className: clsx(classes.root, className), "data-testid": "IconButtonRoot", children: !isSkeleton ? /* @__PURE__ */ jsx(Fragment, { children: finalTooltip ? /* @__PURE__ */ jsx(Tooltip, { title: finalTooltip || "", children: /* @__PURE__ */ jsx(
95
- IconButton$1,
96
- {
97
- ...other,
98
- onClick,
99
- disableRipple: true,
100
- disabled,
101
- children: /* @__PURE__ */ jsx(Icon, { src, size })
102
- }
103
- ) }) : /* @__PURE__ */ jsx(
104
- IconButton$1,
105
- {
106
- ...other,
107
- onClick,
108
- disableRipple: true,
109
- disabled,
110
- children: /* @__PURE__ */ jsx(Icon, { src, size: isDesktop ? size : "medium", rotationAngle })
111
- }
112
- ) }) : /* @__PURE__ */ jsx(SkeletonIconButton, { classes }) });
100
+ return (
101
+ /* IconButtonRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los overrides que
102
+ provienen del objeto del tema. Se usa para garantizar de que estos estilos no se propaguen a
103
+ otros componentes de la plataforna web. */
104
+ /* @__PURE__ */ jsx(IconButtonRoot, { className: clsx(classes.root, className), "data-testid": "IconButtonRoot", children: !isSkeleton ? (
105
+ // eslint-disable-next-line react/jsx-no-useless-fragment
106
+ /* @__PURE__ */ jsx(Fragment, { children: finalTooltip ? (
107
+ /* Este bloque corresponde al caso en el que requiera tooltip en el componente. */
108
+ /* @__PURE__ */ jsx(Tooltip, { title: finalTooltip || "", children: /* @__PURE__ */ jsx(
109
+ IconButton$1,
110
+ {
111
+ ...other,
112
+ onClick,
113
+ disableRipple: true,
114
+ disabled,
115
+ children: /* @__PURE__ */ jsx(Icon, { src, size })
116
+ }
117
+ ) })
118
+ ) : (
119
+ /* Este bloque corresponde al caso en que solo se rquiera cargar el botón con icono. */
120
+ /* @__PURE__ */ jsx(
121
+ IconButton$1,
122
+ {
123
+ ...other,
124
+ onClick,
125
+ disableRipple: true,
126
+ disabled,
127
+ children: /* @__PURE__ */ jsx(Icon, { src, size: isDesktop ? size : "medium", rotationAngle })
128
+ }
129
+ )
130
+ ) })
131
+ ) : /* @__PURE__ */ jsx(SkeletonIconButton, { classes }) })
132
+ );
113
133
  };
114
134
  export {
115
135
  IconButton as I,
@@ -1,3 +1,5 @@
1
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
+ import { Theme } from '@mui/material/styles';
1
3
  import { IconProps } from '../../Icon/types';
2
4
  import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
3
5
  export declare type IconButtonVariants = 'primary' | 'secondary' | 'line';
@@ -15,3 +17,19 @@ export interface OwnerState {
15
17
  isFocus: boolean;
16
18
  isDisabled?: boolean;
17
19
  }
20
+ export declare enum IconButtonSlots {
21
+ root = "root",
22
+ skeleton = "skeleton",
23
+ sizemSall = "sizemSall",
24
+ sizeMedium = "sizeMedium",
25
+ variantPrimary = "variantPrimary",
26
+ variantSecondary = "variantSecondary",
27
+ variantLine = "variantLine",
28
+ isFocus = "isFocus",
29
+ isDisabled = "isDisabled",
30
+ /**Toggle */
31
+ togglePressed = "togglePressed",
32
+ toggleNotPressed = "toggleNotPressed"
33
+ }
34
+ export declare type IconButtonSlotsType = keyof typeof IconButtonSlots;
35
+ export declare type IconButtonStyles = Partial<OverridesStyleRules<IconButtonSlotsType, 'M4LIconButton', Theme> | undefined> | undefined;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { MenuActionsProps } from './types';
3
+ export declare function MenuActions(props: MenuActionsProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare const MemonizedMenuActions: React.MemoExoticComponent<typeof MenuActions>;
5
+ export default MenuActions;
@@ -0,0 +1,5 @@
1
+ export declare const ICON_PATH = "frontend/components/menu_actions/assets/icons";
2
+ export declare const ICONS: {
3
+ MENU: string;
4
+ };
5
+ export declare const MENU_ACTIONS_KEY_COMPONENT = "M4LMenuActions";
@@ -0,0 +1,7 @@
1
+ export declare const MENU_ACTIONS_DICTIONARY_ID = "menu_actions";
2
+ export declare function getMenuActionsComponentsDictionary(): string[];
3
+ export declare const DICTIONARY: {
4
+ readonly no_actions_label: "no_actions_label";
5
+ };
6
+ export declare type TypeDictionary = typeof DICTIONARY;
7
+ export declare const getMenuActionsDictionary: (key: keyof TypeDictionary) => string;
@@ -0,0 +1,202 @@
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import React__default, { useState, useEffect, useMemo } from "react";
3
+ import { styled, useTheme } from "@mui/material/styles";
4
+ import { useEnvironment, useModuleDictionary } from "@m4l/core";
5
+ import { MenuItem } from "@mui/material";
6
+ import { aF as menuActionsStyles } from "../../../styles/index-C-MsxWtr.js";
7
+ import { P as Popover } from "../Popover/index-BnKsmvtw.js";
8
+ import { B as Badge } from "../Badge/index-Dfdw5Iaq.js";
9
+ import { I as IconButton } from "../IconButton/index-OMq0pPK0.js";
10
+ import { I as Icon } from "../../Icon/index-CueLDD9j.js";
11
+ const ICON_PATH = "frontend/components/menu_actions/assets/icons";
12
+ const ICONS = {
13
+ MENU: "menu.svg"
14
+ };
15
+ const MENU_ACTIONS_KEY_COMPONENT = "M4LMenuActions";
16
+ var MenuActionsSlots = /* @__PURE__ */ ((MenuActionsSlots2) => {
17
+ MenuActionsSlots2["root"] = "root";
18
+ MenuActionsSlots2["badge"] = "badge";
19
+ MenuActionsSlots2["iconButton"] = "iconButton";
20
+ MenuActionsSlots2["menuItem"] = "menuItem";
21
+ MenuActionsSlots2["menuItemIcon"] = "menuItemIcon";
22
+ MenuActionsSlots2["menuItemLabel"] = "menuItemLabel";
23
+ MenuActionsSlots2["labelEmpty"] = "labelEmpty";
24
+ return MenuActionsSlots2;
25
+ })(MenuActionsSlots || {});
26
+ const RootStyled = styled(Popover, {
27
+ name: MENU_ACTIONS_KEY_COMPONENT,
28
+ slot: MenuActionsSlots.root
29
+ })(menuActionsStyles?.root);
30
+ const BadgeStyled = styled(Badge, {
31
+ name: MENU_ACTIONS_KEY_COMPONENT,
32
+ slot: MenuActionsSlots.badge
33
+ })(menuActionsStyles?.badge);
34
+ const IconButtonStyled = styled(IconButton, {
35
+ name: MENU_ACTIONS_KEY_COMPONENT,
36
+ slot: MenuActionsSlots.iconButton
37
+ })(menuActionsStyles?.iconButton);
38
+ const MenuItemStyled = styled(MenuItem, {
39
+ name: MENU_ACTIONS_KEY_COMPONENT,
40
+ slot: MenuActionsSlots.menuItem
41
+ })(menuActionsStyles?.menuItem);
42
+ const LabelMenuItemStyled = styled("div", {
43
+ name: MENU_ACTIONS_KEY_COMPONENT,
44
+ slot: MenuActionsSlots.menuItemLabel
45
+ })(menuActionsStyles?.menuItemLabel);
46
+ const IconButtonUrlStyled = styled(Icon, {
47
+ name: MENU_ACTIONS_KEY_COMPONENT,
48
+ slot: MenuActionsSlots.menuItemIcon
49
+ })(menuActionsStyles?.menuItemIcon);
50
+ const LabelEmptyStyled = styled("div", {
51
+ name: MENU_ACTIONS_KEY_COMPONENT,
52
+ slot: MenuActionsSlots.labelEmpty
53
+ })(menuActionsStyles?.labelEmpty);
54
+ const MENU_ACTIONS_DICTIONARY_ID = "menu_actions";
55
+ const DICTIONARY = {
56
+ no_actions_label: "no_actions_label"
57
+ };
58
+ const getMenuActionsDictionary = (key) => {
59
+ return `${MENU_ACTIONS_DICTIONARY_ID}.${key}`;
60
+ };
61
+ function MenuActions(props) {
62
+ const {
63
+ menuActions,
64
+ endListElement,
65
+ menuActionSx,
66
+ iconButtonClassName = "",
67
+ objItem = {},
68
+ urlIcon,
69
+ toolTip = "",
70
+ marginTop = -1,
71
+ marginBottom,
72
+ marginLeft,
73
+ marginRight,
74
+ width = 200,
75
+ withBadge = false,
76
+ badgeContent,
77
+ arrowType = "right-top",
78
+ externalOpen = null,
79
+ externalClose,
80
+ ...other
81
+ } = props;
82
+ const { host_static_assets, environment_assets } = useEnvironment();
83
+ const { getLabel } = useModuleDictionary();
84
+ const [open, setOpen] = useState(null);
85
+ const handleOpen = (event) => {
86
+ setOpen(event.currentTarget);
87
+ };
88
+ const theme = useTheme();
89
+ useEffect(() => {
90
+ let mounted = true;
91
+ if (mounted) {
92
+ setOpen(externalOpen);
93
+ }
94
+ return function cleanUp() {
95
+ mounted = false;
96
+ };
97
+ }, [externalOpen]);
98
+ const urlFinalIcon = useMemo(() => {
99
+ if (urlIcon) return urlIcon;
100
+ return `${host_static_assets}/${environment_assets}/${ICON_PATH}/${ICONS.MENU}`;
101
+ }, [urlIcon, host_static_assets, environment_assets]);
102
+ const handleClose = (e) => {
103
+ e.stopPropagation();
104
+ setOpen(null);
105
+ externalClose && externalClose(null);
106
+ };
107
+ const handleClick = (e, menuAction) => {
108
+ e.stopPropagation();
109
+ setOpen(null);
110
+ menuAction.onClick();
111
+ };
112
+ const finalActions = useMemo(() => {
113
+ let ret;
114
+ if (typeof menuActions !== "function") {
115
+ ret = menuActions;
116
+ } else {
117
+ ret = menuActions(objItem);
118
+ }
119
+ return ret;
120
+ }, [menuActions, objItem]);
121
+ const IconButtonElement = (
122
+ // eslint-disable-next-line react/jsx-no-useless-fragment
123
+ /* @__PURE__ */ jsx(Fragment, { children: withBadge ? /* @__PURE__ */ jsx(BadgeStyled, { ownerState: {}, badgeContent, children: /* @__PURE__ */ jsx(
124
+ IconButtonStyled,
125
+ {
126
+ ownerState: {},
127
+ src: urlFinalIcon,
128
+ onClick: handleOpen,
129
+ tooltip: toolTip,
130
+ className: iconButtonClassName
131
+ }
132
+ ) }) : /* @__PURE__ */ jsx(
133
+ IconButtonStyled,
134
+ {
135
+ ownerState: {},
136
+ src: urlFinalIcon,
137
+ onClick: handleOpen,
138
+ tooltip: toolTip,
139
+ className: iconButtonClassName
140
+ }
141
+ ) })
142
+ );
143
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
144
+ IconButtonElement,
145
+ /* @__PURE__ */ jsxs(
146
+ RootStyled,
147
+ {
148
+ ownerState: {},
149
+ id: "Popover",
150
+ open: Boolean(open),
151
+ anchorEl: open,
152
+ onClose: handleClose,
153
+ arrowType,
154
+ sx: {
155
+ marginTop,
156
+ marginBottom,
157
+ marginLeft,
158
+ marginRight,
159
+ width,
160
+ maxWidth: 300,
161
+ "& .MuiMenuItem-root": { px: 1, typography: "body2", borderRadius: 0.75 },
162
+ ...theme.components?.M4LMenuActions?.styleOverrides,
163
+ ...menuActionSx
164
+ },
165
+ ...other,
166
+ children: [
167
+ finalActions.map(
168
+ (menuAction, index) => menuAction.label || menuAction.dictionaryId ? /* @__PURE__ */ jsxs(
169
+ MenuItemStyled,
170
+ {
171
+ dense: true,
172
+ onClick: (e) => {
173
+ handleClick(e, menuAction);
174
+ },
175
+ sx: { color: menuAction.color ?? "text.main" },
176
+ disabled: menuAction.disabled,
177
+ ownerState: { variant: menuAction.variant, color: menuAction.color },
178
+ children: [
179
+ menuAction.urlIcon ? /* @__PURE__ */ jsx(
180
+ IconButtonUrlStyled,
181
+ {
182
+ ownerState: { variant: menuAction.variant },
183
+ src: menuAction.urlIcon
184
+ }
185
+ ) : null,
186
+ /* @__PURE__ */ jsx(LabelMenuItemStyled, { ownerState: {}, children: menuAction.label || menuAction.dictionaryId && getLabel(menuAction.dictionaryId) })
187
+ ]
188
+ },
189
+ `menu_action_${index}`
190
+ ) : /* @__PURE__ */ jsx(LabelEmptyStyled, { ownerState: {}, children: getLabel(getMenuActionsDictionary(DICTIONARY.no_actions_label)) }, `menu_action_${index}`)
191
+ ),
192
+ endListElement ? endListElement : null
193
+ ]
194
+ }
195
+ )
196
+ ] });
197
+ }
198
+ const MemonizedMenuActions = React__default.memo(MenuActions);
199
+ export {
200
+ MenuActions as M,
201
+ MemonizedMenuActions as a
202
+ };
@@ -1,5 +1,2 @@
1
- import React from 'react';
2
- import { MenuActionsProps } from './types';
3
- export declare function MenuActions(props: MenuActionsProps): import("react/jsx-runtime").JSX.Element;
4
- export declare const MemonizedMenuActions: React.MemoExoticComponent<typeof MenuActions>;
5
- export default MenuActions;
1
+ export * from './MenuActions';
2
+ export { getMenuActionsComponentsDictionary } from './dictionary';
@@ -0,0 +1,9 @@
1
+ export declare enum MenuActionsSlots {
2
+ root = "root",
3
+ badge = "badge",
4
+ iconButton = "iconButton",
5
+ menuItem = "menuItem",
6
+ menuItemIcon = "menuItemIcon",
7
+ menuItemLabel = "menuItemLabel",
8
+ labelEmpty = "labelEmpty"
9
+ }