@genspectrum/dashboard-components 0.9.0 → 0.10.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.
Files changed (24) hide show
  1. package/custom-elements.json +5 -5
  2. package/dist/assets/{mutationOverTimeWorker-DuWGESoO.js.map → mutationOverTimeWorker-CvZg52rf.js.map} +1 -1
  3. package/dist/components.d.ts +1 -1
  4. package/dist/components.js +66 -36
  5. package/dist/components.js.map +1 -1
  6. package/dist/style.css +2 -2
  7. package/package.json +1 -1
  8. package/src/preact/components/confidence-interval-selector.tsx +1 -1
  9. package/src/preact/components/no-data-display.tsx +2 -2
  10. package/src/preact/mutationFilter/parseMutation.spec.ts +30 -0
  11. package/src/preact/mutationFilter/sequenceTypeFromSegment.ts +3 -2
  12. package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +2 -3
  13. package/src/preact/prevalenceOverTime/prevalence-over-time.stories.tsx +4 -4
  14. package/src/preact/prevalenceOverTime/prevalence-over-time.tsx +11 -1
  15. package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.stories.tsx +91 -0
  16. package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.tsx +6 -0
  17. package/src/query/queryRelativeGrowthAdvantage.ts +61 -24
  18. package/src/utils/mutations.ts +3 -3
  19. package/src/web-components/visualization/gs-prevalence-over-time.stories.ts +1 -1
  20. package/src/web-components/visualization/gs-prevalence-over-time.tsx +2 -2
  21. package/standalone-bundle/assets/{mutationOverTimeWorker-MVSt1FVw.js.map → mutationOverTimeWorker-CypX_PYM.js.map} +1 -1
  22. package/standalone-bundle/dashboard-components.js +2343 -2316
  23. package/standalone-bundle/dashboard-components.js.map +1 -1
  24. package/standalone-bundle/style.css +1 -1
@@ -2573,7 +2573,7 @@
2573
2573
  "type": {
2574
2574
  "text": "Meta<Required<PrevalenceOverTimeProps>>"
2575
2575
  },
2576
- "default": "{ title: 'Visualization/Prevalence over time', component: 'gs-prevalence-over-time', argTypes: { numeratorFilter: { control: 'object' }, denominatorFilter: { control: 'object' }, granularity: { options: ['day', 'week', 'month', 'year'], control: { type: 'radio' }, }, smoothingWindow: { control: 'number' }, views: { options: ['bar', 'line', 'bubble', 'table'], control: { type: 'check' }, }, confidenceIntervalMethods: { options: ['wilson'], control: { type: 'check' }, }, width: { control: 'text' }, height: { control: 'text' }, pageSize: { control: 'object' }, yAxisMaxLinear: { control: 'object' }, yAxisMaxLogarithmic: { control: 'object' }, }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), tags: ['autodocs'], }"
2576
+ "default": "{ title: 'Visualization/Prevalence over time', component: 'gs-prevalence-over-time', argTypes: { numeratorFilter: { control: 'object' }, denominatorFilter: { control: 'object' }, granularity: { options: ['day', 'week', 'month', 'year'], control: { type: 'radio' }, }, smoothingWindow: { control: 'number' }, views: { options: ['bar', 'line', 'bubble', 'table'], control: { type: 'check' }, }, confidenceIntervalMethods: { options: ['none', 'wilson'], control: { type: 'check' }, }, width: { control: 'text' }, height: { control: 'text' }, pageSize: { control: 'object' }, yAxisMaxLinear: { control: 'object' }, yAxisMaxLogarithmic: { control: 'object' }, }, parameters: withComponentDocs({ componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), tags: ['autodocs'], }"
2577
2577
  },
2578
2578
  {
2579
2579
  "kind": "variable",
@@ -2732,8 +2732,8 @@
2732
2732
  "type": {
2733
2733
  "text": "('wilson' | 'none')[]"
2734
2734
  },
2735
- "default": "['wilson']",
2736
- "description": "A list of methods to calculate the confidence interval.\nThe option `none` is always available and disables confidence intervals.\nPass an empty array to disable the confidence interval selector.",
2735
+ "default": "['none', 'wilson']",
2736
+ "description": "A list of methods to calculate the confidence interval.\nPass an empty array to disable the confidence interval selector.\nThe first entry will be selected by default.",
2737
2737
  "attribute": "confidenceIntervalMethods"
2738
2738
  },
2739
2739
  {
@@ -2848,8 +2848,8 @@
2848
2848
  "type": {
2849
2849
  "text": "('wilson' | 'none')[]"
2850
2850
  },
2851
- "default": "['wilson']",
2852
- "description": "A list of methods to calculate the confidence interval.\nThe option `none` is always available and disables confidence intervals.\nPass an empty array to disable the confidence interval selector.",
2851
+ "default": "['none', 'wilson']",
2852
+ "description": "A list of methods to calculate the confidence interval.\nPass an empty array to disable the confidence interval selector.\nThe first entry will be selected by default.",
2853
2853
  "fieldName": "confidenceIntervalMethods"
2854
2854
  },
2855
2855
  {