@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
|
@@ -10,9 +10,9 @@ const windowBaseStyles = {
|
|
|
10
10
|
flexDirection: "column",
|
|
11
11
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
12
12
|
overflow: "hidden",
|
|
13
|
-
...ownerState?.
|
|
13
|
+
...ownerState?.variant === "outlined" && {
|
|
14
14
|
border: theme.vars.size.borderStroke.container,
|
|
15
|
-
...ownerState?.
|
|
15
|
+
...ownerState?.selected ? {
|
|
16
16
|
borderColor: theme.vars.palette.border.main
|
|
17
17
|
} : {
|
|
18
18
|
borderColor: theme.vars.palette.border.default
|
|
@@ -43,24 +43,24 @@ const windowBaseStyles = {
|
|
|
43
43
|
alignSelf: "stretch",
|
|
44
44
|
cursor: "all-scroll",
|
|
45
45
|
...theme.generalSettings.isMobile ? {
|
|
46
|
-
...ownerState.
|
|
46
|
+
...ownerState.size === "small" && {
|
|
47
47
|
height: theme.vars.size.mobile.small.container
|
|
48
48
|
},
|
|
49
|
-
...ownerState.
|
|
49
|
+
...ownerState.size === "medium" && {
|
|
50
50
|
height: theme.vars.size.mobile.medium.container
|
|
51
51
|
}
|
|
52
52
|
} : {
|
|
53
|
-
...ownerState.
|
|
53
|
+
...ownerState.size === "small" && {
|
|
54
54
|
height: theme.vars.size.desktop.small.container
|
|
55
55
|
},
|
|
56
|
-
...ownerState.
|
|
56
|
+
...ownerState.size === "medium" && {
|
|
57
57
|
height: theme.vars.size.desktop.medium.container
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
...ownerState?.
|
|
61
|
-
background: theme.vars.palette[
|
|
60
|
+
...ownerState?.selected ? {
|
|
61
|
+
background: theme.vars.palette["default"].selectedOpacity
|
|
62
62
|
} : {
|
|
63
|
-
background: theme.vars.palette[
|
|
63
|
+
background: theme.vars.palette["default"].opacity
|
|
64
64
|
}
|
|
65
65
|
}),
|
|
66
66
|
/**
|
|
@@ -107,17 +107,17 @@ const windowBaseStyles = {
|
|
|
107
107
|
alignItems: "center",
|
|
108
108
|
color: theme.vars.palette.text.primary,
|
|
109
109
|
...theme.generalSettings.isMobile ? {
|
|
110
|
-
...ownerState.
|
|
110
|
+
...ownerState.size === "small" && {
|
|
111
111
|
height: theme.vars.size.mobile.small.base
|
|
112
112
|
},
|
|
113
|
-
...ownerState.
|
|
113
|
+
...ownerState.size === "medium" && {
|
|
114
114
|
height: theme.vars.size.mobile.medium.base
|
|
115
115
|
}
|
|
116
116
|
} : {
|
|
117
|
-
...ownerState.
|
|
117
|
+
...ownerState.size === "small" && {
|
|
118
118
|
height: theme.vars.size.desktop.small.base
|
|
119
119
|
},
|
|
120
|
-
...ownerState.
|
|
120
|
+
...ownerState.size === "medium" && {
|
|
121
121
|
height: theme.vars.size.desktop.medium.base
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -157,17 +157,17 @@ const windowBaseStyles = {
|
|
|
157
157
|
pointIcon: ({ theme, ownerState }) => ({
|
|
158
158
|
color: theme.vars.palette.text.primary,
|
|
159
159
|
...theme.generalSettings.isMobile ? {
|
|
160
|
-
...ownerState.
|
|
160
|
+
...ownerState.size === "small" && {
|
|
161
161
|
height: theme.vars.size.mobile.small.base
|
|
162
162
|
},
|
|
163
|
-
...ownerState.
|
|
163
|
+
...ownerState.size === "medium" && {
|
|
164
164
|
height: theme.vars.size.mobile.medium.base
|
|
165
165
|
}
|
|
166
166
|
} : {
|
|
167
|
-
...ownerState.
|
|
167
|
+
...ownerState.size === "small" && {
|
|
168
168
|
height: theme.vars.size.desktop.small.base
|
|
169
169
|
},
|
|
170
|
-
...ownerState.
|
|
170
|
+
...ownerState.size === "medium" && {
|
|
171
171
|
height: theme.vars.size.desktop.medium.base
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -197,6 +197,15 @@ const windowBaseStyles = {
|
|
|
197
197
|
gap: theme.vars.size.baseSpacings.sp2,
|
|
198
198
|
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
199
199
|
color: theme.vars.palette.text.secondary
|
|
200
|
+
}),
|
|
201
|
+
/**
|
|
202
|
+
* Window component content Styles
|
|
203
|
+
*/
|
|
204
|
+
windowContainerComponent: () => ({
|
|
205
|
+
display: "flex",
|
|
206
|
+
width: "100%",
|
|
207
|
+
height: "100%",
|
|
208
|
+
overflow: "auto"
|
|
200
209
|
})
|
|
201
210
|
};
|
|
202
211
|
export {
|
|
@@ -7,7 +7,7 @@ function DynamicMFParmsProvider(props) {
|
|
|
7
7
|
}
|
|
8
8
|
const MemonizedDynamicMFParmsProvider = React.memo(DynamicMFParmsProvider);
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
DynamicMFParmsContext as D,
|
|
11
11
|
MemonizedDynamicMFParmsProvider as M,
|
|
12
|
-
|
|
12
|
+
DynamicMFParmsProvider as a
|
|
13
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -4,7 +4,6 @@ import { DynamicMFParameters } from './types';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface DynamicMFState {
|
|
6
6
|
dynamicMFParameters: DynamicMFParameters;
|
|
7
|
-
windowId: string;
|
|
8
7
|
}
|
|
9
8
|
/**
|
|
10
9
|
* Interfaz que define el estado de los parámetros de un Microfrontend Dinámico junto con las acciones que se pueden realizar sobre ellos.
|
|
@@ -5,8 +5,9 @@ function WindowToolsMFProvider(props) {
|
|
|
5
5
|
const { children, ...other } = props;
|
|
6
6
|
return /* @__PURE__ */ jsx(WindowToolsMFContext.Provider, { value: { ...other }, children });
|
|
7
7
|
}
|
|
8
|
-
React.memo(WindowToolsMFProvider);
|
|
8
|
+
const MemonizedWindowToolsMFContext = React.memo(WindowToolsMFProvider);
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
WindowToolsMFContext as
|
|
10
|
+
MemonizedWindowToolsMFContext as M,
|
|
11
|
+
WindowToolsMFContext as W,
|
|
12
|
+
WindowToolsMFProvider as a
|
|
12
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Toaster } from '@m4l/core';
|
|
3
|
-
import { CookieType
|
|
3
|
+
import { CookieType } from '../../../areas/types';
|
|
4
|
+
import { ModuleAction } from '../../types';
|
|
4
5
|
/**
|
|
5
6
|
* Interfaz que define un conjunto de herramientas relacionadas con la ventana que pueden ser proporcionadas por el contexto WindowToolsMF.
|
|
6
7
|
*/
|
|
@@ -27,7 +28,7 @@ export interface WindowToolsMF {
|
|
|
27
28
|
* @param newActions Las nuevas acciones de ventana que se desean establecer.
|
|
28
29
|
* @param version (Opcional) La versión de las acciones de ventana.
|
|
29
30
|
*/
|
|
30
|
-
setActions: (newActions:
|
|
31
|
+
setActions: (newActions: ModuleAction[], version?: string) => void;
|
|
31
32
|
/**
|
|
32
33
|
* Método para establecer una cookie específica.
|
|
33
34
|
* @param id El ID de la cookie que se desea establecer.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
import { ModuleAction, WindowBaseAction, WindowOptions } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Retorna la acciones que van por fuera del MenuActions de la ventana. las cuales se representan en IconButton
|
|
5
|
+
*/
|
|
6
|
+
export declare function getLeftActions(isMobile: boolean, moduleActions: ModuleAction[]): WindowBaseAction[];
|
|
7
|
+
type GetMenuActionsType = {
|
|
8
|
+
windowId: string;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
moduleActions: ModuleAction[];
|
|
11
|
+
urlPrefix: string;
|
|
12
|
+
saveModuleCookies: (wd: string) => void;
|
|
13
|
+
resetModuleCookies: (wd: string) => void;
|
|
14
|
+
version?: string;
|
|
15
|
+
windowOptions?: WindowOptions;
|
|
16
|
+
getLabel: GetLabelType;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Get the menu actions for the window
|
|
20
|
+
*/
|
|
21
|
+
export declare function getInsideMenuActions(options: GetMenuActionsType): WindowBaseAction[];
|
|
22
|
+
export {};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { g as getAreasDictionary, A as AREAS_DICCTIONARY } from "
|
|
2
|
-
import { I as ICONS } from "
|
|
3
|
-
function
|
|
1
|
+
import { g as getAreasDictionary, A as AREAS_DICCTIONARY } from "../areas/dictionary.js";
|
|
2
|
+
import { I as ICONS } from "../areas/icons.js";
|
|
3
|
+
function getLeftActions(isMobile, moduleActions) {
|
|
4
4
|
let mainActions = [];
|
|
5
|
-
if (!isMobile
|
|
5
|
+
if (!isMobile) {
|
|
6
6
|
mainActions = mainActions.concat(moduleActions.filter((action) => action.visibility === "main"));
|
|
7
7
|
}
|
|
8
8
|
mainActions = mainActions.concat(moduleActions.filter((action) => action.visibility === "allways"));
|
|
9
|
-
return mainActions
|
|
9
|
+
return mainActions.map((action) => ({
|
|
10
|
+
...action,
|
|
11
|
+
place: "left"
|
|
12
|
+
}));
|
|
10
13
|
}
|
|
11
|
-
function
|
|
14
|
+
function getInsideMenuActions(options) {
|
|
12
15
|
const {
|
|
13
16
|
windowId,
|
|
14
17
|
isMobile,
|
|
@@ -25,8 +28,7 @@ function getMenuActions(options) {
|
|
|
25
28
|
}
|
|
26
29
|
if (windowOptions.allowPersistCookies) {
|
|
27
30
|
const saveCookiesAction = {
|
|
28
|
-
|
|
29
|
-
startIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
|
|
31
|
+
iconUrl: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
|
|
30
32
|
onClick: () => saveModuleCookies(windowId),
|
|
31
33
|
disabled: false,
|
|
32
34
|
visibility: "normal",
|
|
@@ -35,8 +37,7 @@ function getMenuActions(options) {
|
|
|
35
37
|
};
|
|
36
38
|
menuActions.push(saveCookiesAction);
|
|
37
39
|
const resetCookiesAction = {
|
|
38
|
-
|
|
39
|
-
startIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
|
|
40
|
+
iconUrl: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
|
|
40
41
|
onClick: () => resetModuleCookies(windowId),
|
|
41
42
|
disabled: false,
|
|
42
43
|
visibility: "normal",
|
|
@@ -45,9 +46,12 @@ function getMenuActions(options) {
|
|
|
45
46
|
};
|
|
46
47
|
menuActions.push(resetCookiesAction);
|
|
47
48
|
}
|
|
48
|
-
return menuActions
|
|
49
|
+
return menuActions.map((action) => ({
|
|
50
|
+
...action,
|
|
51
|
+
place: "inside"
|
|
52
|
+
}));
|
|
49
53
|
}
|
|
50
54
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
getInsideMenuActions as a,
|
|
56
|
+
getLeftActions as g
|
|
53
57
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import {
|
|
3
|
+
import { D as DynamicMFParmsContext } from "../../contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
4
|
+
const useDynamicMFParameters = () => {
|
|
5
|
+
const store = useContext(DynamicMFParmsContext);
|
|
6
|
+
if (!store) {
|
|
7
|
+
throw new Error("useDynamicMFParameters context must be use inside DynamicMFParmsContext");
|
|
8
|
+
}
|
|
9
|
+
return store;
|
|
10
|
+
};
|
|
4
11
|
function useDynamicMFParametersStore(selector, equalityFn) {
|
|
5
12
|
const store = useContext(DynamicMFParmsContext);
|
|
6
13
|
if (!store) {
|
|
@@ -9,5 +16,6 @@ function useDynamicMFParametersStore(selector, equalityFn) {
|
|
|
9
16
|
return useStore(store, selector, equalityFn);
|
|
10
17
|
}
|
|
11
18
|
export {
|
|
19
|
+
useDynamicMFParameters as a,
|
|
12
20
|
useDynamicMFParametersStore as u
|
|
13
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { W as WindowToolsMFContext } from "../../contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
3
3
|
const useWindowToolsMF = () => {
|
|
4
4
|
const context = useContext(WindowToolsMFContext);
|
|
5
5
|
if (!context) {
|
|
@@ -1 +1,6 @@
|
|
|
1
1
|
export * from './WindowBase';
|
|
2
|
+
export * from './hooks/useWindowToolsMF';
|
|
3
|
+
export * from './hooks/useDynamicMFParameters';
|
|
4
|
+
export * from './contexts/WindowToolsMFContext';
|
|
5
|
+
export * from './contexts/DynamicMFParmsContext';
|
|
6
|
+
export type { ModuleAction } from './types';
|
|
@@ -12,5 +12,6 @@ export declare enum WindowBaseSlots {
|
|
|
12
12
|
iconsWrapperWindowBase = "iconsWrapperWindowBase",
|
|
13
13
|
headerWindowComponent = "headerWindowComponent",
|
|
14
14
|
linearProgressIndeterminate = "linearProgressIndeterminate",
|
|
15
|
-
contentEditionInfo = "contentEditionInfo"
|
|
15
|
+
contentEditionInfo = "contentEditionInfo",
|
|
16
|
+
windowContainerComponent = "windowContainerComponent"
|
|
16
17
|
}
|
|
@@ -13,6 +13,7 @@ var WindowBaseSlots = /* @__PURE__ */ ((WindowBaseSlots2) => {
|
|
|
13
13
|
WindowBaseSlots2["headerWindowComponent"] = "headerWindowComponent";
|
|
14
14
|
WindowBaseSlots2["linearProgressIndeterminate"] = "linearProgressIndeterminate";
|
|
15
15
|
WindowBaseSlots2["contentEditionInfo"] = "contentEditionInfo";
|
|
16
|
+
WindowBaseSlots2["windowContainerComponent"] = "windowContainerComponent";
|
|
16
17
|
return WindowBaseSlots2;
|
|
17
18
|
})(WindowBaseSlots || {});
|
|
18
19
|
export {
|
|
@@ -7,50 +7,81 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* Root component for the WindowBase container.
|
|
9
9
|
*/
|
|
10
|
-
export declare const WindowBaseStyled: import('@emotion/styled').StyledComponent<
|
|
10
|
+
export declare const WindowBaseStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
11
|
+
ownerState: any;
|
|
12
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
11
13
|
/**
|
|
12
14
|
* Content component for the WindowBase container.
|
|
13
15
|
*/
|
|
14
|
-
export declare const ContentWindowStyled: import('@emotion/styled').StyledComponent<
|
|
16
|
+
export declare const ContentWindowStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
17
|
+
ownerState: any;
|
|
18
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
15
19
|
/**
|
|
16
20
|
* Header container for the component.
|
|
17
21
|
*/
|
|
18
|
-
export declare const HeaderWindowComponentStyled: import('@emotion/styled').StyledComponent<
|
|
22
|
+
export declare const HeaderWindowComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
|
+
ownerState: any;
|
|
24
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
25
|
/**
|
|
20
26
|
* Content wrapper for the header.
|
|
21
27
|
*/
|
|
22
|
-
export declare const HeaderContentStyled: import('@emotion/styled').StyledComponent<
|
|
28
|
+
export declare const HeaderContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
29
|
+
ownerState: any;
|
|
30
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
23
31
|
/**
|
|
24
32
|
* Icon component for the header.
|
|
25
33
|
*/
|
|
26
|
-
export declare const IconWindowStyled: import('@emotion/styled').StyledComponent<
|
|
34
|
+
export declare const IconWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
35
|
+
ownerState: any;
|
|
36
|
+
}, {}, {}>;
|
|
27
37
|
/**
|
|
28
38
|
* Title component for the header.
|
|
29
39
|
*/
|
|
30
|
-
export declare const TitleWindowStyled: import('@emotion/styled').StyledComponent<
|
|
40
|
+
export declare const TitleWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
41
|
+
ownerState: any;
|
|
42
|
+
}, {}, {}>;
|
|
31
43
|
/**
|
|
32
44
|
* Subtitle component for the header.
|
|
33
45
|
*/
|
|
34
|
-
export declare const SubtitleWindowStyled: import('@emotion/styled').StyledComponent<
|
|
46
|
+
export declare const SubtitleWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
47
|
+
ownerState: any;
|
|
48
|
+
}, {}, {}>;
|
|
35
49
|
/**
|
|
36
50
|
* Subtitle container for the header.
|
|
37
51
|
*/
|
|
38
|
-
export declare const SubtitleContainerStyled: import('@emotion/styled').StyledComponent<
|
|
52
|
+
export declare const SubtitleContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
53
|
+
ownerState: any;
|
|
54
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
39
55
|
/**
|
|
40
56
|
* Point component for the header.
|
|
41
57
|
*/
|
|
42
|
-
export declare const PointStyled: import('@emotion/styled').StyledComponent<
|
|
58
|
+
export declare const PointStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
59
|
+
ownerState: any;
|
|
60
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
43
61
|
/**
|
|
44
62
|
* Point icon component for the header.
|
|
45
63
|
*/
|
|
46
|
-
export declare const PointIconStyled: import('@emotion/styled').StyledComponent<
|
|
64
|
+
export declare const PointIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
65
|
+
ownerState: any;
|
|
66
|
+
}, {}, {}>;
|
|
47
67
|
/**
|
|
48
68
|
* Wrapper for icons in the header.
|
|
49
69
|
*/
|
|
50
|
-
export declare const IconsWrapperStyled: import('@emotion/styled').StyledComponent<
|
|
70
|
+
export declare const IconsWrapperStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
71
|
+
ownerState: any;
|
|
72
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
51
73
|
/**
|
|
52
74
|
* Styled component for menu actions in the header.
|
|
53
75
|
*/
|
|
54
|
-
export declare const MenuActionsWindowsStyled: import('@emotion/styled').StyledComponent<
|
|
55
|
-
|
|
56
|
-
|
|
76
|
+
export declare const MenuActionsWindowsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../MenuActions/types').MenuActionsProps, keyof import('../../MenuActions/types').MenuActionsProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
77
|
+
ownerState: any;
|
|
78
|
+
}, {}, {}>;
|
|
79
|
+
export declare const LinearProgressIndeterminateStyled: import('@emotion/styled').StyledComponent<Pick<import('../../LinearProgressIndeterminate/types').LinearProgressIndeterminateProps, keyof import('../../LinearProgressIndeterminate/types').LinearProgressIndeterminateProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
80
|
+
ownerState: any;
|
|
81
|
+
}, {}, {}>;
|
|
82
|
+
export declare const ContentEditionInfoStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
83
|
+
ownerState: any;
|
|
84
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
85
|
+
export declare const WindowContainerComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
86
|
+
ownerState: any;
|
|
87
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -62,6 +62,10 @@ const ContentEditionInfoStyled = styled("div", {
|
|
|
62
62
|
name: WINDOW_BASE_KEY_COMPONENT,
|
|
63
63
|
slot: WindowBaseSlots.contentEditionInfo
|
|
64
64
|
})(windowBaseStyles?.contentEditionInfo);
|
|
65
|
+
const WindowContainerComponentStyled = styled("div", {
|
|
66
|
+
name: WINDOW_BASE_KEY_COMPONENT,
|
|
67
|
+
slot: WindowBaseSlots.windowContainerComponent
|
|
68
|
+
})(windowBaseStyles?.windowContainerComponent);
|
|
65
69
|
export {
|
|
66
70
|
ContentWindowStyled as C,
|
|
67
71
|
HeaderWindowComponentStyled as H,
|
|
@@ -72,9 +76,10 @@ export {
|
|
|
72
76
|
SubtitleContainerStyled as S,
|
|
73
77
|
TitleWindowStyled as T,
|
|
74
78
|
WindowBaseStyled as W,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
WindowContainerComponentStyled as a,
|
|
80
|
+
ContentEditionInfoStyled as b,
|
|
81
|
+
HeaderContentStyled as c,
|
|
82
|
+
PointIconStyled as d,
|
|
83
|
+
SubtitleWindowStyled as e,
|
|
84
|
+
IconsWrapperStyled as f
|
|
80
85
|
};
|
|
@@ -3,5 +3,5 @@ import { ComponentProps } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Componente encargado de renderizar el componente de la ventana.
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const WindowBaseComponent: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const MemonizedComponent: React.MemoExoticComponent<(props: ComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
3
|
+
import { a as WindowContainerComponentStyled } from "../../slots/WindowBaseSlots.js";
|
|
4
|
+
import { a as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
5
|
+
import { a as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
6
|
+
const WindowBaseComponent = (props) => {
|
|
7
7
|
const { component, dynamicMFStore, windowTools, componentProps } = props;
|
|
8
8
|
return /* @__PURE__ */ jsx(WindowToolsMFProvider, { ...windowTools, children: /* @__PURE__ */ jsx(DynamicMFParmsProvider, { store: dynamicMFStore, children: /* @__PURE__ */ jsx(WindowContainerComponentStyled, { ownerState: {}, children: typeof component === "function" ? component(componentProps) : component }) }) });
|
|
9
9
|
};
|
|
10
|
-
React.memo(
|
|
10
|
+
React.memo(WindowBaseComponent);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
WindowBaseComponent as W
|
|
13
13
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WindowToolsMF } from '../../contexts';
|
|
2
|
+
import { DynamicMFStore } from '../../contexts/DynamicMFParmsContext/store';
|
|
3
|
+
import { JSX_REACT_NODE } from '../../../WindowBase/types';
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
windowTools: WindowToolsMF;
|
|
6
|
+
dynamicMFStore: DynamicMFStore;
|
|
7
|
+
component: JSX_REACT_NODE;
|
|
8
|
+
componentProps?: Record<string, any>;
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { P as POPUPS_ICONS } from "../../../popups/components/PopupsViewer/icons.js";
|
|
4
|
-
import {
|
|
4
|
+
import { b as ContentEditionInfoStyled } from "../../slots/WindowBaseSlots.js";
|
|
5
5
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
6
6
|
const EditionInfo = (props) => {
|
|
7
7
|
const { editionInfo } = props;
|