@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,2 @@
1
+ export { SWRDataLabLight };
2
+ import SWRDataLabLight from './SWRDataLabLight';
@@ -0,0 +1,20 @@
1
+ declare const tokens: {
2
+ sans_regular: string[];
3
+ sans_medium: string[];
4
+ sans_bold: string[];
5
+ background: string;
6
+ water: string;
7
+ water_light: string;
8
+ marsh: string;
9
+ grass: string;
10
+ grass_dark: string;
11
+ street_primary: string;
12
+ street_primary_outline: string;
13
+ street_secondary: string;
14
+ street_secondary_outline: string;
15
+ street_tertiary: string;
16
+ street_tertiary_outline: string;
17
+ label_primary: string;
18
+ label_secondary: string;
19
+ };
20
+ export default tokens;
@@ -0,0 +1,20 @@
1
+ const tokens = {
2
+ sans_regular: ['SWR Sans Regular'],
3
+ sans_medium: ['SWR Sans Medium'],
4
+ sans_bold: ['SWR Sans Bold'],
5
+ background: 'hsl(0, 0%, 100%)',
6
+ water: 'hsl(210, 41%, 87%)',
7
+ water_light: 'hsl(210, 41%, 90%)',
8
+ marsh: 'hsl(200, 14%, 97%)',
9
+ grass: 'hsl(149, 37%, 97%)',
10
+ grass_dark: 'hsl(149, 37%, 93%)',
11
+ street_primary: 'hsl(0, 0%, 95%)',
12
+ street_primary_outline: 'hsla(0, 0%, 0%, 20%)',
13
+ street_secondary: 'hsl(0, 0%, 95%)',
14
+ street_secondary_outline: 'hsl(0, 0%, 50%)',
15
+ street_tertiary: 'hsl(0, 0%, 95%)',
16
+ street_tertiary_outline: 'hsl(0, 0%, 50%)',
17
+ label_primary: 'rgb(10, 10, 11)',
18
+ label_secondary: 'hsl(240, 2%, 20%)'
19
+ };
20
+ export default tokens;
@@ -1,14 +1,12 @@
1
- <script context="module" lang="ts">
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import NavigationControl from './NavigationControl.svelte';
4
- import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
5
- import { SWRDataLabLight } from '../MapStyle';
6
- import Map from '../Map/Map.svelte';
7
-
8
- const { Story } = defineMeta({
9
- title: 'Maplibre/Control/NavigationControl',
10
- component: NavigationControl
11
- });
1
+ <script context="module" lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
2
+ import NavigationControl from './NavigationControl.svelte';
3
+ import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
4
+ import { SWRDataLabLight } from '../MapStyle';
5
+ import Map from '../Map/Map.svelte';
6
+ const { Story } = defineMeta({
7
+ title: 'Maplibre/Control/NavigationControl',
8
+ component: NavigationControl
9
+ });
12
10
  </script>
13
11
 
14
12
  <Story asChild name="Default">
@@ -0,0 +1,19 @@
1
+ import NavigationControl from './NavigationControl.svelte';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const NavigationControl: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type NavigationControl = InstanceType<typeof NavigationControl>;
19
+ export default NavigationControl;
@@ -0,0 +1,9 @@
1
+ <script lang="ts">import maplibre, {} from 'maplibre-gl';
2
+ import MapControl from '../MapControl/MapControl.svelte';
3
+ const { showCompass = false, visualizePitch = false, position = 'bottom-left' } = $props();
4
+ </script>
5
+
6
+ <MapControl control={new maplibre.NavigationControl({ showCompass, visualizePitch })} {position} />
7
+
8
+ <style>
9
+ </style>
@@ -0,0 +1,12 @@
1
+ import { type ControlPosition } from 'maplibre-gl';
2
+ interface NavigationControlProps {
3
+ showCompass?: boolean;
4
+ /**
5
+ * Show 3d tilt in the compass control. Requires `showCompass` to be `true`
6
+ */
7
+ visualizePitch?: boolean;
8
+ position?: ControlPosition;
9
+ }
10
+ declare const NavigationControl: import("svelte").Component<NavigationControlProps, {}, "">;
11
+ type NavigationControl = ReturnType<typeof NavigationControl>;
12
+ export default NavigationControl;
@@ -0,0 +1,2 @@
1
+ export default NavigationControl;
2
+ import NavigationControl from './NavigationControl.svelte';
@@ -1,16 +1,13 @@
1
- <script context="module" lang="ts">
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import { within, expect } from 'storybook/test';
4
-
5
- import ScaleControl from './ScaleControl.svelte';
6
- import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
7
- import Map from '../Map/Map.svelte';
8
- import { SWRDataLabLight } from '../MapStyle';
9
-
10
- const { Story } = defineMeta({
11
- title: 'Maplibre/Control/ScaleControl',
12
- component: ScaleControl
13
- });
1
+ <script context="module" lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
2
+ import { within, expect } from 'storybook/test';
3
+ import ScaleControl from './ScaleControl.svelte';
4
+ import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
5
+ import Map from '../Map/Map.svelte';
6
+ import { SWRDataLabLight } from '../MapStyle';
7
+ const { Story } = defineMeta({
8
+ title: 'Maplibre/Control/ScaleControl',
9
+ component: ScaleControl
10
+ });
14
11
  </script>
15
12
 
16
13
  <Story
@@ -0,0 +1,19 @@
1
+ import ScaleControl from './ScaleControl.svelte';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const ScaleControl: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type ScaleControl = InstanceType<typeof ScaleControl>;
19
+ export default ScaleControl;
@@ -0,0 +1,9 @@
1
+ <script lang="ts">import maplibre, {} from 'maplibre-gl';
2
+ import MapControl from '../MapControl/MapControl.svelte';
3
+ let { maxWidth = 100, unit = 'metric', position = 'bottom-left' } = $props();
4
+ </script>
5
+
6
+ <MapControl control={new maplibre.ScaleControl({ maxWidth, unit })} {position} />
7
+
8
+ <style>
9
+ </style>
@@ -0,0 +1,9 @@
1
+ import { type ControlPosition, type Unit } from 'maplibre-gl';
2
+ interface ScaleControlProps {
3
+ maxWidth?: number | undefined;
4
+ position?: ControlPosition;
5
+ unit?: Unit;
6
+ }
7
+ declare const ScaleControl: import("svelte").Component<ScaleControlProps, {}, "">;
8
+ type ScaleControl = ReturnType<typeof ScaleControl>;
9
+ export default ScaleControl;
@@ -0,0 +1,2 @@
1
+ export default ScaleControl;
2
+ import ScaleControl from './ScaleControl.svelte';
@@ -0,0 +1,7 @@
1
+ <script context="module" lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
2
+ import MapSource from './MapSource.svelte';
3
+ const { Story } = defineMeta({
4
+ title: 'Maplibre/MapSource',
5
+ component: MapSource
6
+ });
7
+ </script>
@@ -0,0 +1,19 @@
1
+ import MapSource from './MapSource.svelte';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const MapSource: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type MapSource = InstanceType<typeof MapSource>;
19
+ export default MapSource;
@@ -0,0 +1,43 @@
1
+ <script lang="ts">import { onDestroy } from 'svelte';
2
+ import {} from 'maplibre-gl';
3
+ import { getMapContext, createSourceContext } from '../context.svelte.js';
4
+ let { id, sourceSpec, source = $bindable(), children } = $props();
5
+ let firstRun = true;
6
+ // Get map context
7
+ const { map, styleLoaded } = $derived(getMapContext());
8
+ // Create source context
9
+ const sourceContext = createSourceContext();
10
+ // 1. Add the source to the map using the spec, then get the
11
+ // actual source object back from the map instance
12
+ $effect(() => {
13
+ if (map && styleLoaded) {
14
+ // See: https://svelte.dev/docs/svelte/$state#$state.snapshot
15
+ map.addSource(id, $state.snapshot(sourceSpec));
16
+ source = map.getSource(id);
17
+ firstRun = true;
18
+ }
19
+ });
20
+ // 2. Do extra stuff with the source object
21
+ $effect(() => {
22
+ if (source) {
23
+ }
24
+ });
25
+ $effect(() => {
26
+ source;
27
+ firstRun = false;
28
+ });
29
+ onDestroy(() => {
30
+ if (map && styleLoaded) {
31
+ const layers = map?.getStyle().layers;
32
+ layers
33
+ .filter((l) => l.type !== 'background' && l.source == id)
34
+ .forEach((l) => {
35
+ map?.removeLayer(l.id);
36
+ });
37
+ map.removeSource(id);
38
+ source = undefined;
39
+ }
40
+ });
41
+ </script>
42
+
43
+ {@render children?.()}
@@ -0,0 +1,13 @@
1
+ import { type Snippet } from 'svelte';
2
+ import { type Map, type SourceSpecification } from 'maplibre-gl';
3
+ type Source = maplibregl.VectorTileSource;
4
+ interface MapSourceProps {
5
+ id: string;
6
+ sourceSpec: SourceSpecification;
7
+ source?: Source;
8
+ onLoad?: (map: Map, url?: string, data?: string) => undefined;
9
+ children?: Snippet;
10
+ }
11
+ declare const MapSource: import("svelte").Component<MapSourceProps, {}, "source">;
12
+ type MapSource = ReturnType<typeof MapSource>;
13
+ export default MapSource;
@@ -0,0 +1,2 @@
1
+ export default MapSource;
2
+ import MapSource from './MapSource.svelte';
@@ -0,0 +1,28 @@
1
+ import type { Map, SourceSpecification } from 'maplibre-gl';
2
+ /**
3
+ * Add a source to the map.
4
+ *
5
+ * @param map - The map instance
6
+ * @param sourceId - The ID of the source to add
7
+ * @param source - The source specification object
8
+ * @param okToAdd - Callback to check if the source should still be added
9
+ * @param cb - Callback when the source has been added
10
+ *
11
+ * This properly handles the case where an old source with the same ID is still being removed.
12
+ */
13
+ export declare function addSource(map: Map, sourceId: string, source: SourceSpecification, okToAdd: (sourceId: string) => boolean, cb: () => void): void;
14
+ /**
15
+ * A helper function that removes a source from the map after all of the layers inside it have
16
+ * had a chance to remove themselves.
17
+ *
18
+ * @param {Readable<Map|undefined>} mapStore - The store containing the Map instance
19
+ * @param {string} sourceId - The ID of the source to remove
20
+ * @param {unknown} sourceObj - The source object that was originally added
21
+ *
22
+ * Waits one tick to ensure layers have a chance to be removed, then checks if the
23
+ * source with the given ID is still the same object as was originally added.
24
+ *
25
+ * If so, it removes the source from the map. This avoids removing a source that was
26
+ * already replaced by another source reusing the same ID.
27
+ */
28
+ export declare function removeSource(map: Map, sourceId: string, sourceObj: unknown): void;
@@ -0,0 +1,76 @@
1
+ import { tick } from 'svelte';
2
+ /**
3
+ * Add a source to the map.
4
+ *
5
+ * @param map - The map instance
6
+ * @param sourceId - The ID of the source to add
7
+ * @param source - The source specification object
8
+ * @param okToAdd - Callback to check if the source should still be added
9
+ * @param cb - Callback when the source has been added
10
+ *
11
+ * This properly handles the case where an old source with the same ID is still being removed.
12
+ */
13
+ export function addSource(map, sourceId, source, okToAdd, cb) {
14
+ // If there was an old source with the same ID, then remove it. This can happen when removing a source and adding a new source in quick succession.
15
+ let removed = false;
16
+ if (map.getSource(sourceId)) {
17
+ removed = true;
18
+ map.removeSource(sourceId);
19
+ }
20
+ const doAddSource = () => {
21
+ if (!okToAdd(sourceId)) {
22
+ // in case the component was destroyed or the id changed while waiting to call this
23
+ return;
24
+ }
25
+ map.addSource(sourceId, source);
26
+ cb();
27
+ };
28
+ if (removed) {
29
+ // Source removal happens quickly but asynchronously, and we have no way to really interlock on when it happens, so just loop until it does.
30
+ const waitForRemoval = () => {
31
+ if (!sourceId) {
32
+ return;
33
+ }
34
+ if (map.getSource(sourceId)) {
35
+ // The source hasn't been removed yet, so keep waiting.
36
+ setTimeout(waitForRemoval, 1);
37
+ }
38
+ else {
39
+ doAddSource();
40
+ }
41
+ };
42
+ waitForRemoval();
43
+ }
44
+ else {
45
+ // If we don't have an existing source to remove (i.e. the normal case) then
46
+ // just add the source right away.
47
+ doAddSource();
48
+ }
49
+ }
50
+ /**
51
+ * A helper function that removes a source from the map after all of the layers inside it have
52
+ * had a chance to remove themselves.
53
+ *
54
+ * @param {Readable<Map|undefined>} mapStore - The store containing the Map instance
55
+ * @param {string} sourceId - The ID of the source to remove
56
+ * @param {unknown} sourceObj - The source object that was originally added
57
+ *
58
+ * Waits one tick to ensure layers have a chance to be removed, then checks if the
59
+ * source with the given ID is still the same object as was originally added.
60
+ *
61
+ * If so, it removes the source from the map. This avoids removing a source that was
62
+ * already replaced by another source reusing the same ID.
63
+ */
64
+ export function removeSource(map, sourceId, sourceObj) {
65
+ tick().then(() => {
66
+ // Wait a tick so that the layers inside this source can all be removed.
67
+ // But make sure that the source wasn't already replaced with another source with the same ID.
68
+ if (!map.loaded()) {
69
+ return;
70
+ }
71
+ let remainingSource = map.getSource(sourceId);
72
+ if (remainingSource === sourceObj) {
73
+ map.removeSource(sourceId);
74
+ }
75
+ });
76
+ }
@@ -1,26 +1,20 @@
1
- <script module lang="ts">
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import type { LngLatLike, MapGeoJSONFeature } from 'maplibre-gl';
4
-
5
- import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
6
- import Map from '../Map/Map.svelte';
7
- import VectorTileSource from '../VectorTileSource/VectorTileSource.svelte';
8
- import VectorLayer from '../VectorLayer/VectorLayer.svelte';
9
- import AttributionControl from '../AttributionControl/AttributionControl.svelte';
10
- import Tooltip from './Tooltip.svelte';
11
- import { SWRDataLabLight } from '../MapStyle';
12
-
13
- const { Story } = defineMeta({
14
- title: 'Maplibre/Extras/Tooltip',
15
- component: Tooltip
16
- });
17
-
18
- let hovered = $state() as MapGeoJSONFeature | undefined;
19
- let hovered2 = $state() as MapGeoJSONFeature | undefined;
20
- let hoverCoords = $state([0, 0]) as LngLatLike;
21
-
22
- let selected = $state() as MapGeoJSONFeature | undefined;
23
- let selectCoords = $state([0, 0]) as LngLatLike;
1
+ <script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
2
+ import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
3
+ import Map from '../Map/Map.svelte';
4
+ import VectorTileSource from '../VectorTileSource/VectorTileSource.svelte';
5
+ import VectorLayer from '../VectorLayer/VectorLayer.svelte';
6
+ import AttributionControl from '../AttributionControl/AttributionControl.svelte';
7
+ import Tooltip from './Tooltip.svelte';
8
+ import { SWRDataLabLight } from '../MapStyle';
9
+ const { Story } = defineMeta({
10
+ title: 'Maplibre/Extras/Tooltip',
11
+ component: Tooltip
12
+ });
13
+ let hovered = $state();
14
+ let hovered2 = $state();
15
+ let hoverCoords = $state([0, 0]);
16
+ let selected = $state();
17
+ let selectCoords = $state([0, 0]);
24
18
  </script>
25
19
 
26
20
  <Story asChild name="Default">
@@ -0,0 +1,19 @@
1
+ import Tooltip from './Tooltip.svelte';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const Tooltip: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type Tooltip = InstanceType<typeof Tooltip>;
19
+ export default Tooltip;
@@ -0,0 +1,46 @@
1
+ <script lang="ts">import { onDestroy } from 'svelte';
2
+ import maplibre, {} from 'maplibre-gl';
3
+ import { getMapContext } from '../context.svelte.js';
4
+ import { resetPopupEventListener } from '../utils';
5
+ let { position, children, offset = 20, maxWidth = 360, showCloseButton = false, closeOnClick = true, mouseEvents = false, onClose, onOpen } = $props();
6
+ const { map } = $derived(getMapContext());
7
+ let tooltip = new maplibre.Popup({
8
+ closeButton: showCloseButton,
9
+ closeOnClick: closeOnClick,
10
+ maxWidth: `${maxWidth}px`,
11
+ offset: offset
12
+ });
13
+ let el = $state();
14
+ $effect(() => {
15
+ if (position && el && map) {
16
+ tooltip.setLngLat(position).setDOMContent(el).addTo(map);
17
+ }
18
+ else {
19
+ tooltip.remove();
20
+ }
21
+ });
22
+ // Bind events
23
+ $effect(() => resetPopupEventListener(tooltip, 'open', onOpen));
24
+ $effect(() => resetPopupEventListener(tooltip, 'close', onClose));
25
+ onDestroy(() => tooltip.remove());
26
+ </script>
27
+
28
+ <div bind:this={el} class="container" class:mouseEvents>
29
+ {@render children?.()}
30
+ </div>
31
+
32
+ <style>
33
+ .container {
34
+ background: white;
35
+ padding: 0.75em;
36
+ border-radius: 2px;
37
+ border: 1px solid rgba(0, 0, 0, 0.75);
38
+ border-radius: var(--br-small);
39
+ filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
40
+ pointer-events: none;
41
+ }
42
+
43
+ .mouseEvents {
44
+ pointer-events: all;
45
+ }
46
+ </style>
@@ -0,0 +1,25 @@
1
+ import { type Snippet } from 'svelte';
2
+ import { type Listener, type LngLatLike } from 'maplibre-gl';
3
+ interface TooltipProps {
4
+ position: LngLatLike | undefined;
5
+ children?: Snippet;
6
+ maxWidth?: number;
7
+ showCloseButton?: boolean;
8
+ /**
9
+ * Close the tooltip if the user clicks anywhere on the map
10
+ */
11
+ closeOnClick?: boolean;
12
+ /**
13
+ * y axis offset (px)
14
+ */
15
+ offset?: number;
16
+ /**
17
+ * Toggle mouse events on the tooltip element. Should be false if the tooltip appears on hover to avoid flickering.
18
+ */
19
+ mouseEvents?: boolean;
20
+ onClose?: Listener | undefined;
21
+ onOpen?: Listener | undefined;
22
+ }
23
+ declare const Tooltip: import("svelte").Component<TooltipProps, {}, "">;
24
+ type Tooltip = ReturnType<typeof Tooltip>;
25
+ export default Tooltip;
@@ -0,0 +1,2 @@
1
+ export default Tooltip;
2
+ import Tooltip from './Tooltip.svelte';
@@ -1,17 +1,14 @@
1
- <script context="module" lang="ts">
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import Map from '../Map/Map.svelte';
4
- import VectorLayer from './VectorLayer.svelte';
5
- import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
6
- import AttributionControl from '../AttributionControl/AttributionControl.svelte';
7
- import VectorTileSource from '../VectorTileSource/VectorTileSource.svelte';
8
-
9
- import { SWRDataLabLight } from '../MapStyle';
10
-
11
- const { Story } = defineMeta({
12
- title: 'Maplibre/Layer/VectorLayer',
13
- component: VectorLayer
14
- });
1
+ <script context="module" lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
2
+ import Map from '../Map/Map.svelte';
3
+ import VectorLayer from './VectorLayer.svelte';
4
+ import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
5
+ import AttributionControl from '../AttributionControl/AttributionControl.svelte';
6
+ import VectorTileSource from '../VectorTileSource/VectorTileSource.svelte';
7
+ import { SWRDataLabLight } from '../MapStyle';
8
+ const { Story } = defineMeta({
9
+ title: 'Maplibre/Layer/VectorLayer',
10
+ component: VectorLayer
11
+ });
15
12
  </script>
16
13
 
17
14
  <Story asChild name="Default">
@@ -0,0 +1,19 @@
1
+ import VectorLayer from './VectorLayer.svelte';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const VectorLayer: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type VectorLayer = InstanceType<typeof VectorLayer>;
19
+ export default VectorLayer;