@genspectrum/dashboard-components 0.15.0 → 0.16.0
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 +200 -56
- package/dist/components.d.ts +35 -35
- package/dist/components.js +311 -192
- package/dist/components.js.map +1 -1
- package/dist/style.css +9 -0
- package/dist/util.d.ts +46 -46
- package/package.json +1 -1
- package/src/preact/ReferenceGenomeContext.ts +14 -1
- package/src/preact/aggregatedData/aggregate-bar-chart.tsx +26 -5
- package/src/preact/aggregatedData/aggregate.stories.tsx +0 -1
- package/src/preact/aggregatedData/aggregate.tsx +5 -1
- package/src/preact/components/ReferenceGenomesAwaiter.tsx +1 -6
- package/src/preact/components/resize-container.tsx +1 -1
- package/src/preact/mutationComparison/mutation-comparison-venn.tsx +4 -2
- package/src/preact/mutationComparison/mutation-comparison.stories.tsx +0 -1
- package/src/preact/mutationComparison/mutation-comparison.tsx +5 -1
- package/src/preact/mutationFilter/mutation-filter.stories.tsx +17 -1
- package/src/preact/mutationFilter/mutation-filter.tsx +8 -0
- package/src/preact/mutations/mutations.stories.tsx +0 -1
- package/src/preact/mutations/mutations.tsx +1 -1
- package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +0 -2
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +1 -1
- package/src/preact/numberSequencesOverTime/number-sequences-over-time-bar-chart.tsx +8 -3
- package/src/preact/numberSequencesOverTime/number-sequences-over-time-line-chart.tsx +8 -3
- package/src/preact/numberSequencesOverTime/number-sequences-over-time.stories.tsx +3 -1
- package/src/preact/numberSequencesOverTime/number-sequences-over-time.tsx +18 -3
- package/src/preact/prevalenceOverTime/prevalence-over-time-bar-chart.tsx +48 -35
- package/src/preact/prevalenceOverTime/prevalence-over-time-bubble-chart.tsx +83 -70
- package/src/preact/prevalenceOverTime/prevalence-over-time-line-chart.tsx +48 -37
- package/src/preact/prevalenceOverTime/prevalence-over-time.stories.tsx +0 -3
- package/src/preact/prevalenceOverTime/prevalence-over-time.tsx +6 -1
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage-chart.tsx +31 -23
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.stories.tsx +0 -1
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.tsx +5 -1
- package/src/preact/sequencesByLocation/__mockData__/worldAtlas.json +1 -0
- package/src/preact/{map → sequencesByLocation}/sequences-by-location-map.tsx +6 -3
- package/src/preact/{map → sequencesByLocation}/sequences-by-location-table.tsx +1 -1
- package/src/preact/{map → sequencesByLocation}/sequences-by-location.stories.tsx +58 -1
- package/src/preact/{map → sequencesByLocation}/sequences-by-location.tsx +10 -1
- package/src/preact/shared/aspectRatio/AspectRatio.tsx +13 -0
- package/src/preact/shared/charts/getMaintainAspectRatio.ts +3 -0
- package/src/preact/statistic/statistics.stories.tsx +0 -1
- package/src/preact/statistic/statistics.tsx +4 -4
- package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.stories.tsx +0 -1
- package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.tsx +1 -1
- package/src/query/computeMapLocationData.spec.ts +1 -1
- package/src/query/computeMapLocationData.ts +1 -1
- package/src/query/querySequencesByLocationData.ts +1 -1
- package/src/utilEntrypoint.ts +1 -1
- package/src/web-components/ResizeContainer.mdx +4 -1
- package/src/web-components/visualization/gs-aggregate.stories.ts +13 -6
- package/src/web-components/visualization/gs-aggregate.tsx +1 -1
- package/src/web-components/visualization/gs-mutation-comparison.stories.ts +8 -1
- package/src/web-components/visualization/gs-mutation-comparison.tsx +1 -1
- package/src/web-components/visualization/gs-mutations-over-time.stories.ts +9 -1
- package/src/web-components/visualization/gs-mutations-over-time.tsx +1 -1
- package/src/web-components/visualization/gs-mutations.stories.ts +8 -1
- package/src/web-components/visualization/gs-mutations.tsx +1 -1
- package/src/web-components/visualization/gs-number-sequences-over-time.stories.ts +11 -1
- package/src/web-components/visualization/gs-number-sequences-over-time.tsx +1 -1
- package/src/web-components/visualization/gs-prevalence-over-time.stories.ts +8 -2
- package/src/web-components/visualization/gs-prevalence-over-time.tsx +1 -1
- package/src/web-components/visualization/gs-relative-growth-advantage.stories.ts +8 -1
- package/src/web-components/visualization/gs-relative-growth-advantage.tsx +1 -1
- package/src/web-components/visualization/gs-sequences-by-location.stories.ts +13 -7
- package/src/web-components/visualization/gs-sequences-by-location.tsx +6 -3
- package/src/web-components/visualization/gs-statistics.stories.ts +0 -1
- package/src/web-components/visualization/gs-statistics.tsx +1 -1
- package/src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.stories.ts +9 -1
- package/src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.tsx +1 -1
- package/standalone-bundle/dashboard-components.js +4965 -4876
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/standalone-bundle/style.css +1 -1
- package/src/preact/map/__mockData__/worldAtlas.json +0 -497127
- /package/src/preact/{map → sequencesByLocation}/__mockData__/aggregatedGermany.json +0 -0
- /package/src/preact/{map → sequencesByLocation}/__mockData__/aggregatedWorld.json +0 -0
- /package/src/preact/{map → sequencesByLocation}/__mockData__/germanyMap.json +0 -0
- /package/src/preact/{map → sequencesByLocation}/__mockData__/howToGenerateWorldMap.md +0 -0
- /package/src/preact/{map → sequencesByLocation}/leafletStyleModifications.css +0 -0
- /package/src/preact/{map → sequencesByLocation}/loadMapSource.tsx +0 -0
package/dist/components.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare class AggregateComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
67
67
|
*
|
|
68
68
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
69
69
|
*/
|
|
70
|
-
height: string;
|
|
70
|
+
height: string | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* The field by which the table is initially sorted.
|
|
73
73
|
* Must be one of the fields specified in the fields property, 'count', or 'proportion'.
|
|
@@ -396,7 +396,7 @@ export declare class MutationComparisonComponent extends PreactLitAdapterWithGri
|
|
|
396
396
|
*
|
|
397
397
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
398
398
|
*/
|
|
399
|
-
height: string;
|
|
399
|
+
height: string | undefined;
|
|
400
400
|
/**
|
|
401
401
|
* The maximum number of rows to display in the table view.
|
|
402
402
|
* Set to `false` to disable pagination. Set to `true` to enable pagination with a default limit (10).
|
|
@@ -561,7 +561,7 @@ export declare class MutationsComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
561
561
|
*
|
|
562
562
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
563
563
|
*/
|
|
564
|
-
height: string;
|
|
564
|
+
height: string | undefined;
|
|
565
565
|
/**
|
|
566
566
|
* The maximum number of rows to display in the table view.
|
|
567
567
|
* Set to `false` to disable pagination. Set to `true` to enable pagination with a default limit (10).
|
|
@@ -624,7 +624,7 @@ export declare class MutationsOverTimeComponent extends PreactLitAdapterWithGrid
|
|
|
624
624
|
*
|
|
625
625
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
626
626
|
*/
|
|
627
|
-
height: string;
|
|
627
|
+
height: string | undefined;
|
|
628
628
|
/**
|
|
629
629
|
* The granularity of the time axis.
|
|
630
630
|
*/
|
|
@@ -694,7 +694,7 @@ export declare class NumberSequencesOverTimeComponent extends PreactLitAdapterWi
|
|
|
694
694
|
*
|
|
695
695
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
696
696
|
*/
|
|
697
|
-
height: string;
|
|
697
|
+
height: string | undefined;
|
|
698
698
|
/**
|
|
699
699
|
* The granularity of the time axis.
|
|
700
700
|
*/
|
|
@@ -831,7 +831,7 @@ export declare class PrevalenceOverTimeComponent extends PreactLitAdapterWithGri
|
|
|
831
831
|
*
|
|
832
832
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
833
833
|
*/
|
|
834
|
-
height: string;
|
|
834
|
+
height: string | undefined;
|
|
835
835
|
/**
|
|
836
836
|
* Required.
|
|
837
837
|
*
|
|
@@ -974,7 +974,7 @@ export declare class RelativeGrowthAdvantageComponent extends PreactLitAdapter {
|
|
|
974
974
|
*
|
|
975
975
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
976
976
|
*/
|
|
977
|
-
height: string;
|
|
977
|
+
height: string | undefined;
|
|
978
978
|
/**
|
|
979
979
|
* Required.
|
|
980
980
|
*
|
|
@@ -1130,7 +1130,7 @@ export declare class SequencesByLocationComponent extends PreactLitAdapterWithGr
|
|
|
1130
1130
|
*
|
|
1131
1131
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
1132
1132
|
*/
|
|
1133
|
-
height: string;
|
|
1133
|
+
height: string | undefined;
|
|
1134
1134
|
/**
|
|
1135
1135
|
A list of tabs with views that this component should provide.
|
|
1136
1136
|
*/
|
|
@@ -1198,7 +1198,7 @@ export declare class StatisticsComponent extends PreactLitAdapterWithGridJsStyle
|
|
|
1198
1198
|
*
|
|
1199
1199
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
1200
1200
|
*/
|
|
1201
|
-
height: string;
|
|
1201
|
+
height: string | undefined;
|
|
1202
1202
|
render(): JSX_2.Element;
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
@@ -1306,7 +1306,7 @@ export declare class WastewaterMutationsOverTimeComponent extends PreactLitAdapt
|
|
|
1306
1306
|
*
|
|
1307
1307
|
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
1308
1308
|
*/
|
|
1309
|
-
height: string;
|
|
1309
|
+
height: string | undefined;
|
|
1310
1310
|
/**
|
|
1311
1311
|
* The maximum number of grid rows to display.
|
|
1312
1312
|
*/
|
|
@@ -1340,22 +1340,6 @@ declare global {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
1342
|
|
|
1343
|
-
declare global {
|
|
1344
|
-
interface HTMLElementTagNameMap {
|
|
1345
|
-
'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
declare global {
|
|
1351
|
-
namespace JSX {
|
|
1352
|
-
interface IntrinsicElements {
|
|
1353
|
-
'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
1343
|
declare global {
|
|
1360
1344
|
interface HTMLElementTagNameMap {
|
|
1361
1345
|
'gs-mutation-comparison-component': MutationComparisonComponent;
|
|
@@ -1422,7 +1406,7 @@ declare global {
|
|
|
1422
1406
|
|
|
1423
1407
|
declare global {
|
|
1424
1408
|
interface HTMLElementTagNameMap {
|
|
1425
|
-
'gs-
|
|
1409
|
+
'gs-aggregate': AggregateComponent;
|
|
1426
1410
|
}
|
|
1427
1411
|
}
|
|
1428
1412
|
|
|
@@ -1430,7 +1414,7 @@ declare global {
|
|
|
1430
1414
|
declare global {
|
|
1431
1415
|
namespace JSX {
|
|
1432
1416
|
interface IntrinsicElements {
|
|
1433
|
-
'gs-
|
|
1417
|
+
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1434
1418
|
}
|
|
1435
1419
|
}
|
|
1436
1420
|
}
|
|
@@ -1438,7 +1422,7 @@ declare global {
|
|
|
1438
1422
|
|
|
1439
1423
|
declare global {
|
|
1440
1424
|
interface HTMLElementTagNameMap {
|
|
1441
|
-
'gs-
|
|
1425
|
+
'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
|
|
1442
1426
|
}
|
|
1443
1427
|
}
|
|
1444
1428
|
|
|
@@ -1446,7 +1430,7 @@ declare global {
|
|
|
1446
1430
|
declare global {
|
|
1447
1431
|
namespace JSX {
|
|
1448
1432
|
interface IntrinsicElements {
|
|
1449
|
-
'gs-
|
|
1433
|
+
'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1450
1434
|
}
|
|
1451
1435
|
}
|
|
1452
1436
|
}
|
|
@@ -1558,6 +1542,25 @@ declare global {
|
|
|
1558
1542
|
}
|
|
1559
1543
|
|
|
1560
1544
|
|
|
1545
|
+
declare global {
|
|
1546
|
+
interface HTMLElementTagNameMap {
|
|
1547
|
+
'gs-mutation-filter': MutationFilterComponent;
|
|
1548
|
+
}
|
|
1549
|
+
interface HTMLElementEventMap {
|
|
1550
|
+
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
declare global {
|
|
1556
|
+
namespace JSX {
|
|
1557
|
+
interface IntrinsicElements {
|
|
1558
|
+
'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
|
|
1561
1564
|
declare global {
|
|
1562
1565
|
interface HTMLElementTagNameMap {
|
|
1563
1566
|
'gs-lineage-filter': LineageFilterComponent;
|
|
@@ -1579,10 +1582,7 @@ declare global {
|
|
|
1579
1582
|
|
|
1580
1583
|
declare global {
|
|
1581
1584
|
interface HTMLElementTagNameMap {
|
|
1582
|
-
'gs-
|
|
1583
|
-
}
|
|
1584
|
-
interface HTMLElementEventMap {
|
|
1585
|
-
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1585
|
+
'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
@@ -1590,7 +1590,7 @@ declare global {
|
|
|
1590
1590
|
declare global {
|
|
1591
1591
|
namespace JSX {
|
|
1592
1592
|
interface IntrinsicElements {
|
|
1593
|
-
'gs-
|
|
1593
|
+
'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|