@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,36 +0,0 @@
|
|
|
1
|
-
export default CarouselItem;
|
|
2
|
-
declare class CarouselItem extends React.Component<any, any, any> {
|
|
3
|
-
constructor(props: any, context: any);
|
|
4
|
-
handleAnimateOutEnd(): void;
|
|
5
|
-
state: {
|
|
6
|
-
direction: null;
|
|
7
|
-
};
|
|
8
|
-
isUnmounted: boolean;
|
|
9
|
-
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
10
|
-
componentDidUpdate(prevProps: any): void;
|
|
11
|
-
componentWillUnmount(): void;
|
|
12
|
-
startAnimation(): void;
|
|
13
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
}
|
|
15
|
-
declare namespace CarouselItem {
|
|
16
|
-
export { propTypes };
|
|
17
|
-
export { defaultProps };
|
|
18
|
-
}
|
|
19
|
-
import React from "react";
|
|
20
|
-
declare namespace propTypes {
|
|
21
|
-
const direction: PropTypes.Requireable<string>;
|
|
22
|
-
const onAnimateOutEnd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
-
const active: PropTypes.Requireable<boolean>;
|
|
24
|
-
const animateIn: PropTypes.Requireable<boolean>;
|
|
25
|
-
const animateOut: PropTypes.Requireable<boolean>;
|
|
26
|
-
const index: PropTypes.Requireable<number>;
|
|
27
|
-
}
|
|
28
|
-
declare namespace defaultProps {
|
|
29
|
-
const active_1: boolean;
|
|
30
|
-
export { active_1 as active };
|
|
31
|
-
const animateIn_1: boolean;
|
|
32
|
-
export { animateIn_1 as animateIn };
|
|
33
|
-
const animateOut_1: boolean;
|
|
34
|
-
export { animateOut_1 as animateOut };
|
|
35
|
-
}
|
|
36
|
-
import PropTypes from "prop-types";
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
// https://github.com/react-bootstrap/react-bootstrap/blob/v0.32.0/src/CarouselItem.js
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import ReactDOM from 'react-dom';
|
|
8
|
-
import transitionEnd from 'dom-helpers/transitionEnd';
|
|
9
|
-
const propTypes = {
|
|
10
|
-
direction: PropTypes.oneOf(['prev', 'next']),
|
|
11
|
-
onAnimateOutEnd: PropTypes.func,
|
|
12
|
-
active: PropTypes.bool,
|
|
13
|
-
animateIn: PropTypes.bool,
|
|
14
|
-
animateOut: PropTypes.bool,
|
|
15
|
-
index: PropTypes.number,
|
|
16
|
-
};
|
|
17
|
-
const defaultProps = {
|
|
18
|
-
active: false,
|
|
19
|
-
animateIn: false,
|
|
20
|
-
animateOut: false,
|
|
21
|
-
};
|
|
22
|
-
class CarouselItem extends React.Component {
|
|
23
|
-
constructor(props, context) {
|
|
24
|
-
super(props, context);
|
|
25
|
-
this.handleAnimateOutEnd = this.handleAnimateOutEnd.bind(this);
|
|
26
|
-
this.state = {
|
|
27
|
-
direction: null,
|
|
28
|
-
};
|
|
29
|
-
this.isUnmounted = false;
|
|
30
|
-
}
|
|
31
|
-
// eslint-disable-next-line camelcase
|
|
32
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
33
|
-
if (this.props.active !== nextProps.active) {
|
|
34
|
-
this.setState({ direction: null });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
componentDidUpdate(prevProps) {
|
|
38
|
-
const { active } = this.props;
|
|
39
|
-
const prevActive = prevProps.active;
|
|
40
|
-
if (!active && prevActive) {
|
|
41
|
-
transitionEnd(ReactDOM.findDOMNode(this), this.handleAnimateOutEnd);
|
|
42
|
-
}
|
|
43
|
-
if (active !== prevActive) {
|
|
44
|
-
setTimeout(() => this.startAnimation(), 20);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
componentWillUnmount() {
|
|
48
|
-
this.isUnmounted = true;
|
|
49
|
-
}
|
|
50
|
-
handleAnimateOutEnd() {
|
|
51
|
-
if (this.isUnmounted) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (this.props.onAnimateOutEnd) {
|
|
55
|
-
this.props.onAnimateOutEnd(this.props.index);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
startAnimation() {
|
|
59
|
-
if (this.isUnmounted) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
this.setState({
|
|
63
|
-
direction: this.props.direction === 'prev' ? 'right' : 'left',
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
const _a = this.props, { direction, active, animateIn, animateOut, className } = _a, props = __rest(_a, ["direction", "active", "animateIn", "animateOut", "className"]);
|
|
68
|
-
delete props.onAnimateOutEnd;
|
|
69
|
-
delete props.index;
|
|
70
|
-
const classes = {
|
|
71
|
-
item: true,
|
|
72
|
-
active: (active && !animateIn) || animateOut,
|
|
73
|
-
};
|
|
74
|
-
if (direction && active && animateIn) {
|
|
75
|
-
classes[direction] = true;
|
|
76
|
-
}
|
|
77
|
-
if (this.state.direction && (animateIn || animateOut)) {
|
|
78
|
-
classes[this.state.direction] = true;
|
|
79
|
-
}
|
|
80
|
-
return _jsx("div", Object.assign({}, props, { className: classNames(className, classes) }));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
CarouselItem.propTypes = propTypes;
|
|
84
|
-
CarouselItem.defaultProps = defaultProps;
|
|
85
|
-
export default CarouselItem;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const show: PropTypes.Validator<boolean>;
|
|
3
|
-
const title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
const subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
const iconNavigation: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
const showCloseButton: PropTypes.Requireable<boolean>;
|
|
7
|
-
const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
const bsSize: PropTypes.Requireable<string>;
|
|
9
|
-
const disableEsc: PropTypes.Requireable<boolean>;
|
|
10
|
-
const useOverflow: PropTypes.Requireable<boolean>;
|
|
11
|
-
const className: PropTypes.Requireable<string>;
|
|
12
|
-
}
|
|
13
|
-
export default _default;
|
|
14
|
-
import PropTypes from "prop-types";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export default {
|
|
3
|
-
show: PropTypes.bool.isRequired,
|
|
4
|
-
title: PropTypes.node,
|
|
5
|
-
subtitle: PropTypes.node,
|
|
6
|
-
iconNavigation: PropTypes.node,
|
|
7
|
-
showCloseButton: PropTypes.bool,
|
|
8
|
-
onClose: PropTypes.func,
|
|
9
|
-
bsSize: PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'full', 'fullscreen']),
|
|
10
|
-
disableEsc: PropTypes.bool,
|
|
11
|
-
useOverflow: PropTypes.bool,
|
|
12
|
-
className: PropTypes.string,
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export function formatDriverName({ firstName, lastName }: {
|
|
2
|
-
firstName: any;
|
|
3
|
-
lastName: any;
|
|
4
|
-
}): any;
|
|
5
|
-
export function DriverName({ driver, ...remainingProps }: {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
driver: any;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export namespace DriverName {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
const driver: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
|
-
firstName: PropTypes.Requireable<string>;
|
|
13
|
-
lastName: PropTypes.Validator<string>;
|
|
14
|
-
}>>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export default DriverName;
|
|
18
|
-
import PropTypes from "prop-types";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
export const formatDriverName = ({ firstName, lastName }) => {
|
|
6
|
-
return lastName && firstName ? [lastName, firstName].join(', ') : lastName;
|
|
7
|
-
};
|
|
8
|
-
export const DriverName = (_a) => {
|
|
9
|
-
var { driver } = _a, remainingProps = __rest(_a, ["driver"]);
|
|
10
|
-
return (_jsx("span", Object.assign({}, remainingProps, { className: 'DriverName' }, { children: formatDriverName(driver) })));
|
|
11
|
-
};
|
|
12
|
-
DriverName.propTypes = {
|
|
13
|
-
driver: PropTypes.shape({
|
|
14
|
-
firstName: PropTypes.string,
|
|
15
|
-
lastName: PropTypes.string.isRequired,
|
|
16
|
-
}),
|
|
17
|
-
};
|
|
18
|
-
export default DriverName;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _default: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
2
|
-
value: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
3
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
4
|
-
divider: PropTypes.Requireable<boolean>;
|
|
5
|
-
header: PropTypes.Requireable<boolean>;
|
|
6
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
7
|
-
}> | null | undefined)[]>;
|
|
8
|
-
export default _default;
|
|
9
|
-
import PropTypes from "prop-types";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export default PropTypes.arrayOf(PropTypes.shape({
|
|
3
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
4
|
-
disabled: PropTypes.bool,
|
|
5
|
-
divider: PropTypes.bool,
|
|
6
|
-
header: PropTypes.bool,
|
|
7
|
-
onSelect: PropTypes.func,
|
|
8
|
-
}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MapLayer, MapType } from '../utils/mapTypes';
|
|
3
|
-
export type MapSettingContextType = {
|
|
4
|
-
onMapTypeChange?: (type: MapType) => void;
|
|
5
|
-
onMapLayerChange?: (layer: MapLayer) => void;
|
|
6
|
-
onShowClusterChange?: (showCluster: boolean) => void;
|
|
7
|
-
mapType?: string;
|
|
8
|
-
activeBuiltinLayers?: string[];
|
|
9
|
-
showCluster?: boolean;
|
|
10
|
-
mapSettingsTooltip?: string | React.ReactNode;
|
|
11
|
-
hideMapLayerSettings?: boolean;
|
|
12
|
-
hideClusterSettings?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const defaultMapSettingsContext: MapSettingContextType;
|
|
15
|
-
export declare const MapSettingsContext: import("react").Context<MapSettingContextType>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default MapLayerGroup;
|
|
2
|
-
declare function MapLayerGroup({ children, minZoom, maxZoom, isVisible }: {
|
|
3
|
-
children: any;
|
|
4
|
-
minZoom: any;
|
|
5
|
-
maxZoom: any;
|
|
6
|
-
isVisible: any;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace MapLayerGroup {
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
const isVisible: PropTypes.Requireable<boolean>;
|
|
11
|
-
const minZoom: PropTypes.Requireable<number>;
|
|
12
|
-
const maxZoom: PropTypes.Requireable<number>;
|
|
13
|
-
}
|
|
14
|
-
namespace defaultProps {
|
|
15
|
-
const isVisible_1: boolean;
|
|
16
|
-
export { isVisible_1 as isVisible };
|
|
17
|
-
const minZoom_1: number;
|
|
18
|
-
export { minZoom_1 as minZoom };
|
|
19
|
-
const maxZoom_1: number;
|
|
20
|
-
export { maxZoom_1 as maxZoom };
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
import PropTypes from "prop-types";
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable no-undef */
|
|
3
|
-
import React, { useState, useEffect, useContext } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import { MapContext } from '../../context';
|
|
6
|
-
const MapLayerGroup = ({ children, minZoom, maxZoom, isVisible }) => {
|
|
7
|
-
const context = useContext(MapContext);
|
|
8
|
-
const api = context.api;
|
|
9
|
-
const [group, setGroup] = useState();
|
|
10
|
-
const [childApi, setChildApi] = useState();
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
const newGroup = new H.map.Group({
|
|
13
|
-
min: parseFloat(minZoom),
|
|
14
|
-
max: parseFloat(maxZoom),
|
|
15
|
-
});
|
|
16
|
-
newGroup.setVisibility(isVisible);
|
|
17
|
-
api.map.addObject(newGroup);
|
|
18
|
-
setGroup(newGroup);
|
|
19
|
-
const newChildApi = Object.assign(Object.assign({}, context), { api: Object.assign(Object.assign({}, api), { group: newGroup }) });
|
|
20
|
-
setChildApi(newChildApi);
|
|
21
|
-
return () => {
|
|
22
|
-
if (api.map.getObjects().includes(newGroup)) {
|
|
23
|
-
api.map.removeObject(newGroup);
|
|
24
|
-
}
|
|
25
|
-
newGroup.dispose();
|
|
26
|
-
};
|
|
27
|
-
}, [api.map]);
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
if (group) {
|
|
30
|
-
group.setVisibility(isVisible);
|
|
31
|
-
}
|
|
32
|
-
}, [isVisible]);
|
|
33
|
-
return (_jsx("div", Object.assign({ className: 'MapLayerGroup' }, { children: childApi ? _jsx(MapContext.Provider, Object.assign({ value: childApi }, { children: children })) : null })));
|
|
34
|
-
};
|
|
35
|
-
MapLayerGroup.propTypes = {
|
|
36
|
-
isVisible: PropTypes.bool,
|
|
37
|
-
minZoom: PropTypes.number,
|
|
38
|
-
maxZoom: PropTypes.number,
|
|
39
|
-
};
|
|
40
|
-
MapLayerGroup.defaultProps = {
|
|
41
|
-
isVisible: true,
|
|
42
|
-
minZoom: -Infinity,
|
|
43
|
-
maxZoom: Infinity,
|
|
44
|
-
};
|
|
45
|
-
export default MapLayerGroup;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export default DomMarker;
|
|
2
|
-
declare class DomMarker extends React.Component<any, any, any> {
|
|
3
|
-
constructor(props: any, context: any);
|
|
4
|
-
marker: H.map.DomMarker;
|
|
5
|
-
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
6
|
-
shouldComponentUpdate(): boolean;
|
|
7
|
-
componentWillUnmount(): void;
|
|
8
|
-
render(): null;
|
|
9
|
-
convertPosition(pos: any): any;
|
|
10
|
-
}
|
|
11
|
-
declare namespace DomMarker {
|
|
12
|
-
namespace contextTypes {
|
|
13
|
-
const api: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
map: PropTypes.Requireable<H.Map>;
|
|
15
|
-
platform: PropTypes.Requireable<H.service.Platform>;
|
|
16
|
-
defaultLayers: PropTypes.Requireable<object>;
|
|
17
|
-
group: PropTypes.Requireable<NonNullable<H.Map | H.map.Group | null | undefined>>;
|
|
18
|
-
}>>;
|
|
19
|
-
}
|
|
20
|
-
namespace propTypes {
|
|
21
|
-
const element: PropTypes.Validator<object>;
|
|
22
|
-
const eventListenerMap: PropTypes.Requireable<object>;
|
|
23
|
-
const position: PropTypes.Validator<NonNullable<NonNullable<PropTypes.InferProps<{
|
|
24
|
-
lat: PropTypes.Validator<number>;
|
|
25
|
-
lng: PropTypes.Validator<number>;
|
|
26
|
-
}> | (PropTypes.InferProps<{
|
|
27
|
-
lat: PropTypes.Validator<number>;
|
|
28
|
-
lng: PropTypes.Validator<number>;
|
|
29
|
-
}> | null | undefined)[] | null | undefined>>>;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
import React from "react";
|
|
33
|
-
import PropTypes from "prop-types";
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import mapProps from '../../../../utils/proptypes';
|
|
5
|
-
import { addEventListenerMap, removeEventListenerMap, checkAndUpdateEventListenerMap, } from '../../../../utils/eventHandling';
|
|
6
|
-
// Should be deprecated...
|
|
7
|
-
// Here Documentation:
|
|
8
|
-
// It should be only used where small numbers of markers with dynamic style and/or scripted icons are to be displayed
|
|
9
|
-
// on the map (for example animated interactive SVG). Otherwise a H.map.Marker should be preferred for performance reasons.
|
|
10
|
-
//
|
|
11
|
-
class DomMarker extends React.Component {
|
|
12
|
-
constructor(props, context) {
|
|
13
|
-
super(props, context);
|
|
14
|
-
const icon = new H.map.DomIcon(props.element);
|
|
15
|
-
this.marker = new H.map.DomMarker(this.convertPosition(props.position), { icon });
|
|
16
|
-
context.api.map.addObject(this.marker);
|
|
17
|
-
addEventListenerMap(this.marker, props.eventListenerMap, this.context.api.map);
|
|
18
|
-
}
|
|
19
|
-
// eslint-disable-next-line camelcase
|
|
20
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
21
|
-
checkAndUpdateEventListenerMap(this.marker, this.props, nextProps);
|
|
22
|
-
if (this.props.position !== nextProps.position) {
|
|
23
|
-
this.marker.setGeometry(this.convertPosition(nextProps.position));
|
|
24
|
-
}
|
|
25
|
-
if (this.props.element !== nextProps.element) {
|
|
26
|
-
const icon = new H.map.DomIcon(nextProps.element);
|
|
27
|
-
this.marker.setIcon(icon);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
shouldComponentUpdate() {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
componentWillUnmount() {
|
|
34
|
-
removeEventListenerMap(this.marker);
|
|
35
|
-
if (this.context.api.map.includes(this.marker)) {
|
|
36
|
-
this.context.api.map.removeObject(this.marker);
|
|
37
|
-
}
|
|
38
|
-
this.marker.dispose();
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
convertPosition(pos) {
|
|
44
|
-
return Array.isArray(pos) ? new H.geo.MultiPoint(pos) : pos;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
DomMarker.contextTypes = {
|
|
48
|
-
api: mapProps.api,
|
|
49
|
-
};
|
|
50
|
-
DomMarker.propTypes = {
|
|
51
|
-
element: PropTypes.object.isRequired,
|
|
52
|
-
eventListenerMap: PropTypes.object,
|
|
53
|
-
position: PropTypes.oneOfType([mapProps.position, mapProps.positions]).isRequired,
|
|
54
|
-
};
|
|
55
|
-
export default DomMarker;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export function getOrCreateIcon(icon: any): H.map.DomIcon | undefined;
|
|
2
|
-
export function isHMapIcon(icon: any): boolean;
|
|
3
|
-
export function isDomMakerNeeded(icon: any): boolean;
|
|
4
|
-
export default Marker;
|
|
5
|
-
declare function Marker(props: any): null;
|
|
6
|
-
declare namespace Marker {
|
|
7
|
-
namespace propTypes {
|
|
8
|
-
const position: PropTypes.Validator<NonNullable<NonNullable<PropTypes.InferProps<{
|
|
9
|
-
lat: PropTypes.Validator<number>;
|
|
10
|
-
lng: PropTypes.Validator<number>;
|
|
11
|
-
}> | (PropTypes.InferProps<{
|
|
12
|
-
lat: PropTypes.Validator<number>;
|
|
13
|
-
lng: PropTypes.Validator<number>;
|
|
14
|
-
}> | null | undefined)[] | null | undefined>>>;
|
|
15
|
-
const icon: PropTypes.Requireable<H.map.DomIcon>;
|
|
16
|
-
const eventListenerMap: PropTypes.Requireable<object>;
|
|
17
|
-
const customData: PropTypes.Requireable<object>;
|
|
18
|
-
const draggable: PropTypes.Requireable<boolean>;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
import PropTypes from "prop-types";
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
import React, { useContext, useEffect, useState, useRef } from 'react';
|
|
3
|
-
import ReactDomServer from 'react-dom/server';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import mapProps from '../../../../utils/proptypes';
|
|
6
|
-
import { addEventListenerMap, removeEventListenerMap } from '../../../../utils/eventHandling';
|
|
7
|
-
import MapException from '../../../../exceptions/MapException';
|
|
8
|
-
import { MapContext } from '../../../context';
|
|
9
|
-
export const isHMapIcon = icon => icon instanceof H.map.Icon;
|
|
10
|
-
export const isDomMakerNeeded = icon => (!icon ? false : !isHMapIcon(icon));
|
|
11
|
-
export function getOrCreateIcon(icon) {
|
|
12
|
-
if (!icon || isHMapIcon(icon) || icon instanceof H.map.DomIcon) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
const renderedIcon = React.isValidElement(icon)
|
|
16
|
-
? ReactDomServer.renderToStaticMarkup(React.cloneElement(icon))
|
|
17
|
-
: icon;
|
|
18
|
-
return new H.map.DomIcon(renderedIcon);
|
|
19
|
-
}
|
|
20
|
-
const convertPosition = pos => (Array.isArray(pos) ? new H.geo.MultiPoint(pos) : pos);
|
|
21
|
-
const checkPositionProperties = position => {
|
|
22
|
-
['lat', 'lng'].forEach(propertyName => {
|
|
23
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
24
|
-
if (!position.hasOwnProperty(propertyName)) {
|
|
25
|
-
throw new MapException(`Error in Marker: position object requires property "${propertyName}"`);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
const getPosition = position => {
|
|
30
|
-
if (!position) {
|
|
31
|
-
throw new MapException('Error in Marker: invalid position property');
|
|
32
|
-
}
|
|
33
|
-
if (Array.isArray(position)) {
|
|
34
|
-
position.forEach(pos => checkPositionProperties(pos));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
checkPositionProperties(position);
|
|
38
|
-
}
|
|
39
|
-
return position;
|
|
40
|
-
};
|
|
41
|
-
const getConvertedPosition = position => convertPosition(getPosition(position));
|
|
42
|
-
const setupMarker = (props, api) => {
|
|
43
|
-
const { position, customData, icon, draggable, eventListenerMap } = props;
|
|
44
|
-
const MarkerConstructor = isDomMakerNeeded(icon) ? H.map.DomMarker : H.map.Marker;
|
|
45
|
-
const marker = new MarkerConstructor(getConvertedPosition(position), {
|
|
46
|
-
icon: getOrCreateIcon(icon, api.settings.baseLayer),
|
|
47
|
-
});
|
|
48
|
-
marker.setData(customData);
|
|
49
|
-
marker.draggable = !!draggable;
|
|
50
|
-
api.map.addObject(marker);
|
|
51
|
-
addEventListenerMap(marker, eventListenerMap, api.map);
|
|
52
|
-
return marker;
|
|
53
|
-
};
|
|
54
|
-
const destroyMarker = (marker, api) => {
|
|
55
|
-
removeEventListenerMap(marker);
|
|
56
|
-
if (api.map.getObjects().includes(marker)) {
|
|
57
|
-
api.map.removeObject(marker);
|
|
58
|
-
}
|
|
59
|
-
marker.dispose();
|
|
60
|
-
};
|
|
61
|
-
const Marker = props => {
|
|
62
|
-
const { position, customData, icon, eventListenerMap } = props;
|
|
63
|
-
const { api } = useContext(MapContext);
|
|
64
|
-
const markerRef = useRef();
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
markerRef.current = setupMarker(props, api);
|
|
67
|
-
return () => {
|
|
68
|
-
if (markerRef.current) {
|
|
69
|
-
destroyMarker(markerRef.current, api);
|
|
70
|
-
markerRef.current = undefined;
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
}, []);
|
|
74
|
-
// Update marker position
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
if (markerRef.current) {
|
|
77
|
-
markerRef.current.setGeometry(getConvertedPosition(position));
|
|
78
|
-
}
|
|
79
|
-
}, [position, markerRef.current]);
|
|
80
|
-
// Update marker custom data
|
|
81
|
-
useEffect(() => {
|
|
82
|
-
if (markerRef.current) {
|
|
83
|
-
markerRef.current.setData(customData);
|
|
84
|
-
}
|
|
85
|
-
}, [customData, markerRef.current]);
|
|
86
|
-
// Update EventListenerMap
|
|
87
|
-
useEffect(() => {
|
|
88
|
-
if (markerRef.current) {
|
|
89
|
-
// use exports to make methods accessible for stubbing
|
|
90
|
-
const mapApi = removeEventListenerMap(markerRef.current);
|
|
91
|
-
addEventListenerMap(markerRef.current, eventListenerMap, mapApi);
|
|
92
|
-
}
|
|
93
|
-
}, [eventListenerMap, markerRef.current]);
|
|
94
|
-
// If icon type changed, we need to change the marker type
|
|
95
|
-
useEffect(() => {
|
|
96
|
-
if (!(markerRef.current && icon)) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (isDomMakerNeeded(icon)) {
|
|
100
|
-
destroyMarker(markerRef.current, api);
|
|
101
|
-
markerRef.current = setupMarker(props, api);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
markerRef.current.setIcon(getOrCreateIcon(icon));
|
|
105
|
-
}
|
|
106
|
-
}, [icon, markerRef.current]);
|
|
107
|
-
return null;
|
|
108
|
-
};
|
|
109
|
-
Marker.propTypes = {
|
|
110
|
-
position: PropTypes.oneOfType([mapProps.position, mapProps.positions]).isRequired,
|
|
111
|
-
icon: mapProps.icon,
|
|
112
|
-
eventListenerMap: PropTypes.object,
|
|
113
|
-
customData: PropTypes.object,
|
|
114
|
-
draggable: PropTypes.bool,
|
|
115
|
-
};
|
|
116
|
-
export default Marker;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export const emptyTextException: "Error in TextMarker: TextMarker without text makes no sense";
|
|
2
|
-
export const wrongTypeException: "Error in TextMarker: property text must be string type";
|
|
3
|
-
export default TextMarker;
|
|
4
|
-
declare function TextMarker(props: any): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace TextMarker {
|
|
6
|
-
namespace propTypes {
|
|
7
|
-
const position: PropTypes.Validator<NonNullable<NonNullable<PropTypes.InferProps<{
|
|
8
|
-
lat: PropTypes.Validator<number>;
|
|
9
|
-
lng: PropTypes.Validator<number>;
|
|
10
|
-
}> | (PropTypes.InferProps<{
|
|
11
|
-
lat: PropTypes.Validator<number>;
|
|
12
|
-
lng: PropTypes.Validator<number>;
|
|
13
|
-
}> | null | undefined)[] | null | undefined>>>;
|
|
14
|
-
const text: PropTypes.Validator<string>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
import PropTypes from "prop-types";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import MapException from '../../../../exceptions/MapException';
|
|
6
|
-
import mapProps from '../../../../utils/proptypes';
|
|
7
|
-
import Marker from './Marker';
|
|
8
|
-
export const emptyTextException = 'Error in TextMarker: TextMarker without text makes no sense';
|
|
9
|
-
export const wrongTypeException = 'Error in TextMarker: property text must be string type';
|
|
10
|
-
const TextMarker = props => {
|
|
11
|
-
const other = __rest(props, []);
|
|
12
|
-
const textDiv = `<div class="bg-white padding-x-5 padding-y-3 border border-color-darker shadow-accent">${getText(props.text)}</div>`;
|
|
13
|
-
return _jsx(Marker, Object.assign({}, other, { icon: textDiv }));
|
|
14
|
-
};
|
|
15
|
-
const getText = text => {
|
|
16
|
-
if (!text) {
|
|
17
|
-
throw new MapException(emptyTextException);
|
|
18
|
-
}
|
|
19
|
-
if (typeof text !== 'string') {
|
|
20
|
-
throw new MapException(wrongTypeException);
|
|
21
|
-
}
|
|
22
|
-
return text;
|
|
23
|
-
};
|
|
24
|
-
TextMarker.propTypes = {
|
|
25
|
-
position: PropTypes.oneOfType([mapProps.position, mapProps.positions]).isRequired,
|
|
26
|
-
text: PropTypes.string.isRequired,
|
|
27
|
-
};
|
|
28
|
-
export default TextMarker;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import Layer from './Layer';
|
|
5
|
-
// Layer that shows construction sites marker that are interactive and use a popup for details
|
|
6
|
-
// Since "vector.normal.trafficincidents" is deprecated we have to use the Here Traffic Service v7
|
|
7
|
-
// see: https://developer.here.com/documentation/maps/3.1.46.0/api_reference/H.service.Platform.html
|
|
8
|
-
const createTrafficIncidentsLayer = api => {
|
|
9
|
-
const config = `
|
|
10
|
-
sources:
|
|
11
|
-
omv:
|
|
12
|
-
type: OMV
|
|
13
|
-
layers:
|
|
14
|
-
incident_icons:
|
|
15
|
-
data: {source: omv}
|
|
16
|
-
`;
|
|
17
|
-
return api.platform.getTrafficVectorTileService().createLayer(new H.map.render.webgl.Style(config));
|
|
18
|
-
};
|
|
19
|
-
// For raster map, we use the old deprecated fallback for now
|
|
20
|
-
const createTrafficIncidentsLayerFallback = api => api.defaultLayers.vector.normal.trafficincidents;
|
|
21
|
-
const IncidentsLayer = props => {
|
|
22
|
-
const { useWebGL } = props, remainingProps = __rest(props, ["useWebGL"]);
|
|
23
|
-
return (_jsx(Layer, Object.assign({}, remainingProps, { createLayer: useWebGL ? createTrafficIncidentsLayer : createTrafficIncidentsLayerFallback })));
|
|
24
|
-
};
|
|
25
|
-
export default IncidentsLayer;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default Layer;
|
|
2
|
-
declare function Layer(props: any): null;
|
|
3
|
-
declare namespace Layer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const api: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
map: PropTypes.Requireable<H.Map>;
|
|
7
|
-
platform: PropTypes.Requireable<H.service.Platform>;
|
|
8
|
-
defaultLayers: PropTypes.Requireable<object>;
|
|
9
|
-
group: PropTypes.Requireable<NonNullable<H.Map | H.map.Group | null | undefined>>;
|
|
10
|
-
}>>;
|
|
11
|
-
const createLayer: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
-
const layerIndex: PropTypes.Requireable<number>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
import PropTypes from "prop-types";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import mapProps from '../../../utils/proptypes';
|
|
4
|
-
const Layer = props => {
|
|
5
|
-
const { api, createLayer, layerIndex } = props;
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
const newLayer = createLayer(api);
|
|
8
|
-
api.map.addLayer(newLayer, layerIndex);
|
|
9
|
-
return () => {
|
|
10
|
-
if (newLayer) {
|
|
11
|
-
api.map.removeLayer(newLayer);
|
|
12
|
-
newLayer.dispose();
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}, [api.map]);
|
|
16
|
-
return null;
|
|
17
|
-
};
|
|
18
|
-
Layer.propTypes = {
|
|
19
|
-
api: mapProps.api,
|
|
20
|
-
createLayer: PropTypes.func.isRequired,
|
|
21
|
-
layerIndex: PropTypes.number,
|
|
22
|
-
};
|
|
23
|
-
export default Layer;
|