@rio-cloud/rio-uikit 1.0.0 → 1.2.0
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/.DS_Store +0 -0
- package/DropdownHeader.d.ts +2 -0
- package/DropdownHeader.js +2 -0
- package/FeedbackInlineButtons.d.ts +2 -0
- package/FeedbackInlineButtons.js +2 -0
- package/FeedbackRating.d.ts +2 -0
- package/FeedbackRating.js +2 -0
- package/FeedbackReactions.d.ts +2 -0
- package/FeedbackReactions.js +2 -0
- package/MapAdditionalLayerSettings.d.ts +2 -0
- package/MapAdditionalLayerSettings.js +2 -0
- package/MapSettingsDropdownHeader.d.ts +2 -0
- package/MapSettingsDropdownHeader.js +2 -0
- package/SmoothScrollbars.d.ts +2 -0
- package/SmoothScrollbars.js +2 -0
- package/components/.DS_Store +0 -0
- package/components/actionBarItem/ActionBarItemListItem.js +2 -2
- package/components/assetTree/AssetTree.js +2 -1
- package/components/assetTree/Tree.d.ts +4 -0
- package/components/assetTree/Tree.js +2 -2
- package/components/assetTree/TreeOptions.d.ts +1 -0
- package/components/assetTree/TreeOptions.js +16 -2
- package/components/assetTree/TreeSidebarCategories.js +1 -1
- package/components/calendarStripe/CalendarStripe.js +2 -2
- package/components/feedback/FeedbackInlineButtons.d.ts +13 -0
- package/components/feedback/FeedbackInlineButtons.js +9 -0
- package/components/feedback/FeedbackRating.d.ts +65 -0
- package/components/feedback/FeedbackRating.js +23 -0
- package/components/feedback/FeedbackReactions.d.ts +71 -0
- package/components/feedback/FeedbackReactions.js +26 -0
- package/components/listMenu/ListMenu.d.ts +5 -1
- package/components/listMenu/ListMenu.js +2 -2
- package/components/map/.DS_Store +0 -0
- package/components/map/components/.DS_Store +0 -0
- package/components/map/components/features/basics/Marker.js +1 -1
- package/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
- package/components/map/components/features/settings/MapSettingsItem.js +14 -11
- package/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
- package/components/map/components/features/settings/MapSettingsTile.js +40 -5
- package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
- package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +15 -0
- package/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
- package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
- package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +15 -9
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
- package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -2
- package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
- package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +9 -0
- package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
- package/components/map/icons/MapIcon.d.ts +1 -2
- package/components/map/icons/MapIcon.js +3 -1
- package/components/map/utils/mapTypes.d.ts +1 -1
- package/components/map/utils/mapTypes.js +12 -4
- package/components/mapMarker/ClusterMapMarker.d.ts +8 -0
- package/components/mapMarker/ClusterMapMarker.js +5 -4
- package/components/mapMarker/SingleMapMarker.d.ts +40 -5
- package/components/mapMarker/SingleMapMarker.js +19 -6
- package/components/selects/DropdownHeader.d.ts +1 -0
- package/components/selects/DropdownHeader.js +2 -2
- package/components/selects/Multiselect.js +2 -2
- package/components/selects/MultiselectToggleFilter.js +1 -1
- package/components/states/CustomState.js +21 -8
- package/components/states/StateButton.d.ts +8 -1
- package/components/states/StateButton.js +5 -4
- package/hooks/useAfterMount.js +8 -4
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/DropdownHeader.d.ts +2 -0
- package/lib/es/DropdownHeader.js +7 -0
- package/lib/es/FeedbackInlineButtons.d.ts +2 -0
- package/lib/es/FeedbackInlineButtons.js +7 -0
- package/lib/es/FeedbackRating.d.ts +2 -0
- package/lib/es/FeedbackRating.js +7 -0
- package/lib/es/FeedbackReactions.d.ts +2 -0
- package/lib/es/FeedbackReactions.js +7 -0
- package/lib/es/MapAdditionalLayerSettings.d.ts +2 -0
- package/lib/es/MapAdditionalLayerSettings.js +7 -0
- package/lib/es/MapSettingsDropdownHeader.d.ts +2 -0
- package/lib/es/MapSettingsDropdownHeader.js +7 -0
- package/lib/es/SmoothScrollbars.d.ts +2 -0
- package/lib/es/SmoothScrollbars.js +7 -0
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -2
- package/lib/es/components/assetTree/AssetTree.js +2 -1
- package/lib/es/components/assetTree/Tree.d.ts +4 -0
- package/lib/es/components/assetTree/Tree.js +2 -2
- package/lib/es/components/assetTree/TreeOptions.d.ts +1 -0
- package/lib/es/components/assetTree/TreeOptions.js +16 -2
- package/lib/es/components/assetTree/TreeSidebarCategories.js +1 -1
- package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
- package/lib/es/components/feedback/FeedbackInlineButtons.d.ts +13 -0
- package/lib/es/components/feedback/FeedbackInlineButtons.js +11 -0
- package/lib/es/components/feedback/FeedbackRating.d.ts +65 -0
- package/lib/es/components/feedback/FeedbackRating.js +25 -0
- package/lib/es/components/feedback/FeedbackReactions.d.ts +71 -0
- package/lib/es/components/feedback/FeedbackReactions.js +28 -0
- package/lib/es/components/listMenu/ListMenu.d.ts +5 -1
- package/lib/es/components/listMenu/ListMenu.js +2 -2
- package/lib/es/components/map/components/features/basics/Marker.js +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
- package/lib/es/components/map/components/features/settings/MapSettingsItem.js +13 -10
- package/lib/es/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
- package/lib/es/components/map/components/features/settings/MapSettingsTile.js +39 -4
- package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +17 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
- package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +14 -8
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
- package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +1 -1
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
- package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +11 -0
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
- package/lib/es/components/map/icons/MapIcon.d.ts +1 -2
- package/lib/es/components/map/icons/MapIcon.js +3 -1
- package/lib/es/components/map/utils/mapTypes.d.ts +1 -1
- package/lib/es/components/map/utils/mapTypes.js +12 -4
- package/lib/es/components/mapMarker/ClusterMapMarker.d.ts +8 -0
- package/lib/es/components/mapMarker/ClusterMapMarker.js +5 -4
- package/lib/es/components/mapMarker/SingleMapMarker.d.ts +40 -5
- package/lib/es/components/mapMarker/SingleMapMarker.js +18 -5
- package/lib/es/components/selects/DropdownHeader.d.ts +1 -0
- package/lib/es/components/selects/DropdownHeader.js +2 -2
- package/lib/es/components/selects/Multiselect.js +1 -1
- package/lib/es/components/selects/MultiselectToggleFilter.js +1 -1
- package/lib/es/components/states/CustomState.js +20 -7
- package/lib/es/components/states/StateButton.d.ts +8 -1
- package/lib/es/components/states/StateButton.js +5 -4
- package/lib/es/hooks/useAfterMount.js +8 -4
- package/lib/es/styles/variables/colors/colors.json +8 -10
- package/lib/es/utils/deviceUtils.d.ts +1 -0
- package/lib/es/utils/deviceUtils.js +3 -1
- package/lib/es/version.json +1 -1
- package/package.json +30 -27
- package/styles/variables/colors/colors.json +8 -10
- package/utils/deviceUtils.d.ts +1 -0
- package/utils/deviceUtils.js +1 -0
- package/version.json +1 -1
- package/BrowserWarning.d.ts +0 -5
- package/BrowserWarning.js +0 -2
- package/DomMarker.d.ts +0 -5
- package/DomMarker.js +0 -2
- package/EnhancedMapEvent.d.ts +0 -11
- package/GroupSelectionUtil.d.ts +0 -2
- package/GroupSelectionUtil.js +0 -2
- package/IncidentsLayer.d.ts +0 -4
- package/IncidentsLayer.js +0 -2
- package/TrafficLayer.d.ts +0 -4
- package/TrafficLayer.js +0 -2
- package/TruckLayer.d.ts +0 -4
- package/TruckLayer.js +0 -2
- package/components/assetTree/excludeFromList.d.ts +0 -1
- package/components/assetTree/excludeFromList.js +0 -1
- package/components/browserWarning/BrowserIcons.d.ts +0 -2
- package/components/browserWarning/BrowserIcons.js +0 -5
- package/components/browserWarning/BrowserWarning.d.ts +0 -15
- package/components/browserWarning/BrowserWarning.js +0 -46
- package/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
- package/components/browserWarning/BrowserWarningMessageDE.js +0 -6
- package/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
- package/components/browserWarning/BrowserWarningMessageEN.js +0 -6
- package/components/carousel/CarouselCaption.d.ts +0 -13
- package/components/carousel/CarouselCaption.js +0 -18
- package/components/carousel/CarouselItem.d.ts +0 -36
- package/components/carousel/CarouselItem.js +0 -85
- package/components/dialog/baseDialogPropTypes.d.ts +0 -14
- package/components/dialog/baseDialogPropTypes.js +0 -13
- package/components/driverName/DriverName.d.ts +0 -18
- package/components/driverName/DriverName.js +0 -18
- package/components/dropdown/menuItemsPropTypes.d.ts +0 -9
- package/components/dropdown/menuItemsPropTypes.js +0 -8
- package/components/map/components/MapSettingContext.d.ts +0 -15
- package/components/map/components/MapSettingContext.js +0 -5
- package/components/map/components/context.d.ts +0 -2
- package/components/map/components/context.js +0 -3
- package/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
- package/components/map/components/features/basics/MapLayerGroup.js +0 -45
- package/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
- package/components/map/components/features/basics/marker/DomMarker.js +0 -55
- package/components/map/components/features/basics/marker/Marker.d.ts +0 -21
- package/components/map/components/features/basics/marker/Marker.js +0 -116
- package/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
- package/components/map/components/features/basics/marker/TextMarker.js +0 -28
- package/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
- package/components/map/components/features/layers/IncidentsLayer.js +0 -25
- package/components/map/components/features/layers/Layer.d.ts +0 -15
- package/components/map/components/features/layers/Layer.js +0 -23
- package/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
- package/components/map/components/features/layers/RoadRestrictionLayer.js +0 -26
- package/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
- package/components/map/components/features/layers/TrafficLayer.js +0 -39
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -17
- package/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -14
- package/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -15
- package/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/NightLayer.js +0 -14
- package/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -15
- package/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -15
- package/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -47
- package/components/map/components/mapUtils.d.ts +0 -50
- package/components/map/components/mapUtils.js +0 -148
- package/components/map/herePolyfill.d.ts +0 -0
- package/components/map/herePolyfill.js +0 -7
- package/components/map/utils/proptypes.d.ts +0 -47
- package/components/map/utils/proptypes.js +0 -50
- package/components/map/utils/validation.d.ts +0 -2
- package/components/map/utils/validation.js +0 -8
- package/components/mapMarker/MarkerColor.d.ts +0 -3
- package/components/mapMarker/MarkerColor.js +0 -12
- package/components/menuItems/getMenuItems.d.ts +0 -2
- package/components/menuItems/getMenuItems.js +0 -7
- package/components/selects/BaseDropdownMenu.d.ts +0 -83
- package/components/selects/BaseDropdownMenu.js +0 -255
- package/components/selects/WithFeedback.d.ts +0 -27
- package/components/selects/WithFeedback.js +0 -12
- package/components/states/baseStatePropTypes.d.ts +0 -26
- package/components/states/baseStatePropTypes.js +0 -26
- package/components/table/tableSettingsPropTypes.d.ts +0 -8
- package/components/table/tableSettingsPropTypes.js +0 -6
- package/lib/es/BrowserWarning.d.ts +0 -5
- package/lib/es/BrowserWarning.js +0 -6
- package/lib/es/DomMarker.d.ts +0 -5
- package/lib/es/DomMarker.js +0 -6
- package/lib/es/EnhancedMapEvent.d.ts +0 -11
- package/lib/es/GroupSelectionUtil.d.ts +0 -2
- package/lib/es/GroupSelectionUtil.js +0 -5
- package/lib/es/IncidentsLayer.d.ts +0 -4
- package/lib/es/IncidentsLayer.js +0 -6
- package/lib/es/TrafficLayer.d.ts +0 -4
- package/lib/es/TrafficLayer.js +0 -6
- package/lib/es/TruckLayer.d.ts +0 -4
- package/lib/es/TruckLayer.js +0 -6
- package/lib/es/components/assetTree/autoAnimateFrames.d.ts +0 -1
- package/lib/es/components/assetTree/autoAnimateFrames.js +0 -55
- package/lib/es/components/assetTree/excludeFromList.d.ts +0 -1
- package/lib/es/components/assetTree/excludeFromList.js +0 -5
- package/lib/es/components/browserWarning/BrowserIcons.d.ts +0 -2
- package/lib/es/components/browserWarning/BrowserIcons.js +0 -11
- package/lib/es/components/browserWarning/BrowserWarning.d.ts +0 -15
- package/lib/es/components/browserWarning/BrowserWarning.js +0 -49
- package/lib/es/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
- package/lib/es/components/browserWarning/BrowserWarningMessageDE.js +0 -9
- package/lib/es/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
- package/lib/es/components/browserWarning/BrowserWarningMessageEN.js +0 -9
- package/lib/es/components/carousel/CarouselCaption.d.ts +0 -13
- package/lib/es/components/carousel/CarouselCaption.js +0 -20
- package/lib/es/components/carousel/CarouselItem.d.ts +0 -36
- package/lib/es/components/carousel/CarouselItem.js +0 -87
- package/lib/es/components/charts/Sector.d.ts +0 -0
- package/lib/es/components/charts/Sector.js +0 -1
- package/lib/es/components/dialog/baseDialogPropTypes.d.ts +0 -14
- package/lib/es/components/dialog/baseDialogPropTypes.js +0 -16
- package/lib/es/components/driverName/DriverName.d.ts +0 -18
- package/lib/es/components/driverName/DriverName.js +0 -23
- package/lib/es/components/dropdown/menuItemsPropTypes.d.ts +0 -9
- package/lib/es/components/dropdown/menuItemsPropTypes.js +0 -11
- package/lib/es/components/map/components/MapSettingContext.d.ts +0 -15
- package/lib/es/components/map/components/MapSettingContext.js +0 -8
- package/lib/es/components/map/components/context.d.ts +0 -2
- package/lib/es/components/map/components/context.js +0 -6
- package/lib/es/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
- package/lib/es/components/map/components/features/basics/MapLayerGroup.js +0 -48
- package/lib/es/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
- package/lib/es/components/map/components/features/basics/marker/DomMarker.js +0 -58
- package/lib/es/components/map/components/features/basics/marker/Marker.d.ts +0 -21
- package/lib/es/components/map/components/features/basics/marker/Marker.js +0 -123
- package/lib/es/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
- package/lib/es/components/map/components/features/basics/marker/TextMarker.js +0 -31
- package/lib/es/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
- package/lib/es/components/map/components/features/layers/IncidentsLayer.js +0 -27
- package/lib/es/components/map/components/features/layers/Layer.d.ts +0 -15
- package/lib/es/components/map/components/features/layers/Layer.js +0 -26
- package/lib/es/components/map/components/features/layers/MapBaseLayer.d.ts +0 -8
- package/lib/es/components/map/components/features/layers/MapBaseLayer.js +0 -35
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +0 -28
- package/lib/es/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
- package/lib/es/components/map/components/features/layers/TrafficLayer.js +0 -41
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -36
- package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -16
- package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -17
- package/lib/es/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +0 -16
- package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -34
- package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -17
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -11
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -76
- package/lib/es/components/map/components/mapUtils.d.ts +0 -50
- package/lib/es/components/map/components/mapUtils.js +0 -154
- package/lib/es/components/map/herePolyfill.d.ts +0 -0
- package/lib/es/components/map/herePolyfill.js +0 -7
- package/lib/es/components/map/utils/proptypes.d.ts +0 -47
- package/lib/es/components/map/utils/proptypes.js +0 -53
- package/lib/es/components/map/utils/validation.d.ts +0 -2
- package/lib/es/components/map/utils/validation.js +0 -14
- package/lib/es/components/mapMarker/MarkerColor.d.ts +0 -3
- package/lib/es/components/mapMarker/MarkerColor.js +0 -15
- package/lib/es/components/menuItems/getMenuItems.d.ts +0 -2
- package/lib/es/components/menuItems/getMenuItems.js +0 -10
- package/lib/es/components/selects/BaseDropdownMenu.d.ts +0 -83
- package/lib/es/components/selects/BaseDropdownMenu.js +0 -260
- package/lib/es/components/selects/WithFeedback.d.ts +0 -27
- package/lib/es/components/selects/WithFeedback.js +0 -15
- package/lib/es/components/states/baseStatePropTypes.d.ts +0 -26
- package/lib/es/components/states/baseStatePropTypes.js +0 -30
- package/lib/es/components/table/tableSettingsPropTypes.d.ts +0 -8
- package/lib/es/components/table/tableSettingsPropTypes.js +0 -10
- package/lib/es/mapIndex.d.ts +0 -38
- package/lib/es/mapIndex.js +0 -77
- package/lib/es/styles/variables/colors.json +0 -74
- package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
- package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -8
- package/lib/es/types.d.ts +0 -71
- package/lib/es/types.js +0 -2
- package/lib/es/utils/GroupSelectionUtil.d.ts +0 -1
- package/lib/es/utils/GroupSelectionUtil.js +0 -85
- package/lib/es/utils/addEventListener.d.ts +0 -3
- package/lib/es/utils/addEventListener.js +0 -17
- package/lib/es/utils/addFocusListener.d.ts +0 -3
- package/lib/es/utils/addFocusListener.js +0 -24
- package/lib/es/utils/getOffsetTopWholeScreen.d.ts +0 -1
- package/lib/es/utils/getOffsetTopWholeScreen.js +0 -9
- package/lib/es/utils/init.d.ts +0 -2
- package/lib/es/utils/init.js +0 -121
- package/lib/es/utils/logPropError.d.ts +0 -3
- package/lib/es/utils/logPropError.js +0 -28
- package/lib/es/utils/ownerDocument.d.ts +0 -1
- package/lib/es/utils/ownerDocument.js +0 -12
- package/mapIndex.d.ts +0 -38
- package/mapIndex.js +0 -42
- package/styles/variables/colors.json +0 -74
- package/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
- package/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -5
- package/types.d.ts +0 -71
- package/types.js +0 -1
- package/utils/GroupSelectionUtil.d.ts +0 -1
- package/utils/GroupSelectionUtil.js +0 -80
- package/utils/addEventListener.d.ts +0 -3
- package/utils/addEventListener.js +0 -13
- package/utils/addFocusListener.d.ts +0 -3
- package/utils/addFocusListener.js +0 -21
- package/utils/getOffsetTopWholeScreen.d.ts +0 -1
- package/utils/getOffsetTopWholeScreen.js +0 -6
- package/utils/init.d.ts +0 -2
- package/utils/init.js +0 -117
- package/utils/logPropError.d.ts +0 -3
- package/utils/logPropError.js +0 -23
- package/utils/ownerDocument.d.ts +0 -1
- package/utils/ownerDocument.js +0 -8
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { FORMAT, TILE_SIZE } from '../../constants';
|
|
5
|
-
import Layer from './Layer';
|
|
6
|
-
// Layer for rendering truck road signs
|
|
7
|
-
// incident_icons, traffic_flow, traffic_incidents
|
|
8
|
-
// FIXME: 'truckonlytile' is HERE Map Tile v2 and therefore deprecated
|
|
9
|
-
const createRoadRestrictionLayer = useWebGL => api => {
|
|
10
|
-
// "createIncidentsLayer" and "createFlowLayer" are also deprecated
|
|
11
|
-
// using the "api.platform.getTrafficService(null, 7)" Traffic Service version 7
|
|
12
|
-
// does not offer equivalent functions like:
|
|
13
|
-
// return api.platform.getTrafficService(null, 7).createFlowLayer();
|
|
14
|
-
return api.platform
|
|
15
|
-
.getMapTileService({ type: 'base' })
|
|
16
|
-
.createTileLayer('truckonlytile', 'normal.day', TILE_SIZE, FORMAT, {
|
|
17
|
-
style: 'default',
|
|
18
|
-
ppi: undefined,
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
const RoadRestrictionLayer = props => {
|
|
22
|
-
const { useWebGL } = props, remainingProps = __rest(props, ["useWebGL"]);
|
|
23
|
-
const createLayer = createRoadRestrictionLayer(useWebGL);
|
|
24
|
-
return _jsx(Layer, Object.assign({}, remainingProps, { createLayer: createLayer }));
|
|
25
|
-
};
|
|
26
|
-
export default RoadRestrictionLayer;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import React, { useEffect } from 'react';
|
|
4
|
-
import { FORMAT, TILE_SIZE } from '../../constants';
|
|
5
|
-
import Layer from './Layer';
|
|
6
|
-
const createRasterTrafficLayer = api => {
|
|
7
|
-
return api.platform
|
|
8
|
-
.getMapTileService({ type: 'traffic' })
|
|
9
|
-
.createTileLayer('flowtile', 'normal.day.grey', TILE_SIZE, FORMAT, {
|
|
10
|
-
style: 'alps',
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
// Here Traffic v7 API
|
|
14
|
-
const createVectorTrafficLayer = api => {
|
|
15
|
-
// Pre-defined opinionated rendering of traffic
|
|
16
|
-
return api.defaultLayers.vector.traffic.map;
|
|
17
|
-
// To control the rendering, use the style config.
|
|
18
|
-
// Unfortunately there is no documentation on how the "pre-defined"
|
|
19
|
-
// style looks like as it also renders incidents icons (but inactive)
|
|
20
|
-
// const config = `
|
|
21
|
-
// sources:
|
|
22
|
-
// omv:
|
|
23
|
-
// type: OMV
|
|
24
|
-
// layers:
|
|
25
|
-
// traffic_incidents:
|
|
26
|
-
// data: {source: omv}
|
|
27
|
-
// draw:
|
|
28
|
-
// lines:
|
|
29
|
-
// order: 340
|
|
30
|
-
// width: 2px
|
|
31
|
-
// color: red
|
|
32
|
-
// `;
|
|
33
|
-
// return api.platform.getTrafficVectorTileService().createLayer(new H.map.render.webgl.Style(config));
|
|
34
|
-
};
|
|
35
|
-
const TrafficLayer = props => {
|
|
36
|
-
const { useWebGL } = props, remainingProps = __rest(props, ["useWebGL"]);
|
|
37
|
-
return _jsx(Layer, Object.assign({}, remainingProps, { createLayer: useWebGL ? createVectorTrafficLayer : createRasterTrafficLayer }));
|
|
38
|
-
};
|
|
39
|
-
export default TrafficLayer;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useBaseLayer } from './useBaseLayer';
|
|
2
|
-
import { MAP_TYPE_DEFAULT } from '../../../constants';
|
|
3
|
-
// https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-info.html
|
|
4
|
-
const DefaultRasterLayer = props => {
|
|
5
|
-
const { api, language } = props;
|
|
6
|
-
useBaseLayer({
|
|
7
|
-
api,
|
|
8
|
-
language,
|
|
9
|
-
mapType: MAP_TYPE_DEFAULT,
|
|
10
|
-
additionalParameters: {
|
|
11
|
-
// should not be used as Vector map does not support it it would different anyhow
|
|
12
|
-
//style: 'alps',
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
return null;
|
|
16
|
-
};
|
|
17
|
-
export default DefaultRasterLayer;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useBaseLayer } from './useBaseLayer';
|
|
2
|
-
import { MAP_TYPE_DEFAULT } from '../../../constants';
|
|
3
|
-
const DefaultVectorLayer = props => {
|
|
4
|
-
const { api, language } = props;
|
|
5
|
-
useBaseLayer({
|
|
6
|
-
api,
|
|
7
|
-
language,
|
|
8
|
-
mapType: MAP_TYPE_DEFAULT,
|
|
9
|
-
additionalParameters: {},
|
|
10
|
-
isWebGL: true,
|
|
11
|
-
});
|
|
12
|
-
return null;
|
|
13
|
-
};
|
|
14
|
-
export default DefaultVectorLayer;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useBaseLayer } from './useBaseLayer';
|
|
2
|
-
import { MAP_TYPE_FLEET_STYLE } from '../../../constants';
|
|
3
|
-
const FleetStyleLayer = props => {
|
|
4
|
-
const { api, language } = props;
|
|
5
|
-
useBaseLayer({
|
|
6
|
-
api,
|
|
7
|
-
language,
|
|
8
|
-
mapType: MAP_TYPE_FLEET_STYLE,
|
|
9
|
-
additionalParameters: {
|
|
10
|
-
style: 'fleet',
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
return null;
|
|
14
|
-
};
|
|
15
|
-
export default FleetStyleLayer;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useBaseLayer } from './useBaseLayer';
|
|
2
|
-
import { MAP_TYPE_NIGHT } from '../../../constants';
|
|
3
|
-
// https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-info.html
|
|
4
|
-
const NightLayer = props => {
|
|
5
|
-
const { api, language } = props;
|
|
6
|
-
useBaseLayer({
|
|
7
|
-
api,
|
|
8
|
-
language,
|
|
9
|
-
mapType: MAP_TYPE_NIGHT,
|
|
10
|
-
additionalParameters: {},
|
|
11
|
-
});
|
|
12
|
-
return null;
|
|
13
|
-
};
|
|
14
|
-
export default NightLayer;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useBaseLayer } from './useBaseLayer';
|
|
2
|
-
import { MAP_TYPE_SATELLITE } from '../../../constants';
|
|
3
|
-
const SatelliteLayer = props => {
|
|
4
|
-
const { api, language } = props;
|
|
5
|
-
useBaseLayer({
|
|
6
|
-
api,
|
|
7
|
-
language,
|
|
8
|
-
mapType: MAP_TYPE_SATELLITE,
|
|
9
|
-
additionalParameters: {
|
|
10
|
-
style: 'default',
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
return null;
|
|
14
|
-
};
|
|
15
|
-
export default SatelliteLayer;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useBaseLayer } from './useBaseLayer';
|
|
2
|
-
import { MAP_TYPE_TERRAIN } from '../../../constants';
|
|
3
|
-
const TerrainLayer = props => {
|
|
4
|
-
const { api, language } = props;
|
|
5
|
-
useBaseLayer({
|
|
6
|
-
api,
|
|
7
|
-
language,
|
|
8
|
-
mapType: MAP_TYPE_TERRAIN,
|
|
9
|
-
additionalParameter: {
|
|
10
|
-
style: 'default',
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
return null;
|
|
14
|
-
};
|
|
15
|
-
export default TerrainLayer;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
import { getPPI } from '../../../mapUtils';
|
|
3
|
-
import { MAP_TYPE_FLEET_STYLE, MAP_TYPE_SATELLITE, MAP_TYPE_TERRAIN, MAP_TYPE_NIGHT } from '../../../constants';
|
|
4
|
-
// Obtain the default map types from the platform object:
|
|
5
|
-
export const getDefaultBaseLayer = (defaultLayers, mapType, useWebGL) => {
|
|
6
|
-
if (mapType === MAP_TYPE_SATELLITE) {
|
|
7
|
-
return defaultLayers.raster.satellite.map;
|
|
8
|
-
}
|
|
9
|
-
if (mapType === MAP_TYPE_TERRAIN) {
|
|
10
|
-
return defaultLayers.raster.terrain.map;
|
|
11
|
-
}
|
|
12
|
-
if (mapType === MAP_TYPE_FLEET_STYLE) {
|
|
13
|
-
return defaultLayers.raster.normal.map;
|
|
14
|
-
}
|
|
15
|
-
if (mapType === MAP_TYPE_NIGHT) {
|
|
16
|
-
return defaultLayers.raster.normal.mapnight;
|
|
17
|
-
}
|
|
18
|
-
if (useWebGL) {
|
|
19
|
-
return defaultLayers.vector.normal.map;
|
|
20
|
-
}
|
|
21
|
-
return defaultLayers.raster.normal.map;
|
|
22
|
-
};
|
|
23
|
-
export const useBaseLayer = props => {
|
|
24
|
-
const { api, additionalParameters = {}, language, isWebGL = false, mapType } = props;
|
|
25
|
-
const [baseLayer, setBaseLayer] = useState(null);
|
|
26
|
-
// When the language changes from the outside, re-create the base layer with the new locale
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
setBaseLayer(null);
|
|
29
|
-
}, [language]);
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
if (!baseLayer) {
|
|
32
|
-
const additionalParametersWithLocale = Object.assign(Object.assign({}, additionalParameters), {
|
|
33
|
-
// Define the overall map language here so that all counties use that locale
|
|
34
|
-
// and don't show their native label names. For more details see:
|
|
35
|
-
// https://developer.here.com/documentation/examples/maps-js/maps/map-multi-language-support
|
|
36
|
-
// Note: it takes the short locale like "de", "en" etc.
|
|
37
|
-
lg: language.includes('-') ? language.split('-')[0] : language,
|
|
38
|
-
// ppi: getPPI(),
|
|
39
|
-
// need to be set for better performance of legacy map
|
|
40
|
-
engineType: isWebGL ? undefined : H.map.render.RenderEngine.EngineType.P2D });
|
|
41
|
-
const defaultLayers = api.platform.createDefaultLayers(additionalParametersWithLocale);
|
|
42
|
-
const newBaseLayer = getDefaultBaseLayer(defaultLayers, mapType, isWebGL);
|
|
43
|
-
api.map.setBaseLayer(newBaseLayer);
|
|
44
|
-
setBaseLayer(newBaseLayer);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export function getPPI(): undefined;
|
|
2
|
-
export function createUtils(mapApi: any): {
|
|
3
|
-
getCenter: () => {
|
|
4
|
-
lat: any;
|
|
5
|
-
lng: any;
|
|
6
|
-
};
|
|
7
|
-
setCenter: (position: any, animate: any) => void;
|
|
8
|
-
getZoom: () => number;
|
|
9
|
-
setZoom: (zoom: any, zoomAnimation?: boolean) => void;
|
|
10
|
-
getViewPort: () => {
|
|
11
|
-
width: any;
|
|
12
|
-
height: any;
|
|
13
|
-
margin: any;
|
|
14
|
-
padding: {
|
|
15
|
-
top: any;
|
|
16
|
-
right: any;
|
|
17
|
-
bottom: any;
|
|
18
|
-
left: any;
|
|
19
|
-
};
|
|
20
|
-
center: {
|
|
21
|
-
x: any;
|
|
22
|
-
y: any;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
getBounds: () => {
|
|
26
|
-
topLeft: {
|
|
27
|
-
lng: any;
|
|
28
|
-
lat: any;
|
|
29
|
-
};
|
|
30
|
-
bottomRight: {
|
|
31
|
-
lng: any;
|
|
32
|
-
lat: any;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
getObjects: () => any;
|
|
36
|
-
getLayers: () => any;
|
|
37
|
-
getBaseLayer: () => any;
|
|
38
|
-
getGroups: () => any[];
|
|
39
|
-
getMarkers: () => any[];
|
|
40
|
-
findMarkerByLatLng: (lat: any, lng: any) => any;
|
|
41
|
-
findMarkersByLatLng: (lat: any, lng: any) => any[];
|
|
42
|
-
getRoutePolylines: () => any[];
|
|
43
|
-
getObjectType: (hereObject: any) => "H.map.Group" | "H.map.DomMarker" | "H.map.Marker" | "H.map.AbstractMarker" | "H.map.Polyline" | "H.map.Rect" | "H.map.Circle" | "H.map.Polygon" | "H.map.Object";
|
|
44
|
-
getObjectTypes: import("lodash/fp").LodashMap1x1<any, "H.map.Group" | "H.map.DomMarker" | "H.map.Marker" | "H.map.AbstractMarker" | "H.map.Polyline" | "H.map.Rect" | "H.map.Circle" | "H.map.Polygon" | "H.map.Object">;
|
|
45
|
-
getLayerType: (hereLayer: any) => "H.map.layer.BaseTileLayer" | "H.map.layer.MarkerTileLayer" | "H.map.layer.TileLayer" | "H.map.layer.CanvasLayer" | "H.map.layer.DomLayer" | "H.map.layer.ObjectLayer" | "H.map.layer.Layer";
|
|
46
|
-
getLayerTypes: import("lodash/fp").LodashMap1x1<any, "H.map.layer.BaseTileLayer" | "H.map.layer.MarkerTileLayer" | "H.map.layer.TileLayer" | "H.map.layer.CanvasLayer" | "H.map.layer.DomLayer" | "H.map.layer.ObjectLayer" | "H.map.layer.Layer">;
|
|
47
|
-
getMarkerIconClassName: (domMarker: any) => any;
|
|
48
|
-
getPosition: (marker: any) => any;
|
|
49
|
-
getLatLngAltArray: (polyline: any) => any;
|
|
50
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import map from 'lodash/fp/map';
|
|
2
|
-
import flatMap from 'lodash/fp/flatMap';
|
|
3
|
-
import filter from 'lodash/fp/filter';
|
|
4
|
-
import flow from 'lodash/fp/flow';
|
|
5
|
-
import first from 'lodash/fp/first';
|
|
6
|
-
import { HIGH_RES_PPI } from './constants';
|
|
7
|
-
// Note: higher PPI image tiles result in larger label size and show more label on the map
|
|
8
|
-
export const getPPI = () => undefined; // window.devicePixelRatio > 1 ? HIGH_RES_PPI : undefined;
|
|
9
|
-
const latLngFilterFunction = (lat, lng) => obj => obj.getGeometry && obj.getGeometry().lat === lat && obj.getGeometry().lng === lng;
|
|
10
|
-
const typeFilterFunction = hereType => obj => obj instanceof hereType;
|
|
11
|
-
const markerFilterFunction = typeFilterFunction(H.map.AbstractMarker);
|
|
12
|
-
const groupFilterFunction = typeFilterFunction(H.map.Group);
|
|
13
|
-
const polylineFilterFunction = typeFilterFunction(H.map.Polyline);
|
|
14
|
-
const getMarkerIconClassName = domMarker => domMarker.getIcon().c.className;
|
|
15
|
-
const getPosition = marker => marker.getGeometry();
|
|
16
|
-
const getLatLngAltArray = polyline => polyline.getGeometry().getLatLngAltArray();
|
|
17
|
-
const getObjectType = hereObject => {
|
|
18
|
-
if (hereObject instanceof H.map.Group) {
|
|
19
|
-
return 'H.map.Group';
|
|
20
|
-
}
|
|
21
|
-
if (hereObject instanceof H.map.DomMarker) {
|
|
22
|
-
return 'H.map.DomMarker';
|
|
23
|
-
}
|
|
24
|
-
if (hereObject instanceof H.map.Marker) {
|
|
25
|
-
return 'H.map.Marker';
|
|
26
|
-
}
|
|
27
|
-
if (hereObject instanceof H.map.AbstractMarker) {
|
|
28
|
-
return 'H.map.AbstractMarker';
|
|
29
|
-
}
|
|
30
|
-
if (hereObject instanceof H.map.Polyline) {
|
|
31
|
-
return 'H.map.Polyline';
|
|
32
|
-
}
|
|
33
|
-
if (hereObject instanceof H.map.Rect) {
|
|
34
|
-
return 'H.map.Rect';
|
|
35
|
-
}
|
|
36
|
-
if (hereObject instanceof H.map.Circle) {
|
|
37
|
-
return 'H.map.Circle';
|
|
38
|
-
}
|
|
39
|
-
if (hereObject instanceof H.map.Polygon) {
|
|
40
|
-
return 'H.map.Polygon';
|
|
41
|
-
}
|
|
42
|
-
return 'H.map.Object';
|
|
43
|
-
};
|
|
44
|
-
const getObjectTypes = map(getObjectType);
|
|
45
|
-
const getLayerType = hereLayer => {
|
|
46
|
-
if (hereLayer instanceof H.map.layer.BaseTileLayer) {
|
|
47
|
-
return 'H.map.layer.BaseTileLayer';
|
|
48
|
-
}
|
|
49
|
-
if (hereLayer instanceof H.map.layer.MarkerTileLayer) {
|
|
50
|
-
return 'H.map.layer.MarkerTileLayer';
|
|
51
|
-
}
|
|
52
|
-
if (hereLayer instanceof H.map.layer.TileLayer) {
|
|
53
|
-
return 'H.map.layer.TileLayer';
|
|
54
|
-
}
|
|
55
|
-
if (hereLayer instanceof H.map.layer.CanvasLayer) {
|
|
56
|
-
return 'H.map.layer.CanvasLayer';
|
|
57
|
-
}
|
|
58
|
-
if (hereLayer instanceof H.map.layer.DomLayer) {
|
|
59
|
-
return 'H.map.layer.DomLayer';
|
|
60
|
-
}
|
|
61
|
-
if (hereLayer instanceof H.map.layer.ObjectLayer) {
|
|
62
|
-
return 'H.map.layer.ObjectLayer';
|
|
63
|
-
}
|
|
64
|
-
return 'H.map.layer.Layer';
|
|
65
|
-
};
|
|
66
|
-
const getLayerTypes = map(getLayerType);
|
|
67
|
-
export const createUtils = mapApi => {
|
|
68
|
-
return {
|
|
69
|
-
getCenter: () => {
|
|
70
|
-
const center = mapApi.getCenter();
|
|
71
|
-
return {
|
|
72
|
-
lat: center.lat,
|
|
73
|
-
lng: center.lng,
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
setCenter: (position, animate) => {
|
|
77
|
-
mapApi.getViewModel().setLookAtData({ position }, animate);
|
|
78
|
-
},
|
|
79
|
-
getZoom: () => {
|
|
80
|
-
const { zoom } = mapApi.getViewModel().getLookAtData();
|
|
81
|
-
return Math.round(zoom);
|
|
82
|
-
},
|
|
83
|
-
setZoom: (zoom, zoomAnimation = false) => {
|
|
84
|
-
mapApi.getViewModel().setLookAtData({ zoom }, zoomAnimation);
|
|
85
|
-
},
|
|
86
|
-
getViewPort: () => {
|
|
87
|
-
const viewPort = mapApi.getViewPort();
|
|
88
|
-
return {
|
|
89
|
-
width: viewPort.width,
|
|
90
|
-
height: viewPort.height,
|
|
91
|
-
margin: viewPort.margin,
|
|
92
|
-
padding: {
|
|
93
|
-
top: viewPort.padding.top,
|
|
94
|
-
right: viewPort.padding.right,
|
|
95
|
-
bottom: viewPort.padding.bottom,
|
|
96
|
-
left: viewPort.padding.left,
|
|
97
|
-
},
|
|
98
|
-
center: {
|
|
99
|
-
x: viewPort.center.x,
|
|
100
|
-
y: viewPort.center.y,
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
getBounds: () => {
|
|
105
|
-
const { bounds } = mapApi.getViewModel().getLookAtData();
|
|
106
|
-
// TODO: remove old 3.0 version after all Services use the latest Map
|
|
107
|
-
if (bounds.getTopLeft) {
|
|
108
|
-
return {
|
|
109
|
-
topLeft: {
|
|
110
|
-
lng: bounds.getTopLeft().lng,
|
|
111
|
-
lat: bounds.getTopLeft().lat,
|
|
112
|
-
},
|
|
113
|
-
bottomRight: {
|
|
114
|
-
lng: bounds.getBottomRight().lng,
|
|
115
|
-
lat: bounds.getBottomRight().lat,
|
|
116
|
-
},
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
// HERE Maps API for JavaScript 3.1
|
|
120
|
-
const boundingBox = bounds.getBoundingBox();
|
|
121
|
-
return {
|
|
122
|
-
topLeft: {
|
|
123
|
-
lng: boundingBox.getTopLeft().lng,
|
|
124
|
-
lat: boundingBox.getTopLeft().lat,
|
|
125
|
-
},
|
|
126
|
-
bottomRight: {
|
|
127
|
-
lng: boundingBox.getBottomRight().lng,
|
|
128
|
-
lat: boundingBox.getBottomRight().lat,
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
},
|
|
132
|
-
getObjects: () => mapApi.getObjects(),
|
|
133
|
-
getLayers: () => mapApi.getLayers().asArray(),
|
|
134
|
-
getBaseLayer: () => mapApi.getBaseLayer(),
|
|
135
|
-
getGroups: () => filter(groupFilterFunction)(mapApi.getObjects()),
|
|
136
|
-
getMarkers: () => filter(markerFilterFunction)(mapApi.getObjects()),
|
|
137
|
-
findMarkerByLatLng: (lat, lng) => flow(filter(markerFilterFunction && latLngFilterFunction(lat, lng)), first)(mapApi.getObjects()),
|
|
138
|
-
findMarkersByLatLng: (lat, lng) => filter(markerFilterFunction && latLngFilterFunction(lat, lng))(mapApi.getObjects()),
|
|
139
|
-
getRoutePolylines: () => flow(filter(groupFilterFunction), flatMap(group => group.getObjects()), filter(polylineFilterFunction))(mapApi.getObjects()),
|
|
140
|
-
getObjectType,
|
|
141
|
-
getObjectTypes,
|
|
142
|
-
getLayerType,
|
|
143
|
-
getLayerTypes,
|
|
144
|
-
getMarkerIconClassName,
|
|
145
|
-
getPosition,
|
|
146
|
-
getLatLngAltArray,
|
|
147
|
-
};
|
|
148
|
-
};
|
|
File without changes
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export default mapProps;
|
|
2
|
-
declare namespace mapProps {
|
|
3
|
-
export { position };
|
|
4
|
-
export { positions };
|
|
5
|
-
export { icon };
|
|
6
|
-
export { map };
|
|
7
|
-
export { group };
|
|
8
|
-
export { mapEvents };
|
|
9
|
-
export { api };
|
|
10
|
-
export { settings };
|
|
11
|
-
export { rect };
|
|
12
|
-
export { clusterTheme };
|
|
13
|
-
}
|
|
14
|
-
declare const position: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
-
lat: PropTypes.Validator<number>;
|
|
16
|
-
lng: PropTypes.Validator<number>;
|
|
17
|
-
}>>;
|
|
18
|
-
declare const positions: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
19
|
-
lat: PropTypes.Validator<number>;
|
|
20
|
-
lng: PropTypes.Validator<number>;
|
|
21
|
-
}> | null | undefined)[]>;
|
|
22
|
-
declare const icon: PropTypes.Requireable<H.map.DomIcon>;
|
|
23
|
-
declare const map: PropTypes.Requireable<H.Map>;
|
|
24
|
-
declare const group: PropTypes.Requireable<H.map.Group>;
|
|
25
|
-
declare const mapEvents: PropTypes.Requireable<H.mapevents.MapEvents>;
|
|
26
|
-
declare const api: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
|
-
map: PropTypes.Requireable<H.Map>;
|
|
28
|
-
platform: PropTypes.Requireable<H.service.Platform>;
|
|
29
|
-
defaultLayers: PropTypes.Requireable<object>;
|
|
30
|
-
group: PropTypes.Requireable<NonNullable<H.Map | H.map.Group | null | undefined>>;
|
|
31
|
-
}>>;
|
|
32
|
-
declare const settings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
|
-
baseLayer: PropTypes.Requireable<string>;
|
|
34
|
-
mapLayer: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
35
|
-
showCluster: PropTypes.Requireable<boolean>;
|
|
36
|
-
}>>;
|
|
37
|
-
declare const rect: PropTypes.Requireable<PropTypes.InferProps<{
|
|
38
|
-
top: PropTypes.Validator<number>;
|
|
39
|
-
bottom: PropTypes.Validator<number>;
|
|
40
|
-
left: PropTypes.Validator<number>;
|
|
41
|
-
right: PropTypes.Validator<number>;
|
|
42
|
-
}>>;
|
|
43
|
-
declare const clusterTheme: PropTypes.Requireable<PropTypes.InferProps<{
|
|
44
|
-
getNoisePresentation: PropTypes.Validator<(...args: any[]) => any>;
|
|
45
|
-
getClusterPresentation: PropTypes.Validator<(...args: any[]) => any>;
|
|
46
|
-
}>>;
|
|
47
|
-
import PropTypes from "prop-types";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
const position = PropTypes.shape({
|
|
4
|
-
lat: PropTypes.number.isRequired,
|
|
5
|
-
lng: PropTypes.number.isRequired,
|
|
6
|
-
});
|
|
7
|
-
const positions = PropTypes.arrayOf(position);
|
|
8
|
-
const hMapIcon = PropTypes.instanceOf(H.map.Icon);
|
|
9
|
-
const hMapDomIcon = PropTypes.instanceOf(H.map.DomIcon);
|
|
10
|
-
const rect = PropTypes.shape({
|
|
11
|
-
top: PropTypes.number.isRequired,
|
|
12
|
-
bottom: PropTypes.number.isRequired,
|
|
13
|
-
left: PropTypes.number.isRequired,
|
|
14
|
-
right: PropTypes.number.isRequired,
|
|
15
|
-
});
|
|
16
|
-
const icon = PropTypes.oneOfType([hMapIcon, hMapDomIcon, PropTypes.string, PropTypes.element]);
|
|
17
|
-
const map = PropTypes.instanceOf(H.Map);
|
|
18
|
-
const group = PropTypes.instanceOf(H.map.Group);
|
|
19
|
-
const mapOrGroup = PropTypes.oneOfType([map, group]);
|
|
20
|
-
const platform = PropTypes.instanceOf(H.service.Platform);
|
|
21
|
-
const mapEvents = PropTypes.instanceOf(H.mapevents.MapEvents);
|
|
22
|
-
const defaultLayers = PropTypes.object;
|
|
23
|
-
const api = PropTypes.shape({
|
|
24
|
-
map,
|
|
25
|
-
platform,
|
|
26
|
-
defaultLayers,
|
|
27
|
-
group: mapOrGroup,
|
|
28
|
-
});
|
|
29
|
-
const settings = PropTypes.shape({
|
|
30
|
-
baseLayer: PropTypes.string,
|
|
31
|
-
mapLayer: PropTypes.arrayOf(PropTypes.string),
|
|
32
|
-
showCluster: PropTypes.bool,
|
|
33
|
-
});
|
|
34
|
-
const clusterTheme = PropTypes.shape({
|
|
35
|
-
getNoisePresentation: PropTypes.func.isRequired,
|
|
36
|
-
getClusterPresentation: PropTypes.func.isRequired,
|
|
37
|
-
});
|
|
38
|
-
const mapProps = {
|
|
39
|
-
position,
|
|
40
|
-
positions,
|
|
41
|
-
icon,
|
|
42
|
-
map,
|
|
43
|
-
group,
|
|
44
|
-
mapEvents,
|
|
45
|
-
api,
|
|
46
|
-
settings,
|
|
47
|
-
rect,
|
|
48
|
-
clusterTheme,
|
|
49
|
-
};
|
|
50
|
-
export default mapProps;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import getOr from 'lodash/fp/getOr';
|
|
2
|
-
import MapException from '../exceptions/MapException';
|
|
3
|
-
export const validateMinMaxZoomUnchanged = (props, nextProps) => {
|
|
4
|
-
if (props.minZoom !== nextProps.minZoom || props.maxZoom !== nextProps.maxZoom) {
|
|
5
|
-
throw new MapException('rio-map currently does not support changing of minZoom/maxZoom property.');
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
export const getKeyOrDefault = (defaultValue, object) => getOr(defaultValue, 'props.key')(object);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const markerColorOptions: readonly ["bg-map-marker-asset", "bg-map-marker-poi", "bg-map-marker-geofence", "bg-map-marker-route"];
|
|
2
|
-
export type MarkerColor = (typeof markerColorOptions)[number];
|
|
3
|
-
export declare const markerColorMapping: Record<MarkerColor, string>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const markerColorOptions = [
|
|
2
|
-
'bg-map-marker-asset',
|
|
3
|
-
'bg-map-marker-poi',
|
|
4
|
-
'bg-map-marker-geofence',
|
|
5
|
-
'bg-map-marker-route',
|
|
6
|
-
];
|
|
7
|
-
export const markerColorMapping = {
|
|
8
|
-
'bg-map-marker-asset': 'map-marker-type-asset',
|
|
9
|
-
'bg-map-marker-poi': 'map-marker-type-poi',
|
|
10
|
-
'bg-map-marker-geofence': 'map-marker-type-geofence',
|
|
11
|
-
'bg-map-marker-route': 'map-marker-type-route',
|
|
12
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import MenuItem from './MenuItem';
|
|
4
|
-
const getMenuItems = (items, closeMenu, onMouseEnter) => {
|
|
5
|
-
return items.map((item, index) => (_jsx(MenuItem, Object.assign({}, item, { index: index, closeMenu: closeMenu, onMouseEnter: onMouseEnter }), index)));
|
|
6
|
-
};
|
|
7
|
-
export default getMenuItems;
|