@genspectrum/dashboard-components 0.6.13 → 0.6.14
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/README.md +29 -0
- package/custom-elements.json +11 -11
- package/dist/dashboard-components.js +8213 -37918
- package/dist/dashboard-components.js.map +1 -1
- package/dist/genspectrum-components.d.ts +7 -7
- package/dist/style.css +1 -1
- package/package.json +7 -6
- package/src/operator/FetchAggregatedOperator.ts +2 -7
- package/src/preact/components/info.tsx +1 -1
- package/src/preact/components/percent-intput.tsx +7 -2
- package/src/preact/components/proportion-selector.tsx +12 -2
- package/src/preact/dateRangeSelector/date-range-selector.tsx +4 -4
- package/src/preact/lineageFilter/lineage-filter.tsx +2 -2
- package/src/preact/locationFilter/location-filter.tsx +2 -2
- package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_01.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_02.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_03.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_04.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_05.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_06.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_07.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_20_01_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_21_01_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_22_01_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_23_01_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_24_01_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_25_01_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_26_01_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_tooManyMutations_total.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_week3_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_week4_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_week5_2024.json +13 -0
- package/src/preact/mutationsOverTime/__mockData__/aggregated_week6_2024.json +13 -0
- package/src/preact/mutationsOverTime/getFilteredMutationsOverTime.spec.ts +56 -8
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +4 -2
- package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +135 -0
- package/src/preact/prevalenceOverTime/prevalence-over-time.tsx +2 -2
- package/src/preact/textInput/text-input.tsx +2 -2
- package/src/query/queryMutationsOverTime.spec.ts +210 -64
- package/src/query/queryMutationsOverTime.ts +10 -2
- package/src/web-components/input/gs-date-range-selector.tsx +24 -4
- package/src/web-components/input/gs-lineage-filter.tsx +15 -1
- package/src/web-components/input/gs-location-filter.tsx +13 -1
- package/src/web-components/input/gs-mutation-filter.tsx +1 -0
- package/src/web-components/input/gs-text-input.tsx +13 -1
- package/src/web-components/visualization/gs-aggregate.tsx +17 -1
- package/src/web-components/visualization/gs-mutation-comparison.tsx +9 -0
- package/src/web-components/visualization/gs-mutations-over-time.stories.ts +271 -0
- package/src/web-components/visualization/gs-mutations-over-time.tsx +7 -0
- package/src/web-components/visualization/gs-mutations.tsx +11 -5
- package/src/web-components/visualization/gs-number-sequences-over-time.tsx +15 -0
- package/src/web-components/visualization/gs-prevalence-over-time.stories.ts +8 -9
- package/src/web-components/visualization/gs-prevalence-over-time.tsx +26 -8
- package/src/web-components/visualization/gs-relative-growth-advantage.tsx +43 -5
- package/standalone-bundle/dashboard-components.js +30887 -0
- package/standalone-bundle/dashboard-components.js.map +1 -0
|
@@ -3,10 +3,8 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
3
3
|
import {
|
|
4
4
|
RelativeGrowthAdvantage,
|
|
5
5
|
type RelativeGrowthAdvantageProps,
|
|
6
|
-
type View,
|
|
7
6
|
} from '../../preact/relativeGrowthAdvantage/relative-growth-advantage';
|
|
8
7
|
import { type AxisMax } from '../../preact/shared/charts/getYAxisMax';
|
|
9
|
-
import type { LapisFilter } from '../../types';
|
|
10
8
|
import { type Equals, type Expect } from '../../utils/typeAssertions';
|
|
11
9
|
import { PreactLitAdapter } from '../PreactLitAdapter';
|
|
12
10
|
|
|
@@ -146,9 +144,49 @@ declare global {
|
|
|
146
144
|
}
|
|
147
145
|
|
|
148
146
|
/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */
|
|
149
|
-
type NumeratorMatches = Expect<
|
|
147
|
+
type NumeratorMatches = Expect<
|
|
148
|
+
Equals<
|
|
149
|
+
typeof RelativeGrowthAdvantageComponent.prototype.numeratorFilter,
|
|
150
|
+
RelativeGrowthAdvantageProps['numeratorFilter']
|
|
151
|
+
>
|
|
152
|
+
>;
|
|
150
153
|
type DenominatorMatches = Expect<
|
|
151
|
-
Equals<
|
|
154
|
+
Equals<
|
|
155
|
+
typeof RelativeGrowthAdvantageComponent.prototype.denominatorFilter,
|
|
156
|
+
RelativeGrowthAdvantageProps['denominatorFilter']
|
|
157
|
+
>
|
|
158
|
+
>;
|
|
159
|
+
type GenerationTimeMatches = Expect<
|
|
160
|
+
Equals<
|
|
161
|
+
typeof RelativeGrowthAdvantageComponent.prototype.generationTime,
|
|
162
|
+
RelativeGrowthAdvantageProps['generationTime']
|
|
163
|
+
>
|
|
164
|
+
>;
|
|
165
|
+
type ViewsMatches = Expect<
|
|
166
|
+
Equals<typeof RelativeGrowthAdvantageComponent.prototype.views, RelativeGrowthAdvantageProps['views']>
|
|
167
|
+
>;
|
|
168
|
+
type WidthMatches = Expect<
|
|
169
|
+
Equals<typeof RelativeGrowthAdvantageComponent.prototype.width, RelativeGrowthAdvantageProps['width']>
|
|
170
|
+
>;
|
|
171
|
+
type HeightMatches = Expect<
|
|
172
|
+
Equals<typeof RelativeGrowthAdvantageComponent.prototype.height, RelativeGrowthAdvantageProps['height']>
|
|
173
|
+
>;
|
|
174
|
+
type LapisDateFieldMatches = Expect<
|
|
175
|
+
Equals<
|
|
176
|
+
typeof RelativeGrowthAdvantageComponent.prototype.lapisDateField,
|
|
177
|
+
RelativeGrowthAdvantageProps['lapisDateField']
|
|
178
|
+
>
|
|
179
|
+
>;
|
|
180
|
+
type YAxisMaxLinearMatches = Expect<
|
|
181
|
+
Equals<
|
|
182
|
+
typeof RelativeGrowthAdvantageComponent.prototype.yAxisMaxLinear,
|
|
183
|
+
Required<RelativeGrowthAdvantageProps['yAxisMaxConfig']>['linear']
|
|
184
|
+
>
|
|
185
|
+
>;
|
|
186
|
+
type YAxisMaxLogarithmicMatches = Expect<
|
|
187
|
+
Equals<
|
|
188
|
+
typeof RelativeGrowthAdvantageComponent.prototype.yAxisMaxLogarithmic,
|
|
189
|
+
Required<RelativeGrowthAdvantageProps['yAxisMaxConfig']>['logarithmic']
|
|
190
|
+
>
|
|
152
191
|
>;
|
|
153
|
-
type ViewsMatches = Expect<Equals<typeof RelativeGrowthAdvantageComponent.prototype.views, View[]>>;
|
|
154
192
|
/* eslint-enable @typescript-eslint/no-unused-vars, no-unused-vars */
|