@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,474 @@
|
|
|
1
|
+
import "leaflet/dist/leaflet.css";
|
|
2
|
+
import { MapContainer, LayerGroup, useMap, TileLayer } from "react-leaflet";
|
|
3
|
+
import { styled } from "@mui/material/styles";
|
|
4
|
+
import { shallow } from "zustand/shallow";
|
|
5
|
+
import React__default, { useEffect, useState, useCallback, createContext, useRef, useContext } from "react";
|
|
6
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { createStore, useStore } from "zustand";
|
|
8
|
+
import L__default from "leaflet";
|
|
9
|
+
import { T as ToggleButton } from "../mui_extended/ToggleButton/index.4b7b7df0.js";
|
|
10
|
+
import { T as ToggleIconButton } from "../mui_extended/ToggleIconButton/index.e430bed4.js";
|
|
11
|
+
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
12
|
+
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
13
|
+
import { devtools } from "zustand/middleware";
|
|
14
|
+
import { immer } from "zustand/middleware/immer";
|
|
15
|
+
import { generateUtilityClasses } from "@mui/material";
|
|
16
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
17
|
+
import { g as getComponentUtilityClass } from "../../utils/index.b22c4c1a.js";
|
|
18
|
+
import { cloneDeep } from "lodash";
|
|
19
|
+
import { G as GpsToolsContext } from "./GpsTools.34a27c0a.js";
|
|
20
|
+
const COMPONENT_CLASS_NAME = "M4LMap";
|
|
21
|
+
const MAP_ZINDEX_DEFAULT = 0;
|
|
22
|
+
const MAP_ZINDEX_OVER_MAP = 1100;
|
|
23
|
+
const mapClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
24
|
+
"root",
|
|
25
|
+
"mapContainer",
|
|
26
|
+
"svgLayersContainer",
|
|
27
|
+
"svgLayer",
|
|
28
|
+
"svgLayerMultiPoints",
|
|
29
|
+
"layerMarker",
|
|
30
|
+
"mainToolsRoot",
|
|
31
|
+
"measureMarkerRoot",
|
|
32
|
+
"measureMarkerContainer",
|
|
33
|
+
"measureMarkerContainerRhomb",
|
|
34
|
+
"measureMarkerContainerSlot",
|
|
35
|
+
"measureMarkerContainerSlotNumber",
|
|
36
|
+
"measureLabelMarkerRoot",
|
|
37
|
+
"measureLabelMarkerContainer",
|
|
38
|
+
"measureLabelMarkerDistance",
|
|
39
|
+
"measureLabelMarkerRemove"
|
|
40
|
+
]);
|
|
41
|
+
const useMapUtilityClasses = (ownerState) => {
|
|
42
|
+
const slots = {
|
|
43
|
+
root: ["root"],
|
|
44
|
+
mapContainer: ["mapContainer"],
|
|
45
|
+
svgLayersContainer: ["svgLayersContainer"],
|
|
46
|
+
svgLayer: ["svgLayer"],
|
|
47
|
+
svgLayerMultiPoints: ["svgLayerMultiPoints"],
|
|
48
|
+
layerMarker: ["layerMarker"],
|
|
49
|
+
mainToolsRoot: ["mainToolsRoot"],
|
|
50
|
+
measureMarkerRoot: ["measureMarkerRoot"],
|
|
51
|
+
measureMarkerContainer: ["measureMarkerContainer"],
|
|
52
|
+
measureMarkerContainerRhomb: ["measureMarkerContainerRhomb"],
|
|
53
|
+
measureMarkerContainerSlot: ["measureMarkerContainerSlot"],
|
|
54
|
+
measureMarkerContainerSlotNumber: ["measureMarkerContainerSlotNumber"],
|
|
55
|
+
measureLabelMarkerRoot: ["measureLabelMarkerRoot"],
|
|
56
|
+
measureLabelMarkerContainer: ["measureLabelMarkerContainer"],
|
|
57
|
+
measureLabelMarkerDistance: ["measureLabelMarkerDistance"],
|
|
58
|
+
measureLabelMarkerRemove: ["measureLabelMarkerRemove"]
|
|
59
|
+
};
|
|
60
|
+
return unstable_composeClasses(slots, getComponentUtilityClass(COMPONENT_CLASS_NAME), {});
|
|
61
|
+
};
|
|
62
|
+
const MapRootContainer = styled(MapContainer)`
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
flex-grow: 1;
|
|
66
|
+
overflow: auto;
|
|
67
|
+
position: relative;
|
|
68
|
+
|
|
69
|
+
.leaflet-control-scale-line{
|
|
70
|
+
color: red; //Ejemplo de como estilar el control de scala
|
|
71
|
+
}
|
|
72
|
+
.${mapClasses.mainToolsRoot} {
|
|
73
|
+
display: flex;
|
|
74
|
+
top: 20px;
|
|
75
|
+
left: 80px;
|
|
76
|
+
position: absolute;
|
|
77
|
+
background-color: gray;
|
|
78
|
+
z-index: ${MAP_ZINDEX_OVER_MAP};
|
|
79
|
+
}
|
|
80
|
+
.${mapClasses.svgLayersContainer} {
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
position: absolute;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.${mapClasses.svgLayer} {
|
|
87
|
+
z-index: 1;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
user-select: none;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
position: absolute !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.${mapClasses.layerMarker} {
|
|
97
|
+
z-index: 2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
.${mapClasses.measureMarkerRoot} {
|
|
103
|
+
--color: red;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.${mapClasses.measureMarkerContainer} {
|
|
107
|
+
position: relative;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.${mapClasses.measureMarkerContainerRhomb} {
|
|
112
|
+
position: absolute;
|
|
113
|
+
filter: drop-shadow(0px 0px 3px rgba(0,0,0,.4));
|
|
114
|
+
width: 31px;
|
|
115
|
+
height: 31px;
|
|
116
|
+
border-radius: 50% 50% 50% 0;
|
|
117
|
+
border: 4px solid var(--color);
|
|
118
|
+
background-color: var(--color);
|
|
119
|
+
transform: rotate(-45deg);
|
|
120
|
+
|
|
121
|
+
}
|
|
122
|
+
.${mapClasses.measureMarkerContainerSlot} {
|
|
123
|
+
position: absolute;
|
|
124
|
+
background: #fff;
|
|
125
|
+
border-radius: 50%;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
top: 3px;
|
|
128
|
+
left: 3px;
|
|
129
|
+
width: 25px;
|
|
130
|
+
height: 24px;
|
|
131
|
+
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
.${mapClasses.measureMarkerContainerSlotNumber} {
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
font-weight: 600;
|
|
137
|
+
text-align: center;
|
|
138
|
+
margin-top: 1px;
|
|
139
|
+
color: black;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.${mapClasses.measureLabelMarkerContainer} {
|
|
143
|
+
background-color:white;
|
|
144
|
+
border:1px solid gray;
|
|
145
|
+
color:#fff;
|
|
146
|
+
width:80px;
|
|
147
|
+
margin-left:15px;
|
|
148
|
+
margin-top:15px;
|
|
149
|
+
}
|
|
150
|
+
.${mapClasses.measureLabelMarkerDistance} {
|
|
151
|
+
color:gray;
|
|
152
|
+
}
|
|
153
|
+
.${mapClasses.measureLabelMarkerRemove} {
|
|
154
|
+
color:blue;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
`;
|
|
158
|
+
const RenderByEachFeatureComponent = ({
|
|
159
|
+
renderFeature,
|
|
160
|
+
...props
|
|
161
|
+
}) => {
|
|
162
|
+
const feature = renderFeature(props);
|
|
163
|
+
return feature ? /* @__PURE__ */ jsx(Fragment, {
|
|
164
|
+
children: feature
|
|
165
|
+
}) : null;
|
|
166
|
+
};
|
|
167
|
+
const MemonizedRenderByEachFeatureComponent = React__default.memo(RenderByEachFeatureComponent);
|
|
168
|
+
const LeafletLayer = (props) => {
|
|
169
|
+
const {
|
|
170
|
+
layerId
|
|
171
|
+
} = props;
|
|
172
|
+
const featureIdOrCollection = useMapStore((state) => {
|
|
173
|
+
const geoJsonObject = state.hashLayers[layerId]?.geoJsonObject;
|
|
174
|
+
if (geoJsonObject && geoJsonObject.object.type === "Feature") {
|
|
175
|
+
return geoJsonObject.object.id;
|
|
176
|
+
} else if (geoJsonObject && geoJsonObject.object.type === "FeatureCollection") {
|
|
177
|
+
return geoJsonObject && geoJsonObject.object.features.map((feature) => feature.id);
|
|
178
|
+
}
|
|
179
|
+
}, shallow);
|
|
180
|
+
const renderFeature = useMapStore((state) => state.hashLayers[layerId]?.renderFeature, shallow);
|
|
181
|
+
if (!featureIdOrCollection || !renderFeature) {
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
if (!Array.isArray(featureIdOrCollection)) {
|
|
185
|
+
return /* @__PURE__ */ jsx(RenderByEachFeatureComponent, {
|
|
186
|
+
renderFeature,
|
|
187
|
+
id: featureIdOrCollection,
|
|
188
|
+
layerId
|
|
189
|
+
});
|
|
190
|
+
} else {
|
|
191
|
+
return /* @__PURE__ */ jsx(LayerGroup, {
|
|
192
|
+
children: featureIdOrCollection.map((featureId) => {
|
|
193
|
+
return /* @__PURE__ */ jsx(MemonizedRenderByEachFeatureComponent, {
|
|
194
|
+
renderFeature,
|
|
195
|
+
id: featureId,
|
|
196
|
+
layerId
|
|
197
|
+
}, `k_${featureId}`);
|
|
198
|
+
})
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const LayersContainer = () => {
|
|
203
|
+
const layersId = useMapStore((state) => state.layersIds, shallow);
|
|
204
|
+
const isSkeleton = useMapStore((state) => state.ownerState.isSkeleton, shallow);
|
|
205
|
+
const map = useMap();
|
|
206
|
+
useEffect(() => {
|
|
207
|
+
console.log("LayersContainer useEffect", map);
|
|
208
|
+
if (!map) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
L__default.control.scale().addTo(map);
|
|
212
|
+
}, [map]);
|
|
213
|
+
if (isSkeleton) {
|
|
214
|
+
return null;
|
|
215
|
+
}
|
|
216
|
+
console.log("LayersContainer Render", layersId);
|
|
217
|
+
return /* @__PURE__ */ jsx(React__default.Fragment, {
|
|
218
|
+
children: layersId.map((l) => /* @__PURE__ */ jsx(LeafletLayer, {
|
|
219
|
+
layerId: l
|
|
220
|
+
}, l))
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
function MainTools(props) {
|
|
224
|
+
const {
|
|
225
|
+
gpsTools,
|
|
226
|
+
aditionalMainTools
|
|
227
|
+
} = props;
|
|
228
|
+
const [isPressed, setIsPressed] = useState(true);
|
|
229
|
+
const onClick = useCallback((e, isPressed2) => {
|
|
230
|
+
setIsPressed(!!isPressed2);
|
|
231
|
+
e.stopPropagation();
|
|
232
|
+
console.log("ButtonisPressed", isPressed2);
|
|
233
|
+
}, []);
|
|
234
|
+
console.log("Render MainTools", gpsTools);
|
|
235
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
236
|
+
className: mapClasses.mainToolsRoot,
|
|
237
|
+
children: [/* @__PURE__ */ jsx(ToggleButton, {
|
|
238
|
+
defaultIsPressed: true,
|
|
239
|
+
onClick,
|
|
240
|
+
children: "Hola"
|
|
241
|
+
}), /* @__PURE__ */ jsx(ToggleIconButton, {
|
|
242
|
+
src: "",
|
|
243
|
+
onClick
|
|
244
|
+
}), isPressed && gpsTools, aditionalMainTools]
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
function Map(props) {
|
|
248
|
+
const {
|
|
249
|
+
children,
|
|
250
|
+
gpsTools,
|
|
251
|
+
aditionalMainTools
|
|
252
|
+
} = props;
|
|
253
|
+
return /* @__PURE__ */ jsxs(MapRootContainer, {
|
|
254
|
+
className: mapClasses.root,
|
|
255
|
+
center: [6.215749485905093, -75.58622905191254],
|
|
256
|
+
zoom: 16,
|
|
257
|
+
maxZoom: 22,
|
|
258
|
+
preferCanvas: true,
|
|
259
|
+
children: [/* @__PURE__ */ jsx(TileLayer, {
|
|
260
|
+
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
261
|
+
attribution: '\xA9 <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
|
262
|
+
}), /* @__PURE__ */ jsx(LayersContainer, {}), children, /* @__PURE__ */ jsx(MainTools, {
|
|
263
|
+
aditionalMainTools,
|
|
264
|
+
gpsTools
|
|
265
|
+
})]
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
const updateOwnerStateClasses = (state) => {
|
|
269
|
+
state.classes = useMapUtilityClasses(state.ownerState);
|
|
270
|
+
};
|
|
271
|
+
const createMapStore = (initProps) => {
|
|
272
|
+
const startProps = {
|
|
273
|
+
classes: useMapUtilityClasses(initProps.ownerState),
|
|
274
|
+
layersIds: [],
|
|
275
|
+
hashLayers: {},
|
|
276
|
+
...initProps
|
|
277
|
+
};
|
|
278
|
+
return createStore(
|
|
279
|
+
devtools(
|
|
280
|
+
immer((set, get) => ({
|
|
281
|
+
...startProps,
|
|
282
|
+
mapActions: {
|
|
283
|
+
init: (layersStore) => {
|
|
284
|
+
set((state) => {
|
|
285
|
+
for (let index = 0; index < layersStore.length; index++) {
|
|
286
|
+
state.hashLayers[layersStore[index].layerId] = cloneDeep(
|
|
287
|
+
layersStore[index]
|
|
288
|
+
);
|
|
289
|
+
state.layersIds.push(layersStore[index].layerId);
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
},
|
|
293
|
+
setMapState: (status) => {
|
|
294
|
+
set((state) => {
|
|
295
|
+
state.ownerState.status = status;
|
|
296
|
+
});
|
|
297
|
+
},
|
|
298
|
+
setDataLayer: (layerId, geoJson) => {
|
|
299
|
+
if (!get().hashLayers[layerId]) {
|
|
300
|
+
throw new Error(`Layer with id ${layerId} not found`);
|
|
301
|
+
}
|
|
302
|
+
set((state) => {
|
|
303
|
+
const layer = state.hashLayers[layerId];
|
|
304
|
+
layer.geoJsonObject = geoJson;
|
|
305
|
+
});
|
|
306
|
+
},
|
|
307
|
+
getFeatureIds: (layerId) => {
|
|
308
|
+
if (!get().hashLayers[layerId]) {
|
|
309
|
+
throw new Error(`Layer with id ${layerId} not found`);
|
|
310
|
+
}
|
|
311
|
+
const geoJsonObject = get().hashLayers[layerId]?.geoJsonObject;
|
|
312
|
+
if (geoJsonObject && geoJsonObject.object.type === "Feature") {
|
|
313
|
+
return [geoJsonObject.object.id];
|
|
314
|
+
} else if (geoJsonObject && geoJsonObject.object.type === "FeatureCollection") {
|
|
315
|
+
return geoJsonObject.object.features.map((feature) => feature.id);
|
|
316
|
+
}
|
|
317
|
+
return [];
|
|
318
|
+
},
|
|
319
|
+
setFeatureData: (layerId, featureId, geometry, properties) => {
|
|
320
|
+
if (!get().hashLayers[layerId]) {
|
|
321
|
+
throw new Error(`Layer with id ${layerId} not found`);
|
|
322
|
+
}
|
|
323
|
+
set((state) => {
|
|
324
|
+
if (state.hashLayers[layerId].geoJsonObject?.object.type === "FeatureCollection") {
|
|
325
|
+
const layer = state.hashLayers[layerId].geoJsonObject?.object;
|
|
326
|
+
let feature = layer.features.find((f) => f.id === featureId);
|
|
327
|
+
if (feature) {
|
|
328
|
+
feature.geometry = cloneDeep(geometry);
|
|
329
|
+
feature.properties = cloneDeep(properties);
|
|
330
|
+
} else {
|
|
331
|
+
feature = {
|
|
332
|
+
type: "Feature",
|
|
333
|
+
geometry,
|
|
334
|
+
id: featureId,
|
|
335
|
+
properties
|
|
336
|
+
};
|
|
337
|
+
layer.features.push(feature);
|
|
338
|
+
}
|
|
339
|
+
} else if (state.hashLayers[layerId].geoJsonObject?.object.type === "Feature") {
|
|
340
|
+
const layer = state.hashLayers[layerId].geoJsonObject?.object;
|
|
341
|
+
layer.id = featureId;
|
|
342
|
+
layer.geometry = cloneDeep(geometry);
|
|
343
|
+
layer.properties = cloneDeep(properties);
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
},
|
|
347
|
+
removeFeature: (layerId, featureId) => {
|
|
348
|
+
if (!get().hashLayers[layerId]) {
|
|
349
|
+
throw new Error(`Layer with id ${layerId} not found`);
|
|
350
|
+
}
|
|
351
|
+
set((state) => {
|
|
352
|
+
if (state.hashLayers[layerId].geoJsonObject?.object.type === "FeatureCollection") {
|
|
353
|
+
const layer = state.hashLayers[layerId].geoJsonObject?.object;
|
|
354
|
+
const index = layer.features.findIndex((f) => f.id === featureId);
|
|
355
|
+
if (index !== -1) {
|
|
356
|
+
layer.features.splice(index, 1);
|
|
357
|
+
}
|
|
358
|
+
} else if (state.hashLayers[layerId].geoJsonObject?.object.type === "Feature") {
|
|
359
|
+
const layer = state.hashLayers[layerId].geoJsonObject?.object;
|
|
360
|
+
layer.geometry = { type: "Point", coordinates: [0, 0] };
|
|
361
|
+
layer.properties = {};
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
},
|
|
365
|
+
setLayerRenderProp: (layerId, renderProp) => {
|
|
366
|
+
set((state) => {
|
|
367
|
+
state.hashLayers[layerId].renderFeature = renderProp;
|
|
368
|
+
});
|
|
369
|
+
},
|
|
370
|
+
addLayer: (layer) => {
|
|
371
|
+
if (get().hashLayers[layer.layerId]) {
|
|
372
|
+
throw new Error(`Layer with id ${layer.layerId} already exists`);
|
|
373
|
+
}
|
|
374
|
+
set((state) => {
|
|
375
|
+
state.hashLayers[layer.layerId] = layer;
|
|
376
|
+
state.layersIds.push(layer.layerId);
|
|
377
|
+
});
|
|
378
|
+
},
|
|
379
|
+
removeLayer: (layerId) => {
|
|
380
|
+
if (!get().hashLayers[layerId]) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
set((state) => {
|
|
384
|
+
state.layersIds.splice(state.layersIds.indexOf(layerId), 1);
|
|
385
|
+
delete state.hashLayers[layerId];
|
|
386
|
+
});
|
|
387
|
+
},
|
|
388
|
+
setHandlerGetLabel: (newHandler) => {
|
|
389
|
+
set((state) => {
|
|
390
|
+
state.getLabel = newHandler;
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
setExternalState: (newExternalState) => {
|
|
394
|
+
set((state) => {
|
|
395
|
+
state.ownerState = { ...state.ownerState, ...newExternalState };
|
|
396
|
+
updateOwnerStateClasses(state);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
})),
|
|
401
|
+
{ name: `Map store` }
|
|
402
|
+
)
|
|
403
|
+
);
|
|
404
|
+
};
|
|
405
|
+
const MapContext = createContext(null);
|
|
406
|
+
function MapProvider(props) {
|
|
407
|
+
const {
|
|
408
|
+
children,
|
|
409
|
+
initialLayers
|
|
410
|
+
} = props;
|
|
411
|
+
const {
|
|
412
|
+
getLabel
|
|
413
|
+
} = useModuleDictionary();
|
|
414
|
+
const isDesktop = useResponsiveDesktop();
|
|
415
|
+
const isSkeleton = useModuleSkeleton();
|
|
416
|
+
const isFirstRender = useFirstRender([getLabel]);
|
|
417
|
+
const mapStoreRef = useRef();
|
|
418
|
+
if (!mapStoreRef.current) {
|
|
419
|
+
mapStoreRef.current = createMapStore({
|
|
420
|
+
getLabel,
|
|
421
|
+
ownerState: {
|
|
422
|
+
status: "init",
|
|
423
|
+
isMobile: !isDesktop,
|
|
424
|
+
isSkeleton,
|
|
425
|
+
focus: false
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
mapStoreRef.current?.getState().mapActions.init(initialLayers || []);
|
|
429
|
+
}
|
|
430
|
+
const {
|
|
431
|
+
setHandlerGetLabel,
|
|
432
|
+
setExternalState
|
|
433
|
+
} = useStore(mapStoreRef.current, (state) => state.mapActions, shallow);
|
|
434
|
+
useEffect(() => {
|
|
435
|
+
if (!isFirstRender) {
|
|
436
|
+
setHandlerGetLabel(getLabel);
|
|
437
|
+
}
|
|
438
|
+
}, [getLabel]);
|
|
439
|
+
useEffect(() => {
|
|
440
|
+
if (isFirstRender) {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
setExternalState({
|
|
444
|
+
isMobile: !isDesktop,
|
|
445
|
+
isSkeleton
|
|
446
|
+
});
|
|
447
|
+
}, [isDesktop, isSkeleton]);
|
|
448
|
+
return /* @__PURE__ */ jsx(MapContext.Provider, {
|
|
449
|
+
value: mapStoreRef.current,
|
|
450
|
+
children
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
function useMapStore(selector, equalityFn) {
|
|
454
|
+
const context = useContext(MapContext);
|
|
455
|
+
if (!context)
|
|
456
|
+
throw new Error("useMapStore context must be use inside MapContext");
|
|
457
|
+
return useStore(context, selector, equalityFn);
|
|
458
|
+
}
|
|
459
|
+
function useMapToolsStore(selector, equalityFn) {
|
|
460
|
+
const context = useContext(GpsToolsContext);
|
|
461
|
+
if (!context)
|
|
462
|
+
throw new Error("useMapToolsStore context must be use inside GpsToolsContext");
|
|
463
|
+
return useStore(context, selector, equalityFn);
|
|
464
|
+
}
|
|
465
|
+
export {
|
|
466
|
+
MAP_ZINDEX_DEFAULT as M,
|
|
467
|
+
useMapStore as a,
|
|
468
|
+
MAP_ZINDEX_OVER_MAP as b,
|
|
469
|
+
Map as c,
|
|
470
|
+
MapProvider as d,
|
|
471
|
+
MapContext as e,
|
|
472
|
+
mapClasses as m,
|
|
473
|
+
useMapToolsStore as u
|
|
474
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GpsTools(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MapToolsClasses } from './types';
|
|
2
|
+
export declare const mapToolsClasses: MapToolsClasses;
|
|
3
|
+
export declare const useUtilityClasses: () => Record<"root" | "tabToolsRoot" | "tabContentRoot" | "toolGeofences" | "toolGeofencesList" | "toolGeofencesAddEdit" | "toolGeofencesAddEditGeneral" | "toolGeofencesAddEditStyle" | "toolMeasure" | "toolMeasureFormValue" | "toolMeasureFormValueDistance" | "toolMeasureFormValueSymbol" | "toolMeausureLabel" | "toolMeausureLabelDistance" | "toolMeausureLabelSymbol", string>;
|
|
4
|
+
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface MapToolsClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
tabToolsRoot: string;
|
|
4
|
+
tabContentRoot: string;
|
|
5
|
+
toolGeofences: string;
|
|
6
|
+
toolGeofencesList: string;
|
|
7
|
+
toolGeofencesAddEdit: string;
|
|
8
|
+
toolGeofencesAddEditGeneral: string;
|
|
9
|
+
toolGeofencesAddEditStyle: string;
|
|
10
|
+
toolMeasure: string;
|
|
11
|
+
toolMeasureFormValue: string;
|
|
12
|
+
toolMeasureFormValueDistance: string;
|
|
13
|
+
toolMeasureFormValueSymbol: string;
|
|
14
|
+
toolMeausureLabel: string;
|
|
15
|
+
toolMeausureLabelDistance: string;
|
|
16
|
+
toolMeausureLabelSymbol: string;
|
|
17
|
+
visible: string;
|
|
18
|
+
hidden: string;
|
|
19
|
+
}
|
|
20
|
+
export declare type MapToolsClassesKey = keyof MapToolsClasses;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleOpacity, StyleDashArray, StyleWheight } from "./types";
|
|
2
|
+
export declare const COMPONENT_TEST_ID = "M4LGpsTools";
|
|
3
|
+
export declare const COMPONENT_CLASS_NAME = "M4LGpsTools";
|
|
4
|
+
export declare const COOKIE_MAP_GEO_FILTER = "filter_map_geo";
|
|
5
|
+
export declare const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
6
|
+
export declare const STYLE_OPACITIES: StyleOpacity[];
|
|
7
|
+
export declare const STYLE_WHEIGHTS: StyleWheight[];
|
|
8
|
+
export declare const STYLE_PATTERNS: StyleDashArray[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MapToolsProviderProps } from './types';
|
|
3
|
+
declare const GpsToolsContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").MapToolsStateWithActions>, "setState"> & {
|
|
4
|
+
setState<A extends string | {
|
|
5
|
+
type: unknown;
|
|
6
|
+
}>(partial: import("./types").MapToolsStateWithActions | Partial<import("./types").MapToolsStateWithActions> | ((state: import("./types").MapToolsStateWithActions) => import("./types").MapToolsStateWithActions | Partial<import("./types").MapToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
7
|
+
}, "setState"> & {
|
|
8
|
+
setState(nextStateOrUpdater: import("./types").MapToolsStateWithActions | Partial<import("./types").MapToolsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").MapToolsStateWithActions>) => 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 GpsToolsProvider(props: MapToolsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { GpsToolsProvider, GpsToolsContext };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MapToolsStateWithActions, InitialMapToolsStoreProps } 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 createMapToolsStore: (initProps: InitialMapToolsStoreProps) => Omit<Omit<import("zustand").StoreApi<MapToolsStateWithActions>, "setState"> & {
|
|
8
|
+
setState<A extends string | {
|
|
9
|
+
type: unknown;
|
|
10
|
+
}>(partial: MapToolsStateWithActions | Partial<MapToolsStateWithActions> | ((state: MapToolsStateWithActions) => MapToolsStateWithActions | Partial<MapToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
11
|
+
}, "setState"> & {
|
|
12
|
+
setState(nextStateOrUpdater: MapToolsStateWithActions | Partial<MapToolsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<MapToolsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
13
|
+
type: unknown;
|
|
14
|
+
} | undefined): void;
|
|
15
|
+
};
|
|
16
|
+
export declare type MapStore = ReturnType<typeof createMapToolsStore>;
|