@genspectrum/dashboard-components 0.11.1 → 0.11.3
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/custom-elements.json +3 -3
- package/dist/assets/mutationOverTimeWorker-Cr-NmYEs.js.map +1 -0
- package/dist/components.d.ts +44 -44
- package/dist/components.js +222 -129
- package/dist/components.js.map +1 -1
- package/dist/style.css +13 -4
- package/dist/util.d.ts +44 -44
- package/package.json +1 -1
- package/src/preact/components/error-display.tsx +11 -16
- package/src/preact/components/info.tsx +5 -19
- package/src/preact/components/modal.stories.tsx +44 -0
- package/src/preact/components/modal.tsx +31 -0
- package/src/preact/map/sequences-by-location-map.tsx +91 -12
- package/src/preact/map/sequences-by-location.tsx +1 -0
- package/src/web-components/visualization/gs-sequences-by-location.stories.ts +4 -4
- package/src/web-components/visualization/gs-sequences-by-location.tsx +1 -1
- package/standalone-bundle/assets/mutationOverTimeWorker-DIQRmxvC.js.map +1 -0
- package/standalone-bundle/dashboard-components.js +4313 -4229
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/standalone-bundle/style.css +1 -1
- package/dist/assets/mutationOverTimeWorker-BjjkMGzd.js.map +0 -1
- package/standalone-bundle/assets/mutationOverTimeWorker-DoUBht2e.js.map +0 -1
|
@@ -17,7 +17,7 @@ const codeExample = `<gs-sequences-by-location
|
|
|
17
17
|
lapisFilter='{"dateFrom":"2022-01-01","dateTo":"2022-04-01"}'
|
|
18
18
|
lapisLocationField='country'
|
|
19
19
|
mapSource='{"type":"topojson","url":"https://mock.map.data/topo.json","topologyObjectsKey":"countries"}'
|
|
20
|
-
enableMapNavigation
|
|
20
|
+
enableMapNavigation
|
|
21
21
|
width='1100px'
|
|
22
22
|
height='800px'
|
|
23
23
|
views='["map"]'
|
|
@@ -25,7 +25,7 @@ const codeExample = `<gs-sequences-by-location
|
|
|
25
25
|
offsetX='0'
|
|
26
26
|
offsetY='10'
|
|
27
27
|
pageSize='5'
|
|
28
|
-
|
|
28
|
+
></gs-sequences-by-location>`;
|
|
29
29
|
|
|
30
30
|
const meta: Meta<Required<SequencesByLocationProps>> = {
|
|
31
31
|
title: 'Visualization/Sequences by location',
|
|
@@ -84,7 +84,7 @@ const Template: StoryObj<SequencesByLocationProps> = {
|
|
|
84
84
|
args: {
|
|
85
85
|
enableMapNavigation: false,
|
|
86
86
|
width: '1100px',
|
|
87
|
-
height: '
|
|
87
|
+
height: '700px',
|
|
88
88
|
views: ['map', 'table'],
|
|
89
89
|
pageSize: 10,
|
|
90
90
|
},
|
|
@@ -150,7 +150,7 @@ export const Germany: StoryObj<SequencesByLocationProps> = {
|
|
|
150
150
|
topologyObjectsKey: 'deu',
|
|
151
151
|
},
|
|
152
152
|
views: ['map', 'table'],
|
|
153
|
-
zoom: 6
|
|
153
|
+
zoom: 6,
|
|
154
154
|
offsetX: 10,
|
|
155
155
|
offsetY: 51.4,
|
|
156
156
|
},
|
|
@@ -130,7 +130,7 @@ export class SequencesByLocationComponent extends PreactLitAdapterWithGridJsStyl
|
|
|
130
130
|
* Enable map navigation (dragging, keyboard navigation, zooming).
|
|
131
131
|
*/
|
|
132
132
|
@property({ type: Boolean })
|
|
133
|
-
enableMapNavigation: boolean =
|
|
133
|
+
enableMapNavigation: boolean = false;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* The width of the component.
|