@genspectrum/dashboard-components 0.11.3 → 0.11.4

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.
@@ -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",
@@ -1221,10 +1221,7 @@ declare global {
1221
1221
 
1222
1222
  declare global {
1223
1223
  interface HTMLElementTagNameMap {
1224
- 'gs-location-filter': LocationFilterComponent;
1225
- }
1226
- interface HTMLElementEventMap {
1227
- 'gs-location-changed': CustomEvent<Record<string, string>>;
1224
+ 'gs-mutations-component': MutationsComponent;
1228
1225
  }
1229
1226
  }
1230
1227
 
@@ -1232,7 +1229,7 @@ declare global {
1232
1229
  declare global {
1233
1230
  namespace JSX {
1234
1231
  interface IntrinsicElements {
1235
- 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1232
+ 'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1236
1233
  }
1237
1234
  }
1238
1235
  }
@@ -1240,11 +1237,7 @@ declare global {
1240
1237
 
1241
1238
  declare global {
1242
1239
  interface HTMLElementTagNameMap {
1243
- 'gs-date-range-selector': DateRangeSelectorComponent;
1244
- }
1245
- interface HTMLElementEventMap {
1246
- 'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
1247
- 'gs-date-range-option-changed': DateRangeOptionChangedEvent;
1240
+ 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
1248
1241
  }
1249
1242
  }
1250
1243
 
@@ -1252,7 +1245,7 @@ declare global {
1252
1245
  declare global {
1253
1246
  namespace JSX {
1254
1247
  interface IntrinsicElements {
1255
- 'gs-date-range-selector': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1248
+ 'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1256
1249
  }
1257
1250
  }
1258
1251
  }
@@ -1260,10 +1253,7 @@ declare global {
1260
1253
 
1261
1254
  declare global {
1262
1255
  interface HTMLElementTagNameMap {
1263
- 'gs-text-input': TextInputComponent;
1264
- }
1265
- interface HTMLElementEventMap {
1266
- 'gs-text-input-changed': CustomEvent<Record<string, string>>;
1256
+ 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
1267
1257
  }
1268
1258
  }
1269
1259
 
@@ -1271,7 +1261,7 @@ declare global {
1271
1261
  declare global {
1272
1262
  namespace JSX {
1273
1263
  interface IntrinsicElements {
1274
- 'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1264
+ 'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1275
1265
  }
1276
1266
  }
1277
1267
  }
@@ -1279,10 +1269,7 @@ declare global {
1279
1269
 
1280
1270
  declare global {
1281
1271
  interface HTMLElementTagNameMap {
1282
- 'gs-mutation-filter': MutationFilterComponent;
1283
- }
1284
- interface HTMLElementEventMap {
1285
- 'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
1272
+ 'gs-aggregate': AggregateComponent;
1286
1273
  }
1287
1274
  }
1288
1275
 
@@ -1290,7 +1277,7 @@ declare global {
1290
1277
  declare global {
1291
1278
  namespace JSX {
1292
1279
  interface IntrinsicElements {
1293
- 'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1280
+ 'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1294
1281
  }
1295
1282
  }
1296
1283
  }
@@ -1298,10 +1285,7 @@ declare global {
1298
1285
 
1299
1286
  declare global {
1300
1287
  interface HTMLElementTagNameMap {
1301
- 'gs-lineage-filter': LineageFilterComponent;
1302
- }
1303
- interface HTMLElementEventMap {
1304
- 'gs-lineage-filter-changed': CustomEvent<Record<string, string>>;
1288
+ 'gs-mutation-comparison-component': MutationComparisonComponent;
1305
1289
  }
1306
1290
  }
1307
1291
 
@@ -1309,7 +1293,7 @@ declare global {
1309
1293
  declare global {
1310
1294
  namespace JSX {
1311
1295
  interface IntrinsicElements {
1312
- 'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1296
+ 'gs-mutation-comparison-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1313
1297
  }
1314
1298
  }
1315
1299
  }
@@ -1317,7 +1301,7 @@ declare global {
1317
1301
 
1318
1302
  declare global {
1319
1303
  interface HTMLElementTagNameMap {
1320
- 'gs-mutation-comparison-component': MutationComparisonComponent;
1304
+ 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
1321
1305
  }
1322
1306
  }
1323
1307
 
@@ -1325,7 +1309,7 @@ declare global {
1325
1309
  declare global {
1326
1310
  namespace JSX {
1327
1311
  interface IntrinsicElements {
1328
- 'gs-mutation-comparison-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1312
+ 'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1329
1313
  }
1330
1314
  }
1331
1315
  }
@@ -1333,7 +1317,7 @@ declare global {
1333
1317
 
1334
1318
  declare global {
1335
1319
  interface HTMLElementTagNameMap {
1336
- 'gs-mutations-component': MutationsComponent;
1320
+ 'gs-sequences-by-location': SequencesByLocationComponent;
1337
1321
  }
1338
1322
  }
1339
1323
 
@@ -1341,7 +1325,7 @@ declare global {
1341
1325
  declare global {
1342
1326
  namespace JSX {
1343
1327
  interface IntrinsicElements {
1344
- 'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1328
+ 'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1345
1329
  }
1346
1330
  }
1347
1331
  }
@@ -1349,7 +1333,7 @@ declare global {
1349
1333
 
1350
1334
  declare global {
1351
1335
  interface HTMLElementTagNameMap {
1352
- 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
1336
+ 'gs-mutations-over-time': MutationsOverTimeComponent;
1353
1337
  }
1354
1338
  }
1355
1339
 
@@ -1357,7 +1341,7 @@ declare global {
1357
1341
  declare global {
1358
1342
  namespace JSX {
1359
1343
  interface IntrinsicElements {
1360
- 'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1344
+ 'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1361
1345
  }
1362
1346
  }
1363
1347
  }
@@ -1365,7 +1349,7 @@ declare global {
1365
1349
 
1366
1350
  declare global {
1367
1351
  interface HTMLElementTagNameMap {
1368
- 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
1352
+ 'gs-statistics': StatisticsComponent;
1369
1353
  }
1370
1354
  }
1371
1355
 
@@ -1373,7 +1357,7 @@ declare global {
1373
1357
  declare global {
1374
1358
  namespace JSX {
1375
1359
  interface IntrinsicElements {
1376
- 'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1360
+ 'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1377
1361
  }
1378
1362
  }
1379
1363
  }
@@ -1381,7 +1365,11 @@ declare global {
1381
1365
 
1382
1366
  declare global {
1383
1367
  interface HTMLElementTagNameMap {
1384
- 'gs-aggregate': AggregateComponent;
1368
+ 'gs-date-range-selector': DateRangeSelectorComponent;
1369
+ }
1370
+ interface HTMLElementEventMap {
1371
+ 'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
1372
+ 'gs-date-range-option-changed': DateRangeOptionChangedEvent;
1385
1373
  }
1386
1374
  }
1387
1375
 
@@ -1389,7 +1377,7 @@ declare global {
1389
1377
  declare global {
1390
1378
  namespace JSX {
1391
1379
  interface IntrinsicElements {
1392
- 'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1380
+ 'gs-date-range-selector': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1393
1381
  }
1394
1382
  }
1395
1383
  }
@@ -1397,7 +1385,10 @@ declare global {
1397
1385
 
1398
1386
  declare global {
1399
1387
  interface HTMLElementTagNameMap {
1400
- 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
1388
+ 'gs-location-filter': LocationFilterComponent;
1389
+ }
1390
+ interface HTMLElementEventMap {
1391
+ 'gs-location-changed': CustomEvent<Record<string, string>>;
1401
1392
  }
1402
1393
  }
1403
1394
 
@@ -1405,7 +1396,7 @@ declare global {
1405
1396
  declare global {
1406
1397
  namespace JSX {
1407
1398
  interface IntrinsicElements {
1408
- 'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1399
+ 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1409
1400
  }
1410
1401
  }
1411
1402
  }
@@ -1413,7 +1404,10 @@ declare global {
1413
1404
 
1414
1405
  declare global {
1415
1406
  interface HTMLElementTagNameMap {
1416
- 'gs-mutations-over-time': MutationsOverTimeComponent;
1407
+ 'gs-text-input': TextInputComponent;
1408
+ }
1409
+ interface HTMLElementEventMap {
1410
+ 'gs-text-input-changed': CustomEvent<Record<string, string>>;
1417
1411
  }
1418
1412
  }
1419
1413
 
@@ -1421,7 +1415,7 @@ declare global {
1421
1415
  declare global {
1422
1416
  namespace JSX {
1423
1417
  interface IntrinsicElements {
1424
- 'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1418
+ 'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1425
1419
  }
1426
1420
  }
1427
1421
  }
@@ -1429,7 +1423,10 @@ declare global {
1429
1423
 
1430
1424
  declare global {
1431
1425
  interface HTMLElementTagNameMap {
1432
- 'gs-sequences-by-location': SequencesByLocationComponent;
1426
+ 'gs-mutation-filter': MutationFilterComponent;
1427
+ }
1428
+ interface HTMLElementEventMap {
1429
+ 'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
1433
1430
  }
1434
1431
  }
1435
1432
 
@@ -1437,7 +1434,7 @@ declare global {
1437
1434
  declare global {
1438
1435
  namespace JSX {
1439
1436
  interface IntrinsicElements {
1440
- 'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1437
+ 'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1441
1438
  }
1442
1439
  }
1443
1440
  }
@@ -1445,7 +1442,10 @@ declare global {
1445
1442
 
1446
1443
  declare global {
1447
1444
  interface HTMLElementTagNameMap {
1448
- 'gs-statistics': StatisticsComponent;
1445
+ 'gs-lineage-filter': LineageFilterComponent;
1446
+ }
1447
+ interface HTMLElementEventMap {
1448
+ 'gs-lineage-filter-changed': CustomEvent<Record<string, string>>;
1449
1449
  }
1450
1450
  }
1451
1451
 
@@ -1453,7 +1453,7 @@ declare global {
1453
1453
  declare global {
1454
1454
  namespace JSX {
1455
1455
  interface IntrinsicElements {
1456
- 'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1456
+ 'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1457
1457
  }
1458
1458
  }
1459
1459
  }