@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/custom-elements.json
CHANGED
|
@@ -1464,11 +1464,19 @@
|
|
|
1464
1464
|
},
|
|
1465
1465
|
{
|
|
1466
1466
|
"kind": "variable",
|
|
1467
|
-
"name": "
|
|
1467
|
+
"name": "Default",
|
|
1468
1468
|
"type": {
|
|
1469
1469
|
"text": "StoryObj<Required<AggregateProps>>"
|
|
1470
1470
|
},
|
|
1471
|
-
"default": "{ render: (args) => html` <gs-app lapis=\"${LAPIS_URL}\"> <gs-aggregate .fields=${args.fields} .lapisFilter=${args.lapisFilter} .views=${args.views} .width=${args.width} .height=${args.height} .initialSortField=${args.initialSortField} .initialSortDirection=${args.initialSortDirection} .pageSize=${args.pageSize} .maxNumberOfBars=${args.maxNumberOfBars} ></gs-aggregate> </gs-app> `, parameters: { fetchMock: { mocks: [ { matcher: { name: 'aggregatedData', url: AGGREGATED_ENDPOINT, body: { fields: ['division', 'host'], country: 'USA', }, }, response: { status: 200, body: aggregatedData, }, }, ], }, }, args: { fields: ['division', 'host'], views: ['table', 'bar'], lapisFilter: { country: 'USA', }, width: '100%',
|
|
1471
|
+
"default": "{ render: (args) => html` <gs-app lapis=\"${LAPIS_URL}\"> <gs-aggregate .fields=${args.fields} .lapisFilter=${args.lapisFilter} .views=${args.views} .width=${args.width} .height=${args.height} .initialSortField=${args.initialSortField} .initialSortDirection=${args.initialSortDirection} .pageSize=${args.pageSize} .maxNumberOfBars=${args.maxNumberOfBars} ></gs-aggregate> </gs-app> `, parameters: { fetchMock: { mocks: [ { matcher: { name: 'aggregatedData', url: AGGREGATED_ENDPOINT, body: { fields: ['division', 'host'], country: 'USA', }, }, response: { status: 200, body: aggregatedData, }, }, ], }, }, args: { fields: ['division', 'host'], views: ['table', 'bar'], lapisFilter: { country: 'USA', }, width: '100%', initialSortField: 'count', initialSortDirection: 'descending', pageSize: 10, maxNumberOfBars: 10, }, }"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"kind": "variable",
|
|
1475
|
+
"name": "WithFixedHeight",
|
|
1476
|
+
"type": {
|
|
1477
|
+
"text": "StoryObj<Required<AggregateProps>>"
|
|
1478
|
+
},
|
|
1479
|
+
"default": "{ ...Default, args: { ...Default.args, height: '700px', }, }"
|
|
1472
1480
|
},
|
|
1473
1481
|
{
|
|
1474
1482
|
"kind": "variable",
|
|
@@ -1476,7 +1484,7 @@
|
|
|
1476
1484
|
"type": {
|
|
1477
1485
|
"text": "StoryObj<Required<AggregateProps>>"
|
|
1478
1486
|
},
|
|
1479
|
-
"default": "{ ...
|
|
1487
|
+
"default": "{ ...Default, args: { ...Default.args, fields: ['division'], views: ['bar', 'table'], }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'aggregatedData', url: AGGREGATED_ENDPOINT, body: { fields: ['division'], country: 'USA', }, }, response: { status: 200, body: aggregatedDataWith1Field, }, }, ], }, }, }"
|
|
1480
1488
|
},
|
|
1481
1489
|
{
|
|
1482
1490
|
"kind": "variable",
|
|
@@ -1484,7 +1492,7 @@
|
|
|
1484
1492
|
"type": {
|
|
1485
1493
|
"text": "StoryObj<Required<AggregateProps>>"
|
|
1486
1494
|
},
|
|
1487
|
-
"default": "{ ...
|
|
1495
|
+
"default": "{ ...Default, args: { ...Default.args, fields: ['division', 'nextstrainClade'], lapisFilter: { country: 'Germany', dateTo: '2022-02-01', }, views: ['bar', 'table'], }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'aggregatedData', url: AGGREGATED_ENDPOINT, body: { fields: ['division', 'nextstrainClade'], country: 'Germany', dateTo: '2022-02-01', }, }, response: { status: 200, body: aggregatedDataWith2Fields, }, }, ], }, }, }"
|
|
1488
1496
|
}
|
|
1489
1497
|
],
|
|
1490
1498
|
"exports": [
|
|
@@ -1498,9 +1506,17 @@
|
|
|
1498
1506
|
},
|
|
1499
1507
|
{
|
|
1500
1508
|
"kind": "js",
|
|
1501
|
-
"name": "
|
|
1509
|
+
"name": "Default",
|
|
1510
|
+
"declaration": {
|
|
1511
|
+
"name": "Default",
|
|
1512
|
+
"module": "src/web-components/visualization/gs-aggregate.stories.ts"
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"kind": "js",
|
|
1517
|
+
"name": "WithFixedHeight",
|
|
1502
1518
|
"declaration": {
|
|
1503
|
-
"name": "
|
|
1519
|
+
"name": "WithFixedHeight",
|
|
1504
1520
|
"module": "src/web-components/visualization/gs-aggregate.stories.ts"
|
|
1505
1521
|
}
|
|
1506
1522
|
},
|
|
@@ -1575,9 +1591,9 @@
|
|
|
1575
1591
|
"kind": "field",
|
|
1576
1592
|
"name": "height",
|
|
1577
1593
|
"type": {
|
|
1578
|
-
"text": "string"
|
|
1594
|
+
"text": "string | undefined"
|
|
1579
1595
|
},
|
|
1580
|
-
"default": "
|
|
1596
|
+
"default": "undefined",
|
|
1581
1597
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
1582
1598
|
"attribute": "height"
|
|
1583
1599
|
},
|
|
@@ -1662,9 +1678,9 @@
|
|
|
1662
1678
|
{
|
|
1663
1679
|
"name": "height",
|
|
1664
1680
|
"type": {
|
|
1665
|
-
"text": "string"
|
|
1681
|
+
"text": "string | undefined"
|
|
1666
1682
|
},
|
|
1667
|
-
"default": "
|
|
1683
|
+
"default": "undefined",
|
|
1668
1684
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
1669
1685
|
"fieldName": "height"
|
|
1670
1686
|
},
|
|
@@ -1750,7 +1766,7 @@
|
|
|
1750
1766
|
"type": {
|
|
1751
1767
|
"text": "StoryObj<Required<MutationComparisonProps>>"
|
|
1752
1768
|
},
|
|
1753
|
-
"default": "{ ...Template, args: { lapisFilters: [ { displayName: 'Some dataset', lapisFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateTo }, }, { displayName: 'Other dataset', lapisFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateFrom, dateTo, }, }, ], sequenceType: 'nucleotide', views: ['table', 'venn'], width: '100%',
|
|
1769
|
+
"default": "{ ...Template, args: { lapisFilters: [ { displayName: 'Some dataset', lapisFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateTo }, }, { displayName: 'Other dataset', lapisFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateFrom, dateTo, }, }, ], sequenceType: 'nucleotide', views: ['table', 'venn'], width: '100%', pageSize: 10, }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'nucleotideMutationsSomeDataset', url: NUCLEOTIDE_MUTATIONS_ENDPOINT, body: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateTo, minProportion: 0, }, }, response: { status: 200, body: nucleotideMutationsSomeDataset, }, }, { matcher: { name: 'nucleotideMutationsOtherDataset', url: NUCLEOTIDE_MUTATIONS_ENDPOINT, body: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateFrom, dateTo, minProportion: 0, }, }, response: { status: 200, body: nucleotideMutationsOtherDataset, }, }, ], }, }, play: async ({ canvasElement, step }) => { const canvas = await withinShadowRoot(canvasElement, 'gs-mutation-comparison'); await step('Min and max proportions should be 50% and 100%', async () => { const minInput = () => canvas.getAllByLabelText('%')[0]; const maxInput = () => canvas.getAllByLabelText('%')[1]; await waitFor(() => expect(minInput()).toHaveValue(50)); await waitFor(() => expect(maxInput()).toHaveValue(100)); }); }, }"
|
|
1754
1770
|
},
|
|
1755
1771
|
{
|
|
1756
1772
|
"kind": "variable",
|
|
@@ -1759,6 +1775,14 @@
|
|
|
1759
1775
|
"text": "StoryObj<Required<MutationComparisonProps>>"
|
|
1760
1776
|
},
|
|
1761
1777
|
"default": "{ ...Default, play: async ({ canvasElement, step }) => { const canvas = await withinShadowRoot(canvasElement, 'gs-mutation-comparison'); await step('Switch to Venn diagram view', async () => { await waitFor(() => expect(canvas.getByRole('button', { name: 'Venn' })).toBeInTheDocument()); await fireEvent.click(canvas.getByRole('button', { name: 'Venn' })); await waitFor(() => expect( canvas.getByText('You have no elements selected. Click in the venn diagram to select.'), ).toBeVisible(), ); }); }, }"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"kind": "variable",
|
|
1781
|
+
"name": "WithFixedHeight",
|
|
1782
|
+
"type": {
|
|
1783
|
+
"text": "StoryObj<Required<MutationComparisonProps>>"
|
|
1784
|
+
},
|
|
1785
|
+
"default": "{ ...Default, args: { ...Default.args, height: '700px', }, }"
|
|
1762
1786
|
}
|
|
1763
1787
|
],
|
|
1764
1788
|
"exports": [
|
|
@@ -1785,6 +1809,14 @@
|
|
|
1785
1809
|
"name": "VennDiagram",
|
|
1786
1810
|
"module": "src/web-components/visualization/gs-mutation-comparison.stories.ts"
|
|
1787
1811
|
}
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"kind": "js",
|
|
1815
|
+
"name": "WithFixedHeight",
|
|
1816
|
+
"declaration": {
|
|
1817
|
+
"name": "WithFixedHeight",
|
|
1818
|
+
"module": "src/web-components/visualization/gs-mutation-comparison.stories.ts"
|
|
1819
|
+
}
|
|
1788
1820
|
}
|
|
1789
1821
|
]
|
|
1790
1822
|
},
|
|
@@ -1841,9 +1873,9 @@
|
|
|
1841
1873
|
"kind": "field",
|
|
1842
1874
|
"name": "height",
|
|
1843
1875
|
"type": {
|
|
1844
|
-
"text": "string"
|
|
1876
|
+
"text": "string | undefined"
|
|
1845
1877
|
},
|
|
1846
|
-
"default": "
|
|
1878
|
+
"default": "undefined",
|
|
1847
1879
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
1848
1880
|
"attribute": "height"
|
|
1849
1881
|
},
|
|
@@ -1898,9 +1930,9 @@
|
|
|
1898
1930
|
{
|
|
1899
1931
|
"name": "height",
|
|
1900
1932
|
"type": {
|
|
1901
|
-
"text": "string"
|
|
1933
|
+
"text": "string | undefined"
|
|
1902
1934
|
},
|
|
1903
|
-
"default": "
|
|
1935
|
+
"default": "undefined",
|
|
1904
1936
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
1905
1937
|
"fieldName": "height"
|
|
1906
1938
|
},
|
|
@@ -1951,7 +1983,7 @@
|
|
|
1951
1983
|
"type": {
|
|
1952
1984
|
"text": "Meta<Required<MutationsOverTimeProps>>"
|
|
1953
1985
|
},
|
|
1954
|
-
"default": "{ title: 'Visualization/Mutations over time', component: 'gs-mutations-over-time', argTypes: { lapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, views: { options: ['grid'], control: { type: 'check' }, }, width: { control: 'text' }, height: { control: 'text' }, granularity: { options: ['day', 'week', 'month', 'year'], control: { type: 'radio' }, }, lapisDateField: { control: 'text' }, }, args: { lapisFilter: { pangoLineage: 'JN.1*', dateFrom: '2024-01-15', dateTo: '2024-07-10' }, sequenceType: 'nucleotide', views: ['grid'], width: '100%',
|
|
1986
|
+
"default": "{ title: 'Visualization/Mutations over time', component: 'gs-mutations-over-time', argTypes: { lapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, views: { options: ['grid'], control: { type: 'check' }, }, width: { control: 'text' }, height: { control: 'text' }, granularity: { options: ['day', 'week', 'month', 'year'], control: { type: 'radio' }, }, lapisDateField: { control: 'text' }, }, args: { lapisFilter: { pangoLineage: 'JN.1*', dateFrom: '2024-01-15', dateTo: '2024-07-10' }, sequenceType: 'nucleotide', views: ['grid'], width: '100%', granularity: 'month', lapisDateField: 'date', }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, fetchMock: {}, }), tags: ['autodocs'], }"
|
|
1955
1987
|
},
|
|
1956
1988
|
{
|
|
1957
1989
|
"kind": "variable",
|
|
@@ -1984,6 +2016,14 @@
|
|
|
1984
2016
|
"text": "StoryObj<Required<MutationsOverTimeProps>>"
|
|
1985
2017
|
},
|
|
1986
2018
|
"default": "{ ...ByMonth, args: { ...ByMonth.args, width: '300px', }, }"
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"kind": "variable",
|
|
2022
|
+
"name": "WithFixedHeight",
|
|
2023
|
+
"type": {
|
|
2024
|
+
"text": "StoryObj<Required<MutationsOverTimeProps>>"
|
|
2025
|
+
},
|
|
2026
|
+
"default": "{ ...Template, args: { ...Template, height: '700px', }, }"
|
|
1987
2027
|
}
|
|
1988
2028
|
],
|
|
1989
2029
|
"exports": [
|
|
@@ -2026,6 +2066,14 @@
|
|
|
2026
2066
|
"name": "HideProportionOnSmallScreen",
|
|
2027
2067
|
"module": "src/web-components/visualization/gs-mutations-over-time.stories.ts"
|
|
2028
2068
|
}
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"kind": "js",
|
|
2072
|
+
"name": "WithFixedHeight",
|
|
2073
|
+
"declaration": {
|
|
2074
|
+
"name": "WithFixedHeight",
|
|
2075
|
+
"module": "src/web-components/visualization/gs-mutations-over-time.stories.ts"
|
|
2076
|
+
}
|
|
2029
2077
|
}
|
|
2030
2078
|
]
|
|
2031
2079
|
},
|
|
@@ -2082,9 +2130,9 @@
|
|
|
2082
2130
|
"kind": "field",
|
|
2083
2131
|
"name": "height",
|
|
2084
2132
|
"type": {
|
|
2085
|
-
"text": "string"
|
|
2133
|
+
"text": "string | undefined"
|
|
2086
2134
|
},
|
|
2087
|
-
"default": "
|
|
2135
|
+
"default": "undefined",
|
|
2088
2136
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
2089
2137
|
"attribute": "height"
|
|
2090
2138
|
},
|
|
@@ -2149,9 +2197,9 @@
|
|
|
2149
2197
|
{
|
|
2150
2198
|
"name": "height",
|
|
2151
2199
|
"type": {
|
|
2152
|
-
"text": "string"
|
|
2200
|
+
"text": "string | undefined"
|
|
2153
2201
|
},
|
|
2154
|
-
"default": "
|
|
2202
|
+
"default": "undefined",
|
|
2155
2203
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
2156
2204
|
"fieldName": "height"
|
|
2157
2205
|
},
|
|
@@ -2211,7 +2259,7 @@
|
|
|
2211
2259
|
"type": {
|
|
2212
2260
|
"text": "Meta<Required<MutationsProps>>"
|
|
2213
2261
|
},
|
|
2214
|
-
"default": "{ title: 'Visualization/Mutations', component: 'gs-mutations', argTypes: { lapisFilter: { control: 'object' }, baselineLapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, views: { options: ['table', 'grid', 'insertions'], control: { type: 'check' }, }, width: { control: 'text' }, height: { control: 'text' }, pageSize: { control: 'object' }, }, args: { lapisFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateTo: '2022-01-01' }, baselineLapisFilter: { country: 'Switzerland', dateTo: '2022-01-01' }, sequenceType: 'nucleotide', views: ['grid', 'table', 'insertions'], width: '100%',
|
|
2262
|
+
"default": "{ title: 'Visualization/Mutations', component: 'gs-mutations', argTypes: { lapisFilter: { control: 'object' }, baselineLapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, views: { options: ['table', 'grid', 'insertions'], control: { type: 'check' }, }, width: { control: 'text' }, height: { control: 'text' }, pageSize: { control: 'object' }, }, args: { lapisFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateTo: '2022-01-01' }, baselineLapisFilter: { country: 'Switzerland', dateTo: '2022-01-01' }, sequenceType: 'nucleotide', views: ['grid', 'table', 'insertions'], width: '100%', pageSize: 10, }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), tags: ['autodocs'], }"
|
|
2215
2263
|
},
|
|
2216
2264
|
{
|
|
2217
2265
|
"kind": "variable",
|
|
@@ -2244,6 +2292,14 @@
|
|
|
2244
2292
|
"text": "StoryObj<Required<MutationsProps>>"
|
|
2245
2293
|
},
|
|
2246
2294
|
"default": "{ ...Default, play: async ({ canvasElement }) => { const canvas = await withinShadowRoot(canvasElement, 'gs-mutations'); await waitFor(() => expect(canvas.getByRole('button', { name: 'Insertions' })).toBeInTheDocument()); await fireEvent.click(canvas.getByRole('button', { name: 'Insertions' })); }, }"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"kind": "variable",
|
|
2298
|
+
"name": "WithFixedHeight",
|
|
2299
|
+
"type": {
|
|
2300
|
+
"text": "StoryObj<Required<MutationsProps>>"
|
|
2301
|
+
},
|
|
2302
|
+
"default": "{ ...Default, args: { ...Default.args, height: '700px', }, }"
|
|
2247
2303
|
}
|
|
2248
2304
|
],
|
|
2249
2305
|
"exports": [
|
|
@@ -2286,6 +2342,14 @@
|
|
|
2286
2342
|
"name": "OnInsertionsTab",
|
|
2287
2343
|
"module": "src/web-components/visualization/gs-mutations.stories.ts"
|
|
2288
2344
|
}
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"kind": "js",
|
|
2348
|
+
"name": "WithFixedHeight",
|
|
2349
|
+
"declaration": {
|
|
2350
|
+
"name": "WithFixedHeight",
|
|
2351
|
+
"module": "src/web-components/visualization/gs-mutations.stories.ts"
|
|
2352
|
+
}
|
|
2289
2353
|
}
|
|
2290
2354
|
]
|
|
2291
2355
|
},
|
|
@@ -2352,9 +2416,9 @@
|
|
|
2352
2416
|
"kind": "field",
|
|
2353
2417
|
"name": "height",
|
|
2354
2418
|
"type": {
|
|
2355
|
-
"text": "string"
|
|
2419
|
+
"text": "string | undefined"
|
|
2356
2420
|
},
|
|
2357
|
-
"default": "
|
|
2421
|
+
"default": "undefined",
|
|
2358
2422
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
2359
2423
|
"attribute": "height"
|
|
2360
2424
|
},
|
|
@@ -2418,9 +2482,9 @@
|
|
|
2418
2482
|
{
|
|
2419
2483
|
"name": "height",
|
|
2420
2484
|
"type": {
|
|
2421
|
-
"text": "string"
|
|
2485
|
+
"text": "string | undefined"
|
|
2422
2486
|
},
|
|
2423
|
-
"default": "
|
|
2487
|
+
"default": "undefined",
|
|
2424
2488
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
2425
2489
|
"fieldName": "height"
|
|
2426
2490
|
},
|
|
@@ -2471,7 +2535,7 @@
|
|
|
2471
2535
|
"type": {
|
|
2472
2536
|
"text": "Meta<NumberSequencesOverTimeProps>"
|
|
2473
2537
|
},
|
|
2474
|
-
"default": "{ title: 'Visualization/Number sequences over time', component: 'gs-number-sequences-over-time', argTypes: { granularity: { options: ['day', 'week', 'month', 'year'], control: { type: 'radio' }, }, views: { options: ['bar', 'line', 'table'], control: { type: 'check' }, }, pageSize: { control: 'object' }, }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), tags: ['autodocs'], }"
|
|
2538
|
+
"default": "{ title: 'Visualization/Number sequences over time', component: 'gs-number-sequences-over-time', argTypes: { granularity: { options: ['day', 'week', 'month', 'year'], control: { type: 'radio' }, }, views: { options: ['bar', 'line', 'table'], control: { type: 'check' }, }, pageSize: { control: 'object' }, height: { control: 'text', }, }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), tags: ['autodocs'], }"
|
|
2475
2539
|
},
|
|
2476
2540
|
{
|
|
2477
2541
|
"kind": "variable",
|
|
@@ -2512,6 +2576,14 @@
|
|
|
2512
2576
|
"text": "StoryObj<NumberSequencesOverTimeProps>"
|
|
2513
2577
|
},
|
|
2514
2578
|
"default": "{ ...Template, args: { ...Template.args, lapisFilters: [ { displayName: 'XBB', lapisFilter: { country: 'USA', pangoLineage: 'XBB*', dateFrom: '2022-01-01', dateTo: '2022-12-31' }, }, { displayName: 'JN.1', lapisFilter: { country: 'USA', pangoLineage: 'JN.1*', dateFrom: '2023-01-01' } }, ], }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'aggregatedEG', url: AGGREGATED_ENDPOINT, body: { country: 'USA', pangoLineage: 'XBB*', dateFrom: '2022-01-01', dateTo: '2022-12-31', fields: ['date'], }, }, response: { status: 200, body: twoVariantsXBB, }, }, { matcher: { name: 'aggregatedJN.1', url: AGGREGATED_ENDPOINT, body: { country: 'USA', pangoLineage: 'JN.1*', dateFrom: '2023-01-01', fields: ['date'], }, }, response: { status: 200, body: twoVariantsJN1, }, }, ], }, }, }"
|
|
2579
|
+
},
|
|
2580
|
+
{
|
|
2581
|
+
"kind": "variable",
|
|
2582
|
+
"name": "WithFixedHeight",
|
|
2583
|
+
"type": {
|
|
2584
|
+
"text": "StoryObj<NumberSequencesOverTimeProps>"
|
|
2585
|
+
},
|
|
2586
|
+
"default": "{ ...Template, args: { ...Template.args, height: '700px', }, }"
|
|
2515
2587
|
}
|
|
2516
2588
|
],
|
|
2517
2589
|
"exports": [
|
|
@@ -2562,6 +2634,14 @@
|
|
|
2562
2634
|
"name": "TwoDatasetsWithNonOverlappingDates",
|
|
2563
2635
|
"module": "src/web-components/visualization/gs-number-sequences-over-time.stories.ts"
|
|
2564
2636
|
}
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"kind": "js",
|
|
2640
|
+
"name": "WithFixedHeight",
|
|
2641
|
+
"declaration": {
|
|
2642
|
+
"name": "WithFixedHeight",
|
|
2643
|
+
"module": "src/web-components/visualization/gs-number-sequences-over-time.stories.ts"
|
|
2644
|
+
}
|
|
2565
2645
|
}
|
|
2566
2646
|
]
|
|
2567
2647
|
},
|
|
@@ -2618,9 +2698,9 @@
|
|
|
2618
2698
|
"kind": "field",
|
|
2619
2699
|
"name": "height",
|
|
2620
2700
|
"type": {
|
|
2621
|
-
"text": "string"
|
|
2701
|
+
"text": "string | undefined"
|
|
2622
2702
|
},
|
|
2623
|
-
"default": "
|
|
2703
|
+
"default": "undefined",
|
|
2624
2704
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
2625
2705
|
"attribute": "height"
|
|
2626
2706
|
},
|
|
@@ -2695,9 +2775,9 @@
|
|
|
2695
2775
|
{
|
|
2696
2776
|
"name": "height",
|
|
2697
2777
|
"type": {
|
|
2698
|
-
"text": "string"
|
|
2778
|
+
"text": "string | undefined"
|
|
2699
2779
|
},
|
|
2700
|
-
"default": "
|
|
2780
|
+
"default": "undefined",
|
|
2701
2781
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
2702
2782
|
"fieldName": "height"
|
|
2703
2783
|
},
|
|
@@ -2774,7 +2854,7 @@
|
|
|
2774
2854
|
"type": {
|
|
2775
2855
|
"text": "StoryObj<Required<PrevalenceOverTimeProps>>"
|
|
2776
2856
|
},
|
|
2777
|
-
"default": "{ ...Template, args: { numeratorFilters: [ { displayName: 'EG', lapisFilter: { country: 'USA', pangoLineage: 'EG*', dateFrom: '2023-01-01' } }, { displayName: 'JN.1', lapisFilter: { country: 'USA', pangoLineage: 'JN.1*', dateFrom: '2023-01-01' } }, ], denominatorFilter: { country: 'USA', dateFrom: '2023-01-01' }, granularity: 'month', smoothingWindow: 0, views: ['bar', 'line', 'bubble', 'table'], confidenceIntervalMethods: ['wilson'], width: '100%',
|
|
2857
|
+
"default": "{ ...Template, args: { numeratorFilters: [ { displayName: 'EG', lapisFilter: { country: 'USA', pangoLineage: 'EG*', dateFrom: '2023-01-01' } }, { displayName: 'JN.1', lapisFilter: { country: 'USA', pangoLineage: 'JN.1*', dateFrom: '2023-01-01' } }, ], denominatorFilter: { country: 'USA', dateFrom: '2023-01-01' }, granularity: 'month', smoothingWindow: 0, views: ['bar', 'line', 'bubble', 'table'], confidenceIntervalMethods: ['wilson'], width: '100%', lapisDateField: 'date', pageSize: 10, yAxisMaxLinear: 1, yAxisMaxLogarithmic: 'limitTo1', }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'numeratorEG', url: AGGREGATED_ENDPOINT, body: { country: 'USA', pangoLineage: 'EG*', dateFrom: '2023-01-01', fields: ['date'], }, }, response: { status: 200, body: numeratorFilterEG, }, }, { matcher: { name: 'numeratorJN1', url: AGGREGATED_ENDPOINT, body: { country: 'USA', pangoLineage: 'JN.1*', dateFrom: '2023-01-01', fields: ['date'], }, }, response: { status: 200, body: numeratorFilterJN1, }, }, { matcher: { name: 'denominator', url: AGGREGATED_ENDPOINT, body: { country: 'USA', dateFrom: '2023-01-01', fields: ['date'], }, }, response: { status: 200, body: denominatorFilter, }, }, ], }, }, }"
|
|
2778
2858
|
},
|
|
2779
2859
|
{
|
|
2780
2860
|
"kind": "variable",
|
|
@@ -2782,7 +2862,7 @@
|
|
|
2782
2862
|
"type": {
|
|
2783
2863
|
"text": "StoryObj<Required<PrevalenceOverTimeProps>>"
|
|
2784
2864
|
},
|
|
2785
|
-
"default": "{ ...Template, args: { numeratorFilters: [ { displayName: 'EG', lapisFilter: { country: 'USA', pangoLineage: 'BA.2.86*', dateFrom: '2023-10-01' }, }, ], denominatorFilter: { country: 'USA', dateFrom: '2023-10-01' }, granularity: 'week', smoothingWindow: 2, views: ['bar', 'line', 'bubble', 'table'], confidenceIntervalMethods: ['wilson'], width: '100%',
|
|
2865
|
+
"default": "{ ...Template, args: { numeratorFilters: [ { displayName: 'EG', lapisFilter: { country: 'USA', pangoLineage: 'BA.2.86*', dateFrom: '2023-10-01' }, }, ], denominatorFilter: { country: 'USA', dateFrom: '2023-10-01' }, granularity: 'week', smoothingWindow: 2, views: ['bar', 'line', 'bubble', 'table'], confidenceIntervalMethods: ['wilson'], width: '100%', lapisDateField: 'date', pageSize: 10, yAxisMaxLinear: 1, yAxisMaxLogarithmic: 'limitTo1', }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'numeratorOneDataset', url: AGGREGATED_ENDPOINT, body: { country: 'USA', pangoLineage: 'BA.2.86*', dateFrom: '2023-10-01', fields: ['date'], }, }, response: { status: 200, body: numeratorFilterOneDataset, }, }, { matcher: { name: 'denominatorOneDataset', url: AGGREGATED_ENDPOINT, body: { country: 'USA', dateFrom: '2023-10-01', fields: ['date'], }, }, response: { status: 200, body: denominatorFilterOneDataset, }, }, ], }, }, }"
|
|
2786
2866
|
},
|
|
2787
2867
|
{
|
|
2788
2868
|
"kind": "variable",
|
|
@@ -2807,6 +2887,14 @@
|
|
|
2807
2887
|
"text": "StoryObj<Required<PrevalenceOverTimeProps>>"
|
|
2808
2888
|
},
|
|
2809
2889
|
"default": "{ ...OneDataset, play: async ({ canvasElement }) => { const canvas = await withinShadowRoot(canvasElement, 'gs-prevalence-over-time'); await waitFor(() => expect(canvas.getByRole('button', { name: 'Table' })).toBeInTheDocument()); await fireEvent.click(canvas.getByRole('button', { name: 'Table' })); }, }"
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
"kind": "variable",
|
|
2893
|
+
"name": "WithFixedHeight",
|
|
2894
|
+
"type": {
|
|
2895
|
+
"text": "StoryObj<Required<PrevalenceOverTimeProps>>"
|
|
2896
|
+
},
|
|
2897
|
+
"default": "{ ...TwoDatasets, args: { ...TwoDatasets.args, height: '700px', }, }"
|
|
2810
2898
|
}
|
|
2811
2899
|
],
|
|
2812
2900
|
"exports": [
|
|
@@ -2857,6 +2945,14 @@
|
|
|
2857
2945
|
"name": "OneDatasetOnTableTab",
|
|
2858
2946
|
"module": "src/web-components/visualization/gs-prevalence-over-time.stories.ts"
|
|
2859
2947
|
}
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
"kind": "js",
|
|
2951
|
+
"name": "WithFixedHeight",
|
|
2952
|
+
"declaration": {
|
|
2953
|
+
"name": "WithFixedHeight",
|
|
2954
|
+
"module": "src/web-components/visualization/gs-prevalence-over-time.stories.ts"
|
|
2955
|
+
}
|
|
2860
2956
|
}
|
|
2861
2957
|
]
|
|
2862
2958
|
},
|
|
@@ -2943,9 +3039,9 @@
|
|
|
2943
3039
|
"kind": "field",
|
|
2944
3040
|
"name": "height",
|
|
2945
3041
|
"type": {
|
|
2946
|
-
"text": "string"
|
|
3042
|
+
"text": "string | undefined"
|
|
2947
3043
|
},
|
|
2948
|
-
"default": "
|
|
3044
|
+
"default": "undefined",
|
|
2949
3045
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
2950
3046
|
"attribute": "height"
|
|
2951
3047
|
},
|
|
@@ -3057,9 +3153,9 @@
|
|
|
3057
3153
|
{
|
|
3058
3154
|
"name": "height",
|
|
3059
3155
|
"type": {
|
|
3060
|
-
"text": "string"
|
|
3156
|
+
"text": "string | undefined"
|
|
3061
3157
|
},
|
|
3062
|
-
"default": "
|
|
3158
|
+
"default": "undefined",
|
|
3063
3159
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
3064
3160
|
"fieldName": "height"
|
|
3065
3161
|
},
|
|
@@ -3145,7 +3241,15 @@
|
|
|
3145
3241
|
"type": {
|
|
3146
3242
|
"text": "StoryObj<Required<RelativeGrowthAdvantageProps>>"
|
|
3147
3243
|
},
|
|
3148
|
-
"default": "{ ...Template, args: { numeratorFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateFrom: '2020-12-01', dateTo: '2021-03-01', }, denominatorFilter: { country: 'Switzerland', dateFrom: '2020-12-01', dateTo: '2021-03-01' }, generationTime: 7, views: ['line'], width: '100%',
|
|
3244
|
+
"default": "{ ...Template, args: { numeratorFilter: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateFrom: '2020-12-01', dateTo: '2021-03-01', }, denominatorFilter: { country: 'Switzerland', dateFrom: '2020-12-01', dateTo: '2021-03-01' }, generationTime: 7, views: ['line'], width: '100%', lapisDateField: 'date', yAxisMaxLinear: 1, yAxisMaxLogarithmic: 'limitTo1', }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'numeratorFilter', url: AGGREGATED_ENDPOINT, body: { country: 'Switzerland', pangoLineage: 'B.1.1.7', dateFrom: '2020-12-01', dateTo: '2021-03-01', fields: ['date'], }, }, response: { status: 200, body: numeratorFilter, }, }, { matcher: { name: 'denominatorFilter', url: AGGREGATED_ENDPOINT, body: { country: 'Switzerland', dateFrom: '2020-12-01', dateTo: '2021-03-01', fields: ['date'], }, }, response: { status: 200, body: denominatorFilter, }, }, ], }, }, }"
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
"kind": "variable",
|
|
3248
|
+
"name": "WithFixedHeight",
|
|
3249
|
+
"type": {
|
|
3250
|
+
"text": "StoryObj<Required<RelativeGrowthAdvantageProps>>"
|
|
3251
|
+
},
|
|
3252
|
+
"default": "{ ...Default, args: { ...Default.args, height: '700px', }, }"
|
|
3149
3253
|
}
|
|
3150
3254
|
],
|
|
3151
3255
|
"exports": [
|
|
@@ -3164,6 +3268,14 @@
|
|
|
3164
3268
|
"name": "Default",
|
|
3165
3269
|
"module": "src/web-components/visualization/gs-relative-growth-advantage.stories.ts"
|
|
3166
3270
|
}
|
|
3271
|
+
},
|
|
3272
|
+
{
|
|
3273
|
+
"kind": "js",
|
|
3274
|
+
"name": "WithFixedHeight",
|
|
3275
|
+
"declaration": {
|
|
3276
|
+
"name": "WithFixedHeight",
|
|
3277
|
+
"module": "src/web-components/visualization/gs-relative-growth-advantage.stories.ts"
|
|
3278
|
+
}
|
|
3167
3279
|
}
|
|
3168
3280
|
]
|
|
3169
3281
|
},
|
|
@@ -3230,9 +3342,9 @@
|
|
|
3230
3342
|
"kind": "field",
|
|
3231
3343
|
"name": "height",
|
|
3232
3344
|
"type": {
|
|
3233
|
-
"text": "string"
|
|
3345
|
+
"text": "string | undefined"
|
|
3234
3346
|
},
|
|
3235
|
-
"default": "
|
|
3347
|
+
"default": "undefined",
|
|
3236
3348
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
3237
3349
|
"attribute": "height"
|
|
3238
3350
|
},
|
|
@@ -3316,9 +3428,9 @@
|
|
|
3316
3428
|
{
|
|
3317
3429
|
"name": "height",
|
|
3318
3430
|
"type": {
|
|
3319
|
-
"text": "string"
|
|
3431
|
+
"text": "string | undefined"
|
|
3320
3432
|
},
|
|
3321
|
-
"default": "
|
|
3433
|
+
"default": "undefined",
|
|
3322
3434
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
3323
3435
|
"fieldName": "height"
|
|
3324
3436
|
},
|
|
@@ -3419,7 +3531,15 @@
|
|
|
3419
3531
|
"type": {
|
|
3420
3532
|
"text": "StoryObj<SequencesByLocationProps>"
|
|
3421
3533
|
},
|
|
3422
|
-
"default": "{ render: (args) => html` <gs-app lapis=\"${LAPIS_URL}\"> <gs-sequences-by-location .lapisFilter=${args.lapisFilter} .lapisLocationField=${args.lapisLocationField} .width=${args.width} .height=${args.height} .views=${args.views} .pageSize=${args.pageSize} ></gs-sequences-by-location> </gs-app> `, args: { lapisFilter: { dateFrom: '2022-01-01', dateTo: '2022-04-01', country: 'Germany' }, lapisLocationField: 'division', width: '100%',
|
|
3534
|
+
"default": "{ render: (args) => html` <gs-app lapis=\"${LAPIS_URL}\"> <gs-sequences-by-location .lapisFilter=${args.lapisFilter} .lapisLocationField=${args.lapisLocationField} .width=${args.width} .height=${args.height} .views=${args.views} .pageSize=${args.pageSize} ></gs-sequences-by-location> </gs-app> `, args: { lapisFilter: { dateFrom: '2022-01-01', dateTo: '2022-04-01', country: 'Germany' }, lapisLocationField: 'division', width: '100%', views: ['table'], pageSize: 10, }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'aggregatedData', url: AGGREGATED_ENDPOINT, body: { fields: ['division'], dateFrom: '2022-01-01', dateTo: '2022-04-01', country: 'Germany', }, }, response: { status: 200, body: aggregatedGermany, }, }, ], }, }, }"
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"kind": "variable",
|
|
3538
|
+
"name": "WithFixedHeight",
|
|
3539
|
+
"type": {
|
|
3540
|
+
"text": "StoryObj<SequencesByLocationProps>"
|
|
3541
|
+
},
|
|
3542
|
+
"default": "{ ...WorldMap, args: { ...WorldMap.args, height: '700px', }, }"
|
|
3423
3543
|
}
|
|
3424
3544
|
],
|
|
3425
3545
|
"exports": [
|
|
@@ -3462,6 +3582,14 @@
|
|
|
3462
3582
|
"name": "GermanyTableOnly",
|
|
3463
3583
|
"module": "src/web-components/visualization/gs-sequences-by-location.stories.ts"
|
|
3464
3584
|
}
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"kind": "js",
|
|
3588
|
+
"name": "WithFixedHeight",
|
|
3589
|
+
"declaration": {
|
|
3590
|
+
"name": "WithFixedHeight",
|
|
3591
|
+
"module": "src/web-components/visualization/gs-sequences-by-location.stories.ts"
|
|
3592
|
+
}
|
|
3465
3593
|
}
|
|
3466
3594
|
]
|
|
3467
3595
|
},
|
|
@@ -3528,9 +3656,9 @@
|
|
|
3528
3656
|
"kind": "field",
|
|
3529
3657
|
"name": "height",
|
|
3530
3658
|
"type": {
|
|
3531
|
-
"text": "string"
|
|
3659
|
+
"text": "string | undefined"
|
|
3532
3660
|
},
|
|
3533
|
-
"default": "
|
|
3661
|
+
"default": "undefined",
|
|
3534
3662
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
3535
3663
|
"attribute": "height"
|
|
3536
3664
|
},
|
|
@@ -3634,9 +3762,9 @@
|
|
|
3634
3762
|
{
|
|
3635
3763
|
"name": "height",
|
|
3636
3764
|
"type": {
|
|
3637
|
-
"text": "string"
|
|
3765
|
+
"text": "string | undefined"
|
|
3638
3766
|
},
|
|
3639
|
-
"default": "
|
|
3767
|
+
"default": "undefined",
|
|
3640
3768
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
3641
3769
|
"fieldName": "height"
|
|
3642
3770
|
},
|
|
@@ -3731,7 +3859,7 @@
|
|
|
3731
3859
|
"type": {
|
|
3732
3860
|
"text": "StoryObj<Required<StatisticsProps>>"
|
|
3733
3861
|
},
|
|
3734
|
-
"default": "{ render: (args) => html` <gs-app lapis=\"${LAPIS_URL}\"> <gs-statistics .numeratorFilter=${args.numeratorFilter} .denominatorFilter=${args.denominatorFilter} .width=${args.width} .height=${args.height} ></gs-statistics> </gs-app> `, args: { denominatorFilter: { country: 'USA', }, numeratorFilter: { country: 'USA', division: 'Alabama', }, width: '100%',
|
|
3862
|
+
"default": "{ render: (args) => html` <gs-app lapis=\"${LAPIS_URL}\"> <gs-statistics .numeratorFilter=${args.numeratorFilter} .denominatorFilter=${args.denominatorFilter} .width=${args.width} .height=${args.height} ></gs-statistics> </gs-app> `, args: { denominatorFilter: { country: 'USA', }, numeratorFilter: { country: 'USA', division: 'Alabama', }, width: '100%', }, }"
|
|
3735
3863
|
}
|
|
3736
3864
|
],
|
|
3737
3865
|
"exports": [
|
|
@@ -3796,9 +3924,9 @@
|
|
|
3796
3924
|
"kind": "field",
|
|
3797
3925
|
"name": "height",
|
|
3798
3926
|
"type": {
|
|
3799
|
-
"text": "string"
|
|
3927
|
+
"text": "string | undefined"
|
|
3800
3928
|
},
|
|
3801
|
-
"default": "
|
|
3929
|
+
"default": "undefined",
|
|
3802
3930
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
3803
3931
|
"attribute": "height"
|
|
3804
3932
|
}
|
|
@@ -3834,9 +3962,9 @@
|
|
|
3834
3962
|
{
|
|
3835
3963
|
"name": "height",
|
|
3836
3964
|
"type": {
|
|
3837
|
-
"text": "string"
|
|
3965
|
+
"text": "string | undefined"
|
|
3838
3966
|
},
|
|
3839
|
-
"default": "
|
|
3967
|
+
"default": "undefined",
|
|
3840
3968
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
3841
3969
|
"fieldName": "height"
|
|
3842
3970
|
}
|
|
@@ -3957,7 +4085,7 @@
|
|
|
3957
4085
|
"type": {
|
|
3958
4086
|
"text": "Meta<WastewaterMutationsOverTimeProps & { infoText: string }>"
|
|
3959
4087
|
},
|
|
3960
|
-
"default": "{ title: 'Wastewater visualization/Wastewater mutations over time', component: 'gs-wastewater-mutations-over-time', argTypes: { lapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, width: { control: 'text' }, height: { control: 'text' }, }, args: { lapisFilter: { versionStatus: 'LATEST_VERSION', isRevocation: false }, sequenceType: 'nucleotide', width: '100%', height:
|
|
4088
|
+
"default": "{ title: 'Wastewater visualization/Wastewater mutations over time', component: 'gs-wastewater-mutations-over-time', argTypes: { lapisFilter: { control: 'object' }, sequenceType: { options: ['nucleotide', 'amino acid'], control: { type: 'radio' }, }, width: { control: 'text' }, height: { control: 'text' }, }, args: { lapisFilter: { versionStatus: 'LATEST_VERSION', isRevocation: false }, sequenceType: 'nucleotide', width: '100%', height: undefined, infoText: 'Some info text', maxNumberOfGridRows: 100, }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, fetchMock: {}, }), tags: ['autodocs'], }"
|
|
3961
4089
|
},
|
|
3962
4090
|
{
|
|
3963
4091
|
"kind": "variable",
|
|
@@ -3966,6 +4094,14 @@
|
|
|
3966
4094
|
"text": "StoryObj<WastewaterMutationsOverTimeProps & { infoText: string }>"
|
|
3967
4095
|
},
|
|
3968
4096
|
"default": "{ render: (args) => html` <gs-app lapis=\"${WISE_LAPIS_URL}\"> <gs-wastewater-mutations-over-time .lapisFilter=${args.lapisFilter} .sequenceType=${args.sequenceType} .width=${args.width} .height=${args.height} .maxNumberOfGridRows=${args.maxNumberOfGridRows} > <span slot=\"infoText\">${args.infoText}</span> </gs-wastewater-mutations-over-time> </gs-app> `, parameters: { fetchMock: { mocks: [ { matcher: { name: 'details', url: WISE_DETAILS_ENDPOINT, body: { fields: ['date', 'location', 'nucleotideMutationFrequency', 'aminoAcidMutationFrequency'], versionStatus: 'LATEST_VERSION', isRevocation: false, }, }, response: { status: 200, body: details, }, }, ], }, }, }"
|
|
4097
|
+
},
|
|
4098
|
+
{
|
|
4099
|
+
"kind": "variable",
|
|
4100
|
+
"name": "WithFixedHeight",
|
|
4101
|
+
"type": {
|
|
4102
|
+
"text": "StoryObj<WastewaterMutationsOverTimeProps & { infoText: string }>"
|
|
4103
|
+
},
|
|
4104
|
+
"default": "{ ...WastewaterMutationsOverTime, args: { ...WastewaterMutationsOverTime.args, height: '700px', }, }"
|
|
3969
4105
|
}
|
|
3970
4106
|
],
|
|
3971
4107
|
"exports": [
|
|
@@ -3984,6 +4120,14 @@
|
|
|
3984
4120
|
"name": "WastewaterMutationsOverTime",
|
|
3985
4121
|
"module": "src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.stories.ts"
|
|
3986
4122
|
}
|
|
4123
|
+
},
|
|
4124
|
+
{
|
|
4125
|
+
"kind": "js",
|
|
4126
|
+
"name": "WithFixedHeight",
|
|
4127
|
+
"declaration": {
|
|
4128
|
+
"name": "WithFixedHeight",
|
|
4129
|
+
"module": "src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.stories.ts"
|
|
4130
|
+
}
|
|
3987
4131
|
}
|
|
3988
4132
|
]
|
|
3989
4133
|
},
|
|
@@ -4036,9 +4180,9 @@
|
|
|
4036
4180
|
"kind": "field",
|
|
4037
4181
|
"name": "height",
|
|
4038
4182
|
"type": {
|
|
4039
|
-
"text": "string"
|
|
4183
|
+
"text": "string | undefined"
|
|
4040
4184
|
},
|
|
4041
|
-
"default": "
|
|
4185
|
+
"default": "undefined",
|
|
4042
4186
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
4043
4187
|
"attribute": "height"
|
|
4044
4188
|
},
|
|
@@ -4084,9 +4228,9 @@
|
|
|
4084
4228
|
{
|
|
4085
4229
|
"name": "height",
|
|
4086
4230
|
"type": {
|
|
4087
|
-
"text": "string"
|
|
4231
|
+
"text": "string | undefined"
|
|
4088
4232
|
},
|
|
4089
|
-
"default": "
|
|
4233
|
+
"default": "undefined",
|
|
4090
4234
|
"description": "The height of the component.\n\nVisit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.",
|
|
4091
4235
|
"fieldName": "height"
|
|
4092
4236
|
},
|