@m4l/components 0.1.74 → 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 (317) hide show
  1. package/@types/export.d.ts +123 -1
  2. package/components/AccountPopover/classes/constants.d.ts +1 -1
  3. package/components/AccountPopover/classes/index.d.ts +12 -1
  4. package/components/AccountPopover/classes/types.d.ts +14 -1
  5. package/components/AccountPopover/index.47cf6c43.js +273 -0
  6. package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/createAvatar.d.ts +1 -1
  7. package/components/AccountPopover/subcomponents/PopOver/types.d.ts +2 -5
  8. package/components/AccountPopover/types.d.ts +13 -0
  9. package/components/AppBar/classes/index.d.ts +4 -1
  10. package/components/AppBar/classes/types.d.ts +5 -0
  11. package/components/AppBar/index.f04f5e45.js +94 -0
  12. package/components/AppBar/tests/constants.d.ts +1 -1
  13. package/components/AppBar/types.d.ts +3 -2
  14. package/components/CommonActions/classes/index.d.ts +1 -1
  15. package/components/CommonActions/classes/types.d.ts +3 -2
  16. package/components/CommonActions/components/ActionCancel/{index.fad4a0dc.js → index.453c2d24.js} +3 -3
  17. package/components/CommonActions/components/ActionFormCancel/{index.a26820a9.js → index.c2a2fd55.js} +25 -22
  18. package/components/CommonActions/components/ActionFormIntro/{index.403d8952.js → index.25d33912.js} +4 -4
  19. package/components/CommonActions/components/ActionIntro/{index.0fb6efbe.js → index.c653a266.js} +4 -4
  20. package/components/CommonActions/components/Actions/{index.51b9c92a.js → index.e376a68e.js} +37 -26
  21. package/components/CommonActions/tests/constants.d.ts +1 -0
  22. package/components/CommonActions/tests/utils.d.ts +2 -0
  23. package/components/DataGrid/{index.dbae54dd.js → index.ffaf000e.js} +29 -21
  24. package/components/DraggableWindow/index.b08af1dc.js +39 -0
  25. package/components/DynamicFilter/{index.cb7fd1b6.js → index.d7c03a61.js} +35 -35
  26. package/components/HelperText/{index.d449d124.js → index.9864f773.js} +11 -10
  27. package/components/Icon/{index.d214a74d.js → index.9dae8337.js} +6 -63
  28. package/components/Image/{index.1af119da.js → index.c18ebf5a.js} +7 -8
  29. package/components/Image/types.d.ts +1 -4
  30. package/components/LanguagePopover/classes/index.d.ts +1 -1
  31. package/components/LanguagePopover/{index.4fef99ac.js → index.938c6675.js} +12 -11
  32. package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +2 -0
  33. package/components/LinearProgressIndeterminate/classes/constants.d.ts +1 -0
  34. package/components/LinearProgressIndeterminate/classes/index.d.ts +3 -0
  35. package/components/LinearProgressIndeterminate/classes/types.d.ts +7 -0
  36. package/components/LinearProgressIndeterminate/index.d.ts +1 -0
  37. package/components/LinearProgressIndeterminate/index.d34d398f.js +43 -0
  38. package/components/LinearProgressIndeterminate/tests/constants.d.ts +1 -0
  39. package/components/LinearProgressIndeterminate/tests/utils.d.ts +2 -0
  40. package/components/Loadable/{index.117eaced.js → index.e994fc3e.js} +1 -1
  41. package/components/ModalDialog/{index.6c35e653.js → index.d9c5d400.js} +21 -12
  42. package/components/NavLink/{index.9e56bcd3.js → index.21c8fd90.js} +12 -11
  43. package/components/NoItemSelected/{index.cd842b62.js → index.23dfc897.js} +1 -1
  44. package/components/ObjectLogs/{index.e1a1b27c.js → index.a2709fc2.js} +31 -21
  45. package/components/PaperForm/classes/constants.d.ts +1 -0
  46. package/components/PaperForm/classes/index.d.ts +11 -0
  47. package/components/PaperForm/classes/types.d.ts +10 -0
  48. package/components/PaperForm/{index.76bd3a6d.js → index.5e1bc99f.js} +58 -25
  49. package/components/PaperForm/types.d.ts +5 -2
  50. package/components/Period/Period.d.ts +3 -0
  51. package/components/Period/classes/constants.d.ts +1 -0
  52. package/components/Period/classes/index.d.ts +10 -0
  53. package/components/Period/classes/types.d.ts +13 -0
  54. package/components/Period/index.526791a3.js +322 -0
  55. package/components/Period/index.d.ts +2 -3
  56. package/components/Period/tests/constants.d.ts +1 -0
  57. package/components/Period/tests/utils.d.ts +2 -0
  58. package/components/Period/types.d.ts +3 -4
  59. package/components/PropertyValue/classes/constants.d.ts +1 -0
  60. package/components/PropertyValue/classes/index.d.ts +9 -0
  61. package/components/PropertyValue/classes/types.d.ts +9 -0
  62. package/components/PropertyValue/{index.dfcfe1ba.js → index.8a1adf3e.js} +60 -10
  63. package/components/PropertyValue/skeleton.d.ts +2 -1
  64. package/components/PropertyValue/tests/constants.d.ts +1 -0
  65. package/components/PropertyValue/tests/utils.d.ts +2 -0
  66. package/components/PropertyValue/types.d.ts +4 -0
  67. package/components/Resizeable/{index.834a9144.js → index.f6e48e56.js} +1 -1
  68. package/components/SideBar/classes/index.d.ts +1 -1
  69. package/components/SideBar/{index.ff7cbe91.js → index.9e1a5b96.js} +6 -6
  70. package/components/SplitLayout/SplitLayout.d.ts +3 -0
  71. package/components/SplitLayout/classes/constants.d.ts +1 -0
  72. package/components/SplitLayout/classes/index.d.ts +9 -0
  73. package/components/SplitLayout/classes/types.d.ts +10 -0
  74. package/components/SplitLayout/index.9ef430f6.js +99 -0
  75. package/components/SplitLayout/index.d.ts +2 -3
  76. package/components/SplitLayout/tests/constants.d.ts +1 -0
  77. package/components/SplitLayout/tests/utils.d.ts +2 -0
  78. package/components/SplitLayout/types.d.ts +2 -0
  79. package/components/animate/PropagateLoader/{index.be5b02c3.js → index.7fab43c8.js} +1 -1
  80. package/components/animate/index.1f8eadd4.js +66 -0
  81. package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
  82. package/components/areas/components/AreasAdmin/classes/types.d.ts +4 -0
  83. package/components/areas/components/AreasAdmin/{index.1eda80b9.js → index.946eebb9.js} +147 -47
  84. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +3 -0
  85. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +4 -0
  86. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +2 -0
  87. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  88. package/components/areas/components/AreasViewer/classes/types.d.ts +13 -0
  89. package/components/areas/components/AreasViewer/{index.eddc9945.js → index.bf4191ea.js} +439 -362
  90. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +13 -2
  91. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/helper.d.ts +18 -0
  92. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/index.d.ts +3 -0
  93. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/types.d.ts +4 -0
  94. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +3 -0
  95. package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +5 -0
  96. package/components/areas/components/index.2bb534cb.js +28 -0
  97. package/components/areas/contexts/AreasContext/{index.a88b73a6.js → index.f0397b7c.js} +130 -105
  98. package/components/areas/contexts/AreasContext/types.d.ts +5 -4
  99. package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
  100. package/components/areas/contexts/{index.7dd01403.js → index.1809650a.js} +1 -1
  101. package/components/areas/{dictionary.e72db809.js → dictionary.3fabae50.js} +6 -1
  102. package/components/areas/dictionary.d.ts +5 -0
  103. package/components/areas/hooks/useAreas/{index.7a37ede8.js → index.40917e99.js} +1 -1
  104. package/components/areas/{icons.3ec589d3.js → icons.19cde4b4.js} +3 -0
  105. package/components/areas/icons.d.ts +3 -0
  106. package/components/areas/index.9bd48013.js +30 -0
  107. package/components/areas/types.d.ts +4 -0
  108. package/components/formatters/BooleanFormatter/{index.820a2130.js → index.431dc923.js} +1 -1
  109. package/components/formatters/{index.0c692a4b.js → index.e1af75e6.js} +2 -2
  110. package/components/hook-form/RHFAutocomplete/{index.72437d8a.js → index.a063dc44.js} +14 -13
  111. package/components/hook-form/RHFAutocompleteAsync/{index.2a84f2b2.js → index.ddfd9cc9.js} +2 -2
  112. package/components/hook-form/RHFCheckbox/classes/types.d.ts +1 -0
  113. package/components/hook-form/RHFCheckbox/{index.6e6389e7.js → index.7e7f220b.js} +22 -15
  114. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +1 -0
  115. package/components/hook-form/RHFCheckbox/test/utils.d.ts +1 -1
  116. package/components/hook-form/RHFCheckbox/types.d.ts +3 -1
  117. package/components/hook-form/RHFDateTime/classes/index.d.ts +1 -1
  118. package/components/hook-form/RHFDateTime/{index.745b101b.js → index.d330709b.js} +67 -58
  119. package/components/hook-form/RHFDateTime/test/constants.d.ts +1 -0
  120. package/components/hook-form/RHFDateTime/test/utils.d.ts +2 -0
  121. package/components/hook-form/RHFPeriod/classes/constants.d.ts +1 -0
  122. package/components/hook-form/RHFPeriod/classes/index.d.ts +6 -0
  123. package/components/hook-form/RHFPeriod/classes/types.d.ts +6 -0
  124. package/components/hook-form/RHFPeriod/index.e2b1293b.js +77 -0
  125. package/components/hook-form/RHFPeriod/types.d.ts +2 -1
  126. package/components/hook-form/RHFTextField/index.d.ts +1 -0
  127. package/components/hook-form/RHFTextField/{index.ca7393a7.js → index.e5336d09.js} +11 -8
  128. package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants.d.ts +1 -0
  129. package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +19 -0
  130. package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +18 -0
  131. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +2 -1
  132. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/types.d.ts +3 -0
  133. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts +5 -0
  134. package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants.d.ts +1 -0
  135. package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils.d.ts +2 -0
  136. package/components/hook-form/RHFUpload/index.17e7f9eb.js +260 -0
  137. package/components/hook-form/RHFUpload/index.d.ts +1 -1
  138. package/components/index.d.ts +4 -4
  139. package/components/modal/WindowBase/subcomponents/Header/types.d.ts +4 -1
  140. package/components/modal/WindowBase/types.d.ts +0 -3
  141. package/components/modal/WindowBase.7acb9f1d.js +81 -0
  142. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/types.d.ts +3 -5
  143. package/components/modal/WindowConfirm/types.d.ts +3 -2
  144. package/components/modal/WindowConfirm.9b829837.js +122 -0
  145. package/components/modal/classes/constants.d.ts +1 -0
  146. package/components/modal/classes/index.d.ts +18 -0
  147. package/components/modal/classes/types.d.ts +21 -0
  148. package/components/modal/index.1b25b61d.js +82 -0
  149. package/components/modal/index.d.ts +2 -1
  150. package/components/mui_extended/Accordion/classes/constants.d.ts +1 -0
  151. package/components/mui_extended/Accordion/classes/index.d.ts +10 -0
  152. package/components/mui_extended/Accordion/classes/types.d.ts +10 -0
  153. package/components/mui_extended/Accordion/index.3faafd8b.js +127 -0
  154. package/components/mui_extended/Accordion/tests/constants.d.ts +1 -0
  155. package/components/mui_extended/Accordion/tests/utils.d.ts +2 -0
  156. package/components/mui_extended/Accordion/types.d.ts +2 -1
  157. package/components/mui_extended/Avatar/{index.d.ts → Avatar.d.ts} +0 -1
  158. package/components/mui_extended/Avatar/classes/constants.d.ts +1 -0
  159. package/components/mui_extended/Avatar/classes/index.d.ts +7 -0
  160. package/components/mui_extended/Avatar/classes/types.d.ts +7 -0
  161. package/components/mui_extended/Avatar/index.75e6ed57.js +71 -0
  162. package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +2 -1
  163. package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/types.d.ts +3 -0
  164. package/components/mui_extended/Avatar/tests/constants.d.ts +1 -0
  165. package/components/mui_extended/Avatar/tests/utils.d.ts +2 -0
  166. package/components/mui_extended/Avatar/types.d.ts +1 -5
  167. package/components/mui_extended/Button/{index.f9d54780.js → index.fdb5dcbd.js} +6 -5
  168. package/components/mui_extended/IconButton/{index.822cdaac.js → index.1a9d4fa5.js} +1 -1
  169. package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -1
  170. package/components/mui_extended/MenuActions/{index.03403529.js → index.ba1da3b3.js} +4 -4
  171. package/components/mui_extended/MenuActions/types.d.ts +2 -2
  172. package/components/mui_extended/Pager/{index.6428b07c.js → index.67bda2c5.js} +1 -1
  173. package/components/mui_extended/Tab/classes/constants.d.ts +1 -0
  174. package/components/mui_extended/Tab/classes/index.d.ts +7 -0
  175. package/components/mui_extended/Tab/classes/types.d.ts +7 -0
  176. package/components/mui_extended/Tab/index.9e2f6e34.js +71 -0
  177. package/components/mui_extended/Tab/tests/constants.d.ts +1 -0
  178. package/components/mui_extended/Tab/tests/utils.d.ts +2 -0
  179. package/components/mui_extended/Tooltip/Tooltip.d.ts +3 -0
  180. package/components/mui_extended/Tooltip/classes/constants.d.ts +1 -0
  181. package/components/mui_extended/Tooltip/classes/index.d.ts +6 -0
  182. package/components/mui_extended/Tooltip/classes/types.d.ts +6 -0
  183. package/components/mui_extended/Tooltip/index.5a795dcd.js +43 -0
  184. package/components/mui_extended/Tooltip/index.d.ts +2 -0
  185. package/components/mui_extended/Tooltip/types.d.ts +6 -0
  186. package/components/mui_extended/Typography/{index.e2d9e3f2.js → index.443590d6.js} +1 -1
  187. package/components/mui_extended/index.73e536de.js +21 -0
  188. package/components/mui_extended/index.d.ts +3 -2
  189. package/contexts/ModalContext/{index.0484ca54.js → index.699f95fa.js} +1 -1
  190. package/contexts/ModalContext/types.d.ts +2 -0
  191. package/contexts/RHFormContext/classes/constants.d.ts +1 -0
  192. package/contexts/RHFormContext/classes/index.d.ts +9 -0
  193. package/contexts/RHFormContext/classes/types.d.ts +6 -0
  194. package/contexts/RHFormContext/{index.a7511399.js → index.fe175bab.js} +33 -9
  195. package/hooks/useModal/{index.c6069beb.js → index.7b7d26ba.js} +1 -1
  196. package/index.js +219 -207
  197. package/package.json +1 -1
  198. package/{react-draggable.17b4ec8a.js → react-draggable.6d7949a3.js} +1 -1
  199. package/{react-resizable.ffd7c2aa.js → react-resizable.b6f8e04a.js} +2 -2
  200. package/test/constants_no_mock.86c553a9.js +4 -0
  201. package/utils/{index.aca80f3a.js → index.008b4c2a.js} +0 -17
  202. package/utils/types.d.ts +1 -1
  203. package/components/AccountPopover/style.d.ts +0 -2
  204. package/components/AccountPopover/subcomponents/PopOver/styles.d.ts +0 -8
  205. package/components/AppBar/styles.d.ts +0 -2
  206. package/components/CommonActions/components/Actions/styles.d.ts +0 -2
  207. package/components/DataGrid/styles.d.ts +0 -3
  208. package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -2
  209. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/styles.d.ts +0 -3
  210. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/styles.d.ts +0 -2
  211. package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/styles.d.ts +0 -4
  212. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/styles.d.ts +0 -2
  213. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -8
  214. package/components/DataGrid/subcomponents/Table/styles.d.ts +0 -3
  215. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -2
  216. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -6
  217. package/components/DynamicFilter/subcomponents/ApplyedFilters/styles.d.ts +0 -3
  218. package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/styles.d.ts +0 -6
  219. package/components/DynamicFilter/subcomponents/ClearFilters/styles.d.ts +0 -3
  220. package/components/DynamicFilter/subcomponents/FilterButton/styles.d.ts +0 -3
  221. package/components/DynamicFilter/subcomponents/InnerForHooks/styles.d.ts +0 -3
  222. package/components/DynamicFilter/subcomponents/PopoverFilter/styles.d.ts +0 -2
  223. package/components/HelperText/styles.d.ts +0 -2
  224. package/components/Icon/styles.d.ts +0 -4
  225. package/components/Image/styles.d.ts +0 -3
  226. package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +0 -2
  227. package/components/Image/subcomponents/Skeleton/styles.d.ts +0 -2
  228. package/components/LanguagePopover/styles.d.ts +0 -6
  229. package/components/NavLink/styles.d.ts +0 -2
  230. package/components/NoItemSelected/styles.d.ts +0 -5
  231. package/components/ObjectLogs/components/DetailDialog/styles.d.ts +0 -3
  232. package/components/ObjectLogs/styles.d.ts +0 -4
  233. package/components/PaperForm/styles.d.ts +0 -7
  234. package/components/Period/index.b93d22fa.js +0 -280
  235. package/components/Period/styles.d.ts +0 -7
  236. package/components/PropertyValue/styles.d.ts +0 -6
  237. package/components/ResizeableWindow/styles.d.ts +0 -5
  238. package/components/ScrollBar/styles.d.ts +0 -8
  239. package/components/SideBar/styles.d.ts +0 -5
  240. package/components/SideBar/subcomponents/ContentDesktop/style.d.ts +0 -2
  241. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +0 -3
  242. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +0 -5
  243. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +0 -2
  244. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +0 -2
  245. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +0 -9
  246. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/styles.d.ts +0 -3
  247. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +0 -2
  248. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +0 -22
  249. package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/styles.d.ts +0 -6
  250. package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +0 -3
  251. package/components/SplitLayout/index.5a8355d8.js +0 -133
  252. package/components/SplitLayout/styles.d.ts +0 -4
  253. package/components/animate/LoadingScreen/styles.d.ts +0 -3
  254. package/components/animate/PropagateLoader/syles.d.ts +0 -2
  255. package/components/areas/components/AreasAdmin/styles.d.ts +0 -2
  256. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +0 -4
  257. package/components/areas/components/AreasViewer/styles.d.ts +0 -2
  258. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.d.ts +0 -2
  259. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/styles.d.ts +0 -9
  260. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -3
  261. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -2
  262. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -3
  263. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -2
  264. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -2
  265. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -6
  266. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/styles.d.ts +0 -3
  267. package/components/areas/components/index.f3a98b6d.js +0 -14
  268. package/components/areas/index.95c4ed37.js +0 -16
  269. package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -2
  270. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +0 -2
  271. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +0 -4
  272. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -5
  273. package/components/hook-form/RHFCheckbox/styles.d.ts +0 -15
  274. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +0 -3
  275. package/components/hook-form/RHFDateTime/styles.d.ts +0 -2
  276. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/styles.d.ts +0 -2
  277. package/components/hook-form/RHFPeriod/index.6969af99.js +0 -55
  278. package/components/hook-form/RHFPeriod/styles.d.ts +0 -2
  279. package/components/hook-form/RHFTextField/styles.d.ts +0 -3
  280. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
  281. package/components/hook-form/RHFTextFieldPassword/styles.d.ts +0 -2
  282. package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +0 -2
  283. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +0 -12
  284. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -2
  285. package/components/hook-form/RHFUpload/index.d74ca00d.js +0 -283
  286. package/components/modal/ModalDialog/styles.d.ts +0 -9
  287. package/components/modal/WindowBase/styles.d.ts +0 -2
  288. package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -6
  289. package/components/modal/WindowBase.9b93578e.js +0 -126
  290. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +0 -6
  291. package/components/modal/WindowConfirm.7ec9dcd3.js +0 -132
  292. package/components/modal/index.dba72820.js +0 -36
  293. package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -3
  294. package/components/mui_extended/Accordion/index.09a89d3d.js +0 -107
  295. package/components/mui_extended/Accordion/styles.d.ts +0 -4
  296. package/components/mui_extended/Avatar/index.fe06afd7.js +0 -51
  297. package/components/mui_extended/Button/styles.d.ts +0 -13
  298. package/components/mui_extended/IconButton/styles.d.ts +0 -2
  299. package/components/mui_extended/ImageButton/styles.d.ts +0 -2
  300. package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
  301. package/components/mui_extended/MenuActions/styles.d.ts +0 -30
  302. package/components/mui_extended/Pager/components/PagerActions/styles.d.ts +0 -2
  303. package/components/mui_extended/Pager/styles.d.ts +0 -6
  304. package/components/mui_extended/Popover/styles.d.ts +0 -1
  305. package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +0 -3
  306. package/components/mui_extended/Tab/index.e0653a0a.js +0 -32
  307. package/components/mui_extended/Tab/styles.d.ts +0 -2
  308. package/components/mui_extended/Typography/styles.d.ts +0 -2
  309. package/components/mui_extended/index.b4ced9e3.js +0 -20
  310. package/contexts/RHFormContext/styles.d.ts +0 -2
  311. package/vendor.99e0c856.js +0 -456
  312. /package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/index.d.ts +0 -0
  313. /package/components/PaperForm/{index.d.ts → PaperForm.d.ts} +0 -0
  314. /package/components/PropertyValue/{index.d.ts → PropertyValue.d.ts} +0 -0
  315. /package/components/hook-form/RHFUpload/RHFUploadImage/{index.d.ts → RHFUploadImage.d.ts} +0 -0
  316. /package/components/mui_extended/Accordion/{index.d.ts → Accordion.d.ts} +0 -0
  317. /package/{node_modules.416f1da3.js → react-spinners.342a6578.js} +0 -0
@@ -1,100 +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.ffd7c2aa.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.aca80f3a.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
- import { I as Icon } from "../../../Icon/index.d214a74d.js";
11
- import { m } from "framer-motion";
16
+ import "../../../animate/index.1f8eadd4.js";
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
- import "../../../animate/PropagateLoader/index.be5b02c3.js";
21
+ import "../../../animate/PropagateLoader/index.7fab43c8.js";
16
22
  import { useModuleDictionary, useEnvironment, useModuleSkeleton, useNetwork, useHostTools, axiosOperation } from "@m4l/core";
17
- import { I as IconButton } from "../../../mui_extended/IconButton/index.822cdaac.js";
23
+ import { I as Icon } from "../../../Icon/index.9dae8337.js";
24
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.1a9d4fa5.js";
18
25
  import clsx from "clsx";
19
26
  import { useResponsiveDesktop, useHostTheme, useFormatter, useLocales, useFirstRender, useResizeObserver } from "@m4l/graphics";
20
- import { u as useAreasStore } from "../../hooks/useAreas/index.7a37ede8.js";
21
- import "../AreasAdmin/index.1eda80b9.js";
22
- 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";
23
30
  import "../../../ScrollBar/index.bbe48f4d.js";
24
- import { R as ROW_HEIGTH_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT, T as THROTTLE_RESIZE_TIME } from "../../contexts/AreasContext/index.a88b73a6.js";
31
+ import "../../../mui_extended/Accordion/index.3faafd8b.js";
32
+ import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
33
+ import "../../../mui_extended/Avatar/index.75e6ed57.js";
34
+ import "@mui/material/Button";
35
+ import { B as Button } from "../../../mui_extended/Button/index.fdb5dcbd.js";
36
+ import "../../../Image/index.c18ebf5a.js";
37
+ import "@mui/lab";
38
+ import "../../../mui_extended/Popover/index.9f35d0eb.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";
25
45
  import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
26
46
  import "zustand";
27
47
  import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
28
48
  import "react-hook-form";
29
- import "../../../hook-form/RHFAutocomplete/index.72437d8a.js";
30
- import { I as Image } from "../../../Image/index.1af119da.js";
31
- import { T as Typography } from "../../../mui_extended/Typography/index.e2d9e3f2.js";
32
- import "../../../mui_extended/Accordion/index.09a89d3d.js";
33
- import "../../../mui_extended/Avatar/index.fe06afd7.js";
34
- import "@mui/material/Button";
35
- import { B as Button } from "../../../mui_extended/Button/index.f9d54780.js";
36
- import "@mui/lab";
37
- import "../../../mui_extended/Popover/index.9f35d0eb.js";
38
- import { M as MenuActions } from "../../../mui_extended/MenuActions/index.03403529.js";
39
- import "../../../mui_extended/Pager/index.6428b07c.js";
40
- import "../../../mui_extended/Tab/index.e0653a0a.js";
41
- import "../../../HelperText/index.d449d124.js";
49
+ import "../../../hook-form/RHFAutocomplete/index.a063dc44.js";
50
+ import "../../../HelperText/index.9864f773.js";
42
51
  import debounce from "lodash/debounce";
43
- import "../../../hook-form/RHFAutocompleteAsync/index.2a84f2b2.js";
44
- import "../../../hook-form/RHFCheckbox/index.6e6389e7.js";
52
+ import "../../../hook-form/RHFAutocompleteAsync/index.ddfd9cc9.js";
53
+ import "../../../hook-form/RHFCheckbox/index.7e7f220b.js";
45
54
  import "@mui/x-date-pickers";
46
- import "../../../hook-form/RHFDateTime/index.745b101b.js";
47
- import "../../../hook-form/RHFTextField/index.ca7393a7.js";
48
- import "../../../hook-form/RHFPeriod/index.6969af99.js";
49
- import "../../../Period/index.b93d22fa.js";
50
- import "../../../CommonActions/components/Actions/index.51b9c92a.js";
51
- import "../../../../contexts/ModalContext/index.0484ca54.js";
52
- import { c as cjs } from "../../../../react-draggable.17b4ec8a.js";
53
- import "../../../ModalDialog/index.6c35e653.js";
54
- import { R as ResizeableWindow } from "../../../Resizeable/index.834a9144.js";
55
- import "../../../modal/WindowConfirm.7ec9dcd3.js";
56
- import "../../../modal/WindowBase.9b93578e.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";
57
65
  import "lodash/isString";
58
66
  import "react-dropzone";
59
- import "../../../hook-form/RHFUpload/index.d74ca00d.js";
60
- import "../../../DataGrid/index.dbae54dd.js";
67
+ import "../../../hook-form/RHFUpload/index.17e7f9eb.js";
68
+ import "../../../DataGrid/index.ffaf000e.js";
61
69
  import "react-dnd";
62
70
  import "react-dnd-html5-backend";
63
- import "../../../DynamicFilter/index.cb7fd1b6.js";
71
+ import "../../../DynamicFilter/index.d7c03a61.js";
64
72
  import "yup";
65
- import "@hookform/resolvers/yup";
66
- import "../../../../contexts/RHFormContext/index.a7511399.js";
67
- import "../../../LanguagePopover/index.4fef99ac.js";
68
- import "../../../NavLink/index.9e56bcd3.js";
69
- import "../../../NoItemSelected/index.cd842b62.js";
70
- import "../../../ObjectLogs/index.e1a1b27c.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";
71
78
  import "../../../../react-json-view.57125fcf.js";
72
- import "../../../PaperForm/index.76bd3a6d.js";
79
+ import "../../../PaperForm/index.5e1bc99f.js";
73
80
  import "../../../Page/index.4237c241.js";
74
- import "../../../PropertyValue/index.dfcfe1ba.js";
81
+ import "../../../PropertyValue/index.8a1adf3e.js";
82
+ import "../../../SplitLayout/index.9ef430f6.js";
75
83
  import "../../../../react-splitter-layout.8b1655c8.js";
76
- import "../../../SplitLayout/index.5a8355d8.js";
77
- import "../../../SideBar/index.ff7cbe91.js";
78
- import { D as DraggableWindow } from "../../../../vendor.99e0c856.js";
79
- 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";
80
88
  import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
81
- import { v as varBounce } from "../../../animate/variants/bounce.784aaaaa.js";
89
+ import { D as DraggableWindow } from "../../../DraggableWindow/index.b08af1dc.js";
82
90
  import { throttle } from "lodash";
83
91
  const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
84
92
  "root",
85
93
  "areaRoot",
94
+ "areasLoadingErrorRoot",
95
+ "areasLoadingErrorLoading",
96
+ "areasLoadingError",
97
+ "areasLoadingErrorIcon",
98
+ "areasLoadingErrorTitle",
99
+ "areasLoadingErrorDescription",
100
+ "areasLoadingErrorDivider",
101
+ "areasLoadingErrorTextAction",
86
102
  "areaGridLayoutPanelContainer",
87
103
  "areaGridLayout",
88
104
  "areaGridLayoutPopupsContainer",
89
105
  "windowRoot",
90
106
  "windowHeader",
107
+ "windowHeaderContent",
91
108
  "windowHeaderTitle",
92
109
  "windowHeaderMainActions",
93
110
  "windowContent",
94
111
  "windowPopupRoot",
95
112
  "windowModalRoot",
113
+ "windowLinearProgressRoot",
114
+ "windowLinearProgressBar",
96
115
  "windowRootContainer",
97
116
  "windowToastiesContainer",
117
+ "windowToastiesContainerTostys",
98
118
  "windowToastyContainer",
99
119
  "windowToastyMeesageButtonsContainer",
100
120
  "windowToastyMessage",
@@ -103,6 +123,7 @@ const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
103
123
  "windowToastyClose",
104
124
  "panelWindowsRoot",
105
125
  "panelWindowsButtonContainer",
126
+ "containerLinearProgress",
106
127
  "selected",
107
128
  "selectedWindow",
108
129
  "isMobile",
@@ -117,6 +138,13 @@ const useAreasViewerUtilityClasses = (ownerState) => {
117
138
  const slots = {
118
139
  root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
119
140
  areaRoot: ["areaRoot"],
141
+ areasLoadingErrorRoot: ["areasLoadingErrorRoot"],
142
+ areasLoadingErrorLoading: ["areasLoadingErrorLoading"],
143
+ areasLoadingError: ["areasLoadingError"],
144
+ areasLoadingErrorIcon: ["areasLoadingErrorIcon"],
145
+ areasLoadingErrorTitle: ["areasLoadingErrorTitle"],
146
+ areasLoadingErrorDescription: ["areasLoadingErrorDescription"],
147
+ areasLoadingErrorDivider: ["areasLoadingErrorDivider"],
120
148
  areaGridLayoutPanelContainer: ["areaGridLayoutPanelContainer"],
121
149
  areaGridLayout: ["areaGridLayout"],
122
150
  areaGridLayoutPopupsContainer: ["areaGridLayoutPopupsContainer"],
@@ -126,10 +154,13 @@ const useAreasViewerUtilityClasses = (ownerState) => {
126
154
  windowHeaderTitle: ["windowHeaderTitle"],
127
155
  windowHeaderMainActions: ["windowHeaderMainActions"],
128
156
  windowContent: ["windowContent"],
157
+ windowLinearProgressRoot: ["windowLinearProgressRoot"],
158
+ windowLinearProgressBar: ["windowLinearProgressBar"],
129
159
  windowPopupRoot: ["windowPopupRoot"],
130
160
  windowModalRoot: ["windowModalRoot"],
131
161
  selectedWindow: ["selectedWindow"],
132
162
  windowToastiesContainer: ["windowToastiesContainer"],
163
+ windowToastiesContainerTostys: ["windowToastiesContainerTostys"],
133
164
  windowToastyContainer: ["windowToastiesContainer"],
134
165
  windowToastyMeesageButtonsContainer: ["windowToastyMeesageButtonsContainer"],
135
166
  windowToastyMessage: ["windowToastyMessage"],
@@ -230,27 +261,6 @@ const AreasViewerRoot = styled("div")`
230
261
  & .${areasViewerClasses.windowRoot}.${areasViewerClasses.selected} {
231
262
  border-top: 1px solid green;
232
263
  }
233
- // windowHeader
234
- & .${areasViewerClasses.windowHeader} {
235
- display: flex;
236
- gap: 4px;
237
-
238
- align-items: center;
239
- position: relative;
240
-
241
- padding: 8px;
242
- justify-content: end;
243
- min-height: ${(props) => props.theme.spacing(5)};
244
-
245
- border-bottom: 1px solid ${(props) => props.theme.palette.divider};
246
- overflow: hidden;
247
- cursor: move;
248
- height: 60px;
249
-
250
- > span: {
251
- margin-right: 12px;
252
- }
253
- }
254
264
  // windowHeaderTitle
255
265
  & .${areasViewerClasses.windowHeaderTitle} {
256
266
  width: 100%;
@@ -311,7 +321,7 @@ const AreasViewerRoot = styled("div")`
311
321
  }
312
322
 
313
323
  .react-grid-item.react-grid-placeholder {
314
- background: green;
324
+ background: ${(props) => props.theme.palette.state.focus};
315
325
  opacity: 0.2;
316
326
  transition-duration: 100ms;
317
327
  z-index: 2;
@@ -589,29 +599,41 @@ function getMainActions(isDesktop, moduleActions) {
589
599
  );
590
600
  return mainActions;
591
601
  }
592
- 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;
593
613
  let menuActions = [...moduleActions.filter((action) => action.visibility !== "allways")];
594
614
  if (isDesktop !== void 0 && isDesktop) {
595
615
  menuActions = menuActions.filter((action) => action.visibility === "normal");
596
616
  }
597
- const saveCookiesAction = {
598
- urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
599
- onClick: () => saveModuleCookies(windowId),
600
- disabled: false,
601
- visibility: "normal",
602
- dictionaryId: getAreasDictionary("label_persist_module_cookies"),
603
- key: "save_cookies"
604
- };
605
- menuActions.push(saveCookiesAction);
606
- const resetCookiesAction = {
607
- urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
608
- onClick: () => resetModuleCookies(windowId),
609
- disabled: false,
610
- visibility: "normal",
611
- dictionaryId: getAreasDictionary("label_reset_module_cookies"),
612
- key: "reset_cookes"
613
- };
614
- 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
+ }
615
637
  if (version) {
616
638
  const versionAction = {
617
639
  urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.VERSION}`,
@@ -646,7 +668,7 @@ function MainActions(props) {
646
668
  children: mainActions.map((mainAction) => {
647
669
  const tooltip = mainAction.label !== void 0 ? mainAction.label : getLabel(mainAction.dictionaryId || "");
648
670
  return /* @__PURE__ */ jsx(IconButton, {
649
- src: mainAction.urlIcon,
671
+ src: mainAction.urlIcon || "",
650
672
  className: mainAction.className,
651
673
  onClick: mainAction.onClick,
652
674
  "aria-label": mainAction.label,
@@ -662,9 +684,9 @@ function Header(props) {
662
684
  windowId,
663
685
  emergeType
664
686
  } = props;
665
- const [url_icon, title, moduleActions, onClose, version, singleId] = useAreasStore((state) => {
687
+ const [url_icon, title, moduleActions, onClose, version, windowOptions, singleId] = useAreasStore((state) => {
666
688
  const window2 = state.hashWindows[windowId];
667
- 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];
668
690
  }, shallow);
669
691
  const {
670
692
  saveModuleCookies,
@@ -682,7 +704,16 @@ function Header(props) {
682
704
  const isSkeleton = useModuleSkeleton();
683
705
  const urlPrefix = `${host_static_assets}/${environment_assets}`;
684
706
  const menuActions = useMemo(() => {
685
- 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
+ });
686
717
  }, [moduleActions, isDesktop]);
687
718
  const onCloseLocal = () => {
688
719
  onClose && onClose(windowId);
@@ -699,112 +730,216 @@ function Header(props) {
699
730
  }
700
731
  return /* @__PURE__ */ jsxs("div", {
701
732
  className: clsx(areasViewerClasses.windowHeader, "m4l_draggable_handle"),
702
- children: [/* @__PURE__ */ jsx(Icon, {
703
- src: url_icon,
704
- size: "medium"
705
- }), /* @__PURE__ */ jsx(Typography, {
706
- className: areasViewerClasses.windowHeaderTitle,
707
- variant: "h5",
708
- children: `${title}`
709
- }), /* @__PURE__ */ jsx(MainActions, {
710
- windowId
711
- }), isDesktop && emergeType === "layout" && /* @__PURE__ */ jsx(IconButton, {
712
- onClick: maxNormalize,
713
- "aria-label": "click",
714
- 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}`
715
- }), menuActions.length > 0 && /* @__PURE__ */ jsx(MenuActions, {
716
- arrowType: "no-arrow",
717
- marginTop: "12px!important",
718
- marginLeft: "14px!important",
719
- anchorOrigin: {
720
- vertical: "bottom",
721
- horizontal: "right"
722
- },
723
- transformOrigin: {
724
- vertical: "top",
725
- horizontal: "right"
726
- },
727
- menuActions
728
- }), onClose && /* @__PURE__ */ jsx(IconButton, {
729
- onClick: onCloseLocal,
730
- "aria-label": "click",
731
- src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`
732
- })]
733
- });
734
- }
735
- const WrapperLinearProgress = styled$1("div")(() => ({
736
- width: "70%",
737
- margin: "auto auto",
738
- position: "absolute"
739
- }));
740
- const WrapperFallBackNotFound = styled$1("div")(({
741
- theme
742
- }) => ({
743
- width: "100%",
744
- height: "100%",
745
- display: "flex",
746
- flexDirection: "column",
747
- justifyContent: "center",
748
- alignItems: "center",
749
- gap: theme.spacing(3)
750
- }));
751
- function FallBackNotFound(props) {
752
- const {
753
- setNetworkRefresh
754
- } = props;
755
- const {
756
- getLabel
757
- } = useModuleDictionary();
758
- const {
759
- host_static_assets,
760
- environment_assets
761
- } = useEnvironment();
762
- const handlerClick = () => {
763
- setNetworkRefresh((prop) => !prop);
764
- };
765
- return /* @__PURE__ */ jsxs(WrapperFallBackNotFound, {
766
- children: [/* @__PURE__ */ jsx(m.div, {
767
- variants: varBounce().in,
768
- children: /* @__PURE__ */ jsx(Typography$1, {
769
- variant: "h3",
770
- paragraph: true,
771
- children: getLabel("loading_mf_title")
772
- })
773
- }), /* @__PURE__ */ jsx(Typography$1, {
774
- sx: {
775
- color: "text.secondary"
776
- },
777
- children: getLabel("loading_mf_description")
778
- }), /* @__PURE__ */ jsx(m.div, {
779
- variants: varBounce().in,
780
- children: /* @__PURE__ */ jsx(Image, {
781
- src: `${host_static_assets}/${environment_assets}/frontend/domain/host/commons/assets/img/illustration_noauth.png`,
782
- ratio: "1:1"
783
- })
784
- }), /* @__PURE__ */ jsx(Button, {
785
- size: "medium",
786
- variant: "contained",
787
- onClick: handlerClick,
788
- 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
+ })]
789
766
  })]
790
767
  });
791
768
  }
792
- const LoadingMF = (props) => {
769
+ const ProggessLoadingMF = (props) => {
793
770
  const {
794
- loadingProgress,
795
- setNetworkRefresh
771
+ loadingProgress
796
772
  } = props;
797
- if (loadingProgress !== -1) {
798
- return /* @__PURE__ */ jsx(WrapperLinearProgress, {
799
- id: "WrapperLinearProgress",
773
+ if (loadingProgress >= 0 && loadingProgress <= 100) {
774
+ return /* @__PURE__ */ jsx("div", {
775
+ className: areasViewerClasses.containerLinearProgress,
800
776
  children: /* @__PURE__ */ jsx(LinearProgress, {
801
777
  variant: "determinate",
802
778
  value: loadingProgress
803
779
  })
804
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);
807
+ }
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
+ });
805
896
  }
806
- return /* @__PURE__ */ jsx(FallBackNotFound, {
807
- setNetworkRefresh
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
+ })
808
943
  });
809
944
  };
810
945
  function getDivScritId(prefix, moduleId) {
@@ -834,14 +969,12 @@ function MFLoader(props) {
834
969
  const environment = useEnvironment();
835
970
  const hostTools = useHostTools();
836
971
  const formatter = useFormatter();
837
- const [isLoading, setIsLoading] = useState(true);
838
- const [networkProgress, setNetworkProgress] = useState(-1);
839
- const [_networkRefresh, setNetworkRefresh] = useState(false);
972
+ const [statusLoader, setStatusLoader] = useState("progress");
973
+ const [loadingProgress, setLoadingProgress] = useState(-1);
840
974
  const {
841
975
  currentLocale
842
976
  } = useLocales();
843
977
  const [divScript, setDivScript] = useState(getDivScritId(prefix, moduleId));
844
- const refTime = useRef(0);
845
978
  const isFirstRender = useFirstRender([moduleId]);
846
979
  const final_host = environment.isLocalhost ? `https://localhost:${debug_port}` : `https://${window.location.host}/mf/${moduleId}`;
847
980
  function cleanUp(dScript) {
@@ -865,7 +998,6 @@ function MFLoader(props) {
865
998
  }
866
999
  const renderMicroFrontend = useCallback((newDScript) => {
867
1000
  try {
868
- setIsLoading(false);
869
1001
  window[`render_${prefix}_${newDScript.moduleId}`](newDScript.divContainerId, environment, hostTools, currentLocale, {
870
1002
  hostThemeOptions,
871
1003
  fnComponentsOverrides
@@ -890,103 +1022,49 @@ function MFLoader(props) {
890
1022
  return () => {
891
1023
  };
892
1024
  }, [moduleId]);
1025
+ const tryAgainOnError = useCallback(() => {
1026
+ window[`observable_${prefix}_${moduleId}`]?.tryAgain();
1027
+ }, []);
893
1028
  useEffect(() => {
894
- setIsLoading(true);
895
- let mounted = true;
896
- const controller = new AbortController();
897
1029
  const dsScript = {
898
1030
  ...divScript
899
1031
  };
900
- const loadIfNotLoaded = async () => {
901
- if (!window[`render_${prefix}_${moduleId}`]) {
902
- let urlFile = "";
903
- setNetworkProgress(0);
904
- const manifest = await fetch(`${final_host}/manifest.json?rnd=${Math.random()}`).then((res) => res.json()).catch(() => {
905
- console.debug("Error fetching manifest", `${final_host}/manifest.json`);
906
- return void 0;
907
- });
908
- if (!manifest) {
909
- return;
910
- }
911
- setNetworkProgress(10);
912
- if (mounted) {
913
- urlFile = `${final_host}/${manifest["src/index.tsx"]["file"]}?rnd=${Math.random()}`;
914
- refTime.current = 0;
915
- await networkOperation({
916
- method: "GET",
917
- endPoint: urlFile,
918
- isRemote: !environment.isLocalhost,
919
- headers: {
920
- "Content-Type": "application/json"
921
- },
922
- onDownloadProgress: (progressEvent) => {
923
- let percentCompleted = 0;
924
- try {
925
- if (progressEvent.lengthComputable) {
926
- percentCompleted = 10 + Math.round(progressEvent.loaded * 90 / progressEvent.total);
927
- } else {
928
- if (refTime.current === 0) {
929
- refTime.current = new Date().getTime();
930
- }
931
- percentCompleted = 10 + progressEvent.loaded / 15e5 * 90;
932
- if (percentCompleted > 95)
933
- percentCompleted = 95;
934
- }
935
- } catch (error) {
936
- }
937
- if (mounted) {
938
- setNetworkProgress(percentCompleted);
939
- }
940
- },
941
- isExternalUrl: true,
942
- responseType: "text",
943
- signal: controller.signal
944
- }).then(() => {
945
- if (mounted) {
946
- setNetworkProgress(100);
947
- }
948
- }).catch(() => {
949
- });
950
- if (mounted) {
951
- const script = document.createElement("script");
952
- script.id = divScript.scriptId;
953
- script.crossOrigin = "";
954
- script.type = "module";
955
- script.src = urlFile || "";
956
- script.onload = () => {
957
- if (mounted) {
958
- console.debug("Script loaded", new Date().getTime());
959
- setNetworkProgress(100);
960
- renderMicroFrontend(dsScript);
961
- }
962
- };
963
- document.head.appendChild(script);
964
- console.debug("Script appened", new Date().getTime());
965
- }
966
- }
967
- } else {
968
- if (mounted) {
969
- renderMicroFrontend(dsScript);
970
- }
1032
+ const observableDownload = (event, progress) => {
1033
+ setLoadingProgress(progress);
1034
+ setStatusLoader(event);
1035
+ if (event === "complete") {
1036
+ renderMicroFrontend(dsScript);
971
1037
  }
972
1038
  };
973
- 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
+ }
974
1052
  return () => {
975
- mounted = false;
976
- controller.abort();
1053
+ window[`observable_${prefix}_${moduleId}`].unsubscribe(observableDownload);
977
1054
  cleanUp(dsScript);
978
1055
  };
979
1056
  }, [divScript]);
980
- return /* @__PURE__ */ jsxs(Fragment, {
981
- children: [/* @__PURE__ */ jsx("div", {
982
- id: divScript.divContainerId,
983
- style: {
984
- width: "100%",
985
- height: "100%"
986
- }
987
- }), isLoading ? /* @__PURE__ */ jsx(LoadingMF, {
988
- loadingProgress: networkProgress,
989
- 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
990
1068
  }) : null]
991
1069
  });
992
1070
  }
@@ -1034,32 +1112,13 @@ const WindowRoot = styled("div")`
1034
1112
  &.${areasViewerClasses.selected} {
1035
1113
  border-top: 1px solid green;
1036
1114
  }
1037
- &.${areasViewerClasses.loading} {
1038
- border-left: 2px solid red;
1039
- }
1040
- // windowHeader
1041
- & .${areasViewerClasses.windowHeader} {
1042
- display: flex;
1043
- gap: 4px;
1044
-
1045
- align-items: center;
1046
- position: relative;
1047
-
1048
- padding: 8px;
1049
- justify-content: end;
1050
- min-height: ${(props) => props.theme.spacing(5)} ;
1051
-
1052
- border-bottom: 1px solid ${(props) => props.theme.palette.divider},
1053
- overflow: hidden;
1054
- cursor: move;
1055
- height: 60px;
1056
1115
 
1057
-
1058
-
1059
- > span: {
1060
- margin-right: 12px;
1061
- }
1116
+ // windowHeader
1117
+ /*
1118
+ &.${areasViewerClasses.loading} .${areasViewerClasses.windowHeader} {
1119
+ border-bottom: 2px solid red !important;
1062
1120
  }
1121
+ */
1063
1122
  // windowHeaderTitle
1064
1123
  & .${areasViewerClasses.windowHeaderTitle} {
1065
1124
  width: 100%;
@@ -1141,23 +1200,23 @@ function Toasty(props) {
1141
1200
  const toasty = useAreasStore((state) => state.hashWindows[windowId].hashToasties[toastyId], shallow);
1142
1201
  console.log("percentExecuted", toasty.percentExecuted, toasty.timer);
1143
1202
  const {
1144
- pinToasty,
1145
- closeToasty
1203
+ pinToast: pinToasty,
1204
+ closeToast: closeToasty
1146
1205
  } = useAreasStore((state) => state.windowActions, shallow);
1147
1206
  const {
1148
1207
  host_static_assets,
1149
1208
  environment_assets
1150
1209
  } = useEnvironment();
1151
- return /* @__PURE__ */ jsxs("div", {
1210
+ return /* @__PURE__ */ jsx("div", {
1152
1211
  className: clsx(areasViewerClasses.windowToastyContainer, areasViewerClasses[toasty.type]),
1153
- children: [toasty.timer ? /* @__PURE__ */ jsx(LinearProgress, {
1154
- variant: "determinate",
1155
- value: toasty.percentExecuted
1156
- }) : null, /* @__PURE__ */ jsxs("div", {
1212
+ children: /* @__PURE__ */ jsxs("div", {
1157
1213
  className: areasViewerClasses.windowToastyMeesageButtonsContainer,
1158
- children: [/* @__PURE__ */ jsx("div", {
1214
+ children: [/* @__PURE__ */ jsxs("div", {
1159
1215
  className: areasViewerClasses.windowToastyMessage,
1160
- children: toasty.message
1216
+ children: [toasty.timer ? /* @__PURE__ */ jsx(LinearProgress, {
1217
+ variant: "determinate",
1218
+ value: toasty.percentExecuted
1219
+ }) : null, toasty.message]
1161
1220
  }), /* @__PURE__ */ jsxs("div", {
1162
1221
  className: areasViewerClasses.windowToastyButtonsContainer,
1163
1222
  children: [/* @__PURE__ */ jsx(IconButton, {
@@ -1174,7 +1233,7 @@ function Toasty(props) {
1174
1233
  src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_CLOSE}`
1175
1234
  })]
1176
1235
  })]
1177
- })]
1236
+ })
1178
1237
  });
1179
1238
  }
1180
1239
  function Toasties(props) {
@@ -1187,11 +1246,14 @@ function Toasties(props) {
1187
1246
  }
1188
1247
  return /* @__PURE__ */ jsx("div", {
1189
1248
  className: areasViewerClasses.windowToastiesContainer,
1190
- children: tosties.map((t) => {
1191
- return /* @__PURE__ */ jsx(Toasty, {
1192
- windowId,
1193
- toastyId: t.id
1194
- }, 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
+ })
1195
1257
  })
1196
1258
  });
1197
1259
  }
@@ -1203,6 +1265,8 @@ const Window = (props) => {
1203
1265
  areaId
1204
1266
  } = props;
1205
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);
1206
1270
  const wd = useAreasStore((state) => state.hashWindows[windowId], shallow);
1207
1271
  const {
1208
1272
  setActions,
@@ -1210,8 +1274,9 @@ const Window = (props) => {
1210
1274
  getCookies,
1211
1275
  setCookie,
1212
1276
  close,
1213
- setLoading,
1214
- toasty
1277
+ startProgress,
1278
+ stopProgress,
1279
+ toast
1215
1280
  } = useAreasStore((state) => state.windowActions, shallow);
1216
1281
  const {
1217
1282
  selectWindowPopUp,
@@ -1240,42 +1305,49 @@ const Window = (props) => {
1240
1305
  setCookie(windowId, id, type, cookie);
1241
1306
  },
1242
1307
  close: () => close(windowId),
1243
- setLoading: (isLoading) => {
1244
- setLoading(windowId, isLoading);
1245
- },
1246
- toasty: (toastyOptions) => {
1247
- toasty(windowId, toastyOptions);
1308
+ startProgress: () => startProgress(windowId),
1309
+ stopProgress: () => stopProgress(windowId),
1310
+ toast: (toastyOptions) => {
1311
+ toast(windowId, toastyOptions);
1248
1312
  }
1249
1313
  }), []);
1250
1314
  useEffect(() => {
1251
- loadCookiesFromApi(windowId);
1252
- }, []);
1253
- 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, {
1254
1323
  role: "presentation",
1255
1324
  className: clsx(areasViewerClasses.windowRoot, selected ? areasViewerClasses.selectedWindow : null, wd.loading ? areasViewerClasses.loading : null),
1256
1325
  onMouseDown: onTouch,
1257
- children: [/* @__PURE__ */ jsx(Header, {
1258
- areaId,
1259
- windowId,
1260
- emergeType
1261
- }), /* @__PURE__ */ jsx(Toasties, {
1262
- windowId
1263
- }), /* @__PURE__ */ jsx("div", {
1264
- className: areasViewerClasses.windowContent,
1265
- children: wd.status === "init" ? /* @__PURE__ */ jsx("div", {
1266
- children: "BRUCE cargando"
1267
- }) : wd.winType === "microfrontend" ? /* @__PURE__ */ jsx(MemonizedMicroFrontend, {
1268
- moduleId,
1269
- dynamicMFStore: wd.dynamicMFStore,
1270
- windowTools,
1271
- ...wd.mfProps
1272
- }) : /* @__PURE__ */ jsx(Component, {
1273
- moduleId,
1274
- dynamicMFStore: wd.dynamicMFStore,
1275
- windowTools,
1276
- component: wd.component
1277
- })
1278
- })]
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
+ })
1279
1351
  });
1280
1352
  };
1281
1353
  const MemonizedWindow = React__default.memo(Window);
@@ -1458,8 +1530,10 @@ const InnerForHooks = (props) => {
1458
1530
  children: [
1459
1531
  status === "loaded" ? /* @__PURE__ */ jsx(GridLayout, {
1460
1532
  areaId
1461
- }) : /* @__PURE__ */ jsx("div", {
1462
- children: "Loading.. Intentar si falla."
1533
+ }) : /* @__PURE__ */ jsx(AreasLoadingError, {
1534
+ status,
1535
+ action: () => {
1536
+ }
1463
1537
  }),
1464
1538
  /* @__PURE__ */ jsx(PanelWindows, {
1465
1539
  areaId
@@ -1534,7 +1608,6 @@ const WindowModal = (props) => {
1534
1608
  children: /* @__PURE__ */ jsx(ResizeableWindow, {
1535
1609
  width: props.windowProps?.width || 400,
1536
1610
  height: props.windowProps?.height || 300,
1537
- className: areasViewerClasses.windowModalRoot,
1538
1611
  handle: (resizeHandle, ref) => /* @__PURE__ */ jsx("div", {
1539
1612
  ref,
1540
1613
  children: /* @__PURE__ */ jsx(Icon, {
@@ -1579,6 +1652,9 @@ function AreasViewer() {
1579
1652
  const currentArea = useAreasStore((state) => state.currentAreaId);
1580
1653
  const status = useAreasStore((state) => state.ownerState.status);
1581
1654
  const classesRoot = useAreasStore((state) => state.viwerClasses.root);
1655
+ const {
1656
+ init
1657
+ } = useAreasStore((state) => state.areasActions);
1582
1658
  return /* @__PURE__ */ jsxs(Fragment, {
1583
1659
  children: [/* @__PURE__ */ jsx(AreasViewerRoot, {
1584
1660
  className: classesRoot,
@@ -1587,8 +1663,9 @@ function AreasViewer() {
1587
1663
  areaId: area.id,
1588
1664
  selected: currentArea === area.id
1589
1665
  }, area.id);
1590
- }) : /* @__PURE__ */ jsx(Fragment, {
1591
- children: "Bruce cargando"
1666
+ }) : /* @__PURE__ */ jsx(AreasLoadingError, {
1667
+ status,
1668
+ action: () => init()
1592
1669
  })
1593
1670
  }), windowsModals.map((wm) => {
1594
1671
  if (hashWindowsModals[wm]) {