@m4l/components 0.2.35 → 0.2.36

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 (520) hide show
  1. package/@types/export.d.ts +274 -441
  2. package/@types/types.d.ts +25 -0
  3. package/assets/Logo/index.109a182d.js +38 -0
  4. package/components/AccountPopover/classes/types.d.ts +1 -1
  5. package/components/AccountPopover/index.a9dc9f92.js +332 -0
  6. package/components/AccountPopover/style.d.ts +2 -0
  7. package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +6 -6
  8. package/components/AccountPopover/subcomponents/PopOver/types.d.ts +8 -8
  9. package/components/AccountPopover/types.d.ts +3 -3
  10. package/components/AppBar/classes/types.d.ts +1 -1
  11. package/components/AppBar/index.7dee7427.js +93 -0
  12. package/components/AppBar/styles.d.ts +2 -0
  13. package/components/AppBar/tests/utils.d.ts +1 -1
  14. package/components/AppBar/types.d.ts +9 -9
  15. package/components/CommonActions/classes/types.d.ts +1 -1
  16. package/components/CommonActions/components/ActionCancel/{index.416cbf9b.js → index.46f636e9.js} +5 -13
  17. package/components/CommonActions/components/ActionFormCancel/{index.78267f7c.js → index.2b0bd50d.js} +30 -35
  18. package/components/CommonActions/components/ActionFormIntro/{index.dcb4d280.js → index.4f212c39.js} +19 -26
  19. package/components/CommonActions/components/ActionIntro/{index.094290fd.js → index.7406bd47.js} +16 -17
  20. package/components/CommonActions/components/Actions/{index.fa7ab18c.js → index.273645af.js} +30 -26
  21. package/components/CommonActions/components/Actions/index.d.ts +2 -1
  22. package/components/CommonActions/components/Actions/styles.d.ts +2 -0
  23. package/components/CommonActions/components/Actions/types.d.ts +2 -2
  24. package/components/CommonActions/tests/utils.d.ts +1 -1
  25. package/components/DataGrid/assets/icons/datagrid.svg +4 -4
  26. package/components/DataGrid/classes/types.d.ts +1 -1
  27. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.cd6e553a.js → index.cee6b676.js} +11 -12
  28. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.0c439ac3.js → index.708f3fb5.js} +4 -12
  29. package/components/DataGrid/formatters/ColumnDateFormatter/{index.704db1ca.js → index.e00d0cf2.js} +4 -12
  30. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.c064bb07.js +23 -0
  31. package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.925387d2.js → index.880e743b.js} +4 -9
  32. package/components/DataGrid/formatters/ColumnPointsFormatter/{index.4335c26b.js → index.226cc583.js} +2 -5
  33. package/components/DataGrid/formatters/ColumnPriceFormatter/{index.d717405e.js → index.bf9d9e60.js} +2 -5
  34. package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.0b23ba88.js → index.4045b2f2.js} +13 -17
  35. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.aeea65aa.js → index.a87302d1.js} +2 -5
  36. package/components/DataGrid/{index.abe0f9b9.js → index.304437ee.js} +257 -319
  37. package/components/DataGrid/styles.d.ts +2 -0
  38. package/components/DataGrid/subcomponents/Actions/index.f14590d2.js +595 -0
  39. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +8 -0
  40. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +2 -0
  41. package/components/DataGrid/subcomponents/editors/TextEditor/{index.eac1749c.js → index.3f0d9e28.js} +26 -25
  42. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +6 -0
  43. package/components/DragResizeWindow/DragResizeWindow.d.ts +3 -3
  44. package/components/DragResizeWindow/classes/types.d.ts +1 -1
  45. package/components/DragResizeWindow/index.a9f25040.js +480 -0
  46. package/components/DragResizeWindow/styled.d.ts +2 -0
  47. package/components/DragResizeWindow/types.d.ts +4 -5
  48. package/components/DragResizeWindow/utils.d.ts +1 -1
  49. package/components/DynamicFilter/DynamicFilter.d.ts +1 -7
  50. package/components/DynamicFilter/constants.d.ts +3 -11
  51. package/components/DynamicFilter/dictionary.d.ts +1 -2
  52. package/components/DynamicFilter/dynamicFilterSlots.d.ts +112 -0
  53. package/components/DynamicFilter/helpers/formatToInitialFilters.d.ts +7 -0
  54. package/components/DynamicFilter/helpers/formatToRowFilter.d.ts +7 -0
  55. package/components/DynamicFilter/helpers/getPurgedInitialFiltersApplied.d.ts +11 -0
  56. package/components/DynamicFilter/index.48d809e2.js +2086 -0
  57. package/components/DynamicFilter/index.d.ts +1 -2
  58. package/components/DynamicFilter/store/DynamicFilterContext.d.ts +16 -0
  59. package/components/DynamicFilter/{contexts/DynamicFilterContext/store.d.ts → store/DynamicFilterStore.d.ts} +28 -60
  60. package/components/DynamicFilter/store/useDynamicFilterStore.d.ts +2 -0
  61. package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +3 -0
  62. package/components/DynamicFilter/subcomponents/AppliedFilterChip/index.d.ts +1 -0
  63. package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.d.ts +10 -0
  64. package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.d.ts +2 -0
  65. package/components/DynamicFilter/subcomponents/AppliedFilters/index.d.ts +1 -0
  66. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +5 -0
  67. package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.d.ts +2 -0
  68. package/components/DynamicFilter/subcomponents/DynamicFilterBase/index.d.ts +1 -0
  69. package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +4 -0
  70. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.d.ts +14 -0
  71. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.d.ts +1 -0
  72. package/components/DynamicFilter/subcomponents/FieldTypes/DataTypeComponent.d.ts +7 -0
  73. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.d.ts +14 -0
  74. package/components/DynamicFilter/subcomponents/FieldTypes/FieldTypeInterface.d.ts +21 -0
  75. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.d.ts +14 -0
  76. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +21 -0
  77. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.d.ts +14 -0
  78. package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +7 -0
  79. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.d.ts +2 -0
  80. package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.d.ts +2 -0
  81. package/components/DynamicFilter/subcomponents/FilterActions/index.d.ts +1 -0
  82. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +18 -0
  83. package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.d.ts +2 -0
  84. package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.d.ts +2 -0
  85. package/components/DynamicFilter/subcomponents/InputFilter/index.d.ts +1 -7
  86. package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.d.ts +40 -0
  87. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +2 -0
  88. package/components/DynamicFilter/subcomponents/PopoverFilter/index.d.ts +1 -14
  89. package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +24 -0
  90. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +7 -0
  91. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index.d.ts +1 -11
  92. package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +9 -0
  93. package/components/DynamicFilter/types.d.ts +101 -30
  94. package/components/FieldLabel/classes/types.d.ts +1 -1
  95. package/components/FieldLabel/index.2622ee40.js +54 -0
  96. package/components/FieldLabel/styles.d.ts +2 -0
  97. package/components/GridLayout/{index.65470f01.js → index.b9c47a4c.js} +516 -468
  98. package/components/GridLayout/styles.d.ts +2 -0
  99. package/components/GridLayout/subcomponents/Griditem/index.69bc14e5.js +397 -0
  100. package/components/GridLayout/subcomponents/Responsive/{index.5b3e0521.js → index.094c1d09.js} +50 -31
  101. package/components/GridLayout/subcomponents/SizeProvider/{index.0328ad0a.js → index.e1d2df80.js} +34 -31
  102. package/components/HelperText/{index.7d2afdb3.js → index.81c5d349.js} +12 -21
  103. package/components/HelperText/styles.d.ts +2 -0
  104. package/components/Icon/{index.ad330e78.js → index.ee7b85c9.js} +67 -59
  105. package/components/Icon/styles.d.ts +4 -0
  106. package/components/Image/{index.b799c514.js → index.8cc036b1.js} +40 -75
  107. package/components/Image/styles.d.ts +2 -0
  108. package/components/Image/tests/utils.d.ts +1 -1
  109. package/components/Image/utils/getRatioValues.d.ts +1 -1
  110. package/components/LanguagePopover/index.72f316fc.js +187 -0
  111. package/components/LanguagePopover/styles.d.ts +6 -0
  112. package/components/LanguagePopover/tests/utils.d.ts +1 -1
  113. package/components/LinearProgressIndeterminate/classes/types.d.ts +1 -1
  114. package/components/LinearProgressIndeterminate/{index.c46da124.js → index.2ecd571e.js} +31 -19
  115. package/components/LinearProgressIndeterminate/styles.d.ts +2 -0
  116. package/components/Loadable/{index.e994fc3e.js → index.97fe63f9.js} +3 -8
  117. package/components/LoadingError/classes/types.d.ts +1 -1
  118. package/components/LoadingError/{index.ee29dd48.js → index.7aaba1cf.js} +30 -47
  119. package/components/LoadingError/styles.d.ts +2 -0
  120. package/components/LoadingError/types.d.ts +1 -1
  121. package/components/MFLoader/classes/types.d.ts +1 -1
  122. package/components/MFLoader/{index.3a37407c.js → index.40c419c0.js} +53 -69
  123. package/components/MFLoader/styles.d.ts +2 -0
  124. package/components/MFLoader/types.d.ts +4 -4
  125. package/components/ModalDialog/index.42349189.js +77 -0
  126. package/components/NavLink/{index.b75c91e1.js → index.9e847eb5.js} +21 -25
  127. package/components/NavLink/styles.d.ts +2 -0
  128. package/components/NavLink/tests/utils.d.ts +1 -1
  129. package/components/NavLink/types.d.ts +2 -2
  130. package/components/NoItemSelected/classes/types.d.ts +1 -1
  131. package/components/NoItemSelected/{index.3a479c64.js → index.5a8160fd.js} +17 -43
  132. package/components/NoItemSelected/styles.d.ts +5 -0
  133. package/components/ObjectLogs/index.6955149e.js +253 -0
  134. package/components/ObjectLogs/styles.d.ts +4 -0
  135. package/components/PDFViewer/classes/types.d.ts +1 -1
  136. package/components/PDFViewer/{index.88c6ff6a.js → index.47bb0928.js} +7 -18
  137. package/components/PDFViewer/styles.d.ts +2 -0
  138. package/components/Page/index.c1d4a319.js +114 -0
  139. package/components/PaperForm/classes/types.d.ts +1 -1
  140. package/components/PaperForm/{index.d08b43f6.js → index.9f6fd02d.js} +20 -63
  141. package/components/PaperForm/styles.d.ts +7 -0
  142. package/components/PaperForm/types.d.ts +1 -2
  143. package/components/Period/classes/types.d.ts +1 -1
  144. package/components/Period/{index.3f89d8a4.js → index.c6d1a95a.js} +108 -125
  145. package/components/Period/styles.d.ts +7 -0
  146. package/components/PrintingSystem/classes/types.d.ts +1 -1
  147. package/components/PrintingSystem/{index.27f1f209.js → index.f51a00f8.js} +45 -57
  148. package/components/PrintingSystem/styles.d.ts +2 -0
  149. package/components/PrintingSystem/subcomponents/BodyNode/index.6792c353.js +49 -0
  150. package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +1 -1
  151. package/components/PrintingSystem/subcomponents/ChartNode/{index.990e164c.js → index.eec6b4cd.js} +28 -32
  152. package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +1 -2
  153. package/components/PrintingSystem/subcomponents/DividerNode/index.e58467c9.js +20 -0
  154. package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +2 -3
  155. package/components/PrintingSystem/subcomponents/FooterNode/index.920b75c9.js +49 -0
  156. package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +1 -1
  157. package/components/PrintingSystem/subcomponents/GridNode/index.6c1ad53c.js +70 -0
  158. package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +2 -2
  159. package/components/PrintingSystem/subcomponents/HeaderNode/index.e8b151ad.js +49 -0
  160. package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +1 -1
  161. package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +2 -3
  162. package/components/PrintingSystem/subcomponents/Pager/types.d.ts +2 -2
  163. package/components/PrintingSystem/subcomponents/PaperNode/index.bf199422.js +30 -0
  164. package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +2 -2
  165. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.44d436b9.js +47 -0
  166. package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +2 -2
  167. package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +2 -3
  168. package/components/PrintingSystem/subcomponents/SectionNode/index.879cf13d.js +49 -0
  169. package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +1 -1
  170. package/components/PrintingSystem/subcomponents/TextBoxNode/index.eb6af0ca.js +24 -0
  171. package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +2 -3
  172. package/components/PrintingSystem/utils/FactoryRender/types.d.ts +1 -1
  173. package/components/PrintingSystem/utils/PageRender/types.d.ts +1 -1
  174. package/components/PropertyValue/classes/types.d.ts +1 -1
  175. package/components/PropertyValue/index.5e59580c.js +264 -0
  176. package/components/PropertyValue/styles.d.ts +2 -0
  177. package/components/Resizeable/{index.cb5aad75.js → index.5e8e48b1.js} +16 -23
  178. package/components/ResizeableWindow/styles.d.ts +5 -0
  179. package/components/ScrollBar/classes/types.d.ts +1 -1
  180. package/components/ScrollBar/{index.7dfc2f29.js → index.4b965665.js} +31 -51
  181. package/components/ScrollBar/styles.d.ts +9 -0
  182. package/components/SideBar/context/sideBarContext/index.d.ts +4 -4
  183. package/components/SideBar/index.5d1f4a23.js +851 -0
  184. package/components/SideBar/styles.d.ts +20 -0
  185. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +3 -0
  186. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +4 -0
  187. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +2 -0
  188. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +2 -0
  189. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +9 -0
  190. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +2 -2
  191. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +2 -0
  192. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +22 -0
  193. package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +3 -0
  194. package/components/SideBar/subcomponents/ContentMobile/subcomponents/types.d.ts +4 -4
  195. package/components/SideBar/tests/constants.d.ts +1 -1
  196. package/components/SideBar/tests/utils.d.ts +1 -1
  197. package/components/SideBar/types.d.ts +2 -2
  198. package/components/SplitLayout/SplitLayout.d.ts +1 -1
  199. package/components/SplitLayout/classes/types.d.ts +1 -1
  200. package/components/SplitLayout/{index.7302ceb3.js → index.15756f0f.js} +40 -29
  201. package/components/SplitLayout/styles.d.ts +4 -0
  202. package/components/SplitLayout/tests/utils.d.ts +1 -1
  203. package/components/ToastContainer/ToastContainer.d.ts +1 -1
  204. package/components/ToastContainer/classes/types.d.ts +1 -1
  205. package/components/ToastContainer/{index.4d44ce53.js → index.dbd78941.js} +14 -30
  206. package/components/ToastContainer/styles.d.ts +2 -0
  207. package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +1 -1
  208. package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +1 -1
  209. package/components/ToastContainer/types.d.ts +1 -1
  210. package/components/WrapperComponent/index.57964195.js +14 -0
  211. package/components/animate/AnimatedScroll/styles.d.ts +6 -0
  212. package/components/animate/AnimatedScroll/types.d.ts +3 -3
  213. package/components/animate/LoadingScreen/{index.1d0c4307.js → index.1a83615a.js} +25 -39
  214. package/components/animate/LoadingScreen/styles.d.ts +7 -0
  215. package/components/animate/MotionContainer/index.3032bd8f.js +34 -0
  216. package/components/animate/MotionContainer/index.d.ts +9 -9
  217. package/components/animate/MotionLazyContainer/index.d.ts +2 -2
  218. package/components/animate/MotionLazyContainer/{index.572dd012.js → index.d2902a6c.js} +3 -9
  219. package/components/animate/PropagateLoader/{index.7fab43c8.js → index.76d7ea70.js} +4 -12
  220. package/components/animate/PropagateLoader/syles.d.ts +2 -0
  221. package/components/animate/{index.5d4575bc.js → index.87296638.js} +35 -56
  222. package/components/areas/components/AreasAdmin/index.f239c717.js +733 -0
  223. package/components/areas/components/AreasAdmin/styles.d.ts +5 -0
  224. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +4 -0
  225. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +1 -1
  226. package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.d.ts +1 -1
  227. package/components/areas/components/AreasViewer/index.61e0538b.js +1071 -0
  228. package/components/areas/components/AreasViewer/styles.d.ts +2 -0
  229. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/subcomponents/ResizeHandle/index.d.ts +1 -1
  230. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.d.ts +2 -0
  231. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/styles.d.ts +3 -0
  232. package/components/areas/contexts/AreasContext/{index.c5a3b322.js → index.19c7b906.js} +32 -77
  233. package/components/areas/contexts/DynamicMFParmsContext/{index.1607c78e.js → index.3d9ad0ad.js} +3 -9
  234. package/components/areas/contexts/DynamicMFParmsContext/types.d.ts +2 -2
  235. package/components/areas/contexts/WindowToolsMFContext/{index.8f3e2a04.js → index.992ae7a3.js} +3 -11
  236. package/components/areas/contexts/WindowToolsMFContext/types.d.ts +29 -29
  237. package/components/areas/hooks/useAreas/{index.caa92660.js → index.cedd30ee.js} +1 -1
  238. package/components/areas/hooks/useDynamicMFParameters/{index.e52c5392.js → index.9e09e1e3.js} +2 -4
  239. package/components/areas/hooks/useWindowToolsMF/{index.b7afaf88.js → index.2fbae9dc.js} +1 -1
  240. package/components/areas/types.d.ts +17 -17
  241. package/components/commercial/AppBarCommercial/classes/types.d.ts +1 -1
  242. package/components/commercial/AppBarCommercial/{index.9cf586a2.js → index.9f654f8e.js} +10 -12
  243. package/components/commercial/AppBarCommercial/styles.d.ts +2 -0
  244. package/components/commercial/AppBarCommercial/types.d.ts +1 -1
  245. package/components/commercial/HamburgerMenu/classes/type.d.ts +1 -1
  246. package/components/commercial/HamburgerMenu/styles.d.ts +13 -0
  247. package/components/commercial/HamburgerMenu/test/utils.d.ts +1 -1
  248. package/components/commercial/HamburgerMenu/types.d.ts +1 -1
  249. package/components/commercial/SectionCommercial/classes/types.d.ts +1 -1
  250. package/components/commercial/SectionCommercial/{index.4dbfc0a7.js → index.3df4685b.js} +28 -19
  251. package/components/commercial/SectionCommercial/styles.d.ts +11 -0
  252. package/components/commercial/SectionCommercial/types.d.ts +3 -4
  253. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.d.ts +1 -1
  254. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/styles.d.ts +2 -0
  255. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/types.d.ts +1 -1
  256. package/components/commercial/TopBar/context/index.d.ts +1 -1
  257. package/components/commercial/TopBar/context/type.d.ts +2 -2
  258. package/components/commercial/TopBar/index.7aeb6ec0.js +234 -0
  259. package/components/commercial/TopBar/style.d.ts +2 -0
  260. package/components/commercial/TopBar/type.d.ts +2 -2
  261. package/components/commercial/TopBar/utils/isActive/index.d.ts +1 -1
  262. package/components/commercial/{index.89ad149c.js → index.b90488db.js} +40 -38
  263. package/components/formatters/BooleanFormatter/{index.9ccf9298.js → index.0c2d8e35.js} +20 -30
  264. package/components/formatters/DateFormatter/{index.578a9f53.js → index.2ef6f261.js} +5 -14
  265. package/components/formatters/FormatterRoot/styles.d.ts +2 -0
  266. package/components/formatters/FormatterRoot/types.d.ts +1 -1
  267. package/components/formatters/PointsFormatter/{index.8a4fa393.js → index.d8a4ee54.js} +4 -11
  268. package/components/formatters/PriceFormatter/{index.83cbe7be.js → index.97f75b4b.js} +5 -13
  269. package/components/formatters/UncertaintyFormatter/{index.08e1b79f.js → index.c3ffdebc.js} +8 -13
  270. package/components/formatters/{index.03471e3f.js → index.b816c6b6.js} +11 -34
  271. package/components/hook-form/HelperError/index.c8b046b7.js +19 -0
  272. package/components/hook-form/RHFAutocomplete/index.ea2ac2b1.js +408 -0
  273. package/components/hook-form/RHFAutocomplete/styles.d.ts +2 -0
  274. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +2 -0
  275. package/components/hook-form/RHFAutocompleteAsync/{index.bc278965.js → index.98dcf0de.js} +47 -45
  276. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +5 -0
  277. package/components/hook-form/RHFAutocompleteAsync/tests/utils.d.ts +1 -1
  278. package/components/hook-form/RHFCheckbox/index.c32278fa.js +142 -0
  279. package/components/hook-form/RHFCheckbox/styles.d.ts +15 -0
  280. package/components/hook-form/RHFCheckbox/test/utils.d.ts +1 -1
  281. package/components/hook-form/RHFColorPicker/classes/types.d.ts +1 -1
  282. package/components/hook-form/RHFColorPicker/index.8c939bfd.js +191 -0
  283. package/components/hook-form/RHFColorPicker/styles.d.ts +2 -0
  284. package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/types.d.ts +2 -3
  285. package/components/hook-form/RHFColorPicker/types.d.ts +7 -7
  286. package/components/hook-form/RHFDateTime/classes/types.d.ts +1 -1
  287. package/components/hook-form/RHFDateTime/index.ac27deab.js +190 -0
  288. package/components/hook-form/RHFDateTime/styles.d.ts +2 -0
  289. package/components/hook-form/RHFDateTime/types.d.ts +1 -1
  290. package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +34 -0
  291. package/components/hook-form/RHFPeriod/classes/types.d.ts +1 -1
  292. package/components/hook-form/RHFPeriod/index.70cfc422.js +104 -0
  293. package/components/hook-form/RHFPeriod/styles.d.ts +2 -0
  294. package/components/hook-form/RHFRadioGroup/index.11c0add8.js +35 -0
  295. package/components/hook-form/RHFRadioGroup/types.d.ts +1 -1
  296. package/components/hook-form/RHFSelect/index.c6c60ecc.js +29 -0
  297. package/components/hook-form/RHFTextField/index.fa97889a.js +325 -0
  298. package/components/hook-form/RHFTextField/styles.d.ts +3 -0
  299. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +3 -0
  300. package/components/hook-form/RHFTextField/tests/utils.d.ts +1 -1
  301. package/components/hook-form/RHFTextFieldPassword/styles.d.ts +2 -0
  302. package/components/hook-form/RHFTextFieldPassword/tests/utils.d.ts +1 -1
  303. package/components/hook-form/RHFTextFieldPassword/types.d.ts +1 -2
  304. package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +1 -1
  305. package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +2 -0
  306. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +2 -0
  307. package/components/hook-form/RHFUpload/index.c5e5c61c.js +258 -0
  308. package/components/maps/components/GpsTools/constants.d.ts +1 -1
  309. package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +3 -3
  310. package/components/maps/components/GpsTools/{index.d93188ad.js → index.4ea69dd1.js} +748 -767
  311. package/components/maps/components/GpsTools/styles.d.ts +2 -0
  312. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +1 -0
  313. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +2 -2
  314. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +1 -1
  315. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +2 -2
  316. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +1 -1
  317. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +11 -0
  318. package/components/maps/components/GpsTools/types.d.ts +1 -1
  319. package/components/maps/components/Map/contexts/MapContext/helper.d.ts +1 -1
  320. package/components/maps/components/Map/contexts/MapContext/index.d.ts +1 -1
  321. package/components/maps/components/Map/contexts/MapContext/types.d.ts +6 -6
  322. package/components/maps/components/Map/external/googleMutant/index.d.ts +94 -94
  323. package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +1 -1
  324. package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/types.d.ts +1 -1
  325. package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/types.d.ts +2 -2
  326. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +1 -1
  327. package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +2 -2
  328. package/components/maps/components/Map/{index.accb1f77.js → index.62b7d09b.js} +731 -770
  329. package/components/maps/components/Map/index.d.ts +1 -1
  330. package/components/maps/components/Map/styled.d.ts +2 -0
  331. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +1 -1
  332. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +1 -1
  333. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +1 -1
  334. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +1 -1
  335. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +1 -1
  336. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +1 -1
  337. package/components/maps/components/Map/subcomponents/Controls/types.d.ts +1 -1
  338. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +2 -2
  339. package/components/maps/components/Map/types.d.ts +2 -2
  340. package/components/maps/{index.34ab6a68.js → index.13bb982c.js} +1 -1
  341. package/components/maps/index.d.ts +2 -2
  342. package/components/maps/leaflet-geoman.d.ts +1476 -1633
  343. package/components/modal/WindowBase.2414cd02.js +44 -0
  344. package/components/modal/WindowConfirm/types.d.ts +4 -4
  345. package/components/modal/WindowConfirm.48140481.js +66 -0
  346. package/components/modal/classes/types.d.ts +1 -1
  347. package/components/modal/{index.61389369.js → index.81eb6def.js} +7 -1
  348. package/components/mui_extended/Accordion/classes/types.d.ts +1 -1
  349. package/components/mui_extended/Accordion/index.d08a0361.js +142 -0
  350. package/components/mui_extended/Accordion/styles.d.ts +4 -0
  351. package/components/mui_extended/Avatar/classes/types.d.ts +1 -1
  352. package/components/mui_extended/Avatar/{index.75e6ed57.js → index.fb9ad158.js} +26 -34
  353. package/components/mui_extended/Avatar/styles.d.ts +2 -0
  354. package/components/mui_extended/Avatar/tests/utils.d.ts +1 -1
  355. package/components/mui_extended/Badge/Badge.d.ts +1 -1
  356. package/components/mui_extended/Badge/classes/types.d.ts +1 -1
  357. package/components/mui_extended/Badge/{index.09f5aee5.js → index.2a3aef2c.js} +10 -16
  358. package/components/mui_extended/Badge/styles.d.ts +2 -0
  359. package/components/mui_extended/Badge/types.d.ts +1 -1
  360. package/components/mui_extended/BoxIcon/index.d61e7ac5.js +22 -0
  361. package/components/mui_extended/Breadcrumbs/index.4a44883c.js +87 -0
  362. package/components/mui_extended/Button/classes/types.d.ts +2 -2
  363. package/components/mui_extended/Button/{index.c3084916.js → index.5395d101.js} +71 -79
  364. package/components/mui_extended/Button/styles.d.ts +13 -0
  365. package/components/mui_extended/CheckBox/classes/types.d.ts +1 -1
  366. package/components/mui_extended/CheckBox/styles.d.ts +2 -0
  367. package/components/mui_extended/CheckBox/subcomponents/Skeleton/types.d.ts +1 -1
  368. package/components/mui_extended/CheckBox/types.d.ts +2 -2
  369. package/components/mui_extended/{CheckBox.2a3b86c5.js → CheckBox.256169f0.js} +23 -33
  370. package/components/mui_extended/CircularProgress/{index.ad569afd.js → index.967e70b7.js} +2 -4
  371. package/components/mui_extended/IconButton/{index.f8a3021b.js → index.b0ee4965.js} +42 -48
  372. package/components/mui_extended/IconButton/styles.d.ts +2 -0
  373. package/components/mui_extended/ImageButton/styles.d.ts +2 -0
  374. package/components/mui_extended/ImageButton/tests/utils.d.ts +1 -1
  375. package/components/mui_extended/LinearProgress/{index.c92b9ba9.js → index.4092bb69.js} +3 -7
  376. package/components/mui_extended/LinkWithRoute/index.288c51f3.js +15 -0
  377. package/components/mui_extended/LoadingButton/styles.d.ts +2 -0
  378. package/components/mui_extended/LoadingButton/tests/utils.d.ts +1 -1
  379. package/components/mui_extended/MenuActions/classes/types.d.ts +1 -1
  380. package/components/mui_extended/MenuActions/{index.90f53670.js → index.d92ed0d6.js} +68 -68
  381. package/components/mui_extended/MenuActions/styles.d.ts +30 -0
  382. package/components/mui_extended/Pager/classes/types.d.ts +1 -1
  383. package/components/mui_extended/Pager/{index.ea2a4f3e.js → index.1ba2d52b.js} +114 -112
  384. package/components/mui_extended/Pager/styles.d.ts +2 -0
  385. package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +2 -2
  386. package/components/mui_extended/Pager/subcomponents/PagerActions/types.d.ts +1 -1
  387. package/components/mui_extended/Popover/index.4e7340b4.js +142 -0
  388. package/components/mui_extended/Popover/styles.d.ts +1 -0
  389. package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +3 -0
  390. package/components/mui_extended/Stack/Stack.d.ts +1 -1
  391. package/components/mui_extended/Stack/classes/types.d.ts +1 -1
  392. package/components/mui_extended/Stack/{index.0e53197c.js → index.fe363ca5.js} +3 -11
  393. package/components/mui_extended/Stack/styles.d.ts +11 -0
  394. package/components/mui_extended/Stack/types.d.ts +1 -1
  395. package/components/mui_extended/Tab/classes/types.d.ts +1 -1
  396. package/components/mui_extended/Tab/{index.9214d9cc.js → index.c5ad86e2.js} +41 -63
  397. package/components/mui_extended/Tab/styles.d.ts +3 -0
  398. package/components/mui_extended/TabContent/TabContent.d.ts +1 -1
  399. package/components/mui_extended/TabContent/classes/types.d.ts +1 -1
  400. package/components/mui_extended/TabContent/styles.d.ts +2 -0
  401. package/components/mui_extended/TabContent/types.d.ts +1 -1
  402. package/components/mui_extended/Tabs/classes/types.d.ts +1 -1
  403. package/components/mui_extended/Tabs/styles.d.ts +59 -0
  404. package/components/mui_extended/ToggleButton/ToggleButton.d.ts +1 -1
  405. package/components/mui_extended/ToggleButton/index.7fbc8614.js +18 -0
  406. package/components/mui_extended/ToggleIconButton/ToggleIconButton.d.ts +1 -1
  407. package/components/mui_extended/ToggleIconButton/{index.d9dbf650.js → index.0cd347b4.js} +13 -8
  408. package/components/mui_extended/ToggleIconButton/types.d.ts +2 -2
  409. package/components/mui_extended/Tooltip/classes/types.d.ts +1 -1
  410. package/components/mui_extended/Tooltip/{index.24a2bc3f.js → index.49bb5ee1.js} +12 -15
  411. package/components/mui_extended/Tooltip/types.d.ts +3 -3
  412. package/components/mui_extended/Typography/{index.379dd374.js → index.a1e774a2.js} +12 -26
  413. package/components/mui_extended/Typography/styles.d.ts +2 -0
  414. package/components/mui_extended/Typography/tests/utils.d.ts +1 -1
  415. package/components/popups/PopupsProvider/{index.d7409f48.js → index.8fb6232a.js} +12 -26
  416. package/components/popups/PopupsViewer/index.813854e4.js +171 -0
  417. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +4 -4
  418. package/components/popups/components/PopupsViewer/classes/types.d.ts +1 -1
  419. package/components/popups/components/PopupsViewer/styled.d.ts +2 -0
  420. package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +1 -1
  421. package/contexts/ModalContext/{index.2368bb19.js → index.45c275cd.js} +18 -19
  422. package/contexts/RHFormContext/classes/types.d.ts +1 -1
  423. package/contexts/RHFormContext/{index.7b2a8723.js → index.bf3a2812.js} +14 -20
  424. package/contexts/RHFormContext/styles.d.ts +2 -0
  425. package/hocs/index.d.ts +1 -0
  426. package/hocs/withToggle/{index.50aec5e4.js → index.548aeace.js} +3 -11
  427. package/hooks/useFormAddEdit/{index.000ce60b.js → index.9b27ca02.js} +37 -41
  428. package/hooks/useFormFocus/index.d.ts +2 -2
  429. package/hooks/useFormFocus/types.d.ts +1 -1
  430. package/hooks/useModal/{index.f73d7e42.js → index.30674bb7.js} +1 -1
  431. package/hooks/useSizeContainer/{index.62b4e0c4.js → index.3c48670c.js} +1 -1
  432. package/hooks/useTab/{index.976d5e1e.js → index.f7973779.js} +1 -1
  433. package/index.d.ts +2 -1
  434. package/index.js +136 -136
  435. package/package.json +11 -1
  436. package/{react-draggable.e4725f3a.js → react-draggable.79b4c69a.js} +1 -1
  437. package/{react-resizable.c07d63fb.js → react-resizable.af1f31c1.js} +2 -2
  438. package/styles/DynamicFilter.styles.d.ts +2 -0
  439. package/test/getNameDataTestId.0faeade8.js +10 -0
  440. package/test/getNameDataTestId.d.ts +10 -0
  441. package/utils/containerQuery.d.ts +2 -0
  442. package/utils/{index.6469f148.js → index.0718eeac.js} +4 -0
  443. package/utils/index.d.ts +1 -1
  444. package/vite-env.d.ts +4 -4
  445. package/assets/Logo/index.228dcb5a.js +0 -93
  446. package/components/AccountPopover/index.39efc8f0.js +0 -302
  447. package/components/AppBar/index.c8850b99.js +0 -109
  448. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.867b8745.js +0 -26
  449. package/components/DataGrid/subcomponents/Actions/index.4f2071ee.js +0 -663
  450. package/components/DragResizeWindow/index.13ef022e.js +0 -489
  451. package/components/DynamicFilter/classes/index.d.ts +0 -5
  452. package/components/DynamicFilter/classes/types.d.ts +0 -35
  453. package/components/DynamicFilter/contexts/DynamicFilterContext/helpers.d.ts +0 -23
  454. package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +0 -18
  455. package/components/DynamicFilter/contexts/DynamicFilterContext/types.d.ts +0 -5
  456. package/components/DynamicFilter/hooks/useDynamicFilter.d.ts +0 -2
  457. package/components/DynamicFilter/index.c52a8e96.js +0 -1954
  458. package/components/DynamicFilter/subcomponents/ApplyedFilters/index.d.ts +0 -6
  459. package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/index.d.ts +0 -2
  460. package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +0 -1
  461. package/components/DynamicFilter/subcomponents/FilterButton/index.d.ts +0 -11
  462. package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +0 -5
  463. package/components/DynamicFilter/subcomponents/PopoverMenuFields/types.d.ts +0 -6
  464. package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/helpers.d.ts +0 -39
  465. package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/index.d.ts +0 -5
  466. package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/helpers.d.ts +0 -42
  467. package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/helpers.d.ts +0 -36
  468. package/components/DynamicFilter/subcomponents/fieldstypes/SelectFilter/helpers.d.ts +0 -51
  469. package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/helpers.d.ts +0 -39
  470. package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +0 -82
  471. package/components/DynamicFilter/subcomponents/fieldstypes/validations.d.ts +0 -32
  472. package/components/DynamicFilter/tests/contants.d.ts +0 -5
  473. package/components/FieldLabel/index.0412576c.js +0 -82
  474. package/components/GridLayout/subcomponents/Griditem/index.30016fc1.js +0 -366
  475. package/components/LanguagePopover/index.93c48ec5.js +0 -196
  476. package/components/ModalDialog/index.78c9650a.js +0 -92
  477. package/components/ObjectLogs/index.1d85a021.js +0 -293
  478. package/components/Page/index.5d34dc4d.js +0 -127
  479. package/components/PrintingSystem/subcomponents/BodyNode/index.319a3bb9.js +0 -48
  480. package/components/PrintingSystem/subcomponents/DividerNode/index.e504dbd2.js +0 -19
  481. package/components/PrintingSystem/subcomponents/FooterNode/index.9a19a7cb.js +0 -48
  482. package/components/PrintingSystem/subcomponents/GridNode/index.8d14e1b6.js +0 -71
  483. package/components/PrintingSystem/subcomponents/HeaderNode/index.89e4eaab.js +0 -48
  484. package/components/PrintingSystem/subcomponents/PaperNode/index.dd4ca449.js +0 -46
  485. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.048d7ebf.js +0 -41
  486. package/components/PrintingSystem/subcomponents/SectionNode/index.83f1efea.js +0 -48
  487. package/components/PrintingSystem/subcomponents/TextBoxNode/index.5427cb75.js +0 -28
  488. package/components/PropertyValue/index.15c61a4b.js +0 -209
  489. package/components/SideBar/index.b0359a2b.js +0 -916
  490. package/components/SplitLayout/index.d.ts +0 -2
  491. package/components/WrapperComponent/index.5e872594.js +0 -18
  492. package/components/animate/MotionContainer/index.8d9f9d80.js +0 -33
  493. package/components/areas/components/AreasAdmin/index.820a00ab.js +0 -737
  494. package/components/areas/components/AreasViewer/index.6d7194e2.js +0 -1086
  495. package/components/commercial/TopBar/index.93a7d26a.js +0 -275
  496. package/components/hook-form/HelperError/index.66bbcac3.js +0 -30
  497. package/components/hook-form/RHFAutocomplete/index.1f2afb6b.js +0 -429
  498. package/components/hook-form/RHFCheckbox/index.eca64469.js +0 -143
  499. package/components/hook-form/RHFColorPicker/index.dc13d5a3.js +0 -204
  500. package/components/hook-form/RHFDateTime/index.e554b068.js +0 -203
  501. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
  502. package/components/hook-form/RHFPeriod/index.e4e4530f.js +0 -112
  503. package/components/hook-form/RHFRadioGroup/index.1ddb3d93.js +0 -45
  504. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
  505. package/components/hook-form/RHFTextField/index.1bfa601f.js +0 -358
  506. package/components/hook-form/RHFUpload/index.6e98b291.js +0 -242
  507. package/components/modal/WindowBase.fd86f575.js +0 -74
  508. package/components/modal/WindowConfirm.ee6de236.js +0 -105
  509. package/components/mui_extended/Accordion/index.7dcdfd3a.js +0 -126
  510. package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
  511. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -94
  512. package/components/mui_extended/LinkWithRoute/index.16436ab8.js +0 -30
  513. package/components/mui_extended/Popover/index.d85de73b.js +0 -179
  514. package/components/mui_extended/ToggleButton/index.191711f3.js +0 -19
  515. package/components/popups/PopupsViewer/index.1500ce72.js +0 -186
  516. package/test/getNameDataTestId.14875ec7.js +0 -6
  517. /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/DateTimeFilter/index.d.ts +0 -0
  518. /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/NumberFilter/index.d.ts +0 -0
  519. /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/SelectFilter/index.d.ts +0 -0
  520. /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/StringFilter/index.d.ts +0 -0
@@ -0,0 +1,1071 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { generateUtilityClasses, styled, Skeleton, Dialog } from "@mui/material";
3
+ import { r as react_resizable_css } from "../../../../react-resizable.af1f31c1.js";
4
+ import { unstable_composeClasses } from "@mui/base";
5
+ import { g as getComponentUtilityClass } from "../../../../utils/index.0718eeac.js";
6
+ import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
7
+ import { shallow } from "zustand/shallow";
8
+ import React__default, { useMemo, useEffect } from "react";
9
+ import clsx from "clsx";
10
+ import { u as useAreasStore } from "../../hooks/useAreas/index.cedd30ee.js";
11
+ import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
12
+ import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.d92ed0d6.js";
13
+ import { useResponsiveDesktop } from "@m4l/graphics";
14
+ import { I as ICONS } from "../../icons.8266ccc8.js";
15
+ import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
16
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.b0ee4965.js";
17
+ import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.2ecd571e.js";
18
+ import { I as Icon } from "../../../Icon/index.ee7b85c9.js";
19
+ import { T as Typography } from "../../../mui_extended/Typography/index.a1e774a2.js";
20
+ import { M as MFLoader } from "../../../MFLoader/index.40c419c0.js";
21
+ import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.992ae7a3.js";
22
+ import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.3d9ad0ad.js";
23
+ import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.4092bb69.js";
24
+ import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
25
+ import { g as getNameDataTestId } from "../../../../test/getNameDataTestId.0faeade8.js";
26
+ import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.19c7b906.js";
27
+ import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.e1d2df80.js";
28
+ import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.094c1d09.js";
29
+ import { useLocation } from "react-router-dom";
30
+ import { L as LoadingError } from "../../../LoadingError/index.7aaba1cf.js";
31
+ import { c as cjs } from "../../../../react-draggable.79b4c69a.js";
32
+ import { R as ResizeableWindow } from "../../../Resizeable/index.5e8e48b1.js";
33
+ const areasViewerClasses = generateUtilityClasses(
34
+ AREAS_VIEWER_CLASS_NAME,
35
+ [
36
+ "root",
37
+ "areaRoot",
38
+ "areaGridLayoutPanelContainer",
39
+ "areaGridLayout",
40
+ "areaGridLayoutPopupsContainer",
41
+ "areasWindowPopUpList",
42
+ "windowRoot",
43
+ "windowHeader",
44
+ "windowHeaderContent",
45
+ "windowHeaderTitle",
46
+ "windowHeaderMainActions",
47
+ "windowHeaderCancelHandle",
48
+ "windowContent",
49
+ "windowPopupRoot",
50
+ "windowModalRoot",
51
+ "windowLinearProgressRoot",
52
+ "windowLinearProgressBar",
53
+ "windowRootContainer",
54
+ "windowToastiesContainer",
55
+ "windowToastiesContainerTostys",
56
+ "windowToastyContainer",
57
+ "windowToastyMeesageButtonsContainer",
58
+ "windowToastyMessage",
59
+ "windowToastyButtonsContainer",
60
+ "windowToastyPin",
61
+ "windowToastyClose",
62
+ "panelWindowsRoot",
63
+ "panelWindowsButtonContainer",
64
+ "containerLinearProgress",
65
+ "resizeHandle",
66
+ "loaderContainer",
67
+ "containerComponent",
68
+ "selected",
69
+ "colapsed",
70
+ "selectedWindow",
71
+ "isMobile",
72
+ "loading",
73
+ "pinIn",
74
+ "success",
75
+ "info",
76
+ "warning",
77
+ "error"
78
+ ],
79
+ AREAS_VIEWER_CLASS_NAME
80
+ );
81
+ const useAreasViewerUtilityClasses = (ownerState) => {
82
+ const slots = {
83
+ root: [
84
+ "root",
85
+ ownerState.status,
86
+ ownerState.isMobile && "isMobile",
87
+ ownerState.isSkeleton && "isSkeleton"
88
+ ],
89
+ areaRoot: ["areaRoot"],
90
+ areasLoadingErrorRoot: ["areasLoadingErrorRoot"],
91
+ areasLoadingErrorLoading: ["areasLoadingErrorLoading"],
92
+ areasLoadingError: ["areasLoadingError"],
93
+ areasLoadingErrorIcon: ["areasLoadingErrorIcon"],
94
+ areasLoadingErrorTitle: ["areasLoadingErrorTitle"],
95
+ areasLoadingErrorDescription: ["areasLoadingErrorDescription"],
96
+ areasLoadingErrorDivider: ["areasLoadingErrorDivider"],
97
+ areaGridLayoutPanelContainer: ["areaGridLayoutPanelContainer"],
98
+ areaGridLayout: ["areaGridLayout"],
99
+ areaGridLayoutPopupsContainer: ["areaGridLayoutPopupsContainer"],
100
+ areasWindowPopUpList: ["areasWindowPopUpList"],
101
+ windowRoot: ["windowRoot"],
102
+ windowRootContainer: ["windowRootContainer"],
103
+ windowHeader: ["windowHeader"],
104
+ windowHeaderTitle: ["windowHeaderTitle"],
105
+ windowHeaderMainActions: ["windowHeaderMainActions"],
106
+ windowHeaderCancelHandle: ["windowHeaderCancelHandle"],
107
+ windowContent: ["windowContent"],
108
+ windowLinearProgressRoot: ["windowLinearProgressRoot"],
109
+ windowLinearProgressBar: ["windowLinearProgressBar"],
110
+ windowPopupRoot: ["windowPopupRoot"],
111
+ windowModalRoot: ["windowModalRoot"],
112
+ selectedWindow: ["selectedWindow"],
113
+ windowToastiesContainer: ["windowToastiesContainer"],
114
+ windowToastiesContainerTostys: ["windowToastiesContainerTostys"],
115
+ windowToastyContainer: ["windowToastiesContainer"],
116
+ windowToastyMeesageButtonsContainer: ["windowToastyMeesageButtonsContainer"],
117
+ windowToastyMessage: ["windowToastyMessage"],
118
+ windowToastyButtonsContainer: ["windowToastyButtonsContainer"],
119
+ windowToastyPin: ["windowToastyPin"],
120
+ windowToastyClose: ["windowToastyClose"],
121
+ panelWindowsRoot: ["panelWindowsRoot"],
122
+ panelWindowsButtonContainer: ["panelWindowsButtonContainer"],
123
+ resizeHandle: ["resizeHandle"],
124
+ loaderContainer: ["loaderContainer"],
125
+ containerComponent: ["containerComponent"]
126
+ };
127
+ return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_VIEWER_CLASS_NAME), {});
128
+ };
129
+ const AreasViewerRoot = styled("div")`
130
+ /* display: flex; */
131
+ width: 100%;
132
+ height: 100%;
133
+ overflow: hidden;
134
+ /* flex-grow: 1; */
135
+ position: relative;
136
+
137
+ //areaRoot
138
+ & .${areasViewerClasses.areaRoot} {
139
+ display: none;
140
+ position: absolute;
141
+ /* flex-grow: 1; */
142
+ flex-direction: row;
143
+ inset: 0;
144
+ /* width: 100%; */
145
+ overflow: hidden;
146
+ justify-content: top;
147
+ align-items: flex-start;
148
+
149
+ visibility: hidden;
150
+ }
151
+
152
+ & .${areasViewerClasses.areaRoot}.${areasViewerClasses.selected} {
153
+ display: block;
154
+ visibility: visible;
155
+ }
156
+
157
+ &.${areasViewerClasses.isMobile} .${areasViewerClasses.areaRoot} {
158
+ }
159
+
160
+ // areaGridLayoutPanelContainer
161
+ & .${areasViewerClasses.areaGridLayoutPanelContainer} {
162
+ display: flex;
163
+ flex-direction: row;
164
+ height: 100%;
165
+ width: 100%;
166
+ overflow: hidden;
167
+ }
168
+ &.${areasViewerClasses.isMobile} .${areasViewerClasses.areaGridLayoutPanelContainer} {
169
+ flex-direction: column-reverse;
170
+ }
171
+ // areaGridLayout
172
+ & .${areasViewerClasses.areaGridLayout} {
173
+ height: 100% !important;
174
+ overflow: auto;
175
+ flex-grow: 1;
176
+ }
177
+ &.${areasViewerClasses.isMobile} .${areasViewerClasses.areaGridLayout} {
178
+ flex-direction: column-reverse;
179
+ height: unset;
180
+ width: 100%;
181
+ }
182
+ // areaGridLayoutPopupsContainer
183
+ & .${areasViewerClasses.areaGridLayoutPopupsContainer} {
184
+ z-index: 1; //Garantizar q el contenedor de los popus este por encima de los layouts
185
+ // // ' .react-draggable': {
186
+ // // position: 'absolute',
187
+ // // },
188
+ }
189
+
190
+ // PanelWindowsRoot
191
+ & .${areasViewerClasses.panelWindowsRoot} {
192
+ display: flex;
193
+ flex-direction: column;
194
+ position: relative;
195
+ }
196
+ &.${areasViewerClasses.isMobile} .${areasViewerClasses.panelWindowsRoot} {
197
+ flex-direction: row;
198
+ }
199
+
200
+ // windowRoot
201
+ & .${areasViewerClasses.windowRoot} {
202
+ inset: 0;
203
+ position: absolute;
204
+ display: flex;
205
+ flex-direction: column;
206
+ /* height: 100%; */
207
+ /* width: 100%; */
208
+ overflow: hidden;
209
+ border: 1px solid gray;
210
+
211
+ background-color: ${(props) => props.theme.palette.background.default};
212
+ padding: ${(props) => props.theme.spacing(0)};
213
+ }
214
+
215
+ & .${areasViewerClasses.windowRoot}.${areasViewerClasses.selected} {
216
+ border-top: 1px solid green;
217
+ }
218
+ // windowHeaderTitle
219
+ & .${areasViewerClasses.windowHeaderTitle} {
220
+ width: 100%;
221
+ max-width: 100%;
222
+ overflow: hidden;
223
+ white-space: nowrap;
224
+ color: ${(props) => props.theme.palette.text.primary};
225
+ text-overflow: ellipsis;
226
+ }
227
+ // windowHeaderMainActions
228
+ & .${areasViewerClasses.windowHeaderMainActions} {
229
+ display: flex;
230
+
231
+ gap: 4px;
232
+ }
233
+
234
+ // windowHeaderMainActions
235
+ & .${areasViewerClasses.windowContent} {
236
+ flex-grow: 1;
237
+ position: relative;
238
+ }
239
+
240
+ // windowModalRoot
241
+ & .${areasViewerClasses.windowModalRoot} {
242
+ padding: 16px;
243
+ }
244
+
245
+ ${react_resizable_css}
246
+
247
+ ${(props) => props.theme.components?.M4LAreasViewer?.styleOverrides}
248
+ `;
249
+ function WindowHeaderSkeleton(props) {
250
+ const { colapsed } = props;
251
+ return /* @__PURE__ */ jsx("div", { className: clsx(areasViewerClasses.windowHeader), children: /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowHeaderContent, children: [
252
+ /* @__PURE__ */ jsx(
253
+ Skeleton,
254
+ {
255
+ variant: "circular",
256
+ sx: { margin: "0 5px", minWidth: "18px", minHeight: "18px" }
257
+ }
258
+ ),
259
+ /* @__PURE__ */ jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: 80, height: 16 }) }),
260
+ /* @__PURE__ */ jsx("div", { className: areasViewerClasses.windowHeaderCancelHandle, children: !colapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
261
+ /* @__PURE__ */ jsx(
262
+ Skeleton,
263
+ {
264
+ variant: "circular",
265
+ sx: { margin: "0 5px", minWidth: "16px", minHeight: "16px" }
266
+ }
267
+ ),
268
+ /* @__PURE__ */ jsx(
269
+ Skeleton,
270
+ {
271
+ variant: "circular",
272
+ sx: { margin: "0 5px", minWidth: "16px", minHeight: "16px" }
273
+ }
274
+ ),
275
+ /* @__PURE__ */ jsx(
276
+ Skeleton,
277
+ {
278
+ variant: "circular",
279
+ sx: { margin: "0 5px", minWidth: "16px", minHeight: "16px" }
280
+ }
281
+ )
282
+ ] }) }),
283
+ /* @__PURE__ */ jsx(
284
+ Skeleton,
285
+ {
286
+ variant: "circular",
287
+ sx: { margin: "0 5px", minWidth: "16px", minHeight: "16px" }
288
+ }
289
+ ),
290
+ /* @__PURE__ */ jsx(
291
+ Skeleton,
292
+ {
293
+ variant: "circular",
294
+ sx: { margin: "0 5px", minWidth: "16px", minHeight: "16px" }
295
+ }
296
+ )
297
+ ] }) });
298
+ }
299
+ function getMainActions(isDesktop, moduleActions) {
300
+ let mainActions = [];
301
+ if (isDesktop !== void 0 && isDesktop) {
302
+ mainActions = mainActions.concat(moduleActions.filter((action) => action.visibility === "main"));
303
+ }
304
+ mainActions = mainActions.concat(moduleActions.filter((action) => action.visibility === "allways"));
305
+ return mainActions;
306
+ }
307
+ function getMenuActions(options) {
308
+ const {
309
+ windowId,
310
+ isDesktop,
311
+ moduleActions,
312
+ urlPrefix,
313
+ saveModuleCookies,
314
+ resetModuleCookies,
315
+ version,
316
+ windowOptions = { allowPersistCookies: false },
317
+ getLabel
318
+ } = options;
319
+ let menuActions = [...moduleActions.filter((action) => action.visibility !== "allways")];
320
+ if (isDesktop !== void 0 && isDesktop) {
321
+ menuActions = menuActions.filter((action) => action.visibility === "normal");
322
+ }
323
+ if (windowOptions.allowPersistCookies) {
324
+ const saveCookiesAction = {
325
+ urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
326
+ onClick: () => saveModuleCookies(windowId),
327
+ disabled: false,
328
+ visibility: "normal",
329
+ label: getLabel(getAreasDictionary(DICCTIONARY.label_persist_module_cookies)),
330
+ key: "save_cookies"
331
+ };
332
+ menuActions.push(saveCookiesAction);
333
+ const resetCookiesAction = {
334
+ urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
335
+ onClick: () => resetModuleCookies(windowId),
336
+ disabled: false,
337
+ visibility: "normal",
338
+ label: getLabel(getAreasDictionary(DICCTIONARY.label_reset_module_cookies)),
339
+ key: "reset_cookes"
340
+ };
341
+ menuActions.push(resetCookiesAction);
342
+ }
343
+ if (version) {
344
+ const versionAction = {
345
+ urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.VERSION}`,
346
+ onClick: () => {
347
+ },
348
+ disabled: true,
349
+ visibility: "normal",
350
+ label: version,
351
+ key: "version"
352
+ };
353
+ menuActions.push(versionAction);
354
+ }
355
+ return menuActions;
356
+ }
357
+ function MainActions(props) {
358
+ const { windowId } = props;
359
+ const moduleActions = useAreasStore((state) => {
360
+ const window = state.hashWindows[windowId];
361
+ return window?.moduleActions || [];
362
+ }, shallow);
363
+ const { getLabel } = useModuleDictionary();
364
+ const isDesktop = useResponsiveDesktop();
365
+ const mainActions = useMemo(() => {
366
+ return getMainActions(isDesktop, moduleActions);
367
+ }, [moduleActions, isDesktop]);
368
+ return /* @__PURE__ */ jsx("div", { className: areasViewerClasses.windowHeaderMainActions, children: mainActions.map((mainAction) => {
369
+ const tooltip = mainAction.label !== void 0 ? mainAction.label : getLabel(mainAction.dictionaryId || "");
370
+ const onClick = (e) => {
371
+ mainAction.onClick(e);
372
+ e.stopPropagation();
373
+ };
374
+ return /* @__PURE__ */ jsx(
375
+ IconButton,
376
+ {
377
+ src: mainAction.urlIcon || "",
378
+ className: clsx(mainAction.className, "m4l_draggableCancel"),
379
+ onClick,
380
+ "aria-label": mainAction.label,
381
+ disabled: mainAction.disabled,
382
+ tooltip
383
+ },
384
+ mainAction.key
385
+ );
386
+ }) });
387
+ }
388
+ function Header(props) {
389
+ const { areaId, windowId, emergeType } = props;
390
+ const [url_icon, title, moduleActions, onClose, version, windowOptions, fnQueryClose] = useAreasStore((state) => {
391
+ const window = state.hashWindows[windowId];
392
+ return [
393
+ window.url_icon,
394
+ window.title,
395
+ window.moduleActions,
396
+ window.onClose,
397
+ window.version,
398
+ window.windowOptions,
399
+ window.fnQueryClose
400
+ ];
401
+ }, shallow);
402
+ const { saveModuleCookies, resetModuleCookies } = useAreasStore(
403
+ (state) => state.windowActions,
404
+ shallow
405
+ );
406
+ const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId, shallow);
407
+ const colapsed = useAreasStore((state) => {
408
+ const currentBreakpoint = state.hashAreas[areaId].currentBreakpoint;
409
+ if (currentBreakpoint) {
410
+ return state.hashAreas[areaId].layouts[currentBreakpoint].find((li) => li.i === windowId)?.colapsed;
411
+ }
412
+ return false;
413
+ }, shallow);
414
+ const { maximizeLayout, normalizeLayouts, colapseLayoutItem, unColapseLayoutItem } = useAreasStore((state) => state.areaActions, shallow);
415
+ const { host_static_assets, environment_assets } = useEnvironment();
416
+ const isDesktop = useResponsiveDesktop();
417
+ const isSkeleton = useModuleSkeleton();
418
+ const { getLabel } = useModuleDictionary();
419
+ const urlPrefix = `${host_static_assets}/${environment_assets}`;
420
+ const menuActions = useMemo(() => {
421
+ return getMenuActions({
422
+ windowId,
423
+ isDesktop,
424
+ moduleActions,
425
+ urlPrefix,
426
+ saveModuleCookies,
427
+ resetModuleCookies,
428
+ version,
429
+ windowOptions,
430
+ getLabel
431
+ });
432
+ }, [moduleActions, isDesktop]);
433
+ const onCloseLocal = () => {
434
+ const fnClose = fnQueryClose || onClose;
435
+ fnClose && fnClose(windowId);
436
+ };
437
+ const maxNormalize = (e) => {
438
+ if (maximizedId === windowId) {
439
+ normalizeLayouts(areaId);
440
+ } else {
441
+ maximizeLayout(areaId, windowId);
442
+ }
443
+ e.stopPropagation();
444
+ };
445
+ const colapedToggle = (e) => {
446
+ if (!colapsed) {
447
+ colapseLayoutItem(areaId, windowId);
448
+ } else {
449
+ unColapseLayoutItem(areaId, windowId);
450
+ }
451
+ e.stopPropagation();
452
+ };
453
+ if (isSkeleton) {
454
+ return /* @__PURE__ */ jsx(WindowHeaderSkeleton, {});
455
+ }
456
+ return /* @__PURE__ */ jsxs("div", { className: clsx(areasViewerClasses.windowHeader, "m4l_draggable_handle"), children: [
457
+ /* @__PURE__ */ jsx(LinearProgressIndeterminate, {}),
458
+ /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowHeaderContent, children: [
459
+ /* @__PURE__ */ jsx(Icon, { src: url_icon, size: "medium" }),
460
+ /* @__PURE__ */ jsx(Typography, { className: areasViewerClasses.windowHeaderTitle, variant: "h5", children: `${title}` }),
461
+ /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowHeaderCancelHandle, children: [
462
+ !colapsed && /* @__PURE__ */ jsx(MainActions, { windowId }),
463
+ !colapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(
464
+ MemonizedMenuActions,
465
+ {
466
+ arrowType: "no-arrow",
467
+ marginTop: "12px!important",
468
+ marginLeft: "14px!important",
469
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
470
+ transformOrigin: { vertical: "top", horizontal: "right" },
471
+ menuActions,
472
+ toolTip: getLabel(getAreasDictionary(DICCTIONARY.label_module_actions))
473
+ }
474
+ ),
475
+ !colapsed && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(
476
+ IconButton,
477
+ {
478
+ className: "m4l_draggableCancel",
479
+ onClick: maxNormalize,
480
+ "aria-label": "click",
481
+ src: maximizedId === windowId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`,
482
+ tooltip: getLabel(
483
+ getAreasDictionary(
484
+ maximizedId === windowId ? DICCTIONARY.label_minimize_window : DICCTIONARY.label_maximize_window
485
+ )
486
+ )
487
+ }
488
+ ),
489
+ !maximizedId && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(
490
+ IconButton,
491
+ {
492
+ className: "m4l_draggableCancel",
493
+ onClick: colapedToggle,
494
+ "aria-label": "click",
495
+ src: !colapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLPASE}`,
496
+ tooltip: getLabel(
497
+ getAreasDictionary(
498
+ !colapsed ? DICCTIONARY.label_collapse_window : DICCTIONARY.label_uncollapse_window
499
+ )
500
+ )
501
+ }
502
+ ),
503
+ onClose && /* @__PURE__ */ jsx(
504
+ IconButton,
505
+ {
506
+ className: "m4l_draggableCancel",
507
+ onPointerDown: onCloseLocal,
508
+ "aria-label": "click",
509
+ src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
510
+ tooltip: getLabel(getAreasDictionary(DICCTIONARY.label_close_window))
511
+ }
512
+ )
513
+ ] })
514
+ ] })
515
+ ] });
516
+ }
517
+ const MicroFrontend = (props) => {
518
+ return /* @__PURE__ */ jsx(MFLoader, { ...props });
519
+ };
520
+ const MemonizedMicroFrontend = React__default.memo(MicroFrontend);
521
+ const Component = (props) => {
522
+ const { component, dynamicMFStore, windowTools } = props;
523
+ return /* @__PURE__ */ jsx(WindowToolsMFProvider, { ...windowTools, children: /* @__PURE__ */ jsx(DynamicMFParmsProvider, { store: dynamicMFStore, children: /* @__PURE__ */ jsx("div", { className: areasViewerClasses.containerComponent, children: typeof component === "function" ? component({ windowTools, dynamicMFStore }) : component }) }) });
524
+ };
525
+ React__default.memo(Component);
526
+ const WindowRoot = styled("div")`
527
+ inset: 0;
528
+ position: absolute;
529
+ display: flex;
530
+ flex-direction: column;
531
+ /* height: 100%; */
532
+ /* width: 100%; */
533
+ overflow: hidden;
534
+ border: 1px solid gray;
535
+
536
+ background-color: ${(props) => props.theme.palette.background.default};
537
+ padding: ${(props) => props.theme.spacing(0)};
538
+ &.${areasViewerClasses.selected} {
539
+ border-top: 1px solid green;
540
+ }
541
+
542
+ // windowHeader
543
+ /*
544
+ &.${areasViewerClasses.loading} .${areasViewerClasses.windowHeader} {
545
+ border-bottom: 2px solid red !important;
546
+ }
547
+ */
548
+ // windowHeaderTitle
549
+ & .${areasViewerClasses.windowHeaderTitle} {
550
+ width: 100%;
551
+ max-width: 100%;
552
+ overflow: hidden;
553
+ white-space: nowrap;
554
+ color: ${(props) => props.theme.palette.text.primary};
555
+ text-overflow: ellipsis;
556
+ }
557
+
558
+ & .${areasViewerClasses.windowHeaderCancelHandle} {
559
+ display: flex;
560
+ cursor: default;
561
+ }
562
+
563
+ // windowHeaderMainActions
564
+ & .${areasViewerClasses.windowHeaderMainActions} {
565
+ display: flex;
566
+
567
+ gap: 4px;
568
+ }
569
+
570
+ // windowHeaderMainActions
571
+ & .${areasViewerClasses.windowContent} {
572
+ flex-grow: 1;
573
+ position: relative;
574
+ }
575
+
576
+ & .${areasViewerClasses.windowContent}.${areasViewerClasses.colapsed} {
577
+ display: none !important;
578
+ }
579
+ // windowModalRoot
580
+ & .${areasViewerClasses.windowModalRoot} {
581
+ padding: 16px;
582
+ }
583
+
584
+ // windowToastiesContainer
585
+ & .${areasViewerClasses.windowToastiesContainer} {
586
+ padding: 4px;
587
+ }
588
+
589
+ // windowToastyContainer
590
+ & .${areasViewerClasses.windowToastyContainer} {
591
+ display: flex;
592
+ flex-direction: column;
593
+ }
594
+ // windowToastyContainer
595
+ & .${areasViewerClasses.windowToastyContainer}.${areasViewerClasses.success} {
596
+ background-color: ${(props) => props.theme.palette.success.main};
597
+ }
598
+
599
+ // windowToastyMeesageButtonsContainer
600
+ & .${areasViewerClasses.windowToastyMeesageButtonsContainer} {
601
+ display: flex;
602
+ }
603
+ & .MuiLinearProgress-root {
604
+ width: 100%;
605
+ }
606
+
607
+ // windowToastyMessage
608
+ & .${areasViewerClasses.windowToastyMessage} {
609
+ flex-grow: 1;
610
+ }
611
+
612
+ // windowToastyContainer
613
+ & .${areasViewerClasses.windowToastyPin}.${areasViewerClasses.pinIn} {
614
+ border: 1px solid red;
615
+ }
616
+
617
+ ${(props) => props.theme.components?.M4LAreasViewerWindow?.styleOverrides}
618
+ `;
619
+ function Toasty(props) {
620
+ const { windowId, toastyId } = props;
621
+ const toasty = useAreasStore(
622
+ (state) => state.hashWindows[windowId].hashToasties[toastyId],
623
+ shallow
624
+ );
625
+ const { pinToast: pinToasty, closeToast: closeToasty } = useAreasStore(
626
+ (state) => state.windowActions,
627
+ shallow
628
+ );
629
+ const { host_static_assets, environment_assets } = useEnvironment();
630
+ return /* @__PURE__ */ jsx(
631
+ "div",
632
+ {
633
+ className: clsx(areasViewerClasses.windowToastyContainer, areasViewerClasses[toasty.type]),
634
+ children: /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowToastyMeesageButtonsContainer, children: [
635
+ /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowToastyMessage, children: [
636
+ toasty.timer ? /* @__PURE__ */ jsx(LinearProgress, { variant: "determinate", value: toasty.percentExecuted }) : null,
637
+ toasty.message
638
+ ] }),
639
+ /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowToastyButtonsContainer, children: [
640
+ /* @__PURE__ */ jsx(
641
+ IconButton,
642
+ {
643
+ className: clsx(
644
+ areasViewerClasses.windowToastyPin,
645
+ toasty.timer ? null : areasViewerClasses.pinIn
646
+ ),
647
+ onClick: () => {
648
+ pinToasty(windowId, toastyId);
649
+ },
650
+ src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_PIN}`
651
+ }
652
+ ),
653
+ /* @__PURE__ */ jsx(
654
+ IconButton,
655
+ {
656
+ className: areasViewerClasses.windowToastyClose,
657
+ onClick: () => {
658
+ closeToasty(windowId, toastyId);
659
+ },
660
+ src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_CLOSE}`
661
+ }
662
+ )
663
+ ] })
664
+ ] })
665
+ }
666
+ );
667
+ }
668
+ function Toasties(props) {
669
+ const { windowId } = props;
670
+ const tosties = useAreasStore((state) => state.hashWindows[windowId].toasties, shallow);
671
+ if (tosties.length === 0) {
672
+ return null;
673
+ }
674
+ return /* @__PURE__ */ jsx("div", { className: areasViewerClasses.windowToastiesContainer, children: /* @__PURE__ */ jsx("div", { className: areasViewerClasses.windowToastiesContainerTostys, children: tosties.map((t) => {
675
+ return /* @__PURE__ */ jsx(Toasty, { windowId, toastyId: t.id }, t.id);
676
+ }) }) });
677
+ }
678
+ const Window = (props) => {
679
+ const { areaId, windowId } = props;
680
+ const [emergeType, moduleId, winType] = useAreasStore((state) => {
681
+ return [
682
+ state.hashWindows[windowId]?.emergeType,
683
+ state.hashWindows[windowId]?.moduleId,
684
+ state.hashWindows[windowId]?.winType
685
+ ];
686
+ }, shallow);
687
+ const selected = useAreasStore((state) => {
688
+ return emergeType === "layout" ? state.hashAreas[areaId]?.currentLayoutId : state.hashAreas[areaId]?.currentPopUpId;
689
+ }) === windowId;
690
+ const mfProps = useAreasStore((state) => state.hashWindows[windowId]?.mfProps, shallow);
691
+ const component = useAreasStore(
692
+ (state) => state.hashWindows[windowId]?.component,
693
+ shallow
694
+ );
695
+ const loading = useAreasStore((state) => state.hashWindows[windowId]?.loading, shallow);
696
+ const status = useAreasStore((state) => state.hashWindows[windowId]?.status, shallow);
697
+ const dynamicMFStore = useAreasStore(
698
+ (state) => state.hashWindows[windowId]?.dynamicMFStore,
699
+ shallow
700
+ );
701
+ const {
702
+ setActions,
703
+ getCookie,
704
+ getCookies,
705
+ setCookie,
706
+ close,
707
+ startProgress,
708
+ stopProgress,
709
+ toast,
710
+ setFnQueryClose
711
+ } = useAreasStore((state) => state.windowActions, shallow);
712
+ const { selectLayout } = useAreasStore((state) => state.areaActions, shallow);
713
+ const { loadCookiesFromApi } = useAreasStore((state) => state.windowActions, shallow);
714
+ const onTouch = () => {
715
+ if (!selected) {
716
+ selectLayout(areaId, props.windowId);
717
+ }
718
+ };
719
+ const windowTools = useMemo(
720
+ () => ({
721
+ getWindowId: () => windowId,
722
+ setActions: (newActions, version) => {
723
+ setActions(windowId, newActions, version);
724
+ },
725
+ getCookie: (id) => getCookie(windowId, id),
726
+ getCookies: (type) => getCookies(windowId, type),
727
+ setCookie: (id, type, cookie) => {
728
+ setCookie(windowId, id, type, cookie);
729
+ },
730
+ close: () => close(windowId),
731
+ startProgress: () => startProgress(windowId),
732
+ stopProgress: () => stopProgress(windowId),
733
+ setFnQueryClose: (fnQueryClose) => {
734
+ setFnQueryClose(windowId, fnQueryClose);
735
+ },
736
+ toast: (toastyOptions) => {
737
+ toast(windowId, toastyOptions);
738
+ }
739
+ }),
740
+ []
741
+ );
742
+ useEffect(() => {
743
+ if (status === "init") {
744
+ loadCookiesFromApi(windowId);
745
+ }
746
+ }, [status]);
747
+ if (status === void 0) {
748
+ return null;
749
+ }
750
+ return /* @__PURE__ */ jsx(
751
+ WindowRoot,
752
+ {
753
+ role: "presentation",
754
+ className: clsx(
755
+ areasViewerClasses.windowRoot,
756
+ selected ? areasViewerClasses.selectedWindow : null,
757
+ loading ? areasViewerClasses.loading : null,
758
+ emergeType === "popup" ? areasViewerClasses.windowPopupRoot : null,
759
+ emergeType === "modal" ? areasViewerClasses.windowModalRoot : null
760
+ ),
761
+ onMouseDown: onTouch,
762
+ ...process.env.NODE_ENV !== "production" ? {
763
+ [TEST_PROP_ID]: getNameDataTestId(
764
+ AREAS_VIEWER_CLASS_NAME,
765
+ "windowRoot",
766
+ `${emergeType}`
767
+ )
768
+ } : {},
769
+ children: /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowRootContainer, children: [
770
+ /* @__PURE__ */ jsx(Header, { areaId, windowId, emergeType }),
771
+ /* @__PURE__ */ jsx(Toasties, { windowId }),
772
+ /* @__PURE__ */ jsxs(
773
+ "div",
774
+ {
775
+ className: clsx(
776
+ areasViewerClasses.windowContent
777
+ ),
778
+ children: [
779
+ status === "init" ? /* @__PURE__ */ jsx(Fragment, { children: "Cargando..." }) : null,
780
+ status === "loaded" ? winType === "microfrontend" ? /* @__PURE__ */ jsx(
781
+ MemonizedMicroFrontend,
782
+ {
783
+ moduleId,
784
+ dynamicMFStore,
785
+ windowTools,
786
+ ...mfProps
787
+ }
788
+ ) : /* @__PURE__ */ jsx(
789
+ Component,
790
+ {
791
+ moduleId,
792
+ dynamicMFStore,
793
+ windowTools,
794
+ component
795
+ }
796
+ ) : null
797
+ ]
798
+ }
799
+ )
800
+ ] })
801
+ }
802
+ );
803
+ };
804
+ React__default.memo(Window);
805
+ const ResizeHandle = React__default.forwardRef(
806
+ (props, ref) => {
807
+ const { handleAxis, ...restProps } = props;
808
+ return /* @__PURE__ */ jsx(
809
+ "div",
810
+ {
811
+ ref,
812
+ className: clsx(
813
+ `react-resizable-handle react-resizable-handle-${handleAxis}`,
814
+ areasViewerClasses.resizeHandle
815
+ ),
816
+ ...restProps
817
+ }
818
+ );
819
+ }
820
+ );
821
+ const ResponsiveGridLayout = withSizeProvider(Responsive);
822
+ const AreaGridLayout = (props) => {
823
+ const { areaId } = props;
824
+ const hashLayoutItems = useAreasStore((state) => state.hashAreas[areaId].layoutItemsIds, shallow);
825
+ const layouts = useAreasStore((state) => state.hashAreas[areaId].layouts, shallow);
826
+ const breakpoints = useAreasStore((state) => state.hashAreas[areaId].breakpoints, shallow);
827
+ const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId, shallow);
828
+ const cols = useAreasStore((state) => state.hashAreas[areaId].cols, shallow);
829
+ const { onBreakpointsLayoutsChange, onContainerChange } = useAreasStore(
830
+ (state) => state.areaActions,
831
+ shallow
832
+ );
833
+ return /* @__PURE__ */ jsx(
834
+ ResponsiveGridLayout,
835
+ {
836
+ autoSize: false,
837
+ compactType: "vertical",
838
+ measureBeforeMount: true,
839
+ resizeHandles: ["nw", "se"],
840
+ className: clsx(
841
+ areasViewerClasses.areaGridLayout,
842
+ `${areasViewerClasses.areaGridLayout}-${areaId}`
843
+ ),
844
+ layouts,
845
+ onLayoutChange: (layout, newLayouts) => onBreakpointsLayoutsChange(areaId, layout, newLayouts),
846
+ draggableHandle: ".m4l_draggable_handle",
847
+ draggableCancel: `.${areasViewerClasses.windowHeaderCancelHandle}`,
848
+ layoutItemRender: (p) => {
849
+ if (hashLayoutItems.indexOf(p.i) === -1) {
850
+ return /* @__PURE__ */ jsx(Fragment, {});
851
+ }
852
+ if (p.type === "placeholder") {
853
+ return /* @__PURE__ */ jsx("div", {});
854
+ }
855
+ return /* @__PURE__ */ jsx(Window, { windowId: p.i, areaId });
856
+ },
857
+ breakpoints,
858
+ colapsedHeight: RESPONSIVE_COLAPSED_HEIGHTS,
859
+ rowHeight: RESPONSIVE_ROW_HEIGHTS,
860
+ cols,
861
+ containerMargin: [MARGIN_GRIDLAYOUT, MARGIN_GRIDLAYOUT],
862
+ containerPadding: [PADDING_GRIDLAYOUT, PADDING_GRIDLAYOUT],
863
+ onContainerChange: (e) => {
864
+ onContainerChange(areaId, e);
865
+ },
866
+ preventCollision: false,
867
+ maximizeId: maximizedId,
868
+ resizeHandle: /* @__PURE__ */ jsx(ResizeHandle, {})
869
+ }
870
+ );
871
+ };
872
+ const PanelWindows = (props) => {
873
+ const { areaId } = props;
874
+ const status = useAreasStore((state) => state.hashAreas[areaId].status);
875
+ const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId);
876
+ const maximizedIdParent = useAreasStore(
877
+ (state) => state.hashWindows[maximizedId || ""]?.parentLayoutId || void 0
878
+ );
879
+ const hashLayoutItems = useAreasStore(
880
+ (state) => state.hashAreas[areaId].layoutItemsIds.filter((itemId) => state.hashWindows[itemId].emergeType === "layout").map((key) => ({
881
+ i: key,
882
+ url_icon: state.hashWindows[key].url_icon,
883
+ title: state.hashWindows[key].title,
884
+ moduleId: state.hashWindows[key].moduleId,
885
+ emergeType: state.hashWindows[key].emergeType,
886
+ windowId: state.hashWindows[key].windowId
887
+ })),
888
+ shallow
889
+ );
890
+ const { maximizeLayout } = useAreasStore((state) => state.areaActions);
891
+ const onTouched = (layoutId) => {
892
+ maximizeLayout(areaId, layoutId);
893
+ };
894
+ const location = useLocation();
895
+ const searchParams = new URLSearchParams(location.search);
896
+ const currentParam = searchParams.get("module");
897
+ if (status === "loaded") {
898
+ if (!maximizedId || hashLayoutItems.length < 2) {
899
+ return null;
900
+ }
901
+ return /* @__PURE__ */ jsx("div", { className: areasViewerClasses.panelWindowsRoot, children: hashLayoutItems.map((kl) => {
902
+ return /* @__PURE__ */ jsx(
903
+ "div",
904
+ {
905
+ className: clsx(
906
+ areasViewerClasses.panelWindowsButtonContainer,
907
+ maximizedId === kl.i && kl.emergeType !== "popup" || maximizedIdParent === kl.windowId && kl.moduleId === currentParam ? areasViewerClasses.selected : null
908
+ ),
909
+ children: /* @__PURE__ */ jsx(
910
+ IconButton,
911
+ {
912
+ src: kl.url_icon,
913
+ size: "small",
914
+ onClick: () => onTouched(kl.i),
915
+ tooltip: maximizedId !== kl.i ? kl.title : void 0
916
+ }
917
+ )
918
+ },
919
+ kl.i
920
+ );
921
+ }) });
922
+ } else {
923
+ return null;
924
+ }
925
+ };
926
+ const InnerForHooks = (props) => {
927
+ const { areaId } = props;
928
+ const isDesktop = useResponsiveDesktop();
929
+ const status = useAreasStore((state) => state.hashAreas[areaId].status);
930
+ return /* @__PURE__ */ jsxs(
931
+ "div",
932
+ {
933
+ className: clsx(
934
+ areasViewerClasses.areaGridLayoutPanelContainer,
935
+ `${areasViewerClasses.areaGridLayoutPanelContainer}-${areaId}`
936
+ ),
937
+ children: [
938
+ status === "loaded" ? /* @__PURE__ */ jsx(AreaGridLayout, { areaId }) : /* @__PURE__ */ jsx(LoadingError, { status, action: () => {
939
+ } }),
940
+ isDesktop ? /* @__PURE__ */ jsx(PanelWindows, { areaId }) : null
941
+ ]
942
+ }
943
+ );
944
+ };
945
+ const Area = (props) => {
946
+ const { selected, areaId } = props;
947
+ const classesAreaRoot = useAreasStore((state) => state.viwerClasses.areaRoot);
948
+ const status = useAreasStore((state) => state.hashAreas[areaId].status);
949
+ if (status === "init") {
950
+ return null;
951
+ }
952
+ return /* @__PURE__ */ jsx(
953
+ "div",
954
+ {
955
+ className: clsx(
956
+ classesAreaRoot,
957
+ selected ? areasViewerClasses.selected : null,
958
+ status === "loading" ? areasViewerClasses.loading : null
959
+ ),
960
+ children: /* @__PURE__ */ jsx(InnerForHooks, { areaId })
961
+ }
962
+ );
963
+ };
964
+ Area.displayName = "Area";
965
+ styled("div")(({ theme }) => ({
966
+ display: "flex",
967
+ flexDirection: "column",
968
+ height: "100%",
969
+ overflow: "hidden",
970
+ padding: theme.spacing(3)
971
+ }));
972
+ const WrapperWindowModal = styled(Dialog)(({ theme }) => ({
973
+ hola: 1,
974
+ backgroundColor: theme.palette.background.paper,
975
+ "& .MuiDialog-container": {},
976
+ "&.m4l_selected": {
977
+ borderTop: "1px solid green"
978
+ },
979
+ ...theme.components?.M4LAreasViewerModal?.styleOverrides
980
+ }));
981
+ const WindowModal = (props) => {
982
+ const { windowId } = props;
983
+ const { onClose } = useAreasStore((state) => state.hashWindowsModals[windowId]);
984
+ const { host_static_assets, environment_assets } = useEnvironment();
985
+ const isDesktop = useResponsiveDesktop();
986
+ const DragabblePaperComponent = (_props) => {
987
+ return /* @__PURE__ */ jsx(
988
+ cjs.exports,
989
+ {
990
+ handle: ".m4l_draggable_handle",
991
+ bounds: "parent",
992
+ children: /* @__PURE__ */ jsx(
993
+ ResizeableWindow,
994
+ {
995
+ width: props.windowProps?.width || 400,
996
+ height: props.windowProps?.height || 300,
997
+ handle: (resizeHandle, ref) => /* @__PURE__ */ jsx("div", { ref, children: /* @__PURE__ */ jsx(
998
+ Icon,
999
+ {
1000
+ src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.RESIZE}`,
1001
+ className: `custom-handle custom-handle-${resizeHandle}`
1002
+ }
1003
+ ) }, resizeHandle),
1004
+ children: /* @__PURE__ */ jsx(Window, { ...props })
1005
+ }
1006
+ )
1007
+ }
1008
+ );
1009
+ };
1010
+ function PaperComponent(_props) {
1011
+ return /* @__PURE__ */ jsx(Window, { ...props });
1012
+ }
1013
+ return /* @__PURE__ */ jsx(
1014
+ WrapperWindowModal,
1015
+ {
1016
+ className: areasViewerClasses.windowModalRoot,
1017
+ open: true,
1018
+ scroll: "paper",
1019
+ onKeyDown: (event) => {
1020
+ if (event.key === "Escape") {
1021
+ onClose && onClose(windowId);
1022
+ }
1023
+ },
1024
+ "aria-labelledby": "child-modal-title",
1025
+ "aria-describedby": "child-modal-description",
1026
+ PaperComponent: isDesktop ? DragabblePaperComponent : PaperComponent,
1027
+ maxWidth: false,
1028
+ fullWidth: !isDesktop,
1029
+ fullScreen: false,
1030
+ disableEnforceFocus: true
1031
+ }
1032
+ );
1033
+ };
1034
+ const MemonizedWindowModal = React__default.memo(WindowModal);
1035
+ function AreasViewer() {
1036
+ const areas = useAreasStore((state) => state.areasIds, shallow);
1037
+ const windowsModals = useAreasStore((state) => state.windowsModals);
1038
+ const hashWindowsModals = useAreasStore((state) => state.hashWindowsModals);
1039
+ const currentArea = useAreasStore((state) => state.currentAreaId);
1040
+ const status = useAreasStore((state) => state.ownerState.status);
1041
+ const classesRoot = useAreasStore((state) => state.viwerClasses.root);
1042
+ const { init } = useAreasStore((state) => state.areasActions);
1043
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1044
+ /* @__PURE__ */ jsx(
1045
+ AreasViewerRoot,
1046
+ {
1047
+ className: classesRoot,
1048
+ ...process.env.NODE_ENV !== "production" ? {
1049
+ [TEST_PROP_ID]: getNameDataTestId(
1050
+ AREAS_VIEWER_CLASS_NAME,
1051
+ "root",
1052
+ ""
1053
+ )
1054
+ } : {},
1055
+ children: status === "loaded" ? areas.map((area) => {
1056
+ return /* @__PURE__ */ jsx(Area, { areaId: area, selected: currentArea === area }, area);
1057
+ }) : /* @__PURE__ */ jsx(LoadingError, { status, action: () => init() })
1058
+ }
1059
+ ),
1060
+ windowsModals.map((wm) => {
1061
+ if (hashWindowsModals[wm]) {
1062
+ return /* @__PURE__ */ jsx(MemonizedWindowModal, { ...hashWindowsModals[wm] }, wm);
1063
+ }
1064
+ return null;
1065
+ })
1066
+ ] });
1067
+ }
1068
+ export {
1069
+ AreasViewer as A,
1070
+ useAreasViewerUtilityClasses as u
1071
+ };