@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.
Files changed (28) hide show
  1. package/custom-elements.json +16 -0
  2. package/dist/dashboard-components.js +226 -145
  3. package/dist/dashboard-components.js.map +1 -1
  4. package/dist/style.css +42 -6
  5. package/package.json +1 -1
  6. package/src/preact/aggregatedData/aggregate.tsx +1 -1
  7. package/src/preact/components/color-scale-selector-dropdown.stories.tsx +27 -0
  8. package/src/preact/components/color-scale-selector-dropdown.tsx +17 -0
  9. package/src/preact/components/color-scale-selector.stories.tsx +61 -0
  10. package/src/preact/components/color-scale-selector.tsx +79 -0
  11. package/src/preact/components/info.stories.tsx +37 -10
  12. package/src/preact/components/info.tsx +22 -43
  13. package/src/preact/components/min-max-range-slider.tsx +1 -1
  14. package/src/preact/components/tooltip.tsx +2 -2
  15. package/src/preact/mutationComparison/mutation-comparison.tsx +1 -1
  16. package/src/preact/mutationFilter/mutation-filter-info.tsx +1 -1
  17. package/src/preact/mutationFilter/mutation-filter.stories.tsx +1 -1
  18. package/src/preact/mutationFilter/mutation-filter.tsx +2 -3
  19. package/src/preact/mutations/mutations.tsx +1 -1
  20. package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +61 -35
  21. package/src/preact/mutationsOverTime/mutations-over-time.tsx +34 -15
  22. package/src/preact/numberSequencesOverTime/number-sequences-over-time.tsx +1 -1
  23. package/src/preact/prevalenceOverTime/prevalence-over-time.tsx +1 -1
  24. package/src/preact/shared/charts/colors.ts +1 -1
  25. package/src/preact/shared/sort/sortSubstitutionsAndDeletions.spec.ts +1 -1
  26. package/src/preact/shared/sort/sortSubstitutionsAndDeletions.ts +1 -1
  27. package/src/web-components/visualization/gs-mutations-over-time.stories.ts +8 -0
  28. package/src/preact/shared/icons/DeleteIcon.tsx +0 -17
@@ -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
  },