@m4l/components 2.0.7 → 3.0.1

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 (227) hide show
  1. package/@types/export.d.ts +0 -3
  2. package/@types/types.d.ts +11 -1
  3. package/components/AccountPopover/{index.a5747746.js → index-BJWLsxYq.js} +7 -5
  4. package/components/AppBar/{index.2d458607.js → index-BdA-qQyV.js} +7 -5
  5. package/components/BaseModule/{index.3f266927.js → index-Bl0GPyrz.js} +1 -1
  6. package/components/CommonActions/components/ActionCancel/{index.c1185f46.js → index-BlaMdPmp.js} +2 -2
  7. package/components/CommonActions/components/ActionFormCancel/{index.7f76a6ba.js → index-C5ZI4ZPP.js} +5 -5
  8. package/components/CommonActions/components/ActionFormIntro/{index.8a23ec62.js → index-BbVMcr05.js} +2 -2
  9. package/components/CommonActions/components/ActionIntro/{index.185199da.js → index-DGooFqVu.js} +3 -3
  10. package/components/CommonActions/components/Actions/{index.ea4c273b.js → index-B_vOmNZT.js} +5 -3
  11. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.0739f098.js → index-0wqcK8ML.js} +1 -1
  12. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d524f74c.js → index-Ozdfjlt2.js} +1 -1
  13. package/components/DataGrid/formatters/ColumnDateFormatter/{index.e00d0cf2.js → index-CKg8CJ6A.js} +1 -1
  14. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.addc6664.js → index-D-98uXfl.js} +1 -1
  15. package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.880e743b.js → index-BslXGK-A.js} +1 -1
  16. package/components/DataGrid/formatters/ColumnPointsFormatter/{index.ab152484.js → index-BXGW2CsK.js} +1 -1
  17. package/components/DataGrid/formatters/ColumnPriceFormatter/{index.bf9d9e60.js → index-O11tBykn.js} +1 -1
  18. package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.4045b2f2.js → index-BaCawLr1.js} +1 -1
  19. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.a87302d1.js → index-Cq7a-jnE.js} +1 -1
  20. package/components/DataGrid/formatters/{index.ee269cae.js → index-B5SJg0Qq.js} +2 -2
  21. package/components/DataGrid/{index.1feaab04.js → index-7vJWvQtu.js} +33 -26
  22. package/components/DataGrid/subcomponents/Actions/{index.06306495.js → index-C-p5O-cU.js} +22 -26
  23. package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
  24. package/components/DragResizeWindow/{index.44fad985.js → index-D2jLYExo.js} +25 -6
  25. package/components/DynamicFilter/{dictionary.a55d5bc2.js → dictionary-DbRGLe8j.js} +2 -2
  26. package/components/DynamicFilter/{index.2033e755.js → index-D2CmPq_i.js} +7 -8
  27. package/components/DynamicFilter/slots/{dynamicFilterSlots.3ef5ec21.js → dynamicFilterSlots-BSCWv_Rw.js} +8 -8
  28. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
  29. package/components/DynamicFilter/store/{index.3cc06678.js → index-BcaPHLdk.js} +3 -3
  30. package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.db29f2ff.js → index-BZAxYAp1.js} +3 -3
  31. package/components/DynamicFilter/subcomponents/AppliedFilters/{index.2de720bc.js → index-DIFUGgys.js} +4 -4
  32. package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.7a9d4d33.js → index-D5BGKd5r.js} +8 -8
  33. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.a4269ba3.js → index-DFHDm1e4.js} +4 -3
  34. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.ebb6606c.js → index-Hn2Rzovd.js} +10 -9
  35. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.cd343ba0.js → index-B5F1Ji7m.js} +5 -4
  36. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.b5c31620.js → index-BQlxIk_N.js} +6 -6
  37. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.4c42f140.js → index-DF7EGeSx.js} +5 -4
  38. package/components/DynamicFilter/subcomponents/FieldTypes/{index.3e15fc1c.js → index-B6WQUIl7.js} +5 -5
  39. package/components/DynamicFilter/subcomponents/FilterActions/{index.0d687448.js → index-D5edNMdo.js} +3 -3
  40. package/components/DynamicFilter/subcomponents/InputFilter/{index.4c5bb297.js → index-bbdBrHj0.js} +33 -13
  41. package/components/DynamicFilter/subcomponents/PopoverFilter/{index.6c8c52ae.js → index-CD3aGB5S.js} +7 -6
  42. package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.9cf2bc44.js → index-MiYNpAu0.js} +2 -2
  43. package/components/DynamicFilter/types.d.ts +1 -1
  44. package/components/FieldLabel/{index.972f989e.js → index-BpW2AGJx.js} +6 -4
  45. package/components/GridLayout/{index.2b9bc85c.js → index-HK_hTGnZ.js} +51 -72
  46. package/components/GridLayout/subcomponents/Griditem/{index.684c3f3c.js → index-izY8S7ns.js} +11 -13
  47. package/components/GridLayout/subcomponents/Responsive/{index.dc0a1ce0.js → index-bpKDnaCd.js} +7 -7
  48. package/components/GridLayout/subcomponents/SizeProvider/{index.15d0ca85.js → index-OWN-RzRq.js} +15 -9
  49. package/components/HelperText/{index.2f4c6655.js → index-COWCXeJp.js} +10 -3
  50. package/components/Icon/{index.0f315ccd.js → index-CedboS6y.js} +9 -4
  51. package/components/Image/{index.32b58ce4.js → index-B7FhR9uF.js} +40 -31
  52. package/components/LanguagePopover/index-4kPWKmxk.js +179 -0
  53. package/components/LinearProgressIndeterminate/{index.6d1605ff.js → index-Do7CKcow.js} +5 -3
  54. package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
  55. package/components/LoadingError/{index.c5a70390.js → index-CNh7b1ew.js} +8 -6
  56. package/components/MFIsolationApp/constants.d.ts +1 -0
  57. package/components/MFIsolationApp/{index.56a12cde.js → index-DJ-MUHoQ.js} +48 -46
  58. package/components/MFLoader/{index.cc350d72.js → index-Bcg9TXnJ.js} +36 -15
  59. package/components/ModalDialog/{index.580a88dc.js → index-BuGRs967.js} +6 -6
  60. package/components/NavLink/{index.c6fd316b.js → index-B6Gmzyl0.js} +5 -3
  61. package/components/NoItemSelected/{index.7274cdb1.js → index-CMet73v_.js} +3 -1
  62. package/components/ObjectLogs/{index.1b51e5f2.js → index-_8l1PbEQ.js} +19 -12
  63. package/components/PDFViewer/{index.eed9494a.js → index-CV9x1XKR.js} +4 -2
  64. package/components/Page/{index.f6884847.js → index-DKQLs5le.js} +11 -8
  65. package/components/PaperForm/{index.86c1f1d6.js → index-DciWfnML.js} +4 -2
  66. package/components/Period/{index.5757802b.js → index-DxijnNw6.js} +20 -31
  67. package/components/PrintingSystem/{index.47e0ce83.js → index-sSZkZbrr.js} +16 -14
  68. package/components/PrintingSystem/subcomponents/BodyNode/{index.d58660a8.js → index-CxYjxWxL.js} +1 -1
  69. package/components/PrintingSystem/subcomponents/ChartNode/{index.8e010873.js → index-D85qi4Qz.js} +3 -1
  70. package/components/PrintingSystem/subcomponents/DividerNode/{index.13330f51.js → index-BA-IYLWh.js} +1 -1
  71. package/components/PrintingSystem/subcomponents/FooterNode/{index.05da3e1d.js → index-Bn9eNtAi.js} +1 -1
  72. package/components/PrintingSystem/subcomponents/GridNode/{index.d68b5460.js → index-gNEGVptD.js} +6 -2
  73. package/components/PrintingSystem/subcomponents/HeaderNode/{index.0ed11227.js → index-CiVr-jBF.js} +1 -1
  74. package/components/PrintingSystem/subcomponents/PaperNode/{index.0a0227e4.js → index-BGbvh0Xk.js} +1 -1
  75. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.18931b6e.js → index-DvhbyOo3.js} +1 -1
  76. package/components/PrintingSystem/subcomponents/SectionNode/{index.e80cce87.js → index-Cw8ZUwsm.js} +1 -1
  77. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.7fc92f43.js → index-l9SFQ11V.js} +1 -1
  78. package/components/PropertyValue/{index.ee9cf342.js → index-hcXIE6qk.js} +7 -5
  79. package/components/Resizeable/{index.0ffd46bc.js → index-ObbOlXFx.js} +1 -1
  80. package/components/ScrollBar/{index.45b8db89.js → index-BpTjE7o3.js} +3 -1
  81. package/components/SideBar/{index.50868466.js → index-Cg1bZn8y.js} +100 -74
  82. package/components/SplitLayout/{index.c2b8dcb8.js → index-CYnKlhi5.js} +5 -3
  83. package/components/ToastContainer/ToastContainer.d.ts +1 -1
  84. package/components/ToastContainer/constants.d.ts +3 -0
  85. package/components/ToastContainer/helpers/toaster.d.ts +4 -0
  86. package/components/ToastContainer/icons.d.ts +9 -0
  87. package/components/ToastContainer/index-B5VGIn45.js +191 -0
  88. package/components/ToastContainer/index.d.ts +1 -0
  89. package/components/ToastContainer/slots/ToastContainerEnum.d.ts +13 -0
  90. package/components/ToastContainer/slots/index.d.ts +2 -0
  91. package/components/ToastContainer/slots/toastContainerSlots.d.ts +34 -0
  92. package/components/ToastContainer/subcomponents/ToastMessage/ToastMessage.d.ts +2 -0
  93. package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +1 -2
  94. package/components/ToastContainer/types.d.ts +39 -3
  95. package/components/animate/LoadingScreen/{index.31af02f8.js → index-CzDq3A0i.js} +1 -1
  96. package/components/animate/MotionContainer/{index.3032bd8f.js → index-eartnWyO.js} +1 -1
  97. package/components/animate/MotionLazyContainer/{index.d2902a6c.js → index-Be8osTiG.js} +1 -1
  98. package/components/animate/PropagateLoader/{index.a9da8d00.js → index-Bkq8V2SN.js} +1 -1
  99. package/components/animate/{index.160607f3.js → index-mH4o-crX.js} +1 -1
  100. package/components/animate/variants/{bounce.784aaaaa.js → bounce-DanQqHAX.js} +3 -1
  101. package/components/animate/variants/{fade.b561c0fc.js → fade-CAOJNn06.js} +3 -1
  102. package/components/areas/components/AreasAdmin/{index.cb60f940.js → index-qqSduaty.js} +21 -19
  103. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  104. package/components/areas/components/AreasViewer/classes/types.d.ts +0 -8
  105. package/components/areas/components/AreasViewer/{index.350ee032.js → index-D5If8gFK.js} +38 -105
  106. package/components/areas/contexts/AreasContext/helper.d.ts +2 -5
  107. package/components/areas/contexts/AreasContext/{index.1a5c5df1.js → index-Dyj8tCdG.js} +175 -130
  108. package/components/areas/contexts/AreasContext/types.d.ts +1 -4
  109. package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
  110. package/components/areas/hooks/useAreas/{index.ba948f80.js → index-o0DvT3xZ.js} +2 -3
  111. package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
  112. package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
  113. package/components/areas/{icons.8266ccc8.js → icons-CwFr-alN.js} +0 -2
  114. package/components/areas/icons.d.ts +0 -2
  115. package/components/areas/index.d.ts +1 -1
  116. package/components/areas/types.d.ts +0 -40
  117. package/components/commercial/AppBarCommercial/{index.cdc42f41.js → index-DvigwCQP.js} +4 -2
  118. package/components/commercial/SectionCommercial/{index.a9265d42.js → index-CLHGooDg.js} +4 -2
  119. package/components/commercial/TopBar/{index.06c1e138.js → index-DJNYXgHq.js} +13 -11
  120. package/components/commercial/{index.163293c3.js → index-BLUHQfcA.js} +4 -4
  121. package/components/formatters/BooleanFormatter/{index.b224ae9b.js → index-DpF0x_xp.js} +3 -3
  122. package/components/formatters/DateFormatter/{index.2ef6f261.js → index-CGcRZ8BA.js} +1 -1
  123. package/components/formatters/PointsFormatter/{index.51cd6774.js → index-C7sR8iqk.js} +1 -1
  124. package/components/formatters/PriceFormatter/{index.97f75b4b.js → index-CsvRawmc.js} +1 -1
  125. package/components/formatters/UncertaintyFormatter/{index.c3ffdebc.js → index-B9ESVEVp.js} +4 -4
  126. package/components/formatters/{index.373a6ce1.js → index-CDt8LzvL.js} +13 -19
  127. package/components/hook-form/HelperError/{index.399e7338.js → index-D-_czK9n.js} +1 -1
  128. package/components/hook-form/RHFAutocomplete/{index.0d32fed5.js → index-BhbgwNUz.js} +20 -20
  129. package/components/hook-form/RHFAutocompleteAsync/{index.2622450c.js → index-BnUgdSnR.js} +5 -3
  130. package/components/hook-form/RHFCheckbox/{index.3229f16c.js → index-ubHFuH1F.js} +53 -46
  131. package/components/hook-form/RHFColorPicker/{index.86525787.js → index-DBpi0Zhe.js} +8 -6
  132. package/components/hook-form/RHFDateTime/{index.572079c5.js → index-BtfOlX4T.js} +7 -5
  133. package/components/hook-form/RHFPeriod/{index.1883d9f6.js → index-BicAIry0.js} +6 -4
  134. package/components/hook-form/RHFRadioGroup/{index.9eea0df1.js → index-Di37rp0B.js} +1 -1
  135. package/components/hook-form/RHFTextField/index-Cz7BMTLe.js +337 -0
  136. package/components/hook-form/RHFUpload/{index.cf63abf0.js → index-D52JNxDh.js} +10 -8
  137. package/components/maps/components/GpsTools/{index.7628172f.js → index-BP1dIwh6.js} +104 -34
  138. package/components/maps/components/Map/{index.df953487.js → index-CS6xr1Fl.js} +263 -73
  139. package/components/modal/{WindowBase.cb284225.js → WindowBase-CLBER1xc.js} +4 -4
  140. package/components/modal/{WindowConfirm.193cc75e.js → WindowConfirm-DraflAKP.js} +8 -7
  141. package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
  142. package/components/mui_extended/Accordion/{index.49007a43.js → index-ZFpEUCnw.js} +8 -6
  143. package/components/mui_extended/Avatar/{index.a2e1ca6d.js → index-Bk4Hq2nk.js} +5 -2
  144. package/components/mui_extended/Badge/{index.188ffbb4.js → index-D6F1o3k2.js} +4 -2
  145. package/components/mui_extended/Breadcrumbs/{index.4a44883c.js → index-DTS7rOZH.js} +1 -2
  146. package/components/mui_extended/Button/{index.ca15c36e.js → index-DlzpoczE.js} +33 -13
  147. package/components/mui_extended/{CheckBox.983e10e6.js → CheckBox-ByxYagHV.js} +4 -2
  148. package/components/mui_extended/IconButton/{index.caf17392.js → index-BfDbi0cC.js} +42 -22
  149. package/components/mui_extended/MenuActions/{index.c24bd476.js → index-CUz70BPj.js} +28 -24
  150. package/components/mui_extended/Pager/{index.f27033fc.js → index-CRgYDkV8.js} +8 -5
  151. package/components/mui_extended/Popover/{index.1fafd106.js → index-C6_2t4L1.js} +39 -27
  152. package/components/mui_extended/Stack/{index.b8c3b40b.js → index-CV2W-_eL.js} +3 -1
  153. package/components/mui_extended/Tab/{index.c2dca6dd.js → index-PyZxxeDt.js} +9 -3
  154. package/components/mui_extended/ToggleButton/{index.4b6f9c8e.js → index-X6htsgfF.js} +2 -2
  155. package/components/mui_extended/ToggleIconButton/{index.0513d9e6.js → index-mT-xXWg9.js} +3 -2
  156. package/components/mui_extended/Tooltip/{index.49bb5ee1.js → index-B8QUytCK.js} +2 -0
  157. package/components/mui_extended/Typography/{index.61dd3fc6.js → index-DKPqV11f.js} +4 -2
  158. package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
  159. package/components/popups/PopupsViewer/{index.c6a0c277.js → index-D8iTb2JJ.js} +10 -7
  160. package/components/popups/PopupsViewer/slots/{popupsViewerSlots.0b92fc90.js → popupsViewerSlots-DEQAZ8fq.js} +4 -4
  161. package/contexts/ModalContext/{index.50cc9ba8.js → index-CMPcjPCy.js} +1 -1
  162. package/contexts/RHFormContext/{index.acc30d9b.js → index-B4a0h0fX.js} +3 -1
  163. package/hooks/useFormAddEdit/{index.daf5d0c8.js → index-DvRNtaub.js} +2 -2
  164. package/hooks/useModal/{index.6f5c238d.js → index-C9r1LQIz.js} +2 -3
  165. package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
  166. package/hooks/useTab/{index.8c6646a4.js → index-DTbLh_DH.js} +1 -1
  167. package/index.js +149 -259
  168. package/package.json +2 -2
  169. package/{react-data-grid.c5377916.js → react-data-grid-BfYuZ6AK.js} +59 -110
  170. package/{react-draggable.df62ccbd.js → react-draggable-DsCPdgQP.js} +238 -57
  171. package/{react-json-view.57125fcf.js → react-json-view-bhqIAaNg.js} +277 -467
  172. package/{react-resizable.c746880c.js → react-resizable-eBbFl2dX.js} +75 -37
  173. package/{react-spinners.342a6578.js → react-spinners-TpKN9lZg.js} +6 -8
  174. package/{react-splitter-layout.8b1655c8.js → react-splitter-layout-C-JTsNGs.js} +14 -23
  175. package/style.css +1 -65
  176. package/styles/{DynamicFilter.f317726e.js → DynamicFilter-CJFsIegc.js} +1 -1
  177. package/styles/ToastContainer.styles.d.ts +2 -0
  178. package/styles/{index.ccd8acc4.js → index-Cc9p_h7i.js} +244 -49
  179. package/test/getNameDataTestId.d.ts +1 -1
  180. package/utils/{index.ebfbb70f.js → index-DiMrtgIu.js} +26 -51
  181. package/utils/index.d.ts +1 -1
  182. package/components/LanguagePopover/index.6ac2473a.js +0 -168
  183. package/components/ToastContainer/classes/constants.d.ts +0 -1
  184. package/components/ToastContainer/classes/index.d.ts +0 -8
  185. package/components/ToastContainer/classes/types.d.ts +0 -9
  186. package/components/ToastContainer/index.ed566312.js +0 -69
  187. package/components/ToastContainer/styles.d.ts +0 -2
  188. package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +0 -5
  189. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/index.d.ts +0 -5
  190. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/subcomponents/Toasty/index.d.ts +0 -6
  191. package/components/hook-form/RHFTextField/index.5b124af3.js +0 -296
  192. /package/{commonjs.565e6834.js → commonjs-BfYxJMv3.js} +0 -0
  193. /package/components/DataGrid/{constants.e334cd50.js → constants-8L7QgBKi.js} +0 -0
  194. /package/components/DynamicFilter/{constants.095f1dbb.js → constants-ByqmFATV.js} +0 -0
  195. /package/components/DynamicFilter/slots/{SlotsEnum.104a03d4.js → SlotsEnum-cawFeNzx.js} +0 -0
  196. /package/components/DynamicFilter/slots/{index.36b12be1.js → index-l0sNRNKZ.js} +0 -0
  197. /package/components/ScrollToTop/{index.e06f98f6.js → index-TxORk5dB.js} +0 -0
  198. /package/components/WrapperComponent/{index.57964195.js → index-BHV-CsDU.js} +0 -0
  199. /package/components/animate/{features.0fbf41e1.js → features-BbnE33u3.js} +0 -0
  200. /package/components/animate/variants/{container.11f82b76.js → container-Dmpr6tg5.js} +0 -0
  201. /package/components/animate/variants/{index.7a912140.js → index-l0sNRNKZ.js} +0 -0
  202. /package/components/animate/variants/{transition.bd46b9ce.js → transition-B9W5SWTa.js} +0 -0
  203. /package/components/areas/components/{index.558684b3.js → index-l0sNRNKZ.js} +0 -0
  204. /package/components/areas/{constants.66529246.js → constants-rqODZNZe.js} +0 -0
  205. /package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index-22c6E7vK.js} +0 -0
  206. /package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index-DkE30fhm.js} +0 -0
  207. /package/components/areas/contexts/{index.24025b97.js → index-l0sNRNKZ.js} +0 -0
  208. /package/components/areas/{dictionary.08cfc4c9.js → dictionary-YUsP9beq.js} +0 -0
  209. /package/components/areas/hooks/{index.d9dc1e21.js → index-l0sNRNKZ.js} +0 -0
  210. /package/components/areas/{index.4cc6a221.js → index-B_Odny9h.js} +0 -0
  211. /package/components/hook-form/RHFMultiCheckbox/{index.437e6ba3.js → index-BARudV1A.js} +0 -0
  212. /package/components/hook-form/RHFSelect/{index.c6c60ecc.js → index-LdwRuFz-.js} +0 -0
  213. /package/components/maps/{index.13bb982c.js → index-Ci-7-FHg.js} +0 -0
  214. /package/components/mui_extended/BoxIcon/{index.d61e7ac5.js → index-BUTJ2tKw.js} +0 -0
  215. /package/components/mui_extended/CircularProgress/{index.967e70b7.js → index-Bnnti_G6.js} +0 -0
  216. /package/components/mui_extended/LinearProgress/{index.4092bb69.js → index-CGgW8jq2.js} +0 -0
  217. /package/components/mui_extended/LinkWithRoute/{index.288c51f3.js → index-BC2miUjR.js} +0 -0
  218. /package/components/mui_extended/{index.b606cd9d.js → index-l0sNRNKZ.js} +0 -0
  219. /package/components/popups/PopupsViewer/{constants.29247547.js → constants-DuyD7aCn.js} +0 -0
  220. /package/components/popups/PopupsViewer/{icons.066abd43.js → icons-BUujqqbu.js} +0 -0
  221. /package/components/popups/PopupsViewer/slots/{index.37ef2263.js → index-B98CiRLa.js} +0 -0
  222. /package/components/popups/{index.c5eae682.js → index-l0sNRNKZ.js} +0 -0
  223. /package/hocs/withToggle/{index.548aeace.js → index-C1_DMZD3.js} +0 -0
  224. /package/hooks/useFormReadyForUpdate/{index.f60f500e.js → index-B3HygFCM.js} +0 -0
  225. /package/hooks/useStateRef/{index.538edb89.js → index-C3P6ZK3m.js} +0 -0
  226. /package/test/{constants_no_mock.86c553a9.js → constants_no_mock-CF-669v-.js} +0 -0
  227. /package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId-BaBTWhBr.js} +0 -0
@@ -6,13 +6,13 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
6
6
  import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
7
7
  import { devtools } from "zustand/middleware";
8
8
  import { immer } from "zustand/middleware/immer";
9
- import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.350ee032.js";
10
- import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.cb60f940.js";
11
- import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.3d9ad0ad.js";
12
- import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
13
- import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.dc0a1ce0.js";
9
+ import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index-D5If8gFK.js";
10
+ import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index-qqSduaty.js";
11
+ import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index-22c6E7vK.js";
12
+ import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary-YUsP9beq.js";
13
+ import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index-bpKDnaCd.js";
14
14
  import { debounce, cloneDeep } from "lodash";
15
- import { A as isEqualLayouts } from "../../../GridLayout/index.2b9bc85c.js";
15
+ import { z as isEqualLayouts } from "../../../GridLayout/index-HK_hTGnZ.js";
16
16
  const PADDING_GRIDLAYOUT = 11;
17
17
  const MARGIN_GRIDLAYOUT = 11;
18
18
  const DEBOUCED_SAVE_TIME = 500;
@@ -27,15 +27,14 @@ const DEFAULT_WINDOW = {
27
27
  status: "init",
28
28
  moduleActions: [],
29
29
  cookies: { moduleCookies: {}, windowCookies: {} },
30
- loading: false,
31
- toasties: [],
32
- hashToasties: {},
33
- toastyCount: 0
30
+ loading: false
34
31
  };
35
32
  const DEFAULT_AREA = {
36
33
  status: "init",
37
34
  zPopUpIndex: 0,
38
35
  layouts: DEFAULT_LAYOUTS,
36
+ // colapsedItems: {},
37
+ // windowsLayoutIds: [],
39
38
  layoutItemsIds: [],
40
39
  currentLayoutId: "",
41
40
  currentPopUpId: "",
@@ -44,7 +43,7 @@ const DEFAULT_AREA = {
44
43
  loadWindows: false
45
44
  };
46
45
  const addArea = (state) => {
47
- const areaId = `area_${new Date().getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
46
+ const areaId = `area_${(/* @__PURE__ */ new Date()).getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
48
47
  const labelNewArea = state.getLabel(getAreasDictionary(DICCTIONARY.label_new_area));
49
48
  let isFree;
50
49
  let name = `${labelNewArea} 1`;
@@ -126,24 +125,6 @@ function deleteLayoutFromBreakPoints(state, layoutId) {
126
125
  }
127
126
  }
128
127
  }
129
- function purgeToastsWindow(state, windowId) {
130
- const toasties = state?.hashWindows[windowId]?.toasties;
131
- if (toasties) {
132
- for (let index = 0; index < toasties.length; index++) {
133
- const toast = toasties[index];
134
- if (toast.timer) {
135
- clearInterval(toast.timer);
136
- toast.timer = void 0;
137
- }
138
- }
139
- }
140
- }
141
- function purgeToastsArea(state, areaId) {
142
- const area = state.hashAreas[areaId];
143
- for (let index = 0; index < area.layoutItemsIds.length; index++) {
144
- purgeToastsWindow(state, area.layoutItemsIds[index]);
145
- }
146
- }
147
128
  function getDataFromResponse(data, state, areaId) {
148
129
  let newBreakPointsLayouts = getParmsFromValue(COOKIE_BREAKPOINT_LAYOUTS, data);
149
130
  const windows = getParmsFromValue(COOKIE_WINDOWS, data);
@@ -160,7 +141,9 @@ function getDataFromResponse(data, state, areaId) {
160
141
  if (windows) {
161
142
  for (const key in windows) {
162
143
  const element = windows[key];
163
- if (element && element["mfProps"] && element["emergeType"] === "layout" && element["winType"] === "microfrontend") {
144
+ if (element && // element['layoutProps'] && //Garantizar que venga con los LayoutProps de la venta
145
+ element["mfProps"] && //Garantizar que venga con los mfProps de la venta
146
+ element["emergeType"] === "layout" && element["winType"] === "microfrontend") {
164
147
  newWindowsLayoutsIds.push(key);
165
148
  const onClose = state.areaActions.closeLayout;
166
149
  state.hashWindows[key] = {
@@ -202,6 +185,7 @@ function getDataFromResponse(data, state, areaId) {
202
185
  return {
203
186
  newBreakPointsLayouts,
204
187
  newHashLayoutItems
188
+ // baseResponsiveLayoutItems,
205
189
  };
206
190
  }
207
191
  function getCookiesContainer(data, containerId) {
@@ -218,26 +202,6 @@ function getCookiesContainer(data, containerId) {
218
202
  }
219
203
  return cookies;
220
204
  }
221
- const verifyRemoveToasty = (state, toastyId, forceRemove) => {
222
- const tfy = state.hashToasties[toastyId];
223
- if (tfy) {
224
- tfy.percentExecuted = (1 - (tfy.timeStart + tfy.timeoutMs - new Date().getTime()) / tfy.timeoutMs) * 100;
225
- if (tfy.percentExecuted >= 100 || forceRemove) {
226
- const tosties = state.toasties;
227
- for (let i = 0; i < tosties.length; i++) {
228
- const findToasty = tosties[i];
229
- if (findToasty.id === toastyId) {
230
- if (findToasty.timer) {
231
- clearInterval(findToasty.timer);
232
- }
233
- state.toasties.splice(i, 1);
234
- delete state.hashToasties[toastyId];
235
- return;
236
- }
237
- }
238
- }
239
- }
240
- };
241
205
  const createAreasStore = (initProps) => {
242
206
  const startProps = {
243
207
  viwerClasses: useAreasViewerUtilityClasses(initProps.ownerState),
@@ -285,6 +249,7 @@ const createAreasStore = (initProps) => {
285
249
  ...DEFAULT_AREA,
286
250
  ...response.data[i],
287
251
  loadWindows: true
252
+ //Se indica que si se carguen las ventas debido a que viene de la API
288
253
  };
289
254
  state.hashAreas[newArea.id] = newArea;
290
255
  state.areasIds.push(newArea.id);
@@ -334,7 +299,6 @@ const createAreasStore = (initProps) => {
334
299
  if (!ha || state.areasIds.length < 2) {
335
300
  return;
336
301
  }
337
- purgeToastsArea(state, areaId);
338
302
  const removeIndex = state.areasIds.indexOf(areaId);
339
303
  if (removeIndex > -1) {
340
304
  for (const key in state.hashWindows) {
@@ -380,8 +344,7 @@ const createAreasStore = (initProps) => {
380
344
  });
381
345
  }
382
346
  }
383
- if (get().hashAreas[areaId].maximizedId !== void 0)
384
- ;
347
+ if (get().hashAreas[areaId].maximizedId !== void 0) ;
385
348
  },
386
349
  setHandlerGetLabel: (newHandler) => {
387
350
  set((state) => {
@@ -397,7 +360,7 @@ const createAreasStore = (initProps) => {
397
360
  },
398
361
  areaActions: {
399
362
  addWindow: (newWindowProps) => {
400
- const windowId = `${get().currentAreaId}_window_${new Date().getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
363
+ const windowId = `${get().currentAreaId}_window_${(/* @__PURE__ */ new Date()).getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
401
364
  if (newWindowProps.emergeType === "layout" || newWindowProps.emergeType === "popup") {
402
365
  get().areaActions.addLayout(get().currentAreaId, windowId, newWindowProps);
403
366
  } else if (newWindowProps.emergeType === "modal") {
@@ -483,7 +446,6 @@ const createAreasStore = (initProps) => {
483
446
  area.layoutItemsIds.splice(removeIndex, 1);
484
447
  }
485
448
  deleteLayoutFromBreakPoints(area, removeLayoutId);
486
- purgeToastsWindow(state, removeLayoutId);
487
449
  delete state.hashWindows[removeLayoutId];
488
450
  });
489
451
  get().areaActions.saveLayouts(areaId);
@@ -515,6 +477,7 @@ const createAreasStore = (initProps) => {
515
477
  title: true,
516
478
  url_icon: true,
517
479
  windowOptions: true,
480
+ // layoutProps: false,
518
481
  moduleId: true,
519
482
  windowId: true,
520
483
  mfProps: true
@@ -553,7 +516,6 @@ const createAreasStore = (initProps) => {
553
516
  if (removeIndex > -1) {
554
517
  state.windowsModals.splice(removeIndex, 1);
555
518
  }
556
- purgeToastsWindow(state, removeModalId);
557
519
  delete state.hashWindows[removeModalId];
558
520
  delete state.hashWindowsModals[removeModalId];
559
521
  });
@@ -670,8 +632,7 @@ const createAreasStore = (initProps) => {
670
632
  maximizeLayout: (areaId, layoutId) => {
671
633
  set((state) => {
672
634
  const area = state.hashAreas[areaId];
673
- if (!area)
674
- return;
635
+ if (!area) return;
675
636
  area.maximizedId = layoutId;
676
637
  const index = area.layouts["xxs"]?.findIndex((li) => li.i === area.maximizedId);
677
638
  if (index !== void 0 && index > -1 && layoutId && state.hashWindows[layoutId].emergeType === "popup") {
@@ -686,8 +647,7 @@ const createAreasStore = (initProps) => {
686
647
  normalizeLayouts: (areaId) => {
687
648
  set((state) => {
688
649
  const area = state.hashAreas[areaId];
689
- if (!area)
690
- return;
650
+ if (!area) return;
691
651
  if (area.maximizedId) {
692
652
  const index = area.layouts["xxs"]?.findIndex((li) => li.i === area.maximizedId);
693
653
  if (index !== void 0 && index > -1 && state.hashWindows[area.maximizedId].emergeType === "popup") {
@@ -720,6 +680,7 @@ const createAreasStore = (initProps) => {
720
680
  parms: { f: [{ n: "container_id", o: "e", o1: areaId }] },
721
681
  toastSuccess: false,
722
682
  toastError: false
683
+ // isRemote: false
723
684
  }).then((response) => {
724
685
  const area2 = get().hashAreas[areaId];
725
686
  if (!area2) {
@@ -742,6 +703,158 @@ const createAreasStore = (initProps) => {
742
703
  });
743
704
  });
744
705
  }
706
+ // addWindowLayoutPendiente: (
707
+ // areaId: string,
708
+ // windowId: string,
709
+ // newWindow: NewLayoutMagnetizableProps,
710
+ // ) => {
711
+ // const newLayoutItem: WinLayoutItem = {
712
+ // ...newWindow.layoutProps,
713
+ // i: windowId,
714
+ // isDraggable: true,
715
+ // isResizable: true,
716
+ // winType: newWindow.winType,
717
+ // freeMove: false,
718
+ // };
719
+ // set(state => {
720
+ // const area = state.hashAreas[areaId];
721
+ // if (!area) {
722
+ // return;
723
+ // }
724
+ // const dynamicMFStore = createDynamicMFStore({
725
+ // dynamicMFParameters: newWindow.dynamicParams,
726
+ // windowId,
727
+ // });
728
+ // area.windowsLayouts.push(newLayoutItem);
729
+ // area.hashWindowsLayouts[windowId] = {
730
+ // ...newWindow,
731
+ // areaId,
732
+ // windowId,
733
+ // emergeType: 'layout',
734
+ // onClose: (removeLayoutId: string) => {
735
+ // get().areaActions.closeWindowLayout(areaId, removeLayoutId);
736
+ // },
737
+ // ...DEFAULT_WINDOW,
738
+ // dynamicMFStore,
739
+ // };
740
+ // area.baseResponsivelayoutItems.push({ i: windowId });
741
+ // //Agregar la ventana al hash general de todas las ventanas
742
+ // state.hashWindows[windowId] = area.hashWindowsLayouts[windowId];
743
+ // setAddBreakPoints(area, newLayoutItem);
744
+ // });
745
+ // get().areaActions.selectLayout(areaId, windowId);
746
+ // if (
747
+ // get().hashAreas[areaId].viewMode === 'single' ||
748
+ // newWindow?.openType === 'maximized'
749
+ // ) {
750
+ // get().areaActions.maximizeLayout(areaId, windowId);
751
+ // }
752
+ // get().areaActions.saveLayouts(areaId);
753
+ // get().areaActions.bouncedSaveBreakpointsLayouts(areaId);
754
+ // },
755
+ // closeLayout: (areaId: string, removePopUpId: string) => {
756
+ // set(state => {
757
+ // const area = state.hashAreas[areaId];
758
+ // if (!area) {
759
+ // return;
760
+ // }
761
+ // const removeIndex = area.windowsPopUps.findIndex(
762
+ // wpId => wpId === removePopUpId,
763
+ // );
764
+ // if (removeIndex > -1) {
765
+ // area.windowsPopUps.splice(removeIndex, 1);
766
+ // }
767
+ // delete area.hashWindowsPopups[removePopUpId];
768
+ // delete state.hashWindows[removePopUpId];
769
+ // });
770
+ // },
771
+ // selectWindowPopUp: (areaId: string, popUpId: string) => {
772
+ // set(state => {
773
+ // state.hashAreas[areaId].zPopUpIndex++;
774
+ // state.hashAreas[areaId].currentPopUpId = popUpId;
775
+ // state.hashAreas[areaId].zPopUpIndex++;
776
+ // state.hashAreas[areaId].currentPopUpId = popUpId;
777
+ // state.hashAreas[areaId].hashWindowsPopups[popUpId].zIndex =
778
+ // state.hashAreas[areaId].zPopUpIndex;
779
+ // //Seleccionar el layout padre si lo tiene
780
+ // if (
781
+ // state.hashAreas[areaId].hashWindowsPopups[popUpId].parentLayoutId &&
782
+ // state.hashAreas[areaId].hashWindowsPopups[popUpId]
783
+ // .parentLayoutId !== ''
784
+ // ) {
785
+ // state.hashAreas[areaId].currentLayoutId =
786
+ // state.hashAreas[areaId].hashWindowsPopups[
787
+ // popUpId
788
+ // ].parentLayoutId;
789
+ // } else {
790
+ // state.hashAreas[areaId].currentLayoutId = '';
791
+ // }
792
+ // });
793
+ // //Enfocar el componente despues de la renderización.
794
+ // setTimeout(() => {
795
+ // //Asegurar visibilidad si es un reemplazo
796
+ // const container = document.getElementsByClassName(
797
+ // `${areasViewerClasses.areaGridLayoutPanelContainer}-${areaId}`,
798
+ // )[0];
799
+ // const element = document.getElementsByClassName(
800
+ // `${areasViewerClasses.windowPopupRoot}-${popUpId}`,
801
+ // )[0]; //`M4L_WindowPopUp_${popUpId}`,
802
+ // //TODO: Proteeccion de los vectores
803
+ // if (element && container) {
804
+ // const { top, left } = element.getBoundingClientRect();
805
+ // const { top: containerTop, left: containerLeft } =
806
+ // container.getBoundingClientRect();
807
+ // container.scrollTop = container.scrollTop + top - containerTop;
808
+ // container.scrollLeft = container.scrollLeft + left - containerLeft;
809
+ // }
810
+ // }, 100);
811
+ // // windowsPopUps.findIndex(wp => wp.container_id === lookForThisId) > -1) {
812
+ // // setSelectedWindow(newSeletectedId);
813
+ // },
814
+ // resizeMaximixedLayout: (areaId: string) => {
815
+ // set(state => {
816
+ // const area = state.hashAreas[areaId];
817
+ // if (!area) return;
818
+ // if (areaId !== state.currentAreaId) {
819
+ // return;
820
+ // }
821
+ // if (area.viewMode === 'single' && area.currentLayoutId !== '') {
822
+ // console.log('Rezigning', areaId);
823
+ // const layoutsBreakPoints = area.layouts;
824
+ // const container = document.getElementsByClassName(
825
+ // `${areasViewerClasses.areaGridLayout}-${area.id}`,
826
+ // )[0];
827
+ // window.dispatchEvent(new Event('resize'));
828
+ // for (const key in layoutsBreakPoints) {
829
+ // const layoutBreakpoint = layoutsBreakPoints[key];
830
+ // if (layoutBreakpoint) {
831
+ // const clientHeight = container.clientHeight;
832
+ // //Formula que sale de despejar de acuerdo al grid layout en el codigo fuente: heigthpx = colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx
833
+ // const heigthUnits =
834
+ // (clientHeight +
835
+ // MARGIN_GRIDLAYOUT -
836
+ // 2 * PADDING_GRIDLAYOUT) /
837
+ // (ROW_HEIGTH_GRIDLAYOUT + MARGIN_GRIDLAYOUT);
838
+ // for (
839
+ // let index = 0;
840
+ // index < layoutBreakpoint.length;
841
+ // index++
842
+ // ) {
843
+ // const l = layoutBreakpoint[index];
844
+ // if (l.i === area.currentLayoutId) {
845
+ // l.h = heigthUnits;
846
+ // l.maxH = heigthUnits;
847
+ // }
848
+ // }
849
+ // }
850
+ // }
851
+ // }
852
+ // //TODO: Corregir cuando arranca en celular,
853
+ // // no se han cargado las ventanas y no se puede encontrar
854
+ // // Adicionalmente no se ha posicionado el panelWindows, y calcula
855
+ // // state.cols = MAXIMIZED_COLS;
856
+ // });
857
+ // },
745
858
  },
746
859
  windowActions: {
747
860
  setActions: (windowId, newActions, version) => {
@@ -830,6 +943,7 @@ const createAreasStore = (initProps) => {
830
943
  },
831
944
  toastSuccess: false,
832
945
  toastError: false
946
+ // isRemote: false
833
947
  }).then((response) => {
834
948
  set((state) => {
835
949
  const hWs = state.hashWindows[windowId];
@@ -889,80 +1003,10 @@ const createAreasStore = (initProps) => {
889
1003
  });
890
1004
  }
891
1005
  },
892
- toast: (windowId, options) => {
893
- const hW = get().hashWindows[windowId];
894
- if (hW) {
895
- if (options.replaceMeId) {
896
- for (const key in hW.hashToasties) {
897
- const t = hW.hashToasties[key];
898
- if (options.replaceMeId === t.replaceMeId) {
899
- const toastyId = t.id;
900
- if (t.timer) {
901
- clearTimeout(t.timer);
902
- }
903
- set((state2) => {
904
- const hw2 = state2.hashWindows[windowId].hashToasties[toastyId];
905
- hw2.timeStart = new Date().getTime();
906
- hw2.percentExecuted = 0;
907
- hw2.timer = setInterval(() => {
908
- set((state3) => {
909
- verifyRemoveToasty(state3.hashWindows[windowId], toastyId);
910
- });
911
- }, 1e3);
912
- });
913
- return;
914
- }
915
- }
916
- }
917
- set((state) => {
918
- const timeoutMs = options.timeoutMs || 1e4;
919
- state.hashWindows[windowId].toastyCount++;
920
- const toastyId = state.hashWindows[windowId].toastyCount;
921
- const newToasty = {
922
- id: state.hashWindows[windowId].toastyCount,
923
- ...options,
924
- timeoutMs,
925
- timeStart: new Date().getTime(),
926
- percentExecuted: 0,
927
- timer: setInterval(() => {
928
- set((stateRemoveToasty) => {
929
- verifyRemoveToasty(stateRemoveToasty.hashWindows[windowId], toastyId);
930
- });
931
- }, 1e3)
932
- };
933
- state.hashWindows[windowId].hashToasties[toastyId] = newToasty;
934
- state.hashWindows[windowId].toasties.push(newToasty);
935
- });
936
- }
937
- },
938
- closeToast: (windowId, toastyId) => {
939
- set((state) => {
940
- verifyRemoveToasty(state.hashWindows[windowId], toastyId, true);
941
- });
942
- },
943
1006
  setFnQueryClose: (windowId, fnQueryClose) => {
944
1007
  set((state) => {
945
1008
  state.hashWindows[windowId].fnQueryClose = fnQueryClose;
946
1009
  });
947
- },
948
- pinToast: (windowId, toastyId) => {
949
- set((state) => {
950
- const t = state.hashWindows[windowId].hashToasties[toastyId];
951
- if (t) {
952
- if (t.timer) {
953
- clearInterval(t.timer);
954
- t.timer = void 0;
955
- } else {
956
- t.timeStart = new Date().getTime();
957
- t.percentExecuted = 0;
958
- t.timer = setInterval(() => {
959
- set((state2) => {
960
- verifyRemoveToasty(state2.hashWindows[windowId], toastyId);
961
- });
962
- }, 1e3);
963
- }
964
- }
965
- });
966
1010
  }
967
1011
  },
968
1012
  areaAdminActions: {
@@ -1000,6 +1044,7 @@ function AreasProvider(props) {
1000
1044
  isSkeleton,
1001
1045
  focus: false
1002
1046
  }
1047
+ // onLoad,
1003
1048
  });
1004
1049
  areasStoreRef.current?.getState().areasActions.init();
1005
1050
  }
@@ -1,6 +1,6 @@
1
1
  import { GetLabelType, NetworkProps } from '@m4l/core';
2
2
  import { ReactNode } from 'react';
3
- import { CookieType, HashWindowsByModals, ModalStateProps, AreaWindowAction, NewModalProps, NewLayoutMoveableProps, NewWindowProps, ToastyOptions, WinType, WindowStateProps, NewLayoutMagnetizableProps } from '../../types';
3
+ import { CookieType, HashWindowsByModals, ModalStateProps, AreaWindowAction, NewModalProps, NewLayoutMoveableProps, NewWindowProps, WinType, WindowStateProps, NewLayoutMagnetizableProps } from '../../types';
4
4
  import { ViwerClasses } from '../../components/AreasViewer/classes';
5
5
  import { AdminClasses } from '../../components/AreasAdmin/classes';
6
6
  import { DebouncedFunc } from 'lodash';
@@ -204,9 +204,6 @@ export interface AreasStateWithActions extends AreasState {
204
204
  loadCookiesFromApi: (windowId: string) => void;
205
205
  saveModuleCookies: (windowId: string) => void;
206
206
  resetModuleCookies: (windowId: string) => void;
207
- toast: (windowId: string, options: ToastyOptions) => void;
208
- closeToast: (windowId: string, toastyId: number) => void;
209
- pinToast: (windowId: string, toastyId: number) => void;
210
207
  setFnQueryClose: (windowId: string, fnQueryClose: () => void) => void;
211
208
  };
212
209
  areaAdminActions: {
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import type { CookieType, AreaWindowAction, ToastyOptions } from '../../types';
2
+ import { Toaster } from '@m4l/core';
3
+ import type { CookieType, AreaWindowAction } from '../../types';
3
4
  /**
4
5
  * Interfaz que define un conjunto de herramientas relacionadas con la ventana que pueden ser proporcionadas por el contexto WindowToolsMF.
5
6
  */
@@ -46,7 +47,7 @@ export interface WindowToolsMF {
46
47
  * Método para mostrar una notificación toast.
47
48
  * @param options Las opciones de configuración para la notificación toast.
48
49
  */
49
- toast: (options: ToastyOptions) => void;
50
+ toast: Toaster;
50
51
  /**
51
52
  * Método para cerrar la ventana actual.
52
53
  */
@@ -1,10 +1,9 @@
1
1
  import { useContext } from "react";
2
2
  import { useStore } from "zustand";
3
- import { b as AreasContext } from "../../contexts/AreasContext/index.1a5c5df1.js";
3
+ import { b as AreasContext } from "../../contexts/AreasContext/index-Dyj8tCdG.js";
4
4
  function useAreasStore(selector, equalityFn) {
5
5
  const context = useContext(AreasContext);
6
- if (!context)
7
- throw new Error("useAreasStore context must be use inside AreasContext");
6
+ if (!context) throw new Error("useAreasStore context must be use inside AreasContext");
8
7
  return useStore(context, selector, equalityFn);
9
8
  }
10
9
  export {
@@ -1,6 +1,6 @@
1
1
  import { useContext } from "react";
2
2
  import { useStore } from "zustand";
3
- import { a as DynamicMFParmsContext } from "../../contexts/DynamicMFParmsContext/index.3d9ad0ad.js";
3
+ import { a as DynamicMFParmsContext } from "../../contexts/DynamicMFParmsContext/index-22c6E7vK.js";
4
4
  function useDynamicMFParametersStore(selector, equalityFn) {
5
5
  const store = useContext(DynamicMFParmsContext);
6
6
  if (!store)
@@ -1,9 +1,8 @@
1
1
  import { useContext } from "react";
2
- import { a as WindowToolsMFContext } from "../../contexts/WindowToolsMFContext/index.992ae7a3.js";
2
+ import { a as WindowToolsMFContext } from "../../contexts/WindowToolsMFContext/index-DkE30fhm.js";
3
3
  const useWindowToolsMF = () => {
4
4
  const context = useContext(WindowToolsMFContext);
5
- if (!context)
6
- throw new Error("useWindowToolsMF context must be use inside WindowToolsMFContext");
5
+ if (!context) throw new Error("useWindowToolsMF context must be use inside WindowToolsMFContext");
7
6
  return context;
8
7
  };
9
8
  export {
@@ -16,8 +16,6 @@ const ICONS = {
16
16
  VERSION: "version.svg",
17
17
  SHOW_OPTIONS: "showMoreVertical.svg",
18
18
  CHEVRON_DOWN: "chevronDown.svg",
19
- TOASTY_CLOSE: "close.svg",
20
- TOASTY_PIN: "pin.svg",
21
19
  MODULE: "module.svg",
22
20
  POPUP: "popup.svg"
23
21
  };
@@ -16,8 +16,6 @@ export declare const ICONS: {
16
16
  VERSION: string;
17
17
  SHOW_OPTIONS: string;
18
18
  CHEVRON_DOWN: string;
19
- TOASTY_CLOSE: string;
20
- TOASTY_PIN: string;
21
19
  MODULE: string;
22
20
  POPUP: string;
23
21
  };
@@ -1,5 +1,5 @@
1
1
  export * from './components';
2
2
  export * from './contexts';
3
3
  export * from './hooks';
4
- export type { ToastyOptions, CookieType } from './types';
4
+ export type { CookieType } from './types';
5
5
  export * from './dictionary';
@@ -67,36 +67,6 @@ export declare type Cookies = {
67
67
  * Tipo que representa el estado de la ventana: inicialización, carga, cargado o error.
68
68
  */
69
69
  export declare type WindowStatus = 'init' | 'loading' | 'loaded' | 'error';
70
- /**
71
- * Tipo que representa el tipo de tostada: éxito, información, advertencia o error.
72
- */
73
- export declare type ToastyType = 'success' | 'info' | 'warning' | 'error';
74
- /**
75
- * Objeto que representa una tostada.
76
- */
77
- export declare type Toasty = {
78
- /** Identificador único de la tostada. */
79
- id: number;
80
- /** Duración en milisegundos antes de que la tostada desaparezca. */
81
- timeoutMs: number;
82
- /** Mensaje que se muestra en la tostada. */
83
- type: ToastyType;
84
- /** Momento en que se inició la tostada en milisegundos desde la época. */
85
- message: string;
86
- /** Porcentaje de ejecución de la tostada. */
87
- timeStart: number;
88
- /** Temporizador utilizado para controlar el tiempo de vida de la tostada. */
89
- percentExecuted: number;
90
- /** Identificador de la tostada que debe ser reemplazada. */
91
- timer?: ReturnType<typeof setInterval>;
92
- replaceMeId?: string;
93
- };
94
- /**
95
- * Opciones para configurar una tostada.
96
- */
97
- export interface ToastyOptions extends Pick<Toasty, 'message' | 'type' | 'replaceMeId'> {
98
- timeoutMs?: number;
99
- }
100
70
  export declare type WindowState = {
101
71
  /**
102
72
  * status Indica el proceso de cargado de la ventana
@@ -113,16 +83,6 @@ export declare type WindowState = {
113
83
  */
114
84
  moduleActions: AreaWindowAction[];
115
85
  cookies: Cookies;
116
- /**
117
- * Lista de tostadas.
118
- */
119
- toasties: Toasty[];
120
- /**
121
- * Hash que mapea el identificador de la tostada con su respectiva información.
122
-
123
- */
124
- hashToasties: Record<number, Toasty>;
125
- toastyCount: number;
126
86
  /**
127
87
  * "fnQueryClose" función que reemplaza la opción de cerrado normal de la ventana
128
88
  * @returns void
@@ -1,13 +1,15 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses } from "@mui/material";
3
3
  import { unstable_composeClasses } from "@mui/base";
4
- import { g as getComponentUtilityClass } from "../../../utils/index.ebfbb70f.js";
5
- import { ab as AppBarComercialRoot } from "../../../styles/index.ccd8acc4.js";
4
+ import { g as getComponentUtilityClass } from "../../../utils/index-DiMrtgIu.js";
5
+ import { ab as AppBarComercialRoot } from "../../../styles/index-Cc9p_h7i.js";
6
6
  const componentName = "M4LAppBarCommercial";
7
7
  generateUtilityClasses(
8
8
  componentName,
9
9
  [
10
+ /* elements */
10
11
  "root"
12
+ /* states or variants of elements */
11
13
  ]
12
14
  );
13
15
  const useAppBarComercialUtilityClasses = () => {
@@ -1,13 +1,15 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses } from "@mui/material";
3
3
  import { unstable_composeClasses } from "@mui/base";
4
- import { g as getComponentUtilityClass } from "../../../utils/index.ebfbb70f.js";
5
- import { ac as SectionCommercialRoot } from "../../../styles/index.ccd8acc4.js";
4
+ import { g as getComponentUtilityClass } from "../../../utils/index-DiMrtgIu.js";
5
+ import { ac as SectionCommercialRoot } from "../../../styles/index-Cc9p_h7i.js";
6
6
  const componentName = "M4LSectionCommercial";
7
7
  generateUtilityClasses(
8
8
  componentName,
9
9
  [
10
+ /* elements */
10
11
  "root",
12
+ /* states or variants of elements */
11
13
  "fullWidth",
12
14
  "boxed",
13
15
  "columnReverse"