@genspectrum/dashboard-components 0.10.3 → 0.11.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 +384 -56
- package/dist/assets/mutationOverTimeWorker-BjjkMGzd.js.map +1 -0
- package/dist/components.d.ts +250 -31
- package/dist/components.js +1220 -198
- package/dist/components.js.map +1 -1
- package/dist/{dateRangeOption-DjtcAEWq.js → dateRangeOption-Bh2p78z0.js} +11 -5
- package/dist/dateRangeOption-Bh2p78z0.js.map +1 -0
- package/dist/style.css +5 -1
- package/dist/util.d.ts +626 -16
- package/dist/util.js +1 -1
- package/package.json +13 -7
- package/src/preact/aggregatedData/aggregate.stories.tsx +2 -2
- package/src/preact/aggregatedData/aggregate.tsx +11 -8
- package/src/preact/dateRangeSelector/date-range-selector.stories.tsx +4 -12
- package/src/preact/dateRangeSelector/date-range-selector.tsx +4 -4
- package/src/preact/lineageFilter/lineage-filter.stories.tsx +1 -1
- package/src/preact/locationFilter/location-filter.stories.tsx +1 -1
- package/src/preact/map/__mockData__/aggregatedGermany.json +83 -0
- package/src/preact/map/__mockData__/aggregatedWorld.json +259 -0
- package/src/preact/map/__mockData__/germanyMap.json +9083 -0
- package/src/preact/map/__mockData__/howToGenerateWorldMap.md +9 -0
- package/src/preact/map/__mockData__/worldAtlas.json +497127 -0
- package/src/preact/map/leafletStyleModifications.css +3 -0
- package/src/preact/map/sequences-by-location-map.tsx +202 -0
- package/src/preact/map/sequences-by-location-table.tsx +18 -0
- package/src/preact/map/sequences-by-location.stories.tsx +144 -0
- package/src/preact/map/sequences-by-location.tsx +151 -0
- package/src/preact/map/useGeoJsonMap.tsx +62 -0
- package/src/preact/mutationComparison/mutation-comparison.tsx +5 -7
- package/src/preact/mutationFilter/mutation-filter.tsx +4 -13
- package/src/preact/mutations/mutations.tsx +4 -4
- package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +1 -1
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +4 -4
- package/src/preact/numberSequencesOverTime/number-sequences-over-time.stories.tsx +5 -14
- package/src/preact/numberSequencesOverTime/number-sequences-over-time.tsx +4 -4
- package/src/preact/prevalenceOverTime/prevalence-over-time.stories.tsx +15 -26
- package/src/preact/prevalenceOverTime/prevalence-over-time.tsx +8 -8
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.stories.tsx +4 -15
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.tsx +11 -7
- package/src/preact/shared/stories/expectErrorMessage.ts +21 -0
- package/src/preact/textInput/text-input.stories.tsx +1 -1
- package/src/preact/useQuery.ts +9 -1
- package/src/query/queryNumberOfSequencesOverTime.spec.ts +4 -4
- package/src/query/queryNumberOfSequencesOverTime.ts +1 -4
- package/src/query/queryPrevalenceOverTime.ts +1 -4
- package/src/styles/tailwind.css +1 -1
- package/src/types.ts +12 -4
- package/src/utilEntrypoint.ts +16 -4
- package/src/utils/utils.ts +0 -29
- package/src/web-components/app.ts +1 -1
- package/src/web-components/input/gs-date-range-selector.stories.ts +4 -4
- package/src/web-components/input/gs-date-range-selector.tsx +5 -5
- package/src/web-components/input/gs-lineage-filter.tsx +1 -1
- package/src/web-components/input/gs-location-filter.tsx +1 -1
- package/src/web-components/input/gs-mutation-filter.tsx +5 -8
- package/src/web-components/input/gs-text-input.tsx +1 -1
- package/src/web-components/visualization/gs-aggregate.stories.ts +3 -3
- package/src/web-components/visualization/gs-aggregate.tsx +10 -6
- package/src/web-components/visualization/gs-mutation-comparison.tsx +7 -2
- package/src/web-components/visualization/gs-mutations-over-time.tsx +7 -2
- package/src/web-components/visualization/gs-mutations.tsx +7 -2
- package/src/web-components/visualization/gs-number-sequences-over-time.stories.ts +5 -5
- package/src/web-components/visualization/gs-number-sequences-over-time.tsx +13 -15
- package/src/web-components/visualization/gs-prevalence-over-time.stories.ts +8 -8
- package/src/web-components/visualization/gs-prevalence-over-time.tsx +17 -14
- package/src/web-components/visualization/gs-relative-growth-advantage.stories.ts +4 -5
- package/src/web-components/visualization/gs-relative-growth-advantage.tsx +17 -15
- package/src/web-components/visualization/gs-sequences-by-location.stories.ts +234 -0
- package/src/web-components/visualization/gs-sequences-by-location.tsx +258 -0
- package/src/web-components/visualization/gs-statistics.tsx +12 -3
- package/src/web-components/visualization/index.ts +1 -0
- package/standalone-bundle/assets/mutationOverTimeWorker-DoUBht2e.js.map +1 -0
- package/standalone-bundle/dashboard-components.js +16208 -9408
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/standalone-bundle/style.css +1 -1
- package/dist/assets/mutationOverTimeWorker-CNg_ztNp.js.map +0 -1
- package/dist/dateRangeOption-DjtcAEWq.js.map +0 -1
- package/src/preact/shared/stories/expectInvalidAttributesErrorMessage.ts +0 -13
- package/src/utils/utils.spec.ts +0 -16
- package/standalone-bundle/assets/mutationOverTimeWorker-cIyshfj_.js.map +0 -1
package/dist/components.d.ts
CHANGED
|
@@ -35,12 +35,17 @@ export declare class AggregateComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
35
35
|
/**
|
|
36
36
|
* A list of tabs with views that this component should provide.
|
|
37
37
|
*/
|
|
38
|
-
views:
|
|
38
|
+
views: AggregateView[];
|
|
39
39
|
/**
|
|
40
40
|
* The filter to apply to the data.
|
|
41
41
|
* It must be a valid LAPIS filter object.
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
lapisFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
44
|
+
nucleotideMutations?: string[];
|
|
45
|
+
aminoAcidMutations?: string[];
|
|
46
|
+
nucleotideInsertions?: string[];
|
|
47
|
+
aminoAcidInsertions?: string[];
|
|
48
|
+
};
|
|
44
49
|
/**
|
|
45
50
|
* The width of the component.
|
|
46
51
|
*
|
|
@@ -70,6 +75,10 @@ export declare class AggregateComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
70
75
|
render(): JSX_2.Element;
|
|
71
76
|
}
|
|
72
77
|
|
|
78
|
+
declare type AggregateView = default_2.infer<typeof aggregateViewSchema>;
|
|
79
|
+
|
|
80
|
+
declare const aggregateViewSchema: default_2.ZodLiteral<"table">;
|
|
81
|
+
|
|
73
82
|
/**
|
|
74
83
|
* ## Context
|
|
75
84
|
*
|
|
@@ -187,9 +196,9 @@ export declare class DateRangeSelectorComponent extends PreactLitAdapter {
|
|
|
187
196
|
*/
|
|
188
197
|
width: string;
|
|
189
198
|
/**
|
|
190
|
-
* The name of the
|
|
199
|
+
* The name of the metadata field in LAPIS that contains the date information.
|
|
191
200
|
*/
|
|
192
|
-
|
|
201
|
+
lapisDateField: string;
|
|
193
202
|
render(): JSX_2.Element;
|
|
194
203
|
}
|
|
195
204
|
|
|
@@ -199,10 +208,6 @@ declare class ErrorEvent_2 extends Event {
|
|
|
199
208
|
}
|
|
200
209
|
export { ErrorEvent_2 as ErrorEvent }
|
|
201
210
|
|
|
202
|
-
declare type LapisFilter = default_2.infer<typeof lapisFilterSchema>;
|
|
203
|
-
|
|
204
|
-
declare const lapisFilterSchema: default_2.ZodRecord<default_2.ZodString, default_2.ZodUnion<[default_2.ZodString, default_2.ZodNumber, default_2.ZodNull, default_2.ZodBoolean]>>;
|
|
205
|
-
|
|
206
211
|
/**
|
|
207
212
|
*
|
|
208
213
|
* ## Context
|
|
@@ -343,7 +348,12 @@ export declare class MutationComparisonComponent extends PreactLitAdapterWithGri
|
|
|
343
348
|
* It should be human-readable.
|
|
344
349
|
*/
|
|
345
350
|
lapisFilters: {
|
|
346
|
-
lapisFilter: Record<string, string | number | null | boolean
|
|
351
|
+
lapisFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
352
|
+
nucleotideMutations?: string[];
|
|
353
|
+
aminoAcidMutations?: string[];
|
|
354
|
+
nucleotideInsertions?: string[];
|
|
355
|
+
aminoAcidInsertions?: string[];
|
|
356
|
+
};
|
|
347
357
|
displayName: string;
|
|
348
358
|
}[];
|
|
349
359
|
/**
|
|
@@ -471,7 +481,12 @@ export declare class MutationsComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
471
481
|
/**
|
|
472
482
|
* LAPIS filter to select the displayed data. If not provided, all data is displayed.
|
|
473
483
|
*/
|
|
474
|
-
lapisFilter: Record<string, string | number | null | boolean
|
|
484
|
+
lapisFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
485
|
+
nucleotideMutations?: string[];
|
|
486
|
+
aminoAcidMutations?: string[];
|
|
487
|
+
nucleotideInsertions?: string[];
|
|
488
|
+
aminoAcidInsertions?: string[];
|
|
489
|
+
};
|
|
475
490
|
/**
|
|
476
491
|
* The type of the sequence for which the mutations should be shown.
|
|
477
492
|
*/
|
|
@@ -529,7 +544,12 @@ export declare class MutationsOverTimeComponent extends PreactLitAdapterWithGrid
|
|
|
529
544
|
/**
|
|
530
545
|
* LAPIS filter to select the displayed data. If not provided, all data is displayed.
|
|
531
546
|
*/
|
|
532
|
-
lapisFilter: Record<string, string | number | null | boolean
|
|
547
|
+
lapisFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
548
|
+
nucleotideMutations?: string[];
|
|
549
|
+
aminoAcidMutations?: string[];
|
|
550
|
+
nucleotideInsertions?: string[];
|
|
551
|
+
aminoAcidInsertions?: string[];
|
|
552
|
+
};
|
|
533
553
|
/**
|
|
534
554
|
* The type of the sequence for which the mutations should be shown.
|
|
535
555
|
*/
|
|
@@ -587,11 +607,13 @@ export declare class NumberSequencesOverTimeComponent extends PreactLitAdapterWi
|
|
|
587
607
|
* The `displayName` will be used to label the component views.
|
|
588
608
|
* It should be human-readable.
|
|
589
609
|
*
|
|
590
|
-
*/
|
|
591
|
-
lapisFilter: Record<string, string | number | null | boolean
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
610
|
+
*/ lapisFilters: {
|
|
611
|
+
lapisFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
612
|
+
nucleotideMutations?: string[];
|
|
613
|
+
aminoAcidMutations?: string[];
|
|
614
|
+
nucleotideInsertions?: string[];
|
|
615
|
+
aminoAcidInsertions?: string[];
|
|
616
|
+
};
|
|
595
617
|
displayName: string;
|
|
596
618
|
}[];
|
|
597
619
|
/**
|
|
@@ -700,18 +722,25 @@ export declare class PrevalenceOverTimeComponent extends PreactLitAdapterWithGri
|
|
|
700
722
|
* It should be human-readable.
|
|
701
723
|
*
|
|
702
724
|
*/
|
|
703
|
-
|
|
704
|
-
lapisFilter: Record<string, string | number | null | boolean
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
725
|
+
numeratorFilters: {
|
|
726
|
+
lapisFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
727
|
+
nucleotideMutations?: string[];
|
|
728
|
+
aminoAcidMutations?: string[];
|
|
729
|
+
nucleotideInsertions?: string[];
|
|
730
|
+
aminoAcidInsertions?: string[];
|
|
731
|
+
};
|
|
708
732
|
displayName: string;
|
|
709
733
|
}[];
|
|
710
734
|
/**
|
|
711
735
|
* The LAPIS filter, to select the data of the reference.
|
|
712
736
|
* It must be a valid LAPIS filter object.
|
|
713
737
|
*/
|
|
714
|
-
denominatorFilter: Record<string, string | number | null | boolean
|
|
738
|
+
denominatorFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
739
|
+
nucleotideMutations?: string[];
|
|
740
|
+
aminoAcidMutations?: string[];
|
|
741
|
+
nucleotideInsertions?: string[];
|
|
742
|
+
aminoAcidInsertions?: string[];
|
|
743
|
+
};
|
|
715
744
|
/**
|
|
716
745
|
* The granularity of the time axis.
|
|
717
746
|
*/
|
|
@@ -854,12 +883,22 @@ export declare class RelativeGrowthAdvantageComponent extends PreactLitAdapter {
|
|
|
854
883
|
* LAPIS filter to select the data of the focal variant.
|
|
855
884
|
* It must be a valid LAPIS filter object.
|
|
856
885
|
*/
|
|
857
|
-
numeratorFilter: Record<string, string | number | null | boolean
|
|
886
|
+
numeratorFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
887
|
+
nucleotideMutations?: string[];
|
|
888
|
+
aminoAcidMutations?: string[];
|
|
889
|
+
nucleotideInsertions?: string[];
|
|
890
|
+
aminoAcidInsertions?: string[];
|
|
891
|
+
};
|
|
858
892
|
/**
|
|
859
893
|
* LAPIS filter to select the data of the baseline variant.
|
|
860
894
|
* It must be a valid LAPIS filter object.
|
|
861
895
|
*/
|
|
862
|
-
denominatorFilter: Record<string, string | number | null | boolean
|
|
896
|
+
denominatorFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
897
|
+
nucleotideMutations?: string[];
|
|
898
|
+
aminoAcidMutations?: string[];
|
|
899
|
+
nucleotideInsertions?: string[];
|
|
900
|
+
aminoAcidInsertions?: string[];
|
|
901
|
+
};
|
|
863
902
|
/**
|
|
864
903
|
* The generation time represents the number of days over which the variant's relative growth advantage is measured.
|
|
865
904
|
* For example, if we set a generation time of 7 days, then we estimate the growth advantage per week.
|
|
@@ -908,6 +947,164 @@ export declare class RelativeGrowthAdvantageComponent extends PreactLitAdapter {
|
|
|
908
947
|
render(): JSX_2.Element;
|
|
909
948
|
}
|
|
910
949
|
|
|
950
|
+
/**
|
|
951
|
+
* ## Context
|
|
952
|
+
*
|
|
953
|
+
* This component shows the geographic distribution of sequence data from LAPIS.
|
|
954
|
+
* It displays the count and proportion (number of sample per `lapisLocationField` / number of samples matching the `lapisFilter`)
|
|
955
|
+
* of the data by location.
|
|
956
|
+
*
|
|
957
|
+
* ## Views
|
|
958
|
+
*
|
|
959
|
+
* ### Map View
|
|
960
|
+
*
|
|
961
|
+
* This view displays a chloropleth map based on [Leaflet](https://leafletjs.com/).
|
|
962
|
+
* The component expects a `mapSource` object that specifies where the map data can be downloaded from.
|
|
963
|
+
* We can imagine that we add other map source types later (for example, GeoJSON).
|
|
964
|
+
*
|
|
965
|
+
* #### TopoJSON
|
|
966
|
+
*
|
|
967
|
+
* Suppose you provide this example object as `mapSource`:
|
|
968
|
+
*
|
|
969
|
+
* ```json
|
|
970
|
+
* {
|
|
971
|
+
* "type": "topojson",
|
|
972
|
+
* "url": "https://example.com/map.topojson",
|
|
973
|
+
* "topologyObjectsKey": "myObjectKey"
|
|
974
|
+
* }
|
|
975
|
+
* ```
|
|
976
|
+
*
|
|
977
|
+
* The URL must point to a [TopoJSON file](https://github.com/topojson/topojson) that contains the map data.
|
|
978
|
+
* The TopoJSON file must schematically look like this,
|
|
979
|
+
* where `objects[topologyObjectsKey]` must be a valid GeometryCollection (`objects.myObjectKey` in this example):
|
|
980
|
+
*
|
|
981
|
+
* ```json
|
|
982
|
+
* {
|
|
983
|
+
* "type": "Topology",
|
|
984
|
+
* "objects": {
|
|
985
|
+
* "myObjectKey": {
|
|
986
|
+
* "type": "GeometryCollection",
|
|
987
|
+
* "geometries": [
|
|
988
|
+
* {
|
|
989
|
+
* "type": "Polygon",
|
|
990
|
+
* "properties": {
|
|
991
|
+
* "name": "North Rhine Westphalia"
|
|
992
|
+
* },
|
|
993
|
+
* "id": "DE.NW",
|
|
994
|
+
* "arcs": [...]
|
|
995
|
+
* },
|
|
996
|
+
* ...
|
|
997
|
+
* ]
|
|
998
|
+
* }
|
|
999
|
+
* },
|
|
1000
|
+
* "arcs": [...],
|
|
1001
|
+
* "transform": {...}
|
|
1002
|
+
* }
|
|
1003
|
+
* ```
|
|
1004
|
+
*
|
|
1005
|
+
* You can use any valid TopoJSON file.
|
|
1006
|
+
* https://github.com/markmarkoh/datamaps/tree/master/src/js/data contains TopoJSON files for many countries.
|
|
1007
|
+
*
|
|
1008
|
+
* The `lapisFilter` is used to select the data to display, and it is aggregated by the `lapisLocationField`.
|
|
1009
|
+
* This component assumes that every geometry object in the TopoJSON file has a `properties.name` field.
|
|
1010
|
+
*
|
|
1011
|
+
* The values that LAPIS returns for `lapisLocationField` must match the `properties.name` in the map data.
|
|
1012
|
+
* LAPIS entries where `lapisLocationField` is `null` are ignored on the map.
|
|
1013
|
+
*
|
|
1014
|
+
* The names of the locations in the TopoJSON map and in LAPIS should match.
|
|
1015
|
+
* However, there are two cases of misalignment:
|
|
1016
|
+
* - If there is a LAPIS location that does not match any location in the TopoJSON map,
|
|
1017
|
+
* the component will log a console warning to assist in creating map data that aligns with the LAPIS data.
|
|
1018
|
+
* - If a TopoJSON location does not match any LAPIS location for the given filter,
|
|
1019
|
+
* no data will be displayed for this location.
|
|
1020
|
+
* This is expected, as LAPIS will only return locations where sequences have been collected for that filter.
|
|
1021
|
+
*
|
|
1022
|
+
* ### Table View
|
|
1023
|
+
*
|
|
1024
|
+
* This view displays the data in a table format.
|
|
1025
|
+
* It is similar to the table view of the `gs-aggregate` component.
|
|
1026
|
+
* The table has three columns:
|
|
1027
|
+
* - `lapisLocationField`,
|
|
1028
|
+
* - `count` (the number of samples in this location matching the `lapisFilter`),
|
|
1029
|
+
* - `proportion` (`count` / sum of the `count` of all locations).
|
|
1030
|
+
*/
|
|
1031
|
+
export declare class SequencesByLocationComponent extends PreactLitAdapterWithGridJsStyles {
|
|
1032
|
+
static styles: CSSResult[];
|
|
1033
|
+
/**
|
|
1034
|
+
* LAPIS filter to select the displayed data.
|
|
1035
|
+
* If you want to display the distribution over the states of a certain country,
|
|
1036
|
+
* you should usually filter by that country here (e.g. { country: 'USA' }).
|
|
1037
|
+
*/
|
|
1038
|
+
lapisFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
1039
|
+
nucleotideMutations?: string[];
|
|
1040
|
+
aminoAcidMutations?: string[];
|
|
1041
|
+
nucleotideInsertions?: string[];
|
|
1042
|
+
aminoAcidInsertions?: string[];
|
|
1043
|
+
};
|
|
1044
|
+
/**
|
|
1045
|
+
* Required.
|
|
1046
|
+
*
|
|
1047
|
+
* The location field to aggregate the data by.
|
|
1048
|
+
* This should match the selected map location granularity.
|
|
1049
|
+
*/
|
|
1050
|
+
lapisLocationField: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* Required when using the map view.
|
|
1053
|
+
*
|
|
1054
|
+
* The source of the map data. See component level docs for more information.
|
|
1055
|
+
*/
|
|
1056
|
+
mapSource: {
|
|
1057
|
+
type: 'topojson';
|
|
1058
|
+
url: string;
|
|
1059
|
+
topologyObjectsKey: string;
|
|
1060
|
+
} | undefined;
|
|
1061
|
+
/**
|
|
1062
|
+
* Enable map navigation (dragging, keyboard navigation, zooming).
|
|
1063
|
+
*/
|
|
1064
|
+
enableMapNavigation: boolean;
|
|
1065
|
+
/**
|
|
1066
|
+
* The width of the component.
|
|
1067
|
+
* Not that the map in the map view is not responsive
|
|
1068
|
+
* (i.e. does not adjust its size when the component is resized).
|
|
1069
|
+
*
|
|
1070
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
1071
|
+
*/
|
|
1072
|
+
width: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* The height of the component.
|
|
1075
|
+
*
|
|
1076
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/components-size-of-components--docs for more information.
|
|
1077
|
+
*/
|
|
1078
|
+
height: string;
|
|
1079
|
+
/**
|
|
1080
|
+
A list of tabs with views that this component should provide.
|
|
1081
|
+
*/
|
|
1082
|
+
views: ('map' | 'table')[];
|
|
1083
|
+
/**
|
|
1084
|
+
* The initial zoom level of the map.
|
|
1085
|
+
*/
|
|
1086
|
+
zoom: number;
|
|
1087
|
+
/**
|
|
1088
|
+
* Initially shift the center of the map in x direction (longitude).
|
|
1089
|
+
*
|
|
1090
|
+
* `-180` is the International Date Line with the map shifted to the right, `0` is the prime meridian,
|
|
1091
|
+
* `180` is the International Date Line with the map shifted to the left.
|
|
1092
|
+
*/
|
|
1093
|
+
offsetX: number;
|
|
1094
|
+
/**
|
|
1095
|
+
* Initially shift the center of the map in y direction (latitude).
|
|
1096
|
+
*
|
|
1097
|
+
* `-90` is the South Pole, `0` is the equator, `90` is the North Pole.
|
|
1098
|
+
*/
|
|
1099
|
+
offsetY: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* The maximum number of rows to display in the table view.
|
|
1102
|
+
* Set to `false` to disable pagination. Set to `true` to enable pagination with a default limit (10).
|
|
1103
|
+
*/
|
|
1104
|
+
pageSize: boolean | number;
|
|
1105
|
+
render(): JSX_2.Element;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
911
1108
|
/**
|
|
912
1109
|
* ## Context
|
|
913
1110
|
*
|
|
@@ -919,12 +1116,22 @@ export declare class StatisticsComponent extends PreactLitAdapterWithGridJsStyle
|
|
|
919
1116
|
* The filter to apply to the data for the overall number of sequences and as the numerator for the proportion.
|
|
920
1117
|
* It must be a valid LAPIS filter object.
|
|
921
1118
|
*/
|
|
922
|
-
numeratorFilter:
|
|
1119
|
+
numeratorFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
1120
|
+
nucleotideMutations?: string[];
|
|
1121
|
+
aminoAcidMutations?: string[];
|
|
1122
|
+
nucleotideInsertions?: string[];
|
|
1123
|
+
aminoAcidInsertions?: string[];
|
|
1124
|
+
};
|
|
923
1125
|
/**
|
|
924
1126
|
* The filter to apply to the data for the denominator of the proportion.
|
|
925
1127
|
* It must be a valid LAPIS filter object.
|
|
926
1128
|
*/
|
|
927
|
-
denominatorFilter:
|
|
1129
|
+
denominatorFilter: Record<string, string | string[] | number | null | boolean | undefined> & {
|
|
1130
|
+
nucleotideMutations?: string[];
|
|
1131
|
+
aminoAcidMutations?: string[];
|
|
1132
|
+
nucleotideInsertions?: string[];
|
|
1133
|
+
aminoAcidInsertions?: string[];
|
|
1134
|
+
};
|
|
928
1135
|
/**
|
|
929
1136
|
* The width of the component.
|
|
930
1137
|
*
|
|
@@ -986,10 +1193,6 @@ export declare class UserFacingError extends Error {
|
|
|
986
1193
|
constructor(headline: string, message: string);
|
|
987
1194
|
}
|
|
988
1195
|
|
|
989
|
-
declare type View = default_2.infer<typeof viewSchema>;
|
|
990
|
-
|
|
991
|
-
declare const viewSchema: default_2.ZodLiteral<"table">;
|
|
992
|
-
|
|
993
1196
|
export { }
|
|
994
1197
|
|
|
995
1198
|
|
|
@@ -1128,6 +1331,22 @@ declare global {
|
|
|
1128
1331
|
}
|
|
1129
1332
|
|
|
1130
1333
|
|
|
1334
|
+
declare global {
|
|
1335
|
+
interface HTMLElementTagNameMap {
|
|
1336
|
+
'gs-sequences-by-location': SequencesByLocationComponent;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
declare global {
|
|
1342
|
+
namespace JSX {
|
|
1343
|
+
interface IntrinsicElements {
|
|
1344
|
+
'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
|
|
1131
1350
|
declare global {
|
|
1132
1351
|
interface HTMLElementTagNameMap {
|
|
1133
1352
|
'gs-statistics': StatisticsComponent;
|
|
@@ -1207,7 +1426,7 @@ declare global {
|
|
|
1207
1426
|
'gs-mutation-filter': MutationFilterComponent;
|
|
1208
1427
|
}
|
|
1209
1428
|
interface HTMLElementEventMap {
|
|
1210
|
-
'gs-mutation-filter-changed': CustomEvent<
|
|
1429
|
+
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1211
1430
|
}
|
|
1212
1431
|
}
|
|
1213
1432
|
|