@swr-data-lab/components 1.13.0 → 1.13.1

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 (325) hide show
  1. package/dist/Autocomplete/Autocomplete.stories.svelte.d.ts +27 -0
  2. package/dist/Autocomplete/Autocomplete.svelte +237 -0
  3. package/dist/Autocomplete/Autocomplete.svelte.d.ts +34 -0
  4. package/dist/Autocomplete/index.d.ts +2 -0
  5. package/dist/Button/Button.stories.svelte +19 -0
  6. package/dist/Button/Button.stories.svelte.d.ts +19 -0
  7. package/dist/Button/Button.svelte +38 -0
  8. package/dist/Button/Button.svelte.d.ts +10 -0
  9. package/dist/Button/index.d.ts +2 -0
  10. package/dist/Caption/Caption.stories.svelte.d.ts +27 -0
  11. package/dist/Caption/Caption.svelte +21 -0
  12. package/dist/Caption/Caption.svelte.d.ts +8 -0
  13. package/dist/Caption/index.js +2 -0
  14. package/dist/Card/Card.stories.svelte +17 -0
  15. package/dist/Card/Card.stories.svelte.d.ts +19 -0
  16. package/dist/Card/Card.svelte +25 -0
  17. package/dist/Card/Card.svelte.d.ts +7 -0
  18. package/dist/Card/index.d.ts +2 -0
  19. package/dist/ChartFooter/ChartFooter.stories.svelte.d.ts +27 -0
  20. package/dist/ChartFooter/ChartFooter.svelte +38 -0
  21. package/dist/ChartFooter/ChartFooter.svelte.d.ts +8 -0
  22. package/dist/ChartFooter/index.d.ts +2 -0
  23. package/dist/ChartHeader/ChartHeader.stories.svelte.d.ts +27 -0
  24. package/{src → dist}/ChartHeader/ChartHeader.svelte +4 -12
  25. package/dist/ChartHeader/ChartHeader.svelte.d.ts +9 -0
  26. package/dist/ChartHeader/index.d.ts +2 -0
  27. package/dist/ChartList/ChartList.stories.svelte.d.ts +27 -0
  28. package/{src → dist}/ChartList/ChartList.svelte +2 -16
  29. package/dist/ChartList/ChartList.svelte.d.ts +14 -0
  30. package/dist/ChartList/index.js +2 -0
  31. package/dist/Copy/Copy.stories.svelte.d.ts +27 -0
  32. package/dist/Copy/Copy.svelte +21 -0
  33. package/dist/Copy/Copy.svelte.d.ts +8 -0
  34. package/dist/Copy/index.js +2 -0
  35. package/dist/DesignTokens/DesignTokens.svelte +58 -0
  36. package/dist/DesignTokens/DesignTokens.svelte.d.ts +7 -0
  37. package/dist/DesignTokens/Tokens.d.ts +26 -0
  38. package/dist/DesignTokens/Tokens.js +171 -0
  39. package/dist/DesignTokens/index.d.ts +8 -0
  40. package/dist/FormLabel/FormLabel.stories.svelte.d.ts +27 -0
  41. package/{src → dist}/FormLabel/FormLabel.svelte +2 -9
  42. package/dist/FormLabel/FormLabel.svelte.d.ts +9 -0
  43. package/dist/FormLabel/index.js +2 -0
  44. package/dist/Headline/Headline.stories.svelte.d.ts +27 -0
  45. package/{src → dist}/Headline/Headline.svelte +2 -7
  46. package/dist/Headline/Headline.svelte.d.ts +7 -0
  47. package/dist/Headline/index.js +2 -0
  48. package/{src → dist}/HighlightCard/HighlightCard.stories.svelte +7 -9
  49. package/dist/HighlightCard/HighlightCard.stories.svelte.d.ts +19 -0
  50. package/dist/HighlightCard/HighlightCard.svelte +54 -0
  51. package/dist/HighlightCard/HighlightCard.svelte.d.ts +9 -0
  52. package/dist/HighlightCard/index.d.ts +2 -0
  53. package/dist/Input/Input.svelte +32 -0
  54. package/dist/Input/Input.svelte.d.ts +23 -0
  55. package/dist/Input/index.d.ts +2 -0
  56. package/dist/Logotype/Logotype.stories.svelte +14 -0
  57. package/dist/Logotype/Logotype.stories.svelte.d.ts +19 -0
  58. package/dist/Logotype/Logotype.svelte.d.ts +26 -0
  59. package/dist/Middot/Middot.stories.svelte +14 -0
  60. package/dist/Middot/Middot.stories.svelte.d.ts +19 -0
  61. package/dist/Middot/Middot.svelte.d.ts +26 -0
  62. package/dist/Middot/index.d.ts +2 -0
  63. package/dist/Note/Note.stories.svelte.d.ts +27 -0
  64. package/dist/Note/Note.svelte +28 -0
  65. package/dist/Note/Note.svelte.d.ts +7 -0
  66. package/dist/Note/index.js +2 -0
  67. package/{src → dist}/Select/Select.stories.svelte +12 -15
  68. package/dist/Select/Select.stories.svelte.d.ts +19 -0
  69. package/dist/Select/Select.svelte +39 -0
  70. package/dist/Select/Select.svelte.d.ts +4 -0
  71. package/{src/Select/Select.types.ts → dist/Select/Select.types.d.ts} +1 -2
  72. package/dist/Select/Select.types.js +1 -0
  73. package/dist/Select/SelectStoriesTemplate.svelte.d.ts +15 -0
  74. package/dist/Select/index.d.ts +2 -0
  75. package/dist/Switcher/Switcher.stories.svelte.d.ts +27 -0
  76. package/dist/Switcher/Switcher.svelte +111 -0
  77. package/dist/Switcher/Switcher.svelte.d.ts +21 -0
  78. package/dist/Switcher/index.d.ts +2 -0
  79. package/dist/assets/close-circle.svg.svelte.d.ts +26 -0
  80. package/dist/assets/grow.svg.svelte.d.ts +26 -0
  81. package/dist/assets/hand-pointer.svg.svelte.d.ts +26 -0
  82. package/dist/assets/shrink.svg.svelte.d.ts +26 -0
  83. package/dist/assets/tap.svg.svelte.d.ts +26 -0
  84. package/dist/assets/times-circle-solid.svg.svelte.d.ts +26 -0
  85. package/dist/index.d.ts +29 -0
  86. package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte +27 -0
  87. package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte.d.ts +19 -0
  88. package/dist/maplibre/AttributionControl/AttributionControl.svelte +15 -0
  89. package/dist/maplibre/AttributionControl/AttributionControl.svelte.d.ts +8 -0
  90. package/dist/maplibre/AttributionControl/index.d.ts +2 -0
  91. package/dist/maplibre/GeocoderControl/GeocoderAPIs.d.ts +6 -0
  92. package/dist/maplibre/GeocoderControl/GeocoderAPIs.js +40 -0
  93. package/{src → dist}/maplibre/GeocoderControl/GeocoderControl.stories.svelte +10 -14
  94. package/dist/maplibre/GeocoderControl/GeocoderControl.stories.svelte.d.ts +19 -0
  95. package/dist/maplibre/GeocoderControl/GeocoderControl.svelte +25 -0
  96. package/dist/maplibre/GeocoderControl/GeocoderControl.svelte.d.ts +27 -0
  97. package/dist/maplibre/GeocoderControl/index.d.ts +2 -0
  98. package/dist/maplibre/Map/FallbackStyle.d.ts +3 -0
  99. package/dist/maplibre/Map/FallbackStyle.js +15 -0
  100. package/{src → dist}/maplibre/Map/Map.stories.svelte +19 -24
  101. package/dist/maplibre/Map/Map.stories.svelte.d.ts +19 -0
  102. package/dist/maplibre/Map/Map.svelte +91 -0
  103. package/dist/maplibre/Map/Map.svelte.d.ts +23 -0
  104. package/dist/maplibre/Map/index.d.ts +2 -0
  105. package/dist/maplibre/MapControl/MapControl.stories.svelte +46 -0
  106. package/dist/maplibre/MapControl/MapControl.stories.svelte.d.ts +19 -0
  107. package/dist/maplibre/MapControl/MapControl.svelte +29 -0
  108. package/dist/maplibre/MapControl/MapControl.svelte.d.ts +11 -0
  109. package/dist/maplibre/MapControl/index.d.ts +2 -0
  110. package/dist/maplibre/MapStyle/SWRDataLabLight.d.ts +3 -0
  111. package/dist/maplibre/MapStyle/SWRDataLabLight.js +60 -0
  112. package/{src → dist}/maplibre/MapStyle/SWRDataLabLight.stories.svelte +10 -12
  113. package/dist/maplibre/MapStyle/SWRDataLabLight.stories.svelte.d.ts +18 -0
  114. package/dist/maplibre/MapStyle/components/Admin.d.ts +1 -0
  115. package/dist/maplibre/MapStyle/components/Admin.js +170 -0
  116. package/dist/maplibre/MapStyle/components/Buildings.d.ts +1 -0
  117. package/dist/maplibre/MapStyle/components/Buildings.js +21 -0
  118. package/dist/maplibre/MapStyle/components/Landuse.d.ts +1 -0
  119. package/dist/maplibre/MapStyle/components/Landuse.js +497 -0
  120. package/dist/maplibre/MapStyle/components/Natural.d.ts +1 -0
  121. package/dist/maplibre/MapStyle/components/Natural.js +1 -0
  122. package/dist/maplibre/MapStyle/components/PlaceLabels.d.ts +4 -0
  123. package/dist/maplibre/MapStyle/components/PlaceLabels.js +194 -0
  124. package/dist/maplibre/MapStyle/components/Roads.d.ts +8 -0
  125. package/dist/maplibre/MapStyle/components/Roads.js +2327 -0
  126. package/dist/maplibre/MapStyle/components/Transit.d.ts +7 -0
  127. package/dist/maplibre/MapStyle/components/Transit.js +499 -0
  128. package/dist/maplibre/MapStyle/components/Walking.d.ts +1 -0
  129. package/dist/maplibre/MapStyle/components/Walking.js +1530 -0
  130. package/dist/maplibre/MapStyle/index.d.ts +2 -0
  131. package/dist/maplibre/MapStyle/tokens.d.ts +20 -0
  132. package/dist/maplibre/MapStyle/tokens.js +20 -0
  133. package/{src → dist}/maplibre/NavigationControl/NavigationControl.stories.svelte +9 -11
  134. package/dist/maplibre/NavigationControl/NavigationControl.stories.svelte.d.ts +19 -0
  135. package/dist/maplibre/NavigationControl/NavigationControl.svelte +9 -0
  136. package/dist/maplibre/NavigationControl/NavigationControl.svelte.d.ts +12 -0
  137. package/dist/maplibre/NavigationControl/index.d.ts +2 -0
  138. package/{src → dist}/maplibre/ScaleControl/ScaleControl.stories.svelte +10 -13
  139. package/dist/maplibre/ScaleControl/ScaleControl.stories.svelte.d.ts +19 -0
  140. package/dist/maplibre/ScaleControl/ScaleControl.svelte +9 -0
  141. package/dist/maplibre/ScaleControl/ScaleControl.svelte.d.ts +9 -0
  142. package/dist/maplibre/ScaleControl/index.d.ts +2 -0
  143. package/dist/maplibre/Source/MapSource.stories.svelte +7 -0
  144. package/dist/maplibre/Source/MapSource.stories.svelte.d.ts +19 -0
  145. package/dist/maplibre/Source/MapSource.svelte +43 -0
  146. package/dist/maplibre/Source/MapSource.svelte.d.ts +13 -0
  147. package/dist/maplibre/Source/index.d.ts +2 -0
  148. package/dist/maplibre/Source/source.d.ts +28 -0
  149. package/dist/maplibre/Source/source.js +76 -0
  150. package/{src → dist}/maplibre/Tooltip/Tooltip.stories.svelte +17 -23
  151. package/dist/maplibre/Tooltip/Tooltip.stories.svelte.d.ts +19 -0
  152. package/dist/maplibre/Tooltip/Tooltip.svelte +46 -0
  153. package/dist/maplibre/Tooltip/Tooltip.svelte.d.ts +25 -0
  154. package/dist/maplibre/Tooltip/index.d.ts +2 -0
  155. package/{src → dist}/maplibre/VectorLayer/VectorLayer.stories.svelte +11 -14
  156. package/dist/maplibre/VectorLayer/VectorLayer.stories.svelte.d.ts +19 -0
  157. package/dist/maplibre/VectorLayer/VectorLayer.svelte +73 -0
  158. package/dist/maplibre/VectorLayer/VectorLayer.svelte.d.ts +21 -0
  159. package/dist/maplibre/VectorLayer/index.d.ts +2 -0
  160. package/{src → dist}/maplibre/VectorTileSource/VectorTileSource.stories.svelte +11 -13
  161. package/dist/maplibre/VectorTileSource/VectorTileSource.stories.svelte.d.ts +19 -0
  162. package/dist/maplibre/VectorTileSource/VectorTileSource.svelte +13 -0
  163. package/dist/maplibre/VectorTileSource/VectorTileSource.svelte.d.ts +11 -0
  164. package/dist/maplibre/VectorTileSource/index.d.ts +2 -0
  165. package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte +27 -0
  166. package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte.d.ts +19 -0
  167. package/dist/maplibre/WithLinkLocation/WithLinkLocation.svelte +44 -0
  168. package/dist/maplibre/WithLinkLocation/WithLinkLocation.svelte.d.ts +19 -0
  169. package/dist/maplibre/WithLinkLocation/index.d.ts +2 -0
  170. package/dist/maplibre/context.svelte.d.ts +33 -0
  171. package/dist/maplibre/context.svelte.js +73 -0
  172. package/{src/maplibre/types.ts → dist/maplibre/types.d.ts} +3 -5
  173. package/dist/maplibre/types.js +1 -0
  174. package/dist/maplibre/utils.d.ts +4 -0
  175. package/dist/maplibre/utils.js +34 -0
  176. package/dist/utils/formatDate.d.ts +5 -0
  177. package/dist/utils/formatNumber.d.ts +18 -0
  178. package/dist/utils/getColorsBetween.d.ts +9 -0
  179. package/dist/utils/getComparisonDiffs.d.ts +6 -0
  180. package/dist/utils/getEmbedContext.d.ts +7 -0
  181. package/dist/utils/getEmbedContext.js +27 -0
  182. package/dist/utils/getLaenderFromTopo.d.ts +10 -0
  183. package/dist/utils/getLaenderNicenameFromAgs.d.ts +7 -0
  184. package/dist/utils/isSvelteComponent.d.ts +7 -0
  185. package/dist/utils/prepareSophoraModel.d.ts +2 -0
  186. package/dist/utils/scrollIntoViewWithOffset.d.ts +7 -0
  187. package/dist/utils/slugify.d.ts +1 -0
  188. package/dist/utils/slugify.js +11 -0
  189. package/dist/utils/topoToGeo.d.ts +7 -0
  190. package/package.json +30 -7
  191. package/.storybook/blocks/Mermaid.jsx +0 -9
  192. package/.storybook/main.ts +0 -34
  193. package/.storybook/preview-head.html +0 -13
  194. package/.storybook/preview.ts +0 -47
  195. package/.storybook/vitest.setup.ts +0 -9
  196. package/src/Autocomplete/Autocomplete.svelte +0 -237
  197. package/src/Button/Button.stories.svelte +0 -21
  198. package/src/Button/Button.svelte +0 -52
  199. package/src/Caption/Caption.svelte +0 -29
  200. package/src/Card/Card.stories.svelte +0 -19
  201. package/src/Card/Card.svelte +0 -34
  202. package/src/ChartFooter/ChartFooter.svelte +0 -46
  203. package/src/Copy/Copy.svelte +0 -29
  204. package/src/DesignTokens/DesignTokens.svelte +0 -71
  205. package/src/DesignTokens/Tokens.ts +0 -186
  206. package/src/HighlightCard/HighlightCard.svelte +0 -65
  207. package/src/Input/Input.svelte +0 -21
  208. package/src/Logotype/Logotype.stories.svelte +0 -16
  209. package/src/Middot/Middot.stories.svelte +0 -16
  210. package/src/Note/Note.svelte +0 -38
  211. package/src/Select/Select.svelte +0 -76
  212. package/src/Switcher/Switcher.svelte +0 -130
  213. package/src/maplibre/AttributionControl/AttributionControl.stories.svelte +0 -29
  214. package/src/maplibre/AttributionControl/AttributionControl.svelte +0 -45
  215. package/src/maplibre/GeocoderControl/GeocoderAPIs.ts +0 -49
  216. package/src/maplibre/GeocoderControl/GeocoderControl.svelte +0 -211
  217. package/src/maplibre/Map/FallbackStyle.ts +0 -18
  218. package/src/maplibre/Map/Map.svelte +0 -287
  219. package/src/maplibre/MapControl/MapControl.stories.svelte +0 -56
  220. package/src/maplibre/MapControl/MapControl.svelte +0 -41
  221. package/src/maplibre/MapStyle/SWRDataLabLight.ts +0 -72
  222. package/src/maplibre/MapStyle/components/Admin.ts +0 -173
  223. package/src/maplibre/MapStyle/components/Buildings.ts +0 -23
  224. package/src/maplibre/MapStyle/components/Landuse.ts +0 -499
  225. package/src/maplibre/MapStyle/components/Natural.ts +0 -1
  226. package/src/maplibre/MapStyle/components/PlaceLabels.ts +0 -199
  227. package/src/maplibre/MapStyle/components/Roads.ts +0 -2345
  228. package/src/maplibre/MapStyle/components/Transit.ts +0 -507
  229. package/src/maplibre/MapStyle/components/Walking.ts +0 -1538
  230. package/src/maplibre/MapStyle/tokens.ts +0 -21
  231. package/src/maplibre/NavigationControl/NavigationControl.svelte +0 -36
  232. package/src/maplibre/ScaleControl/ScaleControl.svelte +0 -25
  233. package/src/maplibre/Source/MapSource.stories.svelte +0 -9
  234. package/src/maplibre/Source/MapSource.svelte +0 -61
  235. package/src/maplibre/Source/source.ts +0 -89
  236. package/src/maplibre/Tooltip/Tooltip.svelte +0 -183
  237. package/src/maplibre/VectorLayer/VectorLayer.svelte +0 -146
  238. package/src/maplibre/VectorTileSource/VectorTileSource.svelte +0 -24
  239. package/src/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte +0 -29
  240. package/src/maplibre/WithLinkLocation/WithLinkLocation.svelte +0 -83
  241. package/src/maplibre/context.svelte.ts +0 -89
  242. package/src/maplibre/utils.ts +0 -52
  243. package/src/utils/getEmbedContext.js +0 -28
  244. package/src/utils/slugify.ts +0 -12
  245. package/static/favicon.png +0 -0
  246. package/svelte.config.js +0 -18
  247. package/tsconfig.json +0 -19
  248. package/vite.config.ts +0 -6
  249. package/vitest.workspace.ts +0 -32
  250. /package/{src → dist}/Autocomplete/Autocomplete.stories.svelte +0 -0
  251. /package/{src → dist}/Autocomplete/index.js +0 -0
  252. /package/{src → dist}/Button/index.js +0 -0
  253. /package/{src → dist}/Caption/Caption.stories.svelte +0 -0
  254. /package/{src/Caption/index.ts → dist/Caption/index.d.ts} +0 -0
  255. /package/{src → dist}/Card/index.js +0 -0
  256. /package/{src → dist}/ChartFooter/ChartFooter.mdx +0 -0
  257. /package/{src → dist}/ChartFooter/ChartFooter.stories.svelte +0 -0
  258. /package/{src → dist}/ChartFooter/index.js +0 -0
  259. /package/{src → dist}/ChartHeader/ChartHeader.mdx +0 -0
  260. /package/{src → dist}/ChartHeader/ChartHeader.stories.svelte +0 -0
  261. /package/{src → dist}/ChartHeader/index.js +0 -0
  262. /package/{src → dist}/ChartList/ChartList.mdx +0 -0
  263. /package/{src → dist}/ChartList/ChartList.stories.svelte +0 -0
  264. /package/{src/ChartList/index.ts → dist/ChartList/index.d.ts} +0 -0
  265. /package/{src → dist}/Copy/Copy.stories.svelte +0 -0
  266. /package/{src/Copy/index.ts → dist/Copy/index.d.ts} +0 -0
  267. /package/{src → dist}/DesignTokens/DesignTokens.mdx +0 -0
  268. /package/{src → dist}/DesignTokens/index.js +0 -0
  269. /package/{src → dist}/FormLabel/FormLabel.mdx +0 -0
  270. /package/{src → dist}/FormLabel/FormLabel.stories.svelte +0 -0
  271. /package/{src/FormLabel/index.ts → dist/FormLabel/index.d.ts} +0 -0
  272. /package/{src → dist}/Headline/Headline.stories.svelte +0 -0
  273. /package/{src/Headline/index.ts → dist/Headline/index.d.ts} +0 -0
  274. /package/{src → dist}/HighlightCard/index.js +0 -0
  275. /package/{src → dist}/Input/index.js +0 -0
  276. /package/{src → dist}/Intro.mdx +0 -0
  277. /package/{src → dist}/Logotype/Logotype.svelte +0 -0
  278. /package/{src → dist}/Middot/Middot.svelte +0 -0
  279. /package/{src → dist}/Middot/index.js +0 -0
  280. /package/{src → dist}/Note/Note.stories.svelte +0 -0
  281. /package/{src/Note/index.ts → dist/Note/index.d.ts} +0 -0
  282. /package/{src → dist}/Select/Select.mdx +0 -0
  283. /package/{src → dist}/Select/SelectStoriesTemplate.svelte +0 -0
  284. /package/{src → dist}/Select/index.js +0 -0
  285. /package/{src → dist}/Select/mock_data/jobs.json +0 -0
  286. /package/{src → dist}/Switcher/Switcher.mdx +0 -0
  287. /package/{src → dist}/Switcher/Switcher.stories.svelte +0 -0
  288. /package/{src → dist}/Switcher/index.js +0 -0
  289. /package/{src → dist}/app.d.ts +0 -0
  290. /package/{src → dist}/app.html +0 -0
  291. /package/{src → dist}/assets/close-circle.svg.svelte +0 -0
  292. /package/{src → dist}/assets/grow.svg.svelte +0 -0
  293. /package/{src → dist}/assets/hand-pointer.svg.svelte +0 -0
  294. /package/{src → dist}/assets/shrink.svg.svelte +0 -0
  295. /package/{src → dist}/assets/tap.svg.svelte +0 -0
  296. /package/{src → dist}/assets/times-circle-solid.svg.svelte +0 -0
  297. /package/{src → dist}/index.js +0 -0
  298. /package/{src → dist}/maplibre/AttributionControl/index.js +0 -0
  299. /package/{src → dist}/maplibre/GeocoderControl/index.js +0 -0
  300. /package/{src → dist}/maplibre/Map/index.js +0 -0
  301. /package/{src → dist}/maplibre/MapControl/MapControl.mdx +0 -0
  302. /package/{src → dist}/maplibre/MapControl/index.js +0 -0
  303. /package/{src → dist}/maplibre/MapStyle/SWRDataLabLight.mdx +0 -0
  304. /package/{src → dist}/maplibre/MapStyle/index.js +0 -0
  305. /package/{src → dist}/maplibre/Maplibre.mdx +0 -0
  306. /package/{src → dist}/maplibre/NavigationControl/index.js +0 -0
  307. /package/{src → dist}/maplibre/ScaleControl/index.js +0 -0
  308. /package/{src → dist}/maplibre/Source/index.js +0 -0
  309. /package/{src → dist}/maplibre/Tooltip/index.js +0 -0
  310. /package/{src → dist}/maplibre/VectorLayer/index.js +0 -0
  311. /package/{src → dist}/maplibre/VectorTileSource/VectorTileSource.mdx +0 -0
  312. /package/{src → dist}/maplibre/VectorTileSource/index.js +0 -0
  313. /package/{src → dist}/maplibre/WithLinkLocation/WithLinkLocation.mdx +0 -0
  314. /package/{src → dist}/maplibre/WithLinkLocation/index.js +0 -0
  315. /package/{src → dist}/styles/base.scss +0 -0
  316. /package/{src → dist}/utils/formatDate.js +0 -0
  317. /package/{src → dist}/utils/formatNumber.js +0 -0
  318. /package/{src → dist}/utils/getColorsBetween.js +0 -0
  319. /package/{src → dist}/utils/getComparisonDiffs.js +0 -0
  320. /package/{src → dist}/utils/getLaenderFromTopo.js +0 -0
  321. /package/{src → dist}/utils/getLaenderNicenameFromAgs.js +0 -0
  322. /package/{src → dist}/utils/isSvelteComponent.js +0 -0
  323. /package/{src → dist}/utils/prepareSophoraModel.js +0 -0
  324. /package/{src → dist}/utils/scrollIntoViewWithOffset.js +0 -0
  325. /package/{src → dist}/utils/topoToGeo.js +0 -0
@@ -0,0 +1,497 @@
1
+ import tokens from '../tokens';
2
+ import {} from '../../types';
3
+ export default function makeLanduse() {
4
+ const landuse = [
5
+ {
6
+ id: 'background',
7
+ type: 'background',
8
+ paint: {
9
+ 'background-color': tokens.background
10
+ }
11
+ },
12
+ {
13
+ id: 'water-ocean',
14
+ type: 'fill',
15
+ 'source-layer': 'ocean',
16
+ paint: {
17
+ 'fill-color': 'hsl(220, 30%, 96%)'
18
+ }
19
+ },
20
+ {
21
+ id: 'land-glacier',
22
+ type: 'fill',
23
+ 'source-layer': 'water_polygons',
24
+ filter: ['all', ['==', 'kind', 'glacier']],
25
+ paint: {
26
+ 'fill-color': 'hsl(0,0%,100%)'
27
+ }
28
+ },
29
+ {
30
+ id: 'land-agriculture',
31
+ type: 'fill',
32
+ 'source-layer': 'land',
33
+ filter: [
34
+ 'all',
35
+ [
36
+ 'in',
37
+ 'kind',
38
+ 'brownfield',
39
+ 'farmland',
40
+ 'farmyard',
41
+ 'greenfield',
42
+ 'greenhouse_horticulture',
43
+ 'orchard',
44
+ 'plant_nursery',
45
+ 'vineyard'
46
+ ]
47
+ ],
48
+ paint: {
49
+ 'fill-color': tokens.grass,
50
+ 'fill-opacity': {
51
+ stops: [
52
+ [11, 0],
53
+ [12, 1]
54
+ ]
55
+ }
56
+ }
57
+ },
58
+ {
59
+ id: 'land-waste',
60
+ type: 'fill',
61
+ 'source-layer': 'land',
62
+ filter: ['all', ['in', 'kind', 'landfill']],
63
+ paint: {
64
+ 'fill-color': 'hsl(50,0%,95%)',
65
+ 'fill-opacity': {
66
+ stops: [
67
+ [10, 0],
68
+ [11, 1]
69
+ ]
70
+ }
71
+ }
72
+ },
73
+ {
74
+ id: 'land-park',
75
+ type: 'fill',
76
+ 'source-layer': 'land',
77
+ filter: ['all', ['in', 'kind', 'park', 'village_green', 'recreation_ground']],
78
+ paint: {
79
+ 'fill-color': tokens.grass,
80
+ 'fill-opacity': {
81
+ stops: [
82
+ [11, 0],
83
+ [12, 1]
84
+ ]
85
+ }
86
+ }
87
+ },
88
+ {
89
+ id: 'land-garden',
90
+ type: 'fill',
91
+ 'source-layer': 'land',
92
+ filter: ['all', ['in', 'kind', 'allotments', 'garden']],
93
+ paint: {
94
+ 'fill-color': tokens.grass,
95
+ 'fill-opacity': {
96
+ stops: [
97
+ [14, 0],
98
+ [15, 1]
99
+ ]
100
+ }
101
+ }
102
+ },
103
+ {
104
+ id: 'land-burial',
105
+ type: 'fill',
106
+ 'source-layer': 'land',
107
+ filter: ['all', ['in', 'kind', 'cemetery', 'grave_yard']],
108
+ paint: {
109
+ 'fill-color': tokens.grass,
110
+ 'fill-opacity': {
111
+ stops: [
112
+ [12, 0],
113
+ [13, 1]
114
+ ]
115
+ }
116
+ }
117
+ },
118
+ {
119
+ id: 'land-leisure',
120
+ type: 'fill',
121
+ 'source-layer': 'land',
122
+ filter: ['all', ['in', 'kind', 'miniature_golf', 'playground', 'golf_course']],
123
+ paint: {
124
+ 'fill-color': tokens.grass_dark
125
+ }
126
+ },
127
+ {
128
+ id: 'land-rock',
129
+ type: 'fill',
130
+ 'source-layer': 'land',
131
+ filter: ['all', ['in', 'kind', 'bare_rock', 'scree', 'shingle']],
132
+ paint: {
133
+ 'fill-color': 'hsl(192,0%,90%)'
134
+ }
135
+ },
136
+ {
137
+ id: 'land-forest',
138
+ type: 'fill',
139
+ 'source-layer': 'land',
140
+ filter: ['all', ['in', 'kind', 'forest']],
141
+ paint: {
142
+ 'fill-color': tokens.grass,
143
+ 'fill-opacity': {
144
+ stops: [
145
+ [12, 0],
146
+ [13, 0.25]
147
+ ]
148
+ }
149
+ }
150
+ },
151
+ {
152
+ id: 'land-grass',
153
+ type: 'fill',
154
+ 'source-layer': 'land',
155
+ filter: ['all', ['in', 'kind', 'grass', 'grassland', 'meadow', 'wet_meadow']],
156
+ paint: {
157
+ 'fill-color': tokens.grass,
158
+ 'fill-opacity': {
159
+ stops: [
160
+ [11, 0],
161
+ [12, 1]
162
+ ]
163
+ }
164
+ }
165
+ },
166
+ {
167
+ id: 'land-vegetation',
168
+ type: 'fill',
169
+ 'source-layer': 'land',
170
+ filter: ['all', ['in', 'kind', 'heath', 'scrub']],
171
+ paint: {
172
+ 'fill-color': tokens.grass,
173
+ 'fill-opacity': {
174
+ stops: [
175
+ [11, 0],
176
+ [12, 1]
177
+ ]
178
+ }
179
+ }
180
+ },
181
+ {
182
+ id: 'land-sand',
183
+ type: 'fill',
184
+ 'source-layer': 'land',
185
+ filter: ['all', ['in', 'kind', 'beach', 'sand']],
186
+ paint: {
187
+ 'fill-color': 'hsl(60,0%,95%)'
188
+ }
189
+ },
190
+ {
191
+ id: 'land-wetland',
192
+ type: 'fill',
193
+ 'source-layer': 'land',
194
+ filter: ['all', ['in', 'kind', 'bog', 'marsh', 'string_bog', 'swamp']],
195
+ paint: {
196
+ 'fill-color': tokens.marsh,
197
+ 'fill-opacity': {
198
+ stops: [
199
+ [10, 0],
200
+ [11, 1]
201
+ ]
202
+ }
203
+ }
204
+ },
205
+ {
206
+ id: 'water-river',
207
+ type: 'line',
208
+ 'source-layer': 'water_lines',
209
+ filter: ['all', ['in', 'kind', 'river'], ['!=', 'tunnel', true]],
210
+ paint: {
211
+ 'line-color': tokens.water,
212
+ 'line-width': {
213
+ stops: [
214
+ [8, 0],
215
+ [10, 1],
216
+ [12, 2],
217
+ [15, 4],
218
+ [17, 9],
219
+ [18, 20],
220
+ [20, 60]
221
+ ]
222
+ }
223
+ },
224
+ layout: {
225
+ 'line-cap': 'round',
226
+ 'line-join': 'round'
227
+ }
228
+ },
229
+ {
230
+ id: 'water-canal',
231
+ type: 'line',
232
+ 'source-layer': 'water_lines',
233
+ filter: ['all', ['in', 'kind', 'canal'], ['!=', 'tunnel', true], ['!=', 'bridge', true]],
234
+ paint: {
235
+ 'line-color': tokens.water,
236
+ 'line-width': {
237
+ stops: [
238
+ [9, 0],
239
+ [10, 2],
240
+ [15, 3],
241
+ [17, 8],
242
+ [18, 17],
243
+ [20, 50]
244
+ ]
245
+ }
246
+ },
247
+ layout: {
248
+ 'line-cap': 'round',
249
+ 'line-join': 'round'
250
+ }
251
+ },
252
+ {
253
+ id: 'water-stream',
254
+ type: 'line',
255
+ 'source-layer': 'water_lines',
256
+ filter: ['all', ['in', 'kind', 'stream'], ['!=', 'tunnel', true], ['!=', 'bridge', true]],
257
+ paint: {
258
+ 'line-color': tokens.water,
259
+ 'line-width': {
260
+ stops: [
261
+ [13, 0],
262
+ [14, 1],
263
+ [15, 2],
264
+ [17, 6],
265
+ [18, 12],
266
+ [20, 30]
267
+ ]
268
+ }
269
+ },
270
+ layout: {
271
+ 'line-cap': 'round',
272
+ 'line-join': 'round'
273
+ }
274
+ },
275
+ {
276
+ id: 'water-ditch',
277
+ type: 'line',
278
+ 'source-layer': 'water_lines',
279
+ filter: ['all', ['in', 'kind', 'ditch'], ['!=', 'tunnel', true], ['!=', 'bridge', true]],
280
+ paint: {
281
+ 'line-color': tokens.water_light,
282
+ 'line-width': {
283
+ stops: [
284
+ [14, 0],
285
+ [15, 1],
286
+ [17, 4],
287
+ [18, 8],
288
+ [20, 20]
289
+ ]
290
+ }
291
+ },
292
+ layout: {
293
+ 'line-cap': 'round',
294
+ 'line-join': 'round'
295
+ }
296
+ },
297
+ {
298
+ id: 'water-area',
299
+ type: 'fill',
300
+ 'source-layer': 'water_polygons',
301
+ filter: ['==', 'kind', 'water'],
302
+ paint: {
303
+ 'fill-color': tokens.water_light,
304
+ 'fill-opacity': {
305
+ stops: [
306
+ [4, 0],
307
+ [6, 1]
308
+ ]
309
+ }
310
+ }
311
+ },
312
+ {
313
+ id: 'water-area-river',
314
+ type: 'fill',
315
+ 'source-layer': 'water_polygons',
316
+ filter: ['==', 'kind', 'river'],
317
+ paint: {
318
+ 'fill-color': tokens.water,
319
+ 'fill-opacity': {
320
+ stops: [
321
+ [4, 0],
322
+ [6, 1]
323
+ ]
324
+ }
325
+ }
326
+ },
327
+ {
328
+ id: 'water-area-small',
329
+ type: 'fill',
330
+ 'source-layer': 'water_polygons',
331
+ filter: ['in', 'kind', 'reservoir', 'basin', 'dock'],
332
+ paint: {
333
+ 'fill-color': tokens.water,
334
+ 'fill-opacity': {
335
+ stops: [
336
+ [4, 0],
337
+ [6, 1]
338
+ ]
339
+ }
340
+ }
341
+ },
342
+ {
343
+ id: 'water-dam-area',
344
+ type: 'fill',
345
+ 'source-layer': 'dam_polygons',
346
+ filter: ['==', 'kind', 'dam'],
347
+ paint: {
348
+ 'fill-color': 'hsl(33,0%,95%)',
349
+ 'fill-opacity': {
350
+ stops: [
351
+ [12, 0],
352
+ [13, 1]
353
+ ]
354
+ }
355
+ }
356
+ },
357
+ {
358
+ id: 'water-dam',
359
+ type: 'line',
360
+ 'source-layer': 'dam_lines',
361
+ filter: ['==', 'kind', 'dam'],
362
+ paint: {
363
+ 'line-color': 'hsl(205,0%,85%)'
364
+ },
365
+ layout: {
366
+ 'line-cap': 'round',
367
+ 'line-join': 'round'
368
+ }
369
+ },
370
+ {
371
+ id: 'water-pier-area',
372
+ type: 'fill',
373
+ 'source-layer': 'pier_polygons',
374
+ filter: ['in', 'kind', 'pier', 'breakwater', 'groyne'],
375
+ paint: {
376
+ 'fill-color': tokens.street_tertiary,
377
+ 'fill-opacity': {
378
+ stops: [
379
+ [14, 0],
380
+ [15, 1]
381
+ ]
382
+ }
383
+ }
384
+ },
385
+ {
386
+ id: 'water-pier',
387
+ type: 'line',
388
+ 'source-layer': 'pier_lines',
389
+ filter: ['in', 'kind', 'pier', 'breakwater', 'groyne'],
390
+ paint: {
391
+ 'line-color': tokens.street_tertiary,
392
+ 'line-opacity': {
393
+ stops: [
394
+ [14, 0],
395
+ [15, 1]
396
+ ]
397
+ }
398
+ },
399
+ layout: {
400
+ 'line-cap': 'round',
401
+ 'line-join': 'round'
402
+ }
403
+ },
404
+ {
405
+ id: 'site-dangerarea',
406
+ type: 'fill',
407
+ 'source-layer': 'sites',
408
+ filter: ['in', 'kind', 'danger_area'],
409
+ paint: {
410
+ 'fill-color': 'hsl(0,0%,50%)',
411
+ 'fill-outline-color': 'hsl(0,0%,50%)',
412
+ 'fill-opacity': 0.3
413
+ }
414
+ },
415
+ {
416
+ id: 'site-university',
417
+ type: 'fill',
418
+ 'source-layer': 'sites',
419
+ filter: ['in', 'kind', 'university'],
420
+ paint: {
421
+ 'fill-color': 'hsl(60,0%,75%)',
422
+ 'fill-opacity': 0.1
423
+ }
424
+ },
425
+ {
426
+ id: 'site-college',
427
+ type: 'fill',
428
+ 'source-layer': 'sites',
429
+ filter: ['in', 'kind', 'college'],
430
+ paint: {
431
+ 'fill-color': 'hsl(60,0%,75%)',
432
+ 'fill-opacity': 0.1
433
+ }
434
+ },
435
+ {
436
+ id: 'site-school',
437
+ type: 'fill',
438
+ 'source-layer': 'sites',
439
+ filter: ['in', 'kind', 'school'],
440
+ paint: {
441
+ 'fill-color': 'hsl(60,0%,75%)',
442
+ 'fill-opacity': 0.1
443
+ }
444
+ },
445
+ {
446
+ id: 'site-hospital',
447
+ type: 'fill',
448
+ 'source-layer': 'sites',
449
+ filter: ['in', 'kind', 'hospital'],
450
+ paint: {
451
+ 'fill-color': 'hsl(0,0%,70%)',
452
+ 'fill-opacity': 0.1
453
+ }
454
+ },
455
+ {
456
+ id: 'site-prison',
457
+ type: 'fill',
458
+ 'source-layer': 'sites',
459
+ filter: ['in', 'kind', 'prison'],
460
+ paint: {
461
+ 'fill-color': 'hsl(305,0%,97%)',
462
+ 'fill-opacity': 0.1
463
+ }
464
+ },
465
+ {
466
+ id: 'site-parking',
467
+ type: 'fill',
468
+ 'source-layer': 'sites',
469
+ filter: ['in', 'kind', 'parking'],
470
+ paint: {
471
+ 'fill-color': 'hsl(24,0%,95%)'
472
+ }
473
+ },
474
+ {
475
+ id: 'site-bicycleparking',
476
+ type: 'fill',
477
+ 'source-layer': 'sites',
478
+ filter: ['in', 'kind', 'bicycle_parking'],
479
+ paint: {
480
+ 'fill-color': 'hsl(24,0%,95%)'
481
+ }
482
+ },
483
+ {
484
+ id: 'site-construction',
485
+ type: 'fill',
486
+ 'source-layer': 'sites',
487
+ filter: ['in', 'kind', 'construction'],
488
+ paint: {
489
+ 'fill-color': 'hsl(0,0%,66%)',
490
+ 'fill-opacity': 0.1
491
+ }
492
+ }
493
+ ].map((el) => {
494
+ return { source: 'versatiles-osm', ...el };
495
+ });
496
+ return { landuse };
497
+ }
@@ -0,0 +1 @@
1
+ export default function makeNatural(): void;
@@ -0,0 +1 @@
1
+ export default function makeNatural() { }
@@ -0,0 +1,4 @@
1
+ import type { SymbolLayerSpecification } from 'maplibre-gl';
2
+ export default function makePlaceLabels(): {
3
+ placeLabels: SymbolLayerSpecification[];
4
+ };
@@ -0,0 +1,194 @@
1
+ import tokens from '../tokens';
2
+ export default function makePlaceLabels() {
3
+ const placeLabels = [
4
+ {
5
+ id: 'label-place-neighbourhood',
6
+ filter: ['==', 'kind', 'neighbourhood'],
7
+ minzoom: 14,
8
+ layout: {
9
+ 'text-field': '{name_de}',
10
+ 'text-font': tokens.sans_regular,
11
+ 'text-size': {
12
+ stops: [[14, 14]]
13
+ }
14
+ },
15
+ paint: {
16
+ 'text-color': tokens.label_secondary,
17
+ 'text-halo-color': tokens.background,
18
+ 'text-halo-width': 2
19
+ }
20
+ },
21
+ {
22
+ id: 'label-place-quarter',
23
+ filter: ['==', 'kind', 'quarter'],
24
+ minzoom: 14,
25
+ layout: {
26
+ 'text-field': '{name_de}',
27
+ 'text-font': tokens.sans_regular,
28
+ 'text-size': {
29
+ stops: [[10, 14]]
30
+ }
31
+ },
32
+ paint: {
33
+ 'text-color': tokens.label_secondary,
34
+ 'text-halo-color': tokens.background,
35
+ 'text-halo-width': 2
36
+ }
37
+ },
38
+ {
39
+ id: 'label-place-suburb',
40
+ filter: ['==', 'kind', 'suburb'],
41
+ minzoom: 11,
42
+ layout: {
43
+ 'text-field': '{name_de}',
44
+ 'text-font': tokens.sans_regular,
45
+ 'text-size': {
46
+ stops: [
47
+ [11, 13],
48
+ [13, 15]
49
+ ]
50
+ }
51
+ },
52
+ paint: {
53
+ 'text-color': tokens.label_secondary,
54
+ 'text-halo-color': tokens.background,
55
+ 'text-halo-width': 1.5
56
+ }
57
+ },
58
+ {
59
+ id: 'label-place-hamlet',
60
+ filter: ['==', 'kind', 'hamlet'],
61
+ minzoom: 13,
62
+ layout: {
63
+ 'text-field': '{name_de}',
64
+ 'text-font': tokens.sans_regular,
65
+ 'text-size': {
66
+ stops: [
67
+ [10, 11],
68
+ [12, 14]
69
+ ]
70
+ }
71
+ },
72
+ paint: {
73
+ 'text-color': tokens.label_secondary,
74
+ 'text-halo-color': tokens.background,
75
+ 'text-halo-width': 2
76
+ }
77
+ },
78
+ {
79
+ id: 'label-place-village',
80
+ filter: ['==', 'kind', 'village'],
81
+ minzoom: 11,
82
+ layout: {
83
+ 'text-field': '{name_de}',
84
+ 'text-font': tokens.sans_regular,
85
+ 'text-size': {
86
+ stops: [
87
+ [9, 11],
88
+ [12, 14]
89
+ ]
90
+ }
91
+ },
92
+ paint: {
93
+ 'text-color': tokens.label_secondary,
94
+ 'text-halo-color': tokens.background,
95
+ 'text-halo-width': 2
96
+ }
97
+ },
98
+ {
99
+ id: 'label-place-town',
100
+ filter: ['==', 'kind', 'town'],
101
+ minzoom: 9,
102
+ layout: {
103
+ 'text-field': '{name_de}',
104
+ 'text-font': tokens.sans_regular,
105
+ 'text-letter-spacing': 0.015,
106
+ 'text-size': {
107
+ stops: [
108
+ [8, 13],
109
+ [12, 16]
110
+ ]
111
+ }
112
+ },
113
+ paint: {
114
+ 'text-color': tokens.label_primary,
115
+ 'text-halo-color': tokens.background,
116
+ 'text-halo-width': 2
117
+ }
118
+ },
119
+ {
120
+ id: 'label-place-city',
121
+ filter: ['==', 'kind', 'city'],
122
+ minzoom: 6,
123
+ maxzoom: 11,
124
+ layout: {
125
+ 'text-field': '{name_de}',
126
+ 'text-font': tokens.sans_regular,
127
+ 'text-letter-spacing': 0.015,
128
+ 'text-size': {
129
+ stops: [
130
+ [8, 14],
131
+ [10, 14]
132
+ ]
133
+ }
134
+ },
135
+ paint: {
136
+ 'text-color': tokens.label_secondary,
137
+ 'text-halo-color': tokens.background,
138
+ 'text-halo-width': 2
139
+ }
140
+ },
141
+ {
142
+ id: 'label-place-statecapital',
143
+ filter: ['==', 'kind', 'state_capital'],
144
+ minzoom: 5,
145
+ maxzoom: 12,
146
+ layout: {
147
+ 'text-field': '{name_de}',
148
+ 'text-font': tokens.sans_regular,
149
+ 'text-letter-spacing': 0.025,
150
+ 'text-size': {
151
+ stops: [
152
+ [5, 13],
153
+ [14, 20]
154
+ ]
155
+ }
156
+ },
157
+ paint: {
158
+ 'text-color': tokens.label_secondary,
159
+ 'text-halo-color': tokens.background,
160
+ 'text-halo-width': 1
161
+ }
162
+ },
163
+ {
164
+ id: 'label-place-capital',
165
+ filter: ['all', ['==', 'kind', 'capital'], ['==', 'name_de', 'Berlin']],
166
+ minzoom: 5,
167
+ maxzoom: 12,
168
+ layout: {
169
+ 'text-field': '{name_de}',
170
+ 'text-letter-spacing': 0.015,
171
+ 'text-font': tokens.sans_medium,
172
+ 'text-size': {
173
+ stops: [
174
+ [5, 15],
175
+ [14, 20]
176
+ ]
177
+ }
178
+ },
179
+ paint: {
180
+ 'text-color': tokens.label_primary,
181
+ 'text-halo-color': tokens.background,
182
+ 'text-halo-width': 2
183
+ }
184
+ }
185
+ ].map((el) => {
186
+ return {
187
+ type: 'symbol',
188
+ source: 'versatiles-osm',
189
+ 'source-layer': 'place_labels',
190
+ ...el
191
+ };
192
+ });
193
+ return { placeLabels };
194
+ }