@genspectrum/dashboard-components 0.6.6 → 0.6.8
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 +16 -0
- package/dist/dashboard-components.js +226 -145
- package/dist/dashboard-components.js.map +1 -1
- package/dist/style.css +42 -6
- package/package.json +1 -1
- package/src/preact/aggregatedData/aggregate.tsx +1 -1
- package/src/preact/components/color-scale-selector-dropdown.stories.tsx +27 -0
- package/src/preact/components/color-scale-selector-dropdown.tsx +17 -0
- package/src/preact/components/color-scale-selector.stories.tsx +61 -0
- package/src/preact/components/color-scale-selector.tsx +79 -0
- package/src/preact/components/info.stories.tsx +37 -10
- package/src/preact/components/info.tsx +22 -43
- package/src/preact/components/min-max-range-slider.tsx +1 -1
- package/src/preact/components/tooltip.tsx +2 -2
- package/src/preact/mutationComparison/mutation-comparison.tsx +1 -1
- package/src/preact/mutationFilter/mutation-filter-info.tsx +1 -1
- package/src/preact/mutationFilter/mutation-filter.stories.tsx +1 -1
- package/src/preact/mutationFilter/mutation-filter.tsx +2 -3
- package/src/preact/mutations/mutations.tsx +1 -1
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +61 -35
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +34 -15
- package/src/preact/numberSequencesOverTime/number-sequences-over-time.tsx +1 -1
- package/src/preact/prevalenceOverTime/prevalence-over-time.tsx +1 -1
- package/src/preact/shared/charts/colors.ts +1 -1
- package/src/preact/shared/sort/sortSubstitutionsAndDeletions.spec.ts +1 -1
- package/src/preact/shared/sort/sortSubstitutionsAndDeletions.ts +1 -1
- package/src/web-components/visualization/gs-mutations-over-time.stories.ts +8 -0
- package/src/preact/shared/icons/DeleteIcon.tsx +0 -17
package/custom-elements.json
CHANGED
|
@@ -1812,6 +1812,14 @@
|
|
|
1812
1812
|
"text": "StoryObj<Required<MutationsOverTimeProps>>"
|
|
1813
1813
|
},
|
|
1814
1814
|
"default": "{ ...Template, args: { ...Template.args, lapisFilter: { pangoLineage: 'JN.1*', dateFrom: '2024-01-20', dateTo: '2024-01-26' }, granularity: 'day', sequenceType: 'amino acid', }, parameters: { fetchMock: { mocks: [ { matcher: { name: 'aggregated_byDay', url: AGGREGATED_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-20', dateTo: '2024-01-26', fields: ['date'] }, }, response: { status: 200, body: aggregated_byDay, }, }, { matcher: { name: 'aminoAcidMutations_20_01_2024', url: AMINO_ACID_MUTATIONS_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-20', dateTo: '2024-01-20', minProportion: 0.001, }, }, response: { status: 200, body: aminoAcidMutations_20_01_2024, }, }, { matcher: { name: 'aminoAcidMutations_21_01_2024', url: AMINO_ACID_MUTATIONS_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-21', dateTo: '2024-01-21', minProportion: 0.001, }, }, response: { status: 200, body: aminoAcidMutations_21_01_2024, }, }, { matcher: { name: 'aminoAcidMutations_22_01_2024', url: AMINO_ACID_MUTATIONS_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-22', dateTo: '2024-01-22', minProportion: 0.001, }, }, response: { status: 200, body: aminoAcidMutations_22_01_2024, }, }, { matcher: { name: 'aminoAcidMutations_23_01_2024', url: AMINO_ACID_MUTATIONS_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-23', dateTo: '2024-01-23', minProportion: 0.001, }, }, response: { status: 200, body: aminoAcidMutations_23_01_2024, }, }, { matcher: { name: 'aminoAcidMutations_24_01_2024', url: AMINO_ACID_MUTATIONS_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-24', dateTo: '2024-01-24', minProportion: 0.001, }, }, response: { status: 200, body: aminoAcidMutations_24_01_2024, }, }, { matcher: { name: 'aminoAcidMutations_25_01_2024', url: AMINO_ACID_MUTATIONS_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-25', dateTo: '2024-01-25', minProportion: 0.001, }, }, response: { status: 200, body: aminoAcidMutations_25_01_2024, }, }, { matcher: { name: 'aminoAcidMutations_26_01_2024', url: AMINO_ACID_MUTATIONS_ENDPOINT, body: { pangoLineage: 'JN.1*', dateFrom: '2024-01-26', dateTo: '2024-01-26', minProportion: 0.001, }, }, response: { status: 200, body: aminoAcidMutations_26_01_2024, }, }, ], }, }, }"
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"kind": "variable",
|
|
1818
|
+
"name": "HideProportionOnSmallScreen",
|
|
1819
|
+
"type": {
|
|
1820
|
+
"text": "StoryObj<Required<MutationsOverTimeProps>>"
|
|
1821
|
+
},
|
|
1822
|
+
"default": "{ ...ByMonth, args: { ...ByMonth.args, width: '300px', }, }"
|
|
1815
1823
|
}
|
|
1816
1824
|
],
|
|
1817
1825
|
"exports": [
|
|
@@ -1846,6 +1854,14 @@
|
|
|
1846
1854
|
"name": "AminoAcidMutationsByDay",
|
|
1847
1855
|
"module": "src/web-components/visualization/gs-mutations-over-time.stories.ts"
|
|
1848
1856
|
}
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"kind": "js",
|
|
1860
|
+
"name": "HideProportionOnSmallScreen",
|
|
1861
|
+
"declaration": {
|
|
1862
|
+
"name": "HideProportionOnSmallScreen",
|
|
1863
|
+
"module": "src/web-components/visualization/gs-mutations-over-time.stories.ts"
|
|
1864
|
+
}
|
|
1849
1865
|
}
|
|
1850
1866
|
]
|
|
1851
1867
|
},
|