@genspectrum/dashboard-components 0.13.3 → 0.13.4
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 +10 -4
- package/dist/components.d.ts +24 -22
- package/dist/components.js +1 -1
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +22 -22
- package/package.json +1 -1
- package/src/preact/wastewater/mutationsOverTime/wastewater-mutations-over-time.tsx +3 -1
- package/src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.stories.ts +9 -4
- package/src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.tsx +2 -0
- package/standalone-bundle/dashboard-components.js +1 -1
- package/standalone-bundle/dashboard-components.js.map +1 -1
package/dist/util.d.ts
CHANGED
|
@@ -854,7 +854,7 @@ declare global {
|
|
|
854
854
|
|
|
855
855
|
declare global {
|
|
856
856
|
interface HTMLElementTagNameMap {
|
|
857
|
-
'gs-
|
|
857
|
+
'gs-mutations-component': MutationsComponent;
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
|
|
@@ -862,7 +862,7 @@ declare global {
|
|
|
862
862
|
declare global {
|
|
863
863
|
namespace JSX {
|
|
864
864
|
interface IntrinsicElements {
|
|
865
|
-
'gs-
|
|
865
|
+
'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
}
|
|
@@ -870,7 +870,7 @@ declare global {
|
|
|
870
870
|
|
|
871
871
|
declare global {
|
|
872
872
|
interface HTMLElementTagNameMap {
|
|
873
|
-
'gs-
|
|
873
|
+
'gs-relative-growth-advantage': RelativeGrowthAdvantageComponent;
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
|
|
@@ -878,7 +878,7 @@ declare global {
|
|
|
878
878
|
declare global {
|
|
879
879
|
namespace JSX {
|
|
880
880
|
interface IntrinsicElements {
|
|
881
|
-
'gs-
|
|
881
|
+
'gs-relative-growth-advantage': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
}
|
|
@@ -886,7 +886,7 @@ declare global {
|
|
|
886
886
|
|
|
887
887
|
declare global {
|
|
888
888
|
interface HTMLElementTagNameMap {
|
|
889
|
-
'gs-
|
|
889
|
+
'gs-aggregate': AggregateComponent;
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
|
|
@@ -894,7 +894,7 @@ declare global {
|
|
|
894
894
|
declare global {
|
|
895
895
|
namespace JSX {
|
|
896
896
|
interface IntrinsicElements {
|
|
897
|
-
'gs-
|
|
897
|
+
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
}
|
|
@@ -902,7 +902,7 @@ declare global {
|
|
|
902
902
|
|
|
903
903
|
declare global {
|
|
904
904
|
interface HTMLElementTagNameMap {
|
|
905
|
-
'gs-
|
|
905
|
+
'gs-number-sequences-over-time': NumberSequencesOverTimeComponent;
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
|
|
@@ -910,7 +910,7 @@ declare global {
|
|
|
910
910
|
declare global {
|
|
911
911
|
namespace JSX {
|
|
912
912
|
interface IntrinsicElements {
|
|
913
|
-
'gs-
|
|
913
|
+
'gs-number-sequences-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
}
|
|
@@ -918,7 +918,7 @@ declare global {
|
|
|
918
918
|
|
|
919
919
|
declare global {
|
|
920
920
|
interface HTMLElementTagNameMap {
|
|
921
|
-
'gs-
|
|
921
|
+
'gs-prevalence-over-time': PrevalenceOverTimeComponent;
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
|
|
@@ -926,7 +926,7 @@ declare global {
|
|
|
926
926
|
declare global {
|
|
927
927
|
namespace JSX {
|
|
928
928
|
interface IntrinsicElements {
|
|
929
|
-
'gs-
|
|
929
|
+
'gs-prevalence-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
}
|
|
@@ -1018,10 +1018,10 @@ declare global {
|
|
|
1018
1018
|
|
|
1019
1019
|
declare global {
|
|
1020
1020
|
interface HTMLElementTagNameMap {
|
|
1021
|
-
'gs-
|
|
1021
|
+
'gs-text-input': TextInputComponent;
|
|
1022
1022
|
}
|
|
1023
1023
|
interface HTMLElementEventMap {
|
|
1024
|
-
'gs-
|
|
1024
|
+
'gs-text-input-changed': TextInputChangedEvent;
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
@@ -1029,7 +1029,7 @@ declare global {
|
|
|
1029
1029
|
declare global {
|
|
1030
1030
|
namespace JSX {
|
|
1031
1031
|
interface IntrinsicElements {
|
|
1032
|
-
'gs-
|
|
1032
|
+
'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
@@ -1037,10 +1037,10 @@ declare global {
|
|
|
1037
1037
|
|
|
1038
1038
|
declare global {
|
|
1039
1039
|
interface HTMLElementTagNameMap {
|
|
1040
|
-
'gs-
|
|
1040
|
+
'gs-mutation-filter': MutationFilterComponent;
|
|
1041
1041
|
}
|
|
1042
1042
|
interface HTMLElementEventMap {
|
|
1043
|
-
'gs-
|
|
1043
|
+
'gs-mutation-filter-changed': CustomEvent<MutationsFilter>;
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
@@ -1048,7 +1048,7 @@ declare global {
|
|
|
1048
1048
|
declare global {
|
|
1049
1049
|
namespace JSX {
|
|
1050
1050
|
interface IntrinsicElements {
|
|
1051
|
-
'gs-
|
|
1051
|
+
'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
@@ -1056,10 +1056,10 @@ declare global {
|
|
|
1056
1056
|
|
|
1057
1057
|
declare global {
|
|
1058
1058
|
interface HTMLElementTagNameMap {
|
|
1059
|
-
'gs-
|
|
1059
|
+
'gs-lineage-filter': LineageFilterComponent;
|
|
1060
1060
|
}
|
|
1061
1061
|
interface HTMLElementEventMap {
|
|
1062
|
-
'gs-
|
|
1062
|
+
'gs-lineage-filter-changed': LineageFilterChangedEvent;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
@@ -1067,7 +1067,7 @@ declare global {
|
|
|
1067
1067
|
declare global {
|
|
1068
1068
|
namespace JSX {
|
|
1069
1069
|
interface IntrinsicElements {
|
|
1070
|
-
'gs-
|
|
1070
|
+
'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
@@ -1075,10 +1075,10 @@ declare global {
|
|
|
1075
1075
|
|
|
1076
1076
|
declare global {
|
|
1077
1077
|
interface HTMLElementTagNameMap {
|
|
1078
|
-
'gs-
|
|
1078
|
+
'gs-location-filter': LocationFilterComponent;
|
|
1079
1079
|
}
|
|
1080
1080
|
interface HTMLElementEventMap {
|
|
1081
|
-
'gs-
|
|
1081
|
+
'gs-location-changed': LocationChangedEvent;
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
@@ -1086,7 +1086,7 @@ declare global {
|
|
|
1086
1086
|
declare global {
|
|
1087
1087
|
namespace JSX {
|
|
1088
1088
|
interface IntrinsicElements {
|
|
1089
|
-
'gs-
|
|
1089
|
+
'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
package/package.json
CHANGED
|
@@ -140,7 +140,9 @@ const WastewaterMutationsOverTimeInfo: FunctionComponent<WastewaterMutationsOver
|
|
|
140
140
|
return (
|
|
141
141
|
<Info>
|
|
142
142
|
<InfoHeadline1>Info for mutations over time</InfoHeadline1>
|
|
143
|
-
<InfoParagraph>
|
|
143
|
+
<InfoParagraph>
|
|
144
|
+
<slot name='infoText' />
|
|
145
|
+
</InfoParagraph>
|
|
144
146
|
<InfoComponentCode
|
|
145
147
|
componentName='wastewater-mutations-over-time'
|
|
146
148
|
params={originalComponentProps}
|
package/src/web-components/wastewaterVisualization/gs-wastewater-mutations-over-time.stories.ts
CHANGED
|
@@ -14,9 +14,11 @@ const codeExample = String.raw`
|
|
|
14
14
|
sequenceType='nucleotide'
|
|
15
15
|
width='100%'
|
|
16
16
|
height='700px'
|
|
17
|
-
|
|
17
|
+
>
|
|
18
|
+
<span slot="infoText">Some info text</span>
|
|
19
|
+
</gs-wastewater-mutations-over-time>`;
|
|
18
20
|
|
|
19
|
-
const meta: Meta<
|
|
21
|
+
const meta: Meta<WastewaterMutationsOverTimeProps & { infoText: string }> = {
|
|
20
22
|
title: 'Wastewater visualization/Wastewater mutations over time',
|
|
21
23
|
component: 'gs-wastewater-mutations-over-time',
|
|
22
24
|
argTypes: {
|
|
@@ -33,6 +35,7 @@ const meta: Meta<Required<WastewaterMutationsOverTimeProps>> = {
|
|
|
33
35
|
sequenceType: 'nucleotide',
|
|
34
36
|
width: '100%',
|
|
35
37
|
height: '700px',
|
|
38
|
+
infoText: 'Some info text',
|
|
36
39
|
},
|
|
37
40
|
parameters: withComponentDocs({
|
|
38
41
|
componentDocs: {
|
|
@@ -47,7 +50,7 @@ const meta: Meta<Required<WastewaterMutationsOverTimeProps>> = {
|
|
|
47
50
|
|
|
48
51
|
export default meta;
|
|
49
52
|
|
|
50
|
-
export const WastewaterMutationsOverTime: StoryObj<
|
|
53
|
+
export const WastewaterMutationsOverTime: StoryObj<WastewaterMutationsOverTimeProps & { infoText: string }> = {
|
|
51
54
|
render: (args) => html`
|
|
52
55
|
<gs-app lapis="${WISE_LAPIS_URL}">
|
|
53
56
|
<gs-wastewater-mutations-over-time
|
|
@@ -55,7 +58,9 @@ export const WastewaterMutationsOverTime: StoryObj<Required<WastewaterMutationsO
|
|
|
55
58
|
.sequenceType=${args.sequenceType}
|
|
56
59
|
.width=${args.width}
|
|
57
60
|
.height=${args.height}
|
|
58
|
-
|
|
61
|
+
>
|
|
62
|
+
<span slot="infoText">${args.infoText}</span>
|
|
63
|
+
</gs-wastewater-mutations-over-time>
|
|
59
64
|
</gs-app>
|
|
60
65
|
`,
|
|
61
66
|
parameters: {
|
|
@@ -23,6 +23,8 @@ import { PreactLitAdapterWithGridJsStyles } from '../PreactLitAdapterWithGridJsS
|
|
|
23
23
|
* The content of the tab is a "mutations over time" grid, similar to the one used in the `gs-mutations-over-time` component.
|
|
24
24
|
*
|
|
25
25
|
* This component also assumes that the LAPIS instance has the field `date` which can be used for the time axis.
|
|
26
|
+
*
|
|
27
|
+
* @slot infoText - Additional information text to be shown in the info modal (the "?" button).
|
|
26
28
|
*/
|
|
27
29
|
@customElement('gs-wastewater-mutations-over-time')
|
|
28
30
|
export class WastewaterMutationsOverTimeComponent extends PreactLitAdapterWithGridJsStyles {
|
|
@@ -31828,7 +31828,7 @@ const lR = O.object({
|
|
|
31828
31828
|
const t = re(Se);
|
|
31829
31829
|
return /* @__PURE__ */ v(zi, { children: [
|
|
31830
31830
|
/* @__PURE__ */ v(Jn, { children: "Info for mutations over time" }),
|
|
31831
|
-
/* @__PURE__ */ v(Wt, { children: " " }),
|
|
31831
|
+
/* @__PURE__ */ v(Wt, { children: /* @__PURE__ */ v("slot", { name: "infoText" }) }),
|
|
31832
31832
|
/* @__PURE__ */ v(
|
|
31833
31833
|
yr,
|
|
31834
31834
|
{
|