@m4l/components 0.2.33 → 0.2.35
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 +25 -0
- package/{commonjs.333e55c7.js → commonjs.565e6834.js} +0 -5
- package/components/AccountPopover/{index.e0f283a2.js → index.39efc8f0.js} +1 -1
- package/components/AppBar/{index.a93fc76c.js → index.c8850b99.js} +2 -2
- package/components/CommonActions/components/ActionCancel/{index.6a991836.js → index.416cbf9b.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.9801982c.js → index.78267f7c.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.f7ee99e7.js → index.dcb4d280.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.7d321553.js → index.094290fd.js} +2 -2
- package/components/CommonActions/components/Actions/{index.5ebb95fe.js → index.fa7ab18c.js} +1 -8
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.de8a24bb.js → index.cd6e553a.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.220dc8f0.js → index.0c439ac3.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.fef17717.js → index.867b8745.js} +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.eb406256.js → index.0b23ba88.js} +6 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/types.d.ts +1 -0
- package/components/DataGrid/{index.27810831.js → index.abe0f9b9.js} +43 -41
- package/components/DataGrid/subcomponents/Actions/{index.810ec53e.js → index.4f2071ee.js} +12 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +15 -9
- package/components/DragResizeWindow/classes/types.d.ts +1 -0
- package/components/DragResizeWindow/{index.1091606d.js → index.13ef022e.js} +108 -63
- package/components/DragResizeWindow/types.d.ts +23 -1
- package/components/DynamicFilter/{index.781f1212.js → index.c52a8e96.js} +11 -11
- package/components/FieldLabel/{index.6127de0c.js → index.0412576c.js} +2 -2
- package/components/GridLayout/{index.cd9b0723.js → index.65470f01.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.9d65edbc.js → index.30016fc1.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.26128960.js → index.5b3e0521.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.003027c6.js → index.0328ad0a.js} +1 -1
- package/components/Icon/{index.d34ed400.js → index.ad330e78.js} +65 -89
- package/components/Image/{index.7ca22fd5.js → index.b799c514.js} +2 -2
- package/components/LanguagePopover/{index.47796ed9.js → index.93c48ec5.js} +2 -2
- package/components/LinearProgressIndeterminate/{index.7349e210.js → index.c46da124.js} +1 -1
- package/components/LoadingError/{index.423d70c8.js → index.ee29dd48.js} +3 -3
- package/components/MFLoader/{index.9bf3be25.js → index.3a37407c.js} +1 -1
- package/components/ModalDialog/{index.17a7be82.js → index.78c9650a.js} +4 -4
- package/components/NoItemSelected/{index.16500ea3.js → index.3a479c64.js} +1 -1
- package/components/ObjectLogs/{index.c33d046a.js → index.1d85a021.js} +6 -6
- package/components/PDFViewer/{index.195bf4c3.js → index.88c6ff6a.js} +1 -1
- package/components/Page/{index.f4ce7c75.js → index.5d34dc4d.js} +1 -1
- package/components/PaperForm/{index.243b20bd.js → index.d08b43f6.js} +1 -1
- package/components/Period/{index.0e647446.js → index.3f89d8a4.js} +2 -2
- package/components/PrintingSystem/{index.7aff86a4.js → index.27f1f209.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.e7c04442.js → index.319a3bb9.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.7bfbe141.js → index.990e164c.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.2e68dba0.js → index.e504dbd2.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.bb2a7dcb.js → index.9a19a7cb.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.53d82ef7.js → index.8d14e1b6.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.3630fe0c.js → index.89e4eaab.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.a7086296.js → index.dd4ca449.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.633304a0.js → index.048d7ebf.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.40da2bf8.js → index.83f1efea.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.0c9719ce.js → index.5427cb75.js} +1 -1
- package/components/PropertyValue/{index.1b45d87a.js → index.15c61a4b.js} +2 -2
- package/components/Resizeable/{index.e663ca86.js → index.cb5aad75.js} +1 -1
- package/components/SideBar/{index.31e9929f.js → index.b0359a2b.js} +4 -4
- package/components/SplitLayout/{index.3856385c.js → index.7302ceb3.js} +1 -1
- package/components/ToastContainer/{index.3c3c05b2.js → index.4d44ce53.js} +4 -4
- package/components/areas/components/AreasAdmin/{index.971a3f2d.js → index.820a00ab.js} +10 -10
- package/components/areas/components/AreasViewer/{index.dfa954fe.js → index.6d7194e2.js} +14 -14
- package/components/areas/contexts/AreasContext/{index.732db5ce.js → index.c5a3b322.js} +4 -4
- package/components/areas/hooks/useAreas/{index.2b111188.js → index.caa92660.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.d9adaa14.js → index.9cf586a2.js} +1 -1
- package/components/commercial/SectionCommercial/index.4dbfc0a7.js +48 -0
- package/components/commercial/TopBar/{index.5fe97d82.js → index.93a7d26a.js} +4 -4
- package/components/{HamburgerMenu/index.35df83ad.js → commercial/index.89ad149c.js} +2 -2
- package/components/formatters/BooleanFormatter/{index.96191097.js → index.9ccf9298.js} +2 -2
- package/components/formatters/{index.3166cf12.js → index.03471e3f.js} +1 -1
- package/components/hook-form/HelperError/index.66bbcac3.js +30 -0
- package/components/hook-form/RHFAutocomplete/{index.48f7b38f.js → index.1f2afb6b.js} +4 -4
- package/components/hook-form/RHFAutocompleteAsync/{index.e5aa7194.js → index.bc278965.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.2a9f91d2.js → index.eca64469.js} +2 -2
- package/components/hook-form/RHFColorPicker/{index.b9ce28a2.js → index.dc13d5a3.js} +6 -8
- package/components/hook-form/RHFDateTime/{index.d4644a5b.js → index.e554b068.js} +3 -3
- package/components/hook-form/RHFHelperError/index.d.ts +4 -0
- package/components/hook-form/RHFPeriod/{index.2550b309.js → index.e4e4530f.js} +3 -3
- package/components/hook-form/RHFTextField/{index.01d225ef.js → index.1bfa601f.js} +4 -4
- package/components/hook-form/RHFUpload/{index.e4cdfb40.js → index.6e98b291.js} +4 -4
- package/components/index.d.ts +2 -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 +13 -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 +165 -0
- package/components/maps/components/GpsTools/hooks/useGpsToolsStore/index.d.ts +2 -0
- package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +1 -0
- package/components/maps/components/GpsTools/icons.d.ts +15 -0
- package/components/maps/components/GpsTools/index.d.ts +3 -0
- package/components/maps/components/GpsTools/index.d93188ad.js +1792 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/index.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.d.ts +19 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +11 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +8 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +22 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/types.d.ts +27 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +4 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/model.d.ts +122 -0
- package/components/maps/components/GpsTools/types.d.ts +34 -0
- package/components/maps/components/Map/Map.d.ts +9 -0
- package/components/maps/components/Map/classes/index.d.ts +5 -0
- package/components/maps/components/Map/classes/types.d.ts +69 -0
- package/components/maps/components/Map/constants.d.ts +24 -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 +592 -0
- package/components/maps/components/Map/dictionary.d.ts +86 -0
- package/components/maps/components/Map/external/Control/index.d.ts +11 -0
- package/components/maps/components/Map/external/Control/types.d.ts +8 -0
- package/components/maps/components/Map/external/googleMutant/index.d.ts +94 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +8 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/index.d.ts +3 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/types.d.ts +7 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/index.d.ts +2 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/types.d.ts +6 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarker.d.ts +6 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +1 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +1 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +2 -0
- package/components/maps/components/Map/featureRenders/index.d.ts +2 -0
- package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +8 -0
- package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +15 -0
- package/components/maps/components/Map/hooks/useDisableZoomEvents/index.d.ts +6 -0
- package/components/maps/components/Map/hooks/useMapStore/index.d.ts +3 -0
- package/components/maps/components/Map/icons.d.ts +50 -0
- package/components/maps/components/Map/index.accb1f77.js +2386 -0
- package/components/maps/components/Map/index.d.ts +7 -0
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +9 -0
- package/components/maps/components/Map/pluginLayers/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/index.d.ts +17 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +7 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +15 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +13 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +27 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +12 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +30 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +11 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +13 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +13 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +10 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/types.d.ts +22 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +17 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +20 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +12 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/types.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/TileLayers/index.d.ts +6 -0
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +6 -0
- package/components/maps/components/Map/types.d.ts +40 -0
- package/components/maps/index.34ab6a68.js +7 -0
- package/components/maps/index.d.ts +3 -0
- package/components/maps/utils.d.ts +15 -0
- package/components/modal/{WindowBase.1cb35b2d.js → WindowBase.fd86f575.js} +3 -3
- package/components/modal/{WindowConfirm.8feb23c6.js → WindowConfirm.ee6de236.js} +6 -6
- package/components/mui_extended/Accordion/{index.32ebf85f.js → index.7dcdfd3a.js} +2 -2
- package/components/mui_extended/Button/{index.7265987f.js → index.c3084916.js} +1 -1
- package/components/mui_extended/{CheckBox.4e2fa17c.js → CheckBox.2a3b86c5.js} +1 -1
- package/components/mui_extended/IconButton/{index.21215143.js → index.f8a3021b.js} +1 -1
- package/components/mui_extended/MenuActions/{index.40352568.js → index.90f53670.js} +2 -2
- package/components/mui_extended/Pager/{index.0d7d95be.js → index.ea2a4f3e.js} +2 -2
- package/components/mui_extended/Tab/{index.2068925d.js → index.9214d9cc.js} +4 -4
- package/components/mui_extended/TabContent/types.d.ts +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.d.ts +2 -1
- package/components/mui_extended/ToggleButton/{index.aa37e2cb.js → index.191711f3.js} +6 -9
- package/components/mui_extended/ToggleButton/types.d.ts +2 -2
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.d.ts +1 -12
- package/components/mui_extended/ToggleIconButton/index.d9dbf650.js +19 -0
- package/components/mui_extended/ToggleIconButton/types.d.ts +2 -3
- package/components/popups/PopupsProvider/index.d7409f48.js +179 -0
- package/components/popups/PopupsViewer/index.1500ce72.js +186 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +19 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +7 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/index.d.ts +1 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +16 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +160 -0
- package/components/popups/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +3 -0
- package/components/popups/components/PopupsProvider/index.d.ts +2 -0
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +8 -0
- package/components/popups/components/PopupsViewer/classes/index.d.ts +15 -0
- package/components/popups/components/PopupsViewer/classes/types.d.ts +13 -0
- package/components/{PopupsProvider → popups/components/PopupsViewer}/constants.d.ts +2 -2
- package/components/popups/components/PopupsViewer/icons.d.ts +3 -0
- package/components/popups/components/PopupsViewer/index.d.ts +1 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/index.d.ts +9 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/Header/index.d.ts +2 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/Header/types.d.ts +2 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +16 -0
- package/components/popups/components/PopupsViewer/types.d.ts +3 -0
- package/components/popups/index.c5eae682.js +1 -0
- package/components/popups/index.d.ts +2 -0
- package/contexts/ModalContext/{index.365ae264.js → index.2368bb19.js} +1 -1
- package/hocs/withToggle/index.50aec5e4.js +22 -0
- package/hocs/withToggle/index.d.ts +2 -2
- package/hocs/withToggle/types.d.ts +6 -4
- package/hooks/useFormAddEdit/{index.7f3162c9.js → index.000ce60b.js} +2 -2
- package/hooks/useFormReadyForUpdate/index.d.ts +6 -0
- package/hooks/useFormReadyForUpdate/index.f60f500e.js +20 -0
- package/hooks/useModal/{index.5a463055.js → index.f73d7e42.js} +1 -1
- package/hooks/useSizeContainer/contants.d.ts +1 -0
- package/hooks/useSizeContainer/index.62b4e0c4.js +35 -0
- package/hooks/useSizeContainer/index.d.ts +8 -0
- package/hooks/useStateRef/index.538edb89.js +15 -0
- package/hooks/useStateRef/index.d.ts +8 -0
- package/hooks/useTab/{index.c0564138.js → index.976d5e1e.js} +1 -1
- package/index.js +157 -115
- package/package.json +11 -5
- package/{react-draggable.483e2eaa.js → react-draggable.e4725f3a.js} +4 -4
- package/{react-json-view.5636414a.js → react-json-view.57125fcf.js} +1 -1
- package/{react-resizable.059cf55c.js → react-resizable.c07d63fb.js} +5 -5
- package/{react-splitter-layout.c5d98bf7.js → react-splitter-layout.8b1655c8.js} +3 -3
- package/components/PopupsProvider/index.3d5ad0ee.js +0 -4
- package/components/mui_extended/ToggleIconButton/index.827d5856.js +0 -29
- package/hocs/withToggle/index.e44eb0da.js +0 -24
- package/node_modules.0fb6293f.js +0 -6921
- package/vendor.52f0234f.js +0 -182
- /package/utils/{index.d2e8f376.js → index.6469f148.js} +0 -0
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { MapClasses } from '../../classes/types';
|
|
4
|
+
import L, { Layer, LeafletEvent } from 'leaflet';
|
|
5
|
+
export declare type FeatureId = string | number;
|
|
6
|
+
/**
|
|
7
|
+
* The valid values for the "type" property of GeoJSON* geometry objects.
|
|
8
|
+
* https://tools.ietf.org/html/rfc7946#section-1.4
|
|
9
|
+
*/
|
|
10
|
+
export declare type GeoJsonGeometryTypes = Geometry['type'];
|
|
11
|
+
/**
|
|
12
|
+
* The value values for the "type" property of GeoJSON* Objects.
|
|
13
|
+
* https://tools.ietf.org/html/rfc7946#section-1.4
|
|
14
|
+
*/
|
|
15
|
+
export declare type GeoJsonTypes = GeoJSON['type'];
|
|
16
|
+
/**
|
|
17
|
+
* Bounding box
|
|
18
|
+
* https://tools.ietf.org/html/rfc7946#section-5
|
|
19
|
+
*/
|
|
20
|
+
export declare type BBox = [number, number, number, number] | [number, number, number, number, number, number];
|
|
21
|
+
/**
|
|
22
|
+
* A Position is an array of coordinates.
|
|
23
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.1
|
|
24
|
+
* Array should contain between two and three elements.
|
|
25
|
+
* The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
|
|
26
|
+
* but the current specification only allows X, Y, and (optionally) Z to be defined.
|
|
27
|
+
*/
|
|
28
|
+
export declare type Position = number[];
|
|
29
|
+
/**
|
|
30
|
+
* The base GeoJSON object.
|
|
31
|
+
* https://tools.ietf.org/html/rfc7946#section-3
|
|
32
|
+
* The GeoJSON specification also allows foreign members
|
|
33
|
+
* (https://tools.ietf.org/html/rfc7946#section-6.1)
|
|
34
|
+
* Developers should use "&" type in TypeScript or extend the interface
|
|
35
|
+
* to add these foreign members.
|
|
36
|
+
*/
|
|
37
|
+
export interface GeoJsonObject {
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the type of GeoJSON object.
|
|
40
|
+
*/
|
|
41
|
+
type: GeoJsonTypes;
|
|
42
|
+
/**
|
|
43
|
+
* Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections.
|
|
44
|
+
* The value of the bbox member is an array of length 2*n where n is the number of dimensions
|
|
45
|
+
* represented in the contained geometries, with all axes of the most southwesterly point
|
|
46
|
+
* followed by all axes of the more northeasterly point.
|
|
47
|
+
* The axes order of a bbox follows the axes order of geometries.
|
|
48
|
+
* https://tools.ietf.org/html/rfc7946#section-5
|
|
49
|
+
*/
|
|
50
|
+
bbox?: BBox | undefined;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Union of GeoJSON objects.
|
|
54
|
+
*/
|
|
55
|
+
export declare type GeoJSON = Geometry | Feature | FeatureCollection;
|
|
56
|
+
/**
|
|
57
|
+
* Geometry object.
|
|
58
|
+
* https://tools.ietf.org/html/rfc7946#section-3
|
|
59
|
+
*/
|
|
60
|
+
export declare type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
|
|
61
|
+
export declare type GeometryObject = Geometry;
|
|
62
|
+
/**
|
|
63
|
+
* Point geometry object.
|
|
64
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.2
|
|
65
|
+
*/
|
|
66
|
+
export interface Point extends GeoJsonObject {
|
|
67
|
+
type: 'Point';
|
|
68
|
+
coordinates: Position;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* MultiPoint geometry object.
|
|
72
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.3
|
|
73
|
+
*/
|
|
74
|
+
export interface MultiPoint extends GeoJsonObject {
|
|
75
|
+
type: 'MultiPoint';
|
|
76
|
+
coordinates: Position[];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* LineString geometry object.
|
|
80
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.4
|
|
81
|
+
*/
|
|
82
|
+
export interface LineString extends GeoJsonObject {
|
|
83
|
+
type: 'LineString';
|
|
84
|
+
coordinates: Position[];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* MultiLineString geometry object.
|
|
88
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.5
|
|
89
|
+
*/
|
|
90
|
+
export interface MultiLineString extends GeoJsonObject {
|
|
91
|
+
type: 'MultiLineString';
|
|
92
|
+
coordinates: Position[][];
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Polygon geometry object.
|
|
96
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
97
|
+
*/
|
|
98
|
+
export interface Polygon extends GeoJsonObject {
|
|
99
|
+
type: 'Polygon';
|
|
100
|
+
coordinates: Position[][];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* MultiPolygon geometry object.
|
|
104
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
105
|
+
*/
|
|
106
|
+
export interface MultiPolygon extends GeoJsonObject {
|
|
107
|
+
type: 'MultiPolygon';
|
|
108
|
+
coordinates: Position[][][];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Geometry Collection
|
|
112
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.8
|
|
113
|
+
*/
|
|
114
|
+
export interface GeometryCollection<G extends Geometry = Geometry> extends GeoJsonObject {
|
|
115
|
+
type: 'GeometryCollection';
|
|
116
|
+
geometries: G[];
|
|
117
|
+
}
|
|
118
|
+
export declare type SubTypeType = 'Marker' | 'CustomMarker' | 'Circle' | 'Rectangle' | 'Polyline' | 'PolylineWithArrows';
|
|
119
|
+
export declare type GeoJsonBaseProperties = {
|
|
120
|
+
/**
|
|
121
|
+
* "className" Clase del icono de la marca
|
|
122
|
+
*/
|
|
123
|
+
className?: string;
|
|
124
|
+
/**
|
|
125
|
+
* propiedad generica
|
|
126
|
+
*/
|
|
127
|
+
[name: string]: any;
|
|
128
|
+
};
|
|
129
|
+
export interface FeatureIconLabel {
|
|
130
|
+
label?: string;
|
|
131
|
+
labelColor?: string;
|
|
132
|
+
labelBkColor?: string;
|
|
133
|
+
iconWidth?: number;
|
|
134
|
+
iconHeight?: number;
|
|
135
|
+
offsetLeftTop?: [number, number];
|
|
136
|
+
[name: string]: any;
|
|
137
|
+
}
|
|
138
|
+
export declare type GeoJsonMarkerProperties = GeoJsonBaseProperties & {
|
|
139
|
+
subType: 'Marker';
|
|
140
|
+
/**
|
|
141
|
+
* "iconUrl": Url relativa a la marca, también puede ser una url a s3, etc.
|
|
142
|
+
* Normalmente se usa los iconos publicos de la carpeta /maps/assets/icons
|
|
143
|
+
*/
|
|
144
|
+
iconUrl?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* "iconScale": Escala del icono de la marca, por defecto es 1
|
|
148
|
+
* Importante: los Iconos en SVG no pueden tener un ratio mayor a 2.5 entre el ancho y el alto
|
|
149
|
+
*/
|
|
150
|
+
scaleIcon?: number;
|
|
151
|
+
/**
|
|
152
|
+
* "iconBearing" Dirección de la marca en grados, cuando es tipo de Marker
|
|
153
|
+
*/
|
|
154
|
+
iconBearing?: number;
|
|
155
|
+
/**
|
|
156
|
+
* "iconOffsetRotate" Cantidad de grados en sentido horario (Positivo) que está rotado el icono con respecto al norte.
|
|
157
|
+
* Si vienve el offset de Girado a 180, offsetRotate = -90,
|
|
158
|
+
* Si vienve de 0, offsetRotate = 90,
|
|
159
|
+
* Default: -90
|
|
160
|
+
*/
|
|
161
|
+
iconOffsetRotate?: number;
|
|
162
|
+
/**
|
|
163
|
+
* "label" Etiqueta de la marca
|
|
164
|
+
*/
|
|
165
|
+
label?: string;
|
|
166
|
+
/**
|
|
167
|
+
* "labelBkColor" Color de fondo de la etiqueta de la marca
|
|
168
|
+
*/
|
|
169
|
+
labelBkColor?: string;
|
|
170
|
+
/**
|
|
171
|
+
* "labelColor" Color de la etiqueta de la marca
|
|
172
|
+
*/
|
|
173
|
+
labelColor?: string;
|
|
174
|
+
/**
|
|
175
|
+
* "markerColor" Color de la marca
|
|
176
|
+
*/
|
|
177
|
+
markerColor?: string;
|
|
178
|
+
} & Pick<FeatureIconLabel, 'label' | 'labelColor' | 'labelBkColor' | 'iconWidth' | 'iconHeight' | 'offsetLeftTop'>;
|
|
179
|
+
export declare type GeoJsonPolylineWithArrowsProperties = GeoJsonBaseProperties & {
|
|
180
|
+
subType: 'PolylineWithArrows';
|
|
181
|
+
};
|
|
182
|
+
export declare type GeoJsonCircleProperties = GeoJsonBaseProperties & {
|
|
183
|
+
subType: 'Circle';
|
|
184
|
+
radius: number;
|
|
185
|
+
};
|
|
186
|
+
export declare type GeoJsonProperties = GeoJsonMarkerProperties | GeoJsonCircleProperties | GeoJsonPolylineWithArrowsProperties;
|
|
187
|
+
export declare type LayerWithBounds = Layer;
|
|
188
|
+
export declare type FeatureLayerData = {
|
|
189
|
+
boundsNW: L.LatLng;
|
|
190
|
+
boundsSE: L.LatLng;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* A feature object which contains a geometry and associated properties.
|
|
194
|
+
* https://tools.ietf.org/html/rfc7946#section-3.2
|
|
195
|
+
*/
|
|
196
|
+
export interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
197
|
+
type: 'Feature';
|
|
198
|
+
/**
|
|
199
|
+
* The feature's geometry
|
|
200
|
+
*/
|
|
201
|
+
geometry: G;
|
|
202
|
+
/**
|
|
203
|
+
* A value that uniquely identifies this feature in a
|
|
204
|
+
* https://tools.ietf.org/html/rfc7946#section-3.2.
|
|
205
|
+
*/
|
|
206
|
+
id: FeatureId;
|
|
207
|
+
/**
|
|
208
|
+
* Properties associated with this feature.
|
|
209
|
+
*/
|
|
210
|
+
properties: P;
|
|
211
|
+
/**
|
|
212
|
+
* "getLeafletLayer" es una función que retorna la capa de leaflet que creo renderFeature
|
|
213
|
+
* set usa esta metodología, porque guarda toda la capa en zustand, es muy pesado, al guardar
|
|
214
|
+
* solo funciones, se ahorra memoria.
|
|
215
|
+
*/
|
|
216
|
+
layerData?: FeatureLayerData;
|
|
217
|
+
/**
|
|
218
|
+
* "label" Etiqueta de la geometria, undenfined si no se quiere mostrar
|
|
219
|
+
*/
|
|
220
|
+
featureLabel?: FeatureIconLabel;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* A collection of feature objects.
|
|
224
|
+
* https://tools.ietf.org/html/rfc7946#section-3.3
|
|
225
|
+
*/
|
|
226
|
+
export interface FeatureCollection<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
227
|
+
type: 'FeatureCollection';
|
|
228
|
+
features: Array<Feature<G, P>>;
|
|
229
|
+
}
|
|
230
|
+
export declare type RealTimeConfig = {
|
|
231
|
+
/**
|
|
232
|
+
* "active" si está activa la funcionalidad de tiempo real
|
|
233
|
+
*/
|
|
234
|
+
active: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* "userCanDeactivateTail" El usario puede temporalmente desactivar la cola de un punto de tipo tiemo real.
|
|
237
|
+
*/
|
|
238
|
+
userCanDeactivateTail: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* "maxZoom" Maximo zoom donde se muestra la cola.
|
|
241
|
+
*/
|
|
242
|
+
maxZoom: number;
|
|
243
|
+
/**
|
|
244
|
+
* qtyTailPointsMax Cantidad de puntos de la cola de tiempo real.
|
|
245
|
+
*/
|
|
246
|
+
qtyTailPointsMax: number;
|
|
247
|
+
/**
|
|
248
|
+
* "windowTailTime" Ventana de tiempo para no generar una cola retrasa en el mapa. ejemplo 30 segundos.
|
|
249
|
+
* Eventos fuera de este tiempo con respecto al primer punto no se deberían visualizaar evitando colas fantasma por tanto no confiables.
|
|
250
|
+
*/
|
|
251
|
+
windowTailTime: number;
|
|
252
|
+
};
|
|
253
|
+
export declare type PointType = 'point' | 'cluster';
|
|
254
|
+
/**
|
|
255
|
+
* Argumentos que recibe una Render Prop cuando se renderiza por renderFeature
|
|
256
|
+
* @interface
|
|
257
|
+
*/
|
|
258
|
+
export interface RendePropFeatureArgs {
|
|
259
|
+
id: FeatureId;
|
|
260
|
+
/**
|
|
261
|
+
* "layerId" si está activa la funcionalidad de tiempo real
|
|
262
|
+
*/
|
|
263
|
+
layerId: string;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Argumentos que recibe una Render Prop cuando se renderiza por renderFeature
|
|
267
|
+
* @interface
|
|
268
|
+
*/
|
|
269
|
+
export interface RendePropFeaturesCollectionArgs extends FeatureCollection {
|
|
270
|
+
/**
|
|
271
|
+
* "id" identificado unico del feature
|
|
272
|
+
* En la capa multipoints clusteable:
|
|
273
|
+
* el id se forma con el patron: device_device_id O cluster_CRCDevicesIds_count
|
|
274
|
+
* Si la capa es multilines
|
|
275
|
+
* el id normalmente es el indice del array de multilines
|
|
276
|
+
*
|
|
277
|
+
* TODO: Se debe hacer el esfuerzo de memonizar los ids
|
|
278
|
+
*/
|
|
279
|
+
id: string;
|
|
280
|
+
/**
|
|
281
|
+
* "layerId" si está activa la funcionalidad de tiempo real
|
|
282
|
+
*/
|
|
283
|
+
layerId: string;
|
|
284
|
+
}
|
|
285
|
+
export interface GeoJsonImplementedObject {
|
|
286
|
+
/**
|
|
287
|
+
* Specifies the type of GeoJSON object.
|
|
288
|
+
*/
|
|
289
|
+
object: Feature | FeatureCollection;
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
*/
|
|
293
|
+
bbox?: BBox | undefined;
|
|
294
|
+
}
|
|
295
|
+
export declare type CheckedNameSet = 'visible' | 'autoFocus' | 'cluster';
|
|
296
|
+
export declare type LayerStore = {
|
|
297
|
+
/**
|
|
298
|
+
* "layerId" Indetificador unico entre todas las capas
|
|
299
|
+
*/
|
|
300
|
+
layerId: string;
|
|
301
|
+
/**
|
|
302
|
+
* "name" Como se va a ver el listado de capas
|
|
303
|
+
*/
|
|
304
|
+
name?: string;
|
|
305
|
+
/**
|
|
306
|
+
* "visible" si es visible o no
|
|
307
|
+
*/
|
|
308
|
+
visible?: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* "autoFocus" Cuando cambia el contedido de las capas, tener esta capa para incluir en el foco global
|
|
311
|
+
* del mapa. Por defecto es false
|
|
312
|
+
*/
|
|
313
|
+
autoFocus: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* "clusterAble" indica si la capa es clusterizable. (Solo aplica capa tipo multipoints)
|
|
316
|
+
*/
|
|
317
|
+
clusterAble?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* "deleteAble" indica si la capa es borrable por el usuario
|
|
320
|
+
*/
|
|
321
|
+
deleteAble?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* "cluster" Cuando la capa es ta enmodo cluster, indica que si las marcas se intersectan
|
|
324
|
+
* debe se grupadas en un icono en indicar cuantas maras hay en el cluster
|
|
325
|
+
*/
|
|
326
|
+
cluster?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* "geoJsonObject" inidica cual es objeto as rederizas (Un sola capa Feature o FeatureCollection)
|
|
329
|
+
* y los bounds del objeto TODO: depront bounds debe ir directamene en el feature.
|
|
330
|
+
* TODO: Incluir el bounds en la capa de leaftLayer para dar mayor velocidad al mapa CREO.
|
|
331
|
+
*/
|
|
332
|
+
geoJsonObject?: GeoJsonImplementedObject;
|
|
333
|
+
/**
|
|
334
|
+
* "renderFeature" render prop encarga de renderizar cada feature
|
|
335
|
+
*/
|
|
336
|
+
renderFeature?: ComponentRenderPropFeature;
|
|
337
|
+
onClick?: (e: LeafletEvent) => void;
|
|
338
|
+
};
|
|
339
|
+
export declare type ComponentRenderPropFeature = React.FC<RendePropFeatureArgs>;
|
|
340
|
+
export declare type ComponentRenderPropFeaturesCollection = React.FC<RendePropFeaturesCollectionArgs>;
|
|
341
|
+
/**
|
|
342
|
+
* @description Interface usada para inicializar una capa tipo Multipoints desde el MapProvider
|
|
343
|
+
*/
|
|
344
|
+
export declare type InitialLayer = LayerStore;
|
|
345
|
+
/**
|
|
346
|
+
* @description interfaz usada para actualizar un feature especifico de la capa
|
|
347
|
+
*/
|
|
348
|
+
export interface ForSetSingleFeatureData extends Feature {
|
|
349
|
+
featureId?: string;
|
|
350
|
+
jsonUri?: string;
|
|
351
|
+
}
|
|
352
|
+
export declare type MapStatus = 'init' | 'ready';
|
|
353
|
+
export declare type OwnerState = {
|
|
354
|
+
status: MapStatus;
|
|
355
|
+
/**
|
|
356
|
+
* "isMobile" cuando el navegador está en modo celular
|
|
357
|
+
*/
|
|
358
|
+
isMobile: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* "isSkeleton" indica si el componente está en skeleton.
|
|
361
|
+
*/
|
|
362
|
+
isSkeleton: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* focus: Estado de selección asignado por el usuario.
|
|
365
|
+
*
|
|
366
|
+
*/
|
|
367
|
+
focus: boolean;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* @type
|
|
371
|
+
* @name ExternalOwnerState
|
|
372
|
+
* @description Estados que se actulizan por fuera del store, a través de hooks
|
|
373
|
+
*/
|
|
374
|
+
export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
|
|
375
|
+
export declare type AreaMapType = {
|
|
376
|
+
leftLowerLatitudeOffset: number;
|
|
377
|
+
leftLowerLengthOffset: number;
|
|
378
|
+
rigthUpperLatitudeOffset: number;
|
|
379
|
+
rigthUpperLengthOffset: number;
|
|
380
|
+
mapLengthDelta: number;
|
|
381
|
+
leftLowerLength: number;
|
|
382
|
+
mapLatBottomDegree: number;
|
|
383
|
+
};
|
|
384
|
+
export declare type SourceTypeTile = 'OSM' | 'Google' | 'Bing' | 'GoogleNoKey';
|
|
385
|
+
export declare type mapTypeTile = "roadmap" | "satellite" | "terrain" | "hybrid";
|
|
386
|
+
export declare type MapSourceId = 'osm_roadmap' | 'google_rodmap' | 'google_satellite' | 'google_hybrid' | 'bing_rodmap' | string;
|
|
387
|
+
export declare type RoadOptionsType = {
|
|
388
|
+
bicyclingLayer: boolean;
|
|
389
|
+
trafficLayer: boolean;
|
|
390
|
+
transitLayer: boolean;
|
|
391
|
+
};
|
|
392
|
+
export declare type TileLayerSource = {
|
|
393
|
+
/**
|
|
394
|
+
* "id" identificador unico de la fuente de capas
|
|
395
|
+
*/
|
|
396
|
+
id: MapSourceId;
|
|
397
|
+
/**
|
|
398
|
+
* "dictionaryId" identificador del diccionario
|
|
399
|
+
*/
|
|
400
|
+
dictionaryId: string;
|
|
401
|
+
/**
|
|
402
|
+
* "iconUrl" url del icono de la fuente de capas
|
|
403
|
+
*/
|
|
404
|
+
iconUrl: string;
|
|
405
|
+
/**
|
|
406
|
+
* "sourceType" Tipo de fuente de capas
|
|
407
|
+
*/
|
|
408
|
+
sourceType: SourceTypeTile;
|
|
409
|
+
/**
|
|
410
|
+
* "mapTypeTile" Tipo de mapa
|
|
411
|
+
*/
|
|
412
|
+
mapTypeTile: mapTypeTile;
|
|
413
|
+
/**
|
|
414
|
+
* "urlTemplate" url de la fuente de capas, de donde se salen los tiles,
|
|
415
|
+
* los subdominios se deben indicar con {s}
|
|
416
|
+
*/
|
|
417
|
+
urlTemplate: string;
|
|
418
|
+
/**
|
|
419
|
+
* "options" opciones de la fuente de capas, para definir limitaciones de zoom, subdominios, atribuciones, etc.
|
|
420
|
+
*/
|
|
421
|
+
options: L.TileLayerOptions;
|
|
422
|
+
/**
|
|
423
|
+
* "hasTrafficLayer" si la fuente de capas tiene capa de tráfico
|
|
424
|
+
*/
|
|
425
|
+
hasTrafficLayer?: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* "hasTransitLayer" si la fuente de capas tiene capa de transporte público
|
|
428
|
+
*/
|
|
429
|
+
hasTransitLayer?: boolean;
|
|
430
|
+
/**
|
|
431
|
+
* "hasBicyclingLayer" si la fuente de capas tiene capa de ciclovías
|
|
432
|
+
*/
|
|
433
|
+
hasBicyclingLayer?: boolean;
|
|
434
|
+
/**
|
|
435
|
+
* "roadSelectedOptions" opcione de via (bicyclingLayer, trafficLayer, transitLayer) de cada una de las fuentes de capas
|
|
436
|
+
*/
|
|
437
|
+
roadSelectedOptions: RoadOptionsType;
|
|
438
|
+
/**
|
|
439
|
+
* "getTileUrl" función que retorna la url de un tile, se usa cuando se necesita hacer un "tile server" que no
|
|
440
|
+
* usa el estand x,y,x por ejemplo bing que usa QuadKey
|
|
441
|
+
* @param coords
|
|
442
|
+
* @returns
|
|
443
|
+
*/
|
|
444
|
+
getTileUrl?: (coords: L.Coords) => string;
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* @interface
|
|
448
|
+
* @description Interface que define las propidades necesarias para utilizar las capas de google.
|
|
449
|
+
*/
|
|
450
|
+
export interface GoogleMapState {
|
|
451
|
+
/**
|
|
452
|
+
* "googleApiKey" Clave de la API de mapas.
|
|
453
|
+
*/
|
|
454
|
+
googleApiKey: string;
|
|
455
|
+
/**
|
|
456
|
+
* "googleMapVersion" Versión de la API de Google Maps cuando se usa fuentes de mapa tipo google. valor por defecto weekly
|
|
457
|
+
*/
|
|
458
|
+
googleMapVersion?: string;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* @interface
|
|
462
|
+
* @description Interface que define el estado del componente (variables y funciones )
|
|
463
|
+
*/
|
|
464
|
+
export interface MapState extends GoogleMapState {
|
|
465
|
+
ownerState: OwnerState;
|
|
466
|
+
/**
|
|
467
|
+
* "classes" enfocado al funcionamiento de las clases a nivel de map
|
|
468
|
+
*/
|
|
469
|
+
classes: MapClasses;
|
|
470
|
+
/**
|
|
471
|
+
* "currentMapSourceId" ud fuente de mapas actual, por defecto "OSM"
|
|
472
|
+
*/
|
|
473
|
+
currentMapSourceId: MapSourceId;
|
|
474
|
+
/**
|
|
475
|
+
* "Ids" de las fuentes de mapas cargados
|
|
476
|
+
*/
|
|
477
|
+
mapSourcesIds: MapSourceId[];
|
|
478
|
+
/**
|
|
479
|
+
* "hashMapSources" Layers de trabajo
|
|
480
|
+
*/
|
|
481
|
+
hashMapSources: Record<MapSourceId, TileLayerSource>;
|
|
482
|
+
/**
|
|
483
|
+
* "LayersIds" Layers de trabajo para saber en que orden se muestran en el LayersAdmin
|
|
484
|
+
*/
|
|
485
|
+
layersIds: string[];
|
|
486
|
+
/**
|
|
487
|
+
* "hashLayers" Layers de trabajo
|
|
488
|
+
*/
|
|
489
|
+
hashLayers: Record<string, LayerStore>;
|
|
490
|
+
/**
|
|
491
|
+
* "visibleCheckedLayers" set de capas checkead que coresponden a la capas visibles, usado en el componente de mapa Viewer, para el grid
|
|
492
|
+
*/
|
|
493
|
+
visibleCheckedLayers: ReadonlySet<string>;
|
|
494
|
+
/**
|
|
495
|
+
* "checkedAutoFocusLayers" Si la capa participa del autofocus global
|
|
496
|
+
*/
|
|
497
|
+
autoFocusCheckedLayers: ReadonlySet<string>;
|
|
498
|
+
/**
|
|
499
|
+
* "checkedClusterLayers" Si la capa es clusterizable
|
|
500
|
+
*/
|
|
501
|
+
clusterCheckedLayers: ReadonlySet<string>;
|
|
502
|
+
/**
|
|
503
|
+
* "getLabel" funcion que usará para traducir las etiquetas de diccionario
|
|
504
|
+
*/
|
|
505
|
+
getLabel: GetLabelType;
|
|
506
|
+
}
|
|
507
|
+
export interface MapStateWithActions extends MapState {
|
|
508
|
+
mapActions: {
|
|
509
|
+
/**
|
|
510
|
+
* @description
|
|
511
|
+
*/
|
|
512
|
+
init(layersStore: LayerStore[]): void;
|
|
513
|
+
/**
|
|
514
|
+
* @description Cambia el estado del map
|
|
515
|
+
*/
|
|
516
|
+
setMapState: (state: MapStatus) => void;
|
|
517
|
+
/**
|
|
518
|
+
* @description Modifica toda la capa, reemplanzando todo el geoJson
|
|
519
|
+
*/
|
|
520
|
+
setDataLayer: (layerId: string, geoJson: GeoJsonImplementedObject) => void;
|
|
521
|
+
/**
|
|
522
|
+
* @description Agrega o modifica un feature especifico de la capa
|
|
523
|
+
*/
|
|
524
|
+
setFeatureData: (layerId: string, featureId: FeatureId, geometry: GeometryObject, properties: GeoJsonProperties, featureLabel?: FeatureIconLabel) => void;
|
|
525
|
+
/**
|
|
526
|
+
* @description Remueve un feature especifico de la capa
|
|
527
|
+
*/
|
|
528
|
+
removeFeature: (layerId: string, featureId: FeatureId) => void;
|
|
529
|
+
/**
|
|
530
|
+
* @description Retorna el vector de featureIds para saber que que está renderizado en el mapa
|
|
531
|
+
*/
|
|
532
|
+
getFeatureIds: (layerId: string) => FeatureId[];
|
|
533
|
+
/**
|
|
534
|
+
* @description Actualizar instancia la render prop de una capa
|
|
535
|
+
*/
|
|
536
|
+
setLayerRenderProp: (layerId: string, value: ComponentRenderPropFeature) => void;
|
|
537
|
+
/**
|
|
538
|
+
* @description Agrega una capa nueva,
|
|
539
|
+
*/
|
|
540
|
+
addLayer: (layer: LayerStore) => void;
|
|
541
|
+
/**
|
|
542
|
+
* @description Agrega una capa nueva a un feature especifico,
|
|
543
|
+
*/
|
|
544
|
+
addLayerDataToFeature: (layerId: string, featureId: FeatureId, layerData: FeatureLayerData) => void;
|
|
545
|
+
/**
|
|
546
|
+
* @description Remueve un feature especifico de la capa
|
|
547
|
+
*/
|
|
548
|
+
removeLayer: (layerId: string) => void;
|
|
549
|
+
/**
|
|
550
|
+
* @description Remueve e una capa nueva,
|
|
551
|
+
*/
|
|
552
|
+
/**
|
|
553
|
+
* @description Cambia las capas la propieda (visible,autoFous,cluser) que estan visibles o no
|
|
554
|
+
*/
|
|
555
|
+
setCheckedLayers: (checkedNameSet: CheckedNameSet, newCheckedSet: ReadonlySet<string>) => void;
|
|
556
|
+
/**
|
|
557
|
+
* @description Actualiza el map source que se visualiza en el mapa.
|
|
558
|
+
* Solo puede haber uno al tiempo.
|
|
559
|
+
* @param newTileLayerSource
|
|
560
|
+
* @returns
|
|
561
|
+
*/
|
|
562
|
+
setCurrentMapSource: (newId: MapSourceId) => void;
|
|
563
|
+
/**
|
|
564
|
+
* @description Actualiza las opciones de la fuente de capas de tipo Road de la fuente de mapas actual
|
|
565
|
+
* @param partialRoadOptions
|
|
566
|
+
* @returns
|
|
567
|
+
*/
|
|
568
|
+
setMapSourceRoadOptions: (partialRoadOptions: Partial<RoadOptionsType>) => void;
|
|
569
|
+
/**
|
|
570
|
+
* @description Actualiza la variable de estado "getLabel"
|
|
571
|
+
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
572
|
+
* cambia por el useCallback, cuando el diccionario se carga.
|
|
573
|
+
* @returns void
|
|
574
|
+
*/
|
|
575
|
+
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
576
|
+
/**
|
|
577
|
+
* @description Modifica los estados que se actualizan externamente al Store
|
|
578
|
+
* @param newIsMobile
|
|
579
|
+
* @returns
|
|
580
|
+
*/
|
|
581
|
+
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
export declare type DefaultMapStoreProps = Omit<MapState, 'currentLayer'>;
|
|
585
|
+
export declare type InitialMapStoreProps = Pick<MapState, 'getLabel' | 'ownerState' | 'googleApiKey' | 'googleMapVersion'> & Partial<DefaultMapStoreProps>;
|
|
586
|
+
export interface MapProviderProps extends GoogleMapState {
|
|
587
|
+
/**
|
|
588
|
+
* @description Capas iniciales del mapa
|
|
589
|
+
*/
|
|
590
|
+
initialLayers?: InitialLayer[];
|
|
591
|
+
children: ReactNode;
|
|
592
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare const MAPTOOLS_DICTIONARY_ID = "gps_tools";
|
|
2
|
+
export declare const MAP_DICCTIONARY: {
|
|
3
|
+
/**
|
|
4
|
+
* Generales
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* GPSTools
|
|
8
|
+
*/
|
|
9
|
+
readonly LABEL_GPSTOOLS_NAME: "label_gpstools_name";
|
|
10
|
+
readonly LABEL_TAB_GEO: "label_tab_geo";
|
|
11
|
+
readonly TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip";
|
|
12
|
+
readonly PAPER_GENERAL: "paper_general";
|
|
13
|
+
readonly LABEL_ID: "label_id";
|
|
14
|
+
readonly LABEL_NAME: "label_name";
|
|
15
|
+
readonly LABEL_GEOMETRY_TYPE: "label_geometry_type";
|
|
16
|
+
readonly LABEL_GEOMETRY_CIRCLE: "label_geometry_circle";
|
|
17
|
+
readonly LABEL_GEOMETRY_RECTANGLE: "label_geometry_rectangle";
|
|
18
|
+
readonly LABEL_GEOMETRY_POLYGON: "label_geometry_polygon";
|
|
19
|
+
readonly LABEL_DRAW: "label_draw";
|
|
20
|
+
readonly LABEL_FINISH: "label_finish";
|
|
21
|
+
readonly PAPER_CONFIG: "paper_config";
|
|
22
|
+
readonly LABEL_ALIAS: "label_alias";
|
|
23
|
+
readonly LABEL_CUSTOMER_ID: "label_customer_id";
|
|
24
|
+
readonly LABEL_TIME_MIN_IN_SECONDS: "label_time_min_in_seconds";
|
|
25
|
+
readonly LABEL_TIME_MIN_OUT_SECONDS: "label_time_min_out_seconds";
|
|
26
|
+
readonly TAB_STYLE_CONFIG_TOOLTIP: "tab_style_tooltip";
|
|
27
|
+
readonly PAPER_STROKE: "paper_stroke";
|
|
28
|
+
readonly LABEL_COLOR: "label_color";
|
|
29
|
+
readonly LABEL_OPACITY: "label_opacity";
|
|
30
|
+
readonly LABEL_WEIGHT: "label_weight";
|
|
31
|
+
readonly LABEL_DASH_ARRAY: "label_dash_array";
|
|
32
|
+
readonly LABEL_DASH_OFFSET: "label_dash_offset";
|
|
33
|
+
readonly LABEL_RADIUS: "label_radius";
|
|
34
|
+
readonly LABEL_LAT: "label_lat";
|
|
35
|
+
readonly LABEL_LON: "label_lon";
|
|
36
|
+
readonly LABEL_PLACE_MARKER: "label_place_marker";
|
|
37
|
+
readonly LABEL_FIRST_VERTEX: "label_first_vertex";
|
|
38
|
+
readonly LABEL_CONTINUE_LINE: "label_continue_line";
|
|
39
|
+
readonly LABEL_FINISH_LINE: "label_finish_line";
|
|
40
|
+
readonly LABEL_FINISH_POLY: "label_finish_poly";
|
|
41
|
+
readonly LABEL_FINISH_RECT: "label_finish_rect";
|
|
42
|
+
readonly LABEL_START_CIRCLE: "label_start_circle";
|
|
43
|
+
readonly LABEL_FINISH_CIRCLE: "label_finish_circle";
|
|
44
|
+
readonly LABEL_PLACE_CIRCLE_MARKER: "label_place_circle_marker";
|
|
45
|
+
readonly VALIDATION_GEOMETRY_REQUIRED: "validation_geometry_required";
|
|
46
|
+
readonly VALIDATION_FIELD_REQUIRED: "validation_field_required";
|
|
47
|
+
readonly VALIDATION_FIELD_TYPE_NUMBER_ERROR: "validation_field_type_number_error";
|
|
48
|
+
readonly LABEL_VIEW_TRANSIT_FEATURES: "label_view_crossing_features";
|
|
49
|
+
readonly LABEL_VIEW_INTERNAL_FEATURES: "label_view_internal_features";
|
|
50
|
+
readonly LABEL_CREATED_AT: "label_created_at";
|
|
51
|
+
readonly LABEL_UPDATED_AT: "label_updated_at";
|
|
52
|
+
readonly MODAL_DELETE_GEO_TITLE: "modal_delete_geo_title";
|
|
53
|
+
readonly MODAL_DELETE_GEO_MESSAGE: "modal_delete_geo_message";
|
|
54
|
+
readonly MODAL_DISABLE_GEO_TITLE: "modal_disable_geo_title";
|
|
55
|
+
readonly MODAL_DISABLE_MESSAGE: "modal_disable_geo_message";
|
|
56
|
+
readonly ROW_ACTION_GEO_EDIT: "row_action_geo_edit";
|
|
57
|
+
readonly ROW_ACTION_GEO_ENABLE: "row_action_geo_enable";
|
|
58
|
+
readonly ROW_ACTION_GEO_DISABLE: "row_action_geo_disable";
|
|
59
|
+
readonly ROW_ACTION_GEO_DELETE: "row_action_geo_delete";
|
|
60
|
+
readonly LABEL_TAB_MEASURE: "label_tab_measure";
|
|
61
|
+
readonly PAPER_MEASURE: "paper_measure";
|
|
62
|
+
readonly LABEL_MEASURE_START: "label_measure_start";
|
|
63
|
+
readonly LABEL_MEASURE_CANCEL: "label_measure_cancel";
|
|
64
|
+
readonly LABEL_MEASURE_DISTANCE: "label_measure_distance";
|
|
65
|
+
readonly LABEL_MEASURE_AREA: "label_measure_area";
|
|
66
|
+
readonly LABEL_MEASURE_UNIT: "label_measure_unit";
|
|
67
|
+
readonly LABEL_MEASURE_UNIT_BASE_KILOMETERS: "label_measure_unit_base_kilometers";
|
|
68
|
+
readonly LABEL_MEASURE_REMOVE_POINT: "label_measure_remove_point";
|
|
69
|
+
/** Layers **/
|
|
70
|
+
readonly LABEL_LAYERS: "label_layes";
|
|
71
|
+
readonly LABEL_LAYER_NAME: "label_layer_name";
|
|
72
|
+
readonly LABEL_LAYER_VISIBLE: "label_layer_visible";
|
|
73
|
+
readonly LABEL_LAYER_AUTOFOCUS: "label_layer_autofocus";
|
|
74
|
+
readonly LABEL_LAYER_CLUSTER: "label_layer_cluster";
|
|
75
|
+
readonly LABEL_LAYER_DELETE: "label_layer_delete";
|
|
76
|
+
readonly ROW_ACTION_LAYER_DELETE: "row_action_layer_delete";
|
|
77
|
+
/** Map Sources **/
|
|
78
|
+
readonly LABEL_MAP_SOURCES: "label_map_sources";
|
|
79
|
+
readonly LABEL_TILE_OSM: "label_tile_osm";
|
|
80
|
+
readonly LABEL_TILE_GOOGLE: "label_tile_google";
|
|
81
|
+
readonly LABEL_TILE_GOOGLE_SATELLITE: "label_tile_google_satellite";
|
|
82
|
+
readonly LABEL_TILE_GOOGLE_HYBRID: "label_tile_google_hybrid";
|
|
83
|
+
readonly LABEL_TILE_BING: "label_tile_bing";
|
|
84
|
+
};
|
|
85
|
+
export declare type TypeDictionary = typeof MAP_DICCTIONARY;
|
|
86
|
+
export declare const getMapToolsDictionary: (key: keyof TypeDictionary) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ControlProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @description crea un componente react dentro de un control de leaflet, utilizando una tecnica e portaa diferente a createPortal
|
|
5
|
+
* Dependiendo de la posicion del control, este se agrega en la parte correspondiente del mapa, por defecto es topright
|
|
6
|
+
*
|
|
7
|
+
* @param props
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const Control: (props: ControlProps) => JSX.Element;
|
|
11
|
+
export default Control;
|