@genspectrum/dashboard-components 0.11.3 → 0.11.5
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 +16 -0
- package/dist/assets/{mutationOverTimeWorker-Cr-NmYEs.js.map → mutationOverTimeWorker-CWneD7i5.js.map} +1 -1
- package/dist/components.d.ts +44 -44
- package/dist/components.js +193 -162
- package/dist/components.js.map +1 -1
- package/dist/style.css +4 -6
- package/dist/util.d.ts +44 -44
- package/package.json +2 -2
- package/src/preact/aggregatedData/aggregate.tsx +1 -1
- package/src/preact/components/tabs.tsx +19 -39
- package/src/preact/map/__mockData__/aggregatedGermany.json +5 -1
- package/src/preact/map/{useGeoJsonMap.tsx → loadMapSource.tsx} +7 -24
- package/src/preact/map/sequences-by-location-map.tsx +13 -99
- package/src/preact/map/sequences-by-location-table.tsx +28 -5
- package/src/preact/map/sequences-by-location.tsx +32 -13
- package/src/preact/useQuery.ts +1 -1
- package/src/query/computeMapLocationData.spec.ts +103 -0
- package/src/query/computeMapLocationData.ts +136 -0
- package/src/query/querySequencesByLocationData.ts +18 -0
- package/src/utilEntrypoint.ts +1 -1
- package/src/utils/temporal.spec.ts +62 -8
- package/src/utils/temporalClass.ts +1 -8
- package/src/web-components/visualization/gs-sequences-by-location.stories.ts +17 -0
- package/standalone-bundle/assets/{mutationOverTimeWorker-DIQRmxvC.js.map → mutationOverTimeWorker-x1ipPFL0.js.map} +1 -1
- package/standalone-bundle/dashboard-components.js +4003 -3962
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/standalone-bundle/style.css +1 -1
package/custom-elements.json
CHANGED
|
@@ -3228,6 +3228,14 @@
|
|
|
3228
3228
|
},
|
|
3229
3229
|
"default": "{ ...Template, args: { ...Template.args, lapisFilter: { dateFrom: '2022-01-01', dateTo: '2022-04-01', country: 'Germany' }, lapisLocationField: 'division', mapSource: { type: 'topojson', url: mockMapUrl, topologyObjectsKey: 'deu', }, views: ['map', 'table'], zoom: 6, offsetX: 10, offsetY: 51.4, }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'worldMap', url: mockMapUrl, }, response: { status: 200, body: mapOfGermany, }, }, { matcher: { name: 'aggregatedData', url: AGGREGATED_ENDPOINT, body: { fields: ['division'], dateFrom: '2022-01-01', dateTo: '2022-04-01', country: 'Germany', }, }, response: { status: 200, body: aggregatedGermany, }, }, ], }, }, }"
|
|
3230
3230
|
},
|
|
3231
|
+
{
|
|
3232
|
+
"kind": "variable",
|
|
3233
|
+
"name": "GermanyOnTableTab",
|
|
3234
|
+
"type": {
|
|
3235
|
+
"text": "StoryObj<SequencesByLocationProps>"
|
|
3236
|
+
},
|
|
3237
|
+
"default": "{ ...Germany, play: async ({ canvasElement, step }) => { const canvas = await withinShadowRoot(canvasElement, 'gs-sequences-by-location'); await waitFor(() => expect(canvas.getByRole('button', { name: 'Table' })).toBeInTheDocument()); await userEvent.click(canvas.getByRole('button', { name: 'Table' })); await step('Sort by division', async () => { await waitFor(() => expect(canvas.getByText('division')).toBeInTheDocument()); await userEvent.click(canvas.getByText('division')); }); }, }"
|
|
3238
|
+
},
|
|
3231
3239
|
{
|
|
3232
3240
|
"kind": "variable",
|
|
3233
3241
|
"name": "GermanyTableOnly",
|
|
@@ -3262,6 +3270,14 @@
|
|
|
3262
3270
|
"module": "src/web-components/visualization/gs-sequences-by-location.stories.ts"
|
|
3263
3271
|
}
|
|
3264
3272
|
},
|
|
3273
|
+
{
|
|
3274
|
+
"kind": "js",
|
|
3275
|
+
"name": "GermanyOnTableTab",
|
|
3276
|
+
"declaration": {
|
|
3277
|
+
"name": "GermanyOnTableTab",
|
|
3278
|
+
"module": "src/web-components/visualization/gs-sequences-by-location.stories.ts"
|
|
3279
|
+
}
|
|
3280
|
+
},
|
|
3265
3281
|
{
|
|
3266
3282
|
"kind": "js",
|
|
3267
3283
|
"name": "GermanyTableOnly",
|