@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,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { useState, useEffect, useMemo } from "react";
|
|
4
4
|
import { I as ICONS } from "../../icons.js";
|
|
5
|
-
import { d as
|
|
5
|
+
import { d as dragResizeWindowRNDClasses } from "../../../DragResizeWindowRND/classes/index.js";
|
|
6
6
|
import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
|
|
7
7
|
import { deepEqual } from "fast-equals";
|
|
8
8
|
import { M as MemoizedIconButton } from "../MemoizedIconButton/MemoizedIconButton.js";
|
|
9
|
-
import { H as HeaderWindowComponentStyled,
|
|
9
|
+
import { H as HeaderWindowComponentStyled, c as HeaderContentStyled, I as IconWindowStyled, T as TitleWindowStyled, S as SubtitleContainerStyled, P as PointStyled, d as PointIconStyled, e as SubtitleWindowStyled, f as IconsWrapperStyled, M as MenuActionsWindowsStyled } from "../../slots/WindowBaseSlots.js";
|
|
10
10
|
const HeaderWindowBase = (props) => {
|
|
11
11
|
const {
|
|
12
12
|
title,
|
|
@@ -14,14 +14,15 @@ const HeaderWindowBase = (props) => {
|
|
|
14
14
|
onClose,
|
|
15
15
|
iconUrl,
|
|
16
16
|
size,
|
|
17
|
-
color,
|
|
18
17
|
selected,
|
|
19
18
|
version,
|
|
20
19
|
variant,
|
|
21
20
|
actions = []
|
|
22
21
|
} = props;
|
|
23
22
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
24
|
-
const [
|
|
23
|
+
const [leftActions, setLeftActions] = useState(() => actions.filter((action) => action.place === "left"));
|
|
24
|
+
const [rightActions, setRightActions] = useState(() => actions.filter((action) => action.place === "right"));
|
|
25
|
+
const [insideActions, setInsideActions] = useState(() => actions.filter((action) => action.place === "inside"));
|
|
25
26
|
useEffect(() => {
|
|
26
27
|
const groupedActions = actions.reduce(
|
|
27
28
|
(acc, action) => {
|
|
@@ -30,16 +31,28 @@ const HeaderWindowBase = (props) => {
|
|
|
30
31
|
},
|
|
31
32
|
{ left: [], right: [], inside: [] }
|
|
32
33
|
);
|
|
33
|
-
|
|
34
|
-
if (!deepEqual(prev, groupedActions)) {
|
|
35
|
-
return groupedActions;
|
|
34
|
+
setLeftActions((prev) => {
|
|
35
|
+
if (!deepEqual(prev, groupedActions.left)) {
|
|
36
|
+
return groupedActions.left;
|
|
37
|
+
}
|
|
38
|
+
return prev;
|
|
39
|
+
});
|
|
40
|
+
setRightActions((prev) => {
|
|
41
|
+
if (!deepEqual(prev, groupedActions.right)) {
|
|
42
|
+
return groupedActions.right;
|
|
43
|
+
}
|
|
44
|
+
return prev;
|
|
45
|
+
});
|
|
46
|
+
setInsideActions((prev) => {
|
|
47
|
+
if (!deepEqual(prev, groupedActions.inside)) {
|
|
48
|
+
return groupedActions.inside;
|
|
36
49
|
}
|
|
37
50
|
return prev;
|
|
38
51
|
});
|
|
39
52
|
}, [actions]);
|
|
40
53
|
const menuActions = useMemo(() => {
|
|
41
54
|
const memoizedActions = [
|
|
42
|
-
...
|
|
55
|
+
...insideActions.map((action) => ({
|
|
43
56
|
type: "menuItem",
|
|
44
57
|
startIcon: action.iconUrl,
|
|
45
58
|
label: action.label,
|
|
@@ -58,14 +71,13 @@ const HeaderWindowBase = (props) => {
|
|
|
58
71
|
});
|
|
59
72
|
}
|
|
60
73
|
return memoizedActions;
|
|
61
|
-
}, [
|
|
74
|
+
}, [insideActions, version, host_static_assets, environment_assets]);
|
|
62
75
|
const ownerState = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
windowBaseSize: size
|
|
76
|
+
selected,
|
|
77
|
+
variant,
|
|
78
|
+
size
|
|
67
79
|
};
|
|
68
|
-
const
|
|
80
|
+
const IconButtonLeftActions = useMemo(() => /* @__PURE__ */ jsx(Fragment, { children: leftActions.map((action) => /* @__PURE__ */ jsx(
|
|
69
81
|
MemoizedIconButton,
|
|
70
82
|
{
|
|
71
83
|
iconUrl: action.iconUrl,
|
|
@@ -75,8 +87,24 @@ const HeaderWindowBase = (props) => {
|
|
|
75
87
|
})
|
|
76
88
|
},
|
|
77
89
|
action.key
|
|
78
|
-
)) });
|
|
79
|
-
|
|
90
|
+
)) }), [leftActions]);
|
|
91
|
+
const IconButtonRightActions = useMemo(() => {
|
|
92
|
+
if (rightActions.length === 0) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
return /* @__PURE__ */ jsx(Fragment, { children: rightActions.map((action) => /* @__PURE__ */ jsx(
|
|
96
|
+
MemoizedIconButton,
|
|
97
|
+
{
|
|
98
|
+
iconUrl: action.iconUrl,
|
|
99
|
+
label: action.label,
|
|
100
|
+
disabled: action.disabled,
|
|
101
|
+
onClick: action.onClick || (() => {
|
|
102
|
+
})
|
|
103
|
+
},
|
|
104
|
+
action.key
|
|
105
|
+
)) });
|
|
106
|
+
}, [rightActions]);
|
|
107
|
+
return /* @__PURE__ */ jsxs(HeaderWindowComponentStyled, { className: dragResizeWindowRNDClasses.draggableHandle, ownerState, children: [
|
|
80
108
|
/* @__PURE__ */ jsxs(HeaderContentStyled, { ownerState, children: [
|
|
81
109
|
iconUrl && /* @__PURE__ */ jsx(IconWindowStyled, { size, ownerState, src: iconUrl, "aria-label": "main icon" }),
|
|
82
110
|
/* @__PURE__ */ jsx(TitleWindowStyled, { size, ownerState, children: title }),
|
|
@@ -95,28 +123,28 @@ const HeaderWindowBase = (props) => {
|
|
|
95
123
|
/* @__PURE__ */ jsxs(
|
|
96
124
|
IconsWrapperStyled,
|
|
97
125
|
{
|
|
98
|
-
className:
|
|
126
|
+
className: dragResizeWindowRNDClasses.draggableCancel,
|
|
99
127
|
ownerState,
|
|
100
128
|
children: [
|
|
101
|
-
|
|
102
|
-
menuActions.length >
|
|
129
|
+
IconButtonLeftActions,
|
|
130
|
+
menuActions.length > 0 && /* @__PURE__ */ jsx(
|
|
103
131
|
MenuActionsWindowsStyled,
|
|
104
132
|
{
|
|
105
133
|
type: "menuItem",
|
|
106
134
|
ownerState,
|
|
107
|
-
|
|
135
|
+
icon: `${host_static_assets}/${environment_assets}/frontend/components/window_base/assets/icons/${ICONS.MORE_VERTICAL}`,
|
|
108
136
|
arrowType: "no-arrow",
|
|
109
|
-
marginTop: "12px",
|
|
110
137
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
111
138
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
139
|
+
paperProps: { style: { marginTop: "12px" } },
|
|
112
140
|
menuActions
|
|
113
141
|
}
|
|
114
142
|
),
|
|
115
|
-
|
|
143
|
+
IconButtonRightActions,
|
|
116
144
|
onClose && /* @__PURE__ */ jsx(
|
|
117
145
|
IconButton,
|
|
118
146
|
{
|
|
119
|
-
|
|
147
|
+
icon: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/${ICONS.CLOSE}`,
|
|
120
148
|
onClick: onClose,
|
|
121
149
|
"aria-label": "close"
|
|
122
150
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WindowBaseAction, WindowBaseProps } from '../../types';
|
|
2
|
-
import { MenuItemAction } from '../../../MenuActions/types';
|
|
3
2
|
/**
|
|
4
3
|
* Properties used by the `Header` component.
|
|
5
4
|
*
|
|
@@ -33,22 +32,15 @@ import { MenuItemAction } from '../../../MenuActions/types';
|
|
|
33
32
|
* - `selected` modifies the visual appearance to indicate the selected state.
|
|
34
33
|
* @see WindowBaseProps - General properties for the window base.
|
|
35
34
|
*/
|
|
36
|
-
export type HeaderProps = Pick<WindowBaseProps, 'title' | 'subTitle' | 'iconUrl' | 'onClose' | '
|
|
35
|
+
export type HeaderProps = Pick<WindowBaseProps, 'title' | 'subTitle' | 'iconUrl' | 'onClose' | 'version' | 'selected' | 'variant'> & {
|
|
37
36
|
actions?: WindowBaseAction[];
|
|
38
37
|
};
|
|
39
38
|
/**
|
|
40
39
|
* Defines the visibility types for window actions.
|
|
41
40
|
*/
|
|
42
|
-
export type WindowActionType = 'main' | 'allways' | 'normal';
|
|
43
41
|
/**
|
|
44
42
|
* Define una acción de ventana basada en `MenuAction`, pero restringida solo a `menuItem`.
|
|
45
43
|
*/
|
|
46
|
-
export interface WindowAction extends MenuItemAction {
|
|
47
|
-
visibility: WindowActionType;
|
|
48
|
-
key: string;
|
|
49
|
-
tag?: any;
|
|
50
|
-
className?: string;
|
|
51
|
-
}
|
|
52
44
|
/**
|
|
53
45
|
* Defines the structure of a window action, extending the `MenuAction` type.
|
|
54
46
|
* This includes additional properties for visibility, a unique key, an optional tag, and a custom class name.
|
|
@@ -70,32 +62,3 @@ export interface WindowAction extends MenuItemAction {
|
|
|
70
62
|
* };
|
|
71
63
|
* ```
|
|
72
64
|
*/
|
|
73
|
-
export interface windowWindowAction {
|
|
74
|
-
/**
|
|
75
|
-
* Defines the visibility type of the window action.
|
|
76
|
-
* This determines when and how the action is displayed, based on its visibility setting.
|
|
77
|
-
*
|
|
78
|
-
* Possible values:
|
|
79
|
-
* - `'main'`: The action is displayed as a main action.
|
|
80
|
-
* - `'allways'`: The action is always visible.
|
|
81
|
-
* - `'normal'`: The action is visible under normal circumstances.
|
|
82
|
-
*/
|
|
83
|
-
visibility: WindowActionType;
|
|
84
|
-
/**
|
|
85
|
-
* A unique key for identifying the window action.
|
|
86
|
-
* This key is used to distinguish this action from others and may be referenced programmatically.
|
|
87
|
-
*/
|
|
88
|
-
key: string;
|
|
89
|
-
/**
|
|
90
|
-
* An optional tag or label for the window action.
|
|
91
|
-
* This can be used to store additional metadata or a label associated with the action.
|
|
92
|
-
* The tag is not required for the action to function but can be useful for descriptive purposes.
|
|
93
|
-
*/
|
|
94
|
-
tag?: any;
|
|
95
|
-
/**
|
|
96
|
-
* An optional custom CSS class for the window action.
|
|
97
|
-
* This can be used to apply custom styles to the action element.
|
|
98
|
-
* If not provided, the action will use the default styling.
|
|
99
|
-
*/
|
|
100
|
-
className?: string;
|
|
101
|
-
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MicroFrontendProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente encargado de renderizar un microfrontend.
|
|
5
|
+
* @param props MicroFrontendProps
|
|
6
|
+
*/
|
|
7
|
+
export declare const WindowBaseMicroFrontend: (props: MicroFrontendProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const MemonizedWindowBaseMicroFrontend: React.MemoExoticComponent<(props: MicroFrontendProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { M as MFLoader } from "../../../MFLoader/MFLoader.js";
|
|
4
|
+
const WindowBaseMicroFrontend = (props) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(MFLoader, { ...props });
|
|
6
|
+
};
|
|
7
|
+
const MemonizedWindowBaseMicroFrontend = React.memo(WindowBaseMicroFrontend);
|
|
8
|
+
export {
|
|
9
|
+
MemonizedWindowBaseMicroFrontend as M
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MFBaseProps } from '../../../MFLoader/types';
|
|
2
|
+
import { WindowToolsMF } from '../../contexts';
|
|
3
|
+
import { DynamicMFStore } from '../../contexts/DynamicMFParmsContext/store';
|
|
4
|
+
export interface MicroFrontendProps extends MFBaseProps {
|
|
5
|
+
moduleId: string;
|
|
6
|
+
windowTools: WindowToolsMF;
|
|
7
|
+
dynamicMFStore: DynamicMFStore;
|
|
8
|
+
}
|
|
@@ -1,19 +1,59 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { WindowBaseSlots } from './slots/WindowBaseEnum';
|
|
3
|
-
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
4
3
|
import { WINDOW_BASE_KEY_COMPONENT } from './constants';
|
|
5
4
|
import { Theme } from '@mui/material/styles';
|
|
6
|
-
import {
|
|
5
|
+
import { Sizes } from '@m4l/styles';
|
|
6
|
+
import { MenuItemAction } from '../MenuActions/types';
|
|
7
|
+
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
8
|
+
/**
|
|
9
|
+
* Opciones para la ventana.
|
|
10
|
+
*/
|
|
11
|
+
export type WindowOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* Indica si se permitirá persistir las cookies.
|
|
14
|
+
*/
|
|
15
|
+
allowPersistCookies: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type JSX_REACT_NODE = ((props?: any) => JSX.Element) | ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Tipo que representa el tipo de ventana: microfrontend o componente.
|
|
20
|
+
*/
|
|
21
|
+
export type WinType = 'microfrontend' | 'component';
|
|
22
|
+
/**
|
|
23
|
+
* Tipo que representa el tipo de visibilidad de la acción de ventana.
|
|
24
|
+
* main: Se muestra en el header de la ventana pero si está en mobile se muestra en el menú inside.
|
|
25
|
+
* allways: Se muestra en el header de la ventana así esté en mobile.
|
|
26
|
+
* normal: Se muestra inside del menu.
|
|
27
|
+
*/
|
|
28
|
+
export type WindowActionType = 'main' | 'allways' | 'normal';
|
|
29
|
+
export interface ModuleAction extends Pick<MenuItemAction, 'label' | 'selected' | 'color' | 'disabled' | 'checkable' | 'checked' | 'onClick'> {
|
|
30
|
+
/**
|
|
31
|
+
* Tipo de visibilidad de la acción de ventana.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
visibility: WindowActionType;
|
|
35
|
+
/**
|
|
36
|
+
* Clave única de la acción de ventana.
|
|
37
|
+
*/
|
|
38
|
+
key: string;
|
|
39
|
+
/**
|
|
40
|
+
* Etiqueta opcional para la acción de ventana.
|
|
41
|
+
*/
|
|
42
|
+
tag?: any;
|
|
43
|
+
/**
|
|
44
|
+
* Clase CSS opcional para la acción de ventana.
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Icono opcional para la acción de ventana.
|
|
49
|
+
*/
|
|
50
|
+
iconUrl: string;
|
|
51
|
+
}
|
|
7
52
|
/**
|
|
8
53
|
* Type representing a single action in the `WindowBase` component.
|
|
9
54
|
*/
|
|
10
|
-
export interface WindowBaseAction {
|
|
55
|
+
export interface WindowBaseAction extends Pick<ModuleAction, 'label' | 'selected' | 'color' | 'disabled' | 'checkable' | 'checked' | 'onClick' | 'key' | 'iconUrl'> {
|
|
11
56
|
place: 'left' | 'right' | 'inside';
|
|
12
|
-
iconUrl: string;
|
|
13
|
-
label: string;
|
|
14
|
-
key: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
onClick?: () => void;
|
|
17
57
|
}
|
|
18
58
|
/**
|
|
19
59
|
* Interface representing the main properties of the `WindowBase` component.
|
|
@@ -85,11 +125,6 @@ export interface WindowBaseProps {
|
|
|
85
125
|
* Default is `'medium'` if not specified.
|
|
86
126
|
*/
|
|
87
127
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
88
|
-
/**
|
|
89
|
-
* The color theme of the window.
|
|
90
|
-
* Restricted to `'default'`, which applies the default theme color.
|
|
91
|
-
*/
|
|
92
|
-
color?: Extract<ComponentPalletColor, 'default'>;
|
|
93
128
|
/**
|
|
94
129
|
* Indicates if the window is currently selected.
|
|
95
130
|
* When `true`, the window may display a visual indicator to denote selection.
|
|
@@ -153,10 +188,9 @@ export type WindowBaseType = keyof typeof WindowBaseSlots;
|
|
|
153
188
|
* windowBaseSize (optional) - Size of the component (`'small'` or `'medium'`).
|
|
154
189
|
*/
|
|
155
190
|
export type WindowBaseOwnerState = Pick<WindowBaseProps, 'size'> & {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
windowBaseSize?: WindowBaseProps['size'];
|
|
191
|
+
selected?: WindowBaseProps['selected'];
|
|
192
|
+
variant?: WindowBaseProps['variant'];
|
|
193
|
+
size?: WindowBaseProps['size'];
|
|
160
194
|
};
|
|
161
195
|
/**
|
|
162
196
|
* Type for defining custom styles for the `WindowBase` component.
|
|
@@ -166,4 +200,4 @@ export type WindowBaseOwnerState = Pick<WindowBaseProps, 'size'> & {
|
|
|
166
200
|
* WINDOW_BASE_KEY_COMPONENT - Key used to register the `WindowBase` component with the theme.
|
|
167
201
|
* Theme - The theme object containing styling information.
|
|
168
202
|
*/
|
|
169
|
-
export type WindowBaseStyles =
|
|
203
|
+
export type WindowBaseStyles = M4LOverridesStyleRules<WindowBaseType, typeof WINDOW_BASE_KEY_COMPONENT, Theme>;
|
|
@@ -7,9 +7,9 @@ import { W as WINDOW_CONFIRM_KEY_COMPONENT } from "./constants.js";
|
|
|
7
7
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
10
|
-
import { W as WindowBase } from "../WindowBase/WindowBase.js";
|
|
11
10
|
import { W as WindowConfirmRootStyled, a as WindowConfirmContentStyled, M as MessageIllustrationStyled, A as ActionsContainerStyled, b as ActionCancelStyled, c as ActionIntroStyled } from "./slots/WindowConfirmSlots.js";
|
|
12
11
|
import { W as WindowConfirmSlots } from "./slots/WindowConfirmEnum.js";
|
|
12
|
+
import { W as WindowBase } from "../WindowBase/WindowBase.js";
|
|
13
13
|
const WindowConfirm = (props) => {
|
|
14
14
|
const {
|
|
15
15
|
variant = "warning",
|
|
@@ -22,7 +22,7 @@ export declare const AreasAdminContentStyled: import('@emotion/styled').StyledCo
|
|
|
22
22
|
export declare const ChipAreasStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../Chip').ChipProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../../Chip').ChipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
23
|
ownerState: Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>;
|
|
24
24
|
}, {}, {}>;
|
|
25
|
-
export declare const IconButtonAddAreaStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "
|
|
25
|
+
export declare const IconButtonAddAreaStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
26
|
ownerState: Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
export declare const MenuActionsChipStyled: 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> & {
|
|
@@ -46,7 +46,7 @@ export declare const AddAreasMobileContainerStyled: import('@emotion/styled').St
|
|
|
46
46
|
export declare const MenuActionsAreaChipMobileStyled: 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> & {
|
|
47
47
|
ownerState: Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>;
|
|
48
48
|
}, {}, {}>;
|
|
49
|
-
export declare const ButtonAddAreaStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "
|
|
49
|
+
export declare const ButtonAddAreaStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
50
50
|
ownerState: Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>;
|
|
51
51
|
}, {}, {}>;
|
|
52
52
|
export declare const EditAreaChipContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
@@ -5,4 +5,4 @@ import { AreasViewerProps } from './types';
|
|
|
5
5
|
* las ventanas que al cambiar entre áreas
|
|
6
6
|
* @returns JSX Areas
|
|
7
7
|
*/
|
|
8
|
-
export declare const AreasViewer: (
|
|
8
|
+
export declare const AreasViewer: import('react').ForwardRefExoticComponent<Omit<AreasViewerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { A as Area } from "./subcomponents/Area/Area.js";
|
|
3
3
|
import { u as useAreasStore } from "../../hooks/useAreas/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { A as AreaMemonizedWindowModal } from "./subcomponents/Area/subcomponents/WindowModal/WindowModal.js";
|
|
5
5
|
import { shallow } from "zustand/shallow";
|
|
6
6
|
import { L as LoadingError } from "../../../LoadingError/LoadingError.js";
|
|
7
7
|
import { g as getPropDataTestId, a as getNameDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
@@ -12,14 +12,14 @@ import { A as AREAS_VIEWER_KEY_COMPONENT } from "./constants.js";
|
|
|
12
12
|
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
13
13
|
import { A as AreasViewerSlots } from "./slots/AreasViewerEnum.js";
|
|
14
14
|
import clsx from "clsx";
|
|
15
|
-
|
|
15
|
+
import { forwardRef } from "react";
|
|
16
|
+
const AreasViewer = forwardRef((props, ref) => {
|
|
16
17
|
const {
|
|
17
18
|
dataTestId,
|
|
18
19
|
className
|
|
19
20
|
} = props;
|
|
20
21
|
const areas = useAreasStore((state) => state.areasIds, shallow);
|
|
21
|
-
const windowsModals = useAreasStore((state) => state.
|
|
22
|
-
const hashWindowsModals = useAreasStore((state) => state.hashWindowsModals);
|
|
22
|
+
const windowsModals = useAreasStore((state) => state.windowsModalsIds);
|
|
23
23
|
const currentArea = useAreasStore((state) => state.currentAreaId);
|
|
24
24
|
const status = useAreasStore((state) => state.ownerState.status);
|
|
25
25
|
const { init } = useAreasStore((state) => state.areasActions);
|
|
@@ -30,6 +30,7 @@ const AreasViewer = (props) => {
|
|
|
30
30
|
/* @__PURE__ */ jsx(
|
|
31
31
|
AreasViewerRootStyled,
|
|
32
32
|
{
|
|
33
|
+
ref,
|
|
33
34
|
className: clsx(getComponentSlotRoot(AREAS_VIEWER_KEY_COMPONENT), className),
|
|
34
35
|
...getPropDataTestId(AREAS_VIEWER_KEY_COMPONENT, AreasViewerSlots.root, dataTestId),
|
|
35
36
|
ownerState,
|
|
@@ -46,13 +47,10 @@ const AreasViewer = (props) => {
|
|
|
46
47
|
}
|
|
47
48
|
),
|
|
48
49
|
windowsModals.map((wm) => {
|
|
49
|
-
|
|
50
|
-
return /* @__PURE__ */ jsx(MemonizedWindowModal, { ...hashWindowsModals[wm] }, wm);
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
50
|
+
return /* @__PURE__ */ jsx(AreaMemonizedWindowModal, { windowId: wm }, wm);
|
|
53
51
|
})
|
|
54
52
|
] });
|
|
55
|
-
};
|
|
53
|
+
});
|
|
56
54
|
export {
|
|
57
55
|
AreasViewer as A
|
|
58
56
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { d as dragResizeWindowRNDClasses } from "../../../DragResizeWindowRND/classes/index.js";
|
|
1
2
|
const areasViewerStyles = {
|
|
2
3
|
/**
|
|
3
4
|
* Root areas viewer Styles
|
|
@@ -12,7 +13,12 @@ const areasViewerStyles = {
|
|
|
12
13
|
"& .M4LAreasViewer-areaGridLayout": {
|
|
13
14
|
height: "100% !important",
|
|
14
15
|
overflow: "auto",
|
|
15
|
-
flexGrow: 1
|
|
16
|
+
flexGrow: 1,
|
|
17
|
+
[`&.${dragResizeWindowRNDClasses.dragging}, &.${dragResizeWindowRNDClasses.resizing}`]: {
|
|
18
|
+
pointerEvents: "none",
|
|
19
|
+
userSelect: "none",
|
|
20
|
+
touchAction: "none"
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
23
|
}),
|
|
18
24
|
/**
|
|
@@ -42,15 +48,6 @@ const areasViewerStyles = {
|
|
|
42
48
|
width: "100%",
|
|
43
49
|
overflow: "hidden"
|
|
44
50
|
}),
|
|
45
|
-
/**
|
|
46
|
-
* Window component content Styles
|
|
47
|
-
*/
|
|
48
|
-
windowContainerComponent: () => ({
|
|
49
|
-
display: "flex",
|
|
50
|
-
width: "100%",
|
|
51
|
-
height: "100%",
|
|
52
|
-
overflow: "auto"
|
|
53
|
-
}),
|
|
54
51
|
/**
|
|
55
52
|
* Wrapper window modal Styles
|
|
56
53
|
*/
|
|
@@ -58,7 +55,11 @@ const areasViewerStyles = {
|
|
|
58
55
|
width: "100%",
|
|
59
56
|
height: "100%",
|
|
60
57
|
position: "relative"
|
|
61
|
-
})
|
|
58
|
+
}),
|
|
59
|
+
/**
|
|
60
|
+
* Window base Styles
|
|
61
|
+
*/
|
|
62
|
+
windowBase: () => ({})
|
|
62
63
|
};
|
|
63
64
|
export {
|
|
64
65
|
areasViewerStyles as a
|
|
@@ -2,6 +2,6 @@ export declare enum AreasViewerSlots {
|
|
|
2
2
|
root = "root",
|
|
3
3
|
areaRoot = "areaRoot",
|
|
4
4
|
baseArea = "baseArea",
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
wrapperWindowModal = "wrapperWindowModal",
|
|
6
|
+
windowBase = "windowBase"
|
|
7
7
|
}
|
|
@@ -2,8 +2,8 @@ var AreasViewerSlots = /* @__PURE__ */ ((AreasViewerSlots2) => {
|
|
|
2
2
|
AreasViewerSlots2["root"] = "root";
|
|
3
3
|
AreasViewerSlots2["areaRoot"] = "areaRoot";
|
|
4
4
|
AreasViewerSlots2["baseArea"] = "baseArea";
|
|
5
|
-
AreasViewerSlots2["windowContainerComponent"] = "windowContainerComponent";
|
|
6
5
|
AreasViewerSlots2["wrapperWindowModal"] = "wrapperWindowModal";
|
|
6
|
+
AreasViewerSlots2["windowBase"] = "windowBase";
|
|
7
7
|
return AreasViewerSlots2;
|
|
8
8
|
})(AreasViewerSlots || {});
|
|
9
9
|
export {
|
|
@@ -7,9 +7,9 @@ export declare const AreaRootStyled: import('@emotion/styled').StyledComponent<i
|
|
|
7
7
|
export declare const BaseAreaStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
8
8
|
ownerState: Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>;
|
|
9
9
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
-
export declare const WindowContainerComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
11
|
-
ownerState: Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>;
|
|
12
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
10
|
export declare const WrapperWindowModalStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
14
11
|
ownerState: Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>;
|
|
15
12
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
|
+
export declare const WindowBaseStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../WindowBase/types').WindowBaseProps, keyof import('../../../../WindowBase/types').WindowBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
14
|
+
ownerState: Partial<import('../types').AreasViewerOwnerState> & Record<string, unknown>;
|
|
15
|
+
}, {}, {}>;
|
|
@@ -2,6 +2,7 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { A as AREAS_VIEWER_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { A as AreasViewerSlots } from "./AreasViewerEnum.js";
|
|
4
4
|
import { a as areasViewerStyles } from "../AreasViewer.styles.js";
|
|
5
|
+
import { W as WindowBase } from "../../../../WindowBase/WindowBase.js";
|
|
5
6
|
const AreasViewerRootStyled = styled("div", {
|
|
6
7
|
name: AREAS_VIEWER_KEY_COMPONENT,
|
|
7
8
|
slot: AreasViewerSlots.root
|
|
@@ -14,18 +15,18 @@ const BaseAreaStyled = styled("div", {
|
|
|
14
15
|
name: AREAS_VIEWER_KEY_COMPONENT,
|
|
15
16
|
slot: AreasViewerSlots.baseArea
|
|
16
17
|
})(areasViewerStyles?.baseArea);
|
|
17
|
-
const WindowContainerComponentStyled = styled("div", {
|
|
18
|
-
name: AREAS_VIEWER_KEY_COMPONENT,
|
|
19
|
-
slot: AreasViewerSlots.windowContainerComponent
|
|
20
|
-
})(areasViewerStyles?.windowContainerComponent);
|
|
21
18
|
const WrapperWindowModalStyled = styled("div", {
|
|
22
19
|
name: AREAS_VIEWER_KEY_COMPONENT,
|
|
23
20
|
slot: AreasViewerSlots.wrapperWindowModal
|
|
24
21
|
})(areasViewerStyles?.wrapperWindowModal);
|
|
22
|
+
const WindowBaseStyled = styled(WindowBase, {
|
|
23
|
+
name: AREAS_VIEWER_KEY_COMPONENT,
|
|
24
|
+
slot: AreasViewerSlots.windowBase
|
|
25
|
+
})(areasViewerStyles?.windowBase);
|
|
25
26
|
export {
|
|
26
27
|
AreasViewerRootStyled as A,
|
|
27
28
|
BaseAreaStyled as B,
|
|
28
|
-
|
|
29
|
+
WindowBaseStyled as W,
|
|
29
30
|
AreaRootStyled as a,
|
|
30
31
|
WrapperWindowModalStyled as b
|
|
31
32
|
};
|