@genspectrum/dashboard-components 0.11.6 → 0.11.7

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 (26) hide show
  1. package/custom-elements.json +38 -3
  2. package/dist/assets/{mutationOverTimeWorker-CWneD7i5.js.map → mutationOverTimeWorker-DTv93Ere.js.map} +1 -1
  3. package/dist/components.d.ts +50 -16
  4. package/dist/components.js +129 -66
  5. package/dist/components.js.map +1 -1
  6. package/dist/util.d.ts +44 -16
  7. package/package.json +1 -1
  8. package/src/preact/mutations/__mockData__/baselineNucleotideMutations.json +337412 -0
  9. package/src/preact/mutations/__mockData__/overallVariantCount.json +14 -0
  10. package/src/preact/mutations/getMutationsTableData.spec.ts +20 -3
  11. package/src/preact/mutations/getMutationsTableData.ts +37 -2
  12. package/src/preact/mutations/mutations-table.tsx +47 -27
  13. package/src/preact/mutations/mutations.stories.tsx +41 -9
  14. package/src/preact/mutations/mutations.tsx +22 -6
  15. package/src/preact/mutations/queryMutations.ts +28 -8
  16. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutationsByDay.ts +11077 -3062
  17. package/src/preact/mutationsOverTime/__mockData__/byWeek.ts +3883 -6606
  18. package/src/preact/mutationsOverTime/__mockData__/defaultMockData.ts +17624 -2203
  19. package/src/preact/mutationsOverTime/mutations-over-time.tsx +1 -1
  20. package/src/query/queryMutationsOverTime.spec.ts +144 -4
  21. package/src/query/queryMutationsOverTime.ts +17 -1
  22. package/src/web-components/visualization/gs-mutations.stories.ts +62 -4
  23. package/src/web-components/visualization/gs-mutations.tsx +44 -0
  24. package/standalone-bundle/assets/{mutationOverTimeWorker-x1ipPFL0.js.map → mutationOverTimeWorker-DEybsZ5r.js.map} +1 -1
  25. package/standalone-bundle/dashboard-components.js +2515 -2464
  26. package/standalone-bundle/dashboard-components.js.map +1 -1
package/dist/util.d.ts CHANGED
@@ -293,6 +293,22 @@ declare const mutationsPropsSchema: default_2.ZodObject<{
293
293
  nucleotideInsertions?: string[] | undefined;
294
294
  aminoAcidInsertions?: string[] | undefined;
295
295
  }>>;
296
+ baselineLapisFilter: default_2.ZodOptional<default_2.ZodIntersection<default_2.ZodRecord<default_2.ZodString, default_2.ZodUnion<[default_2.ZodString, default_2.ZodArray<default_2.ZodString, "many">, default_2.ZodNumber, default_2.ZodNull, default_2.ZodBoolean, default_2.ZodUndefined]>>, default_2.ZodObject<{
297
+ nucleotideMutations: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
298
+ aminoAcidMutations: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
299
+ nucleotideInsertions: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
300
+ aminoAcidInsertions: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString, "many">>;
301
+ }, "strip", default_2.ZodTypeAny, {
302
+ nucleotideMutations?: string[] | undefined;
303
+ aminoAcidMutations?: string[] | undefined;
304
+ nucleotideInsertions?: string[] | undefined;
305
+ aminoAcidInsertions?: string[] | undefined;
306
+ }, {
307
+ nucleotideMutations?: string[] | undefined;
308
+ aminoAcidMutations?: string[] | undefined;
309
+ nucleotideInsertions?: string[] | undefined;
310
+ aminoAcidInsertions?: string[] | undefined;
311
+ }>>>;
296
312
  sequenceType: default_2.ZodUnion<[default_2.ZodLiteral<"nucleotide">, default_2.ZodLiteral<"amino acid">]>;
297
313
  views: default_2.ZodArray<default_2.ZodUnion<[default_2.ZodLiteral<"table">, default_2.ZodLiteral<"grid">, default_2.ZodLiteral<"insertions">]>, "many">;
298
314
  pageSize: default_2.ZodUnion<[default_2.ZodBoolean, default_2.ZodNumber]>;
@@ -310,6 +326,12 @@ declare const mutationsPropsSchema: default_2.ZodObject<{
310
326
  pageSize: number | boolean;
311
327
  sequenceType: "nucleotide" | "amino acid";
312
328
  views: ("table" | "grid" | "insertions")[];
329
+ baselineLapisFilter?: (Record<string, string | number | boolean | string[] | null | undefined> & {
330
+ nucleotideMutations?: string[] | undefined;
331
+ aminoAcidMutations?: string[] | undefined;
332
+ nucleotideInsertions?: string[] | undefined;
333
+ aminoAcidInsertions?: string[] | undefined;
334
+ }) | undefined;
313
335
  }, {
314
336
  lapisFilter: Record<string, string | number | boolean | string[] | null | undefined> & {
315
337
  nucleotideMutations?: string[] | undefined;
@@ -322,6 +344,12 @@ declare const mutationsPropsSchema: default_2.ZodObject<{
322
344
  pageSize: number | boolean;
323
345
  sequenceType: "nucleotide" | "amino acid";
324
346
  views: ("table" | "grid" | "insertions")[];
347
+ baselineLapisFilter?: (Record<string, string | number | boolean | string[] | null | undefined> & {
348
+ nucleotideMutations?: string[] | undefined;
349
+ aminoAcidMutations?: string[] | undefined;
350
+ nucleotideInsertions?: string[] | undefined;
351
+ aminoAcidInsertions?: string[] | undefined;
352
+ }) | undefined;
325
353
  }>;
326
354
 
327
355
  export declare type MutationsView = default_2.infer<typeof mutationsViewSchema>;
@@ -886,7 +914,7 @@ declare global {
886
914
 
887
915
  declare global {
888
916
  interface HTMLElementTagNameMap {
889
- 'gs-mutations-over-time': MutationsOverTimeComponent;
917
+ 'gs-sequences-by-location': SequencesByLocationComponent;
890
918
  }
891
919
  }
892
920
 
@@ -894,7 +922,7 @@ declare global {
894
922
  declare global {
895
923
  namespace JSX {
896
924
  interface IntrinsicElements {
897
- 'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
925
+ 'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
898
926
  }
899
927
  }
900
928
  }
@@ -902,7 +930,7 @@ declare global {
902
930
 
903
931
  declare global {
904
932
  interface HTMLElementTagNameMap {
905
- 'gs-sequences-by-location': SequencesByLocationComponent;
933
+ 'gs-statistics': StatisticsComponent;
906
934
  }
907
935
  }
908
936
 
@@ -910,7 +938,7 @@ declare global {
910
938
  declare global {
911
939
  namespace JSX {
912
940
  interface IntrinsicElements {
913
- 'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
941
+ 'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
914
942
  }
915
943
  }
916
944
  }
@@ -918,7 +946,7 @@ declare global {
918
946
 
919
947
  declare global {
920
948
  interface HTMLElementTagNameMap {
921
- 'gs-statistics': StatisticsComponent;
949
+ 'gs-mutations-over-time': MutationsOverTimeComponent;
922
950
  }
923
951
  }
924
952
 
@@ -926,7 +954,7 @@ declare global {
926
954
  declare global {
927
955
  namespace JSX {
928
956
  interface IntrinsicElements {
929
- 'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
957
+ 'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
930
958
  }
931
959
  }
932
960
  }
@@ -934,11 +962,10 @@ declare global {
934
962
 
935
963
  declare global {
936
964
  interface HTMLElementTagNameMap {
937
- 'gs-date-range-selector': DateRangeSelectorComponent;
965
+ 'gs-text-input': TextInputComponent;
938
966
  }
939
967
  interface HTMLElementEventMap {
940
- 'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
941
- 'gs-date-range-option-changed': DateRangeOptionChangedEvent;
968
+ 'gs-text-input-changed': CustomEvent<Record<string, string>>;
942
969
  }
943
970
  }
944
971
 
@@ -946,7 +973,7 @@ declare global {
946
973
  declare global {
947
974
  namespace JSX {
948
975
  interface IntrinsicElements {
949
- 'gs-date-range-selector': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
976
+ 'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
950
977
  }
951
978
  }
952
979
  }
@@ -954,10 +981,11 @@ declare global {
954
981
 
955
982
  declare global {
956
983
  interface HTMLElementTagNameMap {
957
- 'gs-location-filter': LocationFilterComponent;
984
+ 'gs-date-range-selector': DateRangeSelectorComponent;
958
985
  }
959
986
  interface HTMLElementEventMap {
960
- 'gs-location-changed': CustomEvent<Record<string, string>>;
987
+ 'gs-date-range-filter-changed': CustomEvent<Record<string, string>>;
988
+ 'gs-date-range-option-changed': DateRangeOptionChangedEvent;
961
989
  }
962
990
  }
963
991
 
@@ -965,7 +993,7 @@ declare global {
965
993
  declare global {
966
994
  namespace JSX {
967
995
  interface IntrinsicElements {
968
- 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
996
+ 'gs-date-range-selector': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
969
997
  }
970
998
  }
971
999
  }
@@ -973,10 +1001,10 @@ declare global {
973
1001
 
974
1002
  declare global {
975
1003
  interface HTMLElementTagNameMap {
976
- 'gs-text-input': TextInputComponent;
1004
+ 'gs-location-filter': LocationFilterComponent;
977
1005
  }
978
1006
  interface HTMLElementEventMap {
979
- 'gs-text-input-changed': CustomEvent<Record<string, string>>;
1007
+ 'gs-location-changed': CustomEvent<Record<string, string>>;
980
1008
  }
981
1009
  }
982
1010
 
@@ -984,7 +1012,7 @@ declare global {
984
1012
  declare global {
985
1013
  namespace JSX {
986
1014
  interface IntrinsicElements {
987
- 'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1015
+ 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
988
1016
  }
989
1017
  }
990
1018
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genspectrum/dashboard-components",
3
- "version": "0.11.6",
3
+ "version": "0.11.7",
4
4
  "description": "GenSpectrum web components for building dashboards",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",