@geops/rvf-mobility-web-component 0.1.127-beta.1 → 0.1.127-beta.2

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.
Files changed (624) hide show
  1. package/dist/ExportMenu-HGGM7Z53.js +229 -0
  2. package/dist/chunk-5TBO732O.js +1 -0
  3. package/dist/chunk-7SZT7G2L.js +3 -0
  4. package/dist/chunk-AOWOBR67.js +37 -0
  5. package/dist/chunk-CZ6RUAVW.js +3 -0
  6. package/dist/chunk-FK6H3RFT.js +1 -0
  7. package/dist/chunk-L5TSFF6Q.js +6 -0
  8. package/dist/chunk-W5KNTEOZ.js +1 -0
  9. package/dist/deflate-7Y7TJOU7.js +1 -0
  10. package/dist/html2canvas-HSPYX66M.js +28 -0
  11. package/dist/index.es-LIBYYWEU.js +23 -0
  12. package/dist/indexDoc.js +1 -0
  13. package/dist/jpeg-IRWWL5ZF.js +1 -0
  14. package/dist/lerc-NVL4MKRG.js +6 -0
  15. package/dist/lzw-EHQHNZB6.js +1 -0
  16. package/dist/packbits-PQSBS4GQ.js +1 -0
  17. package/dist/purify.es-4R37HRTQ.js +7 -0
  18. package/dist/raw-OK63VTT6.js +1 -0
  19. package/dist/webimage-DLGKDXZD.js +1 -0
  20. package/dist/zstd-JFJYRN7P.js +1 -0
  21. package/package.json +4 -1
  22. package/.fixpackrc +0 -21
  23. package/.github/CODEOWNERS +0 -37
  24. package/.github/workflows/conventional-pr-title.yml +0 -36
  25. package/.husky/commit-msg +0 -1
  26. package/.husky/post-checkout +0 -1
  27. package/.husky/post-merge +0 -1
  28. package/.husky/post-rebase +0 -1
  29. package/.husky/pre-commit +0 -1
  30. package/.lintstagedrc.js +0 -13
  31. package/.nvmrc +0 -1
  32. package/.prettierrc.js +0 -3
  33. package/Logo.svg +0 -10
  34. package/__mocks__/dataurl.js +0 -11
  35. package/__mocks__/mapbox-gl.js +0 -19
  36. package/commitlint.config.cjs +0 -1
  37. package/doc/.eslintrc.json +0 -3
  38. package/doc/.fixpackrc +0 -21
  39. package/doc/.prettierrc +0 -1
  40. package/doc/README.md +0 -14
  41. package/doc/next.config.mjs +0 -8
  42. package/doc/package.json +0 -44
  43. package/doc/postcss.config.mjs +0 -8
  44. package/doc/public/README.md +0 -1
  45. package/doc/src/app/components/GeopsAPIKeyLink.tsx +0 -6
  46. package/doc/src/app/components/GeopsAPIsLink.tsx +0 -6
  47. package/doc/src/app/components/GeopsMapsAPILink.tsx +0 -8
  48. package/doc/src/app/components/GeopsMobility.tsx +0 -23
  49. package/doc/src/app/components/GeopsMobilityDoc.tsx +0 -39
  50. package/doc/src/app/components/GeopsMobilitySearch.tsx +0 -22
  51. package/doc/src/app/components/GeopsMobilitySearchDoc.tsx +0 -33
  52. package/doc/src/app/components/GeopsRealtimeAPILink.tsx +0 -10
  53. package/doc/src/app/components/GeopsStopsAPILink.tsx +0 -8
  54. package/doc/src/app/components/Link.tsx +0 -9
  55. package/doc/src/app/components/WebComponentDoc.tsx +0 -284
  56. package/doc/src/app/favicon.ico +0 -0
  57. package/doc/src/app/geops-mobility/page.tsx +0 -11
  58. package/doc/src/app/geops-mobility-search/page.tsx +0 -11
  59. package/doc/src/app/globals.css +0 -58
  60. package/doc/src/app/hooks/useAttrFromUrlParams.ts +0 -21
  61. package/doc/src/app/hooks/useIsFullScreen.ts +0 -14
  62. package/doc/src/app/hooks/usePublicKey.ts +0 -19
  63. package/doc/src/app/layout.tsx +0 -53
  64. package/doc/src/app/page.tsx +0 -86
  65. package/doc/src/geops-ui.ts +0 -3
  66. package/doc/tsconfig.json +0 -41
  67. package/docutils.js +0 -417
  68. package/eslint.config.mjs +0 -34
  69. package/favicon.ico +0 -0
  70. package/fonts/source-sans-3/source-sans-3-v15-latin-500.ttf +0 -0
  71. package/fonts/source-sans-3/source-sans-3-v15-latin-500.woff2 +0 -0
  72. package/fonts/source-sans-3/source-sans-3-v15-latin-600.ttf +0 -0
  73. package/fonts/source-sans-3/source-sans-3-v15-latin-600.woff2 +0 -0
  74. package/fonts/source-sans-3/source-sans-3-v15-latin-700.ttf +0 -0
  75. package/fonts/source-sans-3/source-sans-3-v15-latin-700.woff2 +0 -0
  76. package/fonts/source-sans-3/source-sans-3-v15-latin-regular.ttf +0 -0
  77. package/fonts/source-sans-3/source-sans-3-v15-latin-regular.woff2 +0 -0
  78. package/global.d.ts +0 -9
  79. package/iframe.html +0 -233
  80. package/index.html +0 -147
  81. package/index.js +0 -4343
  82. package/index.js.map +0 -7
  83. package/indexDoc.js +0 -37
  84. package/indexDoc.js.map +0 -7
  85. package/input.css +0 -59
  86. package/jest-setup.js +0 -13
  87. package/jest.config.js +0 -17
  88. package/notifications.html +0 -144
  89. package/scripts/build.mjs +0 -17
  90. package/scripts/dev.mjs +0 -30
  91. package/search.html +0 -122
  92. package/src/BaseLayer/BaseLayer.tsx +0 -61
  93. package/src/BaseLayer/index.tsx +0 -1
  94. package/src/Copyright/Copyright.tsx +0 -51
  95. package/src/Copyright/index.tsx +0 -1
  96. package/src/DebugDeparture/DebugDeparture.tsx +0 -120
  97. package/src/DebugDeparture/index.tsx +0 -1
  98. package/src/DebugStop/DebugStop.tsx +0 -47
  99. package/src/DebugStop/index.tsx +0 -1
  100. package/src/Departure/Departure.tsx +0 -57
  101. package/src/Departure/index.tsx +0 -1
  102. package/src/EmbedNavigation/DragPanWarning.ts +0 -133
  103. package/src/EmbedNavigation/EmbedNavigation.tsx +0 -89
  104. package/src/EmbedNavigation/index.js +0 -1
  105. package/src/EmbedNavigation/index.tsx +0 -1
  106. package/src/ExportMenu/ExportMenu.tsx +0 -114
  107. package/src/ExportMenu/index.tsx +0 -1
  108. package/src/ExportMenuButton/ExportMenuButton.tsx +0 -33
  109. package/src/ExportMenuButton/index.tsx +0 -1
  110. package/src/FeatureDetails/FeatureDetails.tsx +0 -62
  111. package/src/FeatureDetails/index.ts +0 -1
  112. package/src/FeaturesInfosListener/FeaturesInfosListener.tsx +0 -142
  113. package/src/FeaturesInfosListener/index.tsx +0 -1
  114. package/src/GeolocationButton/GeolocationButton.tsx +0 -78
  115. package/src/GeolocationButton/index.tsx +0 -1
  116. package/src/I18n/I18n.tsx +0 -38
  117. package/src/I18n/index.tsx +0 -1
  118. package/src/LayerTree/LayerTree.tsx +0 -58
  119. package/src/LayerTree/TreeItem/TreeItem.tsx +0 -153
  120. package/src/LayerTree/TreeItem/index.tsx +0 -1
  121. package/src/LayerTree/index.tsx +0 -1
  122. package/src/LayerTree/layersTreeContext.ts +0 -4
  123. package/src/LayerTree/layersTreeReducer.ts +0 -158
  124. package/src/LayerTreeButton/LayerTreeButton.tsx +0 -33
  125. package/src/LayerTreeButton/index.tsx +0 -1
  126. package/src/LayerTreeMenu/LayerTreeMenu.tsx +0 -147
  127. package/src/LayerTreeMenu/index.tsx +0 -1
  128. package/src/LayoutState/LayoutState.tsx +0 -380
  129. package/src/LayoutState/index.tsx +0 -1
  130. package/src/LinesNetworkPlanDetails/LinesNetworkPlanDetails.tsx +0 -274
  131. package/src/LinesNetworkPlanDetails/index.tsx +0 -1
  132. package/src/LinesNetworkPlanLayer/LinesNetworkPlanLayer.tsx +0 -51
  133. package/src/LinesNetworkPlanLayer/index.tsx +0 -1
  134. package/src/LinesNetworkPlanLayerHighlight/LinesNetworkPlanLayerHighlight.tsx +0 -59
  135. package/src/LinesNetworkPlanLayerHighlight/index.tsx +0 -1
  136. package/src/Map/Map.tsx +0 -166
  137. package/src/Map/index.tsx +0 -1
  138. package/src/MapDispatchEvents/MapDispatchEvents.tsx +0 -87
  139. package/src/MapDispatchEvents/index.tsx +0 -1
  140. package/src/MapLayout/MapLayout.tsx +0 -172
  141. package/src/MapLayout/index.tsx +0 -1
  142. package/src/MapsetLayer/MapsetLayer.tsx +0 -111
  143. package/src/MapsetLayer/index.tsx +0 -1
  144. package/src/MobilityMap/MobilityMap.tsx +0 -338
  145. package/src/MobilityMap/MobilityMapAttributes.test.ts +0 -59
  146. package/src/MobilityMap/MobilityMapAttributes.ts +0 -381
  147. package/src/MobilityMap/MobilityMapEvents.ts +0 -53
  148. package/src/MobilityMap/index.css +0 -0
  149. package/src/MobilityMap/index.tsx +0 -2
  150. package/src/MobilityNotifications/MobilityNotifications.tsx +0 -153
  151. package/src/MobilityNotifications/MobilityNotificationsAttributes.test.ts +0 -35
  152. package/src/MobilityNotifications/MobilityNotificationsAttributes.ts +0 -53
  153. package/src/MobilityNotifications/index.ts +0 -2
  154. package/src/MobilitySearch/MobilitySearch.tsx +0 -35
  155. package/src/MobilitySearch/MobilitySearchAttributes.test.ts +0 -21
  156. package/src/MobilitySearch/MobilitySearchAttributes.ts +0 -87
  157. package/src/MobilitySearch/MobilitySearchEvents.ts +0 -21
  158. package/src/MobilitySearch/index.ts +0 -2
  159. package/src/NotificationDetails/NotificationDetails.tsx +0 -309
  160. package/src/NotificationDetails/index.ts +0 -1
  161. package/src/NotificationsLayer/NotificationsLayer.tsx +0 -118
  162. package/src/NotificationsLayer/index.tsx +0 -1
  163. package/src/Overlay/Overlay.tsx +0 -61
  164. package/src/Overlay/index.tsx +0 -1
  165. package/src/OverlayContent/OverlayContent.tsx +0 -101
  166. package/src/OverlayContent/index.ts +0 -1
  167. package/src/OverlayDetails/OverlayDetails.tsx +0 -93
  168. package/src/OverlayDetails/index.ts +0 -1
  169. package/src/OverlayDetailsFooter/OverlayDetailsFooter.tsx +0 -50
  170. package/src/OverlayDetailsFooter/index.tsx +0 -1
  171. package/src/OverlayDetailsHeader/OverlayDetailsHeader.tsx +0 -30
  172. package/src/OverlayDetailsHeader/index.ts +0 -1
  173. package/src/OverlayFooter/OverlayFooter.tsx +0 -42
  174. package/src/OverlayFooter/index.tsx +0 -1
  175. package/src/OverlayHeader/OverlayHeader.tsx +0 -44
  176. package/src/OverlayHeader/index.tsx +0 -1
  177. package/src/Permalink/Permalink.tsx +0 -89
  178. package/src/Permalink/index.tsx +0 -1
  179. package/src/PermalinkInput/PermalinkInput.tsx +0 -33
  180. package/src/PermalinkInput/index.tsx +0 -1
  181. package/src/RealtimeLayer/RealtimeLayer.tsx +0 -299
  182. package/src/RealtimeLayer/index.tsx +0 -1
  183. package/src/RouteDestination/RouteDestination.test.tsx +0 -13
  184. package/src/RouteDestination/RouteDestination.tsx +0 -15
  185. package/src/RouteDestination/index.tsx +0 -1
  186. package/src/RouteFollowingButton/RouteFollowingButton.tsx +0 -30
  187. package/src/RouteFollowingButton/index.tsx +0 -1
  188. package/src/RouteIcon/RouteIcon.tsx +0 -99
  189. package/src/RouteIcon/index.tsx +0 -1
  190. package/src/RouteIdentifier/RouteIdentifer.tsx +0 -36
  191. package/src/RouteIdentifier/index.tsx +0 -1
  192. package/src/RouteInfos/RouteInfos.tsx +0 -26
  193. package/src/RouteInfos/index.tsx +0 -1
  194. package/src/RouteSchedule/RouteSchedule.tsx +0 -59
  195. package/src/RouteSchedule/firstStation.png +0 -0
  196. package/src/RouteSchedule/index.tsx +0 -1
  197. package/src/RouteSchedule/lastStation.png +0 -0
  198. package/src/RouteSchedule/line.png +0 -0
  199. package/src/RouteSchedule/station.png +0 -0
  200. package/src/RouteScheduleFooter/RouteScheduleFooter.tsx +0 -46
  201. package/src/RouteScheduleFooter/index.tsx +0 -1
  202. package/src/RouteScheduleHeader/RouteScheduleHeader.tsx +0 -23
  203. package/src/RouteScheduleHeader/index.tsx +0 -1
  204. package/src/RouteStop/RouteStop.tsx +0 -108
  205. package/src/RouteStop/index.tsx +0 -1
  206. package/src/RouteStopDelay/RouteStopDelay.tsx +0 -37
  207. package/src/RouteStopDelay/index.tsx +0 -1
  208. package/src/RouteStopName/RouteStopName.tsx +0 -24
  209. package/src/RouteStopName/index.tsx +0 -1
  210. package/src/RouteStopPlatform/RouteStopPlatform.tsx +0 -27
  211. package/src/RouteStopPlatform/index.tsx +0 -1
  212. package/src/RouteStopProgress/RouteStopProgress.tsx +0 -100
  213. package/src/RouteStopProgress/index.tsx +0 -1
  214. package/src/RouteStopServices/RouteStopServices.tsx +0 -26
  215. package/src/RouteStopServices/index.tsx +0 -1
  216. package/src/RouteStopStation/RouteStopStation.tsx +0 -38
  217. package/src/RouteStopStation/index.tsx +0 -1
  218. package/src/RouteStopTime/RouteStopTime.tsx +0 -35
  219. package/src/RouteStopTime/index.tsx +0 -1
  220. package/src/RvfButton/RvfButton.tsx +0 -57
  221. package/src/RvfButton/index.tsx +0 -1
  222. package/src/RvfCheckbox/RvfCheckbox.tsx +0 -31
  223. package/src/RvfCheckbox/index.tsx +0 -1
  224. package/src/RvfCopyright/RvfCopyright.tsx +0 -36
  225. package/src/RvfCopyright/index.tsx +0 -1
  226. package/src/RvfFeatureDetails/RvfFeatureDetails.tsx +0 -46
  227. package/src/RvfFeatureDetails/RvfLineNetworkDetails/RvfLineNetworkDetails.tsx +0 -292
  228. package/src/RvfFeatureDetails/RvfLineNetworkDetails/index.js +0 -1
  229. package/src/RvfFeatureDetails/RvfNotificationDetails/RvfNotificationDetails.tsx +0 -36
  230. package/src/RvfFeatureDetails/RvfNotificationDetails/index.ts +0 -1
  231. package/src/RvfFeatureDetails/RvfSellingPointDetails/RvfSellingPointDetails.tsx +0 -50
  232. package/src/RvfFeatureDetails/RvfSellingPointDetails/index.js +0 -1
  233. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/FloatingVehiclesDetails.tsx +0 -74
  234. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/index.tsx +0 -1
  235. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/RvfSharedMobilityDetails.tsx +0 -134
  236. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/StationDetails.tsx +0 -84
  237. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/index.tsx +0 -1
  238. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/index.tsx +0 -1
  239. package/src/RvfFeatureDetails/index.tsx +0 -1
  240. package/src/RvfIconButton/RvfIconButton.tsx +0 -49
  241. package/src/RvfIconButton/index.tsx +0 -1
  242. package/src/RvfInputCopy/RvfInputCopy.tsx +0 -67
  243. package/src/RvfInputCopy/index.tsx +0 -1
  244. package/src/RvfLink/RvfLink.tsx +0 -54
  245. package/src/RvfLink/index.tsx +0 -1
  246. package/src/RvfMainLinkButton/RvfMainLinkButton.tsx +0 -62
  247. package/src/RvfMainLinkButton/index.tsx +0 -1
  248. package/src/RvfMapLayout/RvfMapLayout.tsx +0 -202
  249. package/src/RvfMapLayout/index.tsx +0 -1
  250. package/src/RvfMobilityMap/RvfMobilityMap.tsx +0 -58
  251. package/src/RvfMobilityMap/index.css +0 -13
  252. package/src/RvfMobilityMap/index.tsx +0 -1
  253. package/src/RvfModal/RvfModal.tsx +0 -53
  254. package/src/RvfModal/index.tsx +0 -1
  255. package/src/RvfOpenStrikeNotification/RvfOpenStrikeNotification.tsx +0 -120
  256. package/src/RvfOpenStrikeNotification/index.tsx +0 -1
  257. package/src/RvfOverlayHeader/RvfOverlayHeader.tsx +0 -43
  258. package/src/RvfOverlayHeader/index.tsx +0 -1
  259. package/src/RvfPoisLayer/RvfPoisLayer.tsx +0 -48
  260. package/src/RvfPoisLayer/index.tsx +0 -1
  261. package/src/RvfRadioButton/RvfRadioButton.tsx +0 -16
  262. package/src/RvfRadioButton/index.tsx +0 -1
  263. package/src/RvfRealtimeLayer/RvfRealtimeLayer.tsx +0 -77
  264. package/src/RvfRealtimeLayer/index.tsx +0 -1
  265. package/src/RvfRouteIcon/RvfRouteIcon.tsx +0 -10
  266. package/src/RvfRouteIcon/index.tsx +0 -1
  267. package/src/RvfSearch/RvfSearch.tsx +0 -34
  268. package/src/RvfSearch/index.tsx +0 -1
  269. package/src/RvfSelect/RvfSelect.tsx +0 -24
  270. package/src/RvfSelect/index.tsx +0 -1
  271. package/src/RvfSelectedFeatureHighlightLayer/RvfSelectedFeatureHighlightLayer.tsx +0 -101
  272. package/src/RvfSelectedFeatureHighlightLayer/index.tsx +0 -1
  273. package/src/RvfSellingPointsLayer/RvfSellingPointsLayer.tsx +0 -67
  274. package/src/RvfSellingPointsLayer/index.tsx +0 -1
  275. package/src/RvfSharedMobilityLayerGroup/RvfSharedMobilityLayerGroup.tsx +0 -479
  276. package/src/RvfSharedMobilityLayerGroup/index.tsx +0 -1
  277. package/src/RvfStationsLayer/RvfStationsLayer.tsx +0 -19
  278. package/src/RvfStationsLayer/index.tsx +0 -1
  279. package/src/RvfTarifZonenLayer/RvfTarifZonenLayer.tsx +0 -48
  280. package/src/RvfTarifZonenLayer/index.tsx +0 -1
  281. package/src/ScaleLine/ScaleLine.tsx +0 -52
  282. package/src/ScaleLine/index.css +0 -6
  283. package/src/ScaleLine/index.tsx +0 -1
  284. package/src/ScrollableHandler/ScrollableHandler.tsx +0 -66
  285. package/src/ScrollableHandler/index.tsx +0 -1
  286. package/src/Search/Search.tsx +0 -50
  287. package/src/Search/SearchBase.tsx +0 -187
  288. package/src/Search/SearchHeadless.tsx +0 -79
  289. package/src/Search/index.tsx +0 -3
  290. package/src/SearchButton/SearchButton.tsx +0 -33
  291. package/src/SearchButton/index.tsx +0 -1
  292. package/src/SearchLinesResult/SearchLinesResult.tsx +0 -43
  293. package/src/SearchLinesResult/index.tsx +0 -1
  294. package/src/SearchLinesResults/SearchLinesResults.tsx +0 -106
  295. package/src/SearchLinesResults/index.tsx +0 -1
  296. package/src/SearchLnpStopsResult/SearchLnpStopsResult.tsx +0 -42
  297. package/src/SearchLnpStopsResult/index.tsx +0 -1
  298. package/src/SearchLnpStopsResults/SearchLnpStopsResults.tsx +0 -106
  299. package/src/SearchLnpStopsResults/index.tsx +0 -1
  300. package/src/SearchResult/SearchResult.tsx +0 -25
  301. package/src/SearchResult/index.tsx +0 -1
  302. package/src/SearchResults/SearchResults.tsx +0 -81
  303. package/src/SearchResults/index.tsx +0 -1
  304. package/src/SearchResultsHeader/SearchResultsHeader.tsx +0 -36
  305. package/src/SearchResultsHeader/index.tsx +0 -1
  306. package/src/SearchStopsResult/SearchStopsResult.tsx +0 -43
  307. package/src/SearchStopsResult/index.tsx +0 -1
  308. package/src/SearchStopsResults/SearchStopsResults.tsx +0 -101
  309. package/src/SearchStopsResults/index.tsx +0 -1
  310. package/src/SearchTrainsResult/SearchTrainsResult.tsx +0 -42
  311. package/src/SearchTrainsResult/index.tsx +0 -1
  312. package/src/SearchTrainsResults/SearchTrainsResults.tsx +0 -106
  313. package/src/SearchTrainsResults/index.tsx +0 -1
  314. package/src/ShadowOverflow/ShadowOverflow.tsx +0 -28
  315. package/src/ShadowOverflow/index.tsx +0 -1
  316. package/src/ShareMenu/ShareMenu.tsx +0 -43
  317. package/src/ShareMenu/index.tsx +0 -1
  318. package/src/ShareMenuButton/ShareMenuButton.tsx +0 -34
  319. package/src/ShareMenuButton/index.tsx +0 -1
  320. package/src/SingleClickListener/SingleClickListener.tsx +0 -164
  321. package/src/SingleClickListener/index.tsx +0 -1
  322. package/src/SituationDetails/SituationDetails.tsx +0 -370
  323. package/src/SituationDetails/index.ts +0 -1
  324. package/src/Station/Station.tsx +0 -50
  325. package/src/Station/index.tsx +0 -1
  326. package/src/StationHeader/StationHeader.tsx +0 -32
  327. package/src/StationHeader/index.tsx +0 -1
  328. package/src/StationName/StationName.tsx +0 -21
  329. package/src/StationName/index.tsx +0 -1
  330. package/src/StationServices/StationServices.tsx +0 -80
  331. package/src/StationServices/index.tsx +0 -1
  332. package/src/StationsLayer/StationsLayer.tsx +0 -53
  333. package/src/StationsLayer/index.tsx +0 -1
  334. package/src/StopsSearch/StopsSearch.tsx +0 -344
  335. package/src/StopsSearch/index.tsx +0 -1
  336. package/src/WindowMessageListener/WindowMessageListener.tsx +0 -74
  337. package/src/WindowMessageListener/index.tsx +0 -1
  338. package/src/ZoomButtons/ZoomButtons.tsx +0 -80
  339. package/src/ZoomButtons/index.tsx +0 -1
  340. package/src/icons/Airport/Airport.tsx +0 -17
  341. package/src/icons/Airport/airport-14-svgrepo-com.svg +0 -1
  342. package/src/icons/Airport/index.tsx +0 -1
  343. package/src/icons/ArrowDown/ArrowDown.tsx +0 -22
  344. package/src/icons/ArrowDown/down-open.svg +0 -1
  345. package/src/icons/ArrowDown/index.tsx +0 -1
  346. package/src/icons/ArrowRight/ArrowRight.tsx +0 -19
  347. package/src/icons/ArrowRight/arrow-right.svg +0 -1
  348. package/src/icons/ArrowRight/index.tsx +0 -1
  349. package/src/icons/ArrowUp/ArrowUp.tsx +0 -22
  350. package/src/icons/ArrowUp/index.tsx +0 -1
  351. package/src/icons/ArrowUp/up-open.svg +0 -1
  352. package/src/icons/ArrowUpRight/ArrowUpRight.tsx +0 -35
  353. package/src/icons/ArrowUpRight/index.tsx +0 -1
  354. package/src/icons/ArrowUpRight/up-open.svg +0 -1
  355. package/src/icons/Automat/Automat.tsx +0 -8
  356. package/src/icons/Automat/index.tsx +0 -1
  357. package/src/icons/Automat/rvf_automat.svg +0 -1
  358. package/src/icons/BarAndRestaurants/BarAndRestaurants.tsx +0 -17
  359. package/src/icons/BarAndRestaurants/food-restaurant-svgrepo-com.svg +0 -1
  360. package/src/icons/BarAndRestaurants/index.tsx +0 -1
  361. package/src/icons/Bathroom/Bathroom.tsx +0 -59
  362. package/src/icons/Bathroom/bathroom-restroom-svgrepo-com.svg +0 -1
  363. package/src/icons/Bathroom/index.tsx +0 -1
  364. package/src/icons/Bike/Bike.tsx +0 -8
  365. package/src/icons/Bike/index.tsx +0 -1
  366. package/src/icons/Bike/rvf_shared_bike.svg +0 -1
  367. package/src/icons/BikeStorage/BikeStorage.tsx +0 -17
  368. package/src/icons/BikeStorage/index.tsx +0 -1
  369. package/src/icons/BikeStorage/parking-bicycle-14-svgrepo-com.svg +0 -1
  370. package/src/icons/Cancel/Cancel.tsx +0 -21
  371. package/src/icons/Cancel/cancel.svg +0 -1
  372. package/src/icons/Cancel/index.tsx +0 -1
  373. package/src/icons/Car/Car.tsx +0 -8
  374. package/src/icons/Car/index.tsx +0 -1
  375. package/src/icons/Car/rvf_shared_car.svg +0 -1
  376. package/src/icons/CargoBike/CargoBike.tsx +0 -8
  377. package/src/icons/CargoBike/index.tsx +0 -1
  378. package/src/icons/CargoBike/rvf_shared_cargo_bike.svg +0 -1
  379. package/src/icons/Copy/Copy.tsx +0 -25
  380. package/src/icons/Copy/index.tsx +0 -1
  381. package/src/icons/Doc/Doc.tsx +0 -19
  382. package/src/icons/Doc/doc.svg +0 -1
  383. package/src/icons/Doc/index.tsx +0 -1
  384. package/src/icons/DownOpen/DownOpen.tsx +0 -24
  385. package/src/icons/DownOpen/down-open.svg +0 -1
  386. package/src/icons/DownOpen/index.tsx +0 -1
  387. package/src/icons/Download/Download.tsx +0 -20
  388. package/src/icons/Download/download.svg +0 -1
  389. package/src/icons/Download/index.tsx +0 -1
  390. package/src/icons/Ebike/Ebike.tsx +0 -8
  391. package/src/icons/Ebike/index.tsx +0 -1
  392. package/src/icons/Ebike/rvf_shared_e-bike.svg +0 -1
  393. package/src/icons/Elevator/Elevator.tsx +0 -16
  394. package/src/icons/Elevator/elevator-svgrepo-com.svg +0 -1
  395. package/src/icons/Elevator/index.tsx +0 -1
  396. package/src/icons/Email/Email.tsx +0 -19
  397. package/src/icons/Email/email.svg +0 -1
  398. package/src/icons/Email/index.tsx +0 -1
  399. package/src/icons/FilePdf/FilePdf.tsx +0 -19
  400. package/src/icons/FilePdf/file-pdf.svg +0 -1
  401. package/src/icons/FilePdf/index.tsx +0 -1
  402. package/src/icons/Geolocation/Geolocation.tsx +0 -19
  403. package/src/icons/Geolocation/index.tsx +0 -1
  404. package/src/icons/Geolocation/location.svg +0 -1
  405. package/src/icons/Image/Image.tsx +0 -24
  406. package/src/icons/Image/index.tsx +0 -1
  407. package/src/icons/InPerson/InPerson.tsx +0 -8
  408. package/src/icons/InPerson/index.tsx +0 -1
  409. package/src/icons/InPerson/rvf_persoenlich.svg +0 -1
  410. package/src/icons/Loading/Loading.tsx +0 -24
  411. package/src/icons/Loading/index.ts +0 -1
  412. package/src/icons/Menu/Menu.tsx +0 -32
  413. package/src/icons/Menu/index.tsx +0 -1
  414. package/src/icons/Menu/menu.svg +0 -1
  415. package/src/icons/Minus/Minus.tsx +0 -19
  416. package/src/icons/Minus/index.tsx +0 -1
  417. package/src/icons/Minus/minus-grey.svg +0 -1
  418. package/src/icons/Minus/minus.svg +0 -1
  419. package/src/icons/NoRealtime/NoRealtime.tsx +0 -44
  420. package/src/icons/NoRealtime/index.tsx +0 -1
  421. package/src/icons/NoRealtime/norealtime.svg +0 -1
  422. package/src/icons/Ok/ok-grey.svg +0 -1
  423. package/src/icons/Ok/ok.svg +0 -1
  424. package/src/icons/Plus/Plus.tsx +0 -19
  425. package/src/icons/Plus/index.tsx +0 -1
  426. package/src/icons/Plus/plus.svg +0 -1
  427. package/src/icons/Police/Police.tsx +0 -20
  428. package/src/icons/Police/index.tsx +0 -1
  429. package/src/icons/Police/polizia.png +0 -0
  430. package/src/icons/README.md +0 -52
  431. package/src/icons/Ride/Ride.tsx +0 -8
  432. package/src/icons/Ride/index.tsx +0 -1
  433. package/src/icons/Ride/rvf_shared_ride.svg +0 -1
  434. package/src/icons/Scooter/Scooter.tsx +0 -8
  435. package/src/icons/Scooter/index.tsx +0 -1
  436. package/src/icons/Scooter/rvf_shared_scooter.svg +0 -1
  437. package/src/icons/Search/Search.tsx +0 -38
  438. package/src/icons/Search/index.tsx +0 -1
  439. package/src/icons/Search/search.svg +0 -1
  440. package/src/icons/Share/Share.tsx +0 -24
  441. package/src/icons/Share/index.tsx +0 -1
  442. package/src/icons/Stack/Stack.tsx +0 -24
  443. package/src/icons/Stack/index.tsx +0 -1
  444. package/src/icons/TouchFingers/TouchFingers.tsx +0 -20
  445. package/src/icons/TouchFingers/index.tsx +0 -1
  446. package/src/icons/Tracking/Tracking.tsx +0 -29
  447. package/src/icons/Tracking/airport-14-svgrepo-com.svg +0 -1
  448. package/src/icons/Tracking/index.tsx +0 -1
  449. package/src/icons/Video/Video.tsx +0 -8
  450. package/src/icons/Video/index.tsx +0 -1
  451. package/src/icons/Video/rvf_video.svg +0 -1
  452. package/src/icons/WaitingAreas/WaitingAreas.tsx +0 -16
  453. package/src/icons/WaitingAreas/highway-rest-area-svgrepo-com.svg +0 -1
  454. package/src/icons/WaitingAreas/index.tsx +0 -1
  455. package/src/icons/WaitingAreas/wheelchair-svgrepo-com.svg +0 -1
  456. package/src/icons/Warning/Warning.tsx +0 -56
  457. package/src/icons/Warning/exported_features_20251029101203.kml +0 -20
  458. package/src/icons/Warning/index.tsx +0 -1
  459. package/src/icons/Warning/info-achtung-kreisrot-rot.svg +0 -1
  460. package/src/icons/WheelChair/WheelChair.tsx +0 -16
  461. package/src/icons/WheelChair/disabili.png +0 -0
  462. package/src/icons/WheelChair/index.tsx +0 -1
  463. package/src/icons/WheelChair/wheelchair-svgrepo-com.svg +0 -1
  464. package/src/icons/disruption-type-banner.xcf +0 -0
  465. package/src/icons/rvf_shared_ride_2.svg +0 -1
  466. package/src/icons/sbb_add_stop.png +0 -0
  467. package/src/icons/sbb_add_stop.svg +0 -1
  468. package/src/icons/sbb_alternative.png +0 -0
  469. package/src/icons/sbb_alternative.svg +0 -1
  470. package/src/icons/sbb_cancellation.png +0 -0
  471. package/src/icons/sbb_cancellation.svg +0 -1
  472. package/src/icons/sbb_construction.png +0 -0
  473. package/src/icons/sbb_construction.svg +0 -1
  474. package/src/icons/sbb_construction_banner.png +0 -0
  475. package/src/icons/sbb_delay.png +0 -0
  476. package/src/icons/sbb_delay.svg +0 -1
  477. package/src/icons/sbb_disruption.png +0 -0
  478. package/src/icons/sbb_disruption.svg +0 -1
  479. package/src/icons/sbb_disruption_banner.png +0 -0
  480. package/src/icons/sbb_info.png +0 -0
  481. package/src/icons/sbb_info.svg +0 -1
  482. package/src/icons/sbb_missed_connection.png +0 -0
  483. package/src/icons/sbb_missed_connection.svg +0 -1
  484. package/src/icons/sbb_missed_connection_banner.png +0 -0
  485. package/src/icons/sbb_platform_change.png +0 -0
  486. package/src/icons/sbb_platform_change.svg +0 -1
  487. package/src/icons/sbb_replacementbus.png +0 -0
  488. package/src/icons/sbb_replacementbus.svg +0 -1
  489. package/src/icons/sbb_replacementbus_banner.png +0 -0
  490. package/src/icons/sbb_reroute.png +0 -0
  491. package/src/icons/sbb_reroute.svg +0 -1
  492. package/src/icons/warning-banner.png +0 -0
  493. package/src/icons/warning-banner.xcf +0 -0
  494. package/src/icons/warning.png +0 -0
  495. package/src/index.tsx +0 -44
  496. package/src/indexDoc.ts +0 -35
  497. package/src/logos/00_RegioRad_Stuttgart.svg +0 -1
  498. package/src/logos/01_Call_a_bike.svg +0 -1
  499. package/src/logos/03_KVV_nextbike.svg +0 -1
  500. package/src/logos/05_VrnNextbike.svg +0 -1
  501. package/src/logos/2em_carsharing.svg +0 -1
  502. package/src/logos/CarSharing-Renningen.png +0 -0
  503. package/src/logos/aubonne-basel-pickebike.svg +0 -1
  504. package/src/logos/br_logo.svg +0 -1
  505. package/src/logos/callabike_logo.png +0 -0
  506. package/src/logos/carsharing_stadtmobil_karlsruhe_rhein_neckar.svg +0 -1
  507. package/src/logos/compte-mobilite.png +0 -0
  508. package/src/logos/deer.svg +0 -1
  509. package/src/logos/donkey_republic.png +0 -0
  510. package/src/logos/edrive_carsharing.svg +0 -1
  511. package/src/logos/flinkster_logo.png +0 -0
  512. package/src/logos/gruene-flotte-logo-1.svg +0 -1
  513. package/src/logos/gruene_flotte_logo.png +0 -0
  514. package/src/logos/lasten_velo_freiburg.png +0 -0
  515. package/src/logos/lie_mobil.svg +0 -1
  516. package/src/logos/logo-einfach-mobil-ortenau.png +0 -0
  517. package/src/logos/logo-red.svg +0 -1
  518. package/src/logos/logo_frelo_web_rgb.png +0 -0
  519. package/src/logos/logo_teilauto.png +0 -0
  520. package/src/logos/mein_konrad.svg +0 -1
  521. package/src/logos/mit_fahr_punkt.png +0 -0
  522. package/src/logos/natur_energie_logo.png +0 -0
  523. package/src/logos/natur_energie_logo.xcf +0 -0
  524. package/src/logos/publibike_logo.svg +0 -1
  525. package/src/logos/share-birrer.svg +0 -1
  526. package/src/logos/stadtmobil_suedbaden.svg +0 -1
  527. package/src/logos/stadtwerke_tauberfranken.png +0 -0
  528. package/src/logos/teilauto_biberach.png +0 -0
  529. package/src/logos/velospot_fribourg.png +0 -0
  530. package/src/logos/yoio_logo.png +0 -0
  531. package/src/logos/zeag_carsharing.png +0 -0
  532. package/src/logos/zeo_carsharing.png +0 -0
  533. package/src/logos/zeus_logo.png +0 -0
  534. package/src/logos/zeus_logo.xcf +0 -0
  535. package/src/ui/Button/Button.tsx +0 -64
  536. package/src/ui/Button/index.tsx +0 -1
  537. package/src/ui/Checkbox/Checkbox.tsx +0 -32
  538. package/src/ui/Checkbox/index.tsx +0 -1
  539. package/src/ui/IconButton/IconButton.tsx +0 -64
  540. package/src/ui/IconButton/index.tsx +0 -1
  541. package/src/ui/Input/Input.tsx +0 -24
  542. package/src/ui/Input/index.tsx +0 -1
  543. package/src/ui/InputCopy/InputCopy.tsx +0 -97
  544. package/src/ui/InputCopy/index.tsx +0 -1
  545. package/src/ui/InputSearch/InputSearch.tsx +0 -106
  546. package/src/ui/InputSearch/index.tsx +0 -1
  547. package/src/ui/Link/Link.tsx +0 -49
  548. package/src/ui/Link/index.tsx +0 -1
  549. package/src/ui/Select/Select.tsx +0 -24
  550. package/src/ui/Select/index.tsx +0 -1
  551. package/src/utils/MobilityEvent.ts +0 -22
  552. package/src/utils/applyInitialLayerVisibility.ts +0 -48
  553. package/src/utils/centerOnVehicle.ts +0 -58
  554. package/src/utils/constants.ts +0 -242
  555. package/src/utils/exportPdf.ts +0 -671
  556. package/src/utils/fullTrajectoryStyle.ts +0 -53
  557. package/src/utils/getAllLayers.ts +0 -26
  558. package/src/utils/getBgColor.ts +0 -20
  559. package/src/utils/getDelayColor.test.ts +0 -23
  560. package/src/utils/getDelayColor.ts +0 -23
  561. package/src/utils/getDelayColorForVehicle.test.ts +0 -47
  562. package/src/utils/getDelayColorForVehicle.ts +0 -27
  563. package/src/utils/getDelayString.test.ts +0 -25
  564. package/src/utils/getDelayString.ts +0 -28
  565. package/src/utils/getDelayTextForVehicle.test.ts +0 -32
  566. package/src/utils/getDelayTextForVehicle.ts +0 -25
  567. package/src/utils/getFullTrajectoryAndFit.ts +0 -41
  568. package/src/utils/getHoursAndMinutes.test.ts +0 -15
  569. package/src/utils/getHoursAndMinutes.ts +0 -22
  570. package/src/utils/getLayersAsFlatArray.ts +0 -22
  571. package/src/utils/getLinkByDevice.ts +0 -23
  572. package/src/utils/getMainColorForVehicle.test.ts +0 -25
  573. package/src/utils/getMainColorForVehicle.ts +0 -54
  574. package/src/utils/getPermalinkParameters.ts +0 -35
  575. package/src/utils/getRadius.ts +0 -46
  576. package/src/utils/getStopStatus.test.ts +0 -105
  577. package/src/utils/getStopStatus.ts +0 -171
  578. package/src/utils/getTextColor.ts +0 -10
  579. package/src/utils/getTextColorForVehicle.ts +0 -31
  580. package/src/utils/getTextFontForVehicle.test.ts +0 -7
  581. package/src/utils/getTextFontForVehicle.tsx +0 -17
  582. package/src/utils/getTextForVehicle.test.ts +0 -17
  583. package/src/utils/getTextForVehicle.ts +0 -25
  584. package/src/utils/getUrlFromTemplate.test.ts +0 -23
  585. package/src/utils/getUrlFromTemplate.ts +0 -47
  586. package/src/utils/highlightLinesNetworkPlan.ts +0 -25
  587. package/src/utils/hooks/useDebug.tsx +0 -11
  588. package/src/utils/hooks/useDeparture.tsx +0 -24
  589. package/src/utils/hooks/useFit.tsx +0 -57
  590. package/src/utils/hooks/useFitOnFeatures.tsx +0 -77
  591. package/src/utils/hooks/useI18n.tsx +0 -23
  592. package/src/utils/hooks/useInitialLayersVisiblity.tsx +0 -58
  593. package/src/utils/hooks/useInitialPermalink.tsx +0 -93
  594. package/src/utils/hooks/useLayerConfig.tsx +0 -17
  595. package/src/utils/hooks/useLayersConfig.tsx +0 -49
  596. package/src/utils/hooks/useLnp.tsx +0 -146
  597. package/src/utils/hooks/useMapContext.tsx +0 -166
  598. package/src/utils/hooks/useMocoSituation.tsx +0 -62
  599. package/src/utils/hooks/useParams.ts +0 -5
  600. package/src/utils/hooks/usePermalink.tsx +0 -25
  601. package/src/utils/hooks/useRealtimeDepartures.tsx +0 -45
  602. package/src/utils/hooks/useRealtimeRenderedTrajectory.tsx +0 -42
  603. package/src/utils/hooks/useRealtimeStation.tsx +0 -39
  604. package/src/utils/hooks/useRealtimeStopSequences.tsx +0 -43
  605. package/src/utils/hooks/useRealtimeTrainsByRouteIdentifier.tsx +0 -72
  606. package/src/utils/hooks/useRouteStop.tsx +0 -40
  607. package/src/utils/hooks/useRvfContext.tsx +0 -46
  608. package/src/utils/hooks/useScrollTo.tsx +0 -36
  609. package/src/utils/hooks/useSearchLines.tsx +0 -34
  610. package/src/utils/hooks/useSearchLnpStops.tsx +0 -38
  611. package/src/utils/hooks/useSearchStops.tsx +0 -85
  612. package/src/utils/hooks/useSearchTrains.tsx +0 -83
  613. package/src/utils/hooks/useZoom.tsx +0 -44
  614. package/src/utils/mergePublications.test.ts +0 -91
  615. package/src/utils/mergePublications.ts +0 -52
  616. package/src/utils/realtimeRVFStyle.ts +0 -523
  617. package/src/utils/sharingGraphqlUtils.ts +0 -320
  618. package/src/utils/sharingStylesUtils.ts +0 -222
  619. package/src/utils/sharingWFSUtils.ts +0 -116
  620. package/src/utils/translations.ts +0 -252
  621. package/src/utils/translationsReasons.ts +0 -716
  622. package/tailwind.config.mjs +0 -95
  623. package/testNotification.json +0 -115
  624. package/tsconfig.json +0 -12
@@ -1,381 +0,0 @@
1
- //type: "checkbox" | "date" | "select" | "textfield";
2
- import {
3
- DEFAULT_QUERYABLE_LAYERS,
4
- LAYERS_NAMES,
5
- LAYERS_WITH_LINK,
6
- MAX_EXTENT,
7
- } from "../utils/constants";
8
-
9
- // import type { LayersConfig } from "../utils/hooks/useLayerConfig";
10
-
11
- const geopsApiLink = `<a href="https://developer.geops.io/">geOps API key</a>`;
12
- const geopsMapsApiLink = `<a href="https://developer.geops.io/apis/maps">geOps Maps API</a>`;
13
- const geopsStopsApiLink = `<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>`;
14
- const geopsMocoApiLink = `<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>`;
15
- const geopsMapsetApiLink = `<a href="https://geops.com/en/solution/mapset">geOps Mapset API</a>`;
16
- const geopsRealtimeApiLink = `<a href="https://developer.geops.io/apis/realtime">geOps Realtime API</a>`;
17
-
18
- export interface WebComponentAttributeDoc {
19
- defaultValue?: string;
20
- description: string;
21
- public?: boolean;
22
- type?: "boolean" | undefined;
23
- }
24
-
25
- export type MobilityMapAttributeName =
26
- | "apikey"
27
- | "baselayer"
28
- | "center"
29
- | "details"
30
- | "embed"
31
- | "extent"
32
- | "geolocation"
33
- | "lang"
34
- | "layers"
35
- | "layersconfig"
36
- | "layertree"
37
- | "lineid"
38
- | "lnp"
39
- | "mainlink"
40
- | "mainlinktitle"
41
- | "mapset"
42
- | "mapsetplanid"
43
- | "mapsettags"
44
- | "mapsettenants"
45
- | "mapsettimestamp"
46
- | "mapseturl"
47
- | "mapsurl"
48
- | "maxextent"
49
- | "maxzoom"
50
- | "minzoom"
51
- | "mots"
52
- | "notification"
53
- | "notificationat"
54
- | "notificationid"
55
- | "notificationlang"
56
- | "notificationtenant"
57
- | "notificationurl"
58
- | "permalink"
59
- | "permalinktemplate"
60
- | "print"
61
- | "queryablelayers"
62
- | "realtime"
63
- | "realtimebboxparameters"
64
- | "realtimeresturl"
65
- | "realtimetenant"
66
- | "realtimeurl"
67
- | "runs"
68
- | "search"
69
- | "share"
70
- | "stationid"
71
- | "stopsurl"
72
- | "tenant"
73
- | "toolbar"
74
- | "trainid"
75
- | "zoom";
76
-
77
- export type MobilityMapAttributes = Record<
78
- MobilityMapAttributeName,
79
- WebComponentAttributeDoc
80
- >;
81
-
82
- const attrs: MobilityMapAttributes = {
83
- apikey: {
84
- defaultValue: "5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",
85
- description: `Your ${geopsApiLink}`,
86
- public: false,
87
- },
88
- baselayer: {
89
- defaultValue: "de.rvf_moco",
90
- description: `The style's name from the ${geopsMapsApiLink}. <br/>Ex: base_dark_v2, base_bright_v2, ...`,
91
- public: false,
92
- },
93
- center: {
94
- description:
95
- "The center of the map in EPSG:3857 coordinates.<br/>Parameter required if extent is not set.",
96
- public: true,
97
- },
98
- details: {
99
- defaultValue: "true",
100
- description:
101
- "When a feature of a queryable layer is clicked, it displays informations about it.",
102
- public: true,
103
- type: "boolean",
104
- },
105
- embed: {
106
- defaultValue: "false",
107
- description:
108
- "Toggle the embedded navigation mode.<br/>In this mode zooming with mouse wheel is deactivated and, on touch device, you can only navigate with two finger, a warning message is displayed to warn the user.",
109
- public: true,
110
- type: "boolean",
111
- },
112
- extent: {
113
- defaultValue: MAX_EXTENT.join(","),
114
- description:
115
- "The map's extent in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .<br/>Parameter required if center and zoom are not set.",
116
- public: true,
117
- },
118
- geolocation: {
119
- defaultValue: "true",
120
- description: "Toggle the display of the geolocation button or not.",
121
- public: true,
122
- type: "boolean",
123
- },
124
- lang: {
125
- defaultValue: "de",
126
- description:
127
- "The language to use for the map. Supported languages are : de, en, fr, it.",
128
- public: true,
129
- },
130
- layers: {
131
- defaultValue: null,
132
- description: `A comma separated list of layers's name to make visible on load, others are hidden. If empty, all layers will be hidden except the baselayer.<br/>Layers available are ${Object.values(LAYERS_NAMES).join(", ")}.`,
133
- public: true,
134
- },
135
- layersconfig: {
136
- description: `A JSON string to configure the layers and other components associated to it.<br/>
137
- The layers available are : ${LAYERS_WITH_LINK.toString()}.<br/>
138
- Definition for a layer :
139
- <pre style="font-size: 12px; overflow: auto;">{
140
- "liniennetz": {
141
- "link": {
142
- "href": "https://www.rvf.de/fahrtinfo/netzplan",
143
- "show": true,
144
- "text": "Zu den Liniennetzplänen"
145
- },
146
- "title": "Liniennetzpläne"
147
- }
148
- "sharedmobility": {
149
- "minZoom": 14
150
- }
151
- </pre>}
152
- <br/>
153
- where:
154
- <ul style="list-style-type: disc; padding-left: 20px;">
155
- <li><i>link</i> defined a external link displayed at the bottom of the detail view</li>
156
- <ul style="list-style-type: disc; padding-left: 40px;">
157
- <li><i>href</i> is the target of the link. The <i>href</i> can be template, for example for the meldungen layer you can use {{id}} to insert the id of the notification in the url.</li>
158
- <li><i>text</i> is the text display as a link</li>
159
- <li><i>show</i> show/hide the link in the details view</li>
160
- </ul>
161
- <li><i>featurelink</i> defined a external link used when you click on single feature in detail view</li>
162
- <ul style="list-style-type: disc; padding-left: 40px;">
163
- <li><i>href</i> is the target of the link. The <i>href</i> can be template, for example for the meldungen layer you can use {{id}} to insert the id of the notification in the url.</li>
164
- </ul>
165
- <li><i>title</i> is the title of the layer used in the details view header and in the layer tree, if not defined the layer name will be used.</li>
166
- <li><i>minZoom</i> is the minimal zoom level at which the layer is visible (only <i>${LAYERS_NAMES.sharedMobility}</i> layer).</li>
167
- </ul>`,
168
- public: true,
169
- },
170
- layertree: {
171
- defaultValue: "true",
172
- description: "Show/hide the layers tree button in the toolbar.",
173
- public: true,
174
- type: "boolean",
175
- },
176
- lineid: {
177
- description: `An id or a short/long name of a line to highlight. <br/>Ex: S1`,
178
- public: false,
179
- },
180
- lnp: {
181
- defaultValue: "true",
182
- description: `Add the linesnetworkplans layer to the map. This layer will display lines network plans on the map.`,
183
- public: false,
184
- type: "boolean",
185
- },
186
- mainlink: {
187
- description:
188
- "A link displayed on bottom left of the map. The link can be a template, for example you can use {{x}} {{y}} {{z}} to insert the current position of the map in the url.<br/>Ex: http://mywebsite/mypage#map/{{x}}/{{y}}/{{z}}.",
189
- public: true,
190
- },
191
- mainlinktitle: {
192
- description: "A title for the mainlink, used as tooltip.",
193
- public: true,
194
- },
195
- mapset: {
196
- defaultValue: "false",
197
- description: `Add the mapset layer to the map. This layer will display mapset plans on the map. By default, it will load only the standard plans valid at the current time.`,
198
- public: true,
199
- type: "boolean",
200
- },
201
- mapsetplanid: {
202
- description:
203
- "An id of the mapset plan to display. Mostly for debugging purposes.",
204
- public: false,
205
- },
206
- mapsettags: {
207
- description: `The ${geopsMapsetApiLink} tags to get the plans from.`,
208
- public: true,
209
- },
210
- mapsettenants: {
211
- defaultValue: "rvf",
212
- description: `The ${geopsMapsetApiLink} tenant to get the plans from.`,
213
- public: false,
214
- },
215
- mapsettimestamp: {
216
- description: `The ${geopsMapsetApiLink} timestamp used to load valid standard plan. If not defined it will use the current time.`,
217
- public: true,
218
- },
219
- mapseturl: {
220
- defaultValue: "https://editor.mapset.io/api/v1/",
221
- description: `The ${geopsMapsetApiLink} url to use.`,
222
- public: true,
223
- },
224
- mapsurl: {
225
- defaultValue: "https://maps.geops.io",
226
- description: `The ${geopsMapsApiLink} url to use.`,
227
- public: false,
228
- },
229
- maxextent: {
230
- defaultValue: MAX_EXTENT.join(","),
231
- description:
232
- "The maximum extent of the map in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .",
233
- public: true,
234
- },
235
- maxzoom: {
236
- defaultValue: "20",
237
- description: "The maximal zoom level of the map.",
238
- public: true,
239
- },
240
- minzoom: {
241
- description: "The minimal zoom level of the map.",
242
- public: true,
243
- },
244
- mots: {
245
- description:
246
- "Commas separated list of mots to display on the Realtime layer.<br/>Ex: rail,bus,coach,foot,tram,subway,gondola,funicular,ferry,car .",
247
- public: false,
248
- },
249
- notification: {
250
- defaultValue: "true",
251
- description: `Add the notification layer to the map. This layer will display informations about disruptions on the network. Data comes from
252
- our ${geopsMocoApiLink} .`,
253
- public: true,
254
- type: "boolean",
255
- },
256
- notificationat: {
257
- description:
258
- "An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",
259
- public: false,
260
- },
261
- notificationid: {
262
- description: `An id of a notification to show details of.`,
263
- public: false,
264
- },
265
- notificationlang: {
266
- defaultValue: "en,de,fr",
267
- description:
268
- "A comma separated list of languages supported by the notification, if a textual content is not available in the current lang it will try to display the content in one of these languages. Order is important. <br/>Supported languages are: en,de,fr,it",
269
- public: true,
270
- },
271
- notificationtenant: {
272
- defaultValue: "rvf",
273
- description: `The ${geopsMocoApiLink} tenant to get the notification from.`,
274
- public: false,
275
- },
276
- notificationurl: {
277
- defaultValue: "https://moco.geops.io/api/v2/",
278
- description: `The ${geopsMocoApiLink} url to use.`,
279
- public: false,
280
- },
281
- permalink: {
282
- defaultValue: "false",
283
- description:
284
- "if true, the current browser window url will be updated automatically with the parameters defined in the `permalinktemplate` attribute.",
285
- public: true,
286
- type: "boolean",
287
- },
288
- permalinktemplate: {
289
- defaultValue: "#map/{{x}}/{{y}}/{{z}}",
290
- description: `A template string to read the current browser url. Hash (starting with #) and URL search parameters (starting with ?) are supported.<br/>
291
- The template supports {{x}}, {{y}}, {{z}} and {{layers}} variables.<br/>
292
- Ex: "?x={{x}}&y={{y}}&z={{z}}" or "#map/{{x}}/{{y}}/{{z}}" .`,
293
- public: true,
294
- },
295
- print: {
296
- defaultValue: "true",
297
- description: "Show/hide the print button in the toolbar.",
298
- public: true,
299
- type: "boolean",
300
- },
301
- queryablelayers: {
302
- defaultValue: DEFAULT_QUERYABLE_LAYERS.toString(),
303
- description: `A comma separated list of layers's name. The data of these layers will be queryable by click on the map (see selectedfeature event). If empty, all layers will not be queryable.<br/>
304
- Layers available are ${Object.values(LAYERS_NAMES).join(", ")}`,
305
- public: true,
306
- },
307
- realtime: {
308
- defaultValue: "true",
309
- description: `Add the realtime layer to the map. Data comes from the ${geopsRealtimeApiLink} .`,
310
- public: false,
311
- type: "boolean",
312
- },
313
- realtimebboxparameters: {
314
- defaultValue: "line_tags=RVF",
315
- description:
316
- "A space separated list of parameters to add to the realtime BBOX request to define custom behavior.<br/>Ex: graph=XXX line_tags=XXX.",
317
- public: false,
318
- },
319
- realtimeresturl: {
320
- defaultValue: "https://api.geops.io/tracker-http/v1/",
321
- description: `The ${geopsRealtimeApiLink} REST API url to use for fetching infos about realtime data.`,
322
- public: false,
323
- },
324
- realtimetenant: {
325
- description: `The ${geopsRealtimeApiLink} tenant to get the realtime data from.`,
326
- public: false,
327
- },
328
- realtimeurl: {
329
- defaultValue: "wss://api.geops.io/tracker-ws/v1/ws",
330
- description: `The ${geopsRealtimeApiLink} url to use.`,
331
- public: false,
332
- },
333
- runs: {
334
- defaultValue: "false",
335
- description:
336
- "Shows the number of trips on a line in the sidebar, use only for debugging.",
337
- public: true,
338
- type: "boolean",
339
- },
340
- search: {
341
- defaultValue: "false",
342
- description: "Toggle the search stops input.",
343
- public: true,
344
- type: "boolean",
345
- },
346
- share: {
347
- defaultValue: "true",
348
- description: "Show/hide the share button in the toolbar.",
349
- public: true,
350
- type: "boolean",
351
- },
352
- stationid: {
353
- description: `An id or a short/long name of a station to show details of.`,
354
- public: false,
355
- },
356
- stopsurl: {
357
- defaultValue: "https://api.geops.io/stops/v1/",
358
- description: `The ${geopsStopsApiLink} to use.`,
359
- public: false,
360
- },
361
- tenant: {
362
- description: `The tenant to use by default for all geOps APIs (Stops, Realtime, MOCO ...). Can be override for each API by other XXXXtenant parameters.`,
363
- public: false,
364
- },
365
- toolbar: {
366
- defaultValue: "true",
367
- description: "Show/hide the toolbar on the top left.",
368
- public: true,
369
- type: "boolean",
370
- },
371
- trainid: {
372
- description: `An id of a route to highlight on the map and to show details of.`,
373
- public: false,
374
- },
375
- zoom: {
376
- description: "The zoom level of the map.",
377
- public: true,
378
- },
379
- };
380
-
381
- export default attrs;
@@ -1,53 +0,0 @@
1
- export interface WebComponentEventDoc {
2
- description: string;
3
- public?: boolean;
4
- }
5
-
6
- export type MobilityMapEventName =
7
- | "mwc:attribute"
8
- | "mwc:messageready"
9
- | "mwc:permalink"
10
- | "mwc:selectedfeature"
11
- | "mwc:singleclick"
12
- | "mwc:stopssearchselect";
13
-
14
- export type MobilityMapEvents = Record<
15
- MobilityMapEventName,
16
- WebComponentEventDoc
17
- >;
18
-
19
- const attrs: MobilityMapEvents = {
20
- "mwc:attribute": {
21
- description:
22
- "Event fired when an web component's attribute is changed. The event data contains the list of all attributes and their values.",
23
- public: false,
24
- },
25
- "mwc:messageready": {
26
- description:
27
- "Only if the web-component is embedded in an iframe. Message event fired when the web component is ready to receive messages from parent window.",
28
-
29
- public: false,
30
- },
31
- "mwc:permalink": {
32
- description:
33
- "Event fired when the map's state changes. The event data contains the permalink URL search parameters as string.",
34
- public: false,
35
- },
36
- "mwc:selectedfeature": {
37
- description:
38
- "Event fired when a feature is selected on the map. The event data contains the selected feature in GeoJSON format.",
39
- public: true,
40
- },
41
- "mwc:singleclick": {
42
- description:
43
- "Event fired when the map is clicked. The event data contains the map coordinates in EPSG:3857 and the pixel coordinates.",
44
- public: false,
45
- },
46
- "mwc:stopssearchselect": {
47
- description:
48
- "Only when search attribute is 'true'. Event fired when a stop is selected in the stops search results. The event data contains the selected stop.",
49
- public: false,
50
- },
51
- };
52
-
53
- export default attrs;
File without changes
@@ -1,2 +0,0 @@
1
- export { default } from "../RvfMobilityMap";
2
- export { default as MobilityMapAttributes } from "./MobilityMapAttributes";
@@ -1,153 +0,0 @@
1
- import { MocoAPI } from "mobility-toolbox-js/ol";
2
- import { SeverityEnumeration } from "mobility-toolbox-js/types";
3
- import { memo, useEffect, useMemo, useState } from "preact/compat";
4
-
5
- import I18n from "../I18n";
6
- import SituationDetails from "../SituationDetails";
7
- import { MAX_EXTENT } from "../utils/constants";
8
-
9
- import MobilityNotificationsAttributes from "./MobilityNotificationsAttributes";
10
-
11
- // @ts-expect-error tailwind must be added for the search web component
12
- import tailwind from "../style.css";
13
-
14
- import type { SituationType } from "mobility-toolbox-js/types";
15
-
16
- import type { MobilityNotificationsAttributeName } from "./MobilityNotificationsAttributes";
17
-
18
- export type MobilityNotificationsProps = Record<
19
- MobilityNotificationsAttributeName,
20
- null | string | undefined
21
- >;
22
-
23
- const severityOrder = {
24
- [SeverityEnumeration.NoImpact]: 2,
25
- [SeverityEnumeration.Normal]: 5,
26
- [SeverityEnumeration.Severe]: 6,
27
- [SeverityEnumeration.Slight]: 4,
28
- [SeverityEnumeration.Undefined]: 1,
29
- [SeverityEnumeration.Unknown]: 0,
30
- [SeverityEnumeration.VerySevere]: 7,
31
- [SeverityEnumeration.VerySlight]: 3,
32
- };
33
-
34
- function MobilityNotifications({
35
- apikey,
36
- lang,
37
- notificationlang,
38
- notificationtenant,
39
- notificationurl,
40
- }: MobilityNotificationsProps) {
41
- const [situations, setSituations] = useState<SituationType[]>([]);
42
-
43
- // Define fallback languages from the notificationlang attribute
44
- const fallbackLangs = useMemo(() => {
45
- return (
46
- notificationlang?.split(",").map((l) => {
47
- return l.trim();
48
- }) || []
49
- );
50
- }, [notificationlang]);
51
-
52
- useEffect(() => {
53
- new MocoAPI({
54
- apiKey: apikey || undefined,
55
- tenant: notificationtenant,
56
- url: notificationurl,
57
- })
58
- .export({
59
- bbox: MAX_EXTENT,
60
- contentMedium: true,
61
- includeGeoms: false,
62
- includeLines: true,
63
- includeStops: true,
64
- // isEdited: true,
65
- publicNow: true, // improve caching efficiency compare to use of publicAt
66
- })
67
- .then((data) => {
68
- if (data?.paginatedSituations?.results) {
69
- setSituations(data.paginatedSituations.results);
70
- }
71
- })
72
- .catch((e) => {
73
- // eslint-disable-next-line no-console
74
- console.error(e);
75
- });
76
- }, [apikey, notificationurl, notificationtenant]);
77
-
78
- return (
79
- <I18n locale={lang}>
80
- <style>{tailwind}</style>
81
- <div className="flex w-full flex-col gap-6">
82
- {situations
83
- ?.sort((a, b) => {
84
- // sort by startDate, because of the TimeOffset we have to convert to date object
85
- // TODO the sort by date should be done server side
86
- const startDateA = a.affectedTimeIntervalsStart;
87
- const startDateB = b.affectedTimeIntervalsStart;
88
- if (startDateA && startDateB) {
89
- const dateA = new Date(startDateA);
90
- const dateB = new Date(startDateB);
91
- // If they start the same day we sort by severity
92
- if (
93
- dateA.getDate() === dateB.getDate() &&
94
- dateA.getMonth() === dateB.getMonth() &&
95
- dateA.getFullYear() === dateB.getFullYear()
96
- ) {
97
- // Sort by severity;
98
- const severityA =
99
- a.publications.find((pub) => {
100
- return !!pub.severity;
101
- })?.severity || 0;
102
- const severityB =
103
- b.publications.find((pub) => {
104
- return !!pub.severity;
105
- })?.severity || 0;
106
- return severityOrder[severityA] > severityOrder[severityB]
107
- ? -1
108
- : 1;
109
- }
110
- return startDateA < startDateB ? 1 : -1;
111
- }
112
-
113
- if (!startDateA) {
114
- return -1;
115
- }
116
-
117
- if (!startDateB) {
118
- return 1;
119
- }
120
- })
121
- .map((situation) => {
122
- return (
123
- <SituationDetails
124
- canToggle={true}
125
- fallbackLangs={fallbackLangs}
126
- headerClassName="text-rvf-h3 font-semibold"
127
- iconClassName="w-8 h-8 text-red"
128
- key={situation.id}
129
- reasonClassName="hidden"
130
- situation={situation}
131
- timeIntervalClassName="pl-1 text-base py-3 font-semibold text-balance"
132
- useShortMonth={false}
133
- ></SituationDetails>
134
- );
135
- })}
136
- </div>
137
- </I18n>
138
- );
139
- }
140
-
141
- // We creates a wrapper to inject the default props values from MobilityMapAttributes.
142
- const defaultProps = {};
143
- Object.entries(MobilityNotificationsAttributes).forEach(([key]) => {
144
- defaultProps[key] = MobilityNotificationsAttributes[key].defaultValue || null;
145
- });
146
-
147
- function MobilityNotificationsWithDefaultProps(
148
- props: MobilityNotificationsProps,
149
- ) {
150
- return <MobilityNotifications {...defaultProps} {...props} />;
151
- }
152
-
153
- export default memo(MobilityNotificationsWithDefaultProps);
@@ -1,35 +0,0 @@
1
- import mapAttributes from "../MobilityMap/MobilityMapAttributes";
2
-
3
- import attributes from "./MobilityNotificationsAttributes";
4
-
5
- describe("MobilityMapAttributes", () => {
6
- Object.entries(attributes).forEach(([key, value]) => {
7
- test(`${key} has a description`, () => {
8
- expect(value.description).toBeDefined();
9
- });
10
-
11
- if (value.type === "boolean") {
12
- test(`${key} has a defaultValue for boolean`, () => {
13
- expect(value.defaultValue).toMatch(/^(true|false)$/);
14
- });
15
- }
16
-
17
- if (value.defaultValue === "true" || value.defaultValue === "false") {
18
- test(`${key} is boolean when defaultValue is true or false`, () => {
19
- expect(value.type).toBe("boolean");
20
- });
21
- }
22
- });
23
- describe("default values are set correctly", () => {
24
- test("apiKey attribute is properly set", () => {
25
- expect(attributes.apikey.defaultValue).toBe(
26
- "5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",
27
- );
28
- });
29
- test("apiKey attribute is the same as the MobilityMap attribute", () => {
30
- expect(attributes.apikey.defaultValue).toBe(
31
- mapAttributes.apikey.defaultValue,
32
- );
33
- });
34
- });
35
- });
@@ -1,53 +0,0 @@
1
- import type { WebComponentAttributeDoc } from "../MobilityMap/MobilityMapAttributes";
2
-
3
- const geopsApiLink = `<a href="https://developer.geops.io/">geOps API key</a>`;
4
- const geopsMocoApiLink = `<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>`;
5
-
6
- export type MobilityNotificationsAttributeName =
7
- | "apikey"
8
- | "lang"
9
- | "notificationat"
10
- | "notificationlang"
11
- | "notificationtenant"
12
- | "notificationurl";
13
-
14
- export type MobilityNotificationsAttributes = Record<
15
- MobilityNotificationsAttributeName,
16
- WebComponentAttributeDoc
17
- >;
18
-
19
- const attrs: MobilityNotificationsAttributes = {
20
- apikey: {
21
- defaultValue: "5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",
22
- description: `Your ${geopsApiLink}`,
23
- public: false,
24
- },
25
- lang: {
26
- defaultValue: "de",
27
- description: "The language to use for the notifications.",
28
- public: true,
29
- },
30
- notificationat: {
31
- description:
32
- "An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",
33
- public: false,
34
- },
35
- notificationlang: {
36
- defaultValue: "en,de,fr",
37
- description:
38
- "A comma separated list of languages supported by the notification, if a textual content is not available in the current lang it will try to display the content in one of these languages. Order is important. <br/>Supported languages are: en,de,fr,it",
39
- public: true,
40
- },
41
- notificationtenant: {
42
- defaultValue: "rvf",
43
- description: `The ${geopsMocoApiLink} tenant to get the notification from.`,
44
- public: false,
45
- },
46
- notificationurl: {
47
- defaultValue: "https://moco.geops.io/api/v2/",
48
- description: `The ${geopsMocoApiLink} url to use.`,
49
- public: false,
50
- },
51
- };
52
-
53
- export default attrs;
@@ -1,2 +0,0 @@
1
- export { default } from "./MobilityNotifications";
2
- export { default as MobilityNotificationsAttributes } from "./MobilityNotificationsAttributes";