@cdc/dashboard 1.1.2 → 9.22.9
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 +159 -48
- package/examples/default-filter-control.json +175 -0
- package/examples/default-multi-dataset.json +498 -0
- package/examples/default.json +36 -348
- package/examples/private/chart-issue.json +3467 -0
- package/examples/private/no-issue.json +3467 -0
- package/examples/private/totals-two.json +104 -0
- package/examples/private/totals.json +103 -0
- package/examples/temp-example-data.json +130 -0
- package/examples/test-example.json +1 -0
- package/package.json +14 -8
- package/src/CdcDashboard.js +282 -156
- package/src/CdcDashboard.jsx +668 -0
- package/src/{context.tsx → ConfigContext.js} +0 -0
- package/src/components/{Column.js → Column.jsx} +9 -7
- package/src/components/DataTable.tsx +55 -54
- package/src/components/EditorPanel.js +207 -45
- package/src/components/{Grid.js → Grid.jsx} +5 -4
- package/src/components/Header.jsx +242 -0
- package/src/components/Row.js +1 -0
- package/src/components/Row.jsx +181 -0
- package/src/components/Row.jsx~HEAD +212 -0
- package/src/components/Widget.js +24 -5
- package/src/components/Widget.jsx +191 -0
- package/src/index.html +14 -11
- package/src/scss/editor-panel.scss +53 -49
- package/src/scss/grid.scss +61 -14
- package/src/scss/main.scss +73 -9
- package/LICENSE +0 -201
- package/src/components/Header.js +0 -15
- package/src/images/icon-close.svg +0 -1
- package/src/images/icon-down.svg +0 -1
- package/src/images/icon-edit.svg +0 -1
- package/src/images/icon-move.svg +0 -8
- package/src/images/icon-up.svg +0 -1
- package/src/images/warning.svg +0 -1
package/examples/default.json
CHANGED
|
@@ -2,370 +2,58 @@
|
|
|
2
2
|
"type":"dashboard",
|
|
3
3
|
"data": [
|
|
4
4
|
{
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
5
|
+
"name": "Jupiter",
|
|
6
|
+
"Radius": "10.97",
|
|
7
|
+
"Diameter": "22",
|
|
8
|
+
"distance": "0"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
11
|
+
"name": "Saturn",
|
|
12
|
+
"Radius": "9.14",
|
|
13
|
+
"Diameter": "18",
|
|
14
|
+
"distance": "0"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
17
|
+
"name": "Uranus",
|
|
18
|
+
"Radius": "3.98",
|
|
19
|
+
"Diameter": "8",
|
|
20
|
+
"distance": "0"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
23
|
+
"name": "Neptune",
|
|
24
|
+
"Radius": "3.86",
|
|
25
|
+
"Diameter": "7",
|
|
26
|
+
"distance": "0"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
29
|
+
"name": "Earth",
|
|
30
|
+
"Radius": "1",
|
|
31
|
+
"Diameter": "2",
|
|
32
|
+
"distance": "0"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"name": "Venus",
|
|
36
|
+
"Radius": "0.950",
|
|
37
|
+
"Diameter": "2",
|
|
38
|
+
"distance": "0"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
41
|
+
"name": "Mars",
|
|
42
|
+
"Radius": "0.532",
|
|
43
|
+
"Diameter": "1",
|
|
44
|
+
"distance": "0"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
47
|
+
"name": "Mercury",
|
|
48
|
+
"Radius": "0.383",
|
|
49
|
+
"Diameter": "0.7",
|
|
50
|
+
"distance": "0"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"filter1": "option1",
|
|
60
|
-
"filter2": "sub option 1",
|
|
61
|
-
"Insured Rate": "77",
|
|
62
|
-
"state": "District of Columbia"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"filter1": "option1",
|
|
66
|
-
"filter2": "sub option 1",
|
|
67
|
-
"Insured Rate": "83",
|
|
68
|
-
"state": "Florida"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"filter1": "option2",
|
|
72
|
-
"filter2": "sub option 1",
|
|
73
|
-
"Insured Rate": "100",
|
|
74
|
-
"state": "Alabama"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"filter1": "option2",
|
|
78
|
-
"filter2": "sub option 1",
|
|
79
|
-
"Insured Rate": "0",
|
|
80
|
-
"state": "Alaska"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"filter1": "option2",
|
|
84
|
-
"filter2": "sub option 1",
|
|
85
|
-
"Insured Rate": "72.7",
|
|
86
|
-
"state": "Arizona"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"filter1": "option2",
|
|
90
|
-
"filter2": "sub option 1",
|
|
91
|
-
"Insured Rate": "78.7",
|
|
92
|
-
"state": "Arkansas"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"filter1": "option2",
|
|
96
|
-
"filter2": "sub option 1",
|
|
97
|
-
"Insured Rate": "37.2",
|
|
98
|
-
"state": "California"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"filter1": "option2",
|
|
102
|
-
"filter2": "sub option 1",
|
|
103
|
-
"Insured Rate": "50.6",
|
|
104
|
-
"state": "Colorado"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"filter1": "option2",
|
|
108
|
-
"filter2": "sub option 1",
|
|
109
|
-
"Insured Rate": "83.2",
|
|
110
|
-
"state": "Connecticut"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"filter1": "option2",
|
|
114
|
-
"filter2": "sub option 1",
|
|
115
|
-
"Insured Rate": "90",
|
|
116
|
-
"state": "Delaware"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"filter1": "option2",
|
|
120
|
-
"filter2": "sub option 1",
|
|
121
|
-
"Insured Rate": "77",
|
|
122
|
-
"state": "District of Columbia"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"filter1": "option2",
|
|
126
|
-
"filter2": "sub option 1",
|
|
127
|
-
"Insured Rate": "83",
|
|
128
|
-
"state": "Florida"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"filter1": "option3",
|
|
132
|
-
"filter2": "sub option 1",
|
|
133
|
-
"Insured Rate": "0",
|
|
134
|
-
"state": "Alabama"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"filter1": "option3",
|
|
138
|
-
"filter2": "sub option 1",
|
|
139
|
-
"Insured Rate": "0",
|
|
140
|
-
"state": "Alaska"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"filter1": "option3",
|
|
144
|
-
"filter2": "sub option 1",
|
|
145
|
-
"Insured Rate": "72.7",
|
|
146
|
-
"state": "Arizona"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"filter1": "option3",
|
|
150
|
-
"filter2": "sub option 1",
|
|
151
|
-
"Insured Rate": "78.7",
|
|
152
|
-
"state": "Arkansas"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"filter1": "option3",
|
|
156
|
-
"filter2": "sub option 1",
|
|
157
|
-
"Insured Rate": "37.2",
|
|
158
|
-
"state": "California"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"filter1": "option3",
|
|
162
|
-
"filter2": "sub option 1",
|
|
163
|
-
"Insured Rate": "50.6",
|
|
164
|
-
"state": "Colorado"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"filter1": "option3",
|
|
168
|
-
"filter2": "sub option 1",
|
|
169
|
-
"Insured Rate": "83.2",
|
|
170
|
-
"state": "Connecticut"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"filter1": "option3",
|
|
174
|
-
"filter2": "sub option 1",
|
|
175
|
-
"Insured Rate": "90",
|
|
176
|
-
"state": "Delaware"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"filter1": "option3",
|
|
180
|
-
"filter2": "sub option 1",
|
|
181
|
-
"Insured Rate": "77",
|
|
182
|
-
"state": "District of Columbia"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"filter1": "option3",
|
|
186
|
-
"filter2": "sub option 1",
|
|
187
|
-
"Insured Rate": "83",
|
|
188
|
-
"state": "Florida"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"filter1": "option1",
|
|
192
|
-
"filter2": "sub option 2",
|
|
193
|
-
"Insured Rate": "43",
|
|
194
|
-
"state": "Alabama"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"filter1": "option1",
|
|
198
|
-
"filter2": "sub option 2",
|
|
199
|
-
"Insured Rate": "0",
|
|
200
|
-
"state": "Alaska"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"filter1": "option1",
|
|
204
|
-
"filter2": "sub option 2",
|
|
205
|
-
"Insured Rate": "72.7",
|
|
206
|
-
"state": "Arizona"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"filter1": "option1",
|
|
210
|
-
"filter2": "sub option 2",
|
|
211
|
-
"Insured Rate": "78.7",
|
|
212
|
-
"state": "Arkansas"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"filter1": "option1",
|
|
216
|
-
"filter2": "sub option 2",
|
|
217
|
-
"Insured Rate": "37.2",
|
|
218
|
-
"state": "California"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"filter1": "option1",
|
|
222
|
-
"filter2": "sub option 2",
|
|
223
|
-
"Insured Rate": "50.6",
|
|
224
|
-
"state": "Colorado"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"filter1": "option1",
|
|
228
|
-
"filter2": "sub option 2",
|
|
229
|
-
"Insured Rate": "83.2",
|
|
230
|
-
"state": "Connecticut"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"filter1": "option1",
|
|
234
|
-
"filter2": "sub option 2",
|
|
235
|
-
"Insured Rate": "90",
|
|
236
|
-
"state": "Delaware"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"filter1": "option1",
|
|
240
|
-
"filter2": "sub option 2",
|
|
241
|
-
"Insured Rate": "77",
|
|
242
|
-
"state": "District of Columbia"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"filter1": "option1",
|
|
246
|
-
"filter2": "sub option 2",
|
|
247
|
-
"Insured Rate": "83",
|
|
248
|
-
"state": "Florida"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"filter1": "option2",
|
|
252
|
-
"filter2": "sub option 2",
|
|
253
|
-
"Insured Rate": "43",
|
|
254
|
-
"state": "Alabama"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"filter1": "option2",
|
|
258
|
-
"filter2": "sub option 2",
|
|
259
|
-
"Insured Rate": "0",
|
|
260
|
-
"state": "Alaska"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"filter1": "option2",
|
|
264
|
-
"filter2": "sub option 2",
|
|
265
|
-
"Insured Rate": "72.7",
|
|
266
|
-
"state": "Arizona"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"filter1": "option2",
|
|
270
|
-
"filter2": "sub option 2",
|
|
271
|
-
"Insured Rate": "78.7",
|
|
272
|
-
"state": "Arkansas"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"filter1": "option2",
|
|
276
|
-
"filter2": "sub option 2",
|
|
277
|
-
"Insured Rate": "37.2",
|
|
278
|
-
"state": "California"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"filter1": "option2",
|
|
282
|
-
"filter2": "sub option 2",
|
|
283
|
-
"Insured Rate": "50.6",
|
|
284
|
-
"state": "Colorado"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"filter1": "option2",
|
|
288
|
-
"filter2": "sub option 2",
|
|
289
|
-
"Insured Rate": "83.2",
|
|
290
|
-
"state": "Connecticut"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"filter1": "option2",
|
|
294
|
-
"filter2": "sub option 2",
|
|
295
|
-
"Insured Rate": "90",
|
|
296
|
-
"state": "Delaware"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"filter1": "option2",
|
|
300
|
-
"filter2": "sub option 2",
|
|
301
|
-
"Insured Rate": "77",
|
|
302
|
-
"state": "District of Columbia"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"filter1": "option2",
|
|
306
|
-
"filter2": "sub option 2",
|
|
307
|
-
"Insured Rate": "83",
|
|
308
|
-
"state": "Florida"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"filter1": "option3",
|
|
312
|
-
"filter2": "sub option 2",
|
|
313
|
-
"Insured Rate": "43",
|
|
314
|
-
"state": "Alabama"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"filter1": "option3",
|
|
318
|
-
"filter2": "sub option 2",
|
|
319
|
-
"Insured Rate": "0",
|
|
320
|
-
"state": "Alaska"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"filter1": "option3",
|
|
324
|
-
"filter2": "sub option 2",
|
|
325
|
-
"Insured Rate": "72.7",
|
|
326
|
-
"state": "Arizona"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"filter1": "option3",
|
|
330
|
-
"filter2": "sub option 2",
|
|
331
|
-
"Insured Rate": "78.7",
|
|
332
|
-
"state": "Arkansas"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"filter1": "option3",
|
|
336
|
-
"filter2": "sub option 2",
|
|
337
|
-
"Insured Rate": "37.2",
|
|
338
|
-
"state": "California"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"filter1": "option3",
|
|
342
|
-
"filter2": "sub option 2",
|
|
343
|
-
"Insured Rate": "50.6",
|
|
344
|
-
"state": "Colorado"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"filter1": "option3",
|
|
348
|
-
"filter2": "sub option 2",
|
|
349
|
-
"Insured Rate": "83.2",
|
|
350
|
-
"state": "Connecticut"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"filter1": "option3",
|
|
354
|
-
"filter2": "sub option 2",
|
|
355
|
-
"Insured Rate": "90",
|
|
356
|
-
"state": "Delaware"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"filter1": "option3",
|
|
360
|
-
"filter2": "sub option 2",
|
|
361
|
-
"Insured Rate": "77",
|
|
362
|
-
"state": "District of Columbia"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"filter1": "option3",
|
|
366
|
-
"filter2": "sub option 2",
|
|
367
|
-
"Insured Rate": "83",
|
|
368
|
-
"state": "Florida"
|
|
53
|
+
"name": "Pluto",
|
|
54
|
+
"Radius": "0.181",
|
|
55
|
+
"Diameter": "0.3",
|
|
56
|
+
"distance": "0"
|
|
369
57
|
}
|
|
370
58
|
],
|
|
371
59
|
"dashboard": {
|