@cdc/dashboard 4.23.11 → 4.24.2
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/dist/cdcdashboard.js +109007 -98738
- package/examples/DEV-6574.json +2224 -0
- package/examples/filters/Alabama.json +72 -0
- package/examples/filters/Alaska.json +1737 -0
- package/examples/filters/Arkansas.json +4713 -0
- package/examples/filters/California.json +212 -0
- package/examples/filters/Colorado.json +1500 -0
- package/examples/filters/Connecticut.json +559 -0
- package/examples/filters/Delaware.json +63 -0
- package/examples/filters/DistrictofColumbia.json +63 -0
- package/examples/filters/Florida.json +4217 -0
- package/examples/filters/States.json +146 -0
- package/examples/test.json +752 -0
- package/examples/zika.json +2274 -0
- package/index.html +5 -3
- package/package.json +9 -9
- package/src/CdcDashboard.tsx +124 -963
- package/src/CdcDashboardComponent.tsx +903 -0
- package/src/_stories/Dashboard.stories.tsx +2 -2
- package/src/components/Column.tsx +15 -12
- package/src/components/Header/Header.tsx +694 -0
- package/src/components/Header/index.tsx +1 -676
- package/src/components/MultiConfigTabs/MultiConfigTabs.tsx +106 -0
- package/src/components/MultiConfigTabs/MultiTabs.tsx +30 -0
- package/src/components/MultiConfigTabs/index.tsx +8 -0
- package/src/components/MultiConfigTabs/multiconfigtabs.styles.css +32 -0
- package/src/components/Widget.tsx +25 -9
- package/src/helpers/filterData.ts +73 -73
- package/src/helpers/generateValuesForFilter.ts +25 -29
- package/src/helpers/getUpdateConfig.ts +6 -2
- package/src/helpers/processData.ts +13 -0
- package/src/helpers/processDataLegacy.ts +14 -0
- package/src/{index.jsx → index.tsx} +2 -2
- package/src/scss/editor-panel.scss +14 -11
- package/src/scss/grid.scss +4 -6
- package/src/scss/main.scss +2 -8
- package/src/store/dashboard.actions.ts +10 -4
- package/src/store/dashboard.reducer.ts +74 -3
- package/src/types/ConfigRow.ts +6 -0
- package/src/types/Dashboard.ts +11 -0
- package/src/types/DashboardConfig.ts +23 -0
- package/src/types/InitialState.ts +10 -0
- package/src/types/MultiDashboard.ts +11 -0
- package/src/types/SharedFilter.ts +31 -20
- package/src/types/Config.ts +0 -27
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"county": "Alameda",
|
|
4
|
+
"ed_trends_covid": "No Change",
|
|
5
|
+
"ed_trends_influenza": "No Change",
|
|
6
|
+
"ed_trends_rsv": "No Change",
|
|
7
|
+
"geography": "California",
|
|
8
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
9
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
10
|
+
"percent_visits_combined": "0.0",
|
|
11
|
+
"percent_visits_covid": "0.0",
|
|
12
|
+
"percent_visits_influenza": "0.0",
|
|
13
|
+
"percent_visits_rsv": "0.0",
|
|
14
|
+
"week_end": "2022-10-01"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"county": "Alameda",
|
|
18
|
+
"ed_trends_covid": "No Change",
|
|
19
|
+
"ed_trends_influenza": "No Change",
|
|
20
|
+
"ed_trends_rsv": "No Change",
|
|
21
|
+
"geography": "California",
|
|
22
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
23
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
24
|
+
"percent_visits_combined": "0.0",
|
|
25
|
+
"percent_visits_covid": "0.0",
|
|
26
|
+
"percent_visits_influenza": "0.0",
|
|
27
|
+
"percent_visits_rsv": "0.0",
|
|
28
|
+
"week_end": "2022-10-08"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"county": "Alameda",
|
|
32
|
+
"ed_trends_covid": "No Change",
|
|
33
|
+
"ed_trends_influenza": "No Change",
|
|
34
|
+
"ed_trends_rsv": "No Change",
|
|
35
|
+
"geography": "California",
|
|
36
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
37
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
38
|
+
"percent_visits_combined": "0.0",
|
|
39
|
+
"percent_visits_covid": "0.0",
|
|
40
|
+
"percent_visits_influenza": "0.0",
|
|
41
|
+
"percent_visits_rsv": "0.0",
|
|
42
|
+
"week_end": "2022-10-15"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"county": "Alameda",
|
|
46
|
+
"ed_trends_covid": "No Change",
|
|
47
|
+
"ed_trends_influenza": "No Change",
|
|
48
|
+
"ed_trends_rsv": "No Change",
|
|
49
|
+
"geography": "California",
|
|
50
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
51
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
52
|
+
"percent_visits_combined": "0.0",
|
|
53
|
+
"percent_visits_covid": "0.0",
|
|
54
|
+
"percent_visits_influenza": "0.0",
|
|
55
|
+
"percent_visits_rsv": "0.0",
|
|
56
|
+
"week_end": "2022-10-22"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"county": "Alameda",
|
|
60
|
+
"ed_trends_covid": "No Change",
|
|
61
|
+
"ed_trends_influenza": "No Change",
|
|
62
|
+
"ed_trends_rsv": "No Change",
|
|
63
|
+
"geography": "California",
|
|
64
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
65
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
66
|
+
"percent_visits_combined": "0.0",
|
|
67
|
+
"percent_visits_covid": "0.0",
|
|
68
|
+
"percent_visits_influenza": "0.0",
|
|
69
|
+
"percent_visits_rsv": "0.0",
|
|
70
|
+
"week_end": "2022-10-29"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"county": "Alameda",
|
|
74
|
+
"ed_trends_covid": "No Change",
|
|
75
|
+
"ed_trends_influenza": "No Change",
|
|
76
|
+
"ed_trends_rsv": "No Change",
|
|
77
|
+
"geography": "California",
|
|
78
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
79
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
80
|
+
"percent_visits_combined": "0.0",
|
|
81
|
+
"percent_visits_covid": "0.0",
|
|
82
|
+
"percent_visits_influenza": "0.0",
|
|
83
|
+
"percent_visits_rsv": "0.0",
|
|
84
|
+
"week_end": "2022-11-05"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"county": "Alameda",
|
|
88
|
+
"ed_trends_covid": "No Change",
|
|
89
|
+
"ed_trends_influenza": "No Change",
|
|
90
|
+
"ed_trends_rsv": "No Change",
|
|
91
|
+
"geography": "California",
|
|
92
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
93
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
94
|
+
"percent_visits_combined": "0.0",
|
|
95
|
+
"percent_visits_covid": "0.0",
|
|
96
|
+
"percent_visits_influenza": "0.0",
|
|
97
|
+
"percent_visits_rsv": "0.0",
|
|
98
|
+
"week_end": "2022-11-12"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"county": "Mono",
|
|
102
|
+
"ed_trends_covid": "No Change",
|
|
103
|
+
"ed_trends_influenza": "No Change",
|
|
104
|
+
"ed_trends_rsv": "No Change",
|
|
105
|
+
"geography": "California",
|
|
106
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
107
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
108
|
+
"percent_visits_combined": "0.0",
|
|
109
|
+
"percent_visits_covid": "0.0",
|
|
110
|
+
"percent_visits_influenza": "0.0",
|
|
111
|
+
"percent_visits_rsv": "0.0",
|
|
112
|
+
"week_end": "2022-11-19"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"county": "Washoe",
|
|
116
|
+
"ed_trends_covid": "No Change",
|
|
117
|
+
"ed_trends_influenza": "No Change",
|
|
118
|
+
"ed_trends_rsv": "No Change",
|
|
119
|
+
"geography": "Nevada",
|
|
120
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
121
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
122
|
+
"percent_visits_combined": "0.0",
|
|
123
|
+
"percent_visits_covid": "0.0",
|
|
124
|
+
"percent_visits_influenza": "0.0",
|
|
125
|
+
"percent_visits_rsv": "0.0",
|
|
126
|
+
"week_end": "2022-11-19"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"county": "Alameda",
|
|
130
|
+
"ed_trends_covid": "No Change",
|
|
131
|
+
"ed_trends_influenza": "No Change",
|
|
132
|
+
"ed_trends_rsv": "No Change",
|
|
133
|
+
"geography": "California",
|
|
134
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
135
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
136
|
+
"percent_visits_combined": "0.0",
|
|
137
|
+
"percent_visits_covid": "0.0",
|
|
138
|
+
"percent_visits_influenza": "0.0",
|
|
139
|
+
"percent_visits_rsv": "0.0",
|
|
140
|
+
"week_end": "2022-11-26"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"county": "Alameda",
|
|
144
|
+
"ed_trends_covid": "No Change",
|
|
145
|
+
"ed_trends_influenza": "No Change",
|
|
146
|
+
"ed_trends_rsv": "No Change",
|
|
147
|
+
"geography": "California",
|
|
148
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
149
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
150
|
+
"percent_visits_combined": "0.0",
|
|
151
|
+
"percent_visits_covid": "0.0",
|
|
152
|
+
"percent_visits_influenza": "0.0",
|
|
153
|
+
"percent_visits_rsv": "0.0",
|
|
154
|
+
"week_end": "2022-12-03"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"county": "Alameda",
|
|
158
|
+
"ed_trends_covid": "No Change",
|
|
159
|
+
"ed_trends_influenza": "No Change",
|
|
160
|
+
"ed_trends_rsv": "No Change",
|
|
161
|
+
"geography": "California",
|
|
162
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
163
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
164
|
+
"percent_visits_combined": "11.06",
|
|
165
|
+
"percent_visits_covid": "4.42",
|
|
166
|
+
"percent_visits_influenza": "6.47",
|
|
167
|
+
"percent_visits_rsv": "0.54",
|
|
168
|
+
"week_end": "2022-12-10"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"county": "Alameda",
|
|
172
|
+
"ed_trends_covid": "No Change",
|
|
173
|
+
"ed_trends_influenza": "Decreasing",
|
|
174
|
+
"ed_trends_rsv": "No Change",
|
|
175
|
+
"geography": "California",
|
|
176
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
177
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
178
|
+
"percent_visits_combined": "9.08",
|
|
179
|
+
"percent_visits_covid": "3.98",
|
|
180
|
+
"percent_visits_influenza": "4.85",
|
|
181
|
+
"percent_visits_rsv": "0.41",
|
|
182
|
+
"week_end": "2022-12-17"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"county": "Alameda",
|
|
186
|
+
"ed_trends_covid": "Decreasing",
|
|
187
|
+
"ed_trends_influenza": "Decreasing",
|
|
188
|
+
"ed_trends_rsv": "Decreasing",
|
|
189
|
+
"geography": "California",
|
|
190
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
191
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
192
|
+
"percent_visits_combined": "9.67",
|
|
193
|
+
"percent_visits_covid": "3.34",
|
|
194
|
+
"percent_visits_influenza": "6.07",
|
|
195
|
+
"percent_visits_rsv": "0.35",
|
|
196
|
+
"week_end": "2022-12-24"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"county": "Alameda",
|
|
200
|
+
"ed_trends_covid": "Decreasing",
|
|
201
|
+
"ed_trends_influenza": "Decreasing",
|
|
202
|
+
"ed_trends_rsv": "Decreasing",
|
|
203
|
+
"geography": "California",
|
|
204
|
+
"hsa": "Alameda (Oakland), CA - Contra Costa, CA",
|
|
205
|
+
"hsa_counties": "Alameda, Contra Costa",
|
|
206
|
+
"percent_visits_combined": "8.0",
|
|
207
|
+
"percent_visits_covid": "4.35",
|
|
208
|
+
"percent_visits_influenza": "3.51",
|
|
209
|
+
"percent_visits_rsv": "0.29",
|
|
210
|
+
"week_end": "2022-12-31"
|
|
211
|
+
}
|
|
212
|
+
]
|