@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.
- package/.storybook/decorators/WithPopupsProvider/WithPopupsProvider.d.ts +6 -1
- package/.storybook/decorators/WithWindowsContainerSizer/WithWindowsContainerSizer.d.ts +5 -0
- package/@types/types.d.ts +11 -0
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +3 -3
- package/components/AppBar/slots/AppBarSlots.d.ts +2 -2
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/Color/slots/ColorSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DragResizeWindow/DragResizeWindow.d.ts +2 -2
- package/components/DragResizeWindow/DragResizeWindow.js +69 -11
- package/components/DragResizeWindow/DragResizeWindow.styles.js +0 -2
- package/components/DragResizeWindow/classes/index.js +1 -0
- package/components/DragResizeWindow/classes/types.d.ts +1 -0
- package/components/DragResizeWindow/helpers/draggingOrResizingWindow.d.ts +7 -0
- package/components/DragResizeWindow/helpers/draggingOrResizingWindow.js +1 -0
- package/components/DragResizeWindow/helpers/expandingParentContainer.d.ts +12 -0
- package/components/DragResizeWindow/helpers/expandingParentContainer.js +31 -0
- package/components/DragResizeWindow/helpers/getInitialSize.d.ts +15 -0
- package/components/DragResizeWindow/helpers/getInitialSize.js +56 -0
- package/components/DragResizeWindow/helpers/index.d.ts +6 -15
- package/components/DragResizeWindow/helpers/index.js +1 -37
- package/components/DragResizeWindow/helpers/isElmentInViewport.d.ts +15 -0
- package/components/DragResizeWindow/helpers/isElmentInViewport.js +1 -0
- package/components/DragResizeWindow/helpers/pointPosition.d.ts +36 -0
- package/components/DragResizeWindow/helpers/pointPosition.js +82 -0
- package/components/DragResizeWindow/helpers/shrinkingParentContainer.d.ts +6 -0
- package/components/DragResizeWindow/helpers/shrinkingParentContainer.js +34 -0
- package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +2 -0
- package/components/DragResizeWindow/hooks/useDimensionEffects.js +20 -223
- package/components/DragResizeWindow/hooks/useDragOptions.d.ts +8 -1
- package/components/DragResizeWindow/hooks/useDragOptions.js +79 -6
- package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +11 -0
- package/components/DragResizeWindow/hooks/useResizeOptions.js +164 -19
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +2 -2
- package/components/DragResizeWindow/types.d.ts +53 -4
- package/components/DragResizeWindow/utils.d.ts +5 -2
- package/components/DragResizeWindow/utils.js +32 -13
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +19 -0
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +224 -0
- package/components/DragResizeWindowRND/DragResizeWindowRND.styles.d.ts +5 -0
- package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +75 -0
- package/components/DragResizeWindowRND/classes/index.d.ts +2 -0
- package/components/DragResizeWindowRND/classes/index.js +18 -0
- package/components/DragResizeWindowRND/classes/types.d.ts +9 -0
- package/components/DragResizeWindowRND/constants.d.ts +3 -0
- package/components/DragResizeWindowRND/constants.js +6 -0
- package/components/DragResizeWindowRND/helpers/expandingParentContainer.d.ts +12 -0
- package/components/DragResizeWindowRND/helpers/expandingParentContainer.js +31 -0
- package/components/DragResizeWindowRND/helpers/getInitialSize.d.ts +15 -0
- package/components/DragResizeWindowRND/helpers/getInitialSize.js +56 -0
- package/components/DragResizeWindowRND/helpers/index.d.ts +5 -0
- package/components/DragResizeWindowRND/helpers/index.js +1 -0
- package/components/DragResizeWindowRND/helpers/isElmentInViewport.d.ts +15 -0
- package/components/DragResizeWindowRND/helpers/isElmentInViewport.js +1 -0
- package/components/DragResizeWindowRND/helpers/pointPosition.d.ts +36 -0
- package/components/DragResizeWindowRND/helpers/pointPosition.js +1 -0
- package/components/DragResizeWindowRND/helpers/shrinkingParentContainer.d.ts +6 -0
- package/components/DragResizeWindowRND/helpers/shrinkingParentContainer.js +34 -0
- package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.d.ts +23 -0
- package/components/DragResizeWindowRND/hooks/useRNDDimensionEffects.js +90 -0
- package/components/DragResizeWindowRND/hooks/useRNDDragOptions.d.ts +28 -0
- package/components/DragResizeWindowRND/hooks/useRNDDragOptions.js +220 -0
- package/components/DragResizeWindowRND/hooks/useRNDReResizeOptions.d.ts +45 -0
- package/components/DragResizeWindowRND/hooks/useRNDReResizeOptions.js +173 -0
- package/components/DragResizeWindowRND/icons.d.ts +3 -0
- package/components/DragResizeWindowRND/index.d.ts +2 -0
- package/components/DragResizeWindowRND/index.js +1 -0
- package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +12 -0
- package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.js +19 -0
- package/components/DragResizeWindowRND/slots/slots.d.ts +5 -0
- package/components/DragResizeWindowRND/slots/slots.js +9 -0
- package/components/DragResizeWindowRND/types.d.ts +295 -0
- package/components/DragResizeWindowRND/utils.d.ts +15 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/GridLayout/GridLayout.d.ts +2 -1
- package/components/GridLayout/GridLayout.js +10 -5
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +4 -3
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +4 -0
- package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +3 -1
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +11 -15
- package/components/GridLayout/types.d.ts +4 -0
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +24 -11
- package/components/MFIsolationApp/types.d.ts +8 -1
- package/components/MFLoader/styles.js +17 -2
- package/components/MFLoader/types.d.ts +19 -2
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/ModalDialog/ModalDialog.js +2 -2
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/ToastContainer/slots/toastContainerSlots.js +1 -1
- package/components/WindowBase/WindowBase.js +3 -5
- package/components/WindowBase/WindowBase.styles.js +26 -17
- package/components/{areas/contexts/DynamicMFParmsContext/index.js → WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js} +2 -2
- package/components/WindowBase/contexts/DynamicMFParmsContext/index.d.ts +4 -0
- package/components/WindowBase/contexts/DynamicMFParmsContext/index.js +1 -0
- package/components/{areas → WindowBase}/contexts/DynamicMFParmsContext/store.d.ts +0 -1
- package/components/{areas/contexts/WindowToolsMFContext/index.js → WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js} +4 -3
- package/components/WindowBase/contexts/WindowToolsMFContext/index.d.ts +2 -0
- package/components/WindowBase/contexts/WindowToolsMFContext/index.js +1 -0
- package/components/{areas → WindowBase}/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/WindowBase/contexts/index.d.ts +2 -0
- package/components/WindowBase/helpers.d.ts +22 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/helper.js → WindowBase/helpers.js} +17 -13
- package/components/{areas → WindowBase}/hooks/useDynamicMFParameters/index.js +9 -1
- package/components/{areas → WindowBase}/hooks/useWindowToolsMF/index.js +1 -1
- package/components/WindowBase/index.d.ts +5 -0
- package/components/WindowBase/slots/WindowBaseEnum.d.ts +2 -1
- package/components/WindowBase/slots/WindowBaseEnum.js +1 -0
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +45 -14
- package/components/WindowBase/slots/WindowBaseSlots.js +10 -5
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window → WindowBase}/subcomponents/Component/index.d.ts +1 -1
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window → WindowBase}/subcomponents/Component/index.js +6 -6
- package/components/WindowBase/subcomponents/Component/types.d.ts +9 -0
- package/components/WindowBase/subcomponents/EditionInfo/EditionInfo.js +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +52 -24
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -38
- package/components/WindowBase/subcomponents/MicroFrontend/MicroFrontend.d.ts +8 -0
- package/components/WindowBase/subcomponents/MicroFrontend/MicroFrontend.js +10 -0
- package/components/WindowBase/subcomponents/MicroFrontend/types.d.ts +8 -0
- package/components/WindowBase/types.d.ts +52 -18
- package/components/WindowConfirm/WindowConfirm.js +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +2 -2
- package/components/areas/components/AreasViewer/AreasViewer.d.ts +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +7 -9
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +12 -11
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +2 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +3 -3
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +6 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +44 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +7 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +9 -9
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +12 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.js +58 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +88 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/{useWindow/useWindow.d.ts → useWindow.d.ts} +7 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/{useWindow/useWindow.js → useWindow.js} +13 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +7 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.d.ts +5 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +25 -25
- package/components/areas/components/AreasViewer/types.d.ts +3 -1
- package/components/areas/components/index.d.ts +1 -1
- package/components/areas/constants.d.ts +1 -0
- package/components/areas/constants.js +3 -1
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +2 -2
- package/components/areas/contexts/AreasContext/helpers/getWindowForAreaTest.d.ts +2 -2
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +4 -4
- package/components/areas/contexts/AreasContext/helpers/helper.js +6 -8
- package/components/areas/contexts/AreasContext/helpers/selectLayout.d.ts +6 -0
- package/components/areas/contexts/AreasContext/helpers/selectLayout.js +27 -0
- package/components/areas/contexts/AreasContext/index.d.ts +4 -4
- package/components/areas/contexts/AreasContext/index.js +24 -4
- package/components/areas/contexts/AreasContext/store.d.ts +4 -4
- package/components/areas/contexts/AreasContext/store.js +128 -86
- package/components/areas/contexts/AreasContext/types.d.ts +142 -31
- package/components/areas/contexts/index.d.ts +0 -6
- package/components/areas/hooks/index.d.ts +0 -2
- package/components/areas/hooks/useAreas/index.d.ts +5 -5
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.js +2 -2
- package/components/areas/types.d.ts +109 -100
- package/components/extended/React-Resizable/Resizable/Resizable.js +2 -1
- package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/extended/React-Resizable/helpers.d.ts +6 -1
- package/components/extended/React-Resizable/helpers.js +11 -2
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +4 -4
- package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +1 -1
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
- package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/types.d.ts +1 -1
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +2 -2
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +8 -2
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js +6 -24
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +9 -3
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +278 -211
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/tests/PopupContext.test.d.ts +1 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/tests/PopusContext.store.test.d.ts +1 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/tests/__mocks__/storeMock.d.ts +29 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +183 -79
- package/components/popups/components/PopupsProvider/hooks/{useHeaderActionsPopups/useHeaderActionsPopups.d.ts → useHeaderActionsPopups.d.ts} +2 -8
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups.js +60 -0
- package/components/popups/components/PopupsProvider/hooks/usePopups.d.ts +43 -0
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +138 -0
- package/components/popups/components/PopupsProvider/hooks/usePopupsStore.d.ts +5 -0
- package/components/popups/components/PopupsProvider/hooks/{usePopupsStore/index.js → usePopupsStore.js} +1 -1
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +13 -4
- package/components/popups/components/PopupsViewer/PopupsViewer.js +27 -6
- package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +3 -11
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +7 -10
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.js +3 -8
- package/components/popups/components/PopupsViewer/slots/slots.d.ts +1 -2
- package/components/popups/components/PopupsViewer/slots/slots.js +0 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.d.ts +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +69 -53
- package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +16 -0
- package/components/popups/components/PopupsViewer/tests/PopupsViewer.integration.test.d.ts +1 -0
- package/components/popups/components/PopupsViewer/types.d.ts +13 -5
- package/contexts/AppearanceComponentContext/AppearanceComponentContext.d.ts +8 -0
- package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +4 -3
- package/contexts/AppearanceComponentContext/AppearanceComponentStore.d.ts +8 -1
- package/contexts/AppearanceComponentContext/AppearanceComponentStore.js +10 -3
- package/contexts/index.d.ts +1 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +4 -4
- package/hooks/useDynamicFilterAndSort/types.d.ts +1 -1
- package/hooks/useSizeContainer/index.js +2 -2
- package/index.js +91 -85
- package/not_recognized/index.js +1280 -0
- package/package.json +2 -1
- package/storybook/components/Areas/AreasViewer/{AreasViewr.stories.d.ts → AreasViewer.stories.d.ts} +2 -2
- package/storybook/components/Areas/AreasViewer/hooks/useWindowsActions.d.ts +4 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/AreasViewerRender.d.ts +4 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/Launcher.d.ts +5 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupButton.d.ts +21 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupContentExample.d.ts +4 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/layouts/ClientsLayout.d.ts +4 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/layouts/UsersLayout.d.ts +4 -0
- package/storybook/components/DragResizeWindowRND/stories/DragResizeWindowRND.stories.d.ts +8 -0
- package/storybook/components/DragResizeWindowRND/stories/constants.d.ts +3 -0
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/ContentExample.d.ts +4 -0
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/RNDWindowsContainer.d.ts +5 -0
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/index.d.ts +1 -0
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/types.d.ts +4 -0
- package/storybook/components/{Areas/AreasViewer → DragResizeWindowRND/stories}/subcomponents/WithExtendedContainer.d.ts +1 -1
- package/storybook/components/DragResizeWindowRND/stories/types.d.ts +3 -0
- package/storybook/components/PopupsViewer/basic.stories.d.ts +12 -2
- package/storybook/components/PopupsViewer/subcomponents/PopupActions.d.ts +3 -1
- package/storybook/components/PopupsViewer/subcomponents/PopupContentExample.d.ts +2 -1
- package/storybook/components/PopupsViewer/subcomponents/initialPopups.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/helper.d.ts +0 -22
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.d.ts +0 -28
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.js +0 -155
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/types.d.ts +0 -10
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/MicroFrontend.d.ts +0 -8
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/MicroFrontend.js +0 -10
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/types.d.ts +0 -8
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups/helper.d.ts +0 -28
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups/helper.js +0 -44
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups/useHeaderActionsPopups.js +0 -157
- package/components/popups/components/PopupsProvider/hooks/usePopops/usePopups.d.ts +0 -28
- package/components/popups/components/PopupsProvider/hooks/usePopops/usePopups.js +0 -117
- package/components/popups/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +0 -6
- package/storybook/components/Areas/AreasViewer/subcomponents/ClientsHeaderActions.d.ts +0 -4
- package/storybook/components/Areas/AreasViewer/subcomponents/UsersHeaderActions.d.ts +0 -4
- /package/components/{popups/components/PopupsProvider/tests/PopupsProvider.test.d.ts → DragResizeWindowRND/tests/DragResizeWindow.test.d.ts} +0 -0
- /package/components/{areas/contexts/DynamicMFParmsContext/index.d.ts → WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.d.ts} +0 -0
- /package/components/{areas → WindowBase}/contexts/DynamicMFParmsContext/store.js +0 -0
- /package/components/{areas → WindowBase}/contexts/DynamicMFParmsContext/types.d.ts +0 -0
- /package/components/{areas/contexts/WindowToolsMFContext/index.d.ts → WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.d.ts} +0 -0
- /package/components/{areas → WindowBase}/hooks/useDynamicMFParameters/index.d.ts +0 -0
- /package/components/{areas → WindowBase}/hooks/useWindowToolsMF/index.d.ts +0 -0
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { u as usePopupsStore } from "../usePopupsStore/index.js";
|
|
4
|
-
import { shallow } from "zustand/shallow";
|
|
5
|
-
import { useIsMobile } from "@m4l/graphics";
|
|
6
|
-
import { I as ICONS } from "../../../../../areas/icons.js";
|
|
7
|
-
import { g as getMainActions } from "../../../../../areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/helper.js";
|
|
8
|
-
import { g as getMenuActionsForPopups } from "./helper.js";
|
|
9
|
-
import { g as getAreasDictionary, A as AREAS_DICCTIONARY } from "../../../../../areas/dictionary.js";
|
|
10
|
-
const useHeaderActionsPopups = ({
|
|
11
|
-
popupId,
|
|
12
|
-
menuActions = []
|
|
13
|
-
}) => {
|
|
14
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
15
|
-
const { getLabel } = useModuleDictionary();
|
|
16
|
-
const isDesktop = !useIsMobile();
|
|
17
|
-
const urlPrefix = `${host_static_assets}/${environment_assets}`;
|
|
18
|
-
const moduleActions = usePopupsStore(
|
|
19
|
-
(state) => state.hashPopups[popupId]?.moduleActions || [],
|
|
20
|
-
shallow
|
|
21
|
-
);
|
|
22
|
-
const mainActions = useMemo(() => {
|
|
23
|
-
return getMainActions(isDesktop, moduleActions).map((action) => ({
|
|
24
|
-
...action,
|
|
25
|
-
place: "left",
|
|
26
|
-
iconUrl: action.iconUrl || "",
|
|
27
|
-
label: action.label || ""
|
|
28
|
-
}));
|
|
29
|
-
}, [isDesktop, moduleActions]);
|
|
30
|
-
const windowOptions = usePopupsStore(
|
|
31
|
-
(state) => state.hashPopups[popupId]?.windowOptions,
|
|
32
|
-
shallow
|
|
33
|
-
);
|
|
34
|
-
const menuActionsInside = useMemo(() => {
|
|
35
|
-
return getMenuActionsForPopups({
|
|
36
|
-
popupId,
|
|
37
|
-
isDesktop,
|
|
38
|
-
moduleActions,
|
|
39
|
-
urlPrefix,
|
|
40
|
-
saveModuleCookies: () => {
|
|
41
|
-
throw new Error("Not implemented");
|
|
42
|
-
},
|
|
43
|
-
resetModuleCookies: () => {
|
|
44
|
-
throw new Error("Not implemented");
|
|
45
|
-
},
|
|
46
|
-
windowOptions: {
|
|
47
|
-
allowPersistCookies: false
|
|
48
|
-
},
|
|
49
|
-
getLabel
|
|
50
|
-
}).map((action) => ({
|
|
51
|
-
...action,
|
|
52
|
-
place: "inside",
|
|
53
|
-
iconUrl: action.iconUrl || "",
|
|
54
|
-
label: action.label || ""
|
|
55
|
-
}));
|
|
56
|
-
}, [
|
|
57
|
-
popupId,
|
|
58
|
-
isDesktop,
|
|
59
|
-
moduleActions,
|
|
60
|
-
urlPrefix,
|
|
61
|
-
windowOptions,
|
|
62
|
-
getLabel
|
|
63
|
-
]);
|
|
64
|
-
const predefActions = useMemo(() => {
|
|
65
|
-
const groups = {
|
|
66
|
-
left: [],
|
|
67
|
-
inside: [],
|
|
68
|
-
right: []
|
|
69
|
-
};
|
|
70
|
-
menuActions.forEach((action) => {
|
|
71
|
-
if (action.place === "left") {
|
|
72
|
-
groups.left.push(action);
|
|
73
|
-
} else if (action.place === "inside") {
|
|
74
|
-
groups.inside.push(action);
|
|
75
|
-
} else if (action.place === "right") {
|
|
76
|
-
groups.right.push(action);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
return groups;
|
|
80
|
-
}, [menuActions]);
|
|
81
|
-
const collapsed = usePopupsStore(
|
|
82
|
-
(state) => state.hashPopups[popupId]?.collapsed || false,
|
|
83
|
-
shallow
|
|
84
|
-
);
|
|
85
|
-
const maximized = usePopupsStore(
|
|
86
|
-
(state) => state.hashPopups[popupId]?.maximized || false,
|
|
87
|
-
shallow
|
|
88
|
-
);
|
|
89
|
-
const { colapseLayoutItem: collapsePopup, unColapseLayoutItem: uncollapsePopup } = usePopupsStore(
|
|
90
|
-
(state) => state.popupsActions,
|
|
91
|
-
shallow
|
|
92
|
-
);
|
|
93
|
-
const headerRightActions = useMemo(() => {
|
|
94
|
-
const actions = [];
|
|
95
|
-
actions.push({
|
|
96
|
-
place: "right",
|
|
97
|
-
key: "maximize",
|
|
98
|
-
iconUrl: maximized ? `${host_static_assets}/${environment_assets}/frontend/components/popups/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/popups/assets/icons/${ICONS.MAXIMIZE}`,
|
|
99
|
-
label: maximized ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_minimize_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_maximize_window))
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
// onClick: () => {
|
|
104
|
-
// if (maximized) {
|
|
105
|
-
// normalizePopup(windowId);
|
|
106
|
-
// } else {
|
|
107
|
-
// maximizePopup(windowId);
|
|
108
|
-
// }
|
|
109
|
-
// },
|
|
110
|
-
// disabled: false,
|
|
111
|
-
});
|
|
112
|
-
if (!maximized) {
|
|
113
|
-
actions.push({
|
|
114
|
-
place: "right",
|
|
115
|
-
key: "collapseToggle",
|
|
116
|
-
iconUrl: !collapsed ? `${host_static_assets}/${environment_assets}/frontend/components/popups/assets/icons/${ICONS.COLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/popups/assets/icons/${ICONS.UNCOLPASE}`,
|
|
117
|
-
label: !collapsed ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_collapse_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_uncollapse_window)),
|
|
118
|
-
/**
|
|
119
|
-
* Función que se ejecuta al hacer clic en la acción.
|
|
120
|
-
*/
|
|
121
|
-
onClick: () => {
|
|
122
|
-
if (collapsed) {
|
|
123
|
-
uncollapsePopup(popupId);
|
|
124
|
-
} else {
|
|
125
|
-
collapsePopup(popupId);
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
disabled: false
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
return actions;
|
|
132
|
-
}, [
|
|
133
|
-
collapsed,
|
|
134
|
-
maximized,
|
|
135
|
-
host_static_assets,
|
|
136
|
-
environment_assets,
|
|
137
|
-
getLabel,
|
|
138
|
-
popupId,
|
|
139
|
-
collapsePopup,
|
|
140
|
-
uncollapsePopup
|
|
141
|
-
//normalizePopup,
|
|
142
|
-
//maximizePopup,
|
|
143
|
-
]);
|
|
144
|
-
console.log(headerRightActions);
|
|
145
|
-
const combinedInsideActions = useMemo(() => {
|
|
146
|
-
return [...menuActionsInside, ...predefActions.inside];
|
|
147
|
-
}, [menuActionsInside, predefActions.inside]);
|
|
148
|
-
return {
|
|
149
|
-
leftActions: [...mainActions, ...predefActions.left],
|
|
150
|
-
menuActions: combinedInsideActions,
|
|
151
|
-
rightActions: []
|
|
152
|
-
// rightActions: [...predefActions.right, ...headerRightActions],
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
export {
|
|
156
|
-
useHeaderActionsPopups as u
|
|
157
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { WindowToolsMF } from '../../../../../areas';
|
|
2
|
-
import { WindowBaseAction } from '../../../../../WindowBase/types';
|
|
3
|
-
interface UsePopupsReturn {
|
|
4
|
-
moduleId: string;
|
|
5
|
-
winType: any;
|
|
6
|
-
title: string | undefined;
|
|
7
|
-
iconUrl?: string;
|
|
8
|
-
loading?: boolean;
|
|
9
|
-
mfProps: any;
|
|
10
|
-
component: any;
|
|
11
|
-
status: string;
|
|
12
|
-
dynamicMFStore: any;
|
|
13
|
-
windowTools: WindowToolsMF;
|
|
14
|
-
memoizedActions: WindowBaseAction[];
|
|
15
|
-
version?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Hook usePopups
|
|
19
|
-
*
|
|
20
|
-
* Este hook encapsula la lógica relacionada con el estado y las funciones necesarias
|
|
21
|
-
* para el componente Popup. Retorna un objeto con el estado, las acciones y las herramientas
|
|
22
|
-
* de la ventana popup.
|
|
23
|
-
* @param {string} areaId - Identificador del área.
|
|
24
|
-
* @param {string} popupId - Identificador del popup.
|
|
25
|
-
* @returns {Object} Objeto con estado, acciones y herramientas del popup.
|
|
26
|
-
*/
|
|
27
|
-
export declare const usePopups: (popupId: string) => UsePopupsReturn;
|
|
28
|
-
export {};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { shallow } from "zustand/shallow";
|
|
3
|
-
import { u as usePopupsStore } from "../usePopupsStore/index.js";
|
|
4
|
-
import { u as useHeaderActionsPopups } from "../useHeaderActionsPopups/useHeaderActionsPopups.js";
|
|
5
|
-
import { c as createToaster } from "../../../../../ToastContainer/helpers/toaster.js";
|
|
6
|
-
const usePopups = (popupId) => {
|
|
7
|
-
const [
|
|
8
|
-
winType,
|
|
9
|
-
title,
|
|
10
|
-
iconUrl,
|
|
11
|
-
status,
|
|
12
|
-
dynamicMFStore,
|
|
13
|
-
loading,
|
|
14
|
-
version
|
|
15
|
-
] = usePopupsStore(
|
|
16
|
-
(state) => {
|
|
17
|
-
const popupData = state.hashPopups[popupId];
|
|
18
|
-
return [
|
|
19
|
-
popupData?.winType,
|
|
20
|
-
popupData?.title,
|
|
21
|
-
popupData?.iconUrl,
|
|
22
|
-
popupData?.status,
|
|
23
|
-
popupData?.dynamicMFStore,
|
|
24
|
-
popupData?.loading || false,
|
|
25
|
-
popupData?.version
|
|
26
|
-
];
|
|
27
|
-
},
|
|
28
|
-
shallow
|
|
29
|
-
);
|
|
30
|
-
const mfProps = usePopupsStore(
|
|
31
|
-
(state) => state.hashPopups[popupId]?.mfProps,
|
|
32
|
-
shallow
|
|
33
|
-
);
|
|
34
|
-
const component = usePopupsStore(
|
|
35
|
-
(state) => state.hashPopups[popupId].component,
|
|
36
|
-
shallow
|
|
37
|
-
);
|
|
38
|
-
const {
|
|
39
|
-
setActions,
|
|
40
|
-
closePopup,
|
|
41
|
-
startProgress,
|
|
42
|
-
stopProgress,
|
|
43
|
-
setFnQueryClose,
|
|
44
|
-
setPopupTitle
|
|
45
|
-
} = usePopupsStore((state) => state.popupsActions, shallow);
|
|
46
|
-
const windowTools = useMemo(
|
|
47
|
-
() => ({
|
|
48
|
-
getWindowId: () => popupId,
|
|
49
|
-
setActions: (newActions) => {
|
|
50
|
-
setActions(popupId, newActions, version);
|
|
51
|
-
},
|
|
52
|
-
getCookie: () => {
|
|
53
|
-
throw new Error("getCookie not implemented");
|
|
54
|
-
},
|
|
55
|
-
getCookies: () => {
|
|
56
|
-
throw new Error("getCookies not implemented");
|
|
57
|
-
},
|
|
58
|
-
setCookie: (key, value) => {
|
|
59
|
-
throw new Error(`setCookie not implemented: ${key}, ${value}`);
|
|
60
|
-
},
|
|
61
|
-
close: () => closePopup(popupId),
|
|
62
|
-
startProgress: () => startProgress(popupId),
|
|
63
|
-
stopProgress: () => stopProgress(popupId),
|
|
64
|
-
setFnQueryClose: (fnQueryClose) => setFnQueryClose(popupId, fnQueryClose),
|
|
65
|
-
toast: createToaster(popupId),
|
|
66
|
-
setWindowTitle: (newTitle) => setPopupTitle(popupId, newTitle),
|
|
67
|
-
setEditionInfo: (editionInfo) => {
|
|
68
|
-
throw new Error(`setEditionInfo not implemented: ${editionInfo}`);
|
|
69
|
-
},
|
|
70
|
-
hide: () => {
|
|
71
|
-
throw new Error("hide not implemented");
|
|
72
|
-
},
|
|
73
|
-
show: () => {
|
|
74
|
-
throw new Error("show not implemented");
|
|
75
|
-
}
|
|
76
|
-
}),
|
|
77
|
-
[
|
|
78
|
-
popupId,
|
|
79
|
-
version,
|
|
80
|
-
setActions,
|
|
81
|
-
//getCookie,
|
|
82
|
-
//getCookies,
|
|
83
|
-
//setCookie,
|
|
84
|
-
closePopup,
|
|
85
|
-
startProgress,
|
|
86
|
-
stopProgress,
|
|
87
|
-
setFnQueryClose,
|
|
88
|
-
setPopupTitle
|
|
89
|
-
]
|
|
90
|
-
);
|
|
91
|
-
const { leftActions, menuActions, rightActions } = useHeaderActionsPopups({
|
|
92
|
-
popupId,
|
|
93
|
-
menuActions: []
|
|
94
|
-
});
|
|
95
|
-
const memoizedActions = useMemo(() => {
|
|
96
|
-
return [...leftActions, ...menuActions, ...rightActions];
|
|
97
|
-
}, [leftActions, menuActions, rightActions]);
|
|
98
|
-
return {
|
|
99
|
-
moduleId: popupId,
|
|
100
|
-
winType,
|
|
101
|
-
title,
|
|
102
|
-
iconUrl,
|
|
103
|
-
//selected,
|
|
104
|
-
mfProps,
|
|
105
|
-
component,
|
|
106
|
-
loading,
|
|
107
|
-
status,
|
|
108
|
-
version,
|
|
109
|
-
dynamicMFStore,
|
|
110
|
-
windowTools,
|
|
111
|
-
//onTouch,
|
|
112
|
-
memoizedActions
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
usePopups as u
|
|
117
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PopupsStateWithActions } from '../../contexts/PopupsContext/types';
|
|
2
|
-
/**
|
|
3
|
-
* TODO: Documentar
|
|
4
|
-
*/
|
|
5
|
-
export declare function usePopupsStore<T>(selector: (state: PopupsStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
|
|
6
|
-
export default usePopupsStore;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|