@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
@@ -0,0 +1,99 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
3
+ import { unstable_composeClasses } from "@mui/base";
4
+ import clsx from "clsx";
5
+ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
6
+ import { S as SplitterLayout } from "../../react-splitter-layout.8b1655c8.js";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ const SplitLayoutRoot = styled("div")(({
9
+ theme
10
+ }) => ({
11
+ ...theme.components?.M4LSplitLayout?.styleOverrides
12
+ }));
13
+ const SplitMaster = styled("div")(() => ({
14
+ display: "flex",
15
+ flexDirection: "column",
16
+ position: "relative",
17
+ width: "100%",
18
+ height: "100%",
19
+ overflow: "hidden"
20
+ }));
21
+ const SplitDetail = styled("div")(() => ({
22
+ display: "flex",
23
+ flexDirection: "column",
24
+ justifyContent: "center",
25
+ alignItems: "center",
26
+ overflow: "hidden",
27
+ position: "absolute",
28
+ left: "0px",
29
+ right: "0px",
30
+ top: "0px",
31
+ bottom: "0px"
32
+ }));
33
+ const componentName = "M4LSplitLayout";
34
+ generateUtilityClasses(componentName, [
35
+ "root",
36
+ "firstPart",
37
+ "secondPart",
38
+ "stateVertical",
39
+ "stateHorizontal"
40
+ ]);
41
+ function getSplitLayoutUtilityClass(slot) {
42
+ return generateUtilityClass(componentName, slot);
43
+ }
44
+ const useSplitLayoutUtilityClasses = (ownerState) => {
45
+ const slots = {
46
+ root: ["root", ownerState.splitPosition === "vertical" && "stateVertical", ownerState.splitPosition === "horizontal" && "stateHorizontal"],
47
+ firstPart: ["firstPart"],
48
+ secondPart: ["secondPart"]
49
+ };
50
+ const composedClasses = unstable_composeClasses(slots, getSplitLayoutUtilityClass, {});
51
+ return {
52
+ ...composedClasses
53
+ };
54
+ };
55
+ const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
56
+ const getNameSplitLayoutDataTestId = (KEY) => {
57
+ return `${SPLITLAYOUT_PREFIX}-${KEY}`;
58
+ };
59
+ function SplitLayout(props) {
60
+ const {
61
+ splitPosition,
62
+ firstPart,
63
+ secondPart,
64
+ secondParrtInitialSize = 50,
65
+ percentage = true,
66
+ className
67
+ } = props;
68
+ const ownerState = {
69
+ splitPosition
70
+ };
71
+ const classes = useSplitLayoutUtilityClasses(ownerState);
72
+ return /* @__PURE__ */ jsx(SplitLayoutRoot, {
73
+ className: clsx(classes.root, className),
74
+ ...process.env.NODE_ENV !== "production" ? {
75
+ [TEST_PROP_ID]: getNameSplitLayoutDataTestId("root")
76
+ } : {},
77
+ children: SplitterLayout ? /* @__PURE__ */ jsxs(SplitterLayout, {
78
+ vertical: splitPosition === "vertical",
79
+ percentage,
80
+ secondaryInitialSize: secondParrtInitialSize,
81
+ children: [/* @__PURE__ */ jsx(SplitMaster, {
82
+ className: classes.firstPart,
83
+ ...process.env.NODE_ENV !== "production" ? {
84
+ [TEST_PROP_ID]: getNameSplitLayoutDataTestId("firstPart")
85
+ } : {},
86
+ children: typeof firstPart === "function" ? firstPart() : firstPart
87
+ }), splitPosition !== "none" && /* @__PURE__ */ jsx(SplitDetail, {
88
+ className: classes.secondPart,
89
+ ...process.env.NODE_ENV !== "production" ? {
90
+ [TEST_PROP_ID]: getNameSplitLayoutDataTestId("secondPart")
91
+ } : {},
92
+ children: typeof secondPart === "function" ? secondPart() : secondPart
93
+ })]
94
+ }) : null
95
+ });
96
+ }
97
+ export {
98
+ SplitLayout as S
99
+ };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- import { SplitLayoutProps } from './types';
3
- export declare function SplitLayout(props: SplitLayoutProps): import("react").JSX.Element;
1
+ export { SplitLayout } from './SplitLayout';
2
+ export type { SplitLayoutProps } from './types';
@@ -0,0 +1 @@
1
+ export declare const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
@@ -0,0 +1,2 @@
1
+ import { SplitLayoutClassesKey } from "../classes/types";
2
+ export declare const getNameSplitLayoutDataTestId: (KEY: SplitLayoutClassesKey) => string;
@@ -6,4 +6,6 @@ export interface SplitLayoutProps {
6
6
  secondParrtInitialSize?: number;
7
7
  firstPart: ((props?: any) => JSX.Element) | ReactNode;
8
8
  secondPart: ((props?: any) => JSX.Element) | ReactNode;
9
+ className?: string;
9
10
  }
11
+ export declare type OwnerState = Pick<SplitLayoutProps, 'splitPosition'>;
@@ -1,6 +1,6 @@
1
1
  import { styled, useTheme } from "@mui/material";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { P as PropagateLoader$1 } from "../../../node_modules.416f1da3.js";
3
+ import { P as PropagateLoader$1 } from "../../../react-spinners.342a6578.js";
4
4
  const WrapperPropageteLoader = styled("div")(({
5
5
  theme
6
6
  }) => ({
@@ -0,0 +1,66 @@
1
+ import { m } from "framer-motion";
2
+ import { forwardRef } from "react";
3
+ import { IconButton, Box } from "@mui/material";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import "@mui/material/styles";
6
+ import "react-router-dom";
7
+ import "./LoadingScreen/index.1d0c4307.js";
8
+ import "./PropagateLoader/index.7fab43c8.js";
9
+ const varSmall = {
10
+ hover: {
11
+ scale: 1.1
12
+ },
13
+ tap: {
14
+ scale: 0.95
15
+ }
16
+ };
17
+ const varMedium = {
18
+ hover: {
19
+ scale: 1.09
20
+ },
21
+ tap: {
22
+ scale: 0.97
23
+ }
24
+ };
25
+ const varLarge = {
26
+ hover: {
27
+ scale: 1.08
28
+ },
29
+ tap: {
30
+ scale: 0.99
31
+ }
32
+ };
33
+ function AnimateWrap({
34
+ size,
35
+ children
36
+ }) {
37
+ const isSmall = size === "small";
38
+ const isLarge = size === "large";
39
+ return /* @__PURE__ */ jsx(Box, {
40
+ component: m.div,
41
+ whileTap: "tap",
42
+ whileHover: "hover",
43
+ variants: isSmall && varSmall || isLarge && varLarge || varMedium,
44
+ sx: {
45
+ display: "inline-flex"
46
+ },
47
+ children
48
+ });
49
+ }
50
+ const IconButtonAnimate = forwardRef(({
51
+ children,
52
+ size = "medium",
53
+ ...other
54
+ }, ref) => /* @__PURE__ */ jsx(AnimateWrap, {
55
+ size,
56
+ children: /* @__PURE__ */ jsx(IconButton, {
57
+ size,
58
+ ref,
59
+ ...other,
60
+ children
61
+ })
62
+ }));
63
+ IconButtonAnimate.displayName = "IconButtonAnimate";
64
+ export {
65
+ IconButtonAnimate as I
66
+ };
@@ -1,5 +1,5 @@
1
1
  import { AreasAdmninClasses } from './types';
2
2
  import { OwnerState } from '../../../contexts/AreasContext/types';
3
3
  export declare const areasAdminClasses: AreasAdmninClasses;
4
- export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaChipTitle" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
4
+ export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
5
5
  export declare type AdminClasses = ReturnType<typeof useAreasAdminUtilityClasses>;
@@ -3,7 +3,11 @@ export interface AreasAdmninClasses {
3
3
  areaChipRoot: string;
4
4
  areaChipTitle: string;
5
5
  areaContainerChips: string;
6
+ areaChipMobileRoot: string;
7
+ areaEditPopover: string;
8
+ areaChipMobileIconContainer: string;
6
9
  areaIconLayer: string;
10
+ areaContainerChipEditButton: string;
7
11
  areaChipDeleteButton: string;
8
12
  areaChipEditButton: string;
9
13
  areasAddButton: string;
@@ -1,69 +1,74 @@
1
- import { I as IconButton } from "../../../mui_extended/IconButton/index.822cdaac.js";
2
- import { u as useAreasStore } from "../../hooks/useAreas/index.7a37ede8.js";
1
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.1a9d4fa5.js";
2
+ import { u as useAreasStore } from "../../hooks/useAreas/index.40917e99.js";
3
3
  import { useEnvironment, useModuleDictionary } from "@m4l/core";
4
4
  import { useState, useRef, useMemo } from "react";
5
5
  import * as Yup from "yup";
6
- import { generateUtilityClasses } from "@mui/material";
7
- import { I as Icon } from "../../../Icon/index.d214a74d.js";
6
+ import { generateUtilityClasses, useTheme } from "@mui/material";
7
+ import "../../../mui_extended/Accordion/index.3faafd8b.js";
8
+ import { I as Icon } from "../../../Icon/index.9dae8337.js";
8
9
  import clsx from "clsx";
9
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
10
- import "../../../mui_extended/Accordion/index.09a89d3d.js";
11
- import "../../../mui_extended/Avatar/index.fe06afd7.js";
10
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
11
+ import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
12
+ import "../../../mui_extended/Avatar/index.75e6ed57.js";
12
13
  import "react-router-dom";
13
14
  import "@mui/material/Button";
14
- import "../../../mui_extended/Button/index.f9d54780.js";
15
- import "../../../Image/index.1af119da.js";
15
+ import "../../../mui_extended/Button/index.fdb5dcbd.js";
16
+ import "../../../Image/index.c18ebf5a.js";
16
17
  import "@mui/lab";
17
- import { T as Typography } from "../../../mui_extended/Typography/index.e2d9e3f2.js";
18
18
  import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
19
- import "../../../mui_extended/MenuActions/index.03403529.js";
20
- import "../../../mui_extended/Pager/index.6428b07c.js";
21
- import "../../../mui_extended/Tab/index.e0653a0a.js";
19
+ import { M as MenuActions } from "../../../mui_extended/MenuActions/index.ba1da3b3.js";
20
+ import "../../../mui_extended/Pager/index.67bda2c5.js";
21
+ import "../../../mui_extended/Tab/index.9e2f6e34.js";
22
+ import "../../../mui_extended/Tooltip/index.5a795dcd.js";
22
23
  import { unstable_composeClasses } from "@mui/base";
23
- import { g as getComponentUtilityClass } from "../../../../utils/index.aca80f3a.js";
24
+ import { g as getComponentUtilityClass } from "../../../../utils/index.008b4c2a.js";
24
25
  import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
25
- import { I as ICONS } from "../../icons.3ec589d3.js";
26
+ import { I as ICONS } from "../../icons.19cde4b4.js";
26
27
  import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
27
- import "../../../../contexts/ModalContext/index.0484ca54.js";
28
- import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.a7511399.js";
28
+ import "../../../../contexts/ModalContext/index.699f95fa.js";
29
+ import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.fe175bab.js";
29
30
  import "react-hook-form";
30
- import "../../../hook-form/RHFAutocomplete/index.72437d8a.js";
31
- import "../../../HelperText/index.d449d124.js";
31
+ import "../../../hook-form/RHFAutocomplete/index.a063dc44.js";
32
+ import "../../../HelperText/index.9864f773.js";
32
33
  import "lodash/debounce";
33
- import "../../../hook-form/RHFAutocompleteAsync/index.2a84f2b2.js";
34
- import "../../../hook-form/RHFCheckbox/index.6e6389e7.js";
34
+ import "../../../hook-form/RHFAutocompleteAsync/index.ddfd9cc9.js";
35
+ import "../../../hook-form/RHFCheckbox/index.7e7f220b.js";
35
36
  import "@mui/x-date-pickers";
36
- import "../../../hook-form/RHFDateTime/index.745b101b.js";
37
- import "@m4l/graphics";
38
- import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.ca7393a7.js";
39
- import "../../../hook-form/RHFPeriod/index.6969af99.js";
40
- import "../../../Period/index.b93d22fa.js";
41
- import { A as Actions } from "../../../CommonActions/components/Actions/index.51b9c92a.js";
42
- import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.fad4a0dc.js";
43
- import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.0fb6efbe.js";
44
- import "../../../../react-draggable.17b4ec8a.js";
45
- import "../../../ModalDialog/index.6c35e653.js";
46
- import "../../../Resizeable/index.834a9144.js";
47
- import "../../../modal/WindowConfirm.7ec9dcd3.js";
48
- import "../../../modal/WindowBase.9b93578e.js";
37
+ import "../../../hook-form/RHFDateTime/index.d330709b.js";
38
+ import { useResponsiveDesktop } from "@m4l/graphics";
39
+ import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.e5336d09.js";
40
+ import "../../../hook-form/RHFPeriod/index.e2b1293b.js";
41
+ import "../../../Period/index.526791a3.js";
42
+ import { A as Actions } from "../../../CommonActions/components/Actions/index.e376a68e.js";
43
+ import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.453c2d24.js";
44
+ import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.c653a266.js";
45
+ import "../../../../react-draggable.6d7949a3.js";
46
+ import "../../../ModalDialog/index.d9c5d400.js";
47
+ import "../../../Resizeable/index.f6e48e56.js";
48
+ import "../../../modal/index.1b25b61d.js";
49
49
  import { shallow } from "zustand/shallow";
50
50
  import { styled } from "@mui/material/styles";
51
51
  import { S as ScrollBar } from "../../../ScrollBar/index.bbe48f4d.js";
52
- import "../AreasViewer/index.eddc9945.js";
53
- import "../../contexts/AreasContext/index.a88b73a6.js";
52
+ import "../AreasViewer/index.bf4191ea.js";
53
+ import "../../../LinearProgressIndeterminate/index.d34d398f.js";
54
+ import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.3fabae50.js";
55
+ import "../../contexts/AreasContext/index.f0397b7c.js";
54
56
  import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
55
57
  import "zustand";
56
- import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.e72db809.js";
57
58
  import "lodash/isString";
58
59
  import "react-dropzone";
59
- import "../../../hook-form/RHFUpload/index.d74ca00d.js";
60
+ import "../../../hook-form/RHFUpload/index.17e7f9eb.js";
60
61
  const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
61
62
  "root",
62
63
  "areaChipRoot",
63
64
  "areaChipTitle",
64
65
  "areaChipDeleteButton",
65
66
  "areasAddButton",
67
+ "areaContainerChipEditButton",
66
68
  "areaContainerChips",
69
+ "areaEditPopover",
70
+ "areaChipMobileRoot",
71
+ "areaChipMobileIconContainer",
67
72
  "areaIconLayer",
68
73
  "areaChipEditButton",
69
74
  "selected",
@@ -76,7 +81,11 @@ const useAreasAdminUtilityClasses = (ownerState) => {
76
81
  areaChipRoot: ["areaChipRoot"],
77
82
  areaIconLayer: ["areaIconLayer"],
78
83
  areaContainerChips: ["areaContainerChips"],
84
+ areaEditPopover: ["areaEditPopover"],
85
+ areaChipMobileRoot: ["areaChipMobileRoot"],
86
+ areaChipMobileIconContainer: ["areaChipMobileIconContainer"],
79
87
  areaChipTitle: ["areaChipTitle"],
88
+ areaContainerChipEditButton: ["areaContainerChipEditButton"],
80
89
  areaChipDeleteButton: ["areaChipDeleteButton"],
81
90
  areaChipEditButton: ["areaChipEditButton"],
82
91
  areasAddButton: ["areasAddButton"]
@@ -112,6 +121,45 @@ const EditAreaHeader = styled("div")(({
112
121
  justifyContent: "space-between",
113
122
  alignItems: "center"
114
123
  }));
124
+ const ChipActionsMobile = (props) => {
125
+ const {
126
+ handlerOpenPopoverEditArea,
127
+ areaId
128
+ } = props;
129
+ const {
130
+ deleteArea
131
+ } = useAreasStore((state) => state.areasActions);
132
+ const {
133
+ host_static_assets,
134
+ environment_assets
135
+ } = useEnvironment();
136
+ const {
137
+ getLabel
138
+ } = useModuleDictionary();
139
+ const menuActions = [{
140
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
141
+ onClick: handlerOpenPopoverEditArea,
142
+ label: getLabel(getAreasDictionary(DICCTIONARY.label_edit_area))
143
+ }, {
144
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
145
+ onClick: () => deleteArea(areaId),
146
+ label: getLabel(getAreasDictionary(DICCTIONARY.label_delete_area))
147
+ }];
148
+ return /* @__PURE__ */ jsx(MenuActions, {
149
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.SHOW_OPTIONS}`,
150
+ arrowType: "no-arrow",
151
+ marginTop: "12px",
152
+ anchorOrigin: {
153
+ vertical: "bottom",
154
+ horizontal: "right"
155
+ },
156
+ transformOrigin: {
157
+ vertical: "top",
158
+ horizontal: "right"
159
+ },
160
+ menuActions
161
+ });
162
+ };
115
163
  const AreaChip = (props) => {
116
164
  const {
117
165
  areaId,
@@ -132,7 +180,9 @@ const AreaChip = (props) => {
132
180
  const {
133
181
  getLabel
134
182
  } = useModuleDictionary();
183
+ const isDesktop = useResponsiveDesktop();
135
184
  const anchorRef = useRef(null);
185
+ const theme = useTheme();
136
186
  const onClickDeleteArea = (e) => {
137
187
  e.stopPropagation();
138
188
  deleteArea(areaId);
@@ -142,7 +192,7 @@ const AreaChip = (props) => {
142
192
  editArea(areaId, data.inputEditArea);
143
193
  setOpen(false);
144
194
  };
145
- const handlerOpenPopover = () => {
195
+ const handlerOpenPopoverEditArea = () => {
146
196
  setOpen(true);
147
197
  };
148
198
  const initialValues = {
@@ -161,24 +211,26 @@ const AreaChip = (props) => {
161
211
  children: [/* @__PURE__ */ jsx("div", {
162
212
  className: areasAdminClasses.areaChipTitle,
163
213
  children: areaName
164
- }), /* @__PURE__ */ jsxs("div", {
165
- style: {
166
- display: "flex"
167
- },
214
+ }), isDesktop ? /* @__PURE__ */ jsxs("div", {
215
+ className: areasAdminClasses.areaContainerChipEditButton,
168
216
  children: [/* @__PURE__ */ jsx(IconButton, {
169
217
  className: areasAdminClasses.areaChipEditButton,
170
218
  src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
171
219
  size: "extraSmall",
172
- onClick: handlerOpenPopover
220
+ onClick: handlerOpenPopoverEditArea
173
221
  }), /* @__PURE__ */ jsx(IconButton, {
174
222
  className: areasAdminClasses.areaChipDeleteButton,
175
223
  src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
176
224
  size: "extraSmall",
177
225
  onClick: onClickDeleteArea
178
226
  })]
227
+ }) : /* @__PURE__ */ jsx(ChipActionsMobile, {
228
+ areaId,
229
+ handlerOpenPopoverEditArea
179
230
  }), /* @__PURE__ */ jsx(Popover, {
180
231
  arrowType: "top-center",
181
232
  open,
233
+ className: areasAdminClasses.areaEditPopover,
182
234
  anchorEl: anchorRef.current,
183
235
  anchorOrigin: {
184
236
  vertical: "bottom",
@@ -190,7 +242,8 @@ const AreaChip = (props) => {
190
242
  },
191
243
  onClose: () => setOpen(false),
192
244
  sx: {
193
- mt: "10px"
245
+ mt: "10px",
246
+ ...theme.components?.M4LAreasAdminEditPopover?.styleOverrides
194
247
  },
195
248
  children: /* @__PURE__ */ jsxs(RHFormProvider, {
196
249
  onSubmit,
@@ -239,12 +292,59 @@ const AreasAdminRoot = styled("div")`
239
292
 
240
293
 
241
294
  `;
295
+ const AreaChipMobile = () => {
296
+ const areas = useAreasStore((state) => state.areas, shallow);
297
+ const {
298
+ selectArea
299
+ } = useAreasStore((state) => state.areasActions);
300
+ const currentAreaId = useAreasStore((state) => state.currentAreaId, shallow);
301
+ const currentArea = areas.find((area) => area.id === currentAreaId);
302
+ const {
303
+ host_static_assets,
304
+ environment_assets
305
+ } = useEnvironment();
306
+ const menuActions = useMemo(() => areas.filter((area) => area.id !== currentAreaId).map((area) => {
307
+ return {
308
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.LAYERS}`,
309
+ onClick: () => selectArea(area.id),
310
+ label: area.name
311
+ };
312
+ }), [areas, currentAreaId]);
313
+ console.log("currentAreaId", currentArea);
314
+ return /* @__PURE__ */ jsxs("div", {
315
+ className: areasAdminClasses.areaChipMobileRoot,
316
+ children: [currentArea ? /* @__PURE__ */ jsx(AreaChip, {
317
+ areaId: currentArea.id,
318
+ selected: true,
319
+ areaName: currentArea.name,
320
+ disabled: true
321
+ }, currentArea.id) : null, menuActions.length > 0 ? /* @__PURE__ */ jsx("div", {
322
+ className: areasAdminClasses.areaChipMobileIconContainer,
323
+ children: /* @__PURE__ */ jsx(MenuActions, {
324
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CHEVRON_DOWN}`,
325
+ arrowType: "no-arrow",
326
+ marginTop: "12px!important",
327
+ marginLeft: "14px!important",
328
+ anchorOrigin: {
329
+ vertical: "bottom",
330
+ horizontal: "right"
331
+ },
332
+ transformOrigin: {
333
+ vertical: "top",
334
+ horizontal: "right"
335
+ },
336
+ menuActions
337
+ })
338
+ }) : null]
339
+ });
340
+ };
242
341
  function AreasAdmin() {
243
342
  const areas = useAreasStore((state) => state.areas, shallow);
244
343
  const currentArea = useAreasStore((state) => state.currentAreaId, shallow);
245
344
  const status = useAreasStore((state) => state.ownerState.status);
246
345
  const classesRoot = useAreasStore((state) => state.adminClasses.root);
247
346
  const areasLength = useAreasStore((state) => state.areas.length);
347
+ const isDesktop = useResponsiveDesktop();
248
348
  const {
249
349
  addArea
250
350
  } = useAreasStore((state) => state.areasActions, shallow);
@@ -265,7 +365,7 @@ function AreasAdmin() {
265
365
  })
266
366
  }), /* @__PURE__ */ jsx("div", {
267
367
  className: areasAdminClasses.areaContainerChips,
268
- children: /* @__PURE__ */ jsx(ScrollBar, {
368
+ children: isDesktop ? /* @__PURE__ */ jsx(ScrollBar, {
269
369
  children: /* @__PURE__ */ jsx(Fragment, {
270
370
  children: areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
271
371
  areaId: area.id,
@@ -274,7 +374,7 @@ function AreasAdmin() {
274
374
  disabled: areasLength === 1
275
375
  }, area.id))
276
376
  })
277
- })
377
+ }) : /* @__PURE__ */ jsx(AreaChipMobile, {})
278
378
  }), /* @__PURE__ */ jsx(IconButton, {
279
379
  className: areasAdminClasses.areasAddButton,
280
380
  src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ChipActionsMobileProps } from './types';
3
+ export declare const ChipActionsMobile: (props: ChipActionsMobileProps) => import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export interface ChipActionsMobileProps {
2
+ handlerOpenPopoverEditArea: () => void;
3
+ areaId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const AreaChipMobile: () => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { AreasViewerClasses } from './types';
2
2
  import { OwnerState } from '../../../contexts/AreasContext/types';
3
3
  export declare const areasViewerClasses: AreasViewerClasses;
4
- export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
4
+ export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "windowLinearProgressBar" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
5
5
  export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
@@ -1,18 +1,30 @@
1
1
  export interface AreasViewerClasses {
2
2
  root: string;
3
3
  areaRoot: string;
4
+ areasLoadingErrorRoot: string;
5
+ areasLoadingErrorLoading: string;
6
+ areasLoadingError: string;
7
+ areasLoadingErrorIcon: string;
8
+ areasLoadingErrorTitle: string;
9
+ areasLoadingErrorDescription: string;
10
+ areasLoadingErrorDivider: string;
11
+ areasLoadingErrorTextAction: string;
4
12
  areaGridLayoutPanelContainer: string;
5
13
  areaGridLayout: string;
6
14
  areaGridLayoutPopupsContainer: string;
7
15
  windowRoot: string;
8
16
  windowHeader: string;
17
+ windowHeaderContent: string;
9
18
  windowHeaderTitle: string;
10
19
  windowHeaderMainActions: string;
11
20
  windowContent: string;
12
21
  windowRootContainer: string;
22
+ windowLinearProgressRoot: string;
23
+ windowLinearProgressBar: string;
13
24
  windowPopupRoot: string;
14
25
  windowModalRoot: string;
15
26
  windowToastiesContainer: string;
27
+ windowToastiesContainerTostys: string;
16
28
  windowToastyContainer: string;
17
29
  windowToastyMeesageButtonsContainer: string;
18
30
  windowToastyMessage: string;
@@ -30,5 +42,6 @@ export interface AreasViewerClasses {
30
42
  info: string;
31
43
  warning: string;
32
44
  error: string;
45
+ containerLinearProgress: string;
33
46
  }
34
47
  export declare type AreasViewerClassesKey = keyof AreasViewerClasses;