@genspectrum/dashboard-components 0.18.2 → 0.18.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.
- package/custom-elements.json +2 -2
- package/dist/assets/{mutationOverTimeWorker-ChQTFL68.js.map → mutationOverTimeWorker--b8ZHlji.js.map} +1 -1
- package/dist/components.d.ts +62 -54
- package/dist/components.js +114 -39
- package/dist/components.js.map +1 -1
- package/dist/style.css +2 -2
- package/dist/util.d.ts +70 -58
- package/package.json +4 -4
- package/src/preact/MutationAnnotationsContext.spec.tsx +103 -34
- package/src/preact/MutationAnnotationsContext.tsx +49 -7
- package/src/preact/components/annotated-mutation.stories.tsx +0 -5
- package/src/preact/components/annotated-mutation.tsx +6 -2
- package/src/preact/mutationComparison/mutation-comparison.stories.tsx +3 -1
- package/src/preact/mutations/mutations.stories.tsx +4 -1
- package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +3 -1
- package/src/preact/sequencesByLocation/leafletStyleModifications.css +5 -0
- package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.stories.tsx +25 -0
- package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.tsx +65 -13
- package/src/web-components/MutationAnnotations.mdx +8 -0
- package/src/web-components/gs-app.stories.ts +2 -0
- package/src/web-components/gs-app.ts +4 -2
- package/src/web-components/mutation-annotations-context.ts +6 -2
- package/standalone-bundle/assets/mutationOverTimeWorker-jChgWnwp.js.map +1 -1
- package/standalone-bundle/dashboard-components.js +5699 -5643
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/standalone-bundle/style.css +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -122,8 +122,10 @@ export declare class AppComponent extends LitElement {
|
|
|
122
122
|
name: string;
|
|
123
123
|
description: string;
|
|
124
124
|
symbol: string;
|
|
125
|
-
nucleotideMutations
|
|
126
|
-
|
|
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
|
-
|
|
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
|
|
366
|
-
|
|
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
|
|
372
|
-
|
|
377
|
+
nucleotideMutations?: string[] | undefined;
|
|
378
|
+
nucleotidePositions?: string[] | undefined;
|
|
379
|
+
aminoAcidMutations?: string[] | undefined;
|
|
380
|
+
aminoAcidPositions?: string[] | undefined;
|
|
373
381
|
}>, "many">;
|
|
374
382
|
|
|
375
383
|
/**
|
|
@@ -1416,7 +1424,7 @@ declare global {
|
|
|
1416
1424
|
|
|
1417
1425
|
declare global {
|
|
1418
1426
|
interface HTMLElementTagNameMap {
|
|
1419
|
-
'gs-
|
|
1427
|
+
'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
|
|
1420
1428
|
}
|
|
1421
1429
|
}
|
|
1422
1430
|
|
|
@@ -1424,7 +1432,7 @@ declare global {
|
|
|
1424
1432
|
declare global {
|
|
1425
1433
|
namespace JSX {
|
|
1426
1434
|
interface IntrinsicElements {
|
|
1427
|
-
'gs-
|
|
1435
|
+
'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1428
1436
|
}
|
|
1429
1437
|
}
|
|
1430
1438
|
}
|
|
@@ -1432,7 +1440,11 @@ declare global {
|
|
|
1432
1440
|
|
|
1433
1441
|
declare global {
|
|
1434
1442
|
interface HTMLElementTagNameMap {
|
|
1435
|
-
'gs-
|
|
1443
|
+
'gs-date-range-filter': DateRangeFilterComponent;
|
|
1444
|
+
}
|
|
1445
|
+
interface HTMLElementEventMap {
|
|
1446
|
+
'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
|
|
1447
|
+
'gs-date-range-option-changed': DateRangeOptionChangedEvent;
|
|
1436
1448
|
}
|
|
1437
1449
|
}
|
|
1438
1450
|
|
|
@@ -1440,7 +1452,7 @@ declare global {
|
|
|
1440
1452
|
declare global {
|
|
1441
1453
|
namespace JSX {
|
|
1442
1454
|
interface IntrinsicElements {
|
|
1443
|
-
'gs-
|
|
1455
|
+
'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1444
1456
|
}
|
|
1445
1457
|
}
|
|
1446
1458
|
}
|
|
@@ -1448,7 +1460,10 @@ declare global {
|
|
|
1448
1460
|
|
|
1449
1461
|
declare global {
|
|
1450
1462
|
interface HTMLElementTagNameMap {
|
|
1451
|
-
'gs-
|
|
1463
|
+
'gs-location-filter': LocationFilterComponent;
|
|
1464
|
+
}
|
|
1465
|
+
interface HTMLElementEventMap {
|
|
1466
|
+
'gs-location-changed': LocationChangedEvent;
|
|
1452
1467
|
}
|
|
1453
1468
|
}
|
|
1454
1469
|
|
|
@@ -1456,7 +1471,7 @@ declare global {
|
|
|
1456
1471
|
declare global {
|
|
1457
1472
|
namespace JSX {
|
|
1458
1473
|
interface IntrinsicElements {
|
|
1459
|
-
'gs-
|
|
1474
|
+
'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1460
1475
|
}
|
|
1461
1476
|
}
|
|
1462
1477
|
}
|
|
@@ -1464,7 +1479,10 @@ declare global {
|
|
|
1464
1479
|
|
|
1465
1480
|
declare global {
|
|
1466
1481
|
interface HTMLElementTagNameMap {
|
|
1467
|
-
'gs-
|
|
1482
|
+
'gs-text-filter': TextFilterComponent;
|
|
1483
|
+
}
|
|
1484
|
+
interface HTMLElementEventMap {
|
|
1485
|
+
'gs-text-filter-changed': TextFilterChangedEvent;
|
|
1468
1486
|
}
|
|
1469
1487
|
}
|
|
1470
1488
|
|
|
@@ -1472,7 +1490,7 @@ declare global {
|
|
|
1472
1490
|
declare global {
|
|
1473
1491
|
namespace JSX {
|
|
1474
1492
|
interface IntrinsicElements {
|
|
1475
|
-
'gs-
|
|
1493
|
+
'gs-text-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1476
1494
|
}
|
|
1477
1495
|
}
|
|
1478
1496
|
}
|
|
@@ -1480,7 +1498,10 @@ declare global {
|
|
|
1480
1498
|
|
|
1481
1499
|
declare global {
|
|
1482
1500
|
interface HTMLElementTagNameMap {
|
|
1483
|
-
'gs-
|
|
1501
|
+
'gs-lineage-filter': LineageFilterComponent;
|
|
1502
|
+
}
|
|
1503
|
+
interface HTMLElementEventMap {
|
|
1504
|
+
'gs-lineage-filter-changed': LineageFilterChangedEvent;
|
|
1484
1505
|
}
|
|
1485
1506
|
}
|
|
1486
1507
|
|
|
@@ -1488,7 +1509,7 @@ declare global {
|
|
|
1488
1509
|
declare global {
|
|
1489
1510
|
namespace JSX {
|
|
1490
1511
|
interface IntrinsicElements {
|
|
1491
|
-
'gs-
|
|
1512
|
+
'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1492
1513
|
}
|
|
1493
1514
|
}
|
|
1494
1515
|
}
|
|
@@ -1496,7 +1517,10 @@ declare global {
|
|
|
1496
1517
|
|
|
1497
1518
|
declare global {
|
|
1498
1519
|
interface HTMLElementTagNameMap {
|
|
1499
|
-
'gs-
|
|
1520
|
+
'gs-mutation-filter': MutationFilterComponent;
|
|
1521
|
+
}
|
|
1522
|
+
interface HTMLElementEventMap {
|
|
1523
|
+
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1500
1524
|
}
|
|
1501
1525
|
}
|
|
1502
1526
|
|
|
@@ -1504,7 +1528,7 @@ declare global {
|
|
|
1504
1528
|
declare global {
|
|
1505
1529
|
namespace JSX {
|
|
1506
1530
|
interface IntrinsicElements {
|
|
1507
|
-
'gs-
|
|
1531
|
+
'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1508
1532
|
}
|
|
1509
1533
|
}
|
|
1510
1534
|
}
|
|
@@ -1512,7 +1536,7 @@ declare global {
|
|
|
1512
1536
|
|
|
1513
1537
|
declare global {
|
|
1514
1538
|
interface HTMLElementTagNameMap {
|
|
1515
|
-
'gs-
|
|
1539
|
+
'gs-mutation-comparison-component': MutationComparisonComponent;
|
|
1516
1540
|
}
|
|
1517
1541
|
}
|
|
1518
1542
|
|
|
@@ -1520,7 +1544,7 @@ declare global {
|
|
|
1520
1544
|
declare global {
|
|
1521
1545
|
namespace JSX {
|
|
1522
1546
|
interface IntrinsicElements {
|
|
1523
|
-
'gs-
|
|
1547
|
+
'gs-mutation-comparison-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1524
1548
|
}
|
|
1525
1549
|
}
|
|
1526
1550
|
}
|
|
@@ -1528,7 +1552,7 @@ declare global {
|
|
|
1528
1552
|
|
|
1529
1553
|
declare global {
|
|
1530
1554
|
interface HTMLElementTagNameMap {
|
|
1531
|
-
'gs-
|
|
1555
|
+
'gs-mutations-component': MutationsComponent;
|
|
1532
1556
|
}
|
|
1533
1557
|
}
|
|
1534
1558
|
|
|
@@ -1536,7 +1560,7 @@ declare global {
|
|
|
1536
1560
|
declare global {
|
|
1537
1561
|
namespace JSX {
|
|
1538
1562
|
interface IntrinsicElements {
|
|
1539
|
-
'gs-
|
|
1563
|
+
'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1540
1564
|
}
|
|
1541
1565
|
}
|
|
1542
1566
|
}
|
|
@@ -1544,7 +1568,7 @@ declare global {
|
|
|
1544
1568
|
|
|
1545
1569
|
declare global {
|
|
1546
1570
|
interface HTMLElementTagNameMap {
|
|
1547
|
-
'gs-
|
|
1571
|
+
'gs-prevalence-over-time': PrevalenceOverTimeComponent;
|
|
1548
1572
|
}
|
|
1549
1573
|
}
|
|
1550
1574
|
|
|
@@ -1552,7 +1576,7 @@ declare global {
|
|
|
1552
1576
|
declare global {
|
|
1553
1577
|
namespace JSX {
|
|
1554
1578
|
interface IntrinsicElements {
|
|
1555
|
-
'gs-
|
|
1579
|
+
'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1556
1580
|
}
|
|
1557
1581
|
}
|
|
1558
1582
|
}
|
|
@@ -1560,11 +1584,7 @@ declare global {
|
|
|
1560
1584
|
|
|
1561
1585
|
declare global {
|
|
1562
1586
|
interface HTMLElementTagNameMap {
|
|
1563
|
-
'gs-
|
|
1564
|
-
}
|
|
1565
|
-
interface HTMLElementEventMap {
|
|
1566
|
-
'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
|
|
1567
|
-
'gs-date-range-option-changed': DateRangeOptionChangedEvent;
|
|
1587
|
+
'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
|
|
1568
1588
|
}
|
|
1569
1589
|
}
|
|
1570
1590
|
|
|
@@ -1572,7 +1592,7 @@ declare global {
|
|
|
1572
1592
|
declare global {
|
|
1573
1593
|
namespace JSX {
|
|
1574
1594
|
interface IntrinsicElements {
|
|
1575
|
-
'gs-
|
|
1595
|
+
'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1576
1596
|
}
|
|
1577
1597
|
}
|
|
1578
1598
|
}
|
|
@@ -1580,10 +1600,7 @@ declare global {
|
|
|
1580
1600
|
|
|
1581
1601
|
declare global {
|
|
1582
1602
|
interface HTMLElementTagNameMap {
|
|
1583
|
-
'gs-
|
|
1584
|
-
}
|
|
1585
|
-
interface HTMLElementEventMap {
|
|
1586
|
-
'gs-location-changed': LocationChangedEvent;
|
|
1603
|
+
'gs-aggregate': AggregateComponent;
|
|
1587
1604
|
}
|
|
1588
1605
|
}
|
|
1589
1606
|
|
|
@@ -1591,7 +1608,7 @@ declare global {
|
|
|
1591
1608
|
declare global {
|
|
1592
1609
|
namespace JSX {
|
|
1593
1610
|
interface IntrinsicElements {
|
|
1594
|
-
'gs-
|
|
1611
|
+
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1595
1612
|
}
|
|
1596
1613
|
}
|
|
1597
1614
|
}
|
|
@@ -1599,10 +1616,7 @@ declare global {
|
|
|
1599
1616
|
|
|
1600
1617
|
declare global {
|
|
1601
1618
|
interface HTMLElementTagNameMap {
|
|
1602
|
-
'gs-
|
|
1603
|
-
}
|
|
1604
|
-
interface HTMLElementEventMap {
|
|
1605
|
-
'gs-text-filter-changed': TextFilterChangedEvent;
|
|
1619
|
+
'gs-mutations-over-time': MutationsOverTimeComponent;
|
|
1606
1620
|
}
|
|
1607
1621
|
}
|
|
1608
1622
|
|
|
@@ -1610,7 +1624,7 @@ declare global {
|
|
|
1610
1624
|
declare global {
|
|
1611
1625
|
namespace JSX {
|
|
1612
1626
|
interface IntrinsicElements {
|
|
1613
|
-
'gs-
|
|
1627
|
+
'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1614
1628
|
}
|
|
1615
1629
|
}
|
|
1616
1630
|
}
|
|
@@ -1618,10 +1632,7 @@ declare global {
|
|
|
1618
1632
|
|
|
1619
1633
|
declare global {
|
|
1620
1634
|
interface HTMLElementTagNameMap {
|
|
1621
|
-
'gs-
|
|
1622
|
-
}
|
|
1623
|
-
interface HTMLElementEventMap {
|
|
1624
|
-
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1635
|
+
'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
|
|
1625
1636
|
}
|
|
1626
1637
|
}
|
|
1627
1638
|
|
|
@@ -1629,7 +1640,7 @@ declare global {
|
|
|
1629
1640
|
declare global {
|
|
1630
1641
|
namespace JSX {
|
|
1631
1642
|
interface IntrinsicElements {
|
|
1632
|
-
'gs-
|
|
1643
|
+
'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1633
1644
|
}
|
|
1634
1645
|
}
|
|
1635
1646
|
}
|
|
@@ -1637,10 +1648,7 @@ declare global {
|
|
|
1637
1648
|
|
|
1638
1649
|
declare global {
|
|
1639
1650
|
interface HTMLElementTagNameMap {
|
|
1640
|
-
'gs-
|
|
1641
|
-
}
|
|
1642
|
-
interface HTMLElementEventMap {
|
|
1643
|
-
'gs-lineage-filter-changed': LineageFilterChangedEvent;
|
|
1651
|
+
'gs-sequences-by-location': SequencesByLocationComponent;
|
|
1644
1652
|
}
|
|
1645
1653
|
}
|
|
1646
1654
|
|
|
@@ -1648,7 +1656,7 @@ declare global {
|
|
|
1648
1656
|
declare global {
|
|
1649
1657
|
namespace JSX {
|
|
1650
1658
|
interface IntrinsicElements {
|
|
1651
|
-
'gs-
|
|
1659
|
+
'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1652
1660
|
}
|
|
1653
1661
|
}
|
|
1654
1662
|
}
|
|
@@ -1656,7 +1664,7 @@ declare global {
|
|
|
1656
1664
|
|
|
1657
1665
|
declare global {
|
|
1658
1666
|
interface HTMLElementTagNameMap {
|
|
1659
|
-
'gs-
|
|
1667
|
+
'gs-statistics': StatisticsComponent;
|
|
1660
1668
|
}
|
|
1661
1669
|
}
|
|
1662
1670
|
|
|
@@ -1664,7 +1672,7 @@ declare global {
|
|
|
1664
1672
|
declare global {
|
|
1665
1673
|
namespace JSX {
|
|
1666
1674
|
interface IntrinsicElements {
|
|
1667
|
-
'gs-
|
|
1675
|
+
'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1668
1676
|
}
|
|
1669
1677
|
}
|
|
1670
1678
|
}
|