@swr-data-lab/components 1.13.1 → 1.13.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.
- package/package.json +2 -4
- package/dist/Autocomplete/Autocomplete.stories.svelte +0 -61
- package/dist/Autocomplete/Autocomplete.stories.svelte.d.ts +0 -27
- package/dist/Button/Button.stories.svelte +0 -19
- package/dist/Button/Button.stories.svelte.d.ts +0 -19
- package/dist/Caption/Caption.stories.svelte +0 -24
- package/dist/Caption/Caption.stories.svelte.d.ts +0 -27
- package/dist/Card/Card.stories.svelte +0 -17
- package/dist/Card/Card.stories.svelte.d.ts +0 -19
- package/dist/ChartFooter/ChartFooter.stories.svelte +0 -32
- package/dist/ChartFooter/ChartFooter.stories.svelte.d.ts +0 -27
- package/dist/ChartHeader/ChartHeader.stories.svelte +0 -31
- package/dist/ChartHeader/ChartHeader.stories.svelte.d.ts +0 -27
- package/dist/ChartList/ChartList.stories.svelte +0 -48
- package/dist/ChartList/ChartList.stories.svelte.d.ts +0 -27
- package/dist/Copy/Copy.stories.svelte +0 -32
- package/dist/Copy/Copy.stories.svelte.d.ts +0 -27
- package/dist/FormLabel/FormLabel.stories.svelte +0 -52
- package/dist/FormLabel/FormLabel.stories.svelte.d.ts +0 -27
- package/dist/Headline/Headline.stories.svelte +0 -17
- package/dist/Headline/Headline.stories.svelte.d.ts +0 -27
- package/dist/HighlightCard/HighlightCard.stories.svelte +0 -55
- package/dist/HighlightCard/HighlightCard.stories.svelte.d.ts +0 -19
- package/dist/Logotype/Logotype.stories.svelte +0 -14
- package/dist/Logotype/Logotype.stories.svelte.d.ts +0 -19
- package/dist/Middot/Middot.stories.svelte +0 -14
- package/dist/Middot/Middot.stories.svelte.d.ts +0 -19
- package/dist/Note/Note.stories.svelte +0 -23
- package/dist/Note/Note.stories.svelte.d.ts +0 -27
- package/dist/Select/Select.stories.svelte +0 -202
- package/dist/Select/Select.stories.svelte.d.ts +0 -19
- package/dist/Select/SelectStoriesTemplate.svelte +0 -31
- package/dist/Select/SelectStoriesTemplate.svelte.d.ts +0 -15
- package/dist/Switcher/Switcher.stories.svelte +0 -44
- package/dist/Switcher/Switcher.stories.svelte.d.ts +0 -27
- package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte +0 -27
- package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte.d.ts +0 -19
- package/dist/maplibre/GeocoderControl/GeocoderControl.stories.svelte +0 -74
- package/dist/maplibre/GeocoderControl/GeocoderControl.stories.svelte.d.ts +0 -19
- package/dist/maplibre/Map/Map.stories.svelte +0 -113
- package/dist/maplibre/Map/Map.stories.svelte.d.ts +0 -19
- package/dist/maplibre/MapControl/MapControl.stories.svelte +0 -46
- package/dist/maplibre/MapControl/MapControl.stories.svelte.d.ts +0 -19
- package/dist/maplibre/MapStyle/SWRDataLabLight.stories.svelte +0 -39
- package/dist/maplibre/MapStyle/SWRDataLabLight.stories.svelte.d.ts +0 -18
- package/dist/maplibre/NavigationControl/NavigationControl.stories.svelte +0 -37
- package/dist/maplibre/NavigationControl/NavigationControl.stories.svelte.d.ts +0 -19
- package/dist/maplibre/ScaleControl/ScaleControl.stories.svelte +0 -68
- package/dist/maplibre/ScaleControl/ScaleControl.stories.svelte.d.ts +0 -19
- package/dist/maplibre/Source/MapSource.stories.svelte +0 -7
- package/dist/maplibre/Source/MapSource.stories.svelte.d.ts +0 -19
- package/dist/maplibre/Tooltip/Tooltip.stories.svelte +0 -186
- package/dist/maplibre/Tooltip/Tooltip.stories.svelte.d.ts +0 -19
- package/dist/maplibre/VectorLayer/VectorLayer.stories.svelte +0 -62
- package/dist/maplibre/VectorLayer/VectorLayer.stories.svelte.d.ts +0 -19
- package/dist/maplibre/VectorTileSource/VectorTileSource.stories.svelte +0 -44
- package/dist/maplibre/VectorTileSource/VectorTileSource.stories.svelte.d.ts +0 -19
- package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte +0 -27
- package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte.d.ts +0 -19
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story asChild name="Default">
|
|
15
|
-
<DesignTokens>
|
|
16
|
-
<div class="container">
|
|
17
|
-
<Map showDebug={true} style={SWRDataLabLight}>
|
|
18
|
-
<VectorTileSource
|
|
19
|
-
id="ev-infra-source"
|
|
20
|
-
url={`https://static.datenhub.net/data/p108_e_auto_check/ev_infra_merged.versatiles?tiles/{z}/{x}/{y}`}
|
|
21
|
-
/>
|
|
22
|
-
<VectorLayer
|
|
23
|
-
sourceId="ev-infra-source"
|
|
24
|
-
type="fill"
|
|
25
|
-
id="coverage-fill"
|
|
26
|
-
sourceLayer="coverage"
|
|
27
|
-
placeBelow="street-residential"
|
|
28
|
-
paint={{
|
|
29
|
-
'fill-color': [
|
|
30
|
-
'step',
|
|
31
|
-
['get', 'coverage_2025'],
|
|
32
|
-
'white',
|
|
33
|
-
1,
|
|
34
|
-
'lightgray',
|
|
35
|
-
1.3,
|
|
36
|
-
'lightgreen'
|
|
37
|
-
]
|
|
38
|
-
}}
|
|
39
|
-
/>
|
|
40
|
-
<VectorLayer
|
|
41
|
-
sourceId="ev-infra-source"
|
|
42
|
-
sourceLayer="coverage"
|
|
43
|
-
id="ev-infra-outline"
|
|
44
|
-
type="line"
|
|
45
|
-
paint={{
|
|
46
|
-
'line-width': 0.5,
|
|
47
|
-
'line-color': 'purple',
|
|
48
|
-
'line-opacity': 1
|
|
49
|
-
}}
|
|
50
|
-
/>
|
|
51
|
-
<AttributionControl />
|
|
52
|
-
</Map>
|
|
53
|
-
</div>
|
|
54
|
-
</DesignTokens>
|
|
55
|
-
</Story>
|
|
56
|
-
|
|
57
|
-
<style>
|
|
58
|
-
.container {
|
|
59
|
-
width: 100%;
|
|
60
|
-
height: 600px;
|
|
61
|
-
}
|
|
62
|
-
</style>
|
|
@@ -1,19 +0,0 @@
|
|
|
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;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<script context="module" lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
-
import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
|
|
3
|
-
import VectorTileSource from './VectorTileSource.svelte';
|
|
4
|
-
import VectorLayer from '../VectorLayer/VectorLayer.svelte';
|
|
5
|
-
import Map from '../Map/Map.svelte';
|
|
6
|
-
import { SWRDataLabLight } from '../MapStyle/';
|
|
7
|
-
import AttributionControl from '../AttributionControl';
|
|
8
|
-
const { Story } = defineMeta({
|
|
9
|
-
title: 'Maplibre/Source/VectorTileSource',
|
|
10
|
-
component: VectorTileSource
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story asChild name="Default">
|
|
15
|
-
<DesignTokens>
|
|
16
|
-
<div class="container">
|
|
17
|
-
<Map showDebug={true} style={SWRDataLabLight}>
|
|
18
|
-
<VectorTileSource
|
|
19
|
-
id="ev-infra-source"
|
|
20
|
-
url={`https://static.datenhub.net/data/p108_e_auto_check/ev_infra_merged.versatiles?tiles/{z}/{x}/{y}`}
|
|
21
|
-
/>
|
|
22
|
-
<VectorLayer
|
|
23
|
-
sourceId="ev-infra-source"
|
|
24
|
-
sourceLayer="coverage"
|
|
25
|
-
id="ev-infra-outline"
|
|
26
|
-
type="line"
|
|
27
|
-
paint={{
|
|
28
|
-
'line-width': 0.5,
|
|
29
|
-
'line-color': 'purple',
|
|
30
|
-
'line-opacity': 1
|
|
31
|
-
}}
|
|
32
|
-
/>
|
|
33
|
-
<AttributionControl />
|
|
34
|
-
</Map>
|
|
35
|
-
</div>
|
|
36
|
-
</DesignTokens>
|
|
37
|
-
</Story>
|
|
38
|
-
|
|
39
|
-
<style>
|
|
40
|
-
.container {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 600px;
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import VectorTileSource from './VectorTileSource.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 VectorTileSource: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
}, {}, {}, string>;
|
|
18
|
-
type VectorTileSource = InstanceType<typeof VectorTileSource>;
|
|
19
|
-
export default VectorTileSource;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<script context="module" lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
-
import WithLinkLocation from './WithLinkLocation.svelte';
|
|
3
|
-
import DesignTokens from '../../DesignTokens/DesignTokens.svelte';
|
|
4
|
-
import Map from '../Map/Map.svelte';
|
|
5
|
-
import { SWRDataLabLight } from '../MapStyle';
|
|
6
|
-
const { Story } = defineMeta({
|
|
7
|
-
title: 'Maplibre/Extras/WithLinkLocation',
|
|
8
|
-
component: WithLinkLocation
|
|
9
|
-
});
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<Story asChild name="Default">
|
|
13
|
-
<DesignTokens>
|
|
14
|
-
<div class="container">
|
|
15
|
-
<WithLinkLocation countries="de" languages="de" service="maptiler" key="V32kPHZjMa0Mkn6YvSzA">
|
|
16
|
-
<Map style={SWRDataLabLight} initialLocation={{ lat: 51, lng: 10, zoom: 20 }}></Map>
|
|
17
|
-
</WithLinkLocation>
|
|
18
|
-
</div>
|
|
19
|
-
</DesignTokens>
|
|
20
|
-
</Story>
|
|
21
|
-
|
|
22
|
-
<style>
|
|
23
|
-
.container {
|
|
24
|
-
width: 500px;
|
|
25
|
-
height: 300px;
|
|
26
|
-
}
|
|
27
|
-
</style>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import WithLinkLocation from './WithLinkLocation.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 WithLinkLocation: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
}, {}, {}, string>;
|
|
18
|
-
type WithLinkLocation = InstanceType<typeof WithLinkLocation>;
|
|
19
|
-
export default WithLinkLocation;
|