@m4l/components 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +9 -17
- package/assets/Logo.d.ts +1 -2
- package/{commonjs.333e55c7.js → commonjs.565e6834.js} +0 -5
- package/components/AccountPopover/AccountPopover.d.ts +1 -2
- package/components/AccountPopover/{index.e39dc794.js → index.37803642.js} +4 -2
- package/components/AccountPopover/index.d.ts +0 -1
- package/components/AccountPopover/subcomponents/MyAvatar/index.d.ts +1 -2
- package/components/AccountPopover/subcomponents/PopOver/index.d.ts +1 -2
- package/components/AppBar/AppBar.d.ts +1 -26
- package/components/AppBar/classes/index.d.ts +0 -2
- package/components/AppBar/classes/types.d.ts +0 -2
- package/components/AppBar/{index.7b592977.js → index.d17827eb.js} +5 -26
- package/components/AppBar/types.d.ts +0 -14
- package/components/CommonActions/components/ActionCancel/{index.bec75bdf.js → index.6aa59730.js} +2 -2
- package/components/CommonActions/components/ActionCancel/index.d.ts +2 -3
- package/components/CommonActions/components/ActionFormCancel/index.d.ts +1 -2
- package/components/CommonActions/components/ActionFormCancel/{index.9c6a2013.js → index.e6ac3a19.js} +14 -5
- package/components/CommonActions/components/ActionFormIntro/index.d.ts +1 -2
- package/components/CommonActions/components/ActionFormIntro/{index.99f2f1cf.js → index.ebadee33.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.e0150cfc.js → index.33acdebb.js} +2 -2
- package/components/CommonActions/components/ActionIntro/index.d.ts +2 -3
- package/components/CommonActions/components/Actions/index.d.ts +1 -2
- package/components/CommonActions/components/Actions/{index.2f6286eb.js → index.f358ae72.js} +1 -1
- package/components/DataGrid/constants.d.ts +2 -0
- package/components/DataGrid/contexts/DataGridContext/index.d.ts +3 -2
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +2 -2
- package/components/DataGrid/contexts/FilterContext/index.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.d.ts +6 -0
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/types.d.ts +2 -0
- package/components/DataGrid/formatters/columnBooleanFormatter/index.d.ts +1 -2
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +1 -2
- package/components/DataGrid/formatters/columnDateFormatter/index.d.ts +1 -2
- package/components/DataGrid/formatters/columnNestedValueFormatter/index.d.ts +1 -2
- package/components/DataGrid/formatters/columnPointsFormatter/{index.a19b7b90.js → index.5e645334.js} +1 -1
- package/components/DataGrid/formatters/columnPointsFormatter/index.d.ts +1 -2
- package/components/DataGrid/formatters/columnPriceFormatter/index.d.ts +1 -2
- package/components/DataGrid/formatters/columnUncertaintyFormatter/index.d.ts +1 -2
- package/components/DataGrid/index.d.ts +2 -3
- package/components/DataGrid/{index.d5559a4d.js → index.e93a1a31.js} +49 -20
- package/components/DataGrid/subcomponents/Actions/{index.83e2be51.js → index.bcf7a8d7.js} +15 -35
- package/components/DataGrid/subcomponents/Actions/index.d.ts +1 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +1 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index.d.ts +1 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/index.d.ts +1 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +1 -2
- package/components/DataGrid/subcomponents/Table/index.d.ts +2 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.d.ts +13 -14
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.d.ts +1 -2
- package/components/DataGrid/types.d.ts +8 -11
- package/components/DraggableWindow/index.d.ts +1 -2
- package/components/DraggableWindow/{index.f9f067bd.js → index.ddc7327b.js} +1 -1
- package/components/DynamicFilter/DynamicFilter.d.ts +1 -2
- package/components/DynamicFilter/classes/index.d.ts +1 -1
- package/components/DynamicFilter/classes/types.d.ts +0 -1
- package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +1 -1
- package/components/DynamicFilter/{index.e275fed2.js → index.6663cc83.js} +14 -18
- package/components/DynamicFilter/subcomponents/ApplyedFilters/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/FilterButton/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/InputFilter/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/index.d.ts +1 -2
- package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +1 -2
- package/components/GridLayout/{index.e8c04242.js → index.c26989d8.js} +2 -2
- package/components/GridLayout/subcomponents/{GridItem → Griditem}/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Griditem/{index.4d38f12e.js → index.da0a3c47.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.e25df1dc.js → index.2e641db2.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +1 -2
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +1 -1
- package/components/HelmetPage/index.d.ts +1 -2
- package/components/HelperText/index.d.ts +1 -2
- package/components/Icon/Icon.d.ts +1 -2
- package/components/Icon/index.6db034b5.js +147 -0
- package/components/Icon/types.d.ts +0 -1
- package/components/Image/Image.d.ts +1 -2
- package/components/Image/{index.bb1670e5.js → index.2a2e0b27.js} +4 -46
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +1 -2
- package/components/Image/subcomponents/Skeleton/index.d.ts +1 -2
- package/components/Image/types.d.ts +2 -2
- package/components/LanguagePopover/LanguagePopover.d.ts +1 -2
- package/components/LanguagePopover/{index.6ff9df10.js → index.ff7c862e.js} +2 -2
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +1 -2
- package/components/LinearProgressIndeterminate/{index.a0ad2d9e.js → index.7f4ed9b7.js} +1 -1
- package/components/Loadable/index.d.ts +1 -1
- package/components/LoadingError/LoadingError.d.ts +1 -2
- package/components/LoadingError/{index.33ab5063.js → index.0ac9e74d.js} +3 -3
- package/components/MFLoader/MFLoader.d.ts +1 -2
- package/components/MFLoader/{index.ad3b304a.js → index.cd087354.js} +1 -1
- package/components/MFLoader/subcomponents/ProggessLoadingMF/index.d.ts +1 -2
- package/components/ModalDialog/{index.89e26413.js → index.8c4fde10.js} +4 -4
- package/components/NavLink/NavLink.d.ts +1 -2
- package/components/NoItemSelected/{index.f20bbfb3.js → index.afc12ed9.js} +1 -1
- package/components/NoItemSelected/index.d.ts +1 -2
- package/components/ObjectLogs/components/DetailDialog/index.d.ts +1 -2
- package/components/ObjectLogs/components/DetailFormatter/index.d.ts +1 -2
- package/components/ObjectLogs/{index.ce1b4f13.js → index.cb303905.js} +7 -7
- package/components/ObjectLogs/index.d.ts +1 -2
- package/components/Page/{index.6dd70d4c.js → index.190e2356.js} +1 -1
- package/components/PaperForm/PaperForm.d.ts +1 -2
- package/components/PaperForm/components/Header.d.ts +1 -2
- package/components/PaperForm/{index.725aee55.js → index.7a206d69.js} +1 -1
- package/components/Period/Period.d.ts +1 -2
- package/components/Period/{index.b2c8b4f7.js → index.906f1ce2.js} +2 -2
- package/components/PrintingSystem/{index.89c4d0f9.js → index.bbf52442.js} +43 -15
- package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/BodyNode/{index.d1f4b0f6.js → index.ee81edc5.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6744122f.js → index.b56666cf.js} +4 -4
- package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/DividerNode/{index.782756f8.js → index.ca3332b1.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/FooterNode/{index.9feec47b.js → index.932c3e33.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/GridNode/{index.8568b2bc.js → index.16748040.js} +4 -4
- package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.07d6e7f0.js → index.0ddbbbad.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/Pager/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/PaperNode/{index.615ce7d3.js → index.efd9af2f.js} +4 -4
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.e239fdf3.js → index.75ed9752.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/SectionNode/{index.2f445506.js → index.68cac21a.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.828bc8fe.js → index.91ba514f.js} +3 -3
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +1 -2
- package/components/PrintingSystem/types.d.ts +1 -10
- package/components/PrintingSystem/utils/FactoryRender/index.d.ts +1 -2
- package/components/PrintingSystem/utils/PageRender/index.d.ts +1 -2
- package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
- package/components/PropertyValue/PropertyValue.d.ts +1 -2
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/PropertyValue/classes/types.d.ts +1 -4
- package/components/PropertyValue/index.a36c1223.js +220 -0
- package/components/PropertyValue/skeleton.d.ts +2 -0
- package/components/PropertyValue/types.d.ts +7 -5
- package/components/Resizeable/{index.6478d7d8.js → index.383eb1aa.js} +1 -1
- package/components/ResizeableWindow/index.d.ts +1 -2
- package/components/ScrollBar/{index.010f1b9d.js → index.65bb2930.js} +1 -5
- package/components/ScrollBar/index.d.ts +1 -1
- package/components/SideBar/SideBar.d.ts +1 -2
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/context/sideBarContext/index.d.ts +1 -1
- package/components/SideBar/{index.54b616c6.js → index.7e4a79a6.js} +12 -12
- package/components/SideBar/subcomponents/ContentDesktop/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentMobile/index.d.ts +1 -2
- package/components/SideBar/subcomponents/ContentMobile/subcomponents/Drawer.d.ts +1 -2
- package/components/SideBar/types.d.ts +3 -3
- package/components/SplitLayout/SplitLayout.d.ts +1 -2
- package/components/SplitLayout/{index.30fd5861.js → index.9ef430f6.js} +1 -1
- package/components/animate/AnimatedScroll/animatedScroll.d.ts +1 -2
- package/components/animate/LoadingScreen/index.d.ts +1 -2
- package/components/animate/MotionContainer/index.d.ts +1 -2
- package/components/animate/MotionLazyContainer/index.d.ts +1 -1
- package/components/animate/PropagateLoader/index.d.ts +1 -2
- package/components/areas/components/AreasAdmin/{index.2b98920f.js → index.74532c2a.js} +12 -12
- package/components/areas/components/AreasAdmin/index.d.ts +1 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +1 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +1 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +1 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +1 -2
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/{index.7bc64011.js → index.3cd1a452.js} +15 -15
- package/components/areas/components/AreasViewer/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/InnerForHooks/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/skeleton.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/subcomponents/Toasty/index.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/index.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.70716452.js → index.55981647.js} +4 -4
- package/components/areas/contexts/AreasContext/index.d.ts +1 -1
- package/components/areas/contexts/DynamicMFParmsContext/index.d.ts +1 -1
- package/components/areas/contexts/WindowToolsMFContext/index.d.ts +1 -1
- package/components/areas/hooks/useAreas/{index.8426db7f.js → index.5cbbe91c.js} +1 -1
- package/components/formatters/BooleanFormatter/{index.22761b39.js → index.5379222a.js} +2 -2
- package/components/formatters/BooleanFormatter/index.d.ts +1 -2
- package/components/formatters/DateFormatter/index.d.ts +1 -2
- package/components/formatters/FormatterRoot/index.d.ts +1 -2
- package/components/formatters/PointsFormatter/{index.5c94c5e8.js → index.80a4e414.js} +2 -2
- package/components/formatters/PointsFormatter/index.d.ts +2 -3
- package/components/formatters/PriceFormatter/index.d.ts +1 -2
- package/components/formatters/UncertaintyFormatter/index.d.ts +1 -2
- package/components/formatters/{index.5c788afa.js → index.d0a0800d.js} +1 -1
- package/components/hook-form/HelperError/index.66bbcac3.js +30 -0
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/{index.f7145ff4.js → index.09ff3d84.js} +35 -26
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/index.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +2 -1
- package/components/hook-form/RHFAutocomplete/types.d.ts +3 -8
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +1 -2
- package/components/hook-form/RHFAutocompleteAsync/{index.11572063.js → index.54b4dca3.js} +1 -1
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +1 -2
- package/components/hook-form/RHFColorPicker/index.d.ts +1 -8
- package/components/hook-form/RHFColorPicker/types.d.ts +0 -5
- package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +1 -2
- package/components/hook-form/RHFDateTime/{index.30d6deb9.js → index.2b76899e.js} +1 -1
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.d.ts +1 -2
- package/components/hook-form/RHFDateTime/types.d.ts +1 -0
- package/components/hook-form/RHFHelperError/index.d.ts +4 -0
- package/components/hook-form/RHFMultiCheckbox/index.d.ts +1 -2
- package/components/hook-form/RHFPeriod/index.d.ts +1 -2
- package/components/hook-form/RHFPeriod/{index.8fdd9f5d.js → index.d6c8587a.js} +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +3 -0
- package/components/hook-form/RHFRadioGroup/{index.b3335e13.js → index.7deb4e48.js} +5 -3
- package/components/hook-form/RHFRadioGroup/index.d.ts +2 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +8 -0
- package/components/hook-form/RHFSelect.d.ts +1 -2
- package/components/hook-form/RHFTextField/{index.2f73c117.js → index.f546c18a.js} +2 -2
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.d.ts +1 -2
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +1 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.d.ts +1 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +1 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +1 -2
- package/components/hook-form/RHFUpload/{index.a69afe7e.js → index.a5621247.js} +4 -4
- package/components/hook-form/index.d.ts +2 -2
- package/components/index.d.ts +1 -2
- package/components/maps/GpsTools.34a27c0a.js +2312 -0
- package/components/maps/Map.9fc17398.js +474 -0
- package/components/maps/components/GpsTools/GpsTools.d.ts +1 -0
- package/components/maps/components/GpsTools/classes/index.d.ts +4 -0
- package/components/maps/components/GpsTools/classes/types.d.ts +20 -0
- package/components/maps/components/GpsTools/constants.d.ts +8 -0
- package/components/maps/components/GpsTools/contexts/GpsToolsContext/index.d.ts +19 -0
- package/components/maps/components/GpsTools/contexts/GpsToolsContext/store.d.ts +16 -0
- package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +173 -0
- package/components/maps/components/GpsTools/dictionary.d.ts +64 -0
- package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +1 -0
- package/components/maps/components/GpsTools/hooks/useMapTools/index.d.ts +2 -0
- package/components/maps/components/GpsTools/icons.d.ts +15 -0
- package/components/maps/components/GpsTools/index.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/index.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/constants.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useCheckedFeatures.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useCheckedGeofences.d.ts +4 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useColumns.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useMaster.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useRowActionsGetter.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/model.d.ts +122 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/ColumnSetCheckFormatter/index.d.ts +8 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/ColumnSetCheckFormatter/types.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +11 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +8 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +22 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/types.d.ts +25 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/PolylineWithArrows/index.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/constants.d.ts +30 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useMeasure.d.ts +31 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +10 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/types.d.ts +9 -0
- package/components/maps/components/GpsTools/types.d.ts +34 -0
- package/components/maps/components/Map/Map.d.ts +2 -0
- package/components/maps/components/Map/classes/index.d.ts +5 -0
- package/components/maps/components/Map/classes/types.d.ts +19 -0
- package/components/maps/components/Map/constants.d.ts +10 -0
- package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +19 -0
- package/components/maps/components/Map/contexts/MapContext/helper.d.ts +8 -0
- package/components/maps/components/Map/contexts/MapContext/index.d.ts +2 -0
- package/components/maps/components/Map/contexts/MapContext/store.d.ts +16 -0
- package/components/maps/components/Map/contexts/MapContext/types.d.ts +354 -0
- package/components/maps/components/Map/hooks/useMapStore/index.d.ts +3 -0
- package/components/maps/components/Map/index.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/LeafletLayer/index.d.ts +3 -0
- package/components/maps/components/Map/subcomponents/LeafletLayer/types.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/MainTools/index.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/MainTools/types.d.ts +5 -0
- package/components/maps/components/Map/types.d.ts +28 -0
- package/components/maps/index.7057e217.js +1 -0
- package/components/maps/index.d.ts +3 -0
- package/components/maps/leaflet-geoman.d.ts +1633 -0
- package/components/maps/leaflet.d.ts +29 -0
- package/components/modal/ModalDialog/index.d.ts +1 -2
- package/components/modal/WindowBase/index.d.ts +1 -2
- package/components/modal/WindowBase/subcomponents/Header/index.d.ts +1 -2
- package/components/modal/{WindowBase.444849a3.js → WindowBase.38d4b8e7.js} +3 -3
- package/components/modal/WindowConfirm/index.d.ts +1 -2
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index.d.ts +1 -2
- package/components/modal/{WindowConfirm.66c99957.js → WindowConfirm.cd776fe5.js} +6 -6
- package/components/mui_extended/Accordion/Accordion.d.ts +1 -2
- package/components/mui_extended/Accordion/{index.c628e883.js → index.5b4b2075.js} +3 -3
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +1 -2
- package/components/mui_extended/Badge/Badge.d.ts +1 -2
- package/components/mui_extended/BoxIcon/index.d.ts +1 -2
- package/components/mui_extended/Breadcrumbs/components/LinkItem/index.d.ts +1 -2
- package/components/mui_extended/Breadcrumbs/index.d.ts +1 -2
- package/components/mui_extended/Button/Button.d.ts +4 -3
- package/components/mui_extended/Button/classes/types.d.ts +3 -2
- package/components/mui_extended/Button/{index.56e7522c.js → index.fc5132fa.js} +9 -6
- package/components/mui_extended/Button/types.d.ts +3 -3
- package/components/mui_extended/CheckBox/subcomponents/Skeleton/index.d.ts +1 -2
- package/components/mui_extended/CircularProgress/index.d.ts +1 -2
- package/components/mui_extended/IconButton/IconButton.d.ts +1 -2
- package/components/mui_extended/IconButton/classes/index.d.ts +1 -1
- package/components/mui_extended/IconButton/classes/types.d.ts +3 -0
- package/components/mui_extended/IconButton/{index.f42fa68d.js → index.df52ae90.js} +7 -4
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +1 -2
- package/components/mui_extended/ImageButton/ImageButton.d.ts +1 -2
- package/components/mui_extended/LinearProgress/index.d.ts +1 -2
- package/components/mui_extended/LinkWithRoute/index.d.ts +1 -2
- package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -1
- package/components/mui_extended/LoadingButton/index.d.ts +1 -2
- package/components/mui_extended/MenuActions/{index.e146c11b.js → index.04d87c36.js} +2 -2
- package/components/mui_extended/MenuActions/index.d.ts +1 -1
- package/components/mui_extended/Pager/{index.9f0a2757.js → index.c6990cd4.js} +1 -1
- package/components/mui_extended/Pager/index.d.ts +1 -2
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index.d.ts +1 -2
- package/components/mui_extended/Pager/subcomponents/PagerActions/index.d.ts +1 -2
- package/components/mui_extended/Popover/Popover.d.ts +1 -2
- package/components/mui_extended/Stack/Stack.d.ts +1 -2
- package/components/mui_extended/Tab/{index.7bdd1260.js → index.53203047.js} +27 -5
- package/components/mui_extended/Tab/index.d.ts +1 -2
- package/components/mui_extended/TabContent/TabContent.d.ts +1 -2
- package/components/mui_extended/TabContent/types.d.ts +1 -0
- package/components/mui_extended/TabContext/index.d.ts +5 -0
- package/components/mui_extended/TabContext/types.d.ts +9 -0
- package/components/mui_extended/Tabs/Tabs.d.ts +1 -2
- package/components/mui_extended/ToggleButton/ToggleButton.d.ts +1 -0
- package/components/mui_extended/ToggleButton/index.4b7b7df0.js +22 -0
- package/components/mui_extended/ToggleButton/index.d.ts +2 -0
- package/components/mui_extended/ToggleButton/types.d.ts +4 -0
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.d.ts +13 -0
- package/components/mui_extended/ToggleIconButton/index.d.ts +2 -0
- package/components/mui_extended/ToggleIconButton/index.e430bed4.js +29 -0
- package/components/mui_extended/ToggleIconButton/types.d.ts +5 -0
- package/components/mui_extended/Tooltip/Tooltip.d.ts +1 -2
- package/components/mui_extended/Typography/Typography.d.ts +1 -2
- package/components/mui_extended/Typography/subcomponents/index.d.ts +1 -2
- package/components/mui_extended/index.d.ts +3 -0
- package/contexts/ModalContext/{index.b39d303d.js → index.aa3bd23f.js} +1 -1
- package/contexts/ModalContext/index.d.ts +1 -1
- package/contexts/RHFormContext/{index.1755b324.js → index.7769076a.js} +4 -2
- package/contexts/RHFormContext/index.d.ts +1 -2
- package/contexts/RHFormContext/types.d.ts +1 -0
- package/hocs/withToggle/index.d.ts +11 -0
- package/hocs/withToggle/index.e44eb0da.js +24 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/{index.8dcf7d45.js → index.59c74cbf.js} +15 -7
- package/hooks/useFormAddEdit/index.d.ts +3 -2
- package/hooks/useFormAddEdit/types.d.ts +8 -4
- package/hooks/useFormReadyForUpdate/index.d.ts +6 -0
- package/hooks/useFormReadyForUpdate/index.f60f500e.js +20 -0
- package/hooks/useModal/{index.abdc0962.js → index.b4b84d5d.js} +1 -1
- package/hooks/useTab/index.6ab00d5a.js +12 -0
- package/hooks/useTab/index.d.ts +3 -0
- package/index.js +132 -119
- package/node_modules.f907e6dd.js +4736 -0
- package/package.json +8 -5
- package/{react-data-grid.d46d625e.js → react-data-grid.c5377916.js} +1 -2
- package/{react-draggable.ee21cb7e.js → react-draggable.cdce362f.js} +4 -4
- package/{react-json-view.5636414a.js → react-json-view.57125fcf.js} +1 -1
- package/{react-resizable.ee028152.js → react-resizable.806822ee.js} +5 -5
- package/{react-splitter-layout.c5d98bf7.js → react-splitter-layout.8b1655c8.js} +3 -3
- package/utils/{index.de903261.js → index.b22c4c1a.js} +32 -0
- package/utils/types.d.ts +6 -0
- package/vendor.caaaf054.js +168 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents/FormatterColumn/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents/FormatterColumn/types.d.ts +0 -3
- package/components/Icon/index.3e559a61.js +0 -248
- package/components/PDFViewer/PDFViewer.d.ts +0 -3
- package/components/PDFViewer/classes/constants.d.ts +0 -1
- package/components/PDFViewer/classes/index.d.ts +0 -7
- package/components/PDFViewer/classes/types.d.ts +0 -7
- package/components/PDFViewer/index.52f45734.js +0 -63
- package/components/PDFViewer/index.d.ts +0 -1
- package/components/PDFViewer/types.d.ts +0 -3
- package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +0 -3
- package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +0 -3
- package/components/PropertyValue/index.45c0a6bf.js +0 -206
- package/components/ToastContainer/ToastContainer.d.ts +0 -3
- package/components/ToastContainer/classes/constants.d.ts +0 -1
- package/components/ToastContainer/classes/index.d.ts +0 -8
- package/components/ToastContainer/classes/types.d.ts +0 -9
- package/components/ToastContainer/index.d.ts +0 -2
- package/components/ToastContainer/index.ef20959a.js +0 -87
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +0 -3
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +0 -5
- package/components/ToastContainer/types.d.ts +0 -4
- package/components/hook-form/RHFColorPicker/classes/constants.d.ts +0 -1
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +0 -11
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +0 -11
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +0 -2
- package/components/hook-form/RHFRadioGroup.d.ts +0 -9
- package/node_modules.9cedcf1f.js +0 -6921
- package/vendor.f577fced.js +0 -250
- /package/components/GridLayout/subcomponents/{GridItem → Griditem}/types.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Maybe } from "@m4l/core";
|
|
2
|
+
import { StyleOpacity, StyleDashArray, StyleWheight } from "../../../../../../../../types";
|
|
3
|
+
export interface FormStyleDataValues {
|
|
4
|
+
strokeColor?: string;
|
|
5
|
+
strokeOpacity?: Maybe<StyleOpacity>;
|
|
6
|
+
strokeWeight?: Maybe<StyleWheight>;
|
|
7
|
+
strokeDashArray?: Maybe<StyleDashArray>;
|
|
8
|
+
fillColor?: string;
|
|
9
|
+
fillOpacity?: Maybe<StyleOpacity>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StyleOpacity, StyleDashArray, StyleWheight } from '../../../../../../types';
|
|
2
|
+
import { GeofenceGetModel } from '../../model';
|
|
3
|
+
import { FormConfigDataValues } from './subcomponents/ConfigData/types';
|
|
4
|
+
import { FormGeneralDataValues } from './subcomponents/GeneralData/types';
|
|
5
|
+
import { FormStyleDataValues } from './subcomponents/StyleData/types';
|
|
6
|
+
export declare type ResponseGet = {
|
|
7
|
+
data: GeofenceGetModel;
|
|
8
|
+
};
|
|
9
|
+
export declare type FormAddEditValues = FormGeneralDataValues & FormConfigDataValues & FormStyleDataValues & {
|
|
10
|
+
inEdition: boolean;
|
|
11
|
+
lat?: number | null;
|
|
12
|
+
lng?: number | null;
|
|
13
|
+
properties: {
|
|
14
|
+
radius?: number | null;
|
|
15
|
+
strokeColor: string;
|
|
16
|
+
strokeOpacity: StyleOpacity;
|
|
17
|
+
strokeWeight: StyleWheight;
|
|
18
|
+
strokeDashArray: StyleDashArray;
|
|
19
|
+
fillColor: string;
|
|
20
|
+
fillOpacity: StyleOpacity;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export interface GeofenceAddEditProps {
|
|
24
|
+
geofenceId?: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GeofencesList(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FilterProps {
|
|
3
|
+
refresh: () => void;
|
|
4
|
+
setBackendQueryParams: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
|
|
5
|
+
}
|
|
6
|
+
export declare function Filter(props: FilterProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LatLngExpression } from 'leaflet';
|
|
3
|
+
import { PolylineProps } from 'react-leaflet';
|
|
4
|
+
interface PolylineWithArrowsProps extends PolylineProps {
|
|
5
|
+
positions: LatLngExpression[];
|
|
6
|
+
enableEdit?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const PolylineWithArrows: React.FC<PolylineWithArrowsProps>;
|
|
9
|
+
export default PolylineWithArrows;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormMeasureValues } from './types';
|
|
2
|
+
export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
|
|
3
|
+
export declare const STROKE_OPACITY_DEFAULT: {
|
|
4
|
+
value: number;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const STROKE_WHEIGTH_DEFAULT: {
|
|
8
|
+
value: number;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const STROKE_DASH_ARRAY_DEFAULT: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const FILL_COLOR_DEFAULT = "#aa3000";
|
|
16
|
+
export declare const FILL_OPACITY_DEFAULT: {
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const INITIAL_FORM_VALUES: FormMeasureValues;
|
|
21
|
+
export declare const STYLE_MEASURE_OPTIONS: {
|
|
22
|
+
strokeLineColor: string;
|
|
23
|
+
strokeLineWeight: number;
|
|
24
|
+
markerHeight: number;
|
|
25
|
+
markerWidth: number;
|
|
26
|
+
labelMarkerHeight: number;
|
|
27
|
+
labelMarkerWidth: number;
|
|
28
|
+
labelMarkerAnchorY: number;
|
|
29
|
+
labelMarkerAnchorX: number;
|
|
30
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as L from 'leaflet';
|
|
2
|
+
import { MagnitudeFactorItem } from '../../../../../types';
|
|
3
|
+
import { StatusEdition } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* hook Encargado manejar los eventos de dibujo y setear en hook forms values,
|
|
6
|
+
* los datos asociados a una geocerca
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare type MeasurePoint = {
|
|
10
|
+
marker: L.Marker;
|
|
11
|
+
labelMarker: L.Marker;
|
|
12
|
+
formatDistanceFromPrevious: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export interface RefCurrentMeasure {
|
|
15
|
+
dragging: boolean;
|
|
16
|
+
addMarker: boolean;
|
|
17
|
+
measurePoints: Array<MeasurePoint>;
|
|
18
|
+
layerLine?: L.Polyline;
|
|
19
|
+
magnitudFactor: MagnitudeFactorItem;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* useMeasure hook se encarga de pintar las marcas y una línea que las une, para calcular la distancia o el area
|
|
23
|
+
* de ellas. En su primera versión no incluye agregar nuevas marcas entre los vertices por facilidad de implementación
|
|
24
|
+
* ya que el costo beneficio es muy alto si se coloca esa capacidad.
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare function useMeasure(): {
|
|
28
|
+
statusEdition: StatusEdition;
|
|
29
|
+
magnitudFactor: MagnitudeFactorItem;
|
|
30
|
+
value: number;
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Yup from 'yup';
|
|
2
|
+
export declare function useValidation(): {
|
|
3
|
+
validationSchema: Yup.ObjectSchema<{
|
|
4
|
+
[x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
|
|
5
|
+
}, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
|
|
6
|
+
[x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
|
|
7
|
+
}>, import("yup/lib/object").AssertsShape<{
|
|
8
|
+
[x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
|
|
9
|
+
}>>;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MeasureTool(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MeasureData(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MyActions(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormStatusLoad } from '../../../../../../../../contexts';
|
|
2
|
+
import { FormGeneralDataValues } from './subcomponents/MeasureData/types';
|
|
3
|
+
export declare type StatusEdition = 'initial' | 'draw';
|
|
4
|
+
export declare type FormMeasureValues = FormGeneralDataValues & {
|
|
5
|
+
statusLoad: FormStatusLoad;
|
|
6
|
+
reInits: number;
|
|
7
|
+
statusEdition: StatusEdition;
|
|
8
|
+
value: string | null;
|
|
9
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GeofenceTypeId } from "./subcomponents/TabTools/subcomponents/GeofencesTool/model";
|
|
2
|
+
/**
|
|
3
|
+
* Por ahora solo distancia.
|
|
4
|
+
*/
|
|
5
|
+
export declare type MeasureTypeId = 'distance';
|
|
6
|
+
export interface MeasureTypeItem {
|
|
7
|
+
id: MeasureTypeId;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MagnitudeFactorItem {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
symbol: string;
|
|
14
|
+
factor_x0: number;
|
|
15
|
+
factor_x1: number;
|
|
16
|
+
factor_x2: number;
|
|
17
|
+
}
|
|
18
|
+
export interface GeofenceTypeItem {
|
|
19
|
+
id: GeofenceTypeId;
|
|
20
|
+
name: string;
|
|
21
|
+
url: string;
|
|
22
|
+
}
|
|
23
|
+
export interface StyleOpacity {
|
|
24
|
+
value: number;
|
|
25
|
+
label: string;
|
|
26
|
+
}
|
|
27
|
+
export interface StyleWheight {
|
|
28
|
+
value: number;
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
export interface StyleDashArray {
|
|
32
|
+
value: string;
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MapClasses } from './types';
|
|
2
|
+
import { OwnerState } from '../contexts/MapContext/types';
|
|
3
|
+
export declare const mapClasses: MapClasses;
|
|
4
|
+
export declare const useMapUtilityClasses: (ownerState: OwnerState) => Record<"root" | "mapContainer" | "svgLayersContainer" | "svgLayer" | "svgLayerMultiPoints" | "layerMarker" | "mainToolsRoot" | "measureMarkerRoot" | "measureMarkerContainer" | "measureMarkerContainerRhomb" | "measureMarkerContainerSlot" | "measureMarkerContainerSlotNumber" | "measureLabelMarkerRoot" | "measureLabelMarkerContainer" | "measureLabelMarkerDistance" | "measureLabelMarkerRemove", string>;
|
|
5
|
+
export declare type Classes = ReturnType<typeof useMapUtilityClasses>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface MapClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
mapContainer: string;
|
|
4
|
+
svgLayersContainer: string;
|
|
5
|
+
svgLayer: string;
|
|
6
|
+
svgLayerMultiPoints: string;
|
|
7
|
+
layerMarker: string;
|
|
8
|
+
mainToolsRoot: string;
|
|
9
|
+
measureMarkerRoot: string;
|
|
10
|
+
measureMarkerContainer: string;
|
|
11
|
+
measureMarkerContainerRhomb: string;
|
|
12
|
+
measureMarkerContainerSlot: string;
|
|
13
|
+
measureMarkerContainerSlotNumber: string;
|
|
14
|
+
measureLabelMarkerRoot: string;
|
|
15
|
+
measureLabelMarkerContainer: string;
|
|
16
|
+
measureLabelMarkerDistance: string;
|
|
17
|
+
measureLabelMarkerRemove: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type MapClassesKey = keyof MapClasses;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const COMPONENT_TEST_ID = "M4LMap";
|
|
2
|
+
export declare const COMPONENT_CLASS_NAME = "M4LMap";
|
|
3
|
+
export declare const EARTH_RADIO = 6378137;
|
|
4
|
+
export declare const DN = 500;
|
|
5
|
+
export declare const DE = 500;
|
|
6
|
+
export declare const DLAT: number;
|
|
7
|
+
export declare const THROTTLE_RENDER_MAP_TIMEOUT = 50;
|
|
8
|
+
export declare const MAP_ZINDEX_DEFAULT = 0;
|
|
9
|
+
export declare const MAP_ZINDEX_OVER_LAYERS = 1000;
|
|
10
|
+
export declare const MAP_ZINDEX_OVER_MAP = 1100;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MapProviderProps } from './types';
|
|
3
|
+
declare const MapContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").MapStateWithActions>, "setState"> & {
|
|
4
|
+
setState<A extends string | {
|
|
5
|
+
type: unknown;
|
|
6
|
+
}>(partial: import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions> | ((state: import("./types").MapStateWithActions) => import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
7
|
+
}, "setState"> & {
|
|
8
|
+
setState(nextStateOrUpdater: import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").MapStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
9
|
+
type: unknown;
|
|
10
|
+
} | undefined): void;
|
|
11
|
+
}) | null>;
|
|
12
|
+
/**
|
|
13
|
+
* @description Provedor del contexto de los mapas
|
|
14
|
+
* Expone el store (MapStore) encargado de gestionar la creación, modificación y borrado de capas.
|
|
15
|
+
* @param props
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
declare function MapProvider(props: MapProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { MapProvider, MapContext };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WritableDraft } from 'immer/dist/internal';
|
|
2
|
+
import type { MapStateWithActions, LayerStore } from './types';
|
|
3
|
+
export declare const DEFAULT_LAYER: Partial<LayerStore>;
|
|
4
|
+
/**
|
|
5
|
+
* @description Actualiza la clases basado en owner state
|
|
6
|
+
* @param state immer State
|
|
7
|
+
*/
|
|
8
|
+
export declare const updateOwnerStateClasses: (state: WritableDraft<MapStateWithActions>) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MapStateWithActions, InitialMapStoreProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @description Crea el Store, por defecto inicia en estado 'init'
|
|
4
|
+
* @param initProps propiedades iniciales del store
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const createMapStore: (initProps: InitialMapStoreProps) => Omit<Omit<import("zustand").StoreApi<MapStateWithActions>, "setState"> & {
|
|
8
|
+
setState<A extends string | {
|
|
9
|
+
type: unknown;
|
|
10
|
+
}>(partial: MapStateWithActions | Partial<MapStateWithActions> | ((state: MapStateWithActions) => MapStateWithActions | Partial<MapStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
11
|
+
}, "setState"> & {
|
|
12
|
+
setState(nextStateOrUpdater: MapStateWithActions | Partial<MapStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<MapStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
13
|
+
type: unknown;
|
|
14
|
+
} | undefined): void;
|
|
15
|
+
};
|
|
16
|
+
export declare type MapStore = ReturnType<typeof createMapStore>;
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { MapClasses } from '../../classes/types';
|
|
4
|
+
export declare type FeatureId = string | number;
|
|
5
|
+
/**
|
|
6
|
+
* The valid values for the "type" property of GeoJSON* geometry objects.
|
|
7
|
+
* https://tools.ietf.org/html/rfc7946#section-1.4
|
|
8
|
+
*/
|
|
9
|
+
export declare type GeoJsonGeometryTypes = Geometry['type'];
|
|
10
|
+
/**
|
|
11
|
+
* The value values for the "type" property of GeoJSON* Objects.
|
|
12
|
+
* https://tools.ietf.org/html/rfc7946#section-1.4
|
|
13
|
+
*/
|
|
14
|
+
export declare type GeoJsonTypes = GeoJSON['type'];
|
|
15
|
+
/**
|
|
16
|
+
* Bounding box
|
|
17
|
+
* https://tools.ietf.org/html/rfc7946#section-5
|
|
18
|
+
*/
|
|
19
|
+
export declare type BBox = [number, number, number, number] | [number, number, number, number, number, number];
|
|
20
|
+
/**
|
|
21
|
+
* A Position is an array of coordinates.
|
|
22
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.1
|
|
23
|
+
* Array should contain between two and three elements.
|
|
24
|
+
* The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
|
|
25
|
+
* but the current specification only allows X, Y, and (optionally) Z to be defined.
|
|
26
|
+
*/
|
|
27
|
+
export declare type Position = number[];
|
|
28
|
+
/**
|
|
29
|
+
* The base GeoJSON object.
|
|
30
|
+
* https://tools.ietf.org/html/rfc7946#section-3
|
|
31
|
+
* The GeoJSON specification also allows foreign members
|
|
32
|
+
* (https://tools.ietf.org/html/rfc7946#section-6.1)
|
|
33
|
+
* Developers should use "&" type in TypeScript or extend the interface
|
|
34
|
+
* to add these foreign members.
|
|
35
|
+
*/
|
|
36
|
+
export interface GeoJsonObject {
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the type of GeoJSON object.
|
|
39
|
+
*/
|
|
40
|
+
type: GeoJsonTypes;
|
|
41
|
+
/**
|
|
42
|
+
* Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections.
|
|
43
|
+
* The value of the bbox member is an array of length 2*n where n is the number of dimensions
|
|
44
|
+
* represented in the contained geometries, with all axes of the most southwesterly point
|
|
45
|
+
* followed by all axes of the more northeasterly point.
|
|
46
|
+
* The axes order of a bbox follows the axes order of geometries.
|
|
47
|
+
* https://tools.ietf.org/html/rfc7946#section-5
|
|
48
|
+
*/
|
|
49
|
+
bbox?: BBox | undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Union of GeoJSON objects.
|
|
53
|
+
*/
|
|
54
|
+
export declare type GeoJSON = Geometry | Feature | FeatureCollection;
|
|
55
|
+
/**
|
|
56
|
+
* Geometry object.
|
|
57
|
+
* https://tools.ietf.org/html/rfc7946#section-3
|
|
58
|
+
*/
|
|
59
|
+
export declare type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
|
|
60
|
+
export declare type GeometryObject = Geometry;
|
|
61
|
+
/**
|
|
62
|
+
* Point geometry object.
|
|
63
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.2
|
|
64
|
+
*/
|
|
65
|
+
export interface Point extends GeoJsonObject {
|
|
66
|
+
type: 'Point';
|
|
67
|
+
coordinates: Position;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* MultiPoint geometry object.
|
|
71
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.3
|
|
72
|
+
*/
|
|
73
|
+
export interface MultiPoint extends GeoJsonObject {
|
|
74
|
+
type: 'MultiPoint';
|
|
75
|
+
coordinates: Position[];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* LineString geometry object.
|
|
79
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.4
|
|
80
|
+
*/
|
|
81
|
+
export interface LineString extends GeoJsonObject {
|
|
82
|
+
type: 'LineString';
|
|
83
|
+
coordinates: Position[];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* MultiLineString geometry object.
|
|
87
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.5
|
|
88
|
+
*/
|
|
89
|
+
export interface MultiLineString extends GeoJsonObject {
|
|
90
|
+
type: 'MultiLineString';
|
|
91
|
+
coordinates: Position[][];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Polygon geometry object.
|
|
95
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
96
|
+
*/
|
|
97
|
+
export interface Polygon extends GeoJsonObject {
|
|
98
|
+
type: 'Polygon';
|
|
99
|
+
coordinates: Position[][];
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* MultiPolygon geometry object.
|
|
103
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
104
|
+
*/
|
|
105
|
+
export interface MultiPolygon extends GeoJsonObject {
|
|
106
|
+
type: 'MultiPolygon';
|
|
107
|
+
coordinates: Position[][][];
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Geometry Collection
|
|
111
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.8
|
|
112
|
+
*/
|
|
113
|
+
export interface GeometryCollection<G extends Geometry = Geometry> extends GeoJsonObject {
|
|
114
|
+
type: 'GeometryCollection';
|
|
115
|
+
geometries: G[];
|
|
116
|
+
}
|
|
117
|
+
export declare type GeoJsonProperties = {
|
|
118
|
+
[name: string]: any;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* A feature object which contains a geometry and associated properties.
|
|
122
|
+
* https://tools.ietf.org/html/rfc7946#section-3.2
|
|
123
|
+
*/
|
|
124
|
+
export interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
125
|
+
type: 'Feature';
|
|
126
|
+
/**
|
|
127
|
+
* The feature's geometry
|
|
128
|
+
*/
|
|
129
|
+
geometry: G;
|
|
130
|
+
/**
|
|
131
|
+
* A value that uniquely identifies this feature in a
|
|
132
|
+
* https://tools.ietf.org/html/rfc7946#section-3.2.
|
|
133
|
+
*/
|
|
134
|
+
id: FeatureId;
|
|
135
|
+
/**
|
|
136
|
+
* Properties associated with this feature.
|
|
137
|
+
*/
|
|
138
|
+
properties: P;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* A collection of feature objects.
|
|
142
|
+
* https://tools.ietf.org/html/rfc7946#section-3.3
|
|
143
|
+
*/
|
|
144
|
+
export interface FeatureCollection<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
145
|
+
type: 'FeatureCollection';
|
|
146
|
+
features: Array<Feature<G, P>>;
|
|
147
|
+
}
|
|
148
|
+
export declare type RealTimeConfig = {
|
|
149
|
+
/**
|
|
150
|
+
* "active" si está activa la funcionalidad de tiempo real
|
|
151
|
+
*/
|
|
152
|
+
active: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* "userCanDeactivateTail" El usario puede temporalmente desactivar la cola de un punto de tipo tiemo real.
|
|
155
|
+
*/
|
|
156
|
+
userCanDeactivateTail: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* "maxZoom" Maximo zoom donde se muestra la cola.
|
|
159
|
+
*/
|
|
160
|
+
maxZoom: number;
|
|
161
|
+
/**
|
|
162
|
+
* qtyTailPointsMax Cantidad de puntos de la cola de tiempo real.
|
|
163
|
+
*/
|
|
164
|
+
qtyTailPointsMax: number;
|
|
165
|
+
/**
|
|
166
|
+
* "windowTailTime" Ventana de tiempo para no generar una cola retrasa en el mapa. ejemplo 30 segundos.
|
|
167
|
+
* Eventos fuera de este tiempo con respecto al primer punto no se deberían visualizaar evitando colas fantasma por tanto no confiables.
|
|
168
|
+
*/
|
|
169
|
+
windowTailTime: number;
|
|
170
|
+
};
|
|
171
|
+
export declare type PointType = 'point' | 'cluster';
|
|
172
|
+
/**
|
|
173
|
+
* Argumentos que recibe una Render Prop cuando se renderiza por renderFeature
|
|
174
|
+
* @interface
|
|
175
|
+
*/
|
|
176
|
+
export interface RendePropFeatureArgs {
|
|
177
|
+
id: FeatureId;
|
|
178
|
+
/**
|
|
179
|
+
* "layerId" si está activa la funcionalidad de tiempo real
|
|
180
|
+
*/
|
|
181
|
+
layerId: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Argumentos que recibe una Render Prop cuando se renderiza por renderFeature
|
|
185
|
+
* @interface
|
|
186
|
+
*/
|
|
187
|
+
export interface RendePropFeaturesCollectionArgs extends FeatureCollection {
|
|
188
|
+
/**
|
|
189
|
+
* "id" identificado unico del feature
|
|
190
|
+
* En la capa multipoints clusteable:
|
|
191
|
+
* el id se forma con el patron: device_device_id O cluster_CRCDevicesIds_count
|
|
192
|
+
* Si la capa es multilines
|
|
193
|
+
* el id normalmente es el indice del array de multilines
|
|
194
|
+
*
|
|
195
|
+
* TODO: Se debe hacer el esfuerzo de memonizar los ids
|
|
196
|
+
*/
|
|
197
|
+
id: string;
|
|
198
|
+
/**
|
|
199
|
+
* "layerId" si está activa la funcionalidad de tiempo real
|
|
200
|
+
*/
|
|
201
|
+
layerId: string;
|
|
202
|
+
}
|
|
203
|
+
export interface GeoJsonImplementedObject {
|
|
204
|
+
/**
|
|
205
|
+
* Specifies the type of GeoJSON object.
|
|
206
|
+
*/
|
|
207
|
+
object: Feature | FeatureCollection;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
bbox?: BBox | undefined;
|
|
212
|
+
}
|
|
213
|
+
export declare type LayerStore = {
|
|
214
|
+
/**
|
|
215
|
+
* "layerId" Indetificador unico entre todas las capas
|
|
216
|
+
*/
|
|
217
|
+
layerId: string;
|
|
218
|
+
/**
|
|
219
|
+
* "description" Como se va a ver el listado de capas
|
|
220
|
+
*/
|
|
221
|
+
description?: string;
|
|
222
|
+
geoJsonObject?: GeoJsonImplementedObject;
|
|
223
|
+
/**
|
|
224
|
+
* "renderFeature" render prop encarga de renderizar cada feature
|
|
225
|
+
*/
|
|
226
|
+
renderFeature?: ComponentRenderPropFeature;
|
|
227
|
+
};
|
|
228
|
+
export declare type ComponentRenderPropFeature = React.FC<RendePropFeatureArgs>;
|
|
229
|
+
export declare type ComponentRenderPropFeaturesCollection = React.FC<RendePropFeaturesCollectionArgs>;
|
|
230
|
+
/**
|
|
231
|
+
* @description Interface usada para inicializar una capa tipo Multipoints desde el MapProvider
|
|
232
|
+
*/
|
|
233
|
+
export declare type InitialLayer = LayerStore;
|
|
234
|
+
/**
|
|
235
|
+
* @description interfaz usada para actualizar un feature especifico de la capa
|
|
236
|
+
*/
|
|
237
|
+
export interface ForSetSingleFeatureData extends Feature {
|
|
238
|
+
featureId?: string;
|
|
239
|
+
jsonUri?: string;
|
|
240
|
+
}
|
|
241
|
+
export declare type MapStatus = 'init' | 'ready';
|
|
242
|
+
export declare type OwnerState = {
|
|
243
|
+
status: MapStatus;
|
|
244
|
+
/**
|
|
245
|
+
* "isMobile" cuando el navegador está en modo celular
|
|
246
|
+
*/
|
|
247
|
+
isMobile: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* "isSkeleton" indica si el componente está en skeleton.
|
|
250
|
+
*/
|
|
251
|
+
isSkeleton: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* focus: Estado de selección asignado por el usuario.
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
focus: boolean;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* @type
|
|
260
|
+
* @name ExternalOwnerState
|
|
261
|
+
* @description Estados que se actulizan por fuera del store, a través de hooks
|
|
262
|
+
*/
|
|
263
|
+
export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
|
|
264
|
+
export declare type AreaMapType = {
|
|
265
|
+
leftLowerLatitudeOffset: number;
|
|
266
|
+
leftLowerLengthOffset: number;
|
|
267
|
+
rigthUpperLatitudeOffset: number;
|
|
268
|
+
rigthUpperLengthOffset: number;
|
|
269
|
+
mapLengthDelta: number;
|
|
270
|
+
leftLowerLength: number;
|
|
271
|
+
mapLatBottomDegree: number;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* @interface
|
|
275
|
+
* @description Interface que define el estado del componente (variables y funciones )
|
|
276
|
+
*/
|
|
277
|
+
export interface MapState<P = any, G extends GeometryObject = GeometryObject> {
|
|
278
|
+
ownerState: OwnerState;
|
|
279
|
+
/**
|
|
280
|
+
* "classes" enfocado al funcionamiento de las clases a nivel de map
|
|
281
|
+
*/
|
|
282
|
+
classes: MapClasses;
|
|
283
|
+
/**
|
|
284
|
+
* "LayersIds" Layers de trabajo para saber en que orden se muestran en el LayersAdmin
|
|
285
|
+
*/
|
|
286
|
+
layersIds: string[];
|
|
287
|
+
/**
|
|
288
|
+
* "hashLayers" Layers de trabajo
|
|
289
|
+
*/
|
|
290
|
+
hashLayers: Record<string, LayerStore>;
|
|
291
|
+
/**
|
|
292
|
+
* "getLabel" funcion que usará para traducir las etiquetas de diccionario
|
|
293
|
+
*/
|
|
294
|
+
getLabel: GetLabelType;
|
|
295
|
+
}
|
|
296
|
+
export interface MapStateWithActions extends MapState {
|
|
297
|
+
mapActions: {
|
|
298
|
+
/**
|
|
299
|
+
* @description
|
|
300
|
+
*/
|
|
301
|
+
init(layersStore: LayerStore[]): void;
|
|
302
|
+
/**
|
|
303
|
+
* @description Cambia el estado del map
|
|
304
|
+
*/
|
|
305
|
+
setMapState: (state: MapStatus) => void;
|
|
306
|
+
/**
|
|
307
|
+
* @description Modifica un feature de la capa
|
|
308
|
+
*/
|
|
309
|
+
setDataLayer: (layerId: string, geoJson: GeoJsonImplementedObject) => void;
|
|
310
|
+
/**
|
|
311
|
+
* @description Agrega o modifica un feature especifico de la capa
|
|
312
|
+
*/
|
|
313
|
+
setFeatureData: (layerId: string, featureId: FeatureId, geometry: GeometryObject, properties: GeoJsonProperties) => void;
|
|
314
|
+
/**
|
|
315
|
+
* @description Remueve un feature especifico de la capa
|
|
316
|
+
*/
|
|
317
|
+
removeFeature: (layerId: string, featureId: FeatureId) => void;
|
|
318
|
+
/**
|
|
319
|
+
* @description Retorna el vector de featureIds para saber que que está renderizado en el mapa
|
|
320
|
+
*/
|
|
321
|
+
getFeatureIds: (layerId: string) => FeatureId[];
|
|
322
|
+
/**
|
|
323
|
+
* @description Actualizar instancia la render prop de una capa
|
|
324
|
+
*/
|
|
325
|
+
setLayerRenderProp: (layerId: string, value: ComponentRenderPropFeature) => void;
|
|
326
|
+
/**
|
|
327
|
+
* @description Agrega una capa nueva,
|
|
328
|
+
*/
|
|
329
|
+
addLayer: (layer: LayerStore) => void;
|
|
330
|
+
/**
|
|
331
|
+
* @description Remueve un feature especifico de la capa
|
|
332
|
+
*/
|
|
333
|
+
removeLayer: (layerId: string) => void;
|
|
334
|
+
/**
|
|
335
|
+
* @description Actualiza la variable de estado "getLabel"
|
|
336
|
+
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
337
|
+
* cambia por el useCallback, cuando el diccionario se carga.
|
|
338
|
+
* @returns void
|
|
339
|
+
*/
|
|
340
|
+
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
341
|
+
/**
|
|
342
|
+
* @description Modifica los estados que se actualizan externamente al Store
|
|
343
|
+
* @param newIsMobile
|
|
344
|
+
* @returns
|
|
345
|
+
*/
|
|
346
|
+
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
export declare type DefaultMapStoreProps = Omit<MapState, 'currentLayer'>;
|
|
350
|
+
export declare type InitialMapStoreProps = Pick<MapState, 'getLabel' | 'ownerState'> & Partial<DefaultMapStoreProps>;
|
|
351
|
+
export interface MapProviderProps {
|
|
352
|
+
initialLayers?: InitialLayer[];
|
|
353
|
+
children: ReactNode;
|
|
354
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Map } from './Map';
|
|
2
|
+
export type { MapProps } from './types';
|
|
3
|
+
export { MapProvider, MapContext } from './contexts/MapContext/MapContext';
|
|
4
|
+
export { useMapStore } from './hooks/useMapStore';
|
|
5
|
+
export type { RendePropFeatureArgs, ComponentRenderPropFeature, FeatureId, FeatureCollection, Feature, Geometry } from './contexts/MapContext';
|