@genspectrum/dashboard-components 0.18.1 → 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.
- package/custom-elements.json +9 -9
- package/dist/{LineageFilterChangedEvent-DkvWdq_G.js → LineageFilterChangedEvent-ixHQkq8y.js} +2 -2
- package/dist/{LineageFilterChangedEvent-DkvWdq_G.js.map → LineageFilterChangedEvent-ixHQkq8y.js.map} +1 -1
- package/dist/assets/{mutationOverTimeWorker-ChQTFL68.js.map → mutationOverTimeWorker--b8ZHlji.js.map} +1 -1
- package/dist/components.d.ts +22 -291
- package/dist/components.js +220 -124
- package/dist/components.js.map +1 -1
- package/dist/style.css +2 -2
- package/dist/util.d.ts +25 -292
- package/dist/util.js +1 -1
- package/package.json +3 -3
- 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/dateRangeFilter/computeInitialValues.spec.ts +2 -2
- package/src/preact/dateRangeFilter/computeInitialValues.ts +1 -1
- package/src/preact/dateRangeFilter/date-range-filter.stories.tsx +3 -5
- package/src/preact/dateRangeFilter/date-range-filter.tsx +12 -7
- package/src/preact/dateRangeFilter/dateRangeOption.ts +1 -1
- 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-grid-tooltip.stories.tsx +108 -0
- package/src/preact/mutationsOverTime/mutations-over-time-grid-tooltip.tsx +93 -0
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +7 -78
- 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/input/gs-date-range-filter.stories.ts +1 -1
- package/src/web-components/input/gs-date-range-filter.tsx +7 -5
- 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 +5778 -5707
- 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 */
|
|
@@ -163,12 +165,14 @@ export declare class AppComponent extends LitElement {
|
|
|
163
165
|
* Use this event, when you want to use the filter directly as a LAPIS filter.
|
|
164
166
|
*
|
|
165
167
|
*
|
|
166
|
-
* @fires {CustomEvent<
|
|
168
|
+
* @fires {CustomEvent<string | {dateFrom: string, dateTo: string} | null>} gs-date-range-option-changed
|
|
167
169
|
* Fired when:
|
|
168
170
|
* - The select field is changed,
|
|
169
171
|
* - A date is selected in either of the date pickers,
|
|
170
|
-
* - A date was typed into either of the date input fields, and the input field loses focus ("on blur")
|
|
171
|
-
*
|
|
172
|
+
* - A date was typed into either of the date input fields, and the input field loses focus ("on blur"),
|
|
173
|
+
* - The user deletes the current value by clicking the 'x' button.
|
|
174
|
+
* Contains the selected dateRangeOption or when users select custom values it contains the selected dates
|
|
175
|
+
* or `null` when the input was deleted.
|
|
172
176
|
*
|
|
173
177
|
* Use this event, when you want to control this component in your JS application.
|
|
174
178
|
* You can supply the `detail` of this event to the `value` attribute of this component.
|
|
@@ -204,7 +208,7 @@ export declare class DateRangeFilterComponent extends PreactLitAdapter {
|
|
|
204
208
|
value: string | {
|
|
205
209
|
dateFrom?: string;
|
|
206
210
|
dateTo?: string;
|
|
207
|
-
} |
|
|
211
|
+
} | null;
|
|
208
212
|
/**
|
|
209
213
|
* The width of the component.
|
|
210
214
|
*
|
|
@@ -354,20 +358,26 @@ declare const mutationAnnotationsSchema: default_2.ZodArray<default_2.ZodObject<
|
|
|
354
358
|
name: default_2.ZodString;
|
|
355
359
|
description: default_2.ZodString;
|
|
356
360
|
symbol: default_2.ZodString;
|
|
357
|
-
nucleotideMutations: default_2.ZodArray<default_2.ZodString, "many"
|
|
358
|
-
|
|
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">>;
|
|
359
365
|
}, "strip", default_2.ZodTypeAny, {
|
|
360
366
|
symbol: string;
|
|
361
367
|
name: string;
|
|
362
368
|
description: string;
|
|
363
|
-
nucleotideMutations
|
|
364
|
-
|
|
369
|
+
nucleotideMutations?: string[] | undefined;
|
|
370
|
+
nucleotidePositions?: string[] | undefined;
|
|
371
|
+
aminoAcidMutations?: string[] | undefined;
|
|
372
|
+
aminoAcidPositions?: string[] | undefined;
|
|
365
373
|
}, {
|
|
366
374
|
symbol: string;
|
|
367
375
|
name: string;
|
|
368
376
|
description: string;
|
|
369
|
-
nucleotideMutations
|
|
370
|
-
|
|
377
|
+
nucleotideMutations?: string[] | undefined;
|
|
378
|
+
nucleotidePositions?: string[] | undefined;
|
|
379
|
+
aminoAcidMutations?: string[] | undefined;
|
|
380
|
+
aminoAcidPositions?: string[] | undefined;
|
|
371
381
|
}>, "many">;
|
|
372
382
|
|
|
373
383
|
/**
|
|
@@ -1389,285 +1399,6 @@ export declare class WastewaterMutationsOverTimeComponent extends PreactLitAdapt
|
|
|
1389
1399
|
export { }
|
|
1390
1400
|
|
|
1391
1401
|
|
|
1392
|
-
declare global {
|
|
1393
|
-
interface HTMLElementEventMap {
|
|
1394
|
-
'gs-error': ErrorEvent;
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
declare global {
|
|
1400
|
-
interface HTMLElementTagNameMap {
|
|
1401
|
-
'gs-app': AppComponent;
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
declare global {
|
|
1407
|
-
namespace JSX {
|
|
1408
|
-
interface IntrinsicElements {
|
|
1409
|
-
'gs-app': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
declare global {
|
|
1416
|
-
interface HTMLElementTagNameMap {
|
|
1417
|
-
'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
declare global {
|
|
1423
|
-
namespace JSX {
|
|
1424
|
-
interface IntrinsicElements {
|
|
1425
|
-
'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
declare global {
|
|
1432
|
-
interface HTMLElementTagNameMap {
|
|
1433
|
-
'gs-date-range-filter': DateRangeFilterComponent;
|
|
1434
|
-
}
|
|
1435
|
-
interface HTMLElementEventMap {
|
|
1436
|
-
'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
|
|
1437
|
-
'gs-date-range-option-changed': DateRangeOptionChangedEvent;
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
declare global {
|
|
1443
|
-
namespace JSX {
|
|
1444
|
-
interface IntrinsicElements {
|
|
1445
|
-
'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
declare global {
|
|
1452
|
-
interface HTMLElementTagNameMap {
|
|
1453
|
-
'gs-location-filter': LocationFilterComponent;
|
|
1454
|
-
}
|
|
1455
|
-
interface HTMLElementEventMap {
|
|
1456
|
-
'gs-location-changed': LocationChangedEvent;
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
declare global {
|
|
1462
|
-
namespace JSX {
|
|
1463
|
-
interface IntrinsicElements {
|
|
1464
|
-
'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
declare global {
|
|
1471
|
-
interface HTMLElementTagNameMap {
|
|
1472
|
-
'gs-text-filter': TextFilterComponent;
|
|
1473
|
-
}
|
|
1474
|
-
interface HTMLElementEventMap {
|
|
1475
|
-
'gs-text-filter-changed': TextFilterChangedEvent;
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
declare global {
|
|
1481
|
-
namespace JSX {
|
|
1482
|
-
interface IntrinsicElements {
|
|
1483
|
-
'gs-text-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
declare global {
|
|
1490
|
-
interface HTMLElementTagNameMap {
|
|
1491
|
-
'gs-mutation-filter': MutationFilterComponent;
|
|
1492
|
-
}
|
|
1493
|
-
interface HTMLElementEventMap {
|
|
1494
|
-
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
declare global {
|
|
1500
|
-
namespace JSX {
|
|
1501
|
-
interface IntrinsicElements {
|
|
1502
|
-
'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
declare global {
|
|
1509
|
-
interface HTMLElementTagNameMap {
|
|
1510
|
-
'gs-lineage-filter': LineageFilterComponent;
|
|
1511
|
-
}
|
|
1512
|
-
interface HTMLElementEventMap {
|
|
1513
|
-
'gs-lineage-filter-changed': LineageFilterChangedEvent;
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
declare global {
|
|
1519
|
-
namespace JSX {
|
|
1520
|
-
interface IntrinsicElements {
|
|
1521
|
-
'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
declare global {
|
|
1528
|
-
interface HTMLElementTagNameMap {
|
|
1529
|
-
'gs-mutations-component': MutationsComponent;
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
declare global {
|
|
1535
|
-
namespace JSX {
|
|
1536
|
-
interface IntrinsicElements {
|
|
1537
|
-
'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
declare global {
|
|
1544
|
-
interface HTMLElementTagNameMap {
|
|
1545
|
-
'gs-mutation-comparison-component': MutationComparisonComponent;
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
declare global {
|
|
1551
|
-
namespace JSX {
|
|
1552
|
-
interface IntrinsicElements {
|
|
1553
|
-
'gs-mutation-comparison-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
declare global {
|
|
1560
|
-
interface HTMLElementTagNameMap {
|
|
1561
|
-
'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
declare global {
|
|
1567
|
-
namespace JSX {
|
|
1568
|
-
interface IntrinsicElements {
|
|
1569
|
-
'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
declare global {
|
|
1576
|
-
interface HTMLElementTagNameMap {
|
|
1577
|
-
'gs-prevalence-over-time': PrevalenceOverTimeComponent;
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
declare global {
|
|
1583
|
-
namespace JSX {
|
|
1584
|
-
interface IntrinsicElements {
|
|
1585
|
-
'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
declare global {
|
|
1592
|
-
interface HTMLElementTagNameMap {
|
|
1593
|
-
'gs-aggregate': AggregateComponent;
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
declare global {
|
|
1599
|
-
namespace JSX {
|
|
1600
|
-
interface IntrinsicElements {
|
|
1601
|
-
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
declare global {
|
|
1608
|
-
interface HTMLElementTagNameMap {
|
|
1609
|
-
'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
declare global {
|
|
1615
|
-
namespace JSX {
|
|
1616
|
-
interface IntrinsicElements {
|
|
1617
|
-
'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
declare global {
|
|
1624
|
-
interface HTMLElementTagNameMap {
|
|
1625
|
-
'gs-mutations-over-time': MutationsOverTimeComponent;
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
declare global {
|
|
1631
|
-
namespace JSX {
|
|
1632
|
-
interface IntrinsicElements {
|
|
1633
|
-
'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
declare global {
|
|
1640
|
-
interface HTMLElementTagNameMap {
|
|
1641
|
-
'gs-sequences-by-location': SequencesByLocationComponent;
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
declare global {
|
|
1647
|
-
namespace JSX {
|
|
1648
|
-
interface IntrinsicElements {
|
|
1649
|
-
'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
declare global {
|
|
1656
|
-
interface HTMLElementTagNameMap {
|
|
1657
|
-
'gs-statistics': StatisticsComponent;
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
declare global {
|
|
1663
|
-
namespace JSX {
|
|
1664
|
-
interface IntrinsicElements {
|
|
1665
|
-
'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
1402
|
declare module 'chart.js' {
|
|
1672
1403
|
interface CartesianScaleTypeRegistry {
|
|
1673
1404
|
logit: {
|