@geops/rvf-mobility-web-component 0.1.127 → 0.1.129
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/CHANGELOG.md +24 -0
- package/dist/index.js +539 -56
- package/package.json +11 -4
- package/.fixpackrc +0 -21
- package/.github/CODEOWNERS +0 -37
- package/.github/workflows/conventional-pr-title.yml +0 -36
- package/.husky/commit-msg +0 -1
- package/.husky/post-checkout +0 -1
- package/.husky/post-merge +0 -1
- package/.husky/post-rebase +0 -1
- package/.husky/pre-commit +0 -1
- package/.lintstagedrc.js +0 -13
- package/.nvmrc +0 -1
- package/.prettierrc.js +0 -3
- package/.vscode/settings.json +0 -2
- package/Logo.svg +0 -10
- package/__mocks__/dataurl.js +0 -11
- package/__mocks__/mapbox-gl.js +0 -19
- package/commitlint.config.cjs +0 -1
- package/doc/.eslintrc.json +0 -3
- package/doc/.fixpackrc +0 -21
- package/doc/.prettierrc +0 -1
- package/doc/README.md +0 -14
- package/doc/next.config.mjs +0 -8
- package/doc/package.json +0 -44
- package/doc/postcss.config.mjs +0 -8
- package/doc/public/ExportMenu-HGGM7Z53.js +0 -229
- package/doc/public/README.md +0 -1
- package/doc/public/chunk-5TBO732O.js +0 -1
- package/doc/public/chunk-7SZT7G2L.js +0 -3
- package/doc/public/chunk-AOWOBR67.js +0 -37
- package/doc/public/chunk-CZ6RUAVW.js +0 -3
- package/doc/public/chunk-FK6H3RFT.js +0 -1
- package/doc/public/chunk-L5TSFF6Q.js +0 -6
- package/doc/public/chunk-W5KNTEOZ.js +0 -1
- package/doc/public/deflate-7Y7TJOU7.js +0 -1
- package/doc/public/html2canvas-HSPYX66M.js +0 -28
- package/doc/public/index.es-LIBYYWEU.js +0 -23
- package/doc/public/jpeg-IRWWL5ZF.js +0 -1
- package/doc/public/lerc-NVL4MKRG.js +0 -6
- package/doc/public/lzw-EHQHNZB6.js +0 -1
- package/doc/public/packbits-PQSBS4GQ.js +0 -1
- package/doc/public/purify.es-4R37HRTQ.js +0 -7
- package/doc/public/raw-OK63VTT6.js +0 -1
- package/doc/public/webimage-DLGKDXZD.js +0 -1
- package/doc/public/zstd-JFJYRN7P.js +0 -1
- package/doc/src/app/components/GeopsAPIKeyLink.tsx +0 -6
- package/doc/src/app/components/GeopsAPIsLink.tsx +0 -6
- package/doc/src/app/components/GeopsMapsAPILink.tsx +0 -8
- package/doc/src/app/components/GeopsMobility.tsx +0 -23
- package/doc/src/app/components/GeopsMobilityDoc.tsx +0 -39
- package/doc/src/app/components/GeopsMobilitySearch.tsx +0 -22
- package/doc/src/app/components/GeopsMobilitySearchDoc.tsx +0 -33
- package/doc/src/app/components/GeopsRealtimeAPILink.tsx +0 -10
- package/doc/src/app/components/GeopsStopsAPILink.tsx +0 -8
- package/doc/src/app/components/Link.tsx +0 -9
- package/doc/src/app/components/WebComponentDoc.tsx +0 -284
- package/doc/src/app/favicon.ico +0 -0
- package/doc/src/app/geops-mobility/page.tsx +0 -11
- package/doc/src/app/geops-mobility-search/page.tsx +0 -11
- package/doc/src/app/globals.css +0 -58
- package/doc/src/app/hooks/useAttrFromUrlParams.ts +0 -21
- package/doc/src/app/hooks/useIsFullScreen.ts +0 -14
- package/doc/src/app/hooks/usePublicKey.ts +0 -19
- package/doc/src/app/layout.tsx +0 -53
- package/doc/src/app/page.tsx +0 -86
- package/doc/src/geops-ui.ts +0 -3
- package/doc/tsconfig.json +0 -41
- package/docutils.js +0 -417
- package/eslint.config.mjs +0 -34
- package/favicon.ico +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-500.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-500.woff2 +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-600.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-600.woff2 +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-700.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-700.woff2 +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-regular.ttf +0 -0
- package/fonts/source-sans-3/source-sans-3-v15-latin-regular.woff2 +0 -0
- package/global.d.ts +0 -9
- package/iframe.html +0 -233
- package/index.html +0 -147
- package/index.js +0 -4343
- package/input.css +0 -59
- package/jest-setup.js +0 -13
- package/jest.config.js +0 -17
- package/notifications.html +0 -144
- package/scripts/build.mjs +0 -15
- package/scripts/dev.mjs +0 -27
- package/search.html +0 -122
- package/src/BaseLayer/BaseLayer.tsx +0 -61
- package/src/BaseLayer/index.tsx +0 -1
- package/src/Copyright/Copyright.tsx +0 -51
- package/src/Copyright/index.tsx +0 -1
- package/src/DebugDeparture/DebugDeparture.tsx +0 -120
- package/src/DebugDeparture/index.tsx +0 -1
- package/src/DebugStop/DebugStop.tsx +0 -47
- package/src/DebugStop/index.tsx +0 -1
- package/src/Departure/Departure.tsx +0 -57
- package/src/Departure/index.tsx +0 -1
- package/src/EmbedNavigation/DragPanWarning.ts +0 -133
- package/src/EmbedNavigation/EmbedNavigation.tsx +0 -89
- package/src/EmbedNavigation/index.js +0 -1
- package/src/EmbedNavigation/index.tsx +0 -1
- package/src/ExportMenu/ExportMenu.tsx +0 -114
- package/src/ExportMenu/index.tsx +0 -1
- package/src/ExportMenuButton/ExportMenuButton.tsx +0 -33
- package/src/ExportMenuButton/index.tsx +0 -1
- package/src/FeatureDetails/FeatureDetails.tsx +0 -62
- package/src/FeatureDetails/index.ts +0 -1
- package/src/FeaturesInfosListener/FeaturesInfosListener.tsx +0 -142
- package/src/FeaturesInfosListener/index.tsx +0 -1
- package/src/GeolocationButton/GeolocationButton.tsx +0 -78
- package/src/GeolocationButton/index.tsx +0 -1
- package/src/I18n/I18n.tsx +0 -38
- package/src/I18n/index.tsx +0 -1
- package/src/LayerTree/LayerTree.tsx +0 -58
- package/src/LayerTree/TreeItem/TreeItem.tsx +0 -153
- package/src/LayerTree/TreeItem/index.tsx +0 -1
- package/src/LayerTree/index.tsx +0 -1
- package/src/LayerTree/layersTreeContext.ts +0 -4
- package/src/LayerTree/layersTreeReducer.ts +0 -158
- package/src/LayerTreeButton/LayerTreeButton.tsx +0 -33
- package/src/LayerTreeButton/index.tsx +0 -1
- package/src/LayerTreeMenu/LayerTreeMenu.tsx +0 -147
- package/src/LayerTreeMenu/index.tsx +0 -1
- package/src/LayoutState/LayoutState.tsx +0 -380
- package/src/LayoutState/index.tsx +0 -1
- package/src/LinesNetworkPlanDetails/LinesNetworkPlanDetails.tsx +0 -274
- package/src/LinesNetworkPlanDetails/index.tsx +0 -1
- package/src/LinesNetworkPlanLayer/LinesNetworkPlanLayer.tsx +0 -51
- package/src/LinesNetworkPlanLayer/index.tsx +0 -1
- package/src/LinesNetworkPlanLayerHighlight/LinesNetworkPlanLayerHighlight.tsx +0 -59
- package/src/LinesNetworkPlanLayerHighlight/index.tsx +0 -1
- package/src/Map/Map.tsx +0 -166
- package/src/Map/index.tsx +0 -1
- package/src/MapDispatchEvents/MapDispatchEvents.tsx +0 -87
- package/src/MapDispatchEvents/index.tsx +0 -1
- package/src/MapLayout/MapLayout.tsx +0 -172
- package/src/MapLayout/index.tsx +0 -1
- package/src/MapsetLayer/MapsetLayer.tsx +0 -111
- package/src/MapsetLayer/index.tsx +0 -1
- package/src/MobilityMap/MobilityMap.tsx +0 -338
- package/src/MobilityMap/MobilityMapAttributes.test.ts +0 -59
- package/src/MobilityMap/MobilityMapAttributes.ts +0 -381
- package/src/MobilityMap/MobilityMapEvents.ts +0 -53
- package/src/MobilityMap/index.css +0 -0
- package/src/MobilityMap/index.tsx +0 -2
- package/src/MobilityNotifications/MobilityNotifications.tsx +0 -153
- package/src/MobilityNotifications/MobilityNotificationsAttributes.test.ts +0 -35
- package/src/MobilityNotifications/MobilityNotificationsAttributes.ts +0 -53
- package/src/MobilityNotifications/index.ts +0 -2
- package/src/MobilitySearch/MobilitySearch.tsx +0 -35
- package/src/MobilitySearch/MobilitySearchAttributes.test.ts +0 -21
- package/src/MobilitySearch/MobilitySearchAttributes.ts +0 -87
- package/src/MobilitySearch/MobilitySearchEvents.ts +0 -21
- package/src/MobilitySearch/index.ts +0 -2
- package/src/NotificationDetails/NotificationDetails.tsx +0 -309
- package/src/NotificationDetails/index.ts +0 -1
- package/src/NotificationsLayer/NotificationsLayer.tsx +0 -118
- package/src/NotificationsLayer/index.tsx +0 -1
- package/src/Overlay/Overlay.tsx +0 -61
- package/src/Overlay/index.tsx +0 -1
- package/src/OverlayContent/OverlayContent.tsx +0 -88
- package/src/OverlayContent/index.ts +0 -1
- package/src/OverlayDetails/OverlayDetails.tsx +0 -93
- package/src/OverlayDetails/index.ts +0 -1
- package/src/OverlayDetailsFooter/OverlayDetailsFooter.tsx +0 -50
- package/src/OverlayDetailsFooter/index.tsx +0 -1
- package/src/OverlayDetailsHeader/OverlayDetailsHeader.tsx +0 -30
- package/src/OverlayDetailsHeader/index.ts +0 -1
- package/src/OverlayFooter/OverlayFooter.tsx +0 -42
- package/src/OverlayFooter/index.tsx +0 -1
- package/src/OverlayHeader/OverlayHeader.tsx +0 -44
- package/src/OverlayHeader/index.tsx +0 -1
- package/src/Permalink/Permalink.tsx +0 -89
- package/src/Permalink/index.tsx +0 -1
- package/src/PermalinkInput/PermalinkInput.tsx +0 -33
- package/src/PermalinkInput/index.tsx +0 -1
- package/src/RealtimeLayer/RealtimeLayer.tsx +0 -299
- package/src/RealtimeLayer/index.tsx +0 -1
- package/src/RouteDestination/RouteDestination.test.tsx +0 -13
- package/src/RouteDestination/RouteDestination.tsx +0 -15
- package/src/RouteDestination/index.tsx +0 -1
- package/src/RouteFollowingButton/RouteFollowingButton.tsx +0 -30
- package/src/RouteFollowingButton/index.tsx +0 -1
- package/src/RouteIcon/RouteIcon.tsx +0 -99
- package/src/RouteIcon/index.tsx +0 -1
- package/src/RouteIdentifier/RouteIdentifer.tsx +0 -36
- package/src/RouteIdentifier/index.tsx +0 -1
- package/src/RouteInfos/RouteInfos.tsx +0 -26
- package/src/RouteInfos/index.tsx +0 -1
- package/src/RouteSchedule/RouteSchedule.tsx +0 -59
- package/src/RouteSchedule/firstStation.png +0 -0
- package/src/RouteSchedule/index.tsx +0 -1
- package/src/RouteSchedule/lastStation.png +0 -0
- package/src/RouteSchedule/line.png +0 -0
- package/src/RouteSchedule/station.png +0 -0
- package/src/RouteScheduleFooter/RouteScheduleFooter.tsx +0 -46
- package/src/RouteScheduleFooter/index.tsx +0 -1
- package/src/RouteScheduleHeader/RouteScheduleHeader.tsx +0 -23
- package/src/RouteScheduleHeader/index.tsx +0 -1
- package/src/RouteStop/RouteStop.tsx +0 -108
- package/src/RouteStop/index.tsx +0 -1
- package/src/RouteStopDelay/RouteStopDelay.tsx +0 -37
- package/src/RouteStopDelay/index.tsx +0 -1
- package/src/RouteStopName/RouteStopName.tsx +0 -24
- package/src/RouteStopName/index.tsx +0 -1
- package/src/RouteStopPlatform/RouteStopPlatform.tsx +0 -27
- package/src/RouteStopPlatform/index.tsx +0 -1
- package/src/RouteStopProgress/RouteStopProgress.tsx +0 -100
- package/src/RouteStopProgress/index.tsx +0 -1
- package/src/RouteStopServices/RouteStopServices.tsx +0 -26
- package/src/RouteStopServices/index.tsx +0 -1
- package/src/RouteStopStation/RouteStopStation.tsx +0 -38
- package/src/RouteStopStation/index.tsx +0 -1
- package/src/RouteStopTime/RouteStopTime.tsx +0 -35
- package/src/RouteStopTime/index.tsx +0 -1
- package/src/RvfButton/RvfButton.tsx +0 -57
- package/src/RvfButton/index.tsx +0 -1
- package/src/RvfCheckbox/RvfCheckbox.tsx +0 -31
- package/src/RvfCheckbox/index.tsx +0 -1
- package/src/RvfCopyright/RvfCopyright.tsx +0 -36
- package/src/RvfCopyright/index.tsx +0 -1
- package/src/RvfFeatureDetails/RvfFeatureDetails.tsx +0 -46
- package/src/RvfFeatureDetails/RvfLineNetworkDetails/RvfLineNetworkDetails.tsx +0 -292
- package/src/RvfFeatureDetails/RvfLineNetworkDetails/index.js +0 -1
- package/src/RvfFeatureDetails/RvfNotificationDetails/RvfNotificationDetails.tsx +0 -36
- package/src/RvfFeatureDetails/RvfNotificationDetails/index.ts +0 -1
- package/src/RvfFeatureDetails/RvfSellingPointDetails/RvfSellingPointDetails.tsx +0 -50
- package/src/RvfFeatureDetails/RvfSellingPointDetails/index.js +0 -1
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/FloatingVehiclesDetails.tsx +0 -74
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/index.tsx +0 -1
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/RvfSharedMobilityDetails.tsx +0 -134
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/StationDetails.tsx +0 -84
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/index.tsx +0 -1
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/index.tsx +0 -1
- package/src/RvfFeatureDetails/index.tsx +0 -1
- package/src/RvfIconButton/RvfIconButton.tsx +0 -49
- package/src/RvfIconButton/index.tsx +0 -1
- package/src/RvfInputCopy/RvfInputCopy.tsx +0 -67
- package/src/RvfInputCopy/index.tsx +0 -1
- package/src/RvfLink/RvfLink.tsx +0 -54
- package/src/RvfLink/index.tsx +0 -1
- package/src/RvfMainLinkButton/RvfMainLinkButton.tsx +0 -62
- package/src/RvfMainLinkButton/index.tsx +0 -1
- package/src/RvfMapLayout/RvfMapLayout.tsx +0 -202
- package/src/RvfMapLayout/index.tsx +0 -1
- package/src/RvfMobilityMap/RvfMobilityMap.tsx +0 -58
- package/src/RvfMobilityMap/index.css +0 -13
- package/src/RvfMobilityMap/index.tsx +0 -1
- package/src/RvfModal/RvfModal.tsx +0 -53
- package/src/RvfModal/index.tsx +0 -1
- package/src/RvfOpenStrikeNotification/RvfOpenStrikeNotification.tsx +0 -120
- package/src/RvfOpenStrikeNotification/index.tsx +0 -1
- package/src/RvfOverlayHeader/RvfOverlayHeader.tsx +0 -43
- package/src/RvfOverlayHeader/index.tsx +0 -1
- package/src/RvfPoisLayer/RvfPoisLayer.tsx +0 -48
- package/src/RvfPoisLayer/index.tsx +0 -1
- package/src/RvfRadioButton/RvfRadioButton.tsx +0 -16
- package/src/RvfRadioButton/index.tsx +0 -1
- package/src/RvfRealtimeLayer/RvfRealtimeLayer.tsx +0 -77
- package/src/RvfRealtimeLayer/index.tsx +0 -1
- package/src/RvfRouteIcon/RvfRouteIcon.tsx +0 -10
- package/src/RvfRouteIcon/index.tsx +0 -1
- package/src/RvfSearch/RvfSearch.tsx +0 -34
- package/src/RvfSearch/index.tsx +0 -1
- package/src/RvfSelect/RvfSelect.tsx +0 -24
- package/src/RvfSelect/index.tsx +0 -1
- package/src/RvfSelectedFeatureHighlightLayer/RvfSelectedFeatureHighlightLayer.tsx +0 -101
- package/src/RvfSelectedFeatureHighlightLayer/index.tsx +0 -1
- package/src/RvfSellingPointsLayer/RvfSellingPointsLayer.tsx +0 -67
- package/src/RvfSellingPointsLayer/index.tsx +0 -1
- package/src/RvfSharedMobilityLayerGroup/RvfSharedMobilityLayerGroup.tsx +0 -479
- package/src/RvfSharedMobilityLayerGroup/index.tsx +0 -1
- package/src/RvfStationsLayer/RvfStationsLayer.tsx +0 -19
- package/src/RvfStationsLayer/index.tsx +0 -1
- package/src/RvfTarifZonenLayer/RvfTarifZonenLayer.tsx +0 -48
- package/src/RvfTarifZonenLayer/index.tsx +0 -1
- package/src/ScaleLine/ScaleLine.tsx +0 -52
- package/src/ScaleLine/index.css +0 -6
- package/src/ScaleLine/index.tsx +0 -1
- package/src/ScrollableHandler/ScrollableHandler.tsx +0 -66
- package/src/ScrollableHandler/index.tsx +0 -1
- package/src/Search/Search.tsx +0 -50
- package/src/Search/SearchBase.tsx +0 -187
- package/src/Search/SearchHeadless.tsx +0 -79
- package/src/Search/index.tsx +0 -3
- package/src/SearchButton/SearchButton.tsx +0 -33
- package/src/SearchButton/index.tsx +0 -1
- package/src/SearchLinesResult/SearchLinesResult.tsx +0 -43
- package/src/SearchLinesResult/index.tsx +0 -1
- package/src/SearchLinesResults/SearchLinesResults.tsx +0 -106
- package/src/SearchLinesResults/index.tsx +0 -1
- package/src/SearchLnpStopsResult/SearchLnpStopsResult.tsx +0 -42
- package/src/SearchLnpStopsResult/index.tsx +0 -1
- package/src/SearchLnpStopsResults/SearchLnpStopsResults.tsx +0 -106
- package/src/SearchLnpStopsResults/index.tsx +0 -1
- package/src/SearchResult/SearchResult.tsx +0 -25
- package/src/SearchResult/index.tsx +0 -1
- package/src/SearchResults/SearchResults.tsx +0 -81
- package/src/SearchResults/index.tsx +0 -1
- package/src/SearchResultsHeader/SearchResultsHeader.tsx +0 -36
- package/src/SearchResultsHeader/index.tsx +0 -1
- package/src/SearchStopsResult/SearchStopsResult.tsx +0 -43
- package/src/SearchStopsResult/index.tsx +0 -1
- package/src/SearchStopsResults/SearchStopsResults.tsx +0 -101
- package/src/SearchStopsResults/index.tsx +0 -1
- package/src/SearchTrainsResult/SearchTrainsResult.tsx +0 -42
- package/src/SearchTrainsResult/index.tsx +0 -1
- package/src/SearchTrainsResults/SearchTrainsResults.tsx +0 -106
- package/src/SearchTrainsResults/index.tsx +0 -1
- package/src/ShadowOverflow/ShadowOverflow.tsx +0 -28
- package/src/ShadowOverflow/index.tsx +0 -1
- package/src/ShareMenu/ShareMenu.tsx +0 -43
- package/src/ShareMenu/index.tsx +0 -1
- package/src/ShareMenuButton/ShareMenuButton.tsx +0 -34
- package/src/ShareMenuButton/index.tsx +0 -1
- package/src/SingleClickListener/SingleClickListener.tsx +0 -164
- package/src/SingleClickListener/index.tsx +0 -1
- package/src/SituationDetails/SituationDetails.tsx +0 -370
- package/src/SituationDetails/index.ts +0 -1
- package/src/Station/Station.tsx +0 -50
- package/src/Station/index.tsx +0 -1
- package/src/StationHeader/StationHeader.tsx +0 -32
- package/src/StationHeader/index.tsx +0 -1
- package/src/StationName/StationName.tsx +0 -21
- package/src/StationName/index.tsx +0 -1
- package/src/StationServices/StationServices.tsx +0 -80
- package/src/StationServices/index.tsx +0 -1
- package/src/StationsLayer/StationsLayer.tsx +0 -53
- package/src/StationsLayer/index.tsx +0 -1
- package/src/StopsSearch/StopsSearch.tsx +0 -344
- package/src/StopsSearch/index.tsx +0 -1
- package/src/WindowMessageListener/WindowMessageListener.tsx +0 -74
- package/src/WindowMessageListener/index.tsx +0 -1
- package/src/ZoomButtons/ZoomButtons.tsx +0 -80
- package/src/ZoomButtons/index.tsx +0 -1
- package/src/icons/Airport/Airport.tsx +0 -17
- package/src/icons/Airport/airport-14-svgrepo-com.svg +0 -1
- package/src/icons/Airport/index.tsx +0 -1
- package/src/icons/ArrowDown/ArrowDown.tsx +0 -22
- package/src/icons/ArrowDown/down-open.svg +0 -1
- package/src/icons/ArrowDown/index.tsx +0 -1
- package/src/icons/ArrowRight/ArrowRight.tsx +0 -19
- package/src/icons/ArrowRight/arrow-right.svg +0 -1
- package/src/icons/ArrowRight/index.tsx +0 -1
- package/src/icons/ArrowUp/ArrowUp.tsx +0 -22
- package/src/icons/ArrowUp/index.tsx +0 -1
- package/src/icons/ArrowUp/up-open.svg +0 -1
- package/src/icons/ArrowUpRight/ArrowUpRight.tsx +0 -35
- package/src/icons/ArrowUpRight/index.tsx +0 -1
- package/src/icons/ArrowUpRight/up-open.svg +0 -1
- package/src/icons/Automat/Automat.tsx +0 -8
- package/src/icons/Automat/index.tsx +0 -1
- package/src/icons/Automat/rvf_automat.svg +0 -1
- package/src/icons/BarAndRestaurants/BarAndRestaurants.tsx +0 -17
- package/src/icons/BarAndRestaurants/food-restaurant-svgrepo-com.svg +0 -1
- package/src/icons/BarAndRestaurants/index.tsx +0 -1
- package/src/icons/Bathroom/Bathroom.tsx +0 -59
- package/src/icons/Bathroom/bathroom-restroom-svgrepo-com.svg +0 -1
- package/src/icons/Bathroom/index.tsx +0 -1
- package/src/icons/Bike/Bike.tsx +0 -8
- package/src/icons/Bike/index.tsx +0 -1
- package/src/icons/Bike/rvf_shared_bike.svg +0 -1
- package/src/icons/BikeStorage/BikeStorage.tsx +0 -17
- package/src/icons/BikeStorage/index.tsx +0 -1
- package/src/icons/BikeStorage/parking-bicycle-14-svgrepo-com.svg +0 -1
- package/src/icons/Cancel/Cancel.tsx +0 -21
- package/src/icons/Cancel/cancel.svg +0 -1
- package/src/icons/Cancel/index.tsx +0 -1
- package/src/icons/Car/Car.tsx +0 -8
- package/src/icons/Car/index.tsx +0 -1
- package/src/icons/Car/rvf_shared_car.svg +0 -1
- package/src/icons/CargoBike/CargoBike.tsx +0 -8
- package/src/icons/CargoBike/index.tsx +0 -1
- package/src/icons/CargoBike/rvf_shared_cargo_bike.svg +0 -1
- package/src/icons/Copy/Copy.tsx +0 -25
- package/src/icons/Copy/index.tsx +0 -1
- package/src/icons/Doc/Doc.tsx +0 -19
- package/src/icons/Doc/doc.svg +0 -1
- package/src/icons/Doc/index.tsx +0 -1
- package/src/icons/DownOpen/DownOpen.tsx +0 -24
- package/src/icons/DownOpen/down-open.svg +0 -1
- package/src/icons/DownOpen/index.tsx +0 -1
- package/src/icons/Download/Download.tsx +0 -20
- package/src/icons/Download/download.svg +0 -1
- package/src/icons/Download/index.tsx +0 -1
- package/src/icons/Ebike/Ebike.tsx +0 -8
- package/src/icons/Ebike/index.tsx +0 -1
- package/src/icons/Ebike/rvf_shared_e-bike.svg +0 -1
- package/src/icons/Elevator/Elevator.tsx +0 -16
- package/src/icons/Elevator/elevator-svgrepo-com.svg +0 -1
- package/src/icons/Elevator/index.tsx +0 -1
- package/src/icons/Email/Email.tsx +0 -19
- package/src/icons/Email/email.svg +0 -1
- package/src/icons/Email/index.tsx +0 -1
- package/src/icons/FilePdf/FilePdf.tsx +0 -19
- package/src/icons/FilePdf/file-pdf.svg +0 -1
- package/src/icons/FilePdf/index.tsx +0 -1
- package/src/icons/Geolocation/Geolocation.tsx +0 -19
- package/src/icons/Geolocation/index.tsx +0 -1
- package/src/icons/Geolocation/location.svg +0 -1
- package/src/icons/Image/Image.tsx +0 -24
- package/src/icons/Image/index.tsx +0 -1
- package/src/icons/InPerson/InPerson.tsx +0 -8
- package/src/icons/InPerson/index.tsx +0 -1
- package/src/icons/InPerson/rvf_persoenlich.svg +0 -1
- package/src/icons/Menu/Menu.tsx +0 -32
- package/src/icons/Menu/index.tsx +0 -1
- package/src/icons/Menu/menu.svg +0 -1
- package/src/icons/Minus/Minus.tsx +0 -19
- package/src/icons/Minus/index.tsx +0 -1
- package/src/icons/Minus/minus-grey.svg +0 -1
- package/src/icons/Minus/minus.svg +0 -1
- package/src/icons/NoRealtime/NoRealtime.tsx +0 -44
- package/src/icons/NoRealtime/index.tsx +0 -1
- package/src/icons/NoRealtime/norealtime.svg +0 -1
- package/src/icons/Ok/ok-grey.svg +0 -1
- package/src/icons/Ok/ok.svg +0 -1
- package/src/icons/Plus/Plus.tsx +0 -19
- package/src/icons/Plus/index.tsx +0 -1
- package/src/icons/Plus/plus.svg +0 -1
- package/src/icons/Police/Police.tsx +0 -20
- package/src/icons/Police/index.tsx +0 -1
- package/src/icons/Police/polizia.png +0 -0
- package/src/icons/README.md +0 -52
- package/src/icons/Ride/Ride.tsx +0 -8
- package/src/icons/Ride/index.tsx +0 -1
- package/src/icons/Ride/rvf_shared_ride.svg +0 -1
- package/src/icons/Scooter/Scooter.tsx +0 -8
- package/src/icons/Scooter/index.tsx +0 -1
- package/src/icons/Scooter/rvf_shared_scooter.svg +0 -1
- package/src/icons/Search/Search.tsx +0 -38
- package/src/icons/Search/index.tsx +0 -1
- package/src/icons/Search/search.svg +0 -1
- package/src/icons/Share/Share.tsx +0 -24
- package/src/icons/Share/index.tsx +0 -1
- package/src/icons/Stack/Stack.tsx +0 -24
- package/src/icons/Stack/index.tsx +0 -1
- package/src/icons/TouchFingers/TouchFingers.tsx +0 -20
- package/src/icons/TouchFingers/index.tsx +0 -1
- package/src/icons/Tracking/Tracking.tsx +0 -29
- package/src/icons/Tracking/airport-14-svgrepo-com.svg +0 -1
- package/src/icons/Tracking/index.tsx +0 -1
- package/src/icons/Video/Video.tsx +0 -8
- package/src/icons/Video/index.tsx +0 -1
- package/src/icons/Video/rvf_video.svg +0 -1
- package/src/icons/WaitingAreas/WaitingAreas.tsx +0 -16
- package/src/icons/WaitingAreas/highway-rest-area-svgrepo-com.svg +0 -1
- package/src/icons/WaitingAreas/index.tsx +0 -1
- package/src/icons/WaitingAreas/wheelchair-svgrepo-com.svg +0 -1
- package/src/icons/Warning/Warning.tsx +0 -56
- package/src/icons/Warning/exported_features_20251029101203.kml +0 -20
- package/src/icons/Warning/index.tsx +0 -1
- package/src/icons/Warning/info-achtung-kreisrot-rot.svg +0 -1
- package/src/icons/WheelChair/WheelChair.tsx +0 -16
- package/src/icons/WheelChair/disabili.png +0 -0
- package/src/icons/WheelChair/index.tsx +0 -1
- package/src/icons/WheelChair/wheelchair-svgrepo-com.svg +0 -1
- package/src/icons/disruption-type-banner.xcf +0 -0
- package/src/icons/rvf_shared_ride_2.svg +0 -1
- package/src/icons/sbb_add_stop.png +0 -0
- package/src/icons/sbb_add_stop.svg +0 -1
- package/src/icons/sbb_alternative.png +0 -0
- package/src/icons/sbb_alternative.svg +0 -1
- package/src/icons/sbb_cancellation.png +0 -0
- package/src/icons/sbb_cancellation.svg +0 -1
- package/src/icons/sbb_construction.png +0 -0
- package/src/icons/sbb_construction.svg +0 -1
- package/src/icons/sbb_construction_banner.png +0 -0
- package/src/icons/sbb_delay.png +0 -0
- package/src/icons/sbb_delay.svg +0 -1
- package/src/icons/sbb_disruption.png +0 -0
- package/src/icons/sbb_disruption.svg +0 -1
- package/src/icons/sbb_disruption_banner.png +0 -0
- package/src/icons/sbb_info.png +0 -0
- package/src/icons/sbb_info.svg +0 -1
- package/src/icons/sbb_missed_connection.png +0 -0
- package/src/icons/sbb_missed_connection.svg +0 -1
- package/src/icons/sbb_missed_connection_banner.png +0 -0
- package/src/icons/sbb_platform_change.png +0 -0
- package/src/icons/sbb_platform_change.svg +0 -1
- package/src/icons/sbb_replacementbus.png +0 -0
- package/src/icons/sbb_replacementbus.svg +0 -1
- package/src/icons/sbb_replacementbus_banner.png +0 -0
- package/src/icons/sbb_reroute.png +0 -0
- package/src/icons/sbb_reroute.svg +0 -1
- package/src/icons/warning-banner.png +0 -0
- package/src/icons/warning-banner.xcf +0 -0
- package/src/icons/warning.png +0 -0
- package/src/index.tsx +0 -44
- package/src/indexDoc.ts +0 -35
- package/src/logos/00_RegioRad_Stuttgart.svg +0 -1
- package/src/logos/01_Call_a_bike.svg +0 -1
- package/src/logos/03_KVV_nextbike.svg +0 -1
- package/src/logos/05_VrnNextbike.svg +0 -1
- package/src/logos/2em_carsharing.svg +0 -1
- package/src/logos/CarSharing-Renningen.png +0 -0
- package/src/logos/aubonne-basel-pickebike.svg +0 -1
- package/src/logos/br_logo.svg +0 -1
- package/src/logos/callabike_logo.png +0 -0
- package/src/logos/carsharing_stadtmobil_karlsruhe_rhein_neckar.svg +0 -1
- package/src/logos/compte-mobilite.png +0 -0
- package/src/logos/deer.svg +0 -1
- package/src/logos/donkey_republic.png +0 -0
- package/src/logos/edrive_carsharing.svg +0 -1
- package/src/logos/flinkster_logo.png +0 -0
- package/src/logos/gruene-flotte-logo-1.svg +0 -1
- package/src/logos/gruene_flotte_logo.png +0 -0
- package/src/logos/lasten_velo_freiburg.png +0 -0
- package/src/logos/lie_mobil.svg +0 -1
- package/src/logos/logo-einfach-mobil-ortenau.png +0 -0
- package/src/logos/logo-red.svg +0 -1
- package/src/logos/logo_frelo_web_rgb.png +0 -0
- package/src/logos/logo_teilauto.png +0 -0
- package/src/logos/mein_konrad.svg +0 -1
- package/src/logos/mit_fahr_punkt.png +0 -0
- package/src/logos/natur_energie_logo.png +0 -0
- package/src/logos/natur_energie_logo.xcf +0 -0
- package/src/logos/publibike_logo.svg +0 -1
- package/src/logos/share-birrer.svg +0 -1
- package/src/logos/stadtmobil_suedbaden.svg +0 -1
- package/src/logos/stadtwerke_tauberfranken.png +0 -0
- package/src/logos/teilauto_biberach.png +0 -0
- package/src/logos/velospot_fribourg.png +0 -0
- package/src/logos/yoio_logo.png +0 -0
- package/src/logos/zeag_carsharing.png +0 -0
- package/src/logos/zeo_carsharing.png +0 -0
- package/src/logos/zeus_logo.png +0 -0
- package/src/logos/zeus_logo.xcf +0 -0
- package/src/ui/Button/Button.tsx +0 -64
- package/src/ui/Button/index.tsx +0 -1
- package/src/ui/Checkbox/Checkbox.tsx +0 -32
- package/src/ui/Checkbox/index.tsx +0 -1
- package/src/ui/IconButton/IconButton.tsx +0 -64
- package/src/ui/IconButton/index.tsx +0 -1
- package/src/ui/Input/Input.tsx +0 -24
- package/src/ui/Input/index.tsx +0 -1
- package/src/ui/InputCopy/InputCopy.tsx +0 -97
- package/src/ui/InputCopy/index.tsx +0 -1
- package/src/ui/InputSearch/InputSearch.tsx +0 -106
- package/src/ui/InputSearch/index.tsx +0 -1
- package/src/ui/Link/Link.tsx +0 -49
- package/src/ui/Link/index.tsx +0 -1
- package/src/ui/Select/Select.tsx +0 -24
- package/src/ui/Select/index.tsx +0 -1
- package/src/utils/MobilityEvent.ts +0 -22
- package/src/utils/applyInitialLayerVisibility.ts +0 -48
- package/src/utils/centerOnVehicle.ts +0 -58
- package/src/utils/constants.ts +0 -242
- package/src/utils/exportPdf.ts +0 -671
- package/src/utils/fullTrajectoryStyle.ts +0 -53
- package/src/utils/getAllLayers.ts +0 -26
- package/src/utils/getBgColor.ts +0 -20
- package/src/utils/getDelayColor.test.ts +0 -23
- package/src/utils/getDelayColor.ts +0 -23
- package/src/utils/getDelayColorForVehicle.test.ts +0 -47
- package/src/utils/getDelayColorForVehicle.ts +0 -27
- package/src/utils/getDelayString.test.ts +0 -25
- package/src/utils/getDelayString.ts +0 -28
- package/src/utils/getDelayTextForVehicle.test.ts +0 -32
- package/src/utils/getDelayTextForVehicle.ts +0 -25
- package/src/utils/getFullTrajectoryAndFit.ts +0 -41
- package/src/utils/getHoursAndMinutes.test.ts +0 -15
- package/src/utils/getHoursAndMinutes.ts +0 -22
- package/src/utils/getLayersAsFlatArray.ts +0 -22
- package/src/utils/getLinkByDevice.ts +0 -23
- package/src/utils/getMainColorForVehicle.test.ts +0 -25
- package/src/utils/getMainColorForVehicle.ts +0 -54
- package/src/utils/getPermalinkParameters.ts +0 -35
- package/src/utils/getRadius.ts +0 -46
- package/src/utils/getStopStatus.test.ts +0 -105
- package/src/utils/getStopStatus.ts +0 -171
- package/src/utils/getTextColor.ts +0 -10
- package/src/utils/getTextColorForVehicle.ts +0 -31
- package/src/utils/getTextFontForVehicle.test.ts +0 -7
- package/src/utils/getTextFontForVehicle.tsx +0 -17
- package/src/utils/getTextForVehicle.test.ts +0 -17
- package/src/utils/getTextForVehicle.ts +0 -25
- package/src/utils/getUrlFromTemplate.test.ts +0 -23
- package/src/utils/getUrlFromTemplate.ts +0 -47
- package/src/utils/highlightLinesNetworkPlan.ts +0 -25
- package/src/utils/hooks/useDebug.tsx +0 -11
- package/src/utils/hooks/useDeparture.tsx +0 -24
- package/src/utils/hooks/useFit.tsx +0 -57
- package/src/utils/hooks/useFitOnFeatures.tsx +0 -77
- package/src/utils/hooks/useI18n.tsx +0 -23
- package/src/utils/hooks/useInitialLayersVisiblity.tsx +0 -58
- package/src/utils/hooks/useInitialPermalink.tsx +0 -93
- package/src/utils/hooks/useLayerConfig.tsx +0 -17
- package/src/utils/hooks/useLayersConfig.tsx +0 -49
- package/src/utils/hooks/useLnp.tsx +0 -146
- package/src/utils/hooks/useMapContext.tsx +0 -166
- package/src/utils/hooks/useMocoSituation.tsx +0 -62
- package/src/utils/hooks/useParams.ts +0 -5
- package/src/utils/hooks/usePermalink.tsx +0 -25
- package/src/utils/hooks/useRealtimeDepartures.tsx +0 -45
- package/src/utils/hooks/useRealtimeRenderedTrajectory.tsx +0 -42
- package/src/utils/hooks/useRealtimeStation.tsx +0 -39
- package/src/utils/hooks/useRealtimeStopSequences.tsx +0 -43
- package/src/utils/hooks/useRealtimeTrainsByRouteIdentifier.tsx +0 -72
- package/src/utils/hooks/useRouteStop.tsx +0 -40
- package/src/utils/hooks/useRvfContext.tsx +0 -46
- package/src/utils/hooks/useScrollTo.tsx +0 -36
- package/src/utils/hooks/useSearchLines.tsx +0 -34
- package/src/utils/hooks/useSearchLnpStops.tsx +0 -38
- package/src/utils/hooks/useSearchStops.tsx +0 -85
- package/src/utils/hooks/useSearchTrains.tsx +0 -83
- package/src/utils/hooks/useZoom.tsx +0 -44
- package/src/utils/mergePublications.test.ts +0 -91
- package/src/utils/mergePublications.ts +0 -52
- package/src/utils/realtimeRVFStyle.ts +0 -523
- package/src/utils/sharingGraphqlUtils.ts +0 -320
- package/src/utils/sharingStylesUtils.ts +0 -222
- package/src/utils/sharingWFSUtils.ts +0 -116
- package/src/utils/translations.ts +0 -252
- package/src/utils/translationsReasons.ts +0 -716
- package/tailwind.config.mjs +0 -95
- package/testNotification.json +0 -115
- package/tsconfig.json +0 -12
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { memo } from "preact/compat";
|
|
2
|
-
|
|
3
|
-
import Airport from "../icons/Airport";
|
|
4
|
-
import BarAndRestaurants from "../icons/BarAndRestaurants";
|
|
5
|
-
import Bathroom from "../icons/Bathroom";
|
|
6
|
-
import BikeStorage from "../icons/BikeStorage";
|
|
7
|
-
import Elevator from "../icons/Elevator";
|
|
8
|
-
import Police from "../icons/Police";
|
|
9
|
-
import WaitingAreas from "../icons/WaitingAreas";
|
|
10
|
-
import WheelChair from "../icons/WheelChair";
|
|
11
|
-
|
|
12
|
-
import type { RealtimeStation } from "mobility-toolbox-js/types";
|
|
13
|
-
import type { JSX, PreactDOMAttributes } from "preact";
|
|
14
|
-
|
|
15
|
-
export type StationServicesProps = {
|
|
16
|
-
accessibility?: boolean;
|
|
17
|
-
airport?: boolean;
|
|
18
|
-
barAndRestaurants?: boolean;
|
|
19
|
-
bathroom?: boolean;
|
|
20
|
-
bikeStorage?: boolean;
|
|
21
|
-
elevator?: boolean;
|
|
22
|
-
iconProps?: JSX.HTMLAttributes<SVGElement> & PreactDOMAttributes;
|
|
23
|
-
police?: boolean;
|
|
24
|
-
station: RealtimeStation;
|
|
25
|
-
waitingAreas?: boolean;
|
|
26
|
-
} & JSX.HTMLAttributes<HTMLDivElement> &
|
|
27
|
-
PreactDOMAttributes;
|
|
28
|
-
|
|
29
|
-
function StationServices({
|
|
30
|
-
accessibility = false,
|
|
31
|
-
airport = false,
|
|
32
|
-
barAndRestaurants = false,
|
|
33
|
-
bathroom = false,
|
|
34
|
-
bikeStorage = false,
|
|
35
|
-
elevator = false,
|
|
36
|
-
iconProps = {},
|
|
37
|
-
police = false,
|
|
38
|
-
station,
|
|
39
|
-
waitingAreas = false,
|
|
40
|
-
...props
|
|
41
|
-
}: StationServicesProps) {
|
|
42
|
-
if (!station) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const {
|
|
47
|
-
hasAccessibility,
|
|
48
|
-
hasAirport,
|
|
49
|
-
// @ts-expect-error bad type definition
|
|
50
|
-
hasBarAndRestaurants,
|
|
51
|
-
// @ts-expect-error bad type definition
|
|
52
|
-
hasBathroom,
|
|
53
|
-
// @ts-expect-error bad type definition
|
|
54
|
-
hasBikeStorage,
|
|
55
|
-
hasElevator,
|
|
56
|
-
// @ts-expect-error bad type definition
|
|
57
|
-
hasPolice,
|
|
58
|
-
// @ts-expect-error bad type definition
|
|
59
|
-
hasWaitingAreas,
|
|
60
|
-
// hasZOB,
|
|
61
|
-
// isRailReplacement,
|
|
62
|
-
} = station.properties;
|
|
63
|
-
|
|
64
|
-
return (
|
|
65
|
-
<div {...props}>
|
|
66
|
-
{accessibility && hasAccessibility && <WheelChair {...iconProps} />}
|
|
67
|
-
{airport && hasAirport && <Airport {...iconProps} />}
|
|
68
|
-
{barAndRestaurants && hasBarAndRestaurants && (
|
|
69
|
-
<BarAndRestaurants {...iconProps} />
|
|
70
|
-
)}
|
|
71
|
-
{bathroom && hasBathroom && <Bathroom {...iconProps} />}
|
|
72
|
-
{bikeStorage && hasBikeStorage && <BikeStorage {...iconProps} />}
|
|
73
|
-
{elevator && hasElevator && <Elevator {...iconProps} />}
|
|
74
|
-
{police && hasPolice && <Police {...iconProps} />}
|
|
75
|
-
{waitingAreas && hasWaitingAreas && <WaitingAreas {...iconProps} />}
|
|
76
|
-
</div>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export default memo(StationServices);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./StationServices";
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { MaplibreStyleLayer } from "mobility-toolbox-js/ol";
|
|
2
|
-
import { memo } from "preact/compat";
|
|
3
|
-
import { useEffect, useMemo } from "preact/hooks";
|
|
4
|
-
|
|
5
|
-
import { LAYER_NAME_STATIONS } from "../utils/constants";
|
|
6
|
-
import useMapContext from "../utils/hooks/useMapContext";
|
|
7
|
-
|
|
8
|
-
import type { MaplibreStyleLayerOptions } from "mobility-toolbox-js/ol";
|
|
9
|
-
|
|
10
|
-
function StationsLayer(props: Partial<MaplibreStyleLayerOptions>) {
|
|
11
|
-
const { baseLayer, map, setStationsLayer } = useMapContext();
|
|
12
|
-
|
|
13
|
-
const layer = useMemo(() => {
|
|
14
|
-
if (!baseLayer) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
return new MaplibreStyleLayer({
|
|
18
|
-
layersFilter: ({ metadata }) => {
|
|
19
|
-
return (
|
|
20
|
-
metadata?.["tralis.variable"] === "station" ||
|
|
21
|
-
metadata?.["general.filter"] === "stations" ||
|
|
22
|
-
metadata?.["geops.filter"] === "netzplan_stops"
|
|
23
|
-
);
|
|
24
|
-
},
|
|
25
|
-
maplibreLayer: baseLayer,
|
|
26
|
-
name: LAYER_NAME_STATIONS,
|
|
27
|
-
// queryRenderedLayersFilter: ({ metadata }) => {
|
|
28
|
-
// return (
|
|
29
|
-
// metadata?.["tralis.variable"] === "station" ||
|
|
30
|
-
// metadata?.["general.filter"] === "stations" ||
|
|
31
|
-
// metadata?.["geops.filter"] === "netzplan_stops" // we include lnp stations only on click
|
|
32
|
-
// );
|
|
33
|
-
// },
|
|
34
|
-
...(props || {}),
|
|
35
|
-
});
|
|
36
|
-
}, [baseLayer, props]);
|
|
37
|
-
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (!map || !layer) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
map.addLayer(layer);
|
|
43
|
-
setStationsLayer(layer);
|
|
44
|
-
|
|
45
|
-
return () => {
|
|
46
|
-
map.removeLayer(layer);
|
|
47
|
-
};
|
|
48
|
-
}, [map, setStationsLayer, layer]);
|
|
49
|
-
|
|
50
|
-
return null; // <RegisterForSelectFeaturesOnClick />;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export default memo(StationsLayer);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "../RvfStationsLayer";
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
import debounce from "lodash.debounce";
|
|
2
|
-
import { StopsAPI } from "mobility-toolbox-js/api";
|
|
3
|
-
import { memo } from "preact/compat";
|
|
4
|
-
import {
|
|
5
|
-
useCallback,
|
|
6
|
-
useEffect,
|
|
7
|
-
useMemo,
|
|
8
|
-
useRef,
|
|
9
|
-
useState,
|
|
10
|
-
} from "preact/hooks";
|
|
11
|
-
import { twMerge } from "tailwind-merge";
|
|
12
|
-
|
|
13
|
-
import Cancel from "../icons/Cancel";
|
|
14
|
-
import Search from "../icons/Search";
|
|
15
|
-
import IconButton from "../ui/IconButton";
|
|
16
|
-
import Input from "../ui/Input";
|
|
17
|
-
import useI18n from "../utils/hooks/useI18n";
|
|
18
|
-
import MobilityEvent from "../utils/MobilityEvent";
|
|
19
|
-
|
|
20
|
-
import type { StopsParameters, StopsResponse } from "mobility-toolbox-js/types";
|
|
21
|
-
import type {
|
|
22
|
-
HTMLAttributes,
|
|
23
|
-
PreactDOMAttributes,
|
|
24
|
-
TargetedKeyboardEvent,
|
|
25
|
-
} from "preact";
|
|
26
|
-
|
|
27
|
-
import type { StopsFeature } from "../utils/hooks/useSearchStops";
|
|
28
|
-
|
|
29
|
-
export type StopsSearchProps = {
|
|
30
|
-
apikey: string;
|
|
31
|
-
bbox?: string;
|
|
32
|
-
cancelButtonClassName?: string;
|
|
33
|
-
className?: string;
|
|
34
|
-
countrycode?: string;
|
|
35
|
-
event?: string;
|
|
36
|
-
field?: string;
|
|
37
|
-
inputClassName?: string;
|
|
38
|
-
inputContainerClassName?: string;
|
|
39
|
-
lang?: string;
|
|
40
|
-
limit?: number;
|
|
41
|
-
mots?: string;
|
|
42
|
-
onselect?: (arg: StopsFeature) => void;
|
|
43
|
-
params?: string; // JSONstring
|
|
44
|
-
prefagencies?: string;
|
|
45
|
-
reflocation?: string;
|
|
46
|
-
resultClassName?: string;
|
|
47
|
-
resultsClassName?: string;
|
|
48
|
-
resultsContainerClassName?: string;
|
|
49
|
-
searchIconContainerClassName?: string;
|
|
50
|
-
url: string;
|
|
51
|
-
withResultsClassName?: string;
|
|
52
|
-
} & HTMLAttributes<HTMLDivElement> &
|
|
53
|
-
PreactDOMAttributes;
|
|
54
|
-
|
|
55
|
-
const getQueryForSelectedStation = (selectedStation?: StopsFeature): string => {
|
|
56
|
-
return selectedStation?.properties?.name || "";
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Input field to search for stations
|
|
61
|
-
*
|
|
62
|
-
* @fires stationselect
|
|
63
|
-
*/
|
|
64
|
-
function StopsSearch({
|
|
65
|
-
apikey,
|
|
66
|
-
bbox,
|
|
67
|
-
cancelButtonClassName,
|
|
68
|
-
className,
|
|
69
|
-
countrycode,
|
|
70
|
-
event,
|
|
71
|
-
field,
|
|
72
|
-
inputClassName,
|
|
73
|
-
inputContainerClassName,
|
|
74
|
-
lang,
|
|
75
|
-
limit,
|
|
76
|
-
mots,
|
|
77
|
-
onselect,
|
|
78
|
-
params,
|
|
79
|
-
prefagencies,
|
|
80
|
-
reflocation,
|
|
81
|
-
resultClassName,
|
|
82
|
-
resultsClassName,
|
|
83
|
-
resultsContainerClassName,
|
|
84
|
-
searchIconContainerClassName,
|
|
85
|
-
url = "https://api.geops.io/stops/v1/",
|
|
86
|
-
withResultsClassName,
|
|
87
|
-
}: StopsSearchProps) {
|
|
88
|
-
const { t } = useI18n();
|
|
89
|
-
const [query, setQuery] = useState("");
|
|
90
|
-
const [selectedStation, setSelectedStation] = useState<StopsFeature>();
|
|
91
|
-
const [results, setResults] = useState<StopsFeature[] | undefined>();
|
|
92
|
-
const myRef = useRef<HTMLDivElement>();
|
|
93
|
-
|
|
94
|
-
useEffect(() => {
|
|
95
|
-
myRef.current?.dispatchEvent(
|
|
96
|
-
new MobilityEvent<StopsSearchProps>("mwc:attribute", {
|
|
97
|
-
apikey,
|
|
98
|
-
bbox,
|
|
99
|
-
countrycode,
|
|
100
|
-
event,
|
|
101
|
-
field,
|
|
102
|
-
lang,
|
|
103
|
-
limit,
|
|
104
|
-
mots,
|
|
105
|
-
onselect,
|
|
106
|
-
params,
|
|
107
|
-
prefagencies,
|
|
108
|
-
reflocation,
|
|
109
|
-
url,
|
|
110
|
-
}),
|
|
111
|
-
);
|
|
112
|
-
}, [
|
|
113
|
-
apikey,
|
|
114
|
-
bbox,
|
|
115
|
-
countrycode,
|
|
116
|
-
event,
|
|
117
|
-
field,
|
|
118
|
-
limit,
|
|
119
|
-
mots,
|
|
120
|
-
onselect,
|
|
121
|
-
params,
|
|
122
|
-
prefagencies,
|
|
123
|
-
reflocation,
|
|
124
|
-
url,
|
|
125
|
-
lang,
|
|
126
|
-
]);
|
|
127
|
-
|
|
128
|
-
const api: StopsAPI = useMemo(() => {
|
|
129
|
-
return new StopsAPI({ apiKey: apikey, url: url });
|
|
130
|
-
}, [apikey, url]);
|
|
131
|
-
|
|
132
|
-
const dispatchEvent = useCallback(
|
|
133
|
-
(station?: StopsFeature) => {
|
|
134
|
-
const customEvt = new MobilityEvent<StopsFeature>(
|
|
135
|
-
event || "mwc:stopssearchselect",
|
|
136
|
-
station,
|
|
137
|
-
{
|
|
138
|
-
bubbles: true,
|
|
139
|
-
},
|
|
140
|
-
);
|
|
141
|
-
|
|
142
|
-
myRef.current?.dispatchEvent(customEvt);
|
|
143
|
-
|
|
144
|
-
if (onselect && typeof onselect === "function") {
|
|
145
|
-
onselect(station);
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
[event, onselect],
|
|
149
|
-
);
|
|
150
|
-
|
|
151
|
-
const debouncedSearch = useMemo(() => {
|
|
152
|
-
let abortCtrl: AbortController | undefined;
|
|
153
|
-
|
|
154
|
-
return debounce((q) => {
|
|
155
|
-
abortCtrl?.abort();
|
|
156
|
-
abortCtrl = new AbortController();
|
|
157
|
-
|
|
158
|
-
const reqParams = {
|
|
159
|
-
bbox,
|
|
160
|
-
field,
|
|
161
|
-
limit,
|
|
162
|
-
mots,
|
|
163
|
-
prefagencies,
|
|
164
|
-
q,
|
|
165
|
-
ref_location: reflocation,
|
|
166
|
-
...JSON.parse(params || "{}"),
|
|
167
|
-
} as StopsParameters;
|
|
168
|
-
|
|
169
|
-
api
|
|
170
|
-
.search(reqParams, { signal: abortCtrl.signal })
|
|
171
|
-
.then((res: StopsResponse) => {
|
|
172
|
-
setResults(
|
|
173
|
-
res.features.filter((f) => {
|
|
174
|
-
return !countrycode || f.properties?.country_code === countrycode;
|
|
175
|
-
}),
|
|
176
|
-
);
|
|
177
|
-
})
|
|
178
|
-
.catch((e) => {
|
|
179
|
-
// AbortError is expected
|
|
180
|
-
if (e.code !== 20) {
|
|
181
|
-
// eslint-disable-next-line no-console
|
|
182
|
-
console.error("Failed to fetch stations", e);
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
}, 150);
|
|
187
|
-
}, [
|
|
188
|
-
api,
|
|
189
|
-
bbox,
|
|
190
|
-
countrycode,
|
|
191
|
-
field,
|
|
192
|
-
limit,
|
|
193
|
-
mots,
|
|
194
|
-
params,
|
|
195
|
-
prefagencies,
|
|
196
|
-
reflocation,
|
|
197
|
-
]);
|
|
198
|
-
|
|
199
|
-
useEffect(() => {
|
|
200
|
-
if (
|
|
201
|
-
selectedStation &&
|
|
202
|
-
query === getQueryForSelectedStation(selectedStation)
|
|
203
|
-
) {
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
if (!query) {
|
|
207
|
-
setSelectedStation(undefined);
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
debouncedSearch(query);
|
|
211
|
-
return () => {
|
|
212
|
-
debouncedSearch.cancel();
|
|
213
|
-
};
|
|
214
|
-
}, [query, selectedStation, debouncedSearch]);
|
|
215
|
-
|
|
216
|
-
useEffect(() => {
|
|
217
|
-
setResults(undefined);
|
|
218
|
-
if (selectedStation) {
|
|
219
|
-
setQuery(getQueryForSelectedStation(selectedStation));
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
dispatchEvent(selectedStation);
|
|
223
|
-
}, [dispatchEvent, selectedStation]);
|
|
224
|
-
|
|
225
|
-
return (
|
|
226
|
-
<>
|
|
227
|
-
<div
|
|
228
|
-
className={twMerge(
|
|
229
|
-
"flex h-16 items-center gap-4 rounded-md bg-white p-4 pt-3.5 shadow",
|
|
230
|
-
className,
|
|
231
|
-
results ? withResultsClassName : "",
|
|
232
|
-
)}
|
|
233
|
-
ref={myRef}
|
|
234
|
-
>
|
|
235
|
-
<div
|
|
236
|
-
className={twMerge(
|
|
237
|
-
"text-grey flex items-center",
|
|
238
|
-
searchIconContainerClassName,
|
|
239
|
-
)}
|
|
240
|
-
>
|
|
241
|
-
<Search />
|
|
242
|
-
</div>
|
|
243
|
-
<div
|
|
244
|
-
className={twMerge(
|
|
245
|
-
"@container/inputsearch flex grow items-center border-b-2 border-solid",
|
|
246
|
-
inputContainerClassName,
|
|
247
|
-
)}
|
|
248
|
-
>
|
|
249
|
-
<Input
|
|
250
|
-
autoComplete="off"
|
|
251
|
-
className={twMerge(
|
|
252
|
-
"h-8 w-1 grow overflow-hidden text-ellipsis placeholder:text-zinc-400",
|
|
253
|
-
inputClassName,
|
|
254
|
-
)}
|
|
255
|
-
onChange={(evt) => {
|
|
256
|
-
// @ts-expect-error target is missing
|
|
257
|
-
setQuery(evt.target.value);
|
|
258
|
-
}}
|
|
259
|
-
onKeyUp={(evt: TargetedKeyboardEvent<HTMLInputElement>) => {
|
|
260
|
-
if (evt.key === "Enter") {
|
|
261
|
-
if (results?.length > 0) {
|
|
262
|
-
setSelectedStation(results[0]);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}}
|
|
266
|
-
placeholder={t("stops_search_placeholder")}
|
|
267
|
-
type="text"
|
|
268
|
-
value={query || ""}
|
|
269
|
-
/>
|
|
270
|
-
{query.length > 0 && (
|
|
271
|
-
<IconButton
|
|
272
|
-
className={twMerge(
|
|
273
|
-
"flex !size-[32px] items-center rounded-none border-none bg-transparent shadow-none",
|
|
274
|
-
cancelButtonClassName,
|
|
275
|
-
)}
|
|
276
|
-
onClick={() => {
|
|
277
|
-
setQuery("");
|
|
278
|
-
setResults(undefined);
|
|
279
|
-
}}
|
|
280
|
-
>
|
|
281
|
-
<Cancel />
|
|
282
|
-
</IconButton>
|
|
283
|
-
)}
|
|
284
|
-
</div>
|
|
285
|
-
</div>
|
|
286
|
-
|
|
287
|
-
{results && (
|
|
288
|
-
<div
|
|
289
|
-
className={twMerge(
|
|
290
|
-
"flex grow overflow-auto rounded-md rounded-t-none bg-white shadow",
|
|
291
|
-
resultsContainerClassName,
|
|
292
|
-
)}
|
|
293
|
-
>
|
|
294
|
-
{!results?.length && (
|
|
295
|
-
<div
|
|
296
|
-
className={twMerge(
|
|
297
|
-
"flex grow gap-3 border border-solid p-3 pt-2 text-zinc-400",
|
|
298
|
-
resultsClassName,
|
|
299
|
-
)}
|
|
300
|
-
style={{ border: 1 }}
|
|
301
|
-
>
|
|
302
|
-
<div className="size-6"></div>
|
|
303
|
-
<div>{t("no_stops_found")}</div>
|
|
304
|
-
</div>
|
|
305
|
-
)}
|
|
306
|
-
{!!results?.length && (
|
|
307
|
-
<ul
|
|
308
|
-
className={twMerge(
|
|
309
|
-
"grow rounded-md rounded-t-none border border-solid bg-white p-0",
|
|
310
|
-
resultsClassName,
|
|
311
|
-
)}
|
|
312
|
-
style={{ border: 1 }} // without this th ul is displayed 1 px on the right
|
|
313
|
-
>
|
|
314
|
-
{results?.map((station) => {
|
|
315
|
-
return (
|
|
316
|
-
<li
|
|
317
|
-
className={twMerge(
|
|
318
|
-
"border-b border-dashed border-slate-300 p-3 last:border-0",
|
|
319
|
-
resultClassName,
|
|
320
|
-
)}
|
|
321
|
-
key={station.properties.uid}
|
|
322
|
-
>
|
|
323
|
-
<button
|
|
324
|
-
className="flex w-full items-center gap-3 text-left"
|
|
325
|
-
onClick={() => {
|
|
326
|
-
console.log("StopsSearch selected station", station);
|
|
327
|
-
setSelectedStation(station);
|
|
328
|
-
}}
|
|
329
|
-
>
|
|
330
|
-
<div className="size-6"></div>
|
|
331
|
-
<div className="grow">{station.properties.name}</div>
|
|
332
|
-
</button>
|
|
333
|
-
</li>
|
|
334
|
-
);
|
|
335
|
-
})}
|
|
336
|
-
</ul>
|
|
337
|
-
)}
|
|
338
|
-
</div>
|
|
339
|
-
)}
|
|
340
|
-
</>
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export default memo(StopsSearch);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./StopsSearch";
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { memo } from "preact/compat";
|
|
2
|
-
import { useEffect } from "preact/hooks";
|
|
3
|
-
|
|
4
|
-
import useMapContext from "../utils/hooks/useMapContext";
|
|
5
|
-
|
|
6
|
-
import type MobilityEvent from "../utils/MobilityEvent";
|
|
7
|
-
|
|
8
|
-
const evtTypes = [
|
|
9
|
-
"mwc:permalink",
|
|
10
|
-
"mwc:selectedfeature",
|
|
11
|
-
"mwc:singleclick",
|
|
12
|
-
"mwc:attribute",
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* This component propagate the web-components events to the parent window using messages events,
|
|
17
|
-
* and listen for messages from the parent window.
|
|
18
|
-
* @param param0
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
function WindowMessageListener({ eventNode }: { eventNode: HTMLElement }) {
|
|
22
|
-
const { setPreviewNotifications } = useMapContext();
|
|
23
|
-
|
|
24
|
-
// Listen to parent window message events
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
const onMessage = (event) => {
|
|
27
|
-
if (event.data.situations) {
|
|
28
|
-
setPreviewNotifications(event.data.situations);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
window.addEventListener("message", onMessage);
|
|
32
|
-
return () => {
|
|
33
|
-
window.removeEventListener("message", onMessage);
|
|
34
|
-
};
|
|
35
|
-
}, [setPreviewNotifications]);
|
|
36
|
-
|
|
37
|
-
// Propagate wc events to the parent window
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (!eventNode) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const postMessage = (evt: MobilityEvent<unknown>) => {
|
|
44
|
-
// Clean data before sending it to the parent
|
|
45
|
-
if (evt.type === "mwc:attribute") {
|
|
46
|
-
// @ts-expect-error children is the react property
|
|
47
|
-
delete evt.data.children;
|
|
48
|
-
}
|
|
49
|
-
if (evt.type === "mwc:selectedfeature") {
|
|
50
|
-
// @ts-expect-error children is the react property
|
|
51
|
-
if (evt.data?.properties?.olGeometry) {
|
|
52
|
-
// @ts-expect-error children is the react property
|
|
53
|
-
delete evt.data.properties.olGeometry;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
window.parent?.postMessage({ data: evt.data, type: evt.type }, "*");
|
|
57
|
-
};
|
|
58
|
-
evtTypes.forEach((eventType) => {
|
|
59
|
-
eventNode.addEventListener(eventType, postMessage);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// warn the parent that the web component is listening
|
|
63
|
-
window.parent?.postMessage({ data: true, type: "mwc:messageready" }, "*");
|
|
64
|
-
|
|
65
|
-
return () => {
|
|
66
|
-
evtTypes.forEach((eventType) => {
|
|
67
|
-
eventNode.removeEventListener(eventType, postMessage);
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
}, [eventNode]);
|
|
71
|
-
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
export default memo(WindowMessageListener);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./WindowMessageListener";
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { unByKey } from "ol/Observable";
|
|
2
|
-
import { memo } from "preact/compat";
|
|
3
|
-
import { useCallback, useEffect, useState } from "preact/hooks";
|
|
4
|
-
|
|
5
|
-
import Minus from "../icons/Minus";
|
|
6
|
-
import Plus from "../icons/Plus";
|
|
7
|
-
import IconButton from "../ui/IconButton";
|
|
8
|
-
import useI18n from "../utils/hooks/useI18n";
|
|
9
|
-
import useMapContext from "../utils/hooks/useMapContext";
|
|
10
|
-
|
|
11
|
-
function ZoomButtons() {
|
|
12
|
-
const { map } = useMapContext();
|
|
13
|
-
const [isZoomInDisabled, setIsZoomInDisabled] = useState(false);
|
|
14
|
-
const [isZoomOutDisabled, setIsZoomOutDisabled] = useState(false);
|
|
15
|
-
const { t } = useI18n();
|
|
16
|
-
|
|
17
|
-
const handleZoomIn = useCallback(() => {
|
|
18
|
-
if (!map?.getView()) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const view = map.getView();
|
|
22
|
-
const zoom = view.getZoom();
|
|
23
|
-
view.setZoom(zoom + 1);
|
|
24
|
-
}, [map]);
|
|
25
|
-
|
|
26
|
-
const handleZoomOut = useCallback(() => {
|
|
27
|
-
if (!map?.getView()) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const view = map.getView();
|
|
31
|
-
const zoom = view.getZoom();
|
|
32
|
-
view.setZoom(zoom - 1);
|
|
33
|
-
}, [map]);
|
|
34
|
-
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
const key = map?.on("moveend", () => {
|
|
37
|
-
const view = map.getView();
|
|
38
|
-
const zoom = view.getZoom();
|
|
39
|
-
const maxzoom = view.getMaxZoom();
|
|
40
|
-
const minzoom = view.getMinZoom();
|
|
41
|
-
|
|
42
|
-
if (maxzoom && zoom === Number(maxzoom)) {
|
|
43
|
-
setIsZoomInDisabled(true);
|
|
44
|
-
} else {
|
|
45
|
-
setIsZoomInDisabled(false);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (minzoom && zoom === Number(minzoom)) {
|
|
49
|
-
setIsZoomOutDisabled(true);
|
|
50
|
-
} else {
|
|
51
|
-
setIsZoomOutDisabled(false);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
return () => {
|
|
55
|
-
unByKey(key);
|
|
56
|
-
};
|
|
57
|
-
}, [map]);
|
|
58
|
-
|
|
59
|
-
return (
|
|
60
|
-
<>
|
|
61
|
-
<IconButton
|
|
62
|
-
disabled={isZoomInDisabled}
|
|
63
|
-
onClick={handleZoomIn}
|
|
64
|
-
title={t("zoomin")}
|
|
65
|
-
>
|
|
66
|
-
<Plus />
|
|
67
|
-
</IconButton>
|
|
68
|
-
|
|
69
|
-
<IconButton
|
|
70
|
-
disabled={isZoomOutDisabled}
|
|
71
|
-
onClick={handleZoomOut}
|
|
72
|
-
title={t("zoomout")}
|
|
73
|
-
>
|
|
74
|
-
<Minus />
|
|
75
|
-
</IconButton>
|
|
76
|
-
</>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export default memo(ZoomButtons);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ZoomButtons";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function Airport({ ...props }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
height="24"
|
|
6
|
-
version="1.1"
|
|
7
|
-
viewBox="0 0 14 14"
|
|
8
|
-
width="24"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
{...props}
|
|
11
|
-
>
|
|
12
|
-
<path d="m 14,8 0,1 -6,-1 0,3 2,2 0,1 L 7,13 4,14 4,13 6,11 6,8 0,9 0,8 6,5 6,2 C 6,1 6.22222,0 7,0 7.77777,0 8,1 8,2 l 0,3 z" />
|
|
13
|
-
</svg>
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default Airport;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="M14 8v1L8 8v3l2 2v1l-3-1-3 1v-1l2-2V8L0 9V8l6-3V2c0-1 .222-2 1-2s1 1 1 2v3z" style="fill:#000;fill-opacity:1;stroke:none"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Airport";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SVGProps } from "preact/compat";
|
|
2
|
-
|
|
3
|
-
function ArrowDown(props: SVGProps<SVGSVGElement>) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
fill="currentColor"
|
|
7
|
-
height="24px"
|
|
8
|
-
version="1.1"
|
|
9
|
-
viewBox="0 0 24 24"
|
|
10
|
-
width="24px"
|
|
11
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
{...props}
|
|
13
|
-
>
|
|
14
|
-
<path
|
|
15
|
-
d="M15.7389427,5.27697525 C16.129467,5.66749954 16.129467,6.30066452 15.7389427,6.69118881 L10.414,12.015082 L15.7389427,17.3406471 C16.0994267,17.7011311 16.1271562,18.2683621 15.8221313,18.6606533 L15.7389427,18.7548607 C15.3484184,19.145385 14.7152534,19.145385 14.3247292,18.7548607 L8.29289322,12.7230247 C7.90236893,12.3325005 7.90236893,11.6993355 8.29289322,11.3088112 L14.3247292,5.27697525 C14.7152534,4.88645096 15.3484184,4.88645096 15.7389427,5.27697525 Z"
|
|
16
|
-
transform="translate(12.0159, 12.0159) rotate(270) translate(-12.0159, -12.0159)"
|
|
17
|
-
></path>
|
|
18
|
-
</svg>
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default ArrowDown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><title>iconfont/down-open</title><path d="M5.277 8.293a1 1 0 0 1 1.414 0l5.324 5.325 5.326-5.325a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414l-6.032 6.032a1 1 0 0 1-1.414 0L5.277 9.707a1 1 0 0 1 0-1.414"/></svg>
|