@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,83 +0,0 @@
|
|
|
1
|
-
export class BaseDropdownMenu extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
state: {
|
|
4
|
-
dropup: boolean;
|
|
5
|
-
pullRight: any;
|
|
6
|
-
focusedItemIndex: any;
|
|
7
|
-
keyboardUsed: any;
|
|
8
|
-
itemDOMValues: never[];
|
|
9
|
-
};
|
|
10
|
-
handleOptionChange(event: any): void;
|
|
11
|
-
handleKeydown(event: any): void;
|
|
12
|
-
componentDidMount(): void;
|
|
13
|
-
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
14
|
-
focusOption(direction: any): void;
|
|
15
|
-
getDropdownDOMNode(): Element | Text | null;
|
|
16
|
-
getOptionNodes(): any;
|
|
17
|
-
setItemDOMValues(): {
|
|
18
|
-
id: any;
|
|
19
|
-
text: any;
|
|
20
|
-
}[] | undefined;
|
|
21
|
-
getFocusedOptionNode(): any;
|
|
22
|
-
selectOptionOnEnter(event: any): void;
|
|
23
|
-
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
-
refDropdownMenu: HTMLUListElement | null | undefined;
|
|
25
|
-
renderMenuOption(option: any, index: any): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
getSelectedFocusedItemIndex(): any;
|
|
27
|
-
isAutoDropActive(): boolean;
|
|
28
|
-
openMenu(nextProps: any): void;
|
|
29
|
-
onDocumentKeydownListener: {
|
|
30
|
-
remove(): void;
|
|
31
|
-
} | undefined;
|
|
32
|
-
closeMenu(): void;
|
|
33
|
-
}
|
|
34
|
-
export namespace BaseDropdownMenu {
|
|
35
|
-
namespace defaultProps {
|
|
36
|
-
export const isOpen: boolean;
|
|
37
|
-
export function updateDOMValues(): void;
|
|
38
|
-
export function onOpen(): void;
|
|
39
|
-
export function onSelect(): void;
|
|
40
|
-
export function onClose(): void;
|
|
41
|
-
export const options: never[];
|
|
42
|
-
export const autoDropDirection: boolean;
|
|
43
|
-
export const pullRight: boolean;
|
|
44
|
-
export const useActiveClass: boolean;
|
|
45
|
-
export const keyboardUsed: boolean;
|
|
46
|
-
export { DEFAULT_FOCUSED_ITEM_INDEX as focusedItemIndex };
|
|
47
|
-
}
|
|
48
|
-
namespace propTypes {
|
|
49
|
-
const options_1: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
50
|
-
id: PropTypes.Validator<string>;
|
|
51
|
-
label: PropTypes.Validator<any>;
|
|
52
|
-
icon: PropTypes.Requireable<object>;
|
|
53
|
-
selected: PropTypes.Requireable<boolean>;
|
|
54
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
55
|
-
header: PropTypes.Requireable<boolean>;
|
|
56
|
-
}> | null | undefined)[]>;
|
|
57
|
-
export { options_1 as options };
|
|
58
|
-
const isOpen_1: PropTypes.Requireable<boolean>;
|
|
59
|
-
export { isOpen_1 as isOpen };
|
|
60
|
-
const updateDOMValues_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
|
-
export { updateDOMValues_1 as updateDOMValues };
|
|
62
|
-
const onOpen_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
|
-
export { onOpen_1 as onOpen };
|
|
64
|
-
const onSelect_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
|
-
export { onSelect_1 as onSelect };
|
|
66
|
-
const onClose_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
67
|
-
export { onClose_1 as onClose };
|
|
68
|
-
export const placeholder: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
69
|
-
export const dropup: PropTypes.Requireable<boolean>;
|
|
70
|
-
const pullRight_1: PropTypes.Requireable<boolean>;
|
|
71
|
-
export { pullRight_1 as pullRight };
|
|
72
|
-
const autoDropDirection_1: PropTypes.Requireable<boolean>;
|
|
73
|
-
export { autoDropDirection_1 as autoDropDirection };
|
|
74
|
-
export const noItemMessage: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
75
|
-
export const focusedItemIndex: PropTypes.Validator<number>;
|
|
76
|
-
export const dropdownClassName: PropTypes.Requireable<string>;
|
|
77
|
-
export const requestItemDOMValues: PropTypes.Requireable<boolean>;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
import React from "react";
|
|
81
|
-
declare const DEFAULT_FOCUSED_ITEM_INDEX: -1;
|
|
82
|
-
import PropTypes from "prop-types";
|
|
83
|
-
export {};
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { Component } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import ReactDOM from 'react-dom';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
import isEqual from 'lodash/fp/isEqual';
|
|
7
|
-
import ownerDocument from '../../utils/ownerDocument';
|
|
8
|
-
import addEventListener from '../../utils/addEventListener';
|
|
9
|
-
import getDropDirection from '../../utils/getDropDirection';
|
|
10
|
-
import { scrollItemIntoView, UP, DOWN } from '../../utils/scrollItemIntoView';
|
|
11
|
-
import DropdownHeader from './DropdownHeader';
|
|
12
|
-
// const UP = 'up';
|
|
13
|
-
// const DOWN = 'down';
|
|
14
|
-
const DATA_ATTRIBUTE_ID = 'data-item-id';
|
|
15
|
-
const DATA_ATTRIBUTE_INDEX = 'data-item-index';
|
|
16
|
-
const DEFAULT_FOCUSED_ITEM_INDEX = -1;
|
|
17
|
-
const HIGHLIGHT_CLASS = 'focus';
|
|
18
|
-
export class BaseDropdownMenu extends Component {
|
|
19
|
-
constructor(props) {
|
|
20
|
-
super(props);
|
|
21
|
-
this.state = {
|
|
22
|
-
dropup: false,
|
|
23
|
-
pullRight: props.pullRight,
|
|
24
|
-
focusedItemIndex: this.props.focusedItemIndex,
|
|
25
|
-
keyboardUsed: this.props.keyboardUsed,
|
|
26
|
-
itemDOMValues: [],
|
|
27
|
-
};
|
|
28
|
-
this.handleOptionChange = this.handleOptionChange.bind(this);
|
|
29
|
-
this.handleKeydown = this.handleKeydown.bind(this);
|
|
30
|
-
}
|
|
31
|
-
componentDidMount() {
|
|
32
|
-
// all available items need to be rendered in order to know their DOM value
|
|
33
|
-
// which will be used for filtering in the parent component
|
|
34
|
-
const itemDOMValues = this.setItemDOMValues();
|
|
35
|
-
this.setState(() => ({
|
|
36
|
-
itemDOMValues,
|
|
37
|
-
}));
|
|
38
|
-
this.props.updateDOMValues(itemDOMValues);
|
|
39
|
-
}
|
|
40
|
-
// eslint-disable-next-line camelcase
|
|
41
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
42
|
-
if (nextProps) {
|
|
43
|
-
if (!this.props.isOpen && nextProps.isOpen) {
|
|
44
|
-
this.openMenu(nextProps);
|
|
45
|
-
}
|
|
46
|
-
else if (this.props.isOpen && !nextProps.isOpen) {
|
|
47
|
-
this.closeMenu();
|
|
48
|
-
}
|
|
49
|
-
if (!isEqual(nextProps.options, this.props.options)) {
|
|
50
|
-
this.setState(() => ({
|
|
51
|
-
options: nextProps.options,
|
|
52
|
-
}));
|
|
53
|
-
// Workaround to put the update of DOM values into a setTimeout to have the component
|
|
54
|
-
// re-rendered to fetch the DOM items.
|
|
55
|
-
// This should be refactored when reworking the component as functional component
|
|
56
|
-
setTimeout(() => {
|
|
57
|
-
// Only update the DOM values if it is explicitly requested
|
|
58
|
-
// otherwise it will reduce the dom values to the filtered options
|
|
59
|
-
if (nextProps.requestItemDOMValues) {
|
|
60
|
-
const items = this.setItemDOMValues();
|
|
61
|
-
this.props.updateDOMValues(items);
|
|
62
|
-
this.setState(() => ({
|
|
63
|
-
itemDOMValues: items ? items : this.state.itemDOMValues,
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
}, 0);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
handleKeydown(event) {
|
|
71
|
-
switch (event.keyCode) {
|
|
72
|
-
case 27: {
|
|
73
|
-
// close on esc key or on tab
|
|
74
|
-
this.closeMenu();
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
case 9: {
|
|
78
|
-
// close on tab
|
|
79
|
-
this.closeMenu();
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
case 13: {
|
|
83
|
-
// select on enter
|
|
84
|
-
this.selectOptionOnEnter(event);
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
case 38: {
|
|
88
|
-
// prevent scrolling the page when dropdown menu is open
|
|
89
|
-
event.preventDefault();
|
|
90
|
-
// select above on arrow up key
|
|
91
|
-
this.focusOption(UP);
|
|
92
|
-
scrollItemIntoView(UP, this.getDropdownDOMNode(), this.getFocusedOptionNode());
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
case 40: {
|
|
96
|
-
// prevent scrolling the page when dropdown menu is open
|
|
97
|
-
event.preventDefault();
|
|
98
|
-
// select below on arrow down key
|
|
99
|
-
this.focusOption(DOWN);
|
|
100
|
-
scrollItemIntoView(DOWN, this.getDropdownDOMNode(), this.getFocusedOptionNode());
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
default:
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
focusOption(direction) {
|
|
108
|
-
let nextFocusedItem = 0;
|
|
109
|
-
const focusedItemIndex = this.state.focusedItemIndex;
|
|
110
|
-
switch (direction) {
|
|
111
|
-
case UP: {
|
|
112
|
-
nextFocusedItem = focusedItemIndex === 0 ? focusedItemIndex : focusedItemIndex - 1;
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
case DOWN: {
|
|
116
|
-
nextFocusedItem =
|
|
117
|
-
focusedItemIndex === this.props.options.length - 1 ? focusedItemIndex : focusedItemIndex + 1;
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
default:
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
this.setState(() => ({
|
|
124
|
-
focusedItemIndex: nextFocusedItem,
|
|
125
|
-
keyboardUsed: true,
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
getDropdownDOMNode() {
|
|
129
|
-
return ReactDOM.findDOMNode(this.refDropdownMenu);
|
|
130
|
-
}
|
|
131
|
-
getOptionNodes() {
|
|
132
|
-
const node = ReactDOM.findDOMNode(this.refDropdownMenu);
|
|
133
|
-
if (!node) {
|
|
134
|
-
return [];
|
|
135
|
-
}
|
|
136
|
-
return node.getElementsByTagName('a') || [];
|
|
137
|
-
}
|
|
138
|
-
setItemDOMValues() {
|
|
139
|
-
if (this.refDropdownMenu) {
|
|
140
|
-
const optionNodes = this.getOptionNodes();
|
|
141
|
-
const itemDOMValues = [...optionNodes].map(item => {
|
|
142
|
-
return {
|
|
143
|
-
id: item.getAttribute(DATA_ATTRIBUTE_ID),
|
|
144
|
-
text: item.textContent,
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
return itemDOMValues;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
getFocusedOptionNode() {
|
|
151
|
-
const optionNodes = this.getOptionNodes();
|
|
152
|
-
return [...optionNodes].find(item => item.className.includes(HIGHLIGHT_CLASS));
|
|
153
|
-
}
|
|
154
|
-
selectOptionOnEnter(event) {
|
|
155
|
-
event.preventDefault();
|
|
156
|
-
// When no filter result was found, avoid selecting anything
|
|
157
|
-
if (!this.props.options.length) {
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
const match = this.getFocusedOptionNode();
|
|
161
|
-
if (match) {
|
|
162
|
-
const selectedItem = this.props.options.find(option => option.id === match.getAttribute(DATA_ATTRIBUTE_ID));
|
|
163
|
-
this.props.onSelect(event, selectedItem);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
render() {
|
|
167
|
-
const { pullRight, noItemMessage, dropdownClassName } = this.props;
|
|
168
|
-
const isPullRight = this.isAutoDropActive() ? this.state.pullRight : pullRight;
|
|
169
|
-
const dropdownMenuClasses = classNames('dropdown-menu', isPullRight && 'pull-right', dropdownClassName);
|
|
170
|
-
// Dont show dropdown, when no match are found when filtering unless there is a not found message
|
|
171
|
-
if (!this.props.options.length) {
|
|
172
|
-
// In case a message is provided when nothing matched, show it
|
|
173
|
-
if (noItemMessage) {
|
|
174
|
-
return (_jsx("ul", Object.assign({ className: dropdownMenuClasses }, { children: _jsx("li", Object.assign({ className: 'no-item-message disabled', disabled: true }, { children: _jsx("a", Object.assign({ role: 'button' }, { children: _jsx("i", { children: noItemMessage }) })) })) })));
|
|
175
|
-
}
|
|
176
|
-
return null;
|
|
177
|
-
}
|
|
178
|
-
return (_jsx("ul", Object.assign({ className: dropdownMenuClasses, ref: node => (this.refDropdownMenu = node) }, { children: this.props.options.map((option, index) => this.renderMenuOption(option, index)) })));
|
|
179
|
-
}
|
|
180
|
-
renderMenuOption(option, index) {
|
|
181
|
-
if (option.header) {
|
|
182
|
-
return (_jsx(DropdownHeader, { id: option.id, icon: option.icon, label: option.label, type: 'dropdown' }, option.id));
|
|
183
|
-
}
|
|
184
|
-
// Show focused style only when keyboard is in use
|
|
185
|
-
const anchorClassNames = this.state.keyboardUsed && this.state.focusedItemIndex === index ? HIGHLIGHT_CLASS : '';
|
|
186
|
-
const wrapperClassNames = classNames(option.disabled && 'disabled', this.props.useActiveClass && option.selected && 'active');
|
|
187
|
-
return (_jsx("li", Object.assign({ className: wrapperClassNames }, { children: _jsxs("a", Object.assign({ role: 'button', className: anchorClassNames, "data-item-id": option.id, "data-item-index": index, onClick: !option.disabled ? this.handleOptionChange : undefined }, { children: [_jsxs("span", { children: [option.icon && _jsx("span", Object.assign({ className: 'margin-right-5' }, { children: option.icon })), option.label] }), _jsx("input", { type: 'hidden', value: option.id })] })) }), option.id));
|
|
188
|
-
}
|
|
189
|
-
getSelectedFocusedItemIndex() {
|
|
190
|
-
return event.currentTarget.getAttribute(DATA_ATTRIBUTE_INDEX) || -1;
|
|
191
|
-
}
|
|
192
|
-
handleOptionChange(event) {
|
|
193
|
-
event.preventDefault();
|
|
194
|
-
const optionId = event.currentTarget.getElementsByTagName('input')[0].value;
|
|
195
|
-
const selectedItem = this.props.options.find(option => option.id === optionId);
|
|
196
|
-
this.props.onSelect(event, selectedItem);
|
|
197
|
-
}
|
|
198
|
-
isAutoDropActive() {
|
|
199
|
-
return !(!this.props.autoDropDirection || this.props.dropup || this.props.pullRight);
|
|
200
|
-
}
|
|
201
|
-
openMenu(nextProps) {
|
|
202
|
-
const { options, onOpen } = this.props;
|
|
203
|
-
const doc = ownerDocument(this);
|
|
204
|
-
this.onDocumentKeydownListener = addEventListener(doc, 'keydown', this.handleKeydown);
|
|
205
|
-
const dropDirection = options.length && this.isAutoDropActive()
|
|
206
|
-
? getDropDirection(this.refDropdownMenu.parentNode, this.refDropdownMenu)
|
|
207
|
-
: {};
|
|
208
|
-
this.setState(() => (Object.assign({ isOpen: nextProps.isOpen, keyboardUsed: nextProps.keyboardUsed }, dropDirection)));
|
|
209
|
-
// Tell the parent whether it's dropup or not as it might need to set the respective class
|
|
210
|
-
// to the wrapping element
|
|
211
|
-
onOpen(dropDirection.dropup);
|
|
212
|
-
}
|
|
213
|
-
closeMenu() {
|
|
214
|
-
if (this.onDocumentKeydownListener) {
|
|
215
|
-
this.onDocumentKeydownListener.remove();
|
|
216
|
-
}
|
|
217
|
-
this.props.onClose();
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
BaseDropdownMenu.defaultProps = {
|
|
221
|
-
isOpen: false,
|
|
222
|
-
updateDOMValues: () => { },
|
|
223
|
-
onOpen: () => { },
|
|
224
|
-
onSelect: () => { },
|
|
225
|
-
onClose: () => { },
|
|
226
|
-
options: [],
|
|
227
|
-
autoDropDirection: false,
|
|
228
|
-
pullRight: false,
|
|
229
|
-
useActiveClass: false,
|
|
230
|
-
keyboardUsed: false,
|
|
231
|
-
focusedItemIndex: DEFAULT_FOCUSED_ITEM_INDEX,
|
|
232
|
-
};
|
|
233
|
-
BaseDropdownMenu.propTypes = {
|
|
234
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
|
235
|
-
id: PropTypes.string.isRequired /* Identify an option */,
|
|
236
|
-
label: PropTypes.any.isRequired /* A label to show in body */,
|
|
237
|
-
icon: PropTypes.object /* An icon to show in body */,
|
|
238
|
-
selected: PropTypes.bool,
|
|
239
|
-
disabled: PropTypes.bool,
|
|
240
|
-
header: PropTypes.bool,
|
|
241
|
-
})),
|
|
242
|
-
isOpen: PropTypes.bool,
|
|
243
|
-
updateDOMValues: PropTypes.func,
|
|
244
|
-
onOpen: PropTypes.func,
|
|
245
|
-
onSelect: PropTypes.func,
|
|
246
|
-
onClose: PropTypes.func,
|
|
247
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
248
|
-
dropup: PropTypes.bool,
|
|
249
|
-
pullRight: PropTypes.bool,
|
|
250
|
-
autoDropDirection: PropTypes.bool,
|
|
251
|
-
noItemMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
252
|
-
focusedItemIndex: PropTypes.number.isRequired,
|
|
253
|
-
dropdownClassName: PropTypes.string,
|
|
254
|
-
requestItemDOMValues: PropTypes.bool,
|
|
255
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
export type WithFeedbackProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Defines the size of the select to be rendered
|
|
5
|
-
*
|
|
6
|
-
* @default 'md'
|
|
7
|
-
*/
|
|
8
|
-
bsSize?: 'sm' | 'md' | 'lg';
|
|
9
|
-
/**
|
|
10
|
-
* Option to add an icon as a leading input addon to the select component
|
|
11
|
-
*/
|
|
12
|
-
inputAddon?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Input error message.
|
|
15
|
-
*/
|
|
16
|
-
errorMessage?: string | React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Input warning message.
|
|
19
|
-
*/
|
|
20
|
-
warningMessage?: string | React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Feedback message width.
|
|
23
|
-
*/
|
|
24
|
-
messageWhiteSpace?: 'normal' | 'nowrap' | 'pre-line';
|
|
25
|
-
};
|
|
26
|
-
declare const WithFeedback: (props: PropsWithChildren<WithFeedbackProps>) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export default WithFeedback;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
3
|
-
import 'react';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
const WithFeedback = (props) => {
|
|
6
|
-
const { bsSize, inputAddon, errorMessage, warningMessage, messageWhiteSpace, children } = props;
|
|
7
|
-
const inputGroupClassNames = classNames('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
|
|
8
|
-
const formGroupClassName = classNames('form-group margin-bottom-0', 'has-feedback', errorMessage && 'has-error', warningMessage && 'has-warning');
|
|
9
|
-
const hasFeedbackMessage = errorMessage || warningMessage;
|
|
10
|
-
return (_jsx("div", Object.assign({ className: formGroupClassName }, { children: _jsxs("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && (_jsx("div", Object.assign({ className: 'input-group-addon' }, { children: _jsx("span", { className: inputAddon }) }))), _jsxs("div", Object.assign({ className: 'form-control-feedback-wrapper' }, { children: [children, hasFeedbackMessage && (_jsxs(_Fragment, { children: [errorMessage && _jsx("span", { className: 'form-control-feedback rioglyph rioglyph-error-sign' }), warningMessage && (_jsx("span", { className: 'form-control-feedback rioglyph rioglyph-warning-sign' })), _jsx("span", Object.assign({ className: `help-block white-space-${messageWhiteSpace}` }, { children: _jsx("span", { children: errorMessage || warningMessage }) }))] }))] }))] })) })));
|
|
11
|
-
};
|
|
12
|
-
export default WithFeedback;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const ALIGN_LEFT: "left";
|
|
2
|
-
export const ALIGN_CENTER: "center";
|
|
3
|
-
export const ALIGN_RIGHT: "right";
|
|
4
|
-
export namespace baseStatePropTypes {
|
|
5
|
-
const icon: PropTypes.Requireable<string>;
|
|
6
|
-
const icons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
7
|
-
name: PropTypes.Validator<string>;
|
|
8
|
-
color: PropTypes.Requireable<string>;
|
|
9
|
-
className: PropTypes.Requireable<string>;
|
|
10
|
-
}> | null | undefined)[]>;
|
|
11
|
-
const image: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
const headline: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
13
|
-
const message: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
14
|
-
const buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
15
|
-
text: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
16
|
-
className: PropTypes.Requireable<string>;
|
|
17
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
href: PropTypes.Requireable<string>;
|
|
19
|
-
}> | null | undefined)[]>;
|
|
20
|
-
const fullWidth: PropTypes.Requireable<boolean>;
|
|
21
|
-
const condensed: PropTypes.Requireable<boolean>;
|
|
22
|
-
const alignment: PropTypes.Requireable<string>;
|
|
23
|
-
const outerClassName: PropTypes.Requireable<string>;
|
|
24
|
-
const innerClassName: PropTypes.Requireable<string>;
|
|
25
|
-
}
|
|
26
|
-
import PropTypes from "prop-types";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export const ALIGN_LEFT = 'left';
|
|
3
|
-
export const ALIGN_CENTER = 'center';
|
|
4
|
-
export const ALIGN_RIGHT = 'right';
|
|
5
|
-
export const baseStatePropTypes = {
|
|
6
|
-
icon: PropTypes.string,
|
|
7
|
-
icons: PropTypes.arrayOf(PropTypes.shape({
|
|
8
|
-
name: PropTypes.string.isRequired,
|
|
9
|
-
color: PropTypes.string,
|
|
10
|
-
className: PropTypes.string,
|
|
11
|
-
})),
|
|
12
|
-
image: PropTypes.node,
|
|
13
|
-
headline: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
14
|
-
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
15
|
-
buttons: PropTypes.arrayOf(PropTypes.shape({
|
|
16
|
-
text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
|
|
17
|
-
className: PropTypes.string,
|
|
18
|
-
onClick: PropTypes.func,
|
|
19
|
-
href: PropTypes.string,
|
|
20
|
-
})),
|
|
21
|
-
fullWidth: PropTypes.bool,
|
|
22
|
-
condensed: PropTypes.bool,
|
|
23
|
-
alignment: PropTypes.oneOf([ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT]),
|
|
24
|
-
outerClassName: PropTypes.string,
|
|
25
|
-
innerClassName: PropTypes.string,
|
|
26
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const columnsDetailsPropTypes: PropTypes.Requireable<{
|
|
2
|
-
[x: string]: PropTypes.InferProps<{
|
|
3
|
-
width: PropTypes.Requireable<number>;
|
|
4
|
-
defaultWidth: PropTypes.Requireable<number>;
|
|
5
|
-
maxWidth: PropTypes.Requireable<number>;
|
|
6
|
-
}> | null | undefined;
|
|
7
|
-
}>;
|
|
8
|
-
import PropTypes from "prop-types";
|
package/lib/es/BrowserWarning.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const BrowserWarning_1 = tslib_1.__importDefault(require("./components/browserWarning/BrowserWarning"));
|
|
6
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return BrowserWarning_1.default; } });
|
package/lib/es/DomMarker.d.ts
DELETED
package/lib/es/DomMarker.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const DomMarker_1 = tslib_1.__importDefault(require("./components/map/components/features/basics/marker/DomMarker"));
|
|
6
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return DomMarker_1.default; } });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNewGroupedSelected = void 0;
|
|
4
|
-
const GroupSelectionUtil_1 = require("./utils/GroupSelectionUtil");
|
|
5
|
-
Object.defineProperty(exports, "getNewGroupedSelected", { enumerable: true, get: function () { return GroupSelectionUtil_1.getNewGroupedSelected; } });
|
package/lib/es/IncidentsLayer.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const IncidentsLayer_1 = tslib_1.__importDefault(require("./components/map/components/features/layers/overlayLayers/IncidentsLayer"));
|
|
6
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return IncidentsLayer_1.default; } });
|
package/lib/es/TrafficLayer.d.ts
DELETED
package/lib/es/TrafficLayer.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const TrafficLayer_1 = tslib_1.__importDefault(require("./components/map/components/features/layers/TrafficLayer"));
|
|
6
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return TrafficLayer_1.default; } });
|
package/lib/es/TruckLayer.d.ts
DELETED
package/lib/es/TruckLayer.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const RoadRestrictionLayer_1 = tslib_1.__importDefault(require("./components/map/components/features/layers/RoadRestrictionLayer"));
|
|
6
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return RoadRestrictionLayer_1.default; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const autoAnimateFrames: (el: any, action: any, oldCoords: any, newCoords: any) => KeyframeEffect;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.autoAnimateFrames = void 0;
|
|
4
|
-
const auto_animate_1 = require("@formkit/auto-animate");
|
|
5
|
-
const autoAnimateFrames = (el, action, oldCoords, newCoords) => {
|
|
6
|
-
let keyframes;
|
|
7
|
-
// supply a different set of keyframes for each action
|
|
8
|
-
if (action === 'add') {
|
|
9
|
-
keyframes = [
|
|
10
|
-
{ transform: 'scale(0)', opacity: 0 },
|
|
11
|
-
{ transform: 'scale(1.15)', opacity: 1 },
|
|
12
|
-
{ transform: 'scale(1)', opacity: 1 },
|
|
13
|
-
];
|
|
14
|
-
}
|
|
15
|
-
// keyframes can have as many "steps" as you prefer
|
|
16
|
-
// and you can use the 'offset' key to tune the timing
|
|
17
|
-
if (action === 'remove') {
|
|
18
|
-
keyframes = [
|
|
19
|
-
{ transform: 'scale(1)', opacity: 1 },
|
|
20
|
-
{ transform: 'scale(1.15)', opacity: 1 },
|
|
21
|
-
{ transform: 'scale(0.75)', opacity: 0.1 },
|
|
22
|
-
{ transform: 'scale(0.5)', opacity: 0 },
|
|
23
|
-
];
|
|
24
|
-
}
|
|
25
|
-
if (action === 'remain') {
|
|
26
|
-
// for items that remain, calculate the delta
|
|
27
|
-
// from their old position to their new position
|
|
28
|
-
const deltaX = oldCoords.left - newCoords.left;
|
|
29
|
-
const deltaY = oldCoords.top - newCoords.top;
|
|
30
|
-
// use the getTransitionSizes() helper function to
|
|
31
|
-
// get the old and new widths of the elements
|
|
32
|
-
const [widthFrom, widthTo, heightFrom, heightTo] = (0, auto_animate_1.getTransitionSizes)(el, oldCoords, newCoords);
|
|
33
|
-
// set up our steps with our positioning keyframes
|
|
34
|
-
const start = { transform: `translate(${deltaX}px, ${deltaY}px)` };
|
|
35
|
-
const mid = { transform: `translate(${deltaX * -0.15}px, ${deltaY * -0.15}px)` };
|
|
36
|
-
const end = { transform: 'translate(0, 0)' };
|
|
37
|
-
// if the dimensions changed, animate them too.
|
|
38
|
-
if (widthFrom !== widthTo) {
|
|
39
|
-
start.width = `${widthFrom}px`;
|
|
40
|
-
mid.width = `${widthFrom >= widthTo ? widthTo / 1.05 : widthTo * 1.05}px`;
|
|
41
|
-
end.width = `${widthTo}px`;
|
|
42
|
-
}
|
|
43
|
-
if (heightFrom !== heightTo) {
|
|
44
|
-
start.height = `${heightFrom}px`;
|
|
45
|
-
mid.height = `${heightFrom >= heightTo ? heightTo / 1.05 : heightTo * 1.05}px`;
|
|
46
|
-
end.height = `${heightTo}px`;
|
|
47
|
-
}
|
|
48
|
-
keyframes = [start, mid, end];
|
|
49
|
-
}
|
|
50
|
-
// return our KeyframeEffect() and pass
|
|
51
|
-
// it the chosen keyframes.
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
return new KeyframeEffect(el, keyframes, { duration: 600, easing: 'ease-out' });
|
|
54
|
-
};
|
|
55
|
-
exports.autoAnimateFrames = autoAnimateFrames;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function excludeFromList(list: any, itemId: any): any;
|