@m4l/components 9.1.101 → 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/helper.d.ts +0 -36
- 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 +0 -136
- 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
|
@@ -55,51 +55,15 @@ export declare const DEFAULT_AREA: Omit<Area, 'id' | 'name' | 'viewMode'>;
|
|
|
55
55
|
* si "loadAreasFromNetwork" esta en true, agrega al backend el área de trabajo
|
|
56
56
|
* @param state
|
|
57
57
|
* @returns
|
|
58
|
-
* @author cesar - automatic
|
|
59
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
60
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
61
|
-
* @updatedUser cesar - automatic
|
|
62
58
|
*/
|
|
63
59
|
export declare const addArea: (state: WritableDraft<AreasStateWithActions>) => string;
|
|
64
60
|
/**
|
|
65
61
|
* Actualiza la clases basado en owner state
|
|
66
62
|
* @param state immer State
|
|
67
|
-
* @author cesar - automatic
|
|
68
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
69
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
70
|
-
* @updatedUser cesar - automatic
|
|
71
63
|
*/
|
|
72
64
|
export declare const updateOwnerStateClasses: (state: WritableDraft<AreasStateWithActions>) => void;
|
|
73
65
|
/**
|
|
74
66
|
* TODO: Documentar
|
|
75
|
-
* @updatedUser cesar - automatic
|
|
76
|
-
* @updatedUser cesar - automatic
|
|
77
|
-
* @updatedUser cesar - automatic
|
|
78
|
-
* @updatedUser cesar - automatic
|
|
79
|
-
* @updatedUser cesar - automatic
|
|
80
|
-
* @updatedUser cesar - 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
|
-
* @updatedAt 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
|
-
* @createdAt 2025-02-07 08:26:22 - 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
|
-
* @author cesar - automatic
|
|
100
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
101
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
102
|
-
* @updatedUser cesar - automatic
|
|
103
67
|
*/
|
|
104
68
|
export declare const getCurrentArea: (state: WritableDraft<AreasStateWithActions> | AreasStateWithActions) => Area;
|
|
105
69
|
/**
|
|
@@ -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 | {
|
|
@@ -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 = "";
|
|
@@ -190,10 +174,6 @@ const createAreasStore = (initProps) => {
|
|
|
190
174
|
},
|
|
191
175
|
/**
|
|
192
176
|
* selectArea store
|
|
193
|
-
* @author cesar - automatic
|
|
194
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
195
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
196
|
-
* @updatedUser cesar - automatic
|
|
197
177
|
*/
|
|
198
178
|
selectArea: (areaId) => {
|
|
199
179
|
set((state) => {
|
|
@@ -221,10 +201,6 @@ const createAreasStore = (initProps) => {
|
|
|
221
201
|
},
|
|
222
202
|
/**
|
|
223
203
|
* setHandlerGetLabel
|
|
224
|
-
* @author cesar - automatic
|
|
225
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
226
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
227
|
-
* @updatedUser cesar - automatic
|
|
228
204
|
*/
|
|
229
205
|
setHandlerGetLabel: (newHandler) => {
|
|
230
206
|
set((state) => {
|
|
@@ -233,10 +209,6 @@ const createAreasStore = (initProps) => {
|
|
|
233
209
|
},
|
|
234
210
|
/**
|
|
235
211
|
* setExternalState
|
|
236
|
-
* @author cesar - automatic
|
|
237
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
238
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
239
|
-
* @updatedUser cesar - automatic
|
|
240
212
|
*/
|
|
241
213
|
setExternalState: (newExternalState) => {
|
|
242
214
|
set((state) => {
|
|
@@ -248,10 +220,6 @@ const createAreasStore = (initProps) => {
|
|
|
248
220
|
areaActions: {
|
|
249
221
|
/**
|
|
250
222
|
* addWindow store
|
|
251
|
-
* @author cesar - automatic
|
|
252
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
253
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
254
|
-
* @updatedUser cesar - automatic
|
|
255
223
|
*/
|
|
256
224
|
addWindow: (newWindowProps) => {
|
|
257
225
|
const windowId = `${get().currentAreaId}_window_${(/* @__PURE__ */ new Date()).getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
@@ -268,10 +236,6 @@ const createAreasStore = (initProps) => {
|
|
|
268
236
|
},
|
|
269
237
|
/**
|
|
270
238
|
* addLayout store
|
|
271
|
-
* @author cesar - automatic
|
|
272
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
273
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
274
|
-
* @updatedUser cesar - automatic
|
|
275
239
|
*/
|
|
276
240
|
addLayout: (areaId, windowId, newWindowProps) => {
|
|
277
241
|
let previousId = windowId;
|
|
@@ -345,10 +309,6 @@ const createAreasStore = (initProps) => {
|
|
|
345
309
|
},
|
|
346
310
|
/**
|
|
347
311
|
* closeLayout
|
|
348
|
-
* @author cesar - automatic
|
|
349
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
350
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
351
|
-
* @updatedUser cesar - automatic
|
|
352
312
|
*/
|
|
353
313
|
closeLayout: (areaId, removeLayoutId) => {
|
|
354
314
|
set((state) => {
|
|
@@ -383,10 +343,6 @@ const createAreasStore = (initProps) => {
|
|
|
383
343
|
},
|
|
384
344
|
/**
|
|
385
345
|
* saveLayouts
|
|
386
|
-
* @author cesar - automatic
|
|
387
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
388
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
389
|
-
* @updatedUser cesar - automatic
|
|
390
346
|
*/
|
|
391
347
|
saveLayouts: (areaId) => {
|
|
392
348
|
let nrKeys = 0;
|
|
@@ -433,10 +389,6 @@ const createAreasStore = (initProps) => {
|
|
|
433
389
|
},
|
|
434
390
|
/**
|
|
435
391
|
* closeWindowModal
|
|
436
|
-
* @author cesar - automatic
|
|
437
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
438
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
439
|
-
* @updatedUser cesar - automatic
|
|
440
392
|
*/
|
|
441
393
|
closeWindowModal: (removeModalId) => {
|
|
442
394
|
set((state) => {
|
|
@@ -450,10 +402,6 @@ const createAreasStore = (initProps) => {
|
|
|
450
402
|
},
|
|
451
403
|
/**
|
|
452
404
|
* addWindowModal
|
|
453
|
-
* @author cesar - automatic
|
|
454
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
455
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
456
|
-
* @updatedUser cesar - automatic
|
|
457
405
|
*/
|
|
458
406
|
addWindowModal: (areaId, windowId, newWindowModalProps) => {
|
|
459
407
|
set((state) => {
|
|
@@ -512,10 +460,6 @@ const createAreasStore = (initProps) => {
|
|
|
512
460
|
),
|
|
513
461
|
/**
|
|
514
462
|
* onBreakpointsLayoutsChange
|
|
515
|
-
* @author cesar - automatic
|
|
516
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
517
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
518
|
-
* @updatedUser cesar - automatic
|
|
519
463
|
*/
|
|
520
464
|
onBreakpointsLayoutsChange: (areaId, _currentLayout, newAllLayouts) => {
|
|
521
465
|
if (!isEqualLayouts(get().hashAreas[areaId].layouts, newAllLayouts)) {
|
|
@@ -529,10 +473,6 @@ const createAreasStore = (initProps) => {
|
|
|
529
473
|
},
|
|
530
474
|
/**
|
|
531
475
|
* containerChange
|
|
532
|
-
* @author cesar - automatic
|
|
533
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
534
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
535
|
-
* @updatedUser cesar - automatic
|
|
536
476
|
*/
|
|
537
477
|
onContainerChange: (areaId, e) => {
|
|
538
478
|
set((state) => {
|
|
@@ -542,10 +482,6 @@ const createAreasStore = (initProps) => {
|
|
|
542
482
|
},
|
|
543
483
|
/**
|
|
544
484
|
* selectLayout
|
|
545
|
-
* @author cesar - automatic
|
|
546
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
547
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
548
|
-
* @updatedUser cesar - automatic
|
|
549
485
|
*/
|
|
550
486
|
selectLayout: (areaId, layoutId) => {
|
|
551
487
|
set((state) => {
|
|
@@ -578,10 +514,6 @@ const createAreasStore = (initProps) => {
|
|
|
578
514
|
},
|
|
579
515
|
/**
|
|
580
516
|
* unColapseLayoutItem
|
|
581
|
-
* @author cesar - automatic
|
|
582
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
583
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
584
|
-
* @updatedUser cesar - automatic
|
|
585
517
|
*/
|
|
586
518
|
unColapseLayoutItem: (areaId, layoutId) => {
|
|
587
519
|
set((state) => {
|
|
@@ -590,10 +522,6 @@ const createAreasStore = (initProps) => {
|
|
|
590
522
|
},
|
|
591
523
|
/**
|
|
592
524
|
* colapseLayoutItem
|
|
593
|
-
* @author cesar - automatic
|
|
594
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
595
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
596
|
-
* @updatedUser cesar - automatic
|
|
597
525
|
*/
|
|
598
526
|
colapseLayoutItem: (areaId, layoutId) => {
|
|
599
527
|
if (!get().hashAreas[areaId].maximizedId && get().hashWindows[layoutId]) {
|
|
@@ -604,10 +532,6 @@ const createAreasStore = (initProps) => {
|
|
|
604
532
|
},
|
|
605
533
|
/**
|
|
606
534
|
* minimizeLayout
|
|
607
|
-
* @author cesar - automatic
|
|
608
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
609
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
610
|
-
* @updatedUser cesar - automatic
|
|
611
535
|
*/
|
|
612
536
|
maximizeLayout: (areaId, layoutId) => {
|
|
613
537
|
set((state) => {
|
|
@@ -628,10 +552,6 @@ const createAreasStore = (initProps) => {
|
|
|
628
552
|
},
|
|
629
553
|
/**
|
|
630
554
|
* normalizeLayouts
|
|
631
|
-
* @author cesar - automatic
|
|
632
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
633
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
634
|
-
* @updatedUser cesar - automatic
|
|
635
555
|
*/
|
|
636
556
|
normalizeLayouts: (areaId) => {
|
|
637
557
|
set((state) => {
|
|
@@ -650,10 +570,6 @@ const createAreasStore = (initProps) => {
|
|
|
650
570
|
},
|
|
651
571
|
/**
|
|
652
572
|
* loadWindowsFromApi
|
|
653
|
-
* @author cesar - automatic
|
|
654
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
655
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
656
|
-
* @updatedUser cesar - automatic
|
|
657
573
|
*/
|
|
658
574
|
loadWindowsFromApi: (areaId) => {
|
|
659
575
|
const area = get().hashAreas[areaId];
|
|
@@ -858,10 +774,6 @@ const createAreasStore = (initProps) => {
|
|
|
858
774
|
windowActions: {
|
|
859
775
|
/**
|
|
860
776
|
* setActions
|
|
861
|
-
* @author cesar - automatic
|
|
862
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
863
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
864
|
-
* @updatedUser cesar - automatic
|
|
865
777
|
*/
|
|
866
778
|
setActions: (windowId, newActions, version) => {
|
|
867
779
|
set((state) => {
|
|
@@ -873,10 +785,6 @@ const createAreasStore = (initProps) => {
|
|
|
873
785
|
},
|
|
874
786
|
/**
|
|
875
787
|
* getCookie
|
|
876
|
-
* @author cesar - automatic
|
|
877
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
878
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
879
|
-
* @updatedUser cesar - automatic
|
|
880
788
|
*/
|
|
881
789
|
getCookie: (windowId, id) => {
|
|
882
790
|
if (get().hashWindows[windowId]) {
|
|
@@ -886,10 +794,6 @@ const createAreasStore = (initProps) => {
|
|
|
886
794
|
},
|
|
887
795
|
/**
|
|
888
796
|
* getCookies
|
|
889
|
-
* @author cesar - automatic
|
|
890
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
891
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
892
|
-
* @updatedUser cesar - automatic
|
|
893
797
|
*/
|
|
894
798
|
getCookies: (windowId, type) => {
|
|
895
799
|
if (get().hashWindows[windowId]) {
|
|
@@ -903,10 +807,6 @@ const createAreasStore = (initProps) => {
|
|
|
903
807
|
},
|
|
904
808
|
/**
|
|
905
809
|
* setCookie
|
|
906
|
-
* @author cesar - automatic
|
|
907
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
908
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
909
|
-
* @updatedUser cesar - automatic
|
|
910
810
|
*/
|
|
911
811
|
setCookie: (windowId, id, type, cookie) => {
|
|
912
812
|
set((state) => {
|
|
@@ -927,10 +827,6 @@ const createAreasStore = (initProps) => {
|
|
|
927
827
|
},
|
|
928
828
|
/**
|
|
929
829
|
* close window
|
|
930
|
-
* @author cesar - automatic
|
|
931
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
932
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
933
|
-
* @updatedUser cesar - automatic
|
|
934
830
|
*/
|
|
935
831
|
close: (windowId) => {
|
|
936
832
|
const hW = get().hashWindows[windowId];
|
|
@@ -943,10 +839,6 @@ const createAreasStore = (initProps) => {
|
|
|
943
839
|
},
|
|
944
840
|
/**
|
|
945
841
|
* startProgress
|
|
946
|
-
* @author cesar - automatic
|
|
947
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
948
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
949
|
-
* @updatedUser cesar - automatic
|
|
950
842
|
*/
|
|
951
843
|
startProgress: (windowId) => {
|
|
952
844
|
set((state) => {
|
|
@@ -957,10 +849,6 @@ const createAreasStore = (initProps) => {
|
|
|
957
849
|
},
|
|
958
850
|
/**
|
|
959
851
|
* stopProgress
|
|
960
|
-
* @author cesar - automatic
|
|
961
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
962
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
963
|
-
* @updatedUser cesar - automatic
|
|
964
852
|
*/
|
|
965
853
|
stopProgress: (windowId) => {
|
|
966
854
|
set((state) => {
|
|
@@ -971,10 +859,6 @@ const createAreasStore = (initProps) => {
|
|
|
971
859
|
},
|
|
972
860
|
/**
|
|
973
861
|
* loadCookiesFromApi
|
|
974
|
-
* @author cesar - automatic
|
|
975
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
976
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
977
|
-
* @updatedUser cesar - automatic
|
|
978
862
|
*/
|
|
979
863
|
loadCookiesFromApi: (windowId) => {
|
|
980
864
|
const hW = get().hashWindows[windowId];
|
|
@@ -1015,10 +899,6 @@ const createAreasStore = (initProps) => {
|
|
|
1015
899
|
},
|
|
1016
900
|
/**
|
|
1017
901
|
* saveModuleCookies
|
|
1018
|
-
* @author cesar - automatic
|
|
1019
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1020
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1021
|
-
* @updatedUser cesar - automatic
|
|
1022
902
|
*/
|
|
1023
903
|
saveModuleCookies: (windowId) => {
|
|
1024
904
|
const hW = get().hashWindows[windowId];
|
|
@@ -1035,10 +915,6 @@ const createAreasStore = (initProps) => {
|
|
|
1035
915
|
},
|
|
1036
916
|
/**
|
|
1037
917
|
* setModuleCookies
|
|
1038
|
-
* @author cesar - automatic
|
|
1039
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1040
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1041
|
-
* @updatedUser cesar - automatic
|
|
1042
918
|
*/
|
|
1043
919
|
resetModuleCookies: (windowId) => {
|
|
1044
920
|
const hW = get().hashWindows[windowId];
|
|
@@ -1059,10 +935,6 @@ const createAreasStore = (initProps) => {
|
|
|
1059
935
|
},
|
|
1060
936
|
/**
|
|
1061
937
|
* setFnQueryClose
|
|
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
938
|
*/
|
|
1067
939
|
setFnQueryClose: (windowId, fnQueryClose) => {
|
|
1068
940
|
set((state) => {
|
|
@@ -1071,10 +943,6 @@ const createAreasStore = (initProps) => {
|
|
|
1071
943
|
},
|
|
1072
944
|
/**
|
|
1073
945
|
* setWindowTitle
|
|
1074
|
-
* @author cesar - automatic
|
|
1075
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1076
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1077
|
-
* @updatedUser cesar - automatic
|
|
1078
946
|
*/
|
|
1079
947
|
setWindowTitle: (windowId, title) => {
|
|
1080
948
|
set((state) => {
|
|
@@ -1085,10 +953,6 @@ const createAreasStore = (initProps) => {
|
|
|
1085
953
|
areaAdminActions: {
|
|
1086
954
|
/**
|
|
1087
955
|
* setFocus
|
|
1088
|
-
* @author cesar - automatic
|
|
1089
|
-
* @createdAt 2025-01-29 16:33:52 - automatic
|
|
1090
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
1091
|
-
* @updatedUser cesar - automatic
|
|
1092
956
|
*/
|
|
1093
957
|
setFocus: (newValue) => {
|
|
1094
958
|
set((state) => {
|
|
@@ -26,7 +26,6 @@ export interface Area {
|
|
|
26
26
|
loadWindows: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* "containerHeight" Altura del contendor de area, se deja en cada área porque solo llegan en eventos de resize cuando está diferente a display "none"
|
|
29
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
30
29
|
*/
|
|
31
30
|
containerHeight?: number;
|
|
32
31
|
currentBreakpoint?: Breakpoint;
|
|
@@ -40,24 +39,19 @@ export interface Area {
|
|
|
40
39
|
}
|
|
41
40
|
/**
|
|
42
41
|
* estado de carga de las areaS de trabajo.
|
|
43
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
44
42
|
*/
|
|
45
43
|
export type AreasStatus = 'init' | 'loading' | 'loaded' | 'error';
|
|
46
44
|
export type OwnerState = {
|
|
47
45
|
/**
|
|
48
46
|
* "isSkeleton" indica si el componente está en skeleton.
|
|
49
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
50
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
51
47
|
*/
|
|
52
48
|
status: AreasStatus;
|
|
53
49
|
/**
|
|
54
50
|
* "readyForHooks" indica si el componente ejecutó el efecto de carga y se suscrubió al eventemitter. Utilizado normalmente en storybook
|
|
55
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
56
51
|
*/
|
|
57
52
|
readyForHooks: boolean;
|
|
58
53
|
/**
|
|
59
54
|
* "isMobile" cuando el navegador está en modo celular
|
|
60
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
61
55
|
*/
|
|
62
56
|
isMobile: boolean;
|
|
63
57
|
/**
|
|
@@ -66,88 +60,69 @@ export type OwnerState = {
|
|
|
66
60
|
isSkeleton: boolean;
|
|
67
61
|
/**
|
|
68
62
|
* focus: Estado de selección asignado por el usuario.
|
|
69
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
70
63
|
*/
|
|
71
64
|
focus: boolean;
|
|
72
65
|
};
|
|
73
66
|
/**
|
|
74
67
|
* Estados que se actulizan por fuera del store, a través de hooks
|
|
75
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
76
68
|
*/
|
|
77
69
|
export type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton' | 'readyForHooks'>;
|
|
78
70
|
/**
|
|
79
71
|
* Interface que define el estado del componente (variables y funciones )
|
|
80
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
81
72
|
*/
|
|
82
73
|
export interface AreasState {
|
|
83
74
|
/**
|
|
84
75
|
* "loadAreasFromNetwork" Indica si se deben cargar/grabar las áreas de trabajo en la API
|
|
85
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
86
76
|
*/
|
|
87
77
|
loadAreasFromNetwork: boolean;
|
|
88
78
|
/**
|
|
89
79
|
* "loadCookiesFromNetwork" Indica si se deben cargar/grabar las cookies en la API
|
|
90
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
91
80
|
*/
|
|
92
81
|
loadCookiesFromNetwork: boolean;
|
|
93
82
|
/**
|
|
94
83
|
* "currentAreaId" Area de trabajo seleccionada
|
|
95
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
96
84
|
*/
|
|
97
85
|
currentAreaId: string;
|
|
98
86
|
/**
|
|
99
87
|
* "currentModuleId" Módulo seleccionado
|
|
100
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
101
88
|
*/
|
|
102
89
|
currentModuleId: string;
|
|
103
90
|
/**
|
|
104
91
|
* "ownerState" enfocado al funcionamiento de las clases
|
|
105
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
106
92
|
*/
|
|
107
93
|
ownerState: OwnerState;
|
|
108
94
|
/**
|
|
109
95
|
* "viwerClasses" enfocado al funcionamiento de las clases a nivel de viewer
|
|
110
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
111
96
|
*/
|
|
112
97
|
viwerClasses: ViwerClasses;
|
|
113
98
|
/**
|
|
114
99
|
* "adminClasses" enfocado al funcionamiento de las clases a nivel de Admin
|
|
115
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
116
100
|
*/
|
|
117
101
|
adminClasses: AdminClasses;
|
|
118
102
|
/**
|
|
119
103
|
* "windowsModals" id de ventans modales abiertas
|
|
120
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
121
104
|
*/
|
|
122
105
|
windowsModals: string[];
|
|
123
106
|
hashWindowsModals: HashWindowsByModals;
|
|
124
107
|
windowModal?: ModalStateProps;
|
|
125
108
|
/**
|
|
126
109
|
* "areasIds" Areas de trabajo para saber en que orden se muestran en el AreasAdmin
|
|
127
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
128
110
|
*/
|
|
129
111
|
areasIds: string[];
|
|
130
112
|
/**
|
|
131
113
|
* "hashAreas" Areas de trabajo
|
|
132
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
133
114
|
*/
|
|
134
115
|
hashAreas: Record<string, Area>;
|
|
135
116
|
/**
|
|
136
117
|
* "hashWindows" Todas las ventanas de todas las áreas cagadas
|
|
137
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
138
118
|
*/
|
|
139
119
|
hashWindows: Record<string, WindowStateProps>;
|
|
140
120
|
/**
|
|
141
121
|
* "networkOperation" funcion que usará el Store para enviar las peticiones de red
|
|
142
|
-
* @author cesar - automatic
|
|
143
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
144
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
145
|
-
* @updatedUser cesar - automatic
|
|
146
122
|
*/
|
|
147
123
|
networkOperation: (props: NetworkProps) => Promise<any>;
|
|
148
124
|
/**
|
|
149
125
|
* "getLabel" funcion que usará para traducir las etiquetas de diccionario
|
|
150
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
151
126
|
*/
|
|
152
127
|
getLabel: GetLabelType;
|
|
153
128
|
}
|
|
@@ -157,30 +132,18 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
157
132
|
* inicializa el store cargando las áreas de trabajo.
|
|
158
133
|
* Una vez termina el proceso, actualiza el estado de carga (ownerState.status) a "loaded".
|
|
159
134
|
* Normalmente es asyncrono en producción por el llamado al endpoint áreas.
|
|
160
|
-
* @author cesar - automatic
|
|
161
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
162
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
163
|
-
* @updatedUser cesar - automatic
|
|
164
135
|
*/
|
|
165
136
|
init: () => void;
|
|
166
137
|
/**
|
|
167
138
|
* Arega un area de trabajo y la selecciona. Adiconalmente limpia el currentModuleId
|
|
168
139
|
* Si esta habilitado "loadAreasFromNetwork" invoca al endpoint de POST de areas
|
|
169
140
|
* @returns id del ara de trabajo
|
|
170
|
-
* @author cesar - automatic
|
|
171
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
172
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
173
|
-
* @updatedUser cesar - automatic
|
|
174
141
|
*/
|
|
175
142
|
addArea: () => string;
|
|
176
143
|
/**
|
|
177
144
|
* Edita el nombre del área de trabajo.
|
|
178
145
|
* Si está habilitado y sincroniza los cambios en la API.
|
|
179
146
|
* @returns nombre del area de trabajo
|
|
180
|
-
* @author cesar - automatic
|
|
181
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
182
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
183
|
-
* @updatedUser cesar - automatic
|
|
184
147
|
*/
|
|
185
148
|
editArea: (idArea: string, newName: string) => void;
|
|
186
149
|
/**
|
|
@@ -190,20 +153,12 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
190
153
|
* Carga adicionalmente las ventanas cuando se seleccione por primera vez si eestá habilitado el uso de API (loadAreasFromNetwork)
|
|
191
154
|
* @param newAreaId Id de area a seleccionar
|
|
192
155
|
* @returns
|
|
193
|
-
* @author cesar - automatic
|
|
194
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
195
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
196
|
-
* @updatedUser cesar - automatic
|
|
197
156
|
*/
|
|
198
157
|
selectArea: (newAreaId: string) => void;
|
|
199
158
|
/**
|
|
200
159
|
* Borra un area de trabajo, si esta activa "loadAreasFromNetwork" llama a la API.
|
|
201
160
|
* @param areaId Id de area a borrar
|
|
202
161
|
* @returns void
|
|
203
|
-
* @author cesar - automatic
|
|
204
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
205
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
206
|
-
* @updatedUser cesar - automatic
|
|
207
162
|
*/
|
|
208
163
|
deleteArea: (areaId: string) => void;
|
|
209
164
|
/**
|
|
@@ -211,20 +166,12 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
211
166
|
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
212
167
|
* cambia por el useCallback, cuando el diccionario se carga.
|
|
213
168
|
* @returns void
|
|
214
|
-
* @author cesar - automatic
|
|
215
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
216
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
217
|
-
* @updatedUser cesar - automatic
|
|
218
169
|
*/
|
|
219
170
|
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
220
171
|
/**
|
|
221
172
|
* Modifica los estados que se actualizan externamente al Store
|
|
222
173
|
* @param newIsMobile
|
|
223
174
|
* @returns
|
|
224
|
-
* @author cesar - automatic
|
|
225
|
-
* @createdAt 2025-02-07 08:26:22 - automatic
|
|
226
|
-
* @updatedAt 2025-02-07 08:26:22 - automatic
|
|
227
|
-
* @updatedUser cesar - automatic
|
|
228
175
|
*/
|
|
229
176
|
setExternalState: (newExternalState: Partial<ExternalOwnerState>) => void;
|
|
230
177
|
};
|