@genspectrum/dashboard-components 0.6.17 → 0.6.19

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 (109) hide show
  1. package/README.md +5 -12
  2. package/custom-elements.json +4 -4
  3. package/dist/assets/mutationOverTimeWorker-BdzqDqvO.js.map +1 -0
  4. package/dist/dashboard-components.js +216 -214
  5. package/dist/dashboard-components.js.map +1 -1
  6. package/dist/genspectrum-components.d.ts +40 -40
  7. package/dist/style.css +3 -2
  8. package/package.json +13 -2
  9. package/src/operator/FetchInsertionsOperator.ts +2 -2
  10. package/src/operator/FetchSubstitutionsOrDeletionsOperator.ts +3 -3
  11. package/src/preact/mutationComparison/fetchMutationData.spec.ts +3 -3
  12. package/src/preact/mutationComparison/getMutationComparisonTableData.spec.ts +11 -11
  13. package/src/preact/mutationComparison/getMutationComparisonTableData.ts +4 -4
  14. package/src/preact/mutationComparison/mutation-comparison-table.tsx +2 -2
  15. package/src/preact/mutationFilter/mutation-filter.tsx +27 -18
  16. package/src/preact/mutationFilter/parseAndValidateMutation.ts +4 -4
  17. package/src/preact/mutationFilter/parseMutation.spec.ts +17 -17
  18. package/src/preact/mutations/getInsertionsTableData.spec.ts +3 -3
  19. package/src/preact/mutations/getMutationsGridData.spec.ts +9 -9
  20. package/src/preact/mutations/getMutationsTableData.spec.ts +7 -7
  21. package/src/preact/mutations/mutations-insertions-table.tsx +3 -3
  22. package/src/preact/mutations/mutations-table.tsx +3 -3
  23. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutationsByDay.ts +45686 -0
  24. package/src/preact/mutationsOverTime/__mockData__/byWeek.ts +58989 -0
  25. package/src/preact/mutationsOverTime/__mockData__/defaultMockData.ts +103991 -0
  26. package/src/preact/mutationsOverTime/__mockData__/mockConversion.ts +54 -0
  27. package/src/preact/mutationsOverTime/__mockData__/showsMessageWhenTooManyMutations.ts +63690 -0
  28. package/src/preact/mutationsOverTime/getFilteredMutationsOverTime.spec.ts +176 -159
  29. package/src/preact/mutationsOverTime/getFilteredMutationsOverTimeData.ts +17 -59
  30. package/src/preact/mutationsOverTime/mutationOverTimeWorker.mock.ts +27 -0
  31. package/src/preact/mutationsOverTime/mutationOverTimeWorker.ts +29 -0
  32. package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +13 -14
  33. package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +9 -334
  34. package/src/preact/mutationsOverTime/mutations-over-time.tsx +68 -52
  35. package/src/preact/numberSequencesOverTime/getNumberOfSequencesOverTimeTableData.ts +3 -3
  36. package/src/preact/prevalenceOverTime/getPrevalenceOverTimeTableData.spec.ts +5 -5
  37. package/src/preact/prevalenceOverTime/prevalence-over-time-bubble-chart.tsx +1 -1
  38. package/src/preact/relativeGrowthAdvantage/relative-growth-advantage-chart.tsx +2 -2
  39. package/src/preact/shared/sort/sortInsertions.spec.ts +11 -11
  40. package/src/preact/shared/sort/sortInsertions.ts +2 -2
  41. package/src/preact/shared/sort/sortSubstitutionsAndDeletions.spec.ts +13 -13
  42. package/src/preact/shared/sort/sortSubstitutionsAndDeletions.ts +7 -4
  43. package/src/preact/webWorkers/useWebWorker.ts +51 -0
  44. package/src/preact/webWorkers/workerFunction.ts +14 -0
  45. package/src/query/queryAggregatedDataOverTime.ts +3 -3
  46. package/src/query/queryMutationsOverTime.spec.ts +272 -51
  47. package/src/query/queryMutationsOverTime.ts +114 -45
  48. package/src/query/queryPrevalenceOverTime.ts +2 -2
  49. package/src/query/queryRelativeGrowthAdvantage.ts +3 -3
  50. package/src/types.ts +25 -5
  51. package/src/utils/map2d.spec.ts +29 -1
  52. package/src/utils/map2d.ts +22 -1
  53. package/src/utils/mutations.spec.ts +20 -20
  54. package/src/utils/mutations.ts +80 -17
  55. package/src/utils/sort.ts +5 -2
  56. package/src/utils/temporal.spec.ts +27 -24
  57. package/src/utils/{temporal.ts → temporalClass.ts} +170 -72
  58. package/src/utils/temporalTestHelpers.ts +3 -3
  59. package/src/web-components/input/gs-text-input.tsx +1 -1
  60. package/src/web-components/introduction.mdx +46 -0
  61. package/src/web-components/visualization/gs-mutations-over-time.stories.ts +6 -699
  62. package/src/web-components/visualization/gs-mutations-over-time.tsx +2 -2
  63. package/standalone-bundle/dashboard-components.js +13763 -13754
  64. package/standalone-bundle/dashboard-components.js.map +1 -1
  65. package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_01.json +0 -13
  66. package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_02.json +0 -13
  67. package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_03.json +0 -13
  68. package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_04.json +0 -13
  69. package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_05.json +0 -13
  70. package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_06.json +0 -13
  71. package/src/preact/mutationsOverTime/__mockData__/aggregated_2024_07.json +0 -13
  72. package/src/preact/mutationsOverTime/__mockData__/aggregated_20_01_2024.json +0 -13
  73. package/src/preact/mutationsOverTime/__mockData__/aggregated_21_01_2024.json +0 -13
  74. package/src/preact/mutationsOverTime/__mockData__/aggregated_22_01_2024.json +0 -13
  75. package/src/preact/mutationsOverTime/__mockData__/aggregated_23_01_2024.json +0 -13
  76. package/src/preact/mutationsOverTime/__mockData__/aggregated_24_01_2024.json +0 -13
  77. package/src/preact/mutationsOverTime/__mockData__/aggregated_25_01_2024.json +0 -13
  78. package/src/preact/mutationsOverTime/__mockData__/aggregated_26_01_2024.json +0 -13
  79. package/src/preact/mutationsOverTime/__mockData__/aggregated_byDay.json +0 -38
  80. package/src/preact/mutationsOverTime/__mockData__/aggregated_byWeek.json +0 -122
  81. package/src/preact/mutationsOverTime/__mockData__/aggregated_date.json +0 -642
  82. package/src/preact/mutationsOverTime/__mockData__/aggregated_tooManyMutations.json +0 -1470
  83. package/src/preact/mutationsOverTime/__mockData__/aggregated_tooManyMutations_total.json +0 -13
  84. package/src/preact/mutationsOverTime/__mockData__/aggregated_week3_2024.json +0 -13
  85. package/src/preact/mutationsOverTime/__mockData__/aggregated_week4_2024.json +0 -13
  86. package/src/preact/mutationsOverTime/__mockData__/aggregated_week5_2024.json +0 -13
  87. package/src/preact/mutationsOverTime/__mockData__/aggregated_week6_2024.json +0 -13
  88. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_20_01_2024.json +0 -6778
  89. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_21_01_2024.json +0 -7129
  90. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_22_01_2024.json +0 -4681
  91. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_23_01_2024.json +0 -10738
  92. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_24_01_2024.json +0 -11710
  93. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_25_01_2024.json +0 -11557
  94. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_26_01_2024.json +0 -8596
  95. package/src/preact/mutationsOverTime/__mockData__/aminoAcidMutations_byDayOverall.json +0 -4726
  96. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_2024_01.json +0 -1747
  97. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_2024_02.json +0 -1774
  98. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_2024_03.json +0 -1819
  99. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_2024_04.json +0 -1864
  100. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_2024_05.json +0 -1927
  101. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_2024_06.json +0 -1864
  102. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_2024_07.json +0 -9
  103. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_byMonthOverall.json +0 -11143
  104. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_byWeekOverall.json +0 -9154
  105. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_tooManyMutations.json +0 -16453
  106. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_week3_2024.json +0 -8812
  107. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_week4_2024.json +0 -9730
  108. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_week5_2024.json +0 -9865
  109. package/src/preact/mutationsOverTime/__mockData__/nucleotideMutations_week6_2024.json +0 -11314
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 25800
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 16673
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 7931
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 2947
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 2424
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 2890
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 0
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 456
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 533
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 1107
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 1020
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 880
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 832
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 635
5
- }
6
- ],
7
- "info": {
8
- "dataVersion": "1722452937",
9
- "requestId": "aede768e-d9d1-4273-9a74-992986554995",
10
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-08-02T06:57:09.319474043",
11
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
12
- }
13
- }
@@ -1,38 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 447,
5
- "date": "2024-01-20"
6
- },
7
- {
8
- "count": 1096,
9
- "date": "2024-01-22"
10
- },
11
- {
12
- "count": 1008,
13
- "date": "2024-01-23"
14
- },
15
- {
16
- "count": 526,
17
- "date": "2024-01-21"
18
- },
19
- {
20
- "count": 866,
21
- "date": "2024-01-24"
22
- },
23
- {
24
- "count": 819,
25
- "date": "2024-01-25"
26
- },
27
- {
28
- "count": 622,
29
- "date": "2024-01-26"
30
- }
31
- ],
32
- "info": {
33
- "dataVersion": "1721588457",
34
- "requestId": "4181b443-024d-4520-a68b-a4f0e2249d3a",
35
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-07-22T16:24:29.959383752",
36
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
37
- }
38
- }
@@ -1,122 +0,0 @@
1
- {
2
- "data": [
3
- {
4
- "count": 622,
5
- "date": "2024-01-26"
6
- },
7
- {
8
- "count": 819,
9
- "date": "2024-01-25"
10
- },
11
- {
12
- "count": 683,
13
- "date": "2024-02-02"
14
- },
15
- {
16
- "count": 526,
17
- "date": "2024-01-21"
18
- },
19
- {
20
- "count": 580,
21
- "date": "2024-01-19"
22
- },
23
- {
24
- "count": 434,
25
- "date": "2024-01-27"
26
- },
27
- {
28
- "count": 947,
29
- "date": "2024-01-30"
30
- },
31
- {
32
- "count": 831,
33
- "date": "2024-01-18"
34
- },
35
- {
36
- "count": 447,
37
- "date": "2024-01-20"
38
- },
39
- {
40
- "count": 803,
41
- "date": "2024-02-01"
42
- },
43
- {
44
- "count": 332,
45
- "date": "2024-02-11"
46
- },
47
- {
48
- "count": 967,
49
- "date": "2024-01-17"
50
- },
51
- {
52
- "count": 993,
53
- "date": "2024-02-06"
54
- },
55
- {
56
- "count": 714,
57
- "date": "2024-02-08"
58
- },
59
- {
60
- "count": 1008,
61
- "date": "2024-01-23"
62
- },
63
- {
64
- "count": 381,
65
- "date": "2024-02-10"
66
- },
67
- {
68
- "count": 914,
69
- "date": "2024-01-31"
70
- },
71
- {
72
- "count": 1071,
73
- "date": "2024-01-29"
74
- },
75
- {
76
- "count": 402,
77
- "date": "2024-01-28"
78
- },
79
- {
80
- "count": 408,
81
- "date": "2024-02-04"
82
- },
83
- {
84
- "count": 966,
85
- "date": "2024-02-05"
86
- },
87
- {
88
- "count": 901,
89
- "date": "2024-01-15"
90
- },
91
- {
92
- "count": 866,
93
- "date": "2024-01-24"
94
- },
95
- {
96
- "count": 936,
97
- "date": "2024-01-16"
98
- },
99
- {
100
- "count": 836,
101
- "date": "2024-02-07"
102
- },
103
- {
104
- "count": 1096,
105
- "date": "2024-01-22"
106
- },
107
- {
108
- "count": 636,
109
- "date": "2024-02-09"
110
- },
111
- {
112
- "count": 438,
113
- "date": "2024-02-03"
114
- }
115
- ],
116
- "info": {
117
- "dataVersion": "1721588457",
118
- "requestId": "52863f95-fe58-427e-8010-b11ffa5600ce",
119
- "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2024-07-22T16:17:18.523742468",
120
- "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report."
121
- }
122
- }