@m4l/components 9.1.100 → 9.1.102
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/@types/export.d.ts +0 -6
- package/@types/types.d.ts +0 -23
- package/components/AccountPopover/AccountPopover.d.ts +0 -4
- package/components/AccountPopover/AccountPopover.styles.js +0 -64
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts +0 -4
- package/components/AccountPopover/subcomponents/MenuPopover/types.d.ts +0 -1
- package/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.d.ts +0 -4
- package/components/AccountPopover/types.d.ts +0 -13
- package/components/AppBar/AppBar.d.ts +0 -4
- package/components/AppBar/styles.js +0 -33
- package/components/AppBar/types.d.ts +0 -8
- package/components/BaseModule/BaseModule.d.ts +0 -4
- package/components/Chip/Chip.d.ts +0 -4
- package/components/Chip/ChipStyles.js +0 -20
- package/components/Chip/types.d.ts +0 -15
- package/components/Color/Color.d.ts +0 -4
- package/components/Color/Color.styles.js +0 -4
- package/components/Color/types.d.ts +0 -8
- package/components/CommonActions/components/ActionCancel/ActionCancel.d.ts +0 -4
- package/components/CommonActions/components/ActionFormCancel/index.d.ts +0 -4
- package/components/CommonActions/components/ActionFormIntro/index.d.ts +0 -4
- package/components/CommonActions/components/ActionIntro/ActionIntro.d.ts +0 -4
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.d.ts +0 -4
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +0 -4
- package/components/DataGrid/dictionary.d.ts +0 -4
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +0 -4
- package/components/DragResizeWindow/DragResizeWindow.d.ts +0 -4
- package/components/DragResizeWindow/DragResizeWindow.styles.d.ts +0 -1
- package/components/DragResizeWindow/DragResizeWindow.styles.js +0 -8
- package/components/DragResizeWindow/helpers/index.d.ts +0 -4
- package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +0 -4
- package/components/DragResizeWindow/hooks/useDragOptions.d.ts +0 -4
- package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +0 -4
- package/components/DragResizeWindow/types.d.ts +0 -19
- package/components/DragResizeWindow/utils.d.ts +0 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.d.ts +0 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +0 -4
- package/components/DynamicFilter/types.d.ts +0 -18
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.d.ts +0 -4
- package/components/GridLayout/styles.js +0 -11
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +0 -3
- package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +0 -4
- package/components/HelperError/HelperError.d.ts +0 -4
- package/components/HelperError/HelperError.styles.js +0 -8
- package/components/Icon/Icon.d.ts +0 -4
- package/components/Icon/Icon.styles.js +0 -12
- package/components/Image/Image.d.ts +0 -5
- package/components/Image/hoc/WithTrackWindowScroll.d.ts +0 -4
- package/components/Image/image.styles.js +0 -13
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +0 -5
- package/components/Image/utils/get-scroll-ancestor.d.ts +0 -4
- package/components/Image/utils/isIntersectionObserverAvailable.d.ts +0 -4
- package/components/Label/Label.d.ts +0 -4
- package/components/Label/Label.styles.js +0 -20
- package/components/LanguagePopover/LanguagePopover.d.ts +0 -5
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +0 -4
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.styles.js +0 -4
- package/components/Loadable/index.d.ts +0 -8
- package/components/LoadingError/LoadingError.d.ts +0 -5
- package/components/MFIsolationApp/MFIsolationApp.d.ts +0 -4
- package/components/MFLoader/MFLoader.d.ts +0 -6
- package/components/MFLoader/MFLoader.js +0 -3
- package/components/MenuActions/MenuActions.d.ts +0 -4
- package/components/MenuActions/MenuActions.styles.d.ts +0 -1
- package/components/MenuActions/MenuActions.styles.js +0 -24
- package/components/MenuActions/dictionary.d.ts +0 -14
- package/components/MenuActions/types.d.ts +0 -32
- package/components/ModalDialog/ModalDialog.d.ts +0 -6
- package/components/ModalDialog/ModalDialog.styles.js +0 -12
- package/components/ObjectLogs/index.d.ts +0 -4
- package/components/PDFViewer/PDFViewer.d.ts +0 -4
- package/components/Pager/Pager.d.ts +0 -4
- package/components/Pager/Pager.styles.js +0 -32
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.d.ts +0 -4
- package/components/Pager/subcomponents/CustomTablePagination/types.d.ts +0 -15
- package/components/Pager/subcomponents/PagerActions/PagerActions.d.ts +0 -4
- package/components/Pager/types.d.ts +0 -5
- package/components/PaperForm/PaperForm.d.ts +0 -4
- package/components/PaperForm/components/Header.d.ts +0 -4
- package/components/PaperForm/styles.js +0 -20
- package/components/PrintingSystem/types.d.ts +0 -23
- package/components/PrintingSystem/utils/PageRender/index.d.ts +0 -4
- package/components/PropertyValue/PropertyValue.d.ts +0 -4
- package/components/PropertyValue/PropertyValue.styles.js +0 -12
- package/components/SideBar/SideBar.d.ts +0 -4
- package/components/SideBar/context/sideBarContext/index.d.ts +0 -7
- package/components/SideBar/context/sideBarContext/types.d.ts +0 -5
- package/components/SideBar/helpers/getDataToSkeleton/index.d.ts +0 -4
- package/components/SideBar/helpers/getMenuDataWithState/index.d.ts +0 -4
- package/components/SideBar/subcomponents/ContentComponent/index.d.ts +0 -4
- package/components/SideBar/subcomponents/ContentComponent/style.js +0 -4
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +0 -4
- package/components/SideBar/subcomponents/ContentGroups/styles.js +0 -20
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.d.ts +0 -4
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +0 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.d.ts +0 -4
- package/components/SideBar/subcomponents/FooterSidebar/index.d.ts +0 -4
- package/components/SideBar/subcomponents/FooterSidebar/styles.js +0 -4
- package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +0 -4
- package/components/SideBar/subcomponents/HeaderSidebar/styles.js +0 -8
- package/components/SideBar/subcomponents/SideBarDesktop/index.d.ts +0 -4
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +0 -12
- package/components/SideBar/subcomponents/SideBarMobile/index.d.ts +0 -4
- package/components/SideBar/subcomponents/SideBarMobile/styles.js +0 -4
- package/components/SideBar/subcomponents/SideBarMobile/subcomponents/Drawer.d.ts +0 -4
- package/components/SideBar/tests/utils.d.ts +0 -16
- package/components/SideBar/types.d.ts +0 -19
- package/components/ToastContainer/ToastContainer.d.ts +0 -4
- package/components/ToastContainer/ToastContainer.stories.d.ts +0 -4
- package/components/ToastContainer/subcomponents/ToastMessage/useToastMessage.d.ts +0 -4
- package/components/WindowBase/WindowBase.d.ts +0 -4
- package/components/WindowBase/WindowBase.styles.d.ts +0 -4
- package/components/WindowBase/WindowBase.styles.js +0 -52
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +0 -4
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +0 -4
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +0 -11
- package/components/WindowBase/types.d.ts +0 -27
- package/components/WindowConfirm/WindowConfirm.d.ts +0 -4
- package/components/WindowConfirm/WindowConfirm.styles.js +0 -32
- package/components/WindowConfirm/subcomponents/MessageIllustration/MessageIllustration.d.ts +0 -4
- package/components/WindowConfirm/types.d.ts +0 -5
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +0 -4
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +1 -77
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +1 -4
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.d.ts +0 -4
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +0 -4
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +0 -4
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +0 -4
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +0 -4
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/PanelWindowPopUp.d.ts +0 -4
- package/components/areas/components/AreasViewer/classes/index.d.ts +0 -4
- package/components/areas/components/AreasViewer/styles.js +0 -13
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/InnerForHooks/index.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +0 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.js +0 -8
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow/useWindow.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +0 -36
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +0 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.d.ts +0 -4
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +0 -4
- package/components/areas/contexts/AreasContext/helpers/getWindowForAreaTest.d.ts +33 -0
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +1 -36
- package/components/areas/contexts/AreasContext/helpers/helper.js +10 -7
- package/components/areas/contexts/AreasContext/index.d.ts +0 -5
- package/components/areas/contexts/AreasContext/store.d.ts +0 -4
- package/components/areas/contexts/AreasContext/store.js +30 -140
- package/components/areas/contexts/AreasContext/tests/fnNetworkImplementation.d.ts +1 -0
- package/components/areas/contexts/AreasContext/types.d.ts +0 -53
- package/components/areas/types.d.ts +0 -27
- package/components/commercial/HamburgerMenu/HamburgerMenu.d.ts +0 -6
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.d.ts +0 -4
- package/components/extended/React-Resizable/Resizable/Resizable.d.ts +0 -4
- package/components/extended/React-Resizable/ResizableBox/ResizableBox.d.ts +0 -4
- package/components/extended/React-Resizable/ResizableBox/ResizeableBox.styles.js +0 -4
- package/components/extended/React-Resizable/ResizableBox/types.d.ts +0 -4
- package/components/extended/React-Resizable/helpers.d.ts +0 -4
- package/components/extended/React-Resizable/hooks/useResizable.d.ts +0 -4
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.d.ts +0 -4
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js +0 -8
- package/components/formatters/BooleanFormatter/BooleanFormatter.d.ts +0 -4
- package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +0 -4
- package/components/formatters/DateFormatter/DateFormatter.d.ts +0 -8
- package/components/formatters/DateFormatter/DateFormatter.styles.js +0 -4
- package/components/formatters/PeriodFormatter/PeriodFormatter.d.ts +0 -8
- package/components/formatters/PeriodFormatter/PeriodFormatter.styles.js +0 -8
- package/components/formatters/PeriodFormatter/dictionary.d.ts +0 -4
- package/components/formatters/PointsFormatter/PointsFormatter.d.ts +0 -8
- package/components/formatters/PointsFormatter/PointsFormatter.styles.js +0 -4
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +0 -8
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +0 -4
- package/components/hook-form/RHFAutocomplete/types.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +0 -4
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +0 -5
- package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +0 -4
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.d.ts +0 -1
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +0 -4
- package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +0 -4
- package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +0 -4
- package/components/hook-form/RHFNumberInput/RHFNumberInput.d.ts +0 -4
- package/components/hook-form/RHFPeriod/RHFPeriod.d.ts +0 -4
- package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +0 -20
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.d.ts +0 -4
- package/components/hook-form/RHFPeriod/types.d.ts +0 -4
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +0 -4
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +0 -8
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +0 -4
- package/components/maps/components/Map/Map.d.ts +0 -4
- package/components/maps/components/Map/contexts/MapContext/store.d.ts +0 -5
- package/components/maps/components/Map/contexts/MapContext/store.js +0 -424
- package/components/maps/components/Map/external/googleMutant/index.d.ts +0 -25
- package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +0 -4
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +0 -1
- package/components/maps/components/MapGpsTools/styles.js +0 -3
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +0 -4
- package/components/modal/classes/index.d.ts +0 -4
- package/components/mui_extended/Accordion/Accordion.d.ts +0 -4
- package/components/mui_extended/Accordion/styles.js +0 -24
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +0 -41
- package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +0 -4
- package/components/mui_extended/Autocomplete/types.d.ts +0 -2
- package/components/mui_extended/Avatar/styles.js +0 -4
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +0 -4
- package/components/mui_extended/Badge/Badge.d.ts +0 -4
- package/components/mui_extended/Badge/Badge.styles.js +0 -4
- package/components/mui_extended/Button/Button.d.ts +0 -4
- package/components/mui_extended/Button/ButtonStyles.js +0 -12
- package/components/mui_extended/Button/classes/index.d.ts +0 -4
- package/components/mui_extended/CheckBox/CheckBox.d.ts +0 -4
- package/components/mui_extended/CircularProgress/CircularProgress.d.ts +0 -4
- package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +0 -4
- package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +0 -28
- package/components/mui_extended/Dialog/Dialog.d.ts +0 -4
- package/components/mui_extended/Dialog/Dialog.styles.js +0 -4
- package/components/mui_extended/Divider/Divider.d.ts +0 -4
- package/components/mui_extended/IconButton/IconButton.d.ts +0 -4
- package/components/mui_extended/IconButton/IconButton.styles.js +0 -12
- package/components/mui_extended/ImageButton/ImageButton.d.ts +0 -4
- package/components/mui_extended/LoadingButton/LoadingButton.d.ts +0 -4
- package/components/mui_extended/LoadingButton/LoadingButton.styles.d.ts +0 -1
- package/components/mui_extended/LoadingButton/LoadingButton.styles.js +0 -12
- package/components/mui_extended/MenuDivider/MenuDivider.d.ts +0 -4
- package/components/mui_extended/MenuDivider/MenuDivider.styles.js +0 -8
- package/components/mui_extended/MenuItem/MenuItem.d.ts +0 -4
- package/components/mui_extended/MenuItem/MenuItem.styles.js +0 -36
- package/components/mui_extended/NavLink/NavLink.d.ts +0 -4
- package/components/mui_extended/NavLink/NavLink.styles.js +2 -14
- package/components/mui_extended/Popover/Popover.d.ts +0 -5
- package/components/mui_extended/Popover/Popover.styles.js +0 -8
- package/components/mui_extended/Popper/Popper.d.ts +0 -4
- package/components/mui_extended/Popper/PopperStyles.js +0 -4
- package/components/mui_extended/Popper/types.d.ts +0 -4
- package/components/mui_extended/Select/Select.d.ts +0 -4
- package/components/mui_extended/Select/Select.styles.js +0 -32
- package/components/mui_extended/Select/types.d.ts +0 -11
- package/components/mui_extended/Skeleton/Skeleton.d.ts +0 -4
- package/components/mui_extended/Skeleton/skeleton.styles.js +0 -4
- package/components/mui_extended/Stack/Stack.d.ts +0 -4
- package/components/mui_extended/Tab/Tab.d.ts +0 -4
- package/components/mui_extended/Tab/Tab.styles.d.ts +0 -1
- package/components/mui_extended/Tab/Tab.styles.js +0 -10
- package/components/mui_extended/TextField/TextField.d.ts +0 -4
- package/components/mui_extended/TextField/TextField.styles.js +0 -8
- package/components/mui_extended/ToggleButton/ToggleButton.styles.js +0 -4
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.styles.js +0 -4
- package/components/mui_extended/Tooltip/Tooltip.styles.js +0 -4
- package/components/mui_extended/Typography/Typography.d.ts +0 -4
- package/components/mui_extended/Typography/typography.styles.js +0 -8
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +0 -5
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +0 -132
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +0 -61
- package/contexts/ModalContext/index.d.ts +0 -4
- package/contexts/RealTimeContext/store.d.ts +0 -5
- package/contexts/RealTimeContext/store.js +0 -36
- package/hooks/useFormAddEdit/index.d.ts +0 -4
- package/hooks/useFormFocus/index.d.ts +0 -5
- package/hooks/useInterval/index.d.ts +0 -5
- package/hooks/useSizeContainer/index.d.ts +0 -4
- package/hooks/useStateRef/index.d.ts +0 -4
- package/package.json +1 -1
- package/test/HostThemeProviderMock.d.ts +0 -4
- package/test/TestAppWrapper.d.ts +0 -4
- package/test/TestFormAutoValidation.d.ts +0 -4
- package/test/utils.d.ts +0 -7
- package/utils/getComponentSlotRoot.d.ts +0 -4
- package/utils/getHeightSizeStyles.d.ts +0 -4
- package/utils/getTypographyStyles.d.ts +0 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NewWindowProps } from '../../../types';
|
|
2
|
+
export declare const moduleIdsTest: {
|
|
3
|
+
users: {
|
|
4
|
+
moduleId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
roles: {
|
|
8
|
+
moduleId: string;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
calibrations: {
|
|
12
|
+
moduleId: string;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
sensors: {
|
|
16
|
+
moduleId: string;
|
|
17
|
+
title: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
interface WindowForAreaTest {
|
|
21
|
+
title: string;
|
|
22
|
+
moduleId: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* *****************************************************************************************
|
|
26
|
+
* Función que retorna un objeto con la estructura de una ventana para el área de trabajo.
|
|
27
|
+
* @param title Título de la ventana.
|
|
28
|
+
* @param iconUrl Url de la imagen del ícono de la ventana.
|
|
29
|
+
* @param moduleId Identificador del módulo.
|
|
30
|
+
* *****************************************************************************************
|
|
31
|
+
*/
|
|
32
|
+
export declare const getWindowForAreaTest: ({ title, moduleId }: WindowForAreaTest) => NewWindowProps;
|
|
33
|
+
export {};
|
|
@@ -10,6 +10,7 @@ export declare const COOKIE_AREAS_ADMIN_CONTAINER_ID = "areas";
|
|
|
10
10
|
export declare const COOKIE_AREAS_ADMIN_ID = "admin";
|
|
11
11
|
export declare const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
12
12
|
export declare const COOKIE_WINDOWS = "windows";
|
|
13
|
+
export declare const COOKIE_WINDOW_SELECTED = "windowSelected";
|
|
13
14
|
export declare const BREAKPOINT_SIZES: {
|
|
14
15
|
lg: number;
|
|
15
16
|
md: number;
|
|
@@ -54,51 +55,15 @@ export declare const DEFAULT_AREA: Omit<Area, 'id' | 'name' | 'viewMode'>;
|
|
|
54
55
|
* si "loadAreasFromNetwork" esta en true, agrega al backend el área de trabajo
|
|
55
56
|
* @param state
|
|
56
57
|
* @returns
|
|
57
|
-
* @author cesar - automatic
|
|
58
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
59
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
60
|
-
* @updatedUser cesar - automatic
|
|
61
58
|
*/
|
|
62
59
|
export declare const addArea: (state: WritableDraft<AreasStateWithActions>) => string;
|
|
63
60
|
/**
|
|
64
61
|
* Actualiza la clases basado en owner state
|
|
65
62
|
* @param state immer State
|
|
66
|
-
* @author cesar - automatic
|
|
67
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
68
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
69
|
-
* @updatedUser cesar - automatic
|
|
70
63
|
*/
|
|
71
64
|
export declare const updateOwnerStateClasses: (state: WritableDraft<AreasStateWithActions>) => void;
|
|
72
65
|
/**
|
|
73
66
|
* TODO: Documentar
|
|
74
|
-
* @updatedUser cesar - automatic
|
|
75
|
-
* @updatedUser cesar - automatic
|
|
76
|
-
* @updatedUser cesar - automatic
|
|
77
|
-
* @updatedUser cesar - automatic
|
|
78
|
-
* @updatedUser cesar - automatic
|
|
79
|
-
* @updatedUser cesar - automatic
|
|
80
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
81
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
82
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
83
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
84
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
85
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
86
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
87
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
88
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
89
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
90
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
91
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
92
|
-
* @author cesar - automatic
|
|
93
|
-
* @author cesar - automatic
|
|
94
|
-
* @author cesar - automatic
|
|
95
|
-
* @author cesar - automatic
|
|
96
|
-
* @author cesar - automatic
|
|
97
|
-
* @author cesar - automatic
|
|
98
|
-
* @author cesar - automatic
|
|
99
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
100
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
101
|
-
* @updatedUser cesar - automatic
|
|
102
67
|
*/
|
|
103
68
|
export declare const getCurrentArea: (state: WritableDraft<AreasStateWithActions> | AreasStateWithActions) => Area;
|
|
104
69
|
/**
|
|
@@ -10,6 +10,7 @@ const COOKIE_AREAS_ADMIN_CONTAINER_ID = "areas";
|
|
|
10
10
|
const COOKIE_AREAS_ADMIN_ID = "admin";
|
|
11
11
|
const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
12
12
|
const COOKIE_WINDOWS = "windows";
|
|
13
|
+
const COOKIE_WINDOW_SELECTED = "windowSelected";
|
|
13
14
|
const BREAKPOINT_SIZES = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 1 };
|
|
14
15
|
const NORMALIZED_COLS = { lg: 64, md: 48, sm: 32, xs: 24, xxs: 1 };
|
|
15
16
|
const DEFAULT_LAYOUTS = { lg: [], md: [], sm: [], xs: [], xxs: [] };
|
|
@@ -207,14 +208,16 @@ export {
|
|
|
207
208
|
RESPONSIVE_ROW_HEIGHTS as a,
|
|
208
209
|
COOKIE_AREAS_ADMIN_ID as b,
|
|
209
210
|
addArea as c,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
COOKIE_WINDOW_SELECTED as d,
|
|
212
|
+
DEFAULT_WINDOW as e,
|
|
213
|
+
deleteLayoutFromBreakPoints as f,
|
|
213
214
|
getSelectedAreaIdFromCookies as g,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
COOKIE_WINDOWS as h,
|
|
216
|
+
COOKIE_BREAKPOINT_LAYOUTS as i,
|
|
217
|
+
DEBOUCED_SAVE_TIME as j,
|
|
218
|
+
getDataFromResponse as k,
|
|
219
|
+
getParmsFromValue as l,
|
|
220
|
+
getCookiesContainer as m,
|
|
218
221
|
setColapsedLayoutBreakPoints as s,
|
|
219
222
|
updateOwnerStateClasses as u
|
|
220
223
|
};
|
|
@@ -13,14 +13,9 @@ declare const AreasContext: import('react').Context<(Omit<Omit<import('zustand')
|
|
|
13
13
|
* Expone el store (AreasStore) encargado de gestionar la creación, modificación y borrado de las areas de trabajo.
|
|
14
14
|
* @param props
|
|
15
15
|
* @returns
|
|
16
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
17
16
|
*/
|
|
18
17
|
/**
|
|
19
18
|
* TODO: Documentar
|
|
20
|
-
* @author Andrés Quintero - automatic
|
|
21
|
-
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
22
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
23
|
-
* @updatedUser cesar - automatic
|
|
24
19
|
*/
|
|
25
20
|
declare function AreasProvider(props: AreasProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
26
21
|
export { AreasProvider, AreasContext };
|
|
@@ -3,10 +3,6 @@ import { AreasStateWithActions, InitialAreasStoreProps } from './types';
|
|
|
3
3
|
* Crea el Store, por defecto inicia en estado 'init'
|
|
4
4
|
* @param initProps propiedades iniciales del store
|
|
5
5
|
* @returns
|
|
6
|
-
* @author Bruce Escobar - automatic
|
|
7
|
-
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
8
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
9
|
-
* @updatedUser cesar - automatic
|
|
10
6
|
*/
|
|
11
7
|
export declare const createAreasStore: (initProps: InitialAreasStoreProps) => Omit<Omit<import('zustand').StoreApi<AreasStateWithActions>, "setState"> & {
|
|
12
8
|
setState<A extends string | {
|
|
@@ -3,12 +3,12 @@ import { devtools } from "zustand/middleware";
|
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
4
|
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/classes/index.js";
|
|
5
5
|
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/classes/index.js";
|
|
6
|
-
import { u as updateOwnerStateClasses, C as COOKIE_AREAS_ADMIN_CONTAINER_ID, b as COOKIE_AREAS_ADMIN_ID, D as DEFAULT_AREA, c as addArea, g as getSelectedAreaIdFromCookies, d as DEFAULT_WINDOW, a as RESPONSIVE_ROW_HEIGHTS, P as PADDING_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, N as NORMALIZED_COLS,
|
|
6
|
+
import { u as updateOwnerStateClasses, C as COOKIE_AREAS_ADMIN_CONTAINER_ID, b as COOKIE_AREAS_ADMIN_ID, D as DEFAULT_AREA, c as addArea, g as getSelectedAreaIdFromCookies, d as COOKIE_WINDOW_SELECTED, e as DEFAULT_WINDOW, a as RESPONSIVE_ROW_HEIGHTS, P as PADDING_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, N as NORMALIZED_COLS, f as deleteLayoutFromBreakPoints, h as COOKIE_WINDOWS, i as COOKIE_BREAKPOINT_LAYOUTS, j as DEBOUCED_SAVE_TIME, s as setColapsedLayoutBreakPoints, k as getDataFromResponse, l as getParmsFromValue, m as getCookiesContainer } from "./helpers/helper.js";
|
|
7
7
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/store.js";
|
|
8
8
|
import cloneDeep from "lodash-es/cloneDeep";
|
|
9
9
|
import debounce from "lodash-es/debounce";
|
|
10
10
|
import { g as generateModuleCount } from "./helpers/generateModuleCount.js";
|
|
11
|
-
import { g as getCookie,
|
|
11
|
+
import { g as getCookie, d as deleteCookie, s as setCookie } from "../../../../helpers/cookies/cookies.js";
|
|
12
12
|
import { d as addLayoutItemToBreakPoints, e as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
13
13
|
import { k as isEqualLayouts } from "../../../GridLayout/utils.js";
|
|
14
14
|
const createAreasStore = (initProps) => {
|
|
@@ -31,10 +31,6 @@ const createAreasStore = (initProps) => {
|
|
|
31
31
|
areasActions: {
|
|
32
32
|
/**
|
|
33
33
|
* Inicializa el store de areas
|
|
34
|
-
* @author Bruce Escobar - automatic
|
|
35
|
-
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
36
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
37
|
-
* @updatedUser cesar - automatic
|
|
38
34
|
*/
|
|
39
35
|
init: () => {
|
|
40
36
|
if (get().ownerState.status !== "init") {
|
|
@@ -104,10 +100,6 @@ const createAreasStore = (initProps) => {
|
|
|
104
100
|
},
|
|
105
101
|
/**
|
|
106
102
|
* Acción encargada de añadir un área de trabajo en blanco
|
|
107
|
-
* @author cesar - automatic
|
|
108
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
109
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
110
|
-
* @updatedUser cesar - automatic
|
|
111
103
|
*/
|
|
112
104
|
addArea: () => {
|
|
113
105
|
let newId = "";
|
|
@@ -119,10 +111,6 @@ const createAreasStore = (initProps) => {
|
|
|
119
111
|
},
|
|
120
112
|
/**
|
|
121
113
|
* editArea store
|
|
122
|
-
* @author cesar - automatic
|
|
123
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
124
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
125
|
-
* @updatedUser cesar - automatic
|
|
126
114
|
*/
|
|
127
115
|
editArea: (areaId, newName) => {
|
|
128
116
|
set((state) => {
|
|
@@ -142,10 +130,6 @@ const createAreasStore = (initProps) => {
|
|
|
142
130
|
},
|
|
143
131
|
/**
|
|
144
132
|
* deleteArea store
|
|
145
|
-
* @author cesar - automatic
|
|
146
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
147
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
148
|
-
* @updatedUser cesar - automatic
|
|
149
133
|
*/
|
|
150
134
|
deleteArea: (areaId) => {
|
|
151
135
|
let selectNewAreaId = "";
|
|
@@ -177,6 +161,12 @@ const createAreasStore = (initProps) => {
|
|
|
177
161
|
toastError: false
|
|
178
162
|
});
|
|
179
163
|
}
|
|
164
|
+
if (state.loadCookiesFromNetwork) {
|
|
165
|
+
deleteCookie({
|
|
166
|
+
networkOperation: get().networkOperation,
|
|
167
|
+
data: { f: [{ n: "container_id", o: "c", o1: areaId }] }
|
|
168
|
+
});
|
|
169
|
+
}
|
|
180
170
|
});
|
|
181
171
|
if (selectNewAreaId) {
|
|
182
172
|
get().areasActions.selectArea(selectNewAreaId);
|
|
@@ -184,10 +174,6 @@ const createAreasStore = (initProps) => {
|
|
|
184
174
|
},
|
|
185
175
|
/**
|
|
186
176
|
* selectArea store
|
|
187
|
-
* @author cesar - automatic
|
|
188
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
189
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
190
|
-
* @updatedUser cesar - automatic
|
|
191
177
|
*/
|
|
192
178
|
selectArea: (areaId) => {
|
|
193
179
|
set((state) => {
|
|
@@ -207,7 +193,6 @@ const createAreasStore = (initProps) => {
|
|
|
207
193
|
});
|
|
208
194
|
}
|
|
209
195
|
}
|
|
210
|
-
if (get().hashAreas[areaId].maximizedId !== void 0) ;
|
|
211
196
|
setCookie({
|
|
212
197
|
networkOperation: get().networkOperation,
|
|
213
198
|
endPoint: `${COOKIE_AREAS_ADMIN_CONTAINER_ID}/${COOKIE_AREAS_ADMIN_ID}`,
|
|
@@ -216,10 +201,6 @@ const createAreasStore = (initProps) => {
|
|
|
216
201
|
},
|
|
217
202
|
/**
|
|
218
203
|
* setHandlerGetLabel
|
|
219
|
-
* @author cesar - automatic
|
|
220
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
221
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
222
|
-
* @updatedUser cesar - automatic
|
|
223
204
|
*/
|
|
224
205
|
setHandlerGetLabel: (newHandler) => {
|
|
225
206
|
set((state) => {
|
|
@@ -228,10 +209,6 @@ const createAreasStore = (initProps) => {
|
|
|
228
209
|
},
|
|
229
210
|
/**
|
|
230
211
|
* setExternalState
|
|
231
|
-
* @author cesar - automatic
|
|
232
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
233
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
234
|
-
* @updatedUser cesar - automatic
|
|
235
212
|
*/
|
|
236
213
|
setExternalState: (newExternalState) => {
|
|
237
214
|
set((state) => {
|
|
@@ -243,10 +220,6 @@ const createAreasStore = (initProps) => {
|
|
|
243
220
|
areaActions: {
|
|
244
221
|
/**
|
|
245
222
|
* addWindow store
|
|
246
|
-
* @author cesar - automatic
|
|
247
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
248
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
249
|
-
* @updatedUser cesar - automatic
|
|
250
223
|
*/
|
|
251
224
|
addWindow: (newWindowProps) => {
|
|
252
225
|
const windowId = `${get().currentAreaId}_window_${(/* @__PURE__ */ new Date()).getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
@@ -255,13 +228,14 @@ const createAreasStore = (initProps) => {
|
|
|
255
228
|
} else if (newWindowProps.emergeType === "modal") {
|
|
256
229
|
get().areaActions.addWindowModal(get().currentAreaId, windowId, newWindowProps);
|
|
257
230
|
}
|
|
231
|
+
setCookie({
|
|
232
|
+
networkOperation: get().networkOperation,
|
|
233
|
+
endPoint: `${get().currentAreaId}/${COOKIE_WINDOW_SELECTED}`,
|
|
234
|
+
value: { currentLayoutId: windowId }
|
|
235
|
+
});
|
|
258
236
|
},
|
|
259
237
|
/**
|
|
260
238
|
* addLayout store
|
|
261
|
-
* @author cesar - automatic
|
|
262
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
263
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
264
|
-
* @updatedUser cesar - automatic
|
|
265
239
|
*/
|
|
266
240
|
addLayout: (areaId, windowId, newWindowProps) => {
|
|
267
241
|
let previousId = windowId;
|
|
@@ -335,10 +309,6 @@ const createAreasStore = (initProps) => {
|
|
|
335
309
|
},
|
|
336
310
|
/**
|
|
337
311
|
* closeLayout
|
|
338
|
-
* @author cesar - automatic
|
|
339
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
340
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
341
|
-
* @updatedUser cesar - automatic
|
|
342
312
|
*/
|
|
343
313
|
closeLayout: (areaId, removeLayoutId) => {
|
|
344
314
|
set((state) => {
|
|
@@ -364,13 +334,15 @@ const createAreasStore = (initProps) => {
|
|
|
364
334
|
get().areaActions.closeLayout(areaId, layoutItem.windowId);
|
|
365
335
|
}
|
|
366
336
|
}
|
|
337
|
+
if (get().hashAreas[areaId].currentLayoutId === removeLayoutId) {
|
|
338
|
+
deleteCookie({
|
|
339
|
+
networkOperation: get().networkOperation,
|
|
340
|
+
data: { f: [{ n: "id", o: "e", o1: COOKIE_WINDOW_SELECTED }] }
|
|
341
|
+
});
|
|
342
|
+
}
|
|
367
343
|
},
|
|
368
344
|
/**
|
|
369
345
|
* saveLayouts
|
|
370
|
-
* @author cesar - automatic
|
|
371
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
372
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
373
|
-
* @updatedUser cesar - automatic
|
|
374
346
|
*/
|
|
375
347
|
saveLayouts: (areaId) => {
|
|
376
348
|
let nrKeys = 0;
|
|
@@ -417,10 +389,6 @@ const createAreasStore = (initProps) => {
|
|
|
417
389
|
},
|
|
418
390
|
/**
|
|
419
391
|
* closeWindowModal
|
|
420
|
-
* @author cesar - automatic
|
|
421
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
422
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
423
|
-
* @updatedUser cesar - automatic
|
|
424
392
|
*/
|
|
425
393
|
closeWindowModal: (removeModalId) => {
|
|
426
394
|
set((state) => {
|
|
@@ -434,10 +402,6 @@ const createAreasStore = (initProps) => {
|
|
|
434
402
|
},
|
|
435
403
|
/**
|
|
436
404
|
* addWindowModal
|
|
437
|
-
* @author cesar - automatic
|
|
438
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
439
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
440
|
-
* @updatedUser cesar - automatic
|
|
441
405
|
*/
|
|
442
406
|
addWindowModal: (areaId, windowId, newWindowModalProps) => {
|
|
443
407
|
set((state) => {
|
|
@@ -496,10 +460,6 @@ const createAreasStore = (initProps) => {
|
|
|
496
460
|
),
|
|
497
461
|
/**
|
|
498
462
|
* onBreakpointsLayoutsChange
|
|
499
|
-
* @author cesar - automatic
|
|
500
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
501
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
502
|
-
* @updatedUser cesar - automatic
|
|
503
463
|
*/
|
|
504
464
|
onBreakpointsLayoutsChange: (areaId, _currentLayout, newAllLayouts) => {
|
|
505
465
|
if (!isEqualLayouts(get().hashAreas[areaId].layouts, newAllLayouts)) {
|
|
@@ -513,10 +473,6 @@ const createAreasStore = (initProps) => {
|
|
|
513
473
|
},
|
|
514
474
|
/**
|
|
515
475
|
* containerChange
|
|
516
|
-
* @author cesar - automatic
|
|
517
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
518
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
519
|
-
* @updatedUser cesar - automatic
|
|
520
476
|
*/
|
|
521
477
|
onContainerChange: (areaId, e) => {
|
|
522
478
|
set((state) => {
|
|
@@ -526,10 +482,6 @@ const createAreasStore = (initProps) => {
|
|
|
526
482
|
},
|
|
527
483
|
/**
|
|
528
484
|
* selectLayout
|
|
529
|
-
* @author cesar - automatic
|
|
530
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
531
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
532
|
-
* @updatedUser cesar - automatic
|
|
533
485
|
*/
|
|
534
486
|
selectLayout: (areaId, layoutId) => {
|
|
535
487
|
set((state) => {
|
|
@@ -553,14 +505,15 @@ const createAreasStore = (initProps) => {
|
|
|
553
505
|
state.currentModuleId = "";
|
|
554
506
|
}
|
|
555
507
|
}
|
|
508
|
+
setCookie({
|
|
509
|
+
networkOperation: get().networkOperation,
|
|
510
|
+
endPoint: `${area.id}/${COOKIE_WINDOW_SELECTED}`,
|
|
511
|
+
value: { currentLayoutId: layoutId }
|
|
512
|
+
});
|
|
556
513
|
});
|
|
557
514
|
},
|
|
558
515
|
/**
|
|
559
516
|
* unColapseLayoutItem
|
|
560
|
-
* @author cesar - automatic
|
|
561
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
562
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
563
|
-
* @updatedUser cesar - automatic
|
|
564
517
|
*/
|
|
565
518
|
unColapseLayoutItem: (areaId, layoutId) => {
|
|
566
519
|
set((state) => {
|
|
@@ -569,10 +522,6 @@ const createAreasStore = (initProps) => {
|
|
|
569
522
|
},
|
|
570
523
|
/**
|
|
571
524
|
* colapseLayoutItem
|
|
572
|
-
* @author cesar - automatic
|
|
573
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
574
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
575
|
-
* @updatedUser cesar - automatic
|
|
576
525
|
*/
|
|
577
526
|
colapseLayoutItem: (areaId, layoutId) => {
|
|
578
527
|
if (!get().hashAreas[areaId].maximizedId && get().hashWindows[layoutId]) {
|
|
@@ -583,10 +532,6 @@ const createAreasStore = (initProps) => {
|
|
|
583
532
|
},
|
|
584
533
|
/**
|
|
585
534
|
* minimizeLayout
|
|
586
|
-
* @author cesar - automatic
|
|
587
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
588
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
589
|
-
* @updatedUser cesar - automatic
|
|
590
535
|
*/
|
|
591
536
|
maximizeLayout: (areaId, layoutId) => {
|
|
592
537
|
set((state) => {
|
|
@@ -607,10 +552,6 @@ const createAreasStore = (initProps) => {
|
|
|
607
552
|
},
|
|
608
553
|
/**
|
|
609
554
|
* normalizeLayouts
|
|
610
|
-
* @author cesar - automatic
|
|
611
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
612
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
613
|
-
* @updatedUser cesar - automatic
|
|
614
555
|
*/
|
|
615
556
|
normalizeLayouts: (areaId) => {
|
|
616
557
|
set((state) => {
|
|
@@ -629,10 +570,6 @@ const createAreasStore = (initProps) => {
|
|
|
629
570
|
},
|
|
630
571
|
/**
|
|
631
572
|
* loadWindowsFromApi
|
|
632
|
-
* @author cesar - automatic
|
|
633
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
634
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
635
|
-
* @updatedUser cesar - automatic
|
|
636
573
|
*/
|
|
637
574
|
loadWindowsFromApi: (areaId) => {
|
|
638
575
|
const area = get().hashAreas[areaId];
|
|
@@ -659,10 +596,11 @@ const createAreasStore = (initProps) => {
|
|
|
659
596
|
if (!area2) {
|
|
660
597
|
return;
|
|
661
598
|
}
|
|
599
|
+
const dataResponse = response.data;
|
|
662
600
|
set((state) => {
|
|
663
601
|
const area3 = state.hashAreas[areaId];
|
|
664
602
|
const { newBreakPointsLayouts, newHashLayoutItems } = getDataFromResponse(
|
|
665
|
-
|
|
603
|
+
dataResponse,
|
|
666
604
|
state,
|
|
667
605
|
areaId
|
|
668
606
|
);
|
|
@@ -670,6 +608,10 @@ const createAreasStore = (initProps) => {
|
|
|
670
608
|
area3.layoutItemsIds = newHashLayoutItems;
|
|
671
609
|
area3.status = "loaded";
|
|
672
610
|
});
|
|
611
|
+
const layoutSelected = getParmsFromValue(COOKIE_WINDOW_SELECTED, dataResponse);
|
|
612
|
+
if (layoutSelected) {
|
|
613
|
+
get().areaActions.selectLayout(areaId, layoutSelected.currentLayoutId);
|
|
614
|
+
}
|
|
673
615
|
}).catch((_response) => {
|
|
674
616
|
set((state) => {
|
|
675
617
|
state.hashAreas[areaId].status = "loaded";
|
|
@@ -832,10 +774,6 @@ const createAreasStore = (initProps) => {
|
|
|
832
774
|
windowActions: {
|
|
833
775
|
/**
|
|
834
776
|
* setActions
|
|
835
|
-
* @author cesar - automatic
|
|
836
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
837
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
838
|
-
* @updatedUser cesar - automatic
|
|
839
777
|
*/
|
|
840
778
|
setActions: (windowId, newActions, version) => {
|
|
841
779
|
set((state) => {
|
|
@@ -847,10 +785,6 @@ const createAreasStore = (initProps) => {
|
|
|
847
785
|
},
|
|
848
786
|
/**
|
|
849
787
|
* getCookie
|
|
850
|
-
* @author cesar - automatic
|
|
851
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
852
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
853
|
-
* @updatedUser cesar - automatic
|
|
854
788
|
*/
|
|
855
789
|
getCookie: (windowId, id) => {
|
|
856
790
|
if (get().hashWindows[windowId]) {
|
|
@@ -860,10 +794,6 @@ const createAreasStore = (initProps) => {
|
|
|
860
794
|
},
|
|
861
795
|
/**
|
|
862
796
|
* getCookies
|
|
863
|
-
* @author cesar - automatic
|
|
864
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
865
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
866
|
-
* @updatedUser cesar - automatic
|
|
867
797
|
*/
|
|
868
798
|
getCookies: (windowId, type) => {
|
|
869
799
|
if (get().hashWindows[windowId]) {
|
|
@@ -877,10 +807,6 @@ const createAreasStore = (initProps) => {
|
|
|
877
807
|
},
|
|
878
808
|
/**
|
|
879
809
|
* setCookie
|
|
880
|
-
* @author cesar - automatic
|
|
881
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
882
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
883
|
-
* @updatedUser cesar - automatic
|
|
884
810
|
*/
|
|
885
811
|
setCookie: (windowId, id, type, cookie) => {
|
|
886
812
|
set((state) => {
|
|
@@ -901,10 +827,6 @@ const createAreasStore = (initProps) => {
|
|
|
901
827
|
},
|
|
902
828
|
/**
|
|
903
829
|
* close window
|
|
904
|
-
* @author cesar - automatic
|
|
905
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
906
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
907
|
-
* @updatedUser cesar - automatic
|
|
908
830
|
*/
|
|
909
831
|
close: (windowId) => {
|
|
910
832
|
const hW = get().hashWindows[windowId];
|
|
@@ -917,10 +839,6 @@ const createAreasStore = (initProps) => {
|
|
|
917
839
|
},
|
|
918
840
|
/**
|
|
919
841
|
* startProgress
|
|
920
|
-
* @author cesar - automatic
|
|
921
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
922
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
923
|
-
* @updatedUser cesar - automatic
|
|
924
842
|
*/
|
|
925
843
|
startProgress: (windowId) => {
|
|
926
844
|
set((state) => {
|
|
@@ -931,10 +849,6 @@ const createAreasStore = (initProps) => {
|
|
|
931
849
|
},
|
|
932
850
|
/**
|
|
933
851
|
* stopProgress
|
|
934
|
-
* @author cesar - automatic
|
|
935
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
936
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
937
|
-
* @updatedUser cesar - automatic
|
|
938
852
|
*/
|
|
939
853
|
stopProgress: (windowId) => {
|
|
940
854
|
set((state) => {
|
|
@@ -945,10 +859,6 @@ const createAreasStore = (initProps) => {
|
|
|
945
859
|
},
|
|
946
860
|
/**
|
|
947
861
|
* loadCookiesFromApi
|
|
948
|
-
* @author cesar - automatic
|
|
949
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
950
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
951
|
-
* @updatedUser cesar - automatic
|
|
952
862
|
*/
|
|
953
863
|
loadCookiesFromApi: (windowId) => {
|
|
954
864
|
const hW = get().hashWindows[windowId];
|
|
@@ -989,10 +899,6 @@ const createAreasStore = (initProps) => {
|
|
|
989
899
|
},
|
|
990
900
|
/**
|
|
991
901
|
* saveModuleCookies
|
|
992
|
-
* @author cesar - automatic
|
|
993
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
994
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
995
|
-
* @updatedUser cesar - automatic
|
|
996
902
|
*/
|
|
997
903
|
saveModuleCookies: (windowId) => {
|
|
998
904
|
const hW = get().hashWindows[windowId];
|
|
@@ -1009,10 +915,6 @@ const createAreasStore = (initProps) => {
|
|
|
1009
915
|
},
|
|
1010
916
|
/**
|
|
1011
917
|
* setModuleCookies
|
|
1012
|
-
* @author cesar - automatic
|
|
1013
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1014
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1015
|
-
* @updatedUser cesar - automatic
|
|
1016
918
|
*/
|
|
1017
919
|
resetModuleCookies: (windowId) => {
|
|
1018
920
|
const hW = get().hashWindows[windowId];
|
|
@@ -1033,10 +935,6 @@ const createAreasStore = (initProps) => {
|
|
|
1033
935
|
},
|
|
1034
936
|
/**
|
|
1035
937
|
* setFnQueryClose
|
|
1036
|
-
* @author cesar - automatic
|
|
1037
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1038
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1039
|
-
* @updatedUser cesar - automatic
|
|
1040
938
|
*/
|
|
1041
939
|
setFnQueryClose: (windowId, fnQueryClose) => {
|
|
1042
940
|
set((state) => {
|
|
@@ -1045,10 +943,6 @@ const createAreasStore = (initProps) => {
|
|
|
1045
943
|
},
|
|
1046
944
|
/**
|
|
1047
945
|
* setWindowTitle
|
|
1048
|
-
* @author cesar - automatic
|
|
1049
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1050
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1051
|
-
* @updatedUser cesar - automatic
|
|
1052
946
|
*/
|
|
1053
947
|
setWindowTitle: (windowId, title) => {
|
|
1054
948
|
set((state) => {
|
|
@@ -1059,10 +953,6 @@ const createAreasStore = (initProps) => {
|
|
|
1059
953
|
areaAdminActions: {
|
|
1060
954
|
/**
|
|
1061
955
|
* setFocus
|
|
1062
|
-
* @author cesar - automatic
|
|
1063
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1064
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1065
|
-
* @updatedUser cesar - automatic
|
|
1066
956
|
*/
|
|
1067
957
|
setFocus: (newValue) => {
|
|
1068
958
|
set((state) => {
|
|
@@ -11,6 +11,7 @@ export declare const endPoints: {
|
|
|
11
11
|
cookies: string;
|
|
12
12
|
cookies_admin: string;
|
|
13
13
|
};
|
|
14
|
+
export declare const windowSelected = "windowSelected";
|
|
14
15
|
/**
|
|
15
16
|
* Función para ser usada como una implementación de mock
|
|
16
17
|
* de la función networkOperation del hook useNetwork.
|