@m4l/components 9.2.0 → 9.2.2

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 (288) hide show
  1. package/.storybook/decorators/WithPopupsProvider/WithPopupsProvider.d.ts +6 -1
  2. package/.storybook/decorators/WithWindowsContainerSizer/WithWindowsContainerSizer.d.ts +5 -0
  3. package/@types/types.d.ts +11 -0
  4. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +3 -3
  5. package/components/AppBar/slots/AppBarSlots.d.ts +2 -2
  6. package/components/Chip/slots/ChipSlots.d.ts +1 -1
  7. package/components/Color/slots/ColorSlots.d.ts +1 -1
  8. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  9. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +1 -1
  10. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  11. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  12. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  13. package/components/DragResizeWindow/DragResizeWindow.d.ts +2 -2
  14. package/components/DragResizeWindow/DragResizeWindow.js +69 -11
  15. package/components/DragResizeWindow/DragResizeWindow.styles.js +0 -2
  16. package/components/DragResizeWindow/classes/index.js +1 -0
  17. package/components/DragResizeWindow/classes/types.d.ts +1 -0
  18. package/components/DragResizeWindow/helpers/draggingOrResizingWindow.d.ts +7 -0
  19. package/components/DragResizeWindow/helpers/draggingOrResizingWindow.js +1 -0
  20. package/components/DragResizeWindow/helpers/expandingParentContainer.d.ts +12 -0
  21. package/components/DragResizeWindow/helpers/expandingParentContainer.js +31 -0
  22. package/components/DragResizeWindow/helpers/getInitialSize.d.ts +15 -0
  23. package/components/DragResizeWindow/helpers/getInitialSize.js +56 -0
  24. package/components/DragResizeWindow/helpers/index.d.ts +6 -15
  25. package/components/DragResizeWindow/helpers/index.js +1 -37
  26. package/components/DragResizeWindow/helpers/isElmentInViewport.d.ts +15 -0
  27. package/components/DragResizeWindow/helpers/isElmentInViewport.js +1 -0
  28. package/components/DragResizeWindow/helpers/pointPosition.d.ts +36 -0
  29. package/components/DragResizeWindow/helpers/pointPosition.js +82 -0
  30. package/components/DragResizeWindow/helpers/shrinkingParentContainer.d.ts +6 -0
  31. package/components/DragResizeWindow/helpers/shrinkingParentContainer.js +34 -0
  32. package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +2 -0
  33. package/components/DragResizeWindow/hooks/useDimensionEffects.js +20 -223
  34. package/components/DragResizeWindow/hooks/useDragOptions.d.ts +8 -1
  35. package/components/DragResizeWindow/hooks/useDragOptions.js +79 -6
  36. package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +11 -0
  37. package/components/DragResizeWindow/hooks/useResizeOptions.js +164 -19
  38. package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +2 -2
  39. package/components/DragResizeWindow/types.d.ts +53 -4
  40. package/components/DragResizeWindow/utils.d.ts +5 -2
  41. package/components/DragResizeWindow/utils.js +32 -13
  42. package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +19 -0
  43. package/components/DragResizeWindowRND/DragResizeWindowRND.js +224 -0
  44. package/components/DragResizeWindowRND/DragResizeWindowRND.styles.d.ts +5 -0
  45. package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +75 -0
  46. package/components/DragResizeWindowRND/classes/index.d.ts +2 -0
  47. package/components/DragResizeWindowRND/classes/index.js +18 -0
  48. package/components/DragResizeWindowRND/classes/types.d.ts +9 -0
  49. package/components/DragResizeWindowRND/constants.d.ts +3 -0
  50. package/components/DragResizeWindowRND/constants.js +6 -0
  51. package/components/DragResizeWindowRND/helpers/expandingParentContainer.d.ts +12 -0
  52. package/components/DragResizeWindowRND/helpers/expandingParentContainer.js +31 -0
  53. package/components/DragResizeWindowRND/helpers/getInitialSize.d.ts +15 -0
  54. package/components/DragResizeWindowRND/helpers/getInitialSize.js +56 -0
  55. package/components/DragResizeWindowRND/helpers/index.d.ts +5 -0
  56. package/components/DragResizeWindowRND/helpers/index.js +1 -0
  57. package/components/DragResizeWindowRND/helpers/isElmentInViewport.d.ts +15 -0
  58. package/components/DragResizeWindowRND/helpers/isElmentInViewport.js +1 -0
  59. package/components/DragResizeWindowRND/helpers/pointPosition.d.ts +36 -0
  60. package/components/DragResizeWindowRND/helpers/pointPosition.js +1 -0
  61. package/components/DragResizeWindowRND/helpers/shrinkingParentContainer.d.ts +6 -0
  62. package/components/DragResizeWindowRND/helpers/shrinkingParentContainer.js +34 -0
  63. package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.d.ts +23 -0
  64. package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.js +90 -0
  65. package/components/DragResizeWindowRND/hooks/useRNDDragOptions.d.ts +28 -0
  66. package/components/DragResizeWindowRND/hooks/useRNDDragOptions.js +220 -0
  67. package/components/DragResizeWindowRND/hooks/useRNDReResizeOptions.d.ts +45 -0
  68. package/components/DragResizeWindowRND/hooks/useRNDReResizeOptions.js +173 -0
  69. package/components/DragResizeWindowRND/icons.d.ts +3 -0
  70. package/components/DragResizeWindowRND/index.d.ts +2 -0
  71. package/components/DragResizeWindowRND/index.js +1 -0
  72. package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +12 -0
  73. package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.js +19 -0
  74. package/components/DragResizeWindowRND/slots/slots.d.ts +5 -0
  75. package/components/DragResizeWindowRND/slots/slots.js +9 -0
  76. package/components/DragResizeWindowRND/types.d.ts +295 -0
  77. package/components/DragResizeWindowRND/utils.d.ts +15 -0
  78. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +4 -4
  79. package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
  80. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  81. package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
  82. package/components/GridLayout/GridLayout.d.ts +2 -1
  83. package/components/GridLayout/GridLayout.js +10 -5
  84. package/components/GridLayout/classes/index.d.ts +1 -1
  85. package/components/GridLayout/subcomponents/Responsive/index.d.ts +1 -1
  86. package/components/GridLayout/subcomponents/Responsive/index.js +4 -3
  87. package/components/GridLayout/subcomponents/Responsive/types.d.ts +4 -0
  88. package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +3 -1
  89. package/components/GridLayout/subcomponents/withSizeProvider/index.js +11 -15
  90. package/components/GridLayout/types.d.ts +4 -0
  91. package/components/Label/slots/LabelSlots.d.ts +1 -1
  92. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  93. package/components/MFIsolationApp/MFIsolationApp.js +24 -11
  94. package/components/MFIsolationApp/types.d.ts +8 -1
  95. package/components/MFLoader/styles.js +17 -2
  96. package/components/MFLoader/types.d.ts +19 -2
  97. package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
  98. package/components/ModalDialog/ModalDialog.js +2 -2
  99. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  100. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  101. package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
  102. package/components/ToastContainer/slots/toastContainerSlots.js +1 -1
  103. package/components/WindowBase/WindowBase.js +3 -5
  104. package/components/WindowBase/WindowBase.styles.js +26 -17
  105. package/components/{areas/contexts/DynamicMFParmsContext/index.js → WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js} +2 -2
  106. package/components/WindowBase/contexts/DynamicMFParmsContext/index.d.ts +4 -0
  107. package/components/WindowBase/contexts/DynamicMFParmsContext/index.js +1 -0
  108. package/components/{areas → WindowBase}/contexts/DynamicMFParmsContext/store.d.ts +0 -1
  109. package/components/{areas/contexts/WindowToolsMFContext/index.js → WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js} +4 -3
  110. package/components/WindowBase/contexts/WindowToolsMFContext/index.d.ts +2 -0
  111. package/components/WindowBase/contexts/WindowToolsMFContext/index.js +1 -0
  112. package/components/{areas → WindowBase}/contexts/WindowToolsMFContext/types.d.ts +3 -2
  113. package/components/WindowBase/contexts/index.d.ts +2 -0
  114. package/components/WindowBase/helpers.d.ts +22 -0
  115. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/helper.js → WindowBase/helpers.js} +17 -13
  116. package/components/{areas → WindowBase}/hooks/useDynamicMFParameters/index.js +9 -1
  117. package/components/{areas → WindowBase}/hooks/useWindowToolsMF/index.js +1 -1
  118. package/components/WindowBase/index.d.ts +5 -0
  119. package/components/WindowBase/slots/WindowBaseEnum.d.ts +2 -1
  120. package/components/WindowBase/slots/WindowBaseEnum.js +1 -0
  121. package/components/WindowBase/slots/WindowBaseSlots.d.ts +45 -14
  122. package/components/WindowBase/slots/WindowBaseSlots.js +10 -5
  123. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window → WindowBase}/subcomponents/Component/index.d.ts +1 -1
  124. package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window → WindowBase}/subcomponents/Component/index.js +6 -6
  125. package/components/WindowBase/subcomponents/Component/types.d.ts +9 -0
  126. package/components/WindowBase/subcomponents/EditionInfo/EditionInfo.js +1 -1
  127. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +52 -24
  128. package/components/WindowBase/subcomponents/Header/types.d.ts +1 -38
  129. package/components/WindowBase/subcomponents/MicroFrontend/MicroFrontend.d.ts +8 -0
  130. package/components/WindowBase/subcomponents/MicroFrontend/MicroFrontend.js +10 -0
  131. package/components/WindowBase/subcomponents/MicroFrontend/types.d.ts +8 -0
  132. package/components/WindowBase/types.d.ts +52 -18
  133. package/components/WindowConfirm/WindowConfirm.js +1 -1
  134. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +2 -2
  135. package/components/areas/components/AreasViewer/AreasViewer.d.ts +1 -1
  136. package/components/areas/components/AreasViewer/AreasViewer.js +7 -9
  137. package/components/areas/components/AreasViewer/AreasViewer.styles.js +12 -11
  138. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +2 -2
  139. package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +1 -1
  140. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +3 -3
  141. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +6 -5
  142. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +44 -4
  143. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +7 -5
  144. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +9 -9
  145. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +12 -0
  146. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.js +58 -0
  147. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +6 -0
  148. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +88 -0
  149. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/{useWindow/useWindow.d.ts → useWindow.d.ts} +7 -7
  150. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/{useWindow/useWindow.js → useWindow.js} +13 -11
  151. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +7 -3
  152. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.d.ts +5 -4
  153. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +25 -25
  154. package/components/areas/components/AreasViewer/types.d.ts +3 -1
  155. package/components/areas/components/index.d.ts +1 -1
  156. package/components/areas/constants.d.ts +1 -0
  157. package/components/areas/constants.js +3 -1
  158. package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +2 -2
  159. package/components/areas/contexts/AreasContext/helpers/getWindowForAreaTest.d.ts +2 -2
  160. package/components/areas/contexts/AreasContext/helpers/helper.d.ts +4 -4
  161. package/components/areas/contexts/AreasContext/helpers/helper.js +6 -8
  162. package/components/areas/contexts/AreasContext/helpers/selectLayout.d.ts +6 -0
  163. package/components/areas/contexts/AreasContext/helpers/selectLayout.js +27 -0
  164. package/components/areas/contexts/AreasContext/index.d.ts +4 -4
  165. package/components/areas/contexts/AreasContext/index.js +24 -4
  166. package/components/areas/contexts/AreasContext/store.d.ts +4 -4
  167. package/components/areas/contexts/AreasContext/store.js +128 -86
  168. package/components/areas/contexts/AreasContext/types.d.ts +142 -31
  169. package/components/areas/contexts/index.d.ts +0 -6
  170. package/components/areas/hooks/index.d.ts +0 -2
  171. package/components/areas/hooks/useAreas/index.d.ts +5 -5
  172. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.js +2 -2
  173. package/components/areas/types.d.ts +109 -100
  174. package/components/extended/React-Resizable/Resizable/Resizable.js +2 -1
  175. package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  176. package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  177. package/components/extended/React-Resizable/helpers.d.ts +6 -1
  178. package/components/extended/React-Resizable/helpers.js +11 -2
  179. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  180. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
  181. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  182. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  183. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
  184. package/components/index.d.ts +1 -0
  185. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
  186. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +4 -4
  187. package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
  188. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  189. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  190. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +1 -1
  191. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
  192. package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
  193. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
  194. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  195. package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  196. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
  197. package/components/mui_extended/MenuItem/types.d.ts +1 -1
  198. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  199. package/components/mui_extended/Select/slots/SelectSlots.d.ts +2 -2
  200. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  201. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  202. package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
  203. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  204. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
  205. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
  206. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
  207. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  208. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  209. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  210. package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +8 -2
  211. package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js +6 -24
  212. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +9 -3
  213. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +278 -211
  214. package/components/popups/components/PopupsProvider/contexts/PopupsContext/tests/PopupContext.test.d.ts +1 -0
  215. package/components/popups/components/PopupsProvider/contexts/PopupsContext/tests/PopusContext.store.test.d.ts +1 -0
  216. package/components/popups/components/PopupsProvider/contexts/PopupsContext/tests/__mocks__/storeMock.d.ts +29 -0
  217. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +183 -79
  218. package/components/popups/components/PopupsProvider/hooks/{useHeaderActionsPopups/useHeaderActionsPopups.d.ts → useHeaderActionsPopups.d.ts} +2 -8
  219. package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups.js +60 -0
  220. package/components/popups/components/PopupsProvider/hooks/usePopups.d.ts +43 -0
  221. package/components/popups/components/PopupsProvider/hooks/usePopups.js +138 -0
  222. package/components/popups/components/PopupsProvider/hooks/usePopupsStore.d.ts +5 -0
  223. package/components/popups/components/PopupsProvider/hooks/{usePopupsStore/index.js → usePopupsStore.js} +1 -1
  224. package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +13 -4
  225. package/components/popups/components/PopupsViewer/PopupsViewer.js +27 -6
  226. package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +3 -11
  227. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +7 -10
  228. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.js +3 -8
  229. package/components/popups/components/PopupsViewer/slots/slots.d.ts +1 -2
  230. package/components/popups/components/PopupsViewer/slots/slots.js +0 -1
  231. package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.d.ts +1 -1
  232. package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +69 -53
  233. package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +16 -0
  234. package/components/popups/components/PopupsViewer/tests/PopupsViewer.integration.test.d.ts +1 -0
  235. package/components/popups/components/PopupsViewer/types.d.ts +13 -5
  236. package/contexts/AppearanceComponentContext/AppearanceComponentContext.d.ts +8 -0
  237. package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +4 -3
  238. package/contexts/AppearanceComponentContext/AppearanceComponentStore.d.ts +8 -1
  239. package/contexts/AppearanceComponentContext/AppearanceComponentStore.js +10 -3
  240. package/contexts/index.d.ts +1 -1
  241. package/hooks/useDataGridPersistence/useDataGridPersistence.js +4 -4
  242. package/hooks/useDynamicFilterAndSort/types.d.ts +1 -1
  243. package/hooks/useSizeContainer/index.js +2 -2
  244. package/index.js +91 -85
  245. package/not_recognized/index.js +1280 -0
  246. package/package.json +2 -1
  247. package/storybook/components/Areas/AreasViewer/{AreasViewr.stories.d.ts → AreasViewer.stories.d.ts} +2 -2
  248. package/storybook/components/Areas/AreasViewer/hooks/useWindowsActions.d.ts +4 -0
  249. package/storybook/components/Areas/AreasViewer/subcomponents/AreasViewerRender.d.ts +4 -0
  250. package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/Launcher.d.ts +5 -0
  251. package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupButton.d.ts +21 -0
  252. package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupContentExample.d.ts +4 -0
  253. package/storybook/components/Areas/AreasViewer/subcomponents/layouts/ClientsLayout.d.ts +4 -0
  254. package/storybook/components/Areas/AreasViewer/subcomponents/layouts/UsersLayout.d.ts +4 -0
  255. package/storybook/components/DragResizeWindowRND/stories/DragResizeWindowRND.stories.d.ts +8 -0
  256. package/storybook/components/DragResizeWindowRND/stories/constants.d.ts +3 -0
  257. package/storybook/components/DragResizeWindowRND/stories/subcomponents/ContentExample.d.ts +4 -0
  258. package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/RNDWindowsContainer.d.ts +5 -0
  259. package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/index.d.ts +1 -0
  260. package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/types.d.ts +4 -0
  261. package/storybook/components/{Areas/AreasViewer → DragResizeWindowRND/stories}/subcomponents/WithExtendedContainer.d.ts +1 -1
  262. package/storybook/components/DragResizeWindowRND/stories/types.d.ts +3 -0
  263. package/storybook/components/PopupsViewer/basic.stories.d.ts +12 -2
  264. package/storybook/components/PopupsViewer/subcomponents/PopupActions.d.ts +3 -1
  265. package/storybook/components/PopupsViewer/subcomponents/PopupContentExample.d.ts +2 -1
  266. package/storybook/components/PopupsViewer/subcomponents/initialPopups.d.ts +1 -1
  267. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/helper.d.ts +0 -22
  268. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.d.ts +0 -28
  269. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.js +0 -155
  270. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/types.d.ts +0 -10
  271. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/MicroFrontend.d.ts +0 -8
  272. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/MicroFrontend.js +0 -10
  273. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/types.d.ts +0 -8
  274. package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups/helper.d.ts +0 -28
  275. package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups/helper.js +0 -44
  276. package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups/useHeaderActionsPopups.js +0 -157
  277. package/components/popups/components/PopupsProvider/hooks/usePopops/usePopups.d.ts +0 -28
  278. package/components/popups/components/PopupsProvider/hooks/usePopops/usePopups.js +0 -117
  279. package/components/popups/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +0 -6
  280. package/storybook/components/Areas/AreasViewer/subcomponents/ClientsHeaderActions.d.ts +0 -4
  281. package/storybook/components/Areas/AreasViewer/subcomponents/UsersHeaderActions.d.ts +0 -4
  282. /package/components/{popups/components/PopupsProvider/tests/PopupsProvider.test.d.ts → DragResizeWindowRND/tests/DragResizeWindow.test.d.ts} +0 -0
  283. /package/components/{areas/contexts/DynamicMFParmsContext/index.d.ts → WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.d.ts} +0 -0
  284. /package/components/{areas → WindowBase}/contexts/DynamicMFParmsContext/store.js +0 -0
  285. /package/components/{areas → WindowBase}/contexts/DynamicMFParmsContext/types.d.ts +0 -0
  286. /package/components/{areas/contexts/WindowToolsMFContext/index.d.ts → WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.d.ts} +0 -0
  287. /package/components/{areas → WindowBase}/hooks/useDynamicMFParameters/index.d.ts +0 -0
  288. /package/components/{areas → WindowBase}/hooks/useWindowToolsMF/index.d.ts +0 -0
@@ -0,0 +1,173 @@
1
+ import { useEffect, useCallback } from "react";
2
+ const useResizeOptions = (props) => {
3
+ const { onResizeStart, onResize, onResizeStop, stateRef, setCurrentState, containerElement, allowHeightResizeContainer, allowWidthResizeContainer } = props;
4
+ useEffect(() => {
5
+ if (!containerElement) {
6
+ return;
7
+ }
8
+ const handleScroll = (e) => {
9
+ const scrollTop = e.target.scrollTop;
10
+ const scrollLeft = e.target.scrollLeft;
11
+ if (stateRef.current.resizing) {
12
+ console.warn("handleScroll IMPLEMENTAR", scrollTop, scrollLeft);
13
+ }
14
+ };
15
+ containerElement.addEventListener("scroll", handleScroll);
16
+ return () => {
17
+ containerElement?.removeEventListener("scroll", handleScroll);
18
+ };
19
+ }, [containerElement, setCurrentState, stateRef]);
20
+ const localOnResizeStart = useCallback(
21
+ (e, dir, elementRef) => {
22
+ if (onResizeStart) {
23
+ onResizeStart(e, dir, elementRef);
24
+ }
25
+ const widthInitial = stateRef.current.width;
26
+ const heightInitial = stateRef.current.height;
27
+ const resizing = {
28
+ x: stateRef.current.x,
29
+ y: stateRef.current.y,
30
+ width: widthInitial,
31
+ height: heightInitial,
32
+ handle: dir,
33
+ widthInitial,
34
+ heightInitial
35
+ };
36
+ const newState = {
37
+ x: stateRef.current.x,
38
+ width: stateRef.current.width,
39
+ y: stateRef.current.y,
40
+ height: stateRef.current.height
41
+ };
42
+ setCurrentState({
43
+ ...newState,
44
+ resizing
45
+ });
46
+ stateRef.current = {
47
+ ...stateRef.current,
48
+ ...newState,
49
+ resizing
50
+ };
51
+ },
52
+ [onResizeStart, setCurrentState, stateRef]
53
+ );
54
+ const localOnResize = useCallback(
55
+ (_e, dir, _elementRef, delta, position) => {
56
+ if (!stateRef.current.resizing) {
57
+ return;
58
+ }
59
+ if (!containerElement) {
60
+ return;
61
+ }
62
+ if (onResize) {
63
+ onResize(_e, dir, _elementRef, delta, position);
64
+ }
65
+ const widthByDelta = (stateRef.current.resizing?.widthInitial || 0) + delta.width;
66
+ const heightByDelta = (stateRef.current.resizing?.heightInitial || 0) + delta.height;
67
+ const xRounded = Math.round(position.x);
68
+ const yRounded = Math.round(position.y);
69
+ const newState = {
70
+ x: xRounded,
71
+ width: widthByDelta,
72
+ y: yRounded,
73
+ height: heightByDelta
74
+ };
75
+ let newScrollLeft;
76
+ let newScrollTop;
77
+ const containerWidth = stateRef.current.containerSize?.containerWidth || containerElement.clientWidth;
78
+ const containerHeight = stateRef.current.containerSize?.containerHeight || containerElement.clientHeight;
79
+ const right = newState.x + newState.width;
80
+ if (right > containerWidth) {
81
+ if (!allowWidthResizeContainer) {
82
+ if (dir.includes("right")) {
83
+ const containerViewportRight = containerElement.scrollLeft + containerWidth;
84
+ if (right > containerViewportRight) {
85
+ newScrollLeft = right - containerWidth + 100;
86
+ }
87
+ }
88
+ }
89
+ }
90
+ const bottom = newState.y + newState.height;
91
+ if (bottom > containerHeight) {
92
+ if (allowHeightResizeContainer) {
93
+ if (dir.includes("bottom")) {
94
+ const containerViewportBottom = containerElement.scrollTop + containerHeight;
95
+ if (bottom > containerViewportBottom) {
96
+ newScrollTop = bottom - containerHeight + 100;
97
+ }
98
+ }
99
+ }
100
+ }
101
+ if (newScrollLeft !== void 0 || newScrollTop !== void 0) {
102
+ setTimeout(() => {
103
+ containerElement.scrollTo({
104
+ left: newScrollLeft,
105
+ top: newScrollTop,
106
+ behavior: "instant"
107
+ });
108
+ }, 10);
109
+ }
110
+ },
111
+ [allowHeightResizeContainer, allowWidthResizeContainer, containerElement, onResize, stateRef]
112
+ );
113
+ const localOnResizeStop = useCallback(
114
+ (e, dir, elementRef, delta, position) => {
115
+ if (onResizeStop) {
116
+ onResizeStop(e, dir, elementRef, delta, position);
117
+ }
118
+ const bounds = {
119
+ left: stateRef.current.bounds?.left || 0,
120
+ top: stateRef.current.bounds?.top || 0,
121
+ right: stateRef.current.bounds?.right || 0,
122
+ bottom: stateRef.current.bounds?.bottom || 0
123
+ };
124
+ const widthByDelta = (stateRef.current.resizing?.widthInitial || 0) + delta.width;
125
+ const heightByDelta = (stateRef.current.resizing?.heightInitial || 0) + delta.height;
126
+ const newState = {
127
+ x: position.x,
128
+ width: widthByDelta,
129
+ y: position.y,
130
+ height: heightByDelta
131
+ };
132
+ if (!containerElement) {
133
+ return;
134
+ }
135
+ const containerWidth = stateRef.current.containerSize?.containerWidth || containerElement.clientWidth;
136
+ const containerHeight = stateRef.current.containerSize?.containerHeight || containerElement.clientHeight;
137
+ if (newState.x < bounds.left) {
138
+ newState.x = bounds.left;
139
+ newState.width = widthByDelta - (bounds.left - position.x);
140
+ } else if (newState.x + newState.width > containerWidth + bounds.right) {
141
+ if (!allowWidthResizeContainer) {
142
+ newState.width = containerWidth - newState.x + bounds.right;
143
+ }
144
+ }
145
+ if (newState.y < bounds.top) {
146
+ newState.y = bounds.top;
147
+ newState.height = heightByDelta - (bounds.top - position.y);
148
+ } else if (newState.y + newState.height > containerHeight + bounds.bottom) {
149
+ if (!allowHeightResizeContainer) {
150
+ newState.height = containerHeight - newState.y + bounds.bottom;
151
+ }
152
+ }
153
+ const xRounded = Math.round(newState.x);
154
+ const yRounded = Math.round(newState.y);
155
+ newState.x = xRounded;
156
+ newState.y = yRounded;
157
+ setCurrentState({
158
+ ...newState,
159
+ resizing: void 0
160
+ });
161
+ stateRef.current = {
162
+ ...stateRef.current,
163
+ ...newState,
164
+ resizing: void 0
165
+ };
166
+ },
167
+ [allowHeightResizeContainer, allowWidthResizeContainer, containerElement, onResizeStop, setCurrentState, stateRef]
168
+ );
169
+ return { localOnResize, localOnResizeStart, localOnResizeStop };
170
+ };
171
+ export {
172
+ useResizeOptions as u
173
+ };
@@ -0,0 +1,3 @@
1
+ export declare const ICONS: {
2
+ RESIZE: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ export { DragResizeWindowRND } from './DragResizeWindowRND';
2
+ export { dragResizeWindowRNDClasses } from './classes/index';
@@ -0,0 +1,12 @@
1
+ import { Rnd } from 'react-rnd';
2
+ export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
3
+ ownerState: any;
4
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
5
+ export declare const IconResizeFormatterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
6
+ ownerState: any;
7
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
8
+ export declare const RndStyled: import('@emotion/styled').StyledComponent<Pick<import('react-rnd').Props, keyof import('react-rnd').Props> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
9
+ ownerState: any;
10
+ }, {}, {
11
+ ref?: import('react').Ref<Rnd> | undefined;
12
+ }>;
@@ -0,0 +1,19 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { C as COMPONENT_KEY_COMPONENT } from "../constants.js";
3
+ import { d as dragResizeWindowStyles } from "../DragResizeWindowRND.styles.js";
4
+ import { D as DragResizeWindowRNDSlots } from "./slots.js";
5
+ import { R as Rnd } from "../../../not_recognized/index.js";
6
+ styled("div", { name: COMPONENT_KEY_COMPONENT, slot: DragResizeWindowRNDSlots.root })(
7
+ dragResizeWindowStyles?.root
8
+ );
9
+ styled("div", {
10
+ name: COMPONENT_KEY_COMPONENT,
11
+ slot: DragResizeWindowRNDSlots.iconResizeFormatterRoot
12
+ })(dragResizeWindowStyles?.iconResizeFormatterRoot);
13
+ const RndStyled = styled(Rnd, {
14
+ name: COMPONENT_KEY_COMPONENT,
15
+ slot: DragResizeWindowRNDSlots.rnd
16
+ })(dragResizeWindowStyles?.rnd);
17
+ export {
18
+ RndStyled as R
19
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum DragResizeWindowRNDSlots {
2
+ root = "root",
3
+ iconResizeFormatterRoot = "iconResizeFormatterRoot",
4
+ rnd = "rnd"
5
+ }
@@ -0,0 +1,9 @@
1
+ var DragResizeWindowRNDSlots = /* @__PURE__ */ ((DragResizeWindowRNDSlots2) => {
2
+ DragResizeWindowRNDSlots2["root"] = "root";
3
+ DragResizeWindowRNDSlots2["iconResizeFormatterRoot"] = "iconResizeFormatterRoot";
4
+ DragResizeWindowRNDSlots2["rnd"] = "rnd";
5
+ return DragResizeWindowRNDSlots2;
6
+ })(DragResizeWindowRNDSlots || {});
7
+ export {
8
+ DragResizeWindowRNDSlots as D
9
+ };
@@ -0,0 +1,295 @@
1
+ import { ReactNode, ForwardedRef } from 'react';
2
+ import { DraggableData } from 'react-draggable';
3
+ import { ContainerSize } from '../../utils/types';
4
+ import { Theme } from '@mui/material/styles';
5
+ import { DragResizeWindowRNDSlots } from './slots/slots';
6
+ import { COMPONENT_KEY_COMPONENT } from './constants';
7
+ import { ResizeCallbackData, ResizeHandle } from '../extended/React-Resizable';
8
+ import { ResizeDirection } from 're-resizable';
9
+ import { M4LOverridesStyleRules } from '../../@types/augmentations';
10
+ import { Props as RndProps } from 'react-rnd';
11
+ /**
12
+ * Tipo que define la corrección de la posición
13
+ * - nCorrection: Cantidad de corrección
14
+ * - x: Coordenada x
15
+ * - y: Coordenada y
16
+ */
17
+ export type CorrectionPosition = {
18
+ nCorrection: number;
19
+ x: number;
20
+ y: number;
21
+ };
22
+ /**
23
+ * Tipo que representa la posición de la ventana (o cualquier otro elemento arrastrable/redimensionable).
24
+ * - left: Coordenada x
25
+ * - top: Coordenada y
26
+ * - width: Ancho
27
+ * - height: Alto
28
+ */
29
+ export type Position = {
30
+ x: number;
31
+ y: number;
32
+ width: number;
33
+ height: number;
34
+ };
35
+ export interface CurrentState extends Position {
36
+ /**
37
+ * "dragging" indica la posición actual cuando se está moviendo el ventana
38
+ */
39
+ dragging?: {
40
+ y: number;
41
+ x: number;
42
+ width: number;
43
+ height: number;
44
+ };
45
+ /**
46
+ * "resizing" indica el tamaño actual cuando se está redimensionando el ventana
47
+ */
48
+ resizing?: {
49
+ x: number;
50
+ y: number;
51
+ width: number;
52
+ height: number;
53
+ handle: ResizeDirection;
54
+ widthInitial: number;
55
+ heightInitial: number;
56
+ };
57
+ /**
58
+ * Posición inicial antes de comenzar el dragging o resizing
59
+ */
60
+ initialPosition?: Position;
61
+ /**
62
+ * "shrinkLeftAt" Indica en que valor estaba el left antes de compactar padre en un resize
63
+ */
64
+ shrinkLeftAt?: number;
65
+ /**
66
+ * "shrinkTopAt" Indica en que valor estaba el top antes de compactar padre en un resize
67
+ */
68
+ shrinkTopAt?: number;
69
+ /**
70
+ * "overflowWidthAt" Indica en que valor estaba el width antes de compactar padre en un resize
71
+ */
72
+ overflowWidthAt?: number;
73
+ /**
74
+ * "overflowHeightAt" Indica en que valor estaba el Height antes de compactar padre en un resize
75
+ */
76
+ overflowHeightAt?: number;
77
+ /**
78
+ * "minConstraints" Indica los límites mínimos de la ventana
79
+ */
80
+ minConstraints?: [number, number];
81
+ }
82
+ /**
83
+ * Representa una posición parcial, solo incluye las propiedades left y top.
84
+ * - left: Coordenada x
85
+ * - top: Coordenada y
86
+ */
87
+ export type PartialPosition = {
88
+ x: number;
89
+ y: number;
90
+ };
91
+ /**
92
+ * Tipo que define los límites de movimiento de la ventana arrastrable.
93
+ */
94
+ export type DraggableWindowBounds = {
95
+ left?: number;
96
+ right?: number;
97
+ top?: number;
98
+ bottom?: number;
99
+ };
100
+ /**
101
+ * Tipo de callback para el evento de redimensionamiento.
102
+ */
103
+ export type ResizeCallback = ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined;
104
+ /**
105
+ * Tipo para el componente o la función que define el handle para redimensionar la ventana.
106
+ */
107
+ export type ResizeHandleComponente = React.ReactNode | ((resizeHandle: ResizeHandle, ref: React.RefObject<any>) => React.ReactNode) | undefined;
108
+ /**
109
+ * Parámetros relacionados con el tamaño del contenedor, usado en la posición y redimensionamiento.
110
+ */
111
+ export type PositionParams = ContainerSize;
112
+ /**
113
+ * Acción que se realiza en el contenedor (igual, encogiéndose o expandiéndose).
114
+ */
115
+ export type ContainerAction = 'equals' | 'shrinking' | 'expanding';
116
+ /**
117
+ * Referencia para el componente DragResizeWindow.
118
+ */
119
+ export type DraggableWindowRefProps = {
120
+ current: HTMLDivElement | null;
121
+ };
122
+ /**
123
+ * Tipo que representa las posiciones predeterminadas (vertical y horizontal) de la ventana.
124
+ */
125
+ export interface DefaultPosition {
126
+ vertical: {
127
+ top: number;
128
+ bottom: number;
129
+ } | {
130
+ top: number;
131
+ height: number;
132
+ } | {
133
+ height: number;
134
+ } | {
135
+ bottom: number;
136
+ height: number;
137
+ } | {
138
+ percent: number;
139
+ };
140
+ horizontal: {
141
+ left: number;
142
+ right: number;
143
+ } | {
144
+ left: number;
145
+ width: number;
146
+ } | {
147
+ right: number;
148
+ width: number;
149
+ } | {
150
+ percent: number;
151
+ } | {
152
+ width: number;
153
+ };
154
+ }
155
+ export interface DragResizeWindowRefHandler {
156
+ ensureVisible: () => void;
157
+ current: HTMLElement | null;
158
+ }
159
+ /**
160
+ * Propiedades del componente DragResizeWindow, que incluye tanto los controles de arrastre como de redimensionamiento.
161
+ */
162
+ export interface DragResizeWindowPropsRND extends Partial<Omit<RndProps, 'handle' | 'cancel'>> {
163
+ children: ReactNode;
164
+ /**
165
+ * "className" permite identificar si es placeHolder y estilar
166
+ */
167
+ className?: string;
168
+ /**
169
+ * Inline-style object to pass to the root element.
170
+ */
171
+ style?: React.CSSProperties | undefined;
172
+ /**
173
+ * zIndex: Permite modificar en los ventanas freeMove (popups) el zIndex
174
+ */
175
+ zIndex?: number;
176
+ /**
177
+ * defaultPosition permite definir la posición inicial de la ventana
178
+ * TODO: Debe también recibir anchorEl y anchorPosition y calcular la posición en base a este
179
+ */
180
+ defaultPosition?: DefaultPosition;
181
+ /**
182
+ * "bounds" permite definir los limites de movimiento de la ventana
183
+ */
184
+ bounds?: DraggableWindowBounds;
185
+ /**
186
+ *
187
+ * we should set scale coefficient to avoid render artifacts while dragging.
188
+ */
189
+ transformScale?: number | undefined;
190
+ /**
191
+ * "containerElement" contenedor padre
192
+ */
193
+ containerElement?: HTMLElement;
194
+ /**
195
+ * "containerSize" tamaño del contenedor padre
196
+ */
197
+ containerSize?: ContainerSize | undefined;
198
+ /**
199
+ * "draggable" permite definir si la ventana es "draggable" o no. Por defecto es "true
200
+ */
201
+ draggable?: boolean;
202
+ /**
203
+ * "handle" permite definir el elemento que se debe usar para arrastrar la ventana
204
+ * Ejemplo: ".handle_title", default `.${draggableWindowClasses.draggableHandle}`
205
+ */
206
+ draggableHandle?: string;
207
+ /**
208
+ * "cancel" permite definir el elemento que no se debe usar para arrastrar la ventana
209
+ * Ejemplo: ".title_buttons"
210
+ */
211
+ draggableCancel?: string;
212
+ /**
213
+ * "resizable" permite definir si la ventana es "resizable" o no. Por defecto es "true
214
+ */
215
+ resizable?: boolean;
216
+ /**
217
+ * "hidden" permite definir si la ventana está oculta o no. Por defecto es "false"
218
+ */
219
+ hidden?: boolean;
220
+ /**
221
+ * "allowResizeContainer" permite definir si se puede redimensionar el contenedor padre
222
+ */
223
+ allowHeightResizeContainer?: boolean;
224
+ /**
225
+ * "allowWidthResizeContainer" permite definir si se puede redimensionar el contenedor padre
226
+ */
227
+ allowWidthResizeContainer?: boolean;
228
+ /**
229
+ * "windowRef" permite definir una referencia a la ventana
230
+ */
231
+ windowRef?: ForwardedRef<HTMLDivElement | undefined>;
232
+ }
233
+ /**
234
+ * Referencia del estado del componente DragResizeWindow.
235
+ */
236
+ export interface StateRef extends Pick<DragResizeWindowPropsRND, 'bounds'>, CurrentState {
237
+ data?: DraggableData;
238
+ /**
239
+ * containerSize: Tamaño del contenedor padre la ultima vez que se actualizó
240
+ */
241
+ containerSize?: ContainerSize | undefined;
242
+ /**
243
+ * isAbove: Indica si el cursor esta por encima del contenedor padre and se esta arrastrando hacia arriba
244
+ */
245
+ isAbove?: boolean;
246
+ /**
247
+ * lastScrollTop: Valor del scroll del contenedor padre la ultima vez que se actualizó
248
+ */
249
+ lastScrollTop?: number;
250
+ /**
251
+ * lastScrollLeft: Valor del scroll del contenedor padre la ultima vez que se actualizó
252
+ */
253
+ lastScrollLeft?: number;
254
+ /**
255
+ * resizeByScroll: Indica si el resize se esta haciendo por scroll o el eventHandler del resize
256
+ */
257
+ resizeByScroll?: boolean;
258
+ }
259
+ /**
260
+ * Tipos para los slots del componente DragResizeWindow.
261
+ */
262
+ export type DragResizeWindowRNDSlotsType = keyof typeof DragResizeWindowRNDSlots;
263
+ /**
264
+ * Propiedades del estado propietario del componente DragResizeWindow.
265
+ */
266
+ export type DragResizeWindowOwnerState = {
267
+ /**
268
+ * "dragging" indica la posición actual cuando se está moviendo el ventana
269
+ */
270
+ dragging?: boolean;
271
+ /**
272
+ * "resizing" indica el tamaño actual cuando se está redimensionando el ventana
273
+ */
274
+ resizing?: boolean;
275
+ /**
276
+ * "draggingActive" indica si la ventana está activa
277
+ */
278
+ draggingActive?: boolean;
279
+ /**
280
+ * "hidden" permite definir si la ventana está oculta o no. Por defecto es "false
281
+ */
282
+ hidden?: boolean;
283
+ /**
284
+ * "x" indica la posición x de la ventana
285
+ */
286
+ x?: number;
287
+ /**
288
+ * "y" indica la posición y de la ventana
289
+ */
290
+ y?: number;
291
+ };
292
+ /**
293
+ * Tipo de reglas de estilo para el componente DragResizeWindow.
294
+ */
295
+ export type DragResizeWindowRNDStyles = M4LOverridesStyleRules<DragResizeWindowRNDSlotsType, typeof COMPONENT_KEY_COMPONENT, Theme>;
@@ -0,0 +1,15 @@
1
+ import { CurrentState } from './types';
2
+ /**
3
+ * Generates a style object with transform properties to position an element.
4
+ *
5
+ * This function returns a style object that positions an element absolutely at the
6
+ * specified `top` and `left` coordinates, and sets its `width` and `height`.
7
+ * It uses the `translate` transform to apply the positioning for smooth rendering
8
+ * across browsers.
9
+ * @param {Position} position - An object containing `top`, `left`, `width`, and `height` properties.
10
+ * @returns {Record<string, any>} A style object with applied transform, dimension, and positioning properties.
11
+ */
12
+ /**
13
+ * setTransform
14
+ */
15
+ export declare function setTransform({ y: top, x: left, width, height, dragging }: CurrentState): Record<string, any>;