@genspectrum/dashboard-components 0.16.4 → 0.17.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 +86 -61
- package/dist/{LineageFilterChangedEvent-COWV-Y0k.js → LineageFilterChangedEvent-DkvWdq_G.js} +2 -2
- package/dist/LineageFilterChangedEvent-DkvWdq_G.js.map +1 -0
- package/dist/components.d.ts +46 -34
- package/dist/components.js +304 -146
- package/dist/components.js.map +1 -1
- package/dist/style.css +76 -9
- package/dist/util.d.ts +11 -13
- package/dist/util.js +1 -1
- package/package.json +1 -1
- package/src/preact/components/clearable-select.stories.tsx +75 -0
- package/src/preact/components/clearable-select.tsx +76 -0
- package/src/preact/components/downshift-combobox.tsx +9 -7
- package/src/preact/dateRangeFilter/computeInitialValues.spec.ts +31 -33
- package/src/preact/dateRangeFilter/computeInitialValues.ts +2 -15
- package/src/preact/dateRangeFilter/date-picker.tsx +66 -0
- package/src/preact/dateRangeFilter/date-range-filter.stories.tsx +69 -31
- package/src/preact/dateRangeFilter/date-range-filter.tsx +136 -139
- package/src/preact/dateRangeFilter/dateRangeOption.ts +11 -11
- package/src/preact/shared/WithClassName/WithClassName.ts +1 -0
- package/src/preact/shared/icons/DeleteIcon.tsx +3 -0
- package/src/preact/shared/stories/expectOptionSelected.tsx +7 -0
- package/src/utilEntrypoint.ts +1 -1
- package/src/web-components/MutationAnnotations.mdx +33 -0
- package/src/web-components/ResizeContainer.mdx +1 -1
- package/src/web-components/errorHandling.mdx +1 -1
- package/src/web-components/gs-app.ts +2 -2
- package/src/web-components/input/gs-date-range-filter.stories.ts +38 -32
- package/src/web-components/input/gs-date-range-filter.tsx +8 -2
- 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 +1 -1
- package/src/web-components/input/gs-text-filter.tsx +1 -1
- package/src/web-components/visualization/gs-aggregate.tsx +2 -2
- package/src/web-components/visualization/gs-mutation-comparison.tsx +5 -2
- package/src/web-components/visualization/gs-mutations-over-time.tsx +5 -2
- package/src/web-components/visualization/gs-mutations.tsx +5 -2
- package/src/web-components/visualization/gs-number-sequences-over-time.tsx +2 -2
- package/src/web-components/visualization/gs-prevalence-over-time.tsx +2 -2
- package/src/web-components/visualization/gs-relative-growth-advantage.tsx +2 -2
- package/src/web-components/visualization/gs-sequences-by-location.tsx +2 -2
- package/src/web-components/visualization/gs-statistics.tsx +2 -2
- package/src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.tsx +2 -2
- package/standalone-bundle/dashboard-components.js +6624 -6538
- package/standalone-bundle/dashboard-components.js.map +1 -1
- package/standalone-bundle/style.css +1 -1
- package/dist/LineageFilterChangedEvent-COWV-Y0k.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineageFilterChangedEvent-DkvWdq_G.js","sources":["../src/types.ts","../src/preact/dateRangeFilter/dateConversion.ts","../src/preact/dateRangeFilter/dateRangeOption.ts","../src/preact/locationFilter/LocationChangedEvent.ts","../src/preact/textFilter/TextFilterChangedEvent.ts","../src/preact/lineageFilter/LineageFilterChangedEvent.ts"],"sourcesContent":["import z from 'zod';\n\nimport {\n type Deletion,\n type DeletionClass,\n type Insertion,\n type InsertionClass,\n type Substitution,\n type SubstitutionClass,\n} from './utils/mutations';\n\nexport const mutationsFilterSchema = z.object({\n nucleotideMutations: z.array(z.string()),\n aminoAcidMutations: z.array(z.string()),\n nucleotideInsertions: z.array(z.string()),\n aminoAcidInsertions: z.array(z.string()),\n});\nexport type MutationsFilter = z.infer<typeof mutationsFilterSchema>;\n\nexport const lapisFilterSchema = z\n .record(z.union([z.string(), z.array(z.string()), z.number(), z.null(), z.boolean(), z.undefined()]))\n .and(mutationsFilterSchema.partial());\nexport type LapisFilter = z.infer<typeof lapisFilterSchema>;\n\nexport const namedLapisFilterSchema = z.object({\n lapisFilter: lapisFilterSchema,\n displayName: z.string(),\n});\nexport type NamedLapisFilter = z.infer<typeof namedLapisFilterSchema>;\n\nexport const lapisLocationFilterSchema = z.record(z.union([z.string(), z.undefined()]));\nexport type LapisLocationFilter = z.infer<typeof lapisLocationFilterSchema>;\n\nexport const temporalGranularitySchema = z.union([\n z.literal('day'),\n z.literal('week'),\n z.literal('month'),\n z.literal('year'),\n]);\nexport type TemporalGranularity = z.infer<typeof temporalGranularitySchema>;\n\nexport const sequenceTypeSchema = z.union([z.literal('nucleotide'), z.literal('amino acid')]);\nexport type SequenceType = z.infer<typeof sequenceTypeSchema>;\n\nexport type SubstitutionOrDeletion = 'substitution' | 'deletion';\n\nexport type MutationType = SubstitutionOrDeletion | 'insertion';\n\nexport type SubstitutionEntry<T extends Substitution = SubstitutionClass> = {\n type: 'substitution';\n mutation: T;\n count: number;\n proportion: number;\n};\n\nexport type DeletionEntry<T extends Deletion = DeletionClass> = {\n type: 'deletion';\n mutation: T;\n count: number;\n proportion: number;\n};\n\nexport type InsertionEntry<T extends Insertion = InsertionClass> = { type: 'insertion'; mutation: T; count: number };\n\nexport type SubstitutionOrDeletionEntry<\n S extends Substitution = SubstitutionClass,\n D extends Deletion = DeletionClass,\n> = SubstitutionEntry<S> | DeletionEntry<D>;\n\nexport type MutationEntry = SubstitutionEntry | DeletionEntry | InsertionEntry;\n\nexport const views = {\n table: 'table',\n venn: 'venn',\n grid: 'grid',\n insertions: 'insertions',\n bar: 'bar',\n line: 'line',\n bubble: 'bubble',\n map: 'map',\n} as const;\n","export const toYYYYMMDD = (date: Date) => {\n const options: Intl.DateTimeFormatOptions = { year: 'numeric', month: '2-digit', day: '2-digit' };\n return date.toLocaleDateString('en-CA', options);\n};\n","import z from 'zod';\n\nimport { toYYYYMMDD } from './dateConversion';\n\n/**\n * A date range option that can be used in the `gs-date-range-filter` component.\n */\nexport const dateRangeOptionSchema = z.object({\n /** The label of the date range option that will be shown to the user */\n label: z.string(),\n /**\n * The start date of the date range in the format `YYYY-MM-DD`.\n * If not set, the date range selector will default to the `earliestDate` property.\n */\n dateFrom: z.string().date().optional(),\n /**\n * The end date of the date range in the format `YYYY-MM-DD`.\n * If not set, the date range selector will default to the current date.\n */\n dateTo: z.string().date().optional(),\n});\n\nexport type DateRangeOption = z.infer<typeof dateRangeOptionSchema>;\n\nexport const dateRangeValueSchema = z\n .union([\n z.string(),\n z.object({\n dateFrom: z.string().date().optional(),\n dateTo: z.string().date().optional(),\n }),\n ])\n .optional();\n\nexport type DateRangeValue = z.infer<typeof dateRangeValueSchema>;\n\nexport class DateRangeOptionChangedEvent extends CustomEvent<DateRangeValue> {\n constructor(detail: DateRangeValue) {\n super('gs-date-range-option-changed', {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n\nconst today = new Date();\n\nconst twoWeeksAgo = new Date();\ntwoWeeksAgo.setDate(today.getDate() - 14);\n\nconst lastMonth = new Date(today);\nlastMonth.setMonth(today.getMonth() - 1);\n\nconst last2Months = new Date(today);\nlast2Months.setMonth(today.getMonth() - 2);\n\nconst last3Months = new Date(today);\nlast3Months.setMonth(today.getMonth() - 3);\n\nconst last6Months = new Date(today);\nlast6Months.setMonth(today.getMonth() - 6);\n\nconst lastYear = new Date(today);\nlastYear.setFullYear(today.getFullYear() - 1);\n\n/**\n * Presets for the `gs-date-range-filter` component that can be used as `dateRangeOptions`.\n */\nexport const dateRangeOptionPresets = {\n last2Weeks: {\n label: 'Last 2 weeks',\n dateFrom: toYYYYMMDD(twoWeeksAgo),\n },\n lastMonth: {\n label: 'Last month',\n dateFrom: toYYYYMMDD(lastMonth),\n },\n last2Months: {\n label: 'Last 2 months',\n dateFrom: toYYYYMMDD(last2Months),\n },\n last3Months: {\n label: 'Last 3 months',\n dateFrom: toYYYYMMDD(last3Months),\n },\n last6Months: {\n label: 'Last 6 months',\n dateFrom: toYYYYMMDD(last6Months),\n },\n lastYear: {\n label: 'Last year',\n dateFrom: toYYYYMMDD(lastYear),\n },\n allTimes: {\n label: 'All times',\n },\n} satisfies Record<string, DateRangeOption>;\n","import { type LapisLocationFilter } from '../../types';\n\nexport class LocationChangedEvent extends CustomEvent<LapisLocationFilter> {\n constructor(detail: LapisLocationFilter) {\n super('gs-location-changed', {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n","type LapisTextFilter = Record<string, string | undefined>;\n\nexport class TextFilterChangedEvent extends CustomEvent<LapisTextFilter> {\n constructor(detail: LapisTextFilter) {\n super('gs-text-filter-changed', {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n","type LapisLineageFilter = Record<string, string | undefined>;\n\nexport class LineageFilterChangedEvent extends CustomEvent<LapisLineageFilter> {\n constructor(detail: LapisLineageFilter) {\n super('gs-lineage-filter-changed', {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n"],"names":[],"mappings":";AAWa,MAAA,wBAAwB,EAAE,OAAO;AAAA,EAC1C,qBAAqB,EAAE,MAAM,EAAE,QAAQ;AAAA,EACvC,oBAAoB,EAAE,MAAM,EAAE,QAAQ;AAAA,EACtC,sBAAsB,EAAE,MAAM,EAAE,QAAQ;AAAA,EACxC,qBAAqB,EAAE,MAAM,EAAE,OAAQ,CAAA;AAC3C,CAAC;AAGM,MAAM,oBAAoB,EAC5B,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAQ,CAAA,GAAG,EAAE,OAAO,GAAG,EAAE,QAAQ,EAAE,QAAW,GAAA,EAAE,UAAW,CAAA,CAAC,CAAC,EACnG,IAAI,sBAAsB,QAAS,CAAA;AAG3B,MAAA,yBAAyB,EAAE,OAAO;AAAA,EAC3C,aAAa;AAAA,EACb,aAAa,EAAE,OAAO;AAC1B,CAAC;AAGM,MAAM,4BAA4B,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAU,GAAA,EAAE,UAAW,CAAA,CAAC,CAAC;AAGzE,MAAA,4BAA4B,EAAE,MAAM;AAAA,EAC7C,EAAE,QAAQ,KAAK;AAAA,EACf,EAAE,QAAQ,MAAM;AAAA,E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AAA,MAC/B;AAAA,MACA,SAAS;AAAA,MACT,UAAU;AAAA,IAAA,CACb;AAAA,EAAA;AAET;"}
|
package/dist/components.d.ts
CHANGED
|
@@ -59,13 +59,13 @@ export declare class AggregateComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
59
59
|
/**
|
|
60
60
|
* The width of the component.
|
|
61
61
|
*
|
|
62
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
62
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
63
63
|
*/
|
|
64
64
|
width: string;
|
|
65
65
|
/**
|
|
66
66
|
* The height of the component.
|
|
67
67
|
*
|
|
68
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
68
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
69
69
|
*/
|
|
70
70
|
height: string | undefined;
|
|
71
71
|
/**
|
|
@@ -115,8 +115,8 @@ export declare class AppComponent extends LitElement {
|
|
|
115
115
|
lapis: string;
|
|
116
116
|
/**
|
|
117
117
|
* Supply lists of mutations that are especially relevant for the current organism.
|
|
118
|
-
*
|
|
119
|
-
*
|
|
118
|
+
*
|
|
119
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-mutation-annotations--docs for more information.
|
|
120
120
|
*/
|
|
121
121
|
mutationAnnotations: {
|
|
122
122
|
name: string;
|
|
@@ -197,7 +197,6 @@ export declare class DateRangeFilterComponent extends PreactLitAdapter {
|
|
|
197
197
|
* - If it is a string, then it must be a valid label from the `dateRangeOptions`.
|
|
198
198
|
* - If it is an object, then it accepts dates in the format `YYYY-MM-DD` for the keys `dateFrom` and `dateTo`.
|
|
199
199
|
* Keys that are not set will default to the `earliestDate` or the current date respectively.
|
|
200
|
-
* - If the attribute is not set, the component will default to the range `earliestDate` until today.
|
|
201
200
|
*
|
|
202
201
|
* The `detail` of the `gs-date-range-option-changed` event can be used for this attribute,
|
|
203
202
|
* if you want to control this component in your JS application.
|
|
@@ -209,9 +208,13 @@ export declare class DateRangeFilterComponent extends PreactLitAdapter {
|
|
|
209
208
|
/**
|
|
210
209
|
* The width of the component.
|
|
211
210
|
*
|
|
212
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
211
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
213
212
|
*/
|
|
214
213
|
width: string;
|
|
214
|
+
/**
|
|
215
|
+
* The placeholder to display on the select dropdown.
|
|
216
|
+
*/
|
|
217
|
+
placeholder: string | undefined;
|
|
215
218
|
/**
|
|
216
219
|
* The name of the metadata field in LAPIS that contains the date information.
|
|
217
220
|
*/
|
|
@@ -277,7 +280,7 @@ export declare class LineageFilterComponent extends PreactLitAdapter {
|
|
|
277
280
|
/**
|
|
278
281
|
* The width of the component.
|
|
279
282
|
*
|
|
280
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
283
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
281
284
|
*/
|
|
282
285
|
width: string;
|
|
283
286
|
render(): JSX_2.Element;
|
|
@@ -335,7 +338,7 @@ export declare class LocationFilterComponent extends PreactLitAdapter {
|
|
|
335
338
|
/**
|
|
336
339
|
* The width of the component.
|
|
337
340
|
*
|
|
338
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
341
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
339
342
|
*/
|
|
340
343
|
width: string;
|
|
341
344
|
/**
|
|
@@ -375,6 +378,9 @@ declare const mutationAnnotationsSchema: default_2.ZodArray<default_2.ZodObject<
|
|
|
375
378
|
*
|
|
376
379
|
* It only shows substitutions and deletions, it does not show insertions.
|
|
377
380
|
*
|
|
381
|
+
* This component supports mutations annotations.
|
|
382
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-mutation-annotations--docs for more information.
|
|
383
|
+
*
|
|
378
384
|
* ## Views
|
|
379
385
|
*
|
|
380
386
|
* ### Table View
|
|
@@ -423,13 +429,13 @@ export declare class MutationComparisonComponent extends PreactLitAdapterWithGri
|
|
|
423
429
|
/**
|
|
424
430
|
* The width of the component.
|
|
425
431
|
*
|
|
426
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
432
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
427
433
|
*/
|
|
428
434
|
width: string;
|
|
429
435
|
/**
|
|
430
436
|
* The height of the component.
|
|
431
437
|
*
|
|
432
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
438
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
433
439
|
*/
|
|
434
440
|
height: string | undefined;
|
|
435
441
|
/**
|
|
@@ -501,7 +507,7 @@ export declare class MutationFilterComponent extends PreactLitAdapter {
|
|
|
501
507
|
/**
|
|
502
508
|
* The width of the component.
|
|
503
509
|
*
|
|
504
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
510
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
505
511
|
*/
|
|
506
512
|
width: string;
|
|
507
513
|
render(): JSX_2.Element;
|
|
@@ -512,6 +518,9 @@ export declare class MutationFilterComponent extends PreactLitAdapter {
|
|
|
512
518
|
*
|
|
513
519
|
* This component displays mutations (substitutions, deletions and insertions) for a dataset selected by a LAPIS filter.
|
|
514
520
|
*
|
|
521
|
+
* This component supports mutations annotations.
|
|
522
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-mutation-annotations--docs for more information.
|
|
523
|
+
*
|
|
515
524
|
* ## Views
|
|
516
525
|
*
|
|
517
526
|
* ### Table View
|
|
@@ -589,13 +598,13 @@ export declare class MutationsComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
589
598
|
/**
|
|
590
599
|
* The width of the component.
|
|
591
600
|
*
|
|
592
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
601
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
593
602
|
*/
|
|
594
603
|
width: string;
|
|
595
604
|
/**
|
|
596
605
|
* The height of the component.
|
|
597
606
|
*
|
|
598
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
607
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
599
608
|
*/
|
|
600
609
|
height: string | undefined;
|
|
601
610
|
/**
|
|
@@ -614,6 +623,9 @@ export declare class MutationsComponent extends PreactLitAdapterWithGridJsStyles
|
|
|
614
623
|
* The shown date range is determined by the date field in the LAPIS filter.
|
|
615
624
|
* If the date field is not set, the date range is determined by all available dates in the dataset.
|
|
616
625
|
*
|
|
626
|
+
* This component supports mutations annotations.
|
|
627
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-mutation-annotations--docs for more information.
|
|
628
|
+
*
|
|
617
629
|
* ## Views
|
|
618
630
|
*
|
|
619
631
|
* ### Grid View
|
|
@@ -657,13 +669,13 @@ export declare class MutationsOverTimeComponent extends PreactLitAdapterWithGrid
|
|
|
657
669
|
/**
|
|
658
670
|
* The width of the component.
|
|
659
671
|
*
|
|
660
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
672
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
661
673
|
*/
|
|
662
674
|
width: string;
|
|
663
675
|
/**
|
|
664
676
|
* The height of the component.
|
|
665
677
|
*
|
|
666
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
678
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
667
679
|
*/
|
|
668
680
|
height: string | undefined;
|
|
669
681
|
/**
|
|
@@ -741,13 +753,13 @@ export declare class NumberSequencesOverTimeComponent extends PreactLitAdapterWi
|
|
|
741
753
|
/**
|
|
742
754
|
* The width of the component.
|
|
743
755
|
*
|
|
744
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
756
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
745
757
|
*/
|
|
746
758
|
width: string;
|
|
747
759
|
/**
|
|
748
760
|
* The height of the component.
|
|
749
761
|
*
|
|
750
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
762
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
751
763
|
*/
|
|
752
764
|
height: string | undefined;
|
|
753
765
|
/**
|
|
@@ -878,13 +890,13 @@ export declare class PrevalenceOverTimeComponent extends PreactLitAdapterWithGri
|
|
|
878
890
|
/**
|
|
879
891
|
* The width of the component.
|
|
880
892
|
*
|
|
881
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
893
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
882
894
|
*/
|
|
883
895
|
width: string;
|
|
884
896
|
/**
|
|
885
897
|
* The height of the component.
|
|
886
898
|
*
|
|
887
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
899
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
888
900
|
*/
|
|
889
901
|
height: string | undefined;
|
|
890
902
|
/**
|
|
@@ -1021,13 +1033,13 @@ export declare class RelativeGrowthAdvantageComponent extends PreactLitAdapter {
|
|
|
1021
1033
|
/**
|
|
1022
1034
|
* The width of the component.
|
|
1023
1035
|
*
|
|
1024
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1036
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1025
1037
|
*/
|
|
1026
1038
|
width: string;
|
|
1027
1039
|
/**
|
|
1028
1040
|
* The height of the component.
|
|
1029
1041
|
*
|
|
1030
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1042
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1031
1043
|
*/
|
|
1032
1044
|
height: string | undefined;
|
|
1033
1045
|
/**
|
|
@@ -1177,13 +1189,13 @@ export declare class SequencesByLocationComponent extends PreactLitAdapterWithGr
|
|
|
1177
1189
|
* Not that the map in the map view is not responsive
|
|
1178
1190
|
* (i.e. does not adjust its size when the component is resized).
|
|
1179
1191
|
*
|
|
1180
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1192
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1181
1193
|
*/
|
|
1182
1194
|
width: string;
|
|
1183
1195
|
/**
|
|
1184
1196
|
* The height of the component.
|
|
1185
1197
|
*
|
|
1186
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1198
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1187
1199
|
*/
|
|
1188
1200
|
height: string | undefined;
|
|
1189
1201
|
/**
|
|
@@ -1245,13 +1257,13 @@ export declare class StatisticsComponent extends PreactLitAdapterWithGridJsStyle
|
|
|
1245
1257
|
/**
|
|
1246
1258
|
* The width of the component.
|
|
1247
1259
|
*
|
|
1248
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1260
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1249
1261
|
*/
|
|
1250
1262
|
width: string;
|
|
1251
1263
|
/**
|
|
1252
1264
|
* The height of the component.
|
|
1253
1265
|
*
|
|
1254
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1266
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1255
1267
|
*/
|
|
1256
1268
|
height: string | undefined;
|
|
1257
1269
|
render(): JSX_2.Element;
|
|
@@ -1303,7 +1315,7 @@ export declare class TextFilterComponent extends PreactLitAdapter {
|
|
|
1303
1315
|
/**
|
|
1304
1316
|
* The width of the component.
|
|
1305
1317
|
*
|
|
1306
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1318
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1307
1319
|
*/
|
|
1308
1320
|
width: string;
|
|
1309
1321
|
render(): JSX_2.Element;
|
|
@@ -1353,13 +1365,13 @@ export declare class WastewaterMutationsOverTimeComponent extends PreactLitAdapt
|
|
|
1353
1365
|
/**
|
|
1354
1366
|
* The width of the component.
|
|
1355
1367
|
*
|
|
1356
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1368
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1357
1369
|
*/
|
|
1358
1370
|
width: string;
|
|
1359
1371
|
/**
|
|
1360
1372
|
* The height of the component.
|
|
1361
1373
|
*
|
|
1362
|
-
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/
|
|
1374
|
+
* Visit https://genspectrum.github.io/dashboard-components/?path=/docs/concepts-size-of-components--docs for more information.
|
|
1363
1375
|
*/
|
|
1364
1376
|
height: string | undefined;
|
|
1365
1377
|
/**
|
|
@@ -1616,10 +1628,10 @@ declare global {
|
|
|
1616
1628
|
|
|
1617
1629
|
declare global {
|
|
1618
1630
|
interface HTMLElementTagNameMap {
|
|
1619
|
-
'gs-
|
|
1631
|
+
'gs-mutation-filter': MutationFilterComponent;
|
|
1620
1632
|
}
|
|
1621
1633
|
interface HTMLElementEventMap {
|
|
1622
|
-
'gs-
|
|
1634
|
+
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1623
1635
|
}
|
|
1624
1636
|
}
|
|
1625
1637
|
|
|
@@ -1627,7 +1639,7 @@ declare global {
|
|
|
1627
1639
|
declare global {
|
|
1628
1640
|
namespace JSX {
|
|
1629
1641
|
interface IntrinsicElements {
|
|
1630
|
-
'gs-
|
|
1642
|
+
'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1631
1643
|
}
|
|
1632
1644
|
}
|
|
1633
1645
|
}
|
|
@@ -1635,10 +1647,10 @@ declare global {
|
|
|
1635
1647
|
|
|
1636
1648
|
declare global {
|
|
1637
1649
|
interface HTMLElementTagNameMap {
|
|
1638
|
-
'gs-
|
|
1650
|
+
'gs-lineage-filter': LineageFilterComponent;
|
|
1639
1651
|
}
|
|
1640
1652
|
interface HTMLElementEventMap {
|
|
1641
|
-
'gs-
|
|
1653
|
+
'gs-lineage-filter-changed': LineageFilterChangedEvent;
|
|
1642
1654
|
}
|
|
1643
1655
|
}
|
|
1644
1656
|
|
|
@@ -1646,7 +1658,7 @@ declare global {
|
|
|
1646
1658
|
declare global {
|
|
1647
1659
|
namespace JSX {
|
|
1648
1660
|
interface IntrinsicElements {
|
|
1649
|
-
'gs-
|
|
1661
|
+
'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1650
1662
|
}
|
|
1651
1663
|
}
|
|
1652
1664
|
}
|