@genspectrum/dashboard-components 0.18.2 → 0.18.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.
Files changed (26) hide show
  1. package/custom-elements.json +2 -2
  2. package/dist/assets/{mutationOverTimeWorker-ChQTFL68.js.map → mutationOverTimeWorker--b8ZHlji.js.map} +1 -1
  3. package/dist/components.d.ts +16 -287
  4. package/dist/components.js +114 -39
  5. package/dist/components.js.map +1 -1
  6. package/dist/style.css +2 -2
  7. package/dist/util.d.ts +24 -291
  8. package/package.json +3 -3
  9. package/src/preact/MutationAnnotationsContext.spec.tsx +103 -34
  10. package/src/preact/MutationAnnotationsContext.tsx +49 -7
  11. package/src/preact/components/annotated-mutation.stories.tsx +0 -5
  12. package/src/preact/components/annotated-mutation.tsx +6 -2
  13. package/src/preact/mutationComparison/mutation-comparison.stories.tsx +3 -1
  14. package/src/preact/mutations/mutations.stories.tsx +4 -1
  15. package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +3 -1
  16. package/src/preact/sequencesByLocation/leafletStyleModifications.css +5 -0
  17. package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.stories.tsx +25 -0
  18. package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.tsx +65 -13
  19. package/src/web-components/MutationAnnotations.mdx +8 -0
  20. package/src/web-components/gs-app.stories.ts +2 -0
  21. package/src/web-components/gs-app.ts +4 -2
  22. package/src/web-components/mutation-annotations-context.ts +6 -2
  23. package/standalone-bundle/assets/mutationOverTimeWorker-jChgWnwp.js.map +1 -1
  24. package/standalone-bundle/dashboard-components.js +5699 -5643
  25. package/standalone-bundle/dashboard-components.js.map +1 -1
  26. package/standalone-bundle/style.css +1 -1
@@ -122,8 +122,10 @@ export declare class AppComponent extends LitElement {
122
122
  name: string;
123
123
  description: string;
124
124
  symbol: string;
125
- nucleotideMutations: string[];
126
- aminoAcidMutations: string[];
125
+ nucleotideMutations?: string[];
126
+ nucleotidePositions?: string[];
127
+ aminoAcidMutations?: string[];
128
+ aminoAcidPositions?: string[];
127
129
  }[];
128
130
  /* Excluded from this release type: referenceGenome */
129
131
  /* Excluded from this release type: updateReferenceGenome */
@@ -356,20 +358,26 @@ declare const mutationAnnotationsSchema: default_2.ZodArray<default_2.ZodObject<
356
358
  name: default_2.ZodString;
357
359
  description: default_2.ZodString;
358
360
  symbol: default_2.ZodString;
359
- nucleotideMutations: default_2.ZodArray<default_2.ZodString, "many">;
360
- aminoAcidMutations: default_2.ZodArray<default_2.ZodString, "many">;
361
+ nucleotideMutations: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
362
+ nucleotidePositions: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
363
+ aminoAcidMutations: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
364
+ aminoAcidPositions: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
361
365
  }, "strip", default_2.ZodTypeAny, {
362
366
  symbol: string;
363
367
  name: string;
364
368
  description: string;
365
- nucleotideMutations: string[];
366
- aminoAcidMutations: string[];
369
+ nucleotideMutations?: string[] | undefined;
370
+ nucleotidePositions?: string[] | undefined;
371
+ aminoAcidMutations?: string[] | undefined;
372
+ aminoAcidPositions?: string[] | undefined;
367
373
  }, {
368
374
  symbol: string;
369
375
  name: string;
370
376
  description: string;
371
- nucleotideMutations: string[];
372
- aminoAcidMutations: string[];
377
+ nucleotideMutations?: string[] | undefined;
378
+ nucleotidePositions?: string[] | undefined;
379
+ aminoAcidMutations?: string[] | undefined;
380
+ aminoAcidPositions?: string[] | undefined;
373
381
  }>, "many">;
374
382
 
375
383
  /**
@@ -1391,285 +1399,6 @@ export declare class WastewaterMutationsOverTimeComponent extends PreactLitAdapt
1391
1399
  export { }
1392
1400
 
1393
1401
 
1394
- declare global {
1395
- interface HTMLElementEventMap {
1396
- 'gs-error': ErrorEvent;
1397
- }
1398
- }
1399
-
1400
-
1401
- declare global {
1402
- interface HTMLElementTagNameMap {
1403
- 'gs-app': AppComponent;
1404
- }
1405
- }
1406
-
1407
-
1408
- declare global {
1409
- namespace JSX {
1410
- interface IntrinsicElements {
1411
- 'gs-app': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1412
- }
1413
- }
1414
- }
1415
-
1416
-
1417
- declare global {
1418
- interface HTMLElementTagNameMap {
1419
- 'gs-mutation-comparison-component': MutationComparisonComponent;
1420
- }
1421
- }
1422
-
1423
-
1424
- declare global {
1425
- namespace JSX {
1426
- interface IntrinsicElements {
1427
- 'gs-mutation-comparison-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1428
- }
1429
- }
1430
- }
1431
-
1432
-
1433
- declare global {
1434
- interface HTMLElementTagNameMap {
1435
- 'gs-mutations-component': MutationsComponent;
1436
- }
1437
- }
1438
-
1439
-
1440
- declare global {
1441
- namespace JSX {
1442
- interface IntrinsicElements {
1443
- 'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1444
- }
1445
- }
1446
- }
1447
-
1448
-
1449
- declare global {
1450
- interface HTMLElementTagNameMap {
1451
- 'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
1452
- }
1453
- }
1454
-
1455
-
1456
- declare global {
1457
- namespace JSX {
1458
- interface IntrinsicElements {
1459
- 'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1460
- }
1461
- }
1462
- }
1463
-
1464
-
1465
- declare global {
1466
- interface HTMLElementTagNameMap {
1467
- 'gs-prevalence-over-time': PrevalenceOverTimeComponent;
1468
- }
1469
- }
1470
-
1471
-
1472
- declare global {
1473
- namespace JSX {
1474
- interface IntrinsicElements {
1475
- 'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1476
- }
1477
- }
1478
- }
1479
-
1480
-
1481
- declare global {
1482
- interface HTMLElementTagNameMap {
1483
- 'gs-aggregate': AggregateComponent;
1484
- }
1485
- }
1486
-
1487
-
1488
- declare global {
1489
- namespace JSX {
1490
- interface IntrinsicElements {
1491
- 'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1492
- }
1493
- }
1494
- }
1495
-
1496
-
1497
- declare global {
1498
- interface HTMLElementTagNameMap {
1499
- 'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
1500
- }
1501
- }
1502
-
1503
-
1504
- declare global {
1505
- namespace JSX {
1506
- interface IntrinsicElements {
1507
- 'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1508
- }
1509
- }
1510
- }
1511
-
1512
-
1513
- declare global {
1514
- interface HTMLElementTagNameMap {
1515
- 'gs-mutations-over-time': MutationsOverTimeComponent;
1516
- }
1517
- }
1518
-
1519
-
1520
- declare global {
1521
- namespace JSX {
1522
- interface IntrinsicElements {
1523
- 'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1524
- }
1525
- }
1526
- }
1527
-
1528
-
1529
- declare global {
1530
- interface HTMLElementTagNameMap {
1531
- 'gs-statistics': StatisticsComponent;
1532
- }
1533
- }
1534
-
1535
-
1536
- declare global {
1537
- namespace JSX {
1538
- interface IntrinsicElements {
1539
- 'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1540
- }
1541
- }
1542
- }
1543
-
1544
-
1545
- declare global {
1546
- interface HTMLElementTagNameMap {
1547
- 'gs-sequences-by-location': SequencesByLocationComponent;
1548
- }
1549
- }
1550
-
1551
-
1552
- declare global {
1553
- namespace JSX {
1554
- interface IntrinsicElements {
1555
- 'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1556
- }
1557
- }
1558
- }
1559
-
1560
-
1561
- declare global {
1562
- interface HTMLElementTagNameMap {
1563
- 'gs-date-range-filter': DateRangeFilterComponent;
1564
- }
1565
- interface HTMLElementEventMap {
1566
- 'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
1567
- 'gs-date-range-option-changed': DateRangeOptionChangedEvent;
1568
- }
1569
- }
1570
-
1571
-
1572
- declare global {
1573
- namespace JSX {
1574
- interface IntrinsicElements {
1575
- 'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1576
- }
1577
- }
1578
- }
1579
-
1580
-
1581
- declare global {
1582
- interface HTMLElementTagNameMap {
1583
- 'gs-location-filter': LocationFilterComponent;
1584
- }
1585
- interface HTMLElementEventMap {
1586
- 'gs-location-changed': LocationChangedEvent;
1587
- }
1588
- }
1589
-
1590
-
1591
- declare global {
1592
- namespace JSX {
1593
- interface IntrinsicElements {
1594
- 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1595
- }
1596
- }
1597
- }
1598
-
1599
-
1600
- declare global {
1601
- interface HTMLElementTagNameMap {
1602
- 'gs-text-filter': TextFilterComponent;
1603
- }
1604
- interface HTMLElementEventMap {
1605
- 'gs-text-filter-changed': TextFilterChangedEvent;
1606
- }
1607
- }
1608
-
1609
-
1610
- declare global {
1611
- namespace JSX {
1612
- interface IntrinsicElements {
1613
- 'gs-text-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1614
- }
1615
- }
1616
- }
1617
-
1618
-
1619
- declare global {
1620
- interface HTMLElementTagNameMap {
1621
- 'gs-mutation-filter': MutationFilterComponent;
1622
- }
1623
- interface HTMLElementEventMap {
1624
- 'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
1625
- }
1626
- }
1627
-
1628
-
1629
- declare global {
1630
- namespace JSX {
1631
- interface IntrinsicElements {
1632
- 'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1633
- }
1634
- }
1635
- }
1636
-
1637
-
1638
- declare global {
1639
- interface HTMLElementTagNameMap {
1640
- 'gs-lineage-filter': LineageFilterComponent;
1641
- }
1642
- interface HTMLElementEventMap {
1643
- 'gs-lineage-filter-changed': LineageFilterChangedEvent;
1644
- }
1645
- }
1646
-
1647
-
1648
- declare global {
1649
- namespace JSX {
1650
- interface IntrinsicElements {
1651
- 'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1652
- }
1653
- }
1654
- }
1655
-
1656
-
1657
- declare global {
1658
- interface HTMLElementTagNameMap {
1659
- 'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
1660
- }
1661
- }
1662
-
1663
-
1664
- declare global {
1665
- namespace JSX {
1666
- interface IntrinsicElements {
1667
- 'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1668
- }
1669
- }
1670
- }
1671
-
1672
-
1673
1402
  declare module 'chart.js' {
1674
1403
  interface CartesianScaleTypeRegistry {
1675
1404
  logit: {