@geops/rvf-mobility-web-component 0.1.127-beta.0 → 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 (623) 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/index.js +21 -0
  13. package/dist/indexDoc.js +1 -0
  14. package/dist/jpeg-IRWWL5ZF.js +1 -0
  15. package/dist/lerc-NVL4MKRG.js +6 -0
  16. package/dist/lzw-EHQHNZB6.js +1 -0
  17. package/dist/packbits-PQSBS4GQ.js +1 -0
  18. package/dist/purify.es-4R37HRTQ.js +7 -0
  19. package/dist/raw-OK63VTT6.js +1 -0
  20. package/dist/webimage-DLGKDXZD.js +1 -0
  21. package/dist/zstd-JFJYRN7P.js +1 -0
  22. package/package.json +5 -2
  23. package/.fixpackrc +0 -21
  24. package/.github/CODEOWNERS +0 -37
  25. package/.github/workflows/conventional-pr-title.yml +0 -36
  26. package/.husky/commit-msg +0 -1
  27. package/.husky/post-checkout +0 -1
  28. package/.husky/post-merge +0 -1
  29. package/.husky/post-rebase +0 -1
  30. package/.husky/pre-commit +0 -1
  31. package/.lintstagedrc.js +0 -13
  32. package/.nvmrc +0 -1
  33. package/.prettierrc.js +0 -3
  34. package/Logo.svg +0 -10
  35. package/__mocks__/dataurl.js +0 -11
  36. package/__mocks__/mapbox-gl.js +0 -19
  37. package/commitlint.config.cjs +0 -1
  38. package/doc/.eslintrc.json +0 -3
  39. package/doc/.fixpackrc +0 -21
  40. package/doc/.prettierrc +0 -1
  41. package/doc/README.md +0 -14
  42. package/doc/next.config.mjs +0 -8
  43. package/doc/package.json +0 -44
  44. package/doc/postcss.config.mjs +0 -8
  45. package/doc/public/README.md +0 -1
  46. package/doc/src/app/components/GeopsAPIKeyLink.tsx +0 -6
  47. package/doc/src/app/components/GeopsAPIsLink.tsx +0 -6
  48. package/doc/src/app/components/GeopsMapsAPILink.tsx +0 -8
  49. package/doc/src/app/components/GeopsMobility.tsx +0 -23
  50. package/doc/src/app/components/GeopsMobilityDoc.tsx +0 -39
  51. package/doc/src/app/components/GeopsMobilitySearch.tsx +0 -22
  52. package/doc/src/app/components/GeopsMobilitySearchDoc.tsx +0 -33
  53. package/doc/src/app/components/GeopsRealtimeAPILink.tsx +0 -10
  54. package/doc/src/app/components/GeopsStopsAPILink.tsx +0 -8
  55. package/doc/src/app/components/Link.tsx +0 -9
  56. package/doc/src/app/components/WebComponentDoc.tsx +0 -284
  57. package/doc/src/app/favicon.ico +0 -0
  58. package/doc/src/app/geops-mobility/page.tsx +0 -11
  59. package/doc/src/app/geops-mobility-search/page.tsx +0 -11
  60. package/doc/src/app/globals.css +0 -58
  61. package/doc/src/app/hooks/useAttrFromUrlParams.ts +0 -21
  62. package/doc/src/app/hooks/useIsFullScreen.ts +0 -14
  63. package/doc/src/app/hooks/usePublicKey.ts +0 -19
  64. package/doc/src/app/layout.tsx +0 -53
  65. package/doc/src/app/page.tsx +0 -86
  66. package/doc/src/geops-ui.ts +0 -3
  67. package/doc/tsconfig.json +0 -41
  68. package/docutils.js +0 -417
  69. package/eslint.config.mjs +0 -34
  70. package/favicon.ico +0 -0
  71. package/fonts/source-sans-3/source-sans-3-v15-latin-500.ttf +0 -0
  72. package/fonts/source-sans-3/source-sans-3-v15-latin-500.woff2 +0 -0
  73. package/fonts/source-sans-3/source-sans-3-v15-latin-600.ttf +0 -0
  74. package/fonts/source-sans-3/source-sans-3-v15-latin-600.woff2 +0 -0
  75. package/fonts/source-sans-3/source-sans-3-v15-latin-700.ttf +0 -0
  76. package/fonts/source-sans-3/source-sans-3-v15-latin-700.woff2 +0 -0
  77. package/fonts/source-sans-3/source-sans-3-v15-latin-regular.ttf +0 -0
  78. package/fonts/source-sans-3/source-sans-3-v15-latin-regular.woff2 +0 -0
  79. package/global.d.ts +0 -9
  80. package/iframe.html +0 -233
  81. package/index.html +0 -147
  82. package/index.js +0 -4343
  83. package/indexDoc.js +0 -37
  84. package/input.css +0 -59
  85. package/jest-setup.js +0 -13
  86. package/jest.config.js +0 -17
  87. package/notifications.html +0 -144
  88. package/scripts/build.mjs +0 -17
  89. package/scripts/dev.mjs +0 -30
  90. package/search.html +0 -122
  91. package/src/BaseLayer/BaseLayer.tsx +0 -61
  92. package/src/BaseLayer/index.tsx +0 -1
  93. package/src/Copyright/Copyright.tsx +0 -51
  94. package/src/Copyright/index.tsx +0 -1
  95. package/src/DebugDeparture/DebugDeparture.tsx +0 -120
  96. package/src/DebugDeparture/index.tsx +0 -1
  97. package/src/DebugStop/DebugStop.tsx +0 -47
  98. package/src/DebugStop/index.tsx +0 -1
  99. package/src/Departure/Departure.tsx +0 -57
  100. package/src/Departure/index.tsx +0 -1
  101. package/src/EmbedNavigation/DragPanWarning.ts +0 -133
  102. package/src/EmbedNavigation/EmbedNavigation.tsx +0 -89
  103. package/src/EmbedNavigation/index.js +0 -1
  104. package/src/EmbedNavigation/index.tsx +0 -1
  105. package/src/ExportMenu/ExportMenu.tsx +0 -114
  106. package/src/ExportMenu/index.tsx +0 -1
  107. package/src/ExportMenuButton/ExportMenuButton.tsx +0 -33
  108. package/src/ExportMenuButton/index.tsx +0 -1
  109. package/src/FeatureDetails/FeatureDetails.tsx +0 -62
  110. package/src/FeatureDetails/index.ts +0 -1
  111. package/src/FeaturesInfosListener/FeaturesInfosListener.tsx +0 -142
  112. package/src/FeaturesInfosListener/index.tsx +0 -1
  113. package/src/GeolocationButton/GeolocationButton.tsx +0 -78
  114. package/src/GeolocationButton/index.tsx +0 -1
  115. package/src/I18n/I18n.tsx +0 -38
  116. package/src/I18n/index.tsx +0 -1
  117. package/src/LayerTree/LayerTree.tsx +0 -58
  118. package/src/LayerTree/TreeItem/TreeItem.tsx +0 -153
  119. package/src/LayerTree/TreeItem/index.tsx +0 -1
  120. package/src/LayerTree/index.tsx +0 -1
  121. package/src/LayerTree/layersTreeContext.ts +0 -4
  122. package/src/LayerTree/layersTreeReducer.ts +0 -158
  123. package/src/LayerTreeButton/LayerTreeButton.tsx +0 -33
  124. package/src/LayerTreeButton/index.tsx +0 -1
  125. package/src/LayerTreeMenu/LayerTreeMenu.tsx +0 -147
  126. package/src/LayerTreeMenu/index.tsx +0 -1
  127. package/src/LayoutState/LayoutState.tsx +0 -380
  128. package/src/LayoutState/index.tsx +0 -1
  129. package/src/LinesNetworkPlanDetails/LinesNetworkPlanDetails.tsx +0 -274
  130. package/src/LinesNetworkPlanDetails/index.tsx +0 -1
  131. package/src/LinesNetworkPlanLayer/LinesNetworkPlanLayer.tsx +0 -51
  132. package/src/LinesNetworkPlanLayer/index.tsx +0 -1
  133. package/src/LinesNetworkPlanLayerHighlight/LinesNetworkPlanLayerHighlight.tsx +0 -59
  134. package/src/LinesNetworkPlanLayerHighlight/index.tsx +0 -1
  135. package/src/Map/Map.tsx +0 -166
  136. package/src/Map/index.tsx +0 -1
  137. package/src/MapDispatchEvents/MapDispatchEvents.tsx +0 -87
  138. package/src/MapDispatchEvents/index.tsx +0 -1
  139. package/src/MapLayout/MapLayout.tsx +0 -172
  140. package/src/MapLayout/index.tsx +0 -1
  141. package/src/MapsetLayer/MapsetLayer.tsx +0 -111
  142. package/src/MapsetLayer/index.tsx +0 -1
  143. package/src/MobilityMap/MobilityMap.tsx +0 -338
  144. package/src/MobilityMap/MobilityMapAttributes.test.ts +0 -59
  145. package/src/MobilityMap/MobilityMapAttributes.ts +0 -381
  146. package/src/MobilityMap/MobilityMapEvents.ts +0 -53
  147. package/src/MobilityMap/index.css +0 -0
  148. package/src/MobilityMap/index.tsx +0 -2
  149. package/src/MobilityNotifications/MobilityNotifications.tsx +0 -153
  150. package/src/MobilityNotifications/MobilityNotificationsAttributes.test.ts +0 -35
  151. package/src/MobilityNotifications/MobilityNotificationsAttributes.ts +0 -53
  152. package/src/MobilityNotifications/index.ts +0 -2
  153. package/src/MobilitySearch/MobilitySearch.tsx +0 -35
  154. package/src/MobilitySearch/MobilitySearchAttributes.test.ts +0 -21
  155. package/src/MobilitySearch/MobilitySearchAttributes.ts +0 -87
  156. package/src/MobilitySearch/MobilitySearchEvents.ts +0 -21
  157. package/src/MobilitySearch/index.ts +0 -2
  158. package/src/NotificationDetails/NotificationDetails.tsx +0 -309
  159. package/src/NotificationDetails/index.ts +0 -1
  160. package/src/NotificationsLayer/NotificationsLayer.tsx +0 -118
  161. package/src/NotificationsLayer/index.tsx +0 -1
  162. package/src/Overlay/Overlay.tsx +0 -61
  163. package/src/Overlay/index.tsx +0 -1
  164. package/src/OverlayContent/OverlayContent.tsx +0 -101
  165. package/src/OverlayContent/index.ts +0 -1
  166. package/src/OverlayDetails/OverlayDetails.tsx +0 -93
  167. package/src/OverlayDetails/index.ts +0 -1
  168. package/src/OverlayDetailsFooter/OverlayDetailsFooter.tsx +0 -50
  169. package/src/OverlayDetailsFooter/index.tsx +0 -1
  170. package/src/OverlayDetailsHeader/OverlayDetailsHeader.tsx +0 -30
  171. package/src/OverlayDetailsHeader/index.ts +0 -1
  172. package/src/OverlayFooter/OverlayFooter.tsx +0 -42
  173. package/src/OverlayFooter/index.tsx +0 -1
  174. package/src/OverlayHeader/OverlayHeader.tsx +0 -44
  175. package/src/OverlayHeader/index.tsx +0 -1
  176. package/src/Permalink/Permalink.tsx +0 -89
  177. package/src/Permalink/index.tsx +0 -1
  178. package/src/PermalinkInput/PermalinkInput.tsx +0 -33
  179. package/src/PermalinkInput/index.tsx +0 -1
  180. package/src/RealtimeLayer/RealtimeLayer.tsx +0 -299
  181. package/src/RealtimeLayer/index.tsx +0 -1
  182. package/src/RouteDestination/RouteDestination.test.tsx +0 -13
  183. package/src/RouteDestination/RouteDestination.tsx +0 -15
  184. package/src/RouteDestination/index.tsx +0 -1
  185. package/src/RouteFollowingButton/RouteFollowingButton.tsx +0 -30
  186. package/src/RouteFollowingButton/index.tsx +0 -1
  187. package/src/RouteIcon/RouteIcon.tsx +0 -99
  188. package/src/RouteIcon/index.tsx +0 -1
  189. package/src/RouteIdentifier/RouteIdentifer.tsx +0 -36
  190. package/src/RouteIdentifier/index.tsx +0 -1
  191. package/src/RouteInfos/RouteInfos.tsx +0 -26
  192. package/src/RouteInfos/index.tsx +0 -1
  193. package/src/RouteSchedule/RouteSchedule.tsx +0 -59
  194. package/src/RouteSchedule/firstStation.png +0 -0
  195. package/src/RouteSchedule/index.tsx +0 -1
  196. package/src/RouteSchedule/lastStation.png +0 -0
  197. package/src/RouteSchedule/line.png +0 -0
  198. package/src/RouteSchedule/station.png +0 -0
  199. package/src/RouteScheduleFooter/RouteScheduleFooter.tsx +0 -46
  200. package/src/RouteScheduleFooter/index.tsx +0 -1
  201. package/src/RouteScheduleHeader/RouteScheduleHeader.tsx +0 -23
  202. package/src/RouteScheduleHeader/index.tsx +0 -1
  203. package/src/RouteStop/RouteStop.tsx +0 -108
  204. package/src/RouteStop/index.tsx +0 -1
  205. package/src/RouteStopDelay/RouteStopDelay.tsx +0 -37
  206. package/src/RouteStopDelay/index.tsx +0 -1
  207. package/src/RouteStopName/RouteStopName.tsx +0 -24
  208. package/src/RouteStopName/index.tsx +0 -1
  209. package/src/RouteStopPlatform/RouteStopPlatform.tsx +0 -27
  210. package/src/RouteStopPlatform/index.tsx +0 -1
  211. package/src/RouteStopProgress/RouteStopProgress.tsx +0 -100
  212. package/src/RouteStopProgress/index.tsx +0 -1
  213. package/src/RouteStopServices/RouteStopServices.tsx +0 -26
  214. package/src/RouteStopServices/index.tsx +0 -1
  215. package/src/RouteStopStation/RouteStopStation.tsx +0 -38
  216. package/src/RouteStopStation/index.tsx +0 -1
  217. package/src/RouteStopTime/RouteStopTime.tsx +0 -35
  218. package/src/RouteStopTime/index.tsx +0 -1
  219. package/src/RvfButton/RvfButton.tsx +0 -57
  220. package/src/RvfButton/index.tsx +0 -1
  221. package/src/RvfCheckbox/RvfCheckbox.tsx +0 -31
  222. package/src/RvfCheckbox/index.tsx +0 -1
  223. package/src/RvfCopyright/RvfCopyright.tsx +0 -36
  224. package/src/RvfCopyright/index.tsx +0 -1
  225. package/src/RvfFeatureDetails/RvfFeatureDetails.tsx +0 -46
  226. package/src/RvfFeatureDetails/RvfLineNetworkDetails/RvfLineNetworkDetails.tsx +0 -292
  227. package/src/RvfFeatureDetails/RvfLineNetworkDetails/index.js +0 -1
  228. package/src/RvfFeatureDetails/RvfNotificationDetails/RvfNotificationDetails.tsx +0 -36
  229. package/src/RvfFeatureDetails/RvfNotificationDetails/index.ts +0 -1
  230. package/src/RvfFeatureDetails/RvfSellingPointDetails/RvfSellingPointDetails.tsx +0 -50
  231. package/src/RvfFeatureDetails/RvfSellingPointDetails/index.js +0 -1
  232. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/FloatingVehiclesDetails.tsx +0 -74
  233. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/FloatingVehiclesDetails/index.tsx +0 -1
  234. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/RvfSharedMobilityDetails.tsx +0 -134
  235. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/StationDetails.tsx +0 -84
  236. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/StationDetails/index.tsx +0 -1
  237. package/src/RvfFeatureDetails/RvfSharedMobilityDetail/index.tsx +0 -1
  238. package/src/RvfFeatureDetails/index.tsx +0 -1
  239. package/src/RvfIconButton/RvfIconButton.tsx +0 -49
  240. package/src/RvfIconButton/index.tsx +0 -1
  241. package/src/RvfInputCopy/RvfInputCopy.tsx +0 -67
  242. package/src/RvfInputCopy/index.tsx +0 -1
  243. package/src/RvfLink/RvfLink.tsx +0 -54
  244. package/src/RvfLink/index.tsx +0 -1
  245. package/src/RvfMainLinkButton/RvfMainLinkButton.tsx +0 -62
  246. package/src/RvfMainLinkButton/index.tsx +0 -1
  247. package/src/RvfMapLayout/RvfMapLayout.tsx +0 -202
  248. package/src/RvfMapLayout/index.tsx +0 -1
  249. package/src/RvfMobilityMap/RvfMobilityMap.tsx +0 -58
  250. package/src/RvfMobilityMap/index.css +0 -13
  251. package/src/RvfMobilityMap/index.tsx +0 -1
  252. package/src/RvfModal/RvfModal.tsx +0 -53
  253. package/src/RvfModal/index.tsx +0 -1
  254. package/src/RvfOpenStrikeNotification/RvfOpenStrikeNotification.tsx +0 -120
  255. package/src/RvfOpenStrikeNotification/index.tsx +0 -1
  256. package/src/RvfOverlayHeader/RvfOverlayHeader.tsx +0 -43
  257. package/src/RvfOverlayHeader/index.tsx +0 -1
  258. package/src/RvfPoisLayer/RvfPoisLayer.tsx +0 -48
  259. package/src/RvfPoisLayer/index.tsx +0 -1
  260. package/src/RvfRadioButton/RvfRadioButton.tsx +0 -16
  261. package/src/RvfRadioButton/index.tsx +0 -1
  262. package/src/RvfRealtimeLayer/RvfRealtimeLayer.tsx +0 -77
  263. package/src/RvfRealtimeLayer/index.tsx +0 -1
  264. package/src/RvfRouteIcon/RvfRouteIcon.tsx +0 -10
  265. package/src/RvfRouteIcon/index.tsx +0 -1
  266. package/src/RvfSearch/RvfSearch.tsx +0 -34
  267. package/src/RvfSearch/index.tsx +0 -1
  268. package/src/RvfSelect/RvfSelect.tsx +0 -24
  269. package/src/RvfSelect/index.tsx +0 -1
  270. package/src/RvfSelectedFeatureHighlightLayer/RvfSelectedFeatureHighlightLayer.tsx +0 -101
  271. package/src/RvfSelectedFeatureHighlightLayer/index.tsx +0 -1
  272. package/src/RvfSellingPointsLayer/RvfSellingPointsLayer.tsx +0 -67
  273. package/src/RvfSellingPointsLayer/index.tsx +0 -1
  274. package/src/RvfSharedMobilityLayerGroup/RvfSharedMobilityLayerGroup.tsx +0 -479
  275. package/src/RvfSharedMobilityLayerGroup/index.tsx +0 -1
  276. package/src/RvfStationsLayer/RvfStationsLayer.tsx +0 -19
  277. package/src/RvfStationsLayer/index.tsx +0 -1
  278. package/src/RvfTarifZonenLayer/RvfTarifZonenLayer.tsx +0 -48
  279. package/src/RvfTarifZonenLayer/index.tsx +0 -1
  280. package/src/ScaleLine/ScaleLine.tsx +0 -52
  281. package/src/ScaleLine/index.css +0 -6
  282. package/src/ScaleLine/index.tsx +0 -1
  283. package/src/ScrollableHandler/ScrollableHandler.tsx +0 -66
  284. package/src/ScrollableHandler/index.tsx +0 -1
  285. package/src/Search/Search.tsx +0 -50
  286. package/src/Search/SearchBase.tsx +0 -187
  287. package/src/Search/SearchHeadless.tsx +0 -79
  288. package/src/Search/index.tsx +0 -3
  289. package/src/SearchButton/SearchButton.tsx +0 -33
  290. package/src/SearchButton/index.tsx +0 -1
  291. package/src/SearchLinesResult/SearchLinesResult.tsx +0 -43
  292. package/src/SearchLinesResult/index.tsx +0 -1
  293. package/src/SearchLinesResults/SearchLinesResults.tsx +0 -106
  294. package/src/SearchLinesResults/index.tsx +0 -1
  295. package/src/SearchLnpStopsResult/SearchLnpStopsResult.tsx +0 -42
  296. package/src/SearchLnpStopsResult/index.tsx +0 -1
  297. package/src/SearchLnpStopsResults/SearchLnpStopsResults.tsx +0 -106
  298. package/src/SearchLnpStopsResults/index.tsx +0 -1
  299. package/src/SearchResult/SearchResult.tsx +0 -25
  300. package/src/SearchResult/index.tsx +0 -1
  301. package/src/SearchResults/SearchResults.tsx +0 -81
  302. package/src/SearchResults/index.tsx +0 -1
  303. package/src/SearchResultsHeader/SearchResultsHeader.tsx +0 -36
  304. package/src/SearchResultsHeader/index.tsx +0 -1
  305. package/src/SearchStopsResult/SearchStopsResult.tsx +0 -43
  306. package/src/SearchStopsResult/index.tsx +0 -1
  307. package/src/SearchStopsResults/SearchStopsResults.tsx +0 -101
  308. package/src/SearchStopsResults/index.tsx +0 -1
  309. package/src/SearchTrainsResult/SearchTrainsResult.tsx +0 -42
  310. package/src/SearchTrainsResult/index.tsx +0 -1
  311. package/src/SearchTrainsResults/SearchTrainsResults.tsx +0 -106
  312. package/src/SearchTrainsResults/index.tsx +0 -1
  313. package/src/ShadowOverflow/ShadowOverflow.tsx +0 -28
  314. package/src/ShadowOverflow/index.tsx +0 -1
  315. package/src/ShareMenu/ShareMenu.tsx +0 -43
  316. package/src/ShareMenu/index.tsx +0 -1
  317. package/src/ShareMenuButton/ShareMenuButton.tsx +0 -34
  318. package/src/ShareMenuButton/index.tsx +0 -1
  319. package/src/SingleClickListener/SingleClickListener.tsx +0 -164
  320. package/src/SingleClickListener/index.tsx +0 -1
  321. package/src/SituationDetails/SituationDetails.tsx +0 -370
  322. package/src/SituationDetails/index.ts +0 -1
  323. package/src/Station/Station.tsx +0 -50
  324. package/src/Station/index.tsx +0 -1
  325. package/src/StationHeader/StationHeader.tsx +0 -32
  326. package/src/StationHeader/index.tsx +0 -1
  327. package/src/StationName/StationName.tsx +0 -21
  328. package/src/StationName/index.tsx +0 -1
  329. package/src/StationServices/StationServices.tsx +0 -80
  330. package/src/StationServices/index.tsx +0 -1
  331. package/src/StationsLayer/StationsLayer.tsx +0 -53
  332. package/src/StationsLayer/index.tsx +0 -1
  333. package/src/StopsSearch/StopsSearch.tsx +0 -344
  334. package/src/StopsSearch/index.tsx +0 -1
  335. package/src/WindowMessageListener/WindowMessageListener.tsx +0 -74
  336. package/src/WindowMessageListener/index.tsx +0 -1
  337. package/src/ZoomButtons/ZoomButtons.tsx +0 -80
  338. package/src/ZoomButtons/index.tsx +0 -1
  339. package/src/icons/Airport/Airport.tsx +0 -17
  340. package/src/icons/Airport/airport-14-svgrepo-com.svg +0 -1
  341. package/src/icons/Airport/index.tsx +0 -1
  342. package/src/icons/ArrowDown/ArrowDown.tsx +0 -22
  343. package/src/icons/ArrowDown/down-open.svg +0 -1
  344. package/src/icons/ArrowDown/index.tsx +0 -1
  345. package/src/icons/ArrowRight/ArrowRight.tsx +0 -19
  346. package/src/icons/ArrowRight/arrow-right.svg +0 -1
  347. package/src/icons/ArrowRight/index.tsx +0 -1
  348. package/src/icons/ArrowUp/ArrowUp.tsx +0 -22
  349. package/src/icons/ArrowUp/index.tsx +0 -1
  350. package/src/icons/ArrowUp/up-open.svg +0 -1
  351. package/src/icons/ArrowUpRight/ArrowUpRight.tsx +0 -35
  352. package/src/icons/ArrowUpRight/index.tsx +0 -1
  353. package/src/icons/ArrowUpRight/up-open.svg +0 -1
  354. package/src/icons/Automat/Automat.tsx +0 -8
  355. package/src/icons/Automat/index.tsx +0 -1
  356. package/src/icons/Automat/rvf_automat.svg +0 -1
  357. package/src/icons/BarAndRestaurants/BarAndRestaurants.tsx +0 -17
  358. package/src/icons/BarAndRestaurants/food-restaurant-svgrepo-com.svg +0 -1
  359. package/src/icons/BarAndRestaurants/index.tsx +0 -1
  360. package/src/icons/Bathroom/Bathroom.tsx +0 -59
  361. package/src/icons/Bathroom/bathroom-restroom-svgrepo-com.svg +0 -1
  362. package/src/icons/Bathroom/index.tsx +0 -1
  363. package/src/icons/Bike/Bike.tsx +0 -8
  364. package/src/icons/Bike/index.tsx +0 -1
  365. package/src/icons/Bike/rvf_shared_bike.svg +0 -1
  366. package/src/icons/BikeStorage/BikeStorage.tsx +0 -17
  367. package/src/icons/BikeStorage/index.tsx +0 -1
  368. package/src/icons/BikeStorage/parking-bicycle-14-svgrepo-com.svg +0 -1
  369. package/src/icons/Cancel/Cancel.tsx +0 -21
  370. package/src/icons/Cancel/cancel.svg +0 -1
  371. package/src/icons/Cancel/index.tsx +0 -1
  372. package/src/icons/Car/Car.tsx +0 -8
  373. package/src/icons/Car/index.tsx +0 -1
  374. package/src/icons/Car/rvf_shared_car.svg +0 -1
  375. package/src/icons/CargoBike/CargoBike.tsx +0 -8
  376. package/src/icons/CargoBike/index.tsx +0 -1
  377. package/src/icons/CargoBike/rvf_shared_cargo_bike.svg +0 -1
  378. package/src/icons/Copy/Copy.tsx +0 -25
  379. package/src/icons/Copy/index.tsx +0 -1
  380. package/src/icons/Doc/Doc.tsx +0 -19
  381. package/src/icons/Doc/doc.svg +0 -1
  382. package/src/icons/Doc/index.tsx +0 -1
  383. package/src/icons/DownOpen/DownOpen.tsx +0 -24
  384. package/src/icons/DownOpen/down-open.svg +0 -1
  385. package/src/icons/DownOpen/index.tsx +0 -1
  386. package/src/icons/Download/Download.tsx +0 -20
  387. package/src/icons/Download/download.svg +0 -1
  388. package/src/icons/Download/index.tsx +0 -1
  389. package/src/icons/Ebike/Ebike.tsx +0 -8
  390. package/src/icons/Ebike/index.tsx +0 -1
  391. package/src/icons/Ebike/rvf_shared_e-bike.svg +0 -1
  392. package/src/icons/Elevator/Elevator.tsx +0 -16
  393. package/src/icons/Elevator/elevator-svgrepo-com.svg +0 -1
  394. package/src/icons/Elevator/index.tsx +0 -1
  395. package/src/icons/Email/Email.tsx +0 -19
  396. package/src/icons/Email/email.svg +0 -1
  397. package/src/icons/Email/index.tsx +0 -1
  398. package/src/icons/FilePdf/FilePdf.tsx +0 -19
  399. package/src/icons/FilePdf/file-pdf.svg +0 -1
  400. package/src/icons/FilePdf/index.tsx +0 -1
  401. package/src/icons/Geolocation/Geolocation.tsx +0 -19
  402. package/src/icons/Geolocation/index.tsx +0 -1
  403. package/src/icons/Geolocation/location.svg +0 -1
  404. package/src/icons/Image/Image.tsx +0 -24
  405. package/src/icons/Image/index.tsx +0 -1
  406. package/src/icons/InPerson/InPerson.tsx +0 -8
  407. package/src/icons/InPerson/index.tsx +0 -1
  408. package/src/icons/InPerson/rvf_persoenlich.svg +0 -1
  409. package/src/icons/Loading/Loading.tsx +0 -24
  410. package/src/icons/Loading/index.ts +0 -1
  411. package/src/icons/Menu/Menu.tsx +0 -32
  412. package/src/icons/Menu/index.tsx +0 -1
  413. package/src/icons/Menu/menu.svg +0 -1
  414. package/src/icons/Minus/Minus.tsx +0 -19
  415. package/src/icons/Minus/index.tsx +0 -1
  416. package/src/icons/Minus/minus-grey.svg +0 -1
  417. package/src/icons/Minus/minus.svg +0 -1
  418. package/src/icons/NoRealtime/NoRealtime.tsx +0 -44
  419. package/src/icons/NoRealtime/index.tsx +0 -1
  420. package/src/icons/NoRealtime/norealtime.svg +0 -1
  421. package/src/icons/Ok/ok-grey.svg +0 -1
  422. package/src/icons/Ok/ok.svg +0 -1
  423. package/src/icons/Plus/Plus.tsx +0 -19
  424. package/src/icons/Plus/index.tsx +0 -1
  425. package/src/icons/Plus/plus.svg +0 -1
  426. package/src/icons/Police/Police.tsx +0 -20
  427. package/src/icons/Police/index.tsx +0 -1
  428. package/src/icons/Police/polizia.png +0 -0
  429. package/src/icons/README.md +0 -52
  430. package/src/icons/Ride/Ride.tsx +0 -8
  431. package/src/icons/Ride/index.tsx +0 -1
  432. package/src/icons/Ride/rvf_shared_ride.svg +0 -1
  433. package/src/icons/Scooter/Scooter.tsx +0 -8
  434. package/src/icons/Scooter/index.tsx +0 -1
  435. package/src/icons/Scooter/rvf_shared_scooter.svg +0 -1
  436. package/src/icons/Search/Search.tsx +0 -38
  437. package/src/icons/Search/index.tsx +0 -1
  438. package/src/icons/Search/search.svg +0 -1
  439. package/src/icons/Share/Share.tsx +0 -24
  440. package/src/icons/Share/index.tsx +0 -1
  441. package/src/icons/Stack/Stack.tsx +0 -24
  442. package/src/icons/Stack/index.tsx +0 -1
  443. package/src/icons/TouchFingers/TouchFingers.tsx +0 -20
  444. package/src/icons/TouchFingers/index.tsx +0 -1
  445. package/src/icons/Tracking/Tracking.tsx +0 -29
  446. package/src/icons/Tracking/airport-14-svgrepo-com.svg +0 -1
  447. package/src/icons/Tracking/index.tsx +0 -1
  448. package/src/icons/Video/Video.tsx +0 -8
  449. package/src/icons/Video/index.tsx +0 -1
  450. package/src/icons/Video/rvf_video.svg +0 -1
  451. package/src/icons/WaitingAreas/WaitingAreas.tsx +0 -16
  452. package/src/icons/WaitingAreas/highway-rest-area-svgrepo-com.svg +0 -1
  453. package/src/icons/WaitingAreas/index.tsx +0 -1
  454. package/src/icons/WaitingAreas/wheelchair-svgrepo-com.svg +0 -1
  455. package/src/icons/Warning/Warning.tsx +0 -56
  456. package/src/icons/Warning/exported_features_20251029101203.kml +0 -20
  457. package/src/icons/Warning/index.tsx +0 -1
  458. package/src/icons/Warning/info-achtung-kreisrot-rot.svg +0 -1
  459. package/src/icons/WheelChair/WheelChair.tsx +0 -16
  460. package/src/icons/WheelChair/disabili.png +0 -0
  461. package/src/icons/WheelChair/index.tsx +0 -1
  462. package/src/icons/WheelChair/wheelchair-svgrepo-com.svg +0 -1
  463. package/src/icons/disruption-type-banner.xcf +0 -0
  464. package/src/icons/rvf_shared_ride_2.svg +0 -1
  465. package/src/icons/sbb_add_stop.png +0 -0
  466. package/src/icons/sbb_add_stop.svg +0 -1
  467. package/src/icons/sbb_alternative.png +0 -0
  468. package/src/icons/sbb_alternative.svg +0 -1
  469. package/src/icons/sbb_cancellation.png +0 -0
  470. package/src/icons/sbb_cancellation.svg +0 -1
  471. package/src/icons/sbb_construction.png +0 -0
  472. package/src/icons/sbb_construction.svg +0 -1
  473. package/src/icons/sbb_construction_banner.png +0 -0
  474. package/src/icons/sbb_delay.png +0 -0
  475. package/src/icons/sbb_delay.svg +0 -1
  476. package/src/icons/sbb_disruption.png +0 -0
  477. package/src/icons/sbb_disruption.svg +0 -1
  478. package/src/icons/sbb_disruption_banner.png +0 -0
  479. package/src/icons/sbb_info.png +0 -0
  480. package/src/icons/sbb_info.svg +0 -1
  481. package/src/icons/sbb_missed_connection.png +0 -0
  482. package/src/icons/sbb_missed_connection.svg +0 -1
  483. package/src/icons/sbb_missed_connection_banner.png +0 -0
  484. package/src/icons/sbb_platform_change.png +0 -0
  485. package/src/icons/sbb_platform_change.svg +0 -1
  486. package/src/icons/sbb_replacementbus.png +0 -0
  487. package/src/icons/sbb_replacementbus.svg +0 -1
  488. package/src/icons/sbb_replacementbus_banner.png +0 -0
  489. package/src/icons/sbb_reroute.png +0 -0
  490. package/src/icons/sbb_reroute.svg +0 -1
  491. package/src/icons/warning-banner.png +0 -0
  492. package/src/icons/warning-banner.xcf +0 -0
  493. package/src/icons/warning.png +0 -0
  494. package/src/index.tsx +0 -44
  495. package/src/indexDoc.ts +0 -35
  496. package/src/logos/00_RegioRad_Stuttgart.svg +0 -1
  497. package/src/logos/01_Call_a_bike.svg +0 -1
  498. package/src/logos/03_KVV_nextbike.svg +0 -1
  499. package/src/logos/05_VrnNextbike.svg +0 -1
  500. package/src/logos/2em_carsharing.svg +0 -1
  501. package/src/logos/CarSharing-Renningen.png +0 -0
  502. package/src/logos/aubonne-basel-pickebike.svg +0 -1
  503. package/src/logos/br_logo.svg +0 -1
  504. package/src/logos/callabike_logo.png +0 -0
  505. package/src/logos/carsharing_stadtmobil_karlsruhe_rhein_neckar.svg +0 -1
  506. package/src/logos/compte-mobilite.png +0 -0
  507. package/src/logos/deer.svg +0 -1
  508. package/src/logos/donkey_republic.png +0 -0
  509. package/src/logos/edrive_carsharing.svg +0 -1
  510. package/src/logos/flinkster_logo.png +0 -0
  511. package/src/logos/gruene-flotte-logo-1.svg +0 -1
  512. package/src/logos/gruene_flotte_logo.png +0 -0
  513. package/src/logos/lasten_velo_freiburg.png +0 -0
  514. package/src/logos/lie_mobil.svg +0 -1
  515. package/src/logos/logo-einfach-mobil-ortenau.png +0 -0
  516. package/src/logos/logo-red.svg +0 -1
  517. package/src/logos/logo_frelo_web_rgb.png +0 -0
  518. package/src/logos/logo_teilauto.png +0 -0
  519. package/src/logos/mein_konrad.svg +0 -1
  520. package/src/logos/mit_fahr_punkt.png +0 -0
  521. package/src/logos/natur_energie_logo.png +0 -0
  522. package/src/logos/natur_energie_logo.xcf +0 -0
  523. package/src/logos/publibike_logo.svg +0 -1
  524. package/src/logos/share-birrer.svg +0 -1
  525. package/src/logos/stadtmobil_suedbaden.svg +0 -1
  526. package/src/logos/stadtwerke_tauberfranken.png +0 -0
  527. package/src/logos/teilauto_biberach.png +0 -0
  528. package/src/logos/velospot_fribourg.png +0 -0
  529. package/src/logos/yoio_logo.png +0 -0
  530. package/src/logos/zeag_carsharing.png +0 -0
  531. package/src/logos/zeo_carsharing.png +0 -0
  532. package/src/logos/zeus_logo.png +0 -0
  533. package/src/logos/zeus_logo.xcf +0 -0
  534. package/src/ui/Button/Button.tsx +0 -64
  535. package/src/ui/Button/index.tsx +0 -1
  536. package/src/ui/Checkbox/Checkbox.tsx +0 -32
  537. package/src/ui/Checkbox/index.tsx +0 -1
  538. package/src/ui/IconButton/IconButton.tsx +0 -64
  539. package/src/ui/IconButton/index.tsx +0 -1
  540. package/src/ui/Input/Input.tsx +0 -24
  541. package/src/ui/Input/index.tsx +0 -1
  542. package/src/ui/InputCopy/InputCopy.tsx +0 -97
  543. package/src/ui/InputCopy/index.tsx +0 -1
  544. package/src/ui/InputSearch/InputSearch.tsx +0 -106
  545. package/src/ui/InputSearch/index.tsx +0 -1
  546. package/src/ui/Link/Link.tsx +0 -49
  547. package/src/ui/Link/index.tsx +0 -1
  548. package/src/ui/Select/Select.tsx +0 -24
  549. package/src/ui/Select/index.tsx +0 -1
  550. package/src/utils/MobilityEvent.ts +0 -22
  551. package/src/utils/applyInitialLayerVisibility.ts +0 -48
  552. package/src/utils/centerOnVehicle.ts +0 -58
  553. package/src/utils/constants.ts +0 -242
  554. package/src/utils/exportPdf.ts +0 -671
  555. package/src/utils/fullTrajectoryStyle.ts +0 -53
  556. package/src/utils/getAllLayers.ts +0 -26
  557. package/src/utils/getBgColor.ts +0 -20
  558. package/src/utils/getDelayColor.test.ts +0 -23
  559. package/src/utils/getDelayColor.ts +0 -23
  560. package/src/utils/getDelayColorForVehicle.test.ts +0 -47
  561. package/src/utils/getDelayColorForVehicle.ts +0 -27
  562. package/src/utils/getDelayString.test.ts +0 -25
  563. package/src/utils/getDelayString.ts +0 -28
  564. package/src/utils/getDelayTextForVehicle.test.ts +0 -32
  565. package/src/utils/getDelayTextForVehicle.ts +0 -25
  566. package/src/utils/getFullTrajectoryAndFit.ts +0 -41
  567. package/src/utils/getHoursAndMinutes.test.ts +0 -15
  568. package/src/utils/getHoursAndMinutes.ts +0 -22
  569. package/src/utils/getLayersAsFlatArray.ts +0 -22
  570. package/src/utils/getLinkByDevice.ts +0 -23
  571. package/src/utils/getMainColorForVehicle.test.ts +0 -25
  572. package/src/utils/getMainColorForVehicle.ts +0 -54
  573. package/src/utils/getPermalinkParameters.ts +0 -35
  574. package/src/utils/getRadius.ts +0 -46
  575. package/src/utils/getStopStatus.test.ts +0 -105
  576. package/src/utils/getStopStatus.ts +0 -171
  577. package/src/utils/getTextColor.ts +0 -10
  578. package/src/utils/getTextColorForVehicle.ts +0 -31
  579. package/src/utils/getTextFontForVehicle.test.ts +0 -7
  580. package/src/utils/getTextFontForVehicle.tsx +0 -17
  581. package/src/utils/getTextForVehicle.test.ts +0 -17
  582. package/src/utils/getTextForVehicle.ts +0 -25
  583. package/src/utils/getUrlFromTemplate.test.ts +0 -23
  584. package/src/utils/getUrlFromTemplate.ts +0 -47
  585. package/src/utils/highlightLinesNetworkPlan.ts +0 -25
  586. package/src/utils/hooks/useDebug.tsx +0 -11
  587. package/src/utils/hooks/useDeparture.tsx +0 -24
  588. package/src/utils/hooks/useFit.tsx +0 -57
  589. package/src/utils/hooks/useFitOnFeatures.tsx +0 -77
  590. package/src/utils/hooks/useI18n.tsx +0 -23
  591. package/src/utils/hooks/useInitialLayersVisiblity.tsx +0 -58
  592. package/src/utils/hooks/useInitialPermalink.tsx +0 -93
  593. package/src/utils/hooks/useLayerConfig.tsx +0 -17
  594. package/src/utils/hooks/useLayersConfig.tsx +0 -49
  595. package/src/utils/hooks/useLnp.tsx +0 -146
  596. package/src/utils/hooks/useMapContext.tsx +0 -166
  597. package/src/utils/hooks/useMocoSituation.tsx +0 -62
  598. package/src/utils/hooks/useParams.ts +0 -5
  599. package/src/utils/hooks/usePermalink.tsx +0 -25
  600. package/src/utils/hooks/useRealtimeDepartures.tsx +0 -45
  601. package/src/utils/hooks/useRealtimeRenderedTrajectory.tsx +0 -42
  602. package/src/utils/hooks/useRealtimeStation.tsx +0 -39
  603. package/src/utils/hooks/useRealtimeStopSequences.tsx +0 -43
  604. package/src/utils/hooks/useRealtimeTrainsByRouteIdentifier.tsx +0 -72
  605. package/src/utils/hooks/useRouteStop.tsx +0 -40
  606. package/src/utils/hooks/useRvfContext.tsx +0 -46
  607. package/src/utils/hooks/useScrollTo.tsx +0 -36
  608. package/src/utils/hooks/useSearchLines.tsx +0 -34
  609. package/src/utils/hooks/useSearchLnpStops.tsx +0 -38
  610. package/src/utils/hooks/useSearchStops.tsx +0 -85
  611. package/src/utils/hooks/useSearchTrains.tsx +0 -83
  612. package/src/utils/hooks/useZoom.tsx +0 -44
  613. package/src/utils/mergePublications.test.ts +0 -91
  614. package/src/utils/mergePublications.ts +0 -52
  615. package/src/utils/realtimeRVFStyle.ts +0 -523
  616. package/src/utils/sharingGraphqlUtils.ts +0 -320
  617. package/src/utils/sharingStylesUtils.ts +0 -222
  618. package/src/utils/sharingWFSUtils.ts +0 -116
  619. package/src/utils/translations.ts +0 -252
  620. package/src/utils/translationsReasons.ts +0 -716
  621. package/tailwind.config.mjs +0 -95
  622. package/testNotification.json +0 -115
  623. package/tsconfig.json +0 -12
package/indexDoc.js DELETED
@@ -1,37 +0,0 @@
1
- (()=>{function Ke(e,t,o){let r=Math.min.apply(null,e),i=Math.min.apply(null,t),n=Math.max.apply(null,e),a=Math.max.apply(null,t);return pe(r,i,n,a,o)}function pe(e,t,o,r,i){return i?(i[0]=e,i[1]=t,i[2]=o,i[3]=r,i):[e,t,o,r]}function je(e){return pe(1/0,1/0,-1/0,-1/0,e)}function Je(e){return e[2]<e[0]||e[3]<e[1]}function fe(e,t,o,r){if(Je(e))return je(o);let i=[];if(r>1){let s=e[2]-e[0],l=e[3]-e[1];for(let u=0;u<r;++u)i.push(e[0]+s*u/r,e[1],e[2],e[1]+l*u/r,e[2]-s*u/r,e[3],e[0],e[3]-l*u/r)}else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);let n=[],a=[];for(let s=0,l=i.length;s<l;s+=2)n.push(i[s]),a.push(i[s+1]);return Ke(n,a,o)}function H(e){return e*180/Math.PI}function I(e){return e*Math.PI/180}function de(e,t){let o=e%t;return o*t<0?o+t:o}function U(e,t,o){if(e>=t&&e<o)return e;let r=o-t;return((e-t)%r+r)%r+t}var he={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};var K=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||he[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},M=K;var v=6378137,w=Math.PI*v,Ze=[-w,-w,w,w],Qe=[-180,-85,180,85],G=v*Math.log(Math.tan(Math.PI/2)),y=class extends M{constructor(t){super({code:t,units:"m",extent:Ze,global:!0,worldExtent:Qe,getPointResolution:function(o,r){return o/Math.cosh(r[1]/v)}})}},j=[new y("EPSG:3857"),new y("EPSG:102100"),new y("EPSG:102113"),new y("EPSG:900913"),new y("http://www.opengis.net/def/crs/EPSG/0/3857"),new y("http://www.opengis.net/gml/srs/epsg.xml#3857")];function me(e,t,o,r){let i=e.length;o=o>1?o:2,r=r??o,t===void 0&&(o>2?t=e.slice():t=new Array(i));for(let n=0;n<i;n+=r){t[n]=w*e[n]/180;let a=v*Math.log(Math.tan(Math.PI*(+e[n+1]+90)/360));a>G?a=G:a<-G&&(a=-G),t[n+1]=a}return t}function be(e,t,o,r){let i=e.length;o=o>1?o:2,r=r??o,t===void 0&&(o>2?t=e.slice():t=new Array(i));for(let n=0;n<i;n+=r)t[n]=180*e[n]/w,t[n+1]=360*Math.atan(Math.exp(e[n+1]/v))/Math.PI-90;return t}var et=6378137,ge=[-180,-90,180,90],tt=Math.PI*et/180,b=class extends M{constructor(t,o){super({code:t,units:"degrees",extent:ge,axisOrientation:o,global:!0,metersPerUnit:tt,worldExtent:ge})}},J=[new b("CRS:84"),new b("EPSG:4326","neu"),new b("urn:ogc:def:crs:OGC:1.3:CRS84"),new b("urn:ogc:def:crs:OGC:2:84"),new b("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new b("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new b("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];var Z={};function Ee(e){return Z[e]||Z[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function ye(e,t){Z[e]=t}var A={};function S(e,t,o){let r=e.getCode(),i=t.getCode();r in A||(A[r]={}),A[r][i]=o}function D(e,t){return e in A&&t in A[e]?A[e][t]:null}var V=.9996,p=.00669438,W=p*p,Y=W*p,T=p/(1-p),_e=Math.sqrt(1-p),R=(1-_e)/(1+_e),Ae=R*R,Q=Ae*R,ee=Q*R,Se=ee*R,Re=1-p/4-3*W/64-5*Y/256,ot=3*p/8+3*W/32+45*Y/1024,rt=15*W/256+45*Y/1024,it=35*Y/3072,nt=3/2*R-27/32*Q+269/512*Se,at=21/16*Ae-55/32*ee,st=151/96*Q-417/128*Se,lt=1097/512*ee,X=6378137;function ct(e,t,o){let r=e-5e5,a=(o.north?t:t-1e7)/V/(X*Re),s=a+nt*Math.sin(2*a)+at*Math.sin(4*a)+st*Math.sin(6*a)+lt*Math.sin(8*a),l=Math.sin(s),u=l*l,g=Math.cos(s),P=l/g,f=P*P,E=f*f,d=1-p*u,L=Math.sqrt(1-p*u),k=X/L,F=(1-p)/d,h=T*g**2,x=h*h,m=r/(k*V),N=m*m,O=N*m,ce=O*m,ue=ce*m,qe=ue*m,He=s-P/F*(N/2-ce/24*(5+3*f+10*h-4*x-9*T))+qe/720*(61+90*f+298*h+45*E-252*T-3*x),q=(m-O/6*(1+2*f+h)+ue/120*(5-2*h+28*f-3*x+8*T+24*E))/g;return q=U(q+I(Pe(o.number)),-Math.PI,Math.PI),[H(q),H(He)]}var Te=-80,Me=84,ut=-180,pt=180;function ft(e,t,o){e=U(e,ut,pt),t<Te?t=Te:t>Me&&(t=Me);let r=I(t),i=Math.sin(r),n=Math.cos(r),a=i/n,s=a*a,l=s*s,u=I(e),g=Pe(o.number),P=I(g),f=X/Math.sqrt(1-p*i**2),E=T*n**2,d=n*U(u-P,-Math.PI,Math.PI),L=d*d,k=L*d,F=k*d,h=F*d,x=h*d,m=X*(Re*r-ot*Math.sin(2*r)+rt*Math.sin(4*r)-it*Math.sin(6*r)),N=V*f*(d+k/6*(1-s+E)+h/120*(5-18*s+l+72*E-58*T))+5e5,O=V*(m+f*a*(L/2+F/24*(5-s+9*E+4*E**2)+x/720*(61-58*s+l+600*E-330*T)));return o.north||(O+=1e7),[N,O]}function Pe(e){return(e-1)*6-180+3}var dt=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function xe(e){let t=0;for(let i of dt){let n=e.match(i);if(n){t=parseInt(n[1]);break}}if(!t)return null;let o=0,r=!1;return t>32700&&t<32761?o=t-32700:t>32600&&t<32661&&(r=!0,o=t-32600),o?{number:o,north:r}:null}function we(e,t){return function(o,r,i,n){let a=o.length;i=i>1?i:2,n=n??i,r||(i>2?r=o.slice():r=new Array(a));for(let s=0;s<a;s+=n){let l=o[s],u=o[s+1],g=e(l,u,t);r[s]=g[0],r[s+1]=g[1]}return r}}function Oe(e){return xe(e)?new M({code:e,units:"m"}):null}function Ie(e){let t=xe(e.getCode());return t?{forward:we(ft,t),inverse:we(ct,t)}:null}var ht=[Ie],mt=[Oe];var bt=!0;function gt(e){bt=!(e===void 0?!0:e)}function Ce(e,t){if(t!==void 0){for(let o=0,r=e.length;o<r;++o)t[o]=e[o];t=t}else t=e.slice();return t}function oe(e){ye(e.getCode(),e),S(e,e,Ce)}function Et(e){e.forEach(oe)}function z(e){if(typeof e!="string")return e;let t=Ee(e);if(t)return t;for(let o of mt){let r=o(e);if(r)return r}return null}function ve(e){Et(e),e.forEach(function(t){e.forEach(function(o){t!==o&&S(t,o,Ce)})})}function yt(e,t,o,r){e.forEach(function(i){t.forEach(function(n){S(i,n,o),S(n,i,r)})})}function Le(e,t){return gt(),Ne(e,"EPSG:4326",t!==void 0?t:"EPSG:3857")}function ke(e,t){let o=Ne(e,t!==void 0?t:"EPSG:3857","EPSG:4326"),r=o[0];return(r<-180||r>180)&&(o[0]=de(r+180,360)-180),o}function _t(e,t){let o=e.getCode(),r=t.getCode(),i=D(o,r);if(i)return i;let n=null,a=null;for(let l of ht)n||(n=l(e)),a||(a=l(t));if(!n&&!a)return null;let s="EPSG:4326";if(a)if(n)i=te(n.inverse,a.forward);else{let l=D(o,s);l&&(i=te(l,a.forward))}else{let l=D(s,r);l&&(i=te(n.inverse,l))}return i&&(oe(e),oe(t),S(e,t,i)),i}function te(e,t){return function(o,r,i,n){return r=e(o,r,i,n),t(r,r,i,n)}}function Fe(e,t){let o=z(e),r=z(t);return _t(o,r)}function Ne(e,t,o){let r=Fe(t,o);if(!r){let i=z(t).getCode(),n=z(o).getCode();throw new Error(`No transform available between ${i} and ${n}`)}return r(e,void 0,e.length)}function Ue(e,t,o,r){let i=Fe(t,o);return fe(e,i,void 0,r)}function Tt(){ve(j),ve(J),yt(J,j,me,be)}Tt();var Ge="echtzeit",De="haltestellen",Ve="meldungen",Xe="liniennetz",We="mapset",Mt=[7.5,47.7,8.45,48.4],wt=Mt,re=Ue(wt,"EPSG:4326","EPSG:3857");window.fromLonLat=Le;window.toLonLat=ke;var c={bikeFrelo:"fahrradfrelo",bikeOthers:"fahrradandere",cargobikeFrelo:"cargobikefrelo",cargobikeOthers:"cargobikeandere",carGrf:"grueneflotte",carNatur:"naturenergie",carOthers:"autoandere",eroller:"e-roller",linesnetworkplan:Xe,mapset:We,mitfahrpunkte:"mitfahrpunkte",notifications:Ve,pois:"pois",realtime:Ge,sharedMobility:"sharedmobility",stations:De,tarifzonen:"tarifzonen",verkaufsstellen:"verkaufsstellen"},ao=Object.values(c),Ye=Object.values(c).filter(e=>![c.mapset,c.mitfahrpunkte,c.pois,c.stations,c.tarifzonen].includes(e)),so=[Ve,We,Ge,De,Xe,c.tarifzonen,c.verkaufsstellen,c.pois,c.sharedMobility],ze=Object.values(c).filter(e=>e!==c.tarifzonen&&e!==c.pois&&e!==c.realtime);var At='<a href="https://developer.geops.io/">geOps API key</a>',$e='<a href="https://developer.geops.io/apis/maps">geOps Maps API</a>',St='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',ie='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',$='<a href="https://geops.com/en/solution/mapset">geOps Mapset API</a>',B='<a href="https://developer.geops.io/apis/realtime">geOps Realtime API</a>',Rt={apikey:{defaultValue:"5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",description:`Your ${At}`,public:!1},baselayer:{defaultValue:"de.rvf_moco",description:`The style's name from the ${$e}. <br/>Ex: base_dark_v2, base_bright_v2, ...`,public:!1},center:{description:"The center of the map in EPSG:3857 coordinates.<br/>Parameter required if extent is not set.",public:!0},details:{defaultValue:"true",description:"When a feature of a queryable layer is clicked, it displays informations about it.",public:!0,type:"boolean"},embed:{defaultValue:"false",description:"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.",public:!0,type:"boolean"},extent:{defaultValue:re.join(","),description:"The map's extent in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .<br/>Parameter required if center and zoom are not set.",public:!0},geolocation:{defaultValue:"true",description:"Toggle the display of the geolocation button or not.",public:!0,type:"boolean"},lang:{defaultValue:"de",description:"The language to use for the map. Supported languages are : de, en, fr, it.",public:!0},layers:{defaultValue:null,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(c).join(", ")}.`,public:!0},layersconfig:{description:`A JSON string to configure the layers and other components associated to it.<br/>
2
- The layers available are : ${ze.toString()}.<br/>
3
- Definition for a layer :
4
- <pre style="font-size: 12px; overflow: auto;">{
5
- "liniennetz": {
6
- "link": {
7
- "href": "https://www.rvf.de/fahrtinfo/netzplan",
8
- "show": true,
9
- "text": "Zu den Liniennetzpl\xE4nen"
10
- },
11
- "title": "Liniennetzpl\xE4ne"
12
- }
13
- "sharedmobility": {
14
- "minZoom": 14
15
- }
16
- </pre>}
17
- <br/>
18
- where:
19
- <ul style="list-style-type: disc; padding-left: 20px;">
20
- <li><i>link</i> defined a external link displayed at the bottom of the detail view</li>
21
- <ul style="list-style-type: disc; padding-left: 40px;">
22
- <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>
23
- <li><i>text</i> is the text display as a link</li>
24
- <li><i>show</i> show/hide the link in the details view</li>
25
- </ul>
26
- <li><i>featurelink</i> defined a external link used when you click on single feature in detail view</li>
27
- <ul style="list-style-type: disc; padding-left: 40px;">
28
- <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>
29
- </ul>
30
- <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>
31
- <li><i>minZoom</i> is the minimal zoom level at which the layer is visible (only <i>${c.sharedMobility}</i> layer).</li>
32
- </ul>`,public:!0},layertree:{defaultValue:"true",description:"Show/hide the layers tree button in the toolbar.",public:!0,type:"boolean"},lineid:{description:"An id or a short/long name of a line to highlight. <br/>Ex: S1",public:!1},lnp:{defaultValue:"true",description:"Add the linesnetworkplans layer to the map. This layer will display lines network plans on the map.",public:!1,type:"boolean"},mainlink:{description:"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}}.",public:!0},mainlinktitle:{description:"A title for the mainlink, used as tooltip.",public:!0},mapset:{defaultValue:"false",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.",public:!0,type:"boolean"},mapsetplanid:{description:"An id of the mapset plan to display. Mostly for debugging purposes.",public:!1},mapsettags:{description:`The ${$} tags to get the plans from.`,public:!0},mapsettenants:{defaultValue:"rvf",description:`The ${$} tenant to get the plans from.`,public:!1},mapsettimestamp:{description:`The ${$} timestamp used to load valid standard plan. If not defined it will use the current time.`,public:!0},mapseturl:{defaultValue:"https://editor.mapset.io/api/v1/",description:`The ${$} url to use.`,public:!0},mapsurl:{defaultValue:"https://maps.geops.io",description:`The ${$e} url to use.`,public:!1},maxextent:{defaultValue:re.join(","),description:"The maximum extent of the map in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .",public:!0},maxzoom:{defaultValue:"20",description:"The maximal zoom level of the map.",public:!0},minzoom:{description:"The minimal zoom level of the map.",public:!0},mots:{description:"Commas separated list of mots to display on the Realtime layer.<br/>Ex: rail,bus,coach,foot,tram,subway,gondola,funicular,ferry,car .",public:!1},notification:{defaultValue:"true",description:`Add the notification layer to the map. This layer will display informations about disruptions on the network. Data comes from
33
- our ${ie} .`,public:!0,type:"boolean"},notificationat:{description:"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 .",public:!1},notificationid:{description:"An id of a notification to show details of.",public:!1},notificationlang:{defaultValue:"en,de,fr",description:"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",public:!0},notificationtenant:{defaultValue:"rvf",description:`The ${ie} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${ie} url to use.`,public:!1},permalink:{defaultValue:"false",description:"if true, the current browser window url will be updated automatically with the parameters defined in the `permalinktemplate` attribute.",public:!0,type:"boolean"},permalinktemplate:{defaultValue:"#map/{{x}}/{{y}}/{{z}}",description:`A template string to read the current browser url. Hash (starting with #) and URL search parameters (starting with ?) are supported.<br/>
34
- The template supports {{x}}, {{y}}, {{z}} and {{layers}} variables.<br/>
35
- Ex: "?x={{x}}&y={{y}}&z={{z}}" or "#map/{{x}}/{{y}}/{{z}}" .`,public:!0},print:{defaultValue:"true",description:"Show/hide the print button in the toolbar.",public:!0,type:"boolean"},queryablelayers:{defaultValue:Ye.toString(),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/>
36
- Layers available are ${Object.values(c).join(", ")}`,public:!0},realtime:{defaultValue:"true",description:`Add the realtime layer to the map. Data comes from the ${B} .`,public:!1,type:"boolean"},realtimebboxparameters:{defaultValue:"line_tags=RVF",description:"A space separated list of parameters to add to the realtime BBOX request to define custom behavior.<br/>Ex: graph=XXX line_tags=XXX.",public:!1},realtimeresturl:{defaultValue:"https://api.geops.io/tracker-http/v1/",description:`The ${B} REST API url to use for fetching infos about realtime data.`,public:!1},realtimetenant:{description:`The ${B} tenant to get the realtime data from.`,public:!1},realtimeurl:{defaultValue:"wss://api.geops.io/tracker-ws/v1/ws",description:`The ${B} url to use.`,public:!1},runs:{defaultValue:"false",description:"Shows the number of trips on a line in the sidebar, use only for debugging.",public:!0,type:"boolean"},search:{defaultValue:"false",description:"Toggle the search stops input.",public:!0,type:"boolean"},share:{defaultValue:"true",description:"Show/hide the share button in the toolbar.",public:!0,type:"boolean"},stationid:{description:"An id or a short/long name of a station to show details of.",public:!1},stopsurl:{defaultValue:"https://api.geops.io/stops/v1/",description:`The ${St} to use.`,public:!1},tenant:{description:"The tenant to use by default for all geOps APIs (Stops, Realtime, MOCO ...). Can be override for each API by other XXXXtenant parameters.",public:!1},toolbar:{defaultValue:"true",description:"Show/hide the toolbar on the top left.",public:!0,type:"boolean"},trainid:{description:"An id of a route to highlight on the map and to show details of.",public:!1},zoom:{description:"The zoom level of the map.",public:!0}},ne=Rt;var Pt={"mwc:attribute":{description:"Event fired when an web component's attribute is changed. The event data contains the list of all attributes and their values.",public:!1},"mwc:messageready":{description:"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.",public:!1},"mwc:permalink":{description:"Event fired when the map's state changes. The event data contains the permalink URL search parameters as string.",public:!1},"mwc:selectedfeature":{description:"Event fired when a feature is selected on the map. The event data contains the selected feature in GeoJSON format.",public:!0},"mwc:singleclick":{description:"Event fired when the map is clicked. The event data contains the map coordinates in EPSG:3857 and the pixel coordinates.",public:!1},"mwc:stopssearchselect":{description:"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.",public:!1}},C=Pt;var xt='<a href="https://developer.geops.io/">geOps API key</a>',Be='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',Ot={apikey:{defaultValue:"5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",description:`Your ${xt}`,public:!1},lang:{defaultValue:"de",description:"The language to use for the notifications.",public:!0},notificationat:{description:"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 .",public:!1},notificationlang:{defaultValue:"en,de,fr",description:"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",public:!0},notificationtenant:{defaultValue:"rvf",description:`The ${Be} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${Be} url to use.`,public:!1}},ae=Ot;var It='<a href="https://developer.geops.io/">geOps API key</a>',_='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',vt={apikey:{description:`Your ${It}`,public:!0},bbox:{description:`The extent where to search the stops (minx,miny,maxx,maxy). See the ${_} documentation.`,public:!0},countrycode:{description:"The country code to filter the results (IT, DE, CH ...)",public:!0},event:{defaultValue:"mwc:stopssearchselect",description:"The event's name to listen to when a stop is selected.",public:!0},field:{description:`Which field to look up, default all of them, Possible values:id, name, coords. See the ${_} documentation.`,public:!0},lang:{defaultValue:"en",description:"The language to use for the search input texts. Supported languages are : de, en, fr, it.",public:!0},limit:{defaultValue:"5",description:`The number of suggestions to show. See the ${_} documentation.`,public:!0},mots:{description:`Commas separated list of mots used to filter the results (rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car). See the ${_} documentation.`,public:!0},onselect:{description:null,public:!1},params:{description:`JSON string with additional parameters to pass to the request to the API. Ex: {"{ 'key': 'value' }"}. See the ${_} documentation.`,public:!0},prefagencies:{description:`comma seperated list, order chooses which agency will be preferred as
37
- ident_source (for id and code fields). Possible values: sbb, db. See the ${_} documentation.`,public:!0},reflocation:{description:`Coordinates in WGS84 (in lat,lon order) used to rank stops close to this position higher. See the ${_} documentation.`,public:!0},url:{defaultValue:"https://api.geops.io/stops/v1/",description:`The URL to the ${_}.`,public:!0}},se=vt;var Ct={"mwc:attribute":C["mwc:attribute"],"mwc:stopssearchselect":{description:"Event fired when a stop is selected in the stops search results. The event data contains the selected stop.",public:!0}},le=Ct;typeof window<"u"&&(window.MobilityMapAttributes=ne,window.MobilityMapEvents=C,window.MobilitySearchAttributes=se,window.MobilitySearchEvents=le,window.MobilityNotificationsAttributes=ae);var Mo={MobilityMapAttributes:ne,MobilityMapEvents:C,MobilityNotificationsAttributes:ae,MobilitySearchAttributes:se,MobilitySearchEvents:le};})();
package/input.css DELETED
@@ -1,59 +0,0 @@
1
- @import 'tailwindcss';
2
-
3
- @config './tailwind.config.mjs';
4
-
5
- /*
6
- The default border color has changed to `currentColor` in Tailwind CSS v4,
7
- so we've added these compatibility styles to make sure everything still
8
- looks the same as it did with Tailwind CSS v3.
9
-
10
- If we ever want to remove these styles, we need to add an explicit border
11
- color utility to any element that depends on these defaults.
12
- */
13
- @layer base {
14
- *,
15
- ::after,
16
- ::before,
17
- ::backdrop,
18
- ::file-selector-button {
19
- border-color: var(--color-gray-200, currentColor);
20
- }
21
- }
22
-
23
- ::-webkit-scrollbar {
24
- width: 3px;
25
- height: 3px;
26
- }
27
-
28
- ::-webkit-scrollbar-thumb {
29
- background: gray;
30
- }
31
-
32
- ::-webkit-scrollbar-track {
33
- background: transparent;
34
- }
35
-
36
- html {
37
- @apply text-base;
38
- }
39
-
40
- @layer base {
41
- h1 {
42
- @apply text-3xl font-bold;
43
- }
44
-
45
- h2 {
46
- @apply text-2xl;
47
- }
48
-
49
- h3 {
50
- @apply text-xl;
51
- }
52
-
53
- h4 {
54
- @apply text-lg;
55
- }
56
- /* button {
57
- @apply text-button font-semibold;
58
- } */
59
- }
package/jest-setup.js DELETED
@@ -1,13 +0,0 @@
1
- import "jest-canvas-mock";
2
-
3
- global.URL.createObjectURL = jest.fn(() => {
4
- return "fooblob";
5
- });
6
-
7
- class TextEncoder {
8
- constructor() {}
9
- decode() {}
10
- encode() {}
11
- }
12
-
13
- global.TextDecoder = TextEncoder;
package/jest.config.js DELETED
@@ -1,17 +0,0 @@
1
- /** @type {import('ts-jest').JestConfigWithTsJest} */
2
- const config = {
3
- moduleNameMapper: {
4
- "@geoblocks/ol-maplibre-layer":
5
- "<rootDir>/node_modules/@geoblocks/ol-maplibre-layer/lib/index.js",
6
- "\\.(css|less)$": "identity-obj-proxy",
7
- },
8
- preset: "jest-preset-preact",
9
- setupFiles: ["./jest-setup.js"],
10
- testEnvironment: "jsdom",
11
- transform: {
12
- "\\.(jpg|ico|jpeg|png|gif|webp)$": "<rootDir>/__mocks__/dataurl.js",
13
- "\\.[t]sx?$": "ts-jest",
14
- },
15
- transformIgnorePatterns: [],
16
- };
17
- export default config;
@@ -1,144 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Mobility Web Component</title>
6
- <link rel="icon" type="image/x-icon" href="favicon.ico" />
7
- <meta
8
- name="viewport"
9
- content="initial-scale=1,maximum-scale=1,user-scalable=no"
10
- />
11
- <link rel="stylesheet" href="https://use.typekit.net/orf1mlq.css" />
12
-
13
- <!-- font sgenutz in rvf.de/-->
14
- <style>
15
- @font-face {
16
- font-display: swap;
17
- font-family: "Source Sans 3";
18
- font-style: normal;
19
- font-weight: 400;
20
- src:
21
- url("fonts/source-sans-3/source-sans-3-v15-latin-regular.woff2")
22
- format("woff2"),
23
- url("fonts/source-sans-3/source-sans-3-v15-latin-regular.ttf")
24
- format("truetype");
25
- }
26
-
27
- @font-face {
28
- font-display: swap;
29
- font-family: "Source Sans 3";
30
- font-style: normal;
31
- font-weight: 500;
32
- src:
33
- url("fonts/source-sans-3/source-sans-3-v15-latin-500.woff2")
34
- format("woff2"),
35
- url("fonts/source-sans-3/source-sans-3-v15-latin-500.ttf")
36
- format("truetype");
37
- }
38
-
39
- @font-face {
40
- font-display: swap;
41
- font-family: "Source Sans 3";
42
- font-style: normal;
43
- font-weight: 600;
44
- src:
45
- url("fonts/source-sans-3/source-sans-3-v15-latin-600.woff2")
46
- format("woff2"),
47
- url("fonts/source-sans-3/source-sans-3-v15-latin-600.ttf")
48
- format("truetype");
49
- }
50
-
51
- @font-face {
52
- font-display: swap;
53
- font-family: "Source Sans 3";
54
- font-style: normal;
55
- font-weight: 700;
56
- src:
57
- url("fonts/source-sans-3/source-sans-3-v15-latin-700.woff2")
58
- format("woff2"),
59
- url("fonts/source-sans-3/source-sans-3-v15-latin-700.ttf")
60
- format("truetype");
61
- }
62
- </style>
63
-
64
- <script type="text/javascript">
65
- if (/localhost/.test(window.location.hostname)) {
66
- new EventSource("/esbuild").addEventListener("change", () => {
67
- location.reload();
68
- });
69
- }
70
- </script>
71
- <script type="module" src="./index.js"></script>
72
- <script type="module" src="./indexDoc.js"></script>
73
- <script src="./docutils.js"></script>
74
- <link rel="stylesheet" type="text/css" href="./output.css" />
75
- <style>
76
- ::-webkit-scrollbar {
77
- width: 3px;
78
- height: 3px;
79
- }
80
- a {
81
- text-decoration: underline;
82
- }
83
- </style>
84
- </head>
85
- <body class="p-8">
86
- <!-- tailwind hack to add class used in docutils -->
87
- <div
88
- class="flex w-full table-auto gap-4 border bg-black p-2 px-4 py-2 text-white hover:bg-gray-700"
89
- style="display: none"
90
- ></div>
91
- <div id="doc" style="display: none" class="mx-auto max-w-4xl space-y-4">
92
- <h1 class="flex gap-4">
93
- <img src="./Logo.svg" />Mobility Notifications Web Component
94
- </h1>
95
- <p>This is a demo of the Mobility Notifications Web Component.</p>
96
- <h2>Usage example</h2>
97
- <pre
98
- id="code"
99
- class="overflow-auto rounded bg-slate-800 p-4 text-slate-200"
100
- ></pre>
101
-
102
- <geops-mobility-notifications
103
- id="notifications"
104
- class="block w-full"
105
- ></geops-mobility-notifications>
106
-
107
- <br />
108
- <div id="attributesDoc">
109
- <h2 class="text-xl font-bold">Attributes</h2>
110
- <div id="attributes"></div>
111
- </div>
112
- <div id="eventsDoc">
113
- <h2 class="text-xl font-bold">Events</h2>
114
- <pre class="rounded bg-slate-800 p-4 text-slate-200">
115
- document.getElementById('notifications').addEventListener('mwc:attribute', (event) => {
116
- console.log('Display last data received:', event.data);
117
- });</pre
118
- >
119
- <div id="events"></div>
120
- </div>
121
- <br />
122
- <br />
123
- <h1 class="text-xl font-bold">More mobility web components</h1>
124
- <p>
125
- <a href="index.html" target="_blank"
126
- >&gt;&gt; Usage example Map Component</a
127
- >
128
- </p>
129
- </div>
130
- <br />
131
- <br />
132
- <script type="text/javascript">
133
- const pkgSrc = "https://www.unpkg.com/@geops/rvf-mobility-web-component";
134
- const wc = document.querySelector("geops-mobility-notifications");
135
-
136
- window.addEventListener("load", () => {
137
- const attributes = window.MobilityNotificationsAttributes || {};
138
- const events = window.MobilityNotificationsEvents || {};
139
-
140
- onLoad(wc, attributes, events, pkgSrc);
141
- });
142
- </script>
143
- </body>
144
- </html>
package/scripts/build.mjs DELETED
@@ -1,17 +0,0 @@
1
- import * as esbuild from "esbuild";
2
- import { sassPlugin } from "esbuild-sass-plugin";
3
-
4
- await esbuild.build({
5
- bundle: true,
6
- entryPoints: ["./src/index.js", "./src/indexDoc.js"],
7
- loader: {
8
- ".png": "dataurl",
9
- ".svg": "dataurl",
10
- },
11
- minify: true,
12
- splitting: true,
13
- format: "esm",
14
- outdir: "dist",
15
- plugins: [sassPlugin({ type: "css-text" })],
16
- sourcemap: false,
17
- });
package/scripts/dev.mjs DELETED
@@ -1,30 +0,0 @@
1
- import * as esbuild from "esbuild";
2
- import { sassPlugin } from "esbuild-sass-plugin";
3
-
4
- const ctx = await esbuild.context({
5
- bundle: true,
6
- entryPoints: ["./src/index.js", "./src/indexDoc.js"],
7
- loader: {
8
- ".png": "dataurl",
9
- ".svg": "dataurl",
10
- },
11
- outdir: "dist",
12
- plugins: [sassPlugin({ type: "css-text" })],
13
- sourcemap: true,
14
- splitting: true,
15
- format: "esm",
16
- // minify: true,
17
- });
18
-
19
- const { host, port } = await ctx.serve({
20
- servedir: ".",
21
- });
22
-
23
- await ctx.watch();
24
-
25
- // eslint-disable-next-line no-undef
26
- console.log(
27
- `watching... and running at ${
28
- !host || host === "0.0.0.0" ? "http://localhost" : host
29
- }:${port}`,
30
- );
package/search.html DELETED
@@ -1,122 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Mobility Web Component</title>
6
- <link rel="icon" type="image/x-icon" href="favicon.ico" />
7
- <meta
8
- name="viewport"
9
- content="initial-scale=1,maximum-scale=1,user-scalable=no"
10
- />
11
- <script type="text/javascript">
12
- if (/localhost/.test(window.location.hostname)) {
13
- new EventSource("/esbuild").addEventListener("change", () => {
14
- location.reload();
15
- });
16
- }
17
- </script>
18
- <script type="module" src="./index.js"></script>
19
- <script type="module" src="./indexDoc.js"></script>
20
- <script src="./docutils.js"></script>
21
- <link rel="stylesheet" type="text/css" href="./output.css" />
22
- <style>
23
- ::-webkit-scrollbar {
24
- width: 3px;
25
- height: 3px;
26
- }
27
-
28
- a {
29
- text-decoration: underline;
30
- }
31
- </style>
32
- </head>
33
-
34
- <body class="p-8">
35
- <!-- tailwind hack to add class used in docutils -->
36
- <div
37
- class="flex w-full table-auto gap-4 border bg-black pt-2 mt-2 px-4 py-2 text-white hover:bg-gray-700"
38
- style="display: none"
39
- ></div>
40
- <div
41
- id="doc"
42
- style="display: none"
43
- class="mx-auto h-96 max-w-3xl space-y-4"
44
- >
45
- <h1 class="text-3xl font-bold">Mobility Search Web Component</h1>
46
- <p>This is a demo of the geOps Mobility Search Web Component.</p>
47
- <p>This web component launches a search on the <b>geOps Stops API</b></p>
48
- <p>Every parameters of the <b>geOps Stops API</b>:</p>
49
- <ul class="pl-8">
50
- <li class="list-disc">
51
- can be passed as a string attribute of the web component.
52
- </li>
53
- <li class="list-disc">
54
- can be passed as an URL parameter of this page, they will be
55
- automatically apply to the web component.
56
- </li>
57
- </ul>
58
- <p>
59
- The list of parameters of the <b>geOps Stops API</b> can be found
60
- <a
61
- href="https://developer.geops.io/apis/stops#parameters"
62
- target="_blank"
63
- >here</a
64
- >.
65
- </p>
66
-
67
- <h2 class="text-xl font-bold">Usage example</h2>
68
- <pre id="code" class="rounded bg-slate-800 p-4 text-slate-200"></pre>
69
-
70
- <geops-mobility-search
71
- id="search"
72
- class="block max-w-3xl border"
73
- limit="5"
74
- mots="rail,bus"
75
- ></geops-mobility-search>
76
-
77
- <div id="attributesDoc" class="space-y-4">
78
- <h2 class="text-xl font-bold">Attributes</h2>
79
- <div id="attributes"></div>
80
- </div>
81
- <div id="eventsDoc" class="space-y-4">
82
- <h2 class="text-xl font-bold">Events</h2>
83
- <pre class="rounded bg-slate-800 p-4 text-slate-200">
84
- document.getElementById('search').addEventListener('mwc:attribute', (event) => {
85
- console.log('Display last data received:', event.data);
86
- });
87
- </pre
88
- >
89
- <div id="events"></div>
90
- </div>
91
- <br />
92
- <br />
93
- <h1 class="text-xl font-bold">More mobility web components</h1>
94
- <p>
95
- <a href="index.html" target="_blank"
96
- >&gt;&gt; Usage example Map Component
97
- </a>
98
- </p>
99
- <br />
100
- <br />
101
- </div>
102
- <br />
103
- <br />
104
- <script type="text/javascript">
105
- const pkgSrc = "https://www.unpkg.com/@geops/mobility-web-component";
106
- const wc = document.querySelector("geops-mobility-search");
107
-
108
- window.addEventListener("load", () => {
109
- const attributes = window.MobilitySearchAttributes;
110
- const events = window.MobilitySearchEvents;
111
- const descriptionByEvent = {
112
- "mwc:stopssearchselect":
113
- "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.",
114
- "mwc:attribute":
115
- "Event fired when an web component's attribute is changed. The event data contains the list of all attributes and their values.",
116
- };
117
-
118
- onLoad(wc, attributes, events, pkgSrc);
119
- });
120
- </script>
121
- </body>
122
- </html>
@@ -1,61 +0,0 @@
1
- import { MaplibreLayer } from "mobility-toolbox-js/ol";
2
- import { memo } from "preact/compat";
3
- import { useEffect, useMemo } from "preact/hooks";
4
-
5
- import useMapContext from "../utils/hooks/useMapContext";
6
-
7
- import type { MaplibreLayerOptions } from "mobility-toolbox-js/ol/layers/MaplibreLayer";
8
-
9
- export type BaseLayerProps = MaplibreLayerOptions;
10
-
11
- function BaseLayer(props: BaseLayerProps) {
12
- const { apikey, baselayer, hasPrint, hasShare, map, mapsurl, setBaseLayer } =
13
- useMapContext();
14
-
15
- // For printing purpose and bild saving purpose otherwise can be false.
16
- const preserveDrawingBuffer = useMemo(() => {
17
- return hasShare || hasPrint;
18
- }, [hasShare, hasPrint]);
19
-
20
- const layer = useMemo(() => {
21
- if (!baselayer || !apikey) {
22
- return;
23
- }
24
- return new MaplibreLayer({
25
- apiKey: apikey,
26
- style: baselayer,
27
- url: mapsurl,
28
- zIndex: 0,
29
-
30
- ...(props || {}),
31
- mapLibreOptions: {
32
- // For printing purpose
33
- maxCanvasSize: [20000, 20000], // remove 4096 limitations
34
- ...(props?.mapLibreOptions || {}),
35
- canvasContextAttributes: {
36
- preserveDrawingBuffer: preserveDrawingBuffer,
37
- ...(props?.mapLibreOptions?.canvasContextAttributes || {}),
38
- },
39
- },
40
- });
41
- }, [baselayer, apikey, mapsurl, props, preserveDrawingBuffer]);
42
-
43
- useEffect(() => {
44
- setBaseLayer(layer);
45
- }, [layer, setBaseLayer]);
46
-
47
- useEffect(() => {
48
- if (!map || !layer) {
49
- return;
50
- }
51
- map.addLayer(layer);
52
-
53
- return () => {
54
- map.removeLayer(layer);
55
- };
56
- }, [map, layer]);
57
-
58
- return null;
59
- }
60
-
61
- export default memo(BaseLayer);
@@ -1 +0,0 @@
1
- export { default } from "./BaseLayer";
@@ -1,51 +0,0 @@
1
- import { CopyrightControl } from "mobility-toolbox-js/ol";
2
- import { useEffect, useMemo, useState } from "preact/hooks";
3
-
4
- import useMapContext from "../utils/hooks/useMapContext";
5
-
6
- import type { CopyrightControlOptions } from "mobility-toolbox-js/ol/controls/CopyrightControl";
7
- import type { HTMLAttributes, PreactDOMAttributes } from "preact";
8
-
9
- export type CopyrightProps = {
10
- options?: CopyrightControlOptions;
11
- } & HTMLAttributes<HTMLDivElement> &
12
- PreactDOMAttributes;
13
-
14
- function Copyright({ options, ...props }: CopyrightProps) {
15
- const { map } = useMapContext();
16
- const [target, setTarget] = useState<HTMLElement>();
17
- const control = useMemo(() => {
18
- if (!target) {
19
- return null;
20
- }
21
- const div = document.createElement("div");
22
- div.className = "flex flex-wrap-reverse justify-end";
23
-
24
- return new CopyrightControl({
25
- element: div,
26
- target,
27
- ...options,
28
- });
29
- }, [options, target]);
30
-
31
- useEffect(() => {
32
- if (!map || !control) {
33
- return;
34
- }
35
- map.addControl(control);
36
- return () => {
37
- map?.removeControl(control);
38
- };
39
- }, [map, control]);
40
-
41
- return (
42
- <div
43
- ref={(node) => {
44
- setTarget(node);
45
- }}
46
- {...props}
47
- ></div>
48
- );
49
- }
50
-
51
- export default Copyright;
@@ -1 +0,0 @@
1
- export { default } from "../RvfCopyright";