@m4l/components 0.1.75 → 0.1.76

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 (276) hide show
  1. package/@types/export.d.ts +78 -1
  2. package/components/AccountPopover/classes/index.d.ts +5 -0
  3. package/components/AccountPopover/classes/types.d.ts +5 -0
  4. package/components/AccountPopover/{index.93aefccd.js → index.47cf6c43.js} +150 -142
  5. package/components/AccountPopover/subcomponents/MyAvatar/createAvatar.d.ts +1 -1
  6. package/components/AccountPopover/subcomponents/PopOver/types.d.ts +0 -4
  7. package/components/AppBar/classes/index.d.ts +1 -0
  8. package/components/AppBar/classes/types.d.ts +1 -0
  9. package/components/AppBar/{index.cc974d56.js → index.f04f5e45.js} +24 -15
  10. package/components/CommonActions/components/ActionCancel/{index.574ea031.js → index.453c2d24.js} +2 -2
  11. package/components/CommonActions/components/ActionFormCancel/{index.e62db5d3.js → index.c2a2fd55.js} +24 -21
  12. package/components/CommonActions/components/ActionFormIntro/{index.304da410.js → index.25d33912.js} +2 -2
  13. package/components/CommonActions/components/ActionIntro/{index.d635cbc4.js → index.c653a266.js} +2 -2
  14. package/components/CommonActions/components/Actions/{index.37ffde59.js → index.e376a68e.js} +20 -19
  15. package/components/DataGrid/{index.c0c626cd.js → index.ffaf000e.js} +29 -21
  16. package/components/DraggableWindow/{index.b95a678e.js → index.b08af1dc.js} +1 -1
  17. package/components/DynamicFilter/{index.3034c6ba.js → index.d7c03a61.js} +34 -34
  18. package/components/HelperText/{index.ec9b3e6a.js → index.9864f773.js} +11 -10
  19. package/components/Icon/{index.f9119f5e.js → index.9dae8337.js} +1 -1
  20. package/components/Image/{index.8aae9322.js → index.c18ebf5a.js} +6 -7
  21. package/components/Image/types.d.ts +1 -4
  22. package/components/LanguagePopover/{index.491e1306.js → index.938c6675.js} +11 -10
  23. package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +2 -0
  24. package/components/LinearProgressIndeterminate/classes/constants.d.ts +1 -0
  25. package/components/LinearProgressIndeterminate/classes/index.d.ts +3 -0
  26. package/components/LinearProgressIndeterminate/classes/types.d.ts +7 -0
  27. package/components/LinearProgressIndeterminate/index.d.ts +1 -0
  28. package/components/LinearProgressIndeterminate/index.d34d398f.js +43 -0
  29. package/components/LinearProgressIndeterminate/tests/constants.d.ts +1 -0
  30. package/components/LinearProgressIndeterminate/tests/utils.d.ts +2 -0
  31. package/components/ModalDialog/{index.f652ea12.js → index.d9c5d400.js} +21 -12
  32. package/components/NavLink/{index.f8aee9f4.js → index.21c8fd90.js} +11 -10
  33. package/components/NoItemSelected/{index.cce86db4.js → index.23dfc897.js} +1 -1
  34. package/components/ObjectLogs/{index.c31b3f8b.js → index.a2709fc2.js} +31 -21
  35. package/components/PaperForm/classes/constants.d.ts +1 -0
  36. package/components/PaperForm/classes/index.d.ts +11 -0
  37. package/components/PaperForm/classes/types.d.ts +10 -0
  38. package/components/PaperForm/{index.d79c6f76.js → index.5e1bc99f.js} +58 -25
  39. package/components/PaperForm/types.d.ts +5 -2
  40. package/components/Period/Period.d.ts +3 -0
  41. package/components/Period/classes/constants.d.ts +1 -0
  42. package/components/Period/classes/index.d.ts +10 -0
  43. package/components/Period/classes/types.d.ts +13 -0
  44. package/components/Period/index.526791a3.js +322 -0
  45. package/components/Period/index.d.ts +2 -3
  46. package/components/Period/tests/constants.d.ts +1 -0
  47. package/components/Period/tests/utils.d.ts +2 -0
  48. package/components/Period/types.d.ts +3 -4
  49. package/components/PropertyValue/classes/constants.d.ts +1 -0
  50. package/components/PropertyValue/classes/index.d.ts +9 -0
  51. package/components/PropertyValue/classes/types.d.ts +9 -0
  52. package/components/PropertyValue/{index.dfcfe1ba.js → index.8a1adf3e.js} +60 -10
  53. package/components/PropertyValue/skeleton.d.ts +2 -1
  54. package/components/PropertyValue/tests/constants.d.ts +1 -0
  55. package/components/PropertyValue/tests/utils.d.ts +2 -0
  56. package/components/PropertyValue/types.d.ts +4 -0
  57. package/components/Resizeable/{index.41a8048b.js → index.f6e48e56.js} +1 -1
  58. package/components/SideBar/{index.1ae13a73.js → index.9e1a5b96.js} +4 -4
  59. package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
  60. package/components/areas/components/AreasAdmin/classes/types.d.ts +4 -0
  61. package/components/areas/components/AreasAdmin/{index.158621e0.js → index.946eebb9.js} +147 -47
  62. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +3 -0
  63. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +4 -0
  64. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +2 -0
  65. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  66. package/components/areas/components/AreasViewer/classes/types.d.ts +13 -0
  67. package/components/areas/components/AreasViewer/{index.621c0de4.js → index.bf4191ea.js} +431 -360
  68. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +13 -2
  69. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/helper.d.ts +18 -0
  70. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/index.d.ts +3 -0
  71. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/types.d.ts +4 -0
  72. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +3 -0
  73. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +5 -0
  74. package/components/areas/components/index.2bb534cb.js +28 -0
  75. package/components/areas/contexts/AreasContext/{index.d98b89fc.js → index.f0397b7c.js} +130 -105
  76. package/components/areas/contexts/AreasContext/types.d.ts +5 -4
  77. package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
  78. package/components/areas/contexts/{index.79d1912d.js → index.1809650a.js} +1 -1
  79. package/components/areas/{dictionary.e72db809.js → dictionary.3fabae50.js} +6 -1
  80. package/components/areas/dictionary.d.ts +5 -0
  81. package/components/areas/hooks/useAreas/{index.a7b597fb.js → index.40917e99.js} +1 -1
  82. package/components/areas/{icons.3ec589d3.js → icons.19cde4b4.js} +3 -0
  83. package/components/areas/icons.d.ts +3 -0
  84. package/components/areas/index.9bd48013.js +30 -0
  85. package/components/areas/types.d.ts +4 -0
  86. package/components/formatters/BooleanFormatter/{index.60aa1c9d.js → index.431dc923.js} +1 -1
  87. package/components/formatters/{index.1f0efb32.js → index.e1af75e6.js} +2 -2
  88. package/components/hook-form/RHFAutocomplete/{index.af3296ac.js → index.a063dc44.js} +12 -11
  89. package/components/hook-form/RHFAutocompleteAsync/{index.76864056.js → index.ddfd9cc9.js} +1 -1
  90. package/components/hook-form/RHFCheckbox/classes/types.d.ts +1 -0
  91. package/components/hook-form/RHFCheckbox/{index.865ba239.js → index.7e7f220b.js} +20 -13
  92. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +1 -0
  93. package/components/hook-form/RHFCheckbox/test/utils.d.ts +1 -1
  94. package/components/hook-form/RHFCheckbox/types.d.ts +3 -1
  95. package/components/hook-form/RHFDateTime/{index.fd9c5aca.js → index.d330709b.js} +12 -11
  96. package/components/hook-form/RHFPeriod/classes/constants.d.ts +1 -0
  97. package/components/hook-form/RHFPeriod/classes/index.d.ts +6 -0
  98. package/components/hook-form/RHFPeriod/classes/types.d.ts +6 -0
  99. package/components/hook-form/RHFPeriod/index.e2b1293b.js +77 -0
  100. package/components/hook-form/RHFPeriod/types.d.ts +2 -1
  101. package/components/hook-form/RHFTextField/index.d.ts +1 -0
  102. package/components/hook-form/RHFTextField/{index.abcbc2d3.js → index.e5336d09.js} +9 -6
  103. package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants.d.ts +1 -0
  104. package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +19 -0
  105. package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +18 -0
  106. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +2 -1
  107. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/types.d.ts +3 -0
  108. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts +5 -0
  109. package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants.d.ts +1 -0
  110. package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils.d.ts +2 -0
  111. package/components/hook-form/RHFUpload/index.17e7f9eb.js +260 -0
  112. package/components/hook-form/RHFUpload/index.d.ts +1 -1
  113. package/components/index.d.ts +3 -3
  114. package/components/modal/WindowBase/subcomponents/Header/types.d.ts +4 -1
  115. package/components/modal/WindowBase/types.d.ts +0 -3
  116. package/components/modal/WindowBase.7acb9f1d.js +81 -0
  117. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/types.d.ts +3 -5
  118. package/components/modal/WindowConfirm/types.d.ts +3 -2
  119. package/components/modal/WindowConfirm.9b829837.js +122 -0
  120. package/components/modal/classes/constants.d.ts +1 -0
  121. package/components/modal/classes/index.d.ts +18 -0
  122. package/components/modal/classes/types.d.ts +21 -0
  123. package/components/modal/index.1b25b61d.js +82 -0
  124. package/components/modal/index.d.ts +2 -1
  125. package/components/mui_extended/Accordion/classes/constants.d.ts +1 -0
  126. package/components/mui_extended/Accordion/classes/index.d.ts +10 -0
  127. package/components/mui_extended/Accordion/classes/types.d.ts +10 -0
  128. package/components/mui_extended/Accordion/index.3faafd8b.js +127 -0
  129. package/components/mui_extended/Accordion/tests/constants.d.ts +1 -0
  130. package/components/mui_extended/Accordion/tests/utils.d.ts +2 -0
  131. package/components/mui_extended/Accordion/types.d.ts +2 -1
  132. package/components/mui_extended/Avatar/{index.1e1a91a3.js → index.75e6ed57.js} +3 -1
  133. package/components/mui_extended/Button/{index.aebbab34.js → index.fdb5dcbd.js} +2 -2
  134. package/components/mui_extended/IconButton/{index.3b05af71.js → index.1a9d4fa5.js} +1 -1
  135. package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -1
  136. package/components/mui_extended/MenuActions/{index.ca5ce35a.js → index.ba1da3b3.js} +4 -4
  137. package/components/mui_extended/MenuActions/types.d.ts +2 -2
  138. package/components/mui_extended/Pager/{index.80ec975a.js → index.67bda2c5.js} +1 -1
  139. package/components/mui_extended/Tab/classes/constants.d.ts +1 -0
  140. package/components/mui_extended/Tab/classes/index.d.ts +7 -0
  141. package/components/mui_extended/Tab/classes/types.d.ts +7 -0
  142. package/components/mui_extended/Tab/index.9e2f6e34.js +71 -0
  143. package/components/mui_extended/Tab/tests/constants.d.ts +1 -0
  144. package/components/mui_extended/Tab/tests/utils.d.ts +2 -0
  145. package/components/mui_extended/Tooltip/Tooltip.d.ts +3 -0
  146. package/components/mui_extended/Tooltip/classes/constants.d.ts +1 -0
  147. package/components/mui_extended/Tooltip/classes/index.d.ts +6 -0
  148. package/components/mui_extended/Tooltip/classes/types.d.ts +6 -0
  149. package/components/mui_extended/Tooltip/index.5a795dcd.js +43 -0
  150. package/components/mui_extended/Tooltip/index.d.ts +2 -0
  151. package/components/mui_extended/Tooltip/types.d.ts +6 -0
  152. package/components/mui_extended/index.73e536de.js +21 -0
  153. package/components/mui_extended/index.d.ts +2 -1
  154. package/contexts/ModalContext/{index.a0de81f0.js → index.699f95fa.js} +1 -1
  155. package/contexts/ModalContext/types.d.ts +2 -0
  156. package/contexts/RHFormContext/classes/constants.d.ts +1 -0
  157. package/contexts/RHFormContext/classes/index.d.ts +9 -0
  158. package/contexts/RHFormContext/classes/types.d.ts +6 -0
  159. package/contexts/RHFormContext/{index.a7511399.js → index.fe175bab.js} +33 -9
  160. package/hooks/useModal/{index.26075cdd.js → index.7b7d26ba.js} +1 -1
  161. package/index.js +103 -95
  162. package/package.json +1 -1
  163. package/{react-draggable.e625b0d1.js → react-draggable.6d7949a3.js} +1 -1
  164. package/{react-resizable.24367d77.js → react-resizable.b6f8e04a.js} +2 -2
  165. package/utils/{index.b61dccbe.js → index.008b4c2a.js} +0 -12
  166. package/utils/types.d.ts +1 -1
  167. package/components/AccountPopover/style.d.ts +0 -2
  168. package/components/AppBar/styles.d.ts +0 -2
  169. package/components/CommonActions/components/Actions/styles.d.ts +0 -2
  170. package/components/DataGrid/styles.d.ts +0 -3
  171. package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -2
  172. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/styles.d.ts +0 -3
  173. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/styles.d.ts +0 -2
  174. package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/styles.d.ts +0 -4
  175. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/styles.d.ts +0 -2
  176. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -8
  177. package/components/DataGrid/subcomponents/Table/styles.d.ts +0 -3
  178. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -2
  179. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -6
  180. package/components/DynamicFilter/subcomponents/ApplyedFilters/styles.d.ts +0 -3
  181. package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/styles.d.ts +0 -6
  182. package/components/DynamicFilter/subcomponents/ClearFilters/styles.d.ts +0 -3
  183. package/components/DynamicFilter/subcomponents/FilterButton/styles.d.ts +0 -3
  184. package/components/DynamicFilter/subcomponents/InnerForHooks/styles.d.ts +0 -3
  185. package/components/DynamicFilter/subcomponents/PopoverFilter/styles.d.ts +0 -2
  186. package/components/HelperText/styles.d.ts +0 -2
  187. package/components/Icon/styles.d.ts +0 -4
  188. package/components/Image/styles.d.ts +0 -3
  189. package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +0 -2
  190. package/components/Image/subcomponents/Skeleton/styles.d.ts +0 -2
  191. package/components/LanguagePopover/styles.d.ts +0 -6
  192. package/components/NavLink/styles.d.ts +0 -2
  193. package/components/NoItemSelected/styles.d.ts +0 -5
  194. package/components/ObjectLogs/components/DetailDialog/styles.d.ts +0 -3
  195. package/components/ObjectLogs/styles.d.ts +0 -4
  196. package/components/PaperForm/styles.d.ts +0 -7
  197. package/components/Period/index.ff110093.js +0 -280
  198. package/components/Period/styles.d.ts +0 -7
  199. package/components/PropertyValue/styles.d.ts +0 -6
  200. package/components/ResizeableWindow/styles.d.ts +0 -5
  201. package/components/ScrollBar/styles.d.ts +0 -8
  202. package/components/SideBar/styles.d.ts +0 -5
  203. package/components/SideBar/subcomponents/ContentDesktop/style.d.ts +0 -2
  204. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +0 -3
  205. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +0 -5
  206. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +0 -2
  207. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +0 -2
  208. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +0 -9
  209. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/styles.d.ts +0 -3
  210. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +0 -2
  211. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +0 -22
  212. package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/styles.d.ts +0 -6
  213. package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +0 -3
  214. package/components/SplitLayout/styles.d.ts +0 -4
  215. package/components/animate/LoadingScreen/styles.d.ts +0 -3
  216. package/components/animate/PropagateLoader/syles.d.ts +0 -2
  217. package/components/areas/components/AreasAdmin/styles.d.ts +0 -2
  218. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +0 -4
  219. package/components/areas/components/AreasViewer/styles.d.ts +0 -2
  220. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.d.ts +0 -2
  221. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/styles.d.ts +0 -9
  222. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -3
  223. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -2
  224. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -3
  225. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -2
  226. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -2
  227. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -6
  228. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/styles.d.ts +0 -3
  229. package/components/areas/components/index.2ed9d60b.js +0 -14
  230. package/components/areas/index.d6b8e205.js +0 -16
  231. package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -2
  232. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +0 -2
  233. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +0 -4
  234. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -5
  235. package/components/hook-form/RHFCheckbox/styles.d.ts +0 -15
  236. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +0 -3
  237. package/components/hook-form/RHFDateTime/styles.d.ts +0 -2
  238. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/styles.d.ts +0 -2
  239. package/components/hook-form/RHFPeriod/index.77486f61.js +0 -55
  240. package/components/hook-form/RHFPeriod/styles.d.ts +0 -2
  241. package/components/hook-form/RHFTextField/styles.d.ts +0 -3
  242. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
  243. package/components/hook-form/RHFTextFieldPassword/styles.d.ts +0 -2
  244. package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +0 -2
  245. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +0 -12
  246. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -2
  247. package/components/hook-form/RHFUpload/index.522bcad5.js +0 -283
  248. package/components/modal/ModalDialog/styles.d.ts +0 -9
  249. package/components/modal/WindowBase/styles.d.ts +0 -2
  250. package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -6
  251. package/components/modal/WindowBase.c223e4da.js +0 -126
  252. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +0 -6
  253. package/components/modal/WindowConfirm.023e293f.js +0 -132
  254. package/components/modal/index.dbce0cab.js +0 -36
  255. package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -3
  256. package/components/mui_extended/Accordion/index.03bd0e2a.js +0 -107
  257. package/components/mui_extended/Accordion/styles.d.ts +0 -4
  258. package/components/mui_extended/Avatar/styles.d.ts +0 -2
  259. package/components/mui_extended/Button/styles.d.ts +0 -13
  260. package/components/mui_extended/IconButton/styles.d.ts +0 -2
  261. package/components/mui_extended/ImageButton/styles.d.ts +0 -2
  262. package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
  263. package/components/mui_extended/MenuActions/styles.d.ts +0 -30
  264. package/components/mui_extended/Pager/components/PagerActions/styles.d.ts +0 -2
  265. package/components/mui_extended/Pager/styles.d.ts +0 -6
  266. package/components/mui_extended/Popover/styles.d.ts +0 -1
  267. package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +0 -3
  268. package/components/mui_extended/Tab/index.e0653a0a.js +0 -32
  269. package/components/mui_extended/Tab/styles.d.ts +0 -2
  270. package/components/mui_extended/Typography/styles.d.ts +0 -2
  271. package/components/mui_extended/index.6dcdbb1f.js +0 -20
  272. package/contexts/RHFormContext/styles.d.ts +0 -2
  273. /package/components/PaperForm/{index.d.ts → PaperForm.d.ts} +0 -0
  274. /package/components/PropertyValue/{index.d.ts → PropertyValue.d.ts} +0 -0
  275. /package/components/hook-form/RHFUpload/RHFUploadImage/{index.d.ts → RHFUploadImage.d.ts} +0 -0
  276. /package/components/mui_extended/Accordion/{index.d.ts → Accordion.d.ts} +0 -0
@@ -1,103 +1,120 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
1
7
  import { styled } from "@mui/material/styles";
2
- import { r as react_resizable_css } from "../../../../react-resizable.24367d77.js";
3
- import { generateUtilityClasses, Skeleton, styled as styled$1, Typography as Typography$1, Dialog } from "@mui/material";
8
+ import { r as react_resizable_css } from "../../../../react-resizable.b6f8e04a.js";
9
+ import { generateUtilityClasses, Skeleton, Dialog } from "@mui/material";
4
10
  import { unstable_composeClasses } from "@mui/base";
5
- import { g as getComponentUtilityClass } from "../../../../utils/index.b61dccbe.js";
11
+ import { g as getComponentUtilityClass } from "../../../../utils/index.008b4c2a.js";
6
12
  import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
7
- import React__default, { useMemo, useState, useRef, useCallback, useEffect } from "react";
13
+ import React__default, { useMemo, useState, useCallback, useEffect } from "react";
8
14
  import { WidthProvider, Responsive } from "react-grid-layout";
9
15
  import { shallow } from "zustand/shallow";
10
16
  import "../../../animate/index.1f8eadd4.js";
11
- import { m } from "framer-motion";
17
+ import "framer-motion";
12
18
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
13
19
  import "react-router-dom";
14
20
  import "../../../animate/LoadingScreen/index.1d0c4307.js";
15
21
  import "../../../animate/PropagateLoader/index.7fab43c8.js";
16
22
  import { useModuleDictionary, useEnvironment, useModuleSkeleton, useNetwork, useHostTools, axiosOperation } from "@m4l/core";
17
- import { I as Icon } from "../../../Icon/index.f9119f5e.js";
18
- import { I as IconButton } from "../../../mui_extended/IconButton/index.3b05af71.js";
23
+ import { I as Icon } from "../../../Icon/index.9dae8337.js";
24
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.1a9d4fa5.js";
19
25
  import clsx from "clsx";
20
26
  import { useResponsiveDesktop, useHostTheme, useFormatter, useLocales, useFirstRender, useResizeObserver } from "@m4l/graphics";
21
- import { u as useAreasStore } from "../../hooks/useAreas/index.a7b597fb.js";
22
- import "../AreasAdmin/index.158621e0.js";
23
- import { I as ICONS } from "../../icons.3ec589d3.js";
27
+ import { u as useAreasStore } from "../../hooks/useAreas/index.40917e99.js";
28
+ import "../AreasAdmin/index.946eebb9.js";
29
+ import { I as ICONS } from "../../icons.19cde4b4.js";
24
30
  import "../../../ScrollBar/index.bbe48f4d.js";
25
- import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT, T as THROTTLE_RESIZE_TIME } from "../../contexts/AreasContext/index.d98b89fc.js";
26
- import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
27
- import "zustand";
28
- import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
29
- import "react-hook-form";
30
- import "../../../hook-form/RHFAutocomplete/index.af3296ac.js";
31
- import { I as Image } from "../../../Image/index.8aae9322.js";
31
+ import "../../../mui_extended/Accordion/index.3faafd8b.js";
32
32
  import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
33
- import "../../../mui_extended/Accordion/index.03bd0e2a.js";
34
- import "../../../mui_extended/Avatar/index.1e1a91a3.js";
33
+ import "../../../mui_extended/Avatar/index.75e6ed57.js";
35
34
  import "@mui/material/Button";
36
- import { B as Button } from "../../../mui_extended/Button/index.aebbab34.js";
35
+ import { B as Button } from "../../../mui_extended/Button/index.fdb5dcbd.js";
36
+ import "../../../Image/index.c18ebf5a.js";
37
37
  import "@mui/lab";
38
38
  import "../../../mui_extended/Popover/index.9f35d0eb.js";
39
- import { M as MenuActions } from "../../../mui_extended/MenuActions/index.ca5ce35a.js";
40
- import "../../../mui_extended/Pager/index.80ec975a.js";
41
- import "../../../mui_extended/Tab/index.e0653a0a.js";
42
- import "../../../HelperText/index.ec9b3e6a.js";
39
+ import { M as MenuActions } from "../../../mui_extended/MenuActions/index.ba1da3b3.js";
40
+ import "../../../mui_extended/Pager/index.67bda2c5.js";
41
+ import "../../../mui_extended/Tab/index.9e2f6e34.js";
42
+ import "../../../mui_extended/Tooltip/index.5a795dcd.js";
43
+ import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.d34d398f.js";
44
+ import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT, T as THROTTLE_RESIZE_TIME } from "../../contexts/AreasContext/index.f0397b7c.js";
45
+ import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
46
+ import "zustand";
47
+ import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
48
+ import "react-hook-form";
49
+ import "../../../hook-form/RHFAutocomplete/index.a063dc44.js";
50
+ import "../../../HelperText/index.9864f773.js";
43
51
  import debounce from "lodash/debounce";
44
- import "../../../hook-form/RHFAutocompleteAsync/index.76864056.js";
45
- import "../../../hook-form/RHFCheckbox/index.865ba239.js";
52
+ import "../../../hook-form/RHFAutocompleteAsync/index.ddfd9cc9.js";
53
+ import "../../../hook-form/RHFCheckbox/index.7e7f220b.js";
46
54
  import "@mui/x-date-pickers";
47
- import "../../../hook-form/RHFDateTime/index.fd9c5aca.js";
48
- import "../../../hook-form/RHFTextField/index.abcbc2d3.js";
49
- import "../../../hook-form/RHFPeriod/index.77486f61.js";
50
- import "../../../Period/index.ff110093.js";
51
- import "../../../CommonActions/components/Actions/index.37ffde59.js";
52
- import "../../../../contexts/ModalContext/index.a0de81f0.js";
53
- import { c as cjs } from "../../../../react-draggable.e625b0d1.js";
54
- import "../../../ModalDialog/index.f652ea12.js";
55
- import { R as ResizeableWindow } from "../../../Resizeable/index.41a8048b.js";
56
- import "../../../modal/WindowConfirm.023e293f.js";
57
- import "../../../modal/WindowBase.c223e4da.js";
55
+ import "../../../hook-form/RHFDateTime/index.d330709b.js";
56
+ import "../../../hook-form/RHFTextField/index.e5336d09.js";
57
+ import "../../../hook-form/RHFPeriod/index.e2b1293b.js";
58
+ import "../../../Period/index.526791a3.js";
59
+ import "../../../CommonActions/components/Actions/index.e376a68e.js";
60
+ import "../../../../contexts/ModalContext/index.699f95fa.js";
61
+ import { c as cjs } from "../../../../react-draggable.6d7949a3.js";
62
+ import "../../../ModalDialog/index.d9c5d400.js";
63
+ import { R as ResizeableWindow } from "../../../Resizeable/index.f6e48e56.js";
64
+ import "../../../modal/index.1b25b61d.js";
58
65
  import "lodash/isString";
59
66
  import "react-dropzone";
60
- import "../../../hook-form/RHFUpload/index.522bcad5.js";
61
- import "../../../DataGrid/index.c0c626cd.js";
67
+ import "../../../hook-form/RHFUpload/index.17e7f9eb.js";
68
+ import "../../../DataGrid/index.ffaf000e.js";
62
69
  import "react-dnd";
63
70
  import "react-dnd-html5-backend";
64
- import "../../../DynamicFilter/index.3034c6ba.js";
71
+ import "../../../DynamicFilter/index.d7c03a61.js";
65
72
  import "yup";
66
- import "@hookform/resolvers/yup";
67
- import "../../../../contexts/RHFormContext/index.a7511399.js";
68
- import "../../../LanguagePopover/index.491e1306.js";
69
- import "../../../NavLink/index.f8aee9f4.js";
70
- import "../../../NoItemSelected/index.cce86db4.js";
71
- import "../../../ObjectLogs/index.c31b3f8b.js";
73
+ import "../../../../contexts/RHFormContext/index.fe175bab.js";
74
+ import "../../../LanguagePopover/index.938c6675.js";
75
+ import "../../../NavLink/index.21c8fd90.js";
76
+ import "../../../NoItemSelected/index.23dfc897.js";
77
+ import "../../../ObjectLogs/index.a2709fc2.js";
72
78
  import "../../../../react-json-view.57125fcf.js";
73
- import "../../../PaperForm/index.d79c6f76.js";
79
+ import "../../../PaperForm/index.5e1bc99f.js";
74
80
  import "../../../Page/index.4237c241.js";
75
- import "../../../PropertyValue/index.dfcfe1ba.js";
81
+ import "../../../PropertyValue/index.8a1adf3e.js";
76
82
  import "../../../SplitLayout/index.9ef430f6.js";
77
83
  import "../../../../react-splitter-layout.8b1655c8.js";
78
- import "../../../SideBar/index.1ae13a73.js";
79
- import "../../../AppBar/index.cc974d56.js";
80
- import "../../../AccountPopover/index.93aefccd.js";
81
- import { g as getAreasDictionary } from "../../dictionary.e72db809.js";
84
+ import "../../../SideBar/index.9e1a5b96.js";
85
+ import "../../../AppBar/index.f04f5e45.js";
86
+ import "../../../AccountPopover/index.47cf6c43.js";
87
+ import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.3fabae50.js";
82
88
  import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
83
- import { v as varBounce } from "../../../animate/variants/bounce.784aaaaa.js";
84
- import { D as DraggableWindow } from "../../../DraggableWindow/index.b95a678e.js";
89
+ import { D as DraggableWindow } from "../../../DraggableWindow/index.b08af1dc.js";
85
90
  import { throttle } from "lodash";
86
91
  const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
87
92
  "root",
88
93
  "areaRoot",
94
+ "areasLoadingErrorRoot",
95
+ "areasLoadingErrorLoading",
96
+ "areasLoadingError",
97
+ "areasLoadingErrorIcon",
98
+ "areasLoadingErrorTitle",
99
+ "areasLoadingErrorDescription",
100
+ "areasLoadingErrorDivider",
101
+ "areasLoadingErrorTextAction",
89
102
  "areaGridLayoutPanelContainer",
90
103
  "areaGridLayout",
91
104
  "areaGridLayoutPopupsContainer",
92
105
  "windowRoot",
93
106
  "windowHeader",
107
+ "windowHeaderContent",
94
108
  "windowHeaderTitle",
95
109
  "windowHeaderMainActions",
96
110
  "windowContent",
97
111
  "windowPopupRoot",
98
112
  "windowModalRoot",
113
+ "windowLinearProgressRoot",
114
+ "windowLinearProgressBar",
99
115
  "windowRootContainer",
100
116
  "windowToastiesContainer",
117
+ "windowToastiesContainerTostys",
101
118
  "windowToastyContainer",
102
119
  "windowToastyMeesageButtonsContainer",
103
120
  "windowToastyMessage",
@@ -106,6 +123,7 @@ const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
106
123
  "windowToastyClose",
107
124
  "panelWindowsRoot",
108
125
  "panelWindowsButtonContainer",
126
+ "containerLinearProgress",
109
127
  "selected",
110
128
  "selectedWindow",
111
129
  "isMobile",
@@ -120,6 +138,13 @@ const useAreasViewerUtilityClasses = (ownerState) => {
120
138
  const slots = {
121
139
  root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
122
140
  areaRoot: ["areaRoot"],
141
+ areasLoadingErrorRoot: ["areasLoadingErrorRoot"],
142
+ areasLoadingErrorLoading: ["areasLoadingErrorLoading"],
143
+ areasLoadingError: ["areasLoadingError"],
144
+ areasLoadingErrorIcon: ["areasLoadingErrorIcon"],
145
+ areasLoadingErrorTitle: ["areasLoadingErrorTitle"],
146
+ areasLoadingErrorDescription: ["areasLoadingErrorDescription"],
147
+ areasLoadingErrorDivider: ["areasLoadingErrorDivider"],
123
148
  areaGridLayoutPanelContainer: ["areaGridLayoutPanelContainer"],
124
149
  areaGridLayout: ["areaGridLayout"],
125
150
  areaGridLayoutPopupsContainer: ["areaGridLayoutPopupsContainer"],
@@ -129,10 +154,13 @@ const useAreasViewerUtilityClasses = (ownerState) => {
129
154
  windowHeaderTitle: ["windowHeaderTitle"],
130
155
  windowHeaderMainActions: ["windowHeaderMainActions"],
131
156
  windowContent: ["windowContent"],
157
+ windowLinearProgressRoot: ["windowLinearProgressRoot"],
158
+ windowLinearProgressBar: ["windowLinearProgressBar"],
132
159
  windowPopupRoot: ["windowPopupRoot"],
133
160
  windowModalRoot: ["windowModalRoot"],
134
161
  selectedWindow: ["selectedWindow"],
135
162
  windowToastiesContainer: ["windowToastiesContainer"],
163
+ windowToastiesContainerTostys: ["windowToastiesContainerTostys"],
136
164
  windowToastyContainer: ["windowToastiesContainer"],
137
165
  windowToastyMeesageButtonsContainer: ["windowToastyMeesageButtonsContainer"],
138
166
  windowToastyMessage: ["windowToastyMessage"],
@@ -233,27 +261,6 @@ const AreasViewerRoot = styled("div")`
233
261
  & .${areasViewerClasses.windowRoot}.${areasViewerClasses.selected} {
234
262
  border-top: 1px solid green;
235
263
  }
236
- // windowHeader
237
- & .${areasViewerClasses.windowHeader} {
238
- display: flex;
239
- gap: 4px;
240
-
241
- align-items: center;
242
- position: relative;
243
-
244
- padding: 8px;
245
- justify-content: end;
246
- min-height: ${(props) => props.theme.spacing(5)};
247
-
248
- border-bottom: 1px solid ${(props) => props.theme.palette.divider};
249
- overflow: hidden;
250
- cursor: move;
251
- height: 60px;
252
-
253
- > span: {
254
- margin-right: 12px;
255
- }
256
- }
257
264
  // windowHeaderTitle
258
265
  & .${areasViewerClasses.windowHeaderTitle} {
259
266
  width: 100%;
@@ -314,7 +321,7 @@ const AreasViewerRoot = styled("div")`
314
321
  }
315
322
 
316
323
  .react-grid-item.react-grid-placeholder {
317
- background: green;
324
+ background: ${(props) => props.theme.palette.state.focus};
318
325
  opacity: 0.2;
319
326
  transition-duration: 100ms;
320
327
  z-index: 2;
@@ -592,29 +599,41 @@ function getMainActions(isDesktop, moduleActions) {
592
599
  );
593
600
  return mainActions;
594
601
  }
595
- function getMenuActions(windowId, isDesktop, moduleActions, urlPrefix, saveModuleCookies, resetModuleCookies, version) {
602
+ function getMenuActions(options) {
603
+ const {
604
+ windowId,
605
+ isDesktop,
606
+ moduleActions,
607
+ urlPrefix,
608
+ saveModuleCookies,
609
+ resetModuleCookies,
610
+ version,
611
+ windowOptions = { allowPersistCookies: false }
612
+ } = options;
596
613
  let menuActions = [...moduleActions.filter((action) => action.visibility !== "allways")];
597
614
  if (isDesktop !== void 0 && isDesktop) {
598
615
  menuActions = menuActions.filter((action) => action.visibility === "normal");
599
616
  }
600
- const saveCookiesAction = {
601
- urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
602
- onClick: () => saveModuleCookies(windowId),
603
- disabled: false,
604
- visibility: "normal",
605
- dictionaryId: getAreasDictionary("label_persist_module_cookies"),
606
- key: "save_cookies"
607
- };
608
- menuActions.push(saveCookiesAction);
609
- const resetCookiesAction = {
610
- urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
611
- onClick: () => resetModuleCookies(windowId),
612
- disabled: false,
613
- visibility: "normal",
614
- dictionaryId: getAreasDictionary("label_reset_module_cookies"),
615
- key: "reset_cookes"
616
- };
617
- menuActions.push(resetCookiesAction);
617
+ if (windowOptions.allowPersistCookies) {
618
+ const saveCookiesAction = {
619
+ urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
620
+ onClick: () => saveModuleCookies(windowId),
621
+ disabled: false,
622
+ visibility: "normal",
623
+ dictionaryId: getAreasDictionary("label_persist_module_cookies"),
624
+ key: "save_cookies"
625
+ };
626
+ menuActions.push(saveCookiesAction);
627
+ const resetCookiesAction = {
628
+ urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
629
+ onClick: () => resetModuleCookies(windowId),
630
+ disabled: false,
631
+ visibility: "normal",
632
+ dictionaryId: getAreasDictionary("label_reset_module_cookies"),
633
+ key: "reset_cookes"
634
+ };
635
+ menuActions.push(resetCookiesAction);
636
+ }
618
637
  if (version) {
619
638
  const versionAction = {
620
639
  urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.VERSION}`,
@@ -649,7 +668,7 @@ function MainActions(props) {
649
668
  children: mainActions.map((mainAction) => {
650
669
  const tooltip = mainAction.label !== void 0 ? mainAction.label : getLabel(mainAction.dictionaryId || "");
651
670
  return /* @__PURE__ */ jsx(IconButton, {
652
- src: mainAction.urlIcon,
671
+ src: mainAction.urlIcon || "",
653
672
  className: mainAction.className,
654
673
  onClick: mainAction.onClick,
655
674
  "aria-label": mainAction.label,
@@ -665,9 +684,9 @@ function Header(props) {
665
684
  windowId,
666
685
  emergeType
667
686
  } = props;
668
- const [url_icon, title, moduleActions, onClose, version, singleId] = useAreasStore((state) => {
687
+ const [url_icon, title, moduleActions, onClose, version, windowOptions, singleId] = useAreasStore((state) => {
669
688
  const window2 = state.hashWindows[windowId];
670
- return [window2.url_icon, window2.title, window2.moduleActions, window2.onClose, window2.version, state.hashAreas[areaId].singleId];
689
+ return [window2.url_icon, window2.title, window2.moduleActions, window2.onClose, window2.version, window2.windowOptions, state.hashAreas[areaId].singleId];
671
690
  }, shallow);
672
691
  const {
673
692
  saveModuleCookies,
@@ -685,7 +704,16 @@ function Header(props) {
685
704
  const isSkeleton = useModuleSkeleton();
686
705
  const urlPrefix = `${host_static_assets}/${environment_assets}`;
687
706
  const menuActions = useMemo(() => {
688
- return getMenuActions(windowId, isDesktop, moduleActions, urlPrefix, saveModuleCookies, resetModuleCookies, version);
707
+ return getMenuActions({
708
+ windowId,
709
+ isDesktop,
710
+ moduleActions,
711
+ urlPrefix,
712
+ saveModuleCookies,
713
+ resetModuleCookies,
714
+ version,
715
+ windowOptions
716
+ });
689
717
  }, [moduleActions, isDesktop]);
690
718
  const onCloseLocal = () => {
691
719
  onClose && onClose(windowId);
@@ -702,112 +730,216 @@ function Header(props) {
702
730
  }
703
731
  return /* @__PURE__ */ jsxs("div", {
704
732
  className: clsx(areasViewerClasses.windowHeader, "m4l_draggable_handle"),
705
- children: [/* @__PURE__ */ jsx(Icon, {
706
- src: url_icon,
707
- size: "medium"
708
- }), /* @__PURE__ */ jsx(Typography, {
709
- className: areasViewerClasses.windowHeaderTitle,
710
- variant: "h5",
711
- children: `${title}`
712
- }), /* @__PURE__ */ jsx(MainActions, {
713
- windowId
714
- }), isDesktop && emergeType === "layout" && /* @__PURE__ */ jsx(IconButton, {
715
- onClick: maxNormalize,
716
- "aria-label": "click",
717
- src: singleId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`
718
- }), menuActions.length > 0 && /* @__PURE__ */ jsx(MenuActions, {
719
- arrowType: "no-arrow",
720
- marginTop: "12px!important",
721
- marginLeft: "14px!important",
722
- anchorOrigin: {
723
- vertical: "bottom",
724
- horizontal: "right"
725
- },
726
- transformOrigin: {
727
- vertical: "top",
728
- horizontal: "right"
729
- },
730
- menuActions
731
- }), onClose && /* @__PURE__ */ jsx(IconButton, {
732
- onClick: onCloseLocal,
733
- "aria-label": "click",
734
- src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`
735
- })]
736
- });
737
- }
738
- const WrapperLinearProgress = styled$1("div")(() => ({
739
- width: "70%",
740
- margin: "auto auto",
741
- position: "absolute"
742
- }));
743
- const WrapperFallBackNotFound = styled$1("div")(({
744
- theme
745
- }) => ({
746
- width: "100%",
747
- height: "100%",
748
- display: "flex",
749
- flexDirection: "column",
750
- justifyContent: "center",
751
- alignItems: "center",
752
- gap: theme.spacing(3)
753
- }));
754
- function FallBackNotFound(props) {
755
- const {
756
- setNetworkRefresh
757
- } = props;
758
- const {
759
- getLabel
760
- } = useModuleDictionary();
761
- const {
762
- host_static_assets,
763
- environment_assets
764
- } = useEnvironment();
765
- const handlerClick = () => {
766
- setNetworkRefresh((prop) => !prop);
767
- };
768
- return /* @__PURE__ */ jsxs(WrapperFallBackNotFound, {
769
- children: [/* @__PURE__ */ jsx(m.div, {
770
- variants: varBounce().in,
771
- children: /* @__PURE__ */ jsx(Typography$1, {
772
- variant: "h3",
773
- paragraph: true,
774
- children: getLabel("loading_mf_title")
775
- })
776
- }), /* @__PURE__ */ jsx(Typography$1, {
777
- sx: {
778
- color: "text.secondary"
779
- },
780
- children: getLabel("loading_mf_description")
781
- }), /* @__PURE__ */ jsx(m.div, {
782
- variants: varBounce().in,
783
- children: /* @__PURE__ */ jsx(Image, {
784
- src: `${host_static_assets}/${environment_assets}/frontend/domain/host/commons/assets/img/illustration_noauth.png`,
785
- ratio: "1:1"
786
- })
787
- }), /* @__PURE__ */ jsx(Button, {
788
- size: "medium",
789
- variant: "contained",
790
- onClick: handlerClick,
791
- children: getLabel("loading_mf_intro")
733
+ children: [/* @__PURE__ */ jsx(LinearProgressIndeterminate, {}), /* @__PURE__ */ jsxs("div", {
734
+ className: areasViewerClasses.windowHeaderContent,
735
+ children: [/* @__PURE__ */ jsx(Icon, {
736
+ src: url_icon,
737
+ size: "medium"
738
+ }), /* @__PURE__ */ jsx(Typography, {
739
+ className: areasViewerClasses.windowHeaderTitle,
740
+ variant: "h5",
741
+ children: `${title}`
742
+ }), /* @__PURE__ */ jsx(MainActions, {
743
+ windowId
744
+ }), isDesktop && emergeType === "layout" && /* @__PURE__ */ jsx(IconButton, {
745
+ onClick: maxNormalize,
746
+ "aria-label": "click",
747
+ src: singleId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`
748
+ }), menuActions.length > 0 && /* @__PURE__ */ jsx(MenuActions, {
749
+ arrowType: "no-arrow",
750
+ marginTop: "12px!important",
751
+ marginLeft: "14px!important",
752
+ anchorOrigin: {
753
+ vertical: "bottom",
754
+ horizontal: "right"
755
+ },
756
+ transformOrigin: {
757
+ vertical: "top",
758
+ horizontal: "right"
759
+ },
760
+ menuActions
761
+ }), onClose && /* @__PURE__ */ jsx(IconButton, {
762
+ onClick: onCloseLocal,
763
+ "aria-label": "click",
764
+ src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`
765
+ })]
792
766
  })]
793
767
  });
794
768
  }
795
- const LoadingMF = (props) => {
769
+ const ProggessLoadingMF = (props) => {
796
770
  const {
797
- loadingProgress,
798
- setNetworkRefresh
771
+ loadingProgress
799
772
  } = props;
800
- if (loadingProgress !== -1) {
801
- return /* @__PURE__ */ jsx(WrapperLinearProgress, {
802
- id: "WrapperLinearProgress",
773
+ if (loadingProgress >= 0 && loadingProgress <= 100) {
774
+ return /* @__PURE__ */ jsx("div", {
775
+ className: areasViewerClasses.containerLinearProgress,
803
776
  children: /* @__PURE__ */ jsx(LinearProgress, {
804
777
  variant: "determinate",
805
778
  value: loadingProgress
806
779
  })
807
780
  });
781
+ } else {
782
+ console.log("LoadingMF***************************************", loadingProgress);
783
+ }
784
+ return null;
785
+ };
786
+ class ObservableLoaderMF {
787
+ constructor(host, scriptId, networkOperation, isRemote) {
788
+ __publicField(this, "host");
789
+ __publicField(this, "isRemote");
790
+ __publicField(this, "eventStatus");
791
+ __publicField(this, "scriptId");
792
+ __publicField(this, "networkOperation");
793
+ __publicField(this, "subscribers");
794
+ this.host = host;
795
+ this.subscribers = [];
796
+ this.scriptId = scriptId;
797
+ this.networkOperation = networkOperation;
798
+ this.isRemote = isRemote;
799
+ this.eventStatus = "progress";
800
+ console.log("ObservableLoaderMF constructor", this.host, scriptId);
801
+ this.start = this.start.bind(this);
802
+ this.subscribe = this.subscribe.bind(this);
803
+ this.unsubscribe = this.unsubscribe.bind(this);
804
+ this.notify = this.notify.bind(this);
805
+ this.tryAgain = this.tryAgain.bind(this);
806
+ setTimeout(this.start, 100);
808
807
  }
809
- return /* @__PURE__ */ jsx(FallBackNotFound, {
810
- setNetworkRefresh
808
+ tryAgain() {
809
+ console.log("start tryAgain");
810
+ if (this.eventStatus === "error") {
811
+ setTimeout(this.start, 100);
812
+ new Promise((resolve) => {
813
+ resolve("ok");
814
+ }).then(() => {
815
+ this.start();
816
+ });
817
+ }
818
+ console.log("end tryAgain");
819
+ }
820
+ async start() {
821
+ let percentCompleted = 0;
822
+ this.notify("progress", percentCompleted);
823
+ console.log("ObservableLoaderMF start", this.host);
824
+ const manifest = await fetch(`${this.host}/manifest.json?rnd=${Math.random()}`).then((res) => res.json()).catch(() => {
825
+ console.debug("Error fetching manifest", `${this.host}/manifest.json`);
826
+ this.notify("error", 0);
827
+ return void 0;
828
+ });
829
+ console.log("ObservableLoaderMF cargado de manifest");
830
+ if (!manifest) {
831
+ return;
832
+ }
833
+ percentCompleted = 10;
834
+ this.notify("progress", percentCompleted);
835
+ const urlFile = `${this.host}/${manifest["src/index.tsx"]["file"]}?rnd=${Math.random()}`;
836
+ console.log("ObservableLoaderMF file", urlFile);
837
+ const controller = new AbortController();
838
+ const ret = await this.networkOperation({
839
+ method: "GET",
840
+ endPoint: urlFile,
841
+ isRemote: this.isRemote,
842
+ headers: { "Content-Type": "application/json" },
843
+ onDownloadProgress: (progressEvent) => {
844
+ try {
845
+ if (progressEvent.lengthComputable) {
846
+ percentCompleted = 10 + Math.round(progressEvent.loaded * 90 / progressEvent.total);
847
+ } else {
848
+ percentCompleted = 10 + progressEvent.loaded / 15e5 * 90;
849
+ if (percentCompleted > 95)
850
+ percentCompleted = 95;
851
+ }
852
+ } catch (error) {
853
+ }
854
+ this.notify("progress", percentCompleted);
855
+ },
856
+ isExternalUrl: true,
857
+ responseType: "text",
858
+ signal: controller.signal
859
+ }).then(() => {
860
+ return "ok";
861
+ }).catch(() => {
862
+ this.notify("error", 0);
863
+ return "error";
864
+ });
865
+ if (ret == "ok") {
866
+ const script = document.createElement("script");
867
+ const startTime = new Date().getTime();
868
+ script.id = this.scriptId;
869
+ script.crossOrigin = "";
870
+ script.type = "module";
871
+ script.src = urlFile || "";
872
+ script.onload = () => {
873
+ console.debug("Completed", new Date().getTime(), new Date().getTime() - startTime);
874
+ this.notify("complete", 100);
875
+ };
876
+ document.head.appendChild(script);
877
+ console.debug("Script appened", startTime);
878
+ }
879
+ }
880
+ subscribe(subscriber) {
881
+ this.subscribers.push(subscriber);
882
+ this.tryAgain();
883
+ }
884
+ unsubscribe(subscriber) {
885
+ console.log("unsubscribe", subscriber);
886
+ const index = this.subscribers.indexOf(subscriber);
887
+ if (index !== -1) {
888
+ this.subscribers.splice(index, 1);
889
+ }
890
+ }
891
+ notify(newEvent, progress) {
892
+ this.eventStatus = newEvent;
893
+ this.subscribers.forEach((subscriber) => {
894
+ subscriber(newEvent, progress);
895
+ });
896
+ }
897
+ }
898
+ const AreasLoadingError = (props) => {
899
+ const {
900
+ status,
901
+ action
902
+ } = props;
903
+ const {
904
+ host_static_assets,
905
+ environment_assets
906
+ } = useEnvironment();
907
+ const {
908
+ getLabel
909
+ } = useModuleDictionary();
910
+ console.log("test status view", status);
911
+ return /* @__PURE__ */ jsx("div", {
912
+ className: areasViewerClasses.areasLoadingErrorRoot,
913
+ children: status !== "error" ? /* @__PURE__ */ jsx("div", {
914
+ className: areasViewerClasses.areasLoadingErrorLoading,
915
+ children: /* @__PURE__ */ jsx(LinearProgressIndeterminate, {})
916
+ }) : /* @__PURE__ */ jsxs("div", {
917
+ className: areasViewerClasses.areasLoadingError,
918
+ children: [/* @__PURE__ */ jsx(Icon, {
919
+ className: areasViewerClasses.areasLoadingErrorIcon,
920
+ src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NAVIGATE_ERROR}`
921
+ }), /* @__PURE__ */ jsx(Typography, {
922
+ variant: "h3",
923
+ skeletonWidth: "100px",
924
+ className: areasViewerClasses.areasLoadingErrorTitle,
925
+ children: getLabel(DICCTIONARY.area_error_title)
926
+ }), /* @__PURE__ */ jsx(Typography, {
927
+ variant: "subtitle",
928
+ skeletonWidth: "100px",
929
+ className: areasViewerClasses.areasLoadingErrorDescription,
930
+ children: getLabel(DICCTIONARY.area_error_description)
931
+ }), /* @__PURE__ */ jsx("div", {
932
+ className: areasViewerClasses.areasLoadingErrorDivider
933
+ }), /* @__PURE__ */ jsx(Typography, {
934
+ variant: "paragraph",
935
+ skeletonWidth: "100px",
936
+ className: areasViewerClasses.areasLoadingErrorTextAction,
937
+ children: getLabel(DICCTIONARY.area_error_recommendation)
938
+ }), /* @__PURE__ */ jsx(Button, {
939
+ onClick: action,
940
+ children: getLabel(DICCTIONARY.area_error_intro)
941
+ })]
942
+ })
811
943
  });
812
944
  };
813
945
  function getDivScritId(prefix, moduleId) {
@@ -837,14 +969,12 @@ function MFLoader(props) {
837
969
  const environment = useEnvironment();
838
970
  const hostTools = useHostTools();
839
971
  const formatter = useFormatter();
840
- const [isLoading, setIsLoading] = useState(true);
841
- const [networkProgress, setNetworkProgress] = useState(-1);
842
- const [_networkRefresh, setNetworkRefresh] = useState(false);
972
+ const [statusLoader, setStatusLoader] = useState("progress");
973
+ const [loadingProgress, setLoadingProgress] = useState(-1);
843
974
  const {
844
975
  currentLocale
845
976
  } = useLocales();
846
977
  const [divScript, setDivScript] = useState(getDivScritId(prefix, moduleId));
847
- const refTime = useRef(0);
848
978
  const isFirstRender = useFirstRender([moduleId]);
849
979
  const final_host = environment.isLocalhost ? `https://localhost:${debug_port}` : `https://${window.location.host}/mf/${moduleId}`;
850
980
  function cleanUp(dScript) {
@@ -868,7 +998,6 @@ function MFLoader(props) {
868
998
  }
869
999
  const renderMicroFrontend = useCallback((newDScript) => {
870
1000
  try {
871
- setIsLoading(false);
872
1001
  window[`render_${prefix}_${newDScript.moduleId}`](newDScript.divContainerId, environment, hostTools, currentLocale, {
873
1002
  hostThemeOptions,
874
1003
  fnComponentsOverrides
@@ -893,103 +1022,49 @@ function MFLoader(props) {
893
1022
  return () => {
894
1023
  };
895
1024
  }, [moduleId]);
1025
+ const tryAgainOnError = useCallback(() => {
1026
+ window[`observable_${prefix}_${moduleId}`]?.tryAgain();
1027
+ }, []);
896
1028
  useEffect(() => {
897
- setIsLoading(true);
898
- let mounted = true;
899
- const controller = new AbortController();
900
1029
  const dsScript = {
901
1030
  ...divScript
902
1031
  };
903
- const loadIfNotLoaded = async () => {
904
- if (!window[`render_${prefix}_${moduleId}`]) {
905
- let urlFile = "";
906
- setNetworkProgress(0);
907
- const manifest = await fetch(`${final_host}/manifest.json?rnd=${Math.random()}`).then((res) => res.json()).catch(() => {
908
- console.debug("Error fetching manifest", `${final_host}/manifest.json`);
909
- return void 0;
910
- });
911
- if (!manifest) {
912
- return;
913
- }
914
- setNetworkProgress(10);
915
- if (mounted) {
916
- urlFile = `${final_host}/${manifest["src/index.tsx"]["file"]}?rnd=${Math.random()}`;
917
- refTime.current = 0;
918
- await networkOperation({
919
- method: "GET",
920
- endPoint: urlFile,
921
- isRemote: !environment.isLocalhost,
922
- headers: {
923
- "Content-Type": "application/json"
924
- },
925
- onDownloadProgress: (progressEvent) => {
926
- let percentCompleted = 0;
927
- try {
928
- if (progressEvent.lengthComputable) {
929
- percentCompleted = 10 + Math.round(progressEvent.loaded * 90 / progressEvent.total);
930
- } else {
931
- if (refTime.current === 0) {
932
- refTime.current = new Date().getTime();
933
- }
934
- percentCompleted = 10 + progressEvent.loaded / 15e5 * 90;
935
- if (percentCompleted > 95)
936
- percentCompleted = 95;
937
- }
938
- } catch (error) {
939
- }
940
- if (mounted) {
941
- setNetworkProgress(percentCompleted);
942
- }
943
- },
944
- isExternalUrl: true,
945
- responseType: "text",
946
- signal: controller.signal
947
- }).then(() => {
948
- if (mounted) {
949
- setNetworkProgress(100);
950
- }
951
- }).catch(() => {
952
- });
953
- if (mounted) {
954
- const script = document.createElement("script");
955
- script.id = divScript.scriptId;
956
- script.crossOrigin = "";
957
- script.type = "module";
958
- script.src = urlFile || "";
959
- script.onload = () => {
960
- if (mounted) {
961
- console.debug("Script loaded", new Date().getTime());
962
- setNetworkProgress(100);
963
- renderMicroFrontend(dsScript);
964
- }
965
- };
966
- document.head.appendChild(script);
967
- console.debug("Script appened", new Date().getTime());
968
- }
969
- }
970
- } else {
971
- if (mounted) {
972
- renderMicroFrontend(dsScript);
973
- }
1032
+ const observableDownload = (event, progress) => {
1033
+ setLoadingProgress(progress);
1034
+ setStatusLoader(event);
1035
+ if (event === "complete") {
1036
+ renderMicroFrontend(dsScript);
974
1037
  }
975
1038
  };
976
- loadIfNotLoaded();
1039
+ if (!window[`render_${prefix}_${moduleId}`]) {
1040
+ let observableLoaderMF;
1041
+ if (!window[`observable_${prefix}_${moduleId}`]) {
1042
+ observableLoaderMF = new ObservableLoaderMF(final_host, dsScript.scriptId, networkOperation, !environment.isLocalhost);
1043
+ window[`observable_${prefix}_${moduleId}`] = observableLoaderMF;
1044
+ } else {
1045
+ observableLoaderMF = window[`observable_${prefix}_${moduleId}`];
1046
+ }
1047
+ observableLoaderMF.subscribe(observableDownload);
1048
+ } else {
1049
+ setStatusLoader("complete");
1050
+ renderMicroFrontend(dsScript);
1051
+ }
977
1052
  return () => {
978
- mounted = false;
979
- controller.abort();
1053
+ window[`observable_${prefix}_${moduleId}`].unsubscribe(observableDownload);
980
1054
  cleanUp(dsScript);
981
1055
  };
982
1056
  }, [divScript]);
983
- return /* @__PURE__ */ jsxs(Fragment, {
984
- children: [/* @__PURE__ */ jsx("div", {
985
- id: divScript.divContainerId,
986
- style: {
987
- width: "100%",
988
- height: "100%"
989
- }
990
- }), isLoading ? /* @__PURE__ */ jsx(LoadingMF, {
991
- loadingProgress: networkProgress,
992
- setNetworkRefresh
1057
+ return /* @__PURE__ */ jsxs("div", {
1058
+ id: divScript.divContainerId,
1059
+ style: {
1060
+ width: "100%",
1061
+ height: "100%"
1062
+ },
1063
+ children: [statusLoader === "progress" ? /* @__PURE__ */ jsx(ProggessLoadingMF, {
1064
+ loadingProgress
1065
+ }) : null, statusLoader === "error" ? /* @__PURE__ */ jsx(AreasLoadingError, {
1066
+ status: statusLoader,
1067
+ action: tryAgainOnError
993
1068
  }) : null]
994
1069
  });
995
1070
  }
@@ -1039,28 +1114,6 @@ const WindowRoot = styled("div")`
1039
1114
  }
1040
1115
 
1041
1116
  // windowHeader
1042
- & .${areasViewerClasses.windowHeader} {
1043
- display: flex;
1044
- gap: 4px;
1045
-
1046
- align-items: center;
1047
- position: relative;
1048
-
1049
- padding: 8px;
1050
- justify-content: end;
1051
- min-height: ${(props) => props.theme.spacing(5)} ;
1052
-
1053
- border-bottom: 1px solid ${(props) => props.theme.palette.divider},
1054
- overflow: hidden;
1055
- cursor: move;
1056
- height: 60px;
1057
-
1058
-
1059
-
1060
- > span: {
1061
- margin-right: 12px;
1062
- }
1063
- }
1064
1117
  /*
1065
1118
  &.${areasViewerClasses.loading} .${areasViewerClasses.windowHeader} {
1066
1119
  border-bottom: 2px solid red !important;
@@ -1147,23 +1200,23 @@ function Toasty(props) {
1147
1200
  const toasty = useAreasStore((state) => state.hashWindows[windowId].hashToasties[toastyId], shallow);
1148
1201
  console.log("percentExecuted", toasty.percentExecuted, toasty.timer);
1149
1202
  const {
1150
- pinToasty,
1151
- closeToasty
1203
+ pinToast: pinToasty,
1204
+ closeToast: closeToasty
1152
1205
  } = useAreasStore((state) => state.windowActions, shallow);
1153
1206
  const {
1154
1207
  host_static_assets,
1155
1208
  environment_assets
1156
1209
  } = useEnvironment();
1157
- return /* @__PURE__ */ jsxs("div", {
1210
+ return /* @__PURE__ */ jsx("div", {
1158
1211
  className: clsx(areasViewerClasses.windowToastyContainer, areasViewerClasses[toasty.type]),
1159
- children: [toasty.timer ? /* @__PURE__ */ jsx(LinearProgress, {
1160
- variant: "determinate",
1161
- value: toasty.percentExecuted
1162
- }) : null, /* @__PURE__ */ jsxs("div", {
1212
+ children: /* @__PURE__ */ jsxs("div", {
1163
1213
  className: areasViewerClasses.windowToastyMeesageButtonsContainer,
1164
- children: [/* @__PURE__ */ jsx("div", {
1214
+ children: [/* @__PURE__ */ jsxs("div", {
1165
1215
  className: areasViewerClasses.windowToastyMessage,
1166
- children: toasty.message
1216
+ children: [toasty.timer ? /* @__PURE__ */ jsx(LinearProgress, {
1217
+ variant: "determinate",
1218
+ value: toasty.percentExecuted
1219
+ }) : null, toasty.message]
1167
1220
  }), /* @__PURE__ */ jsxs("div", {
1168
1221
  className: areasViewerClasses.windowToastyButtonsContainer,
1169
1222
  children: [/* @__PURE__ */ jsx(IconButton, {
@@ -1180,7 +1233,7 @@ function Toasty(props) {
1180
1233
  src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_CLOSE}`
1181
1234
  })]
1182
1235
  })]
1183
- })]
1236
+ })
1184
1237
  });
1185
1238
  }
1186
1239
  function Toasties(props) {
@@ -1193,11 +1246,14 @@ function Toasties(props) {
1193
1246
  }
1194
1247
  return /* @__PURE__ */ jsx("div", {
1195
1248
  className: areasViewerClasses.windowToastiesContainer,
1196
- children: tosties.map((t) => {
1197
- return /* @__PURE__ */ jsx(Toasty, {
1198
- windowId,
1199
- toastyId: t.id
1200
- }, t.id);
1249
+ children: /* @__PURE__ */ jsx("div", {
1250
+ className: areasViewerClasses.windowToastiesContainerTostys,
1251
+ children: tosties.map((t) => {
1252
+ return /* @__PURE__ */ jsx(Toasty, {
1253
+ windowId,
1254
+ toastyId: t.id
1255
+ }, t.id);
1256
+ })
1201
1257
  })
1202
1258
  });
1203
1259
  }
@@ -1209,6 +1265,8 @@ const Window = (props) => {
1209
1265
  areaId
1210
1266
  } = props;
1211
1267
  const selected = useAreasStore((state) => emergeType === "layout" ? state.hashAreas[areaId].currentLayoutId : state.hashAreas[areaId].currentPopUpId) === windowId;
1268
+ const viewMode = useAreasStore((state) => state.hashAreas[areaId].viewMode, shallow);
1269
+ const singleId = useAreasStore((state) => state.hashAreas[areaId].singleId, shallow);
1212
1270
  const wd = useAreasStore((state) => state.hashWindows[windowId], shallow);
1213
1271
  const {
1214
1272
  setActions,
@@ -1216,8 +1274,9 @@ const Window = (props) => {
1216
1274
  getCookies,
1217
1275
  setCookie,
1218
1276
  close,
1219
- setLoading,
1220
- toasty
1277
+ startProgress,
1278
+ stopProgress,
1279
+ toast
1221
1280
  } = useAreasStore((state) => state.windowActions, shallow);
1222
1281
  const {
1223
1282
  selectWindowPopUp,
@@ -1246,42 +1305,49 @@ const Window = (props) => {
1246
1305
  setCookie(windowId, id, type, cookie);
1247
1306
  },
1248
1307
  close: () => close(windowId),
1249
- setLoading: (isLoading) => {
1250
- setLoading(windowId, isLoading);
1251
- },
1252
- toasty: (toastyOptions) => {
1253
- toasty(windowId, toastyOptions);
1308
+ startProgress: () => startProgress(windowId),
1309
+ stopProgress: () => stopProgress(windowId),
1310
+ toast: (toastyOptions) => {
1311
+ toast(windowId, toastyOptions);
1254
1312
  }
1255
1313
  }), []);
1256
1314
  useEffect(() => {
1257
- loadCookiesFromApi(windowId);
1258
- }, []);
1259
- return /* @__PURE__ */ jsxs(WindowRoot, {
1315
+ if (viewMode === "multiple" && wd.status === "init") {
1316
+ loadCookiesFromApi(windowId);
1317
+ }
1318
+ if (viewMode === "single" && wd.status === "init" && singleId === windowId) {
1319
+ loadCookiesFromApi(windowId);
1320
+ }
1321
+ }, [wd, viewMode, singleId]);
1322
+ return /* @__PURE__ */ jsx(WindowRoot, {
1260
1323
  role: "presentation",
1261
1324
  className: clsx(areasViewerClasses.windowRoot, selected ? areasViewerClasses.selectedWindow : null, wd.loading ? areasViewerClasses.loading : null),
1262
1325
  onMouseDown: onTouch,
1263
- children: [/* @__PURE__ */ jsx(Header, {
1264
- areaId,
1265
- windowId,
1266
- emergeType
1267
- }), /* @__PURE__ */ jsx(Toasties, {
1268
- windowId
1269
- }), /* @__PURE__ */ jsx("div", {
1270
- className: areasViewerClasses.windowContent,
1271
- children: wd.status === "init" ? /* @__PURE__ */ jsx("div", {
1272
- children: "BRUCE cargando"
1273
- }) : wd.winType === "microfrontend" ? /* @__PURE__ */ jsx(MemonizedMicroFrontend, {
1274
- moduleId,
1275
- dynamicMFStore: wd.dynamicMFStore,
1276
- windowTools,
1277
- ...wd.mfProps
1278
- }) : /* @__PURE__ */ jsx(Component, {
1279
- moduleId,
1280
- dynamicMFStore: wd.dynamicMFStore,
1281
- windowTools,
1282
- component: wd.component
1283
- })
1284
- })]
1326
+ children: /* @__PURE__ */ jsxs("div", {
1327
+ className: areasViewerClasses.windowRootContainer,
1328
+ children: [/* @__PURE__ */ jsx(Header, {
1329
+ areaId,
1330
+ windowId,
1331
+ emergeType
1332
+ }), /* @__PURE__ */ jsx(Toasties, {
1333
+ windowId
1334
+ }), /* @__PURE__ */ jsx("div", {
1335
+ className: areasViewerClasses.windowContent,
1336
+ children: wd.status === "init" ? /* @__PURE__ */ jsx(Fragment, {
1337
+ children: "...Componente de carga"
1338
+ }) : wd.winType === "microfrontend" ? /* @__PURE__ */ jsx(MemonizedMicroFrontend, {
1339
+ moduleId,
1340
+ dynamicMFStore: wd.dynamicMFStore,
1341
+ windowTools,
1342
+ ...wd.mfProps
1343
+ }) : /* @__PURE__ */ jsx(Component, {
1344
+ moduleId,
1345
+ dynamicMFStore: wd.dynamicMFStore,
1346
+ windowTools,
1347
+ component: wd.component
1348
+ })
1349
+ })]
1350
+ })
1285
1351
  });
1286
1352
  };
1287
1353
  const MemonizedWindow = React__default.memo(Window);
@@ -1464,8 +1530,10 @@ const InnerForHooks = (props) => {
1464
1530
  children: [
1465
1531
  status === "loaded" ? /* @__PURE__ */ jsx(GridLayout, {
1466
1532
  areaId
1467
- }) : /* @__PURE__ */ jsx("div", {
1468
- children: "Loading.. Intentar si falla."
1533
+ }) : /* @__PURE__ */ jsx(AreasLoadingError, {
1534
+ status,
1535
+ action: () => {
1536
+ }
1469
1537
  }),
1470
1538
  /* @__PURE__ */ jsx(PanelWindows, {
1471
1539
  areaId
@@ -1540,7 +1608,6 @@ const WindowModal = (props) => {
1540
1608
  children: /* @__PURE__ */ jsx(ResizeableWindow, {
1541
1609
  width: props.windowProps?.width || 400,
1542
1610
  height: props.windowProps?.height || 300,
1543
- className: areasViewerClasses.windowModalRoot,
1544
1611
  handle: (resizeHandle, ref) => /* @__PURE__ */ jsx("div", {
1545
1612
  ref,
1546
1613
  children: /* @__PURE__ */ jsx(Icon, {
@@ -1585,6 +1652,9 @@ function AreasViewer() {
1585
1652
  const currentArea = useAreasStore((state) => state.currentAreaId);
1586
1653
  const status = useAreasStore((state) => state.ownerState.status);
1587
1654
  const classesRoot = useAreasStore((state) => state.viwerClasses.root);
1655
+ const {
1656
+ init
1657
+ } = useAreasStore((state) => state.areasActions);
1588
1658
  return /* @__PURE__ */ jsxs(Fragment, {
1589
1659
  children: [/* @__PURE__ */ jsx(AreasViewerRoot, {
1590
1660
  className: classesRoot,
@@ -1593,8 +1663,9 @@ function AreasViewer() {
1593
1663
  areaId: area.id,
1594
1664
  selected: currentArea === area.id
1595
1665
  }, area.id);
1596
- }) : /* @__PURE__ */ jsx(Fragment, {
1597
- children: "Bruce cargando"
1666
+ }) : /* @__PURE__ */ jsx(AreasLoadingError, {
1667
+ status,
1668
+ action: () => init()
1598
1669
  })
1599
1670
  }), windowsModals.map((wm) => {
1600
1671
  if (hashWindowsModals[wm]) {