@cdc/map 4.22.10 → 4.23.1

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 (58) hide show
  1. package/dist/495.js +3 -0
  2. package/dist/703.js +1 -0
  3. package/dist/856.js +3 -0
  4. package/dist/cdcmap.js +724 -120
  5. package/examples/bubble-us.json +362 -362
  6. package/examples/bubble-world.json +426 -426
  7. package/examples/city-state.json +434 -0
  8. package/examples/example-city-state.json +202 -25
  9. package/package.json +3 -4
  10. package/src/CdcMap.js +249 -423
  11. package/src/components/BubbleList.js +198 -240
  12. package/src/components/CityList.js +50 -97
  13. package/src/components/CountyMap.js +511 -600
  14. package/src/components/DataTable.js +223 -230
  15. package/src/components/EditorPanel.js +2395 -2551
  16. package/src/components/Filters.js +114 -0
  17. package/src/components/Geo.js +4 -14
  18. package/src/components/Modal.js +13 -23
  19. package/src/components/NavigationMenu.js +43 -39
  20. package/src/components/Sidebar.js +77 -93
  21. package/src/components/SingleStateMap.js +95 -151
  22. package/src/components/UsaMap.js +165 -214
  23. package/src/components/UsaRegionMap.js +122 -160
  24. package/src/components/WorldMap.js +96 -179
  25. package/src/components/ZoomableGroup.js +6 -26
  26. package/src/context.js +5 -0
  27. package/src/data/initial-state.js +20 -15
  28. package/src/data/supported-geos.js +3201 -3175
  29. package/src/hooks/useActiveElement.js +13 -13
  30. package/src/hooks/useColorPalette.ts +66 -74
  31. package/src/hooks/useZoomPan.js +22 -23
  32. package/src/index.html +32 -29
  33. package/src/scss/datatable.scss +1 -2
  34. package/src/scss/filters.scss +42 -0
  35. package/src/scss/main.scss +4 -3
  36. package/src/scss/sidebar.scss +22 -0
  37. package/examples/private/atsdr.json +0 -439
  38. package/examples/private/atsdr_new.json +0 -436
  39. package/examples/private/bubble.json +0 -285
  40. package/examples/private/city-state.json +0 -428
  41. package/examples/private/cty-issue.json +0 -42768
  42. package/examples/private/default-usa.json +0 -460
  43. package/examples/private/default-world-data.json +0 -1444
  44. package/examples/private/default.json +0 -968
  45. package/examples/private/legend-issue.json +0 -1
  46. package/examples/private/map-rounding-error.json +0 -42759
  47. package/examples/private/map.csv +0 -60
  48. package/examples/private/mdx.json +0 -210
  49. package/examples/private/monkeypox.json +0 -376
  50. package/examples/private/regions.json +0 -52
  51. package/examples/private/valid-data-map.csv +0 -59
  52. package/examples/private/wcmsrd-13881-data.json +0 -2858
  53. package/examples/private/wcmsrd-13881.json +0 -5823
  54. package/examples/private/wcmsrd-14492-data.json +0 -292
  55. package/examples/private/wcmsrd-14492.json +0 -114
  56. package/examples/private/wcmsrd-test.json +0 -268
  57. package/examples/private/world.json +0 -1580
  58. package/examples/private/worldmap.json +0 -1490
@@ -1,439 +0,0 @@
1
- {
2
- "columns": {
3
- "geo": {
4
- "dataTable": true,
5
- "label": "",
6
- "name": "State",
7
- "tooltip": false
8
- },
9
- "primary": {
10
- "dataTable": false,
11
- "label": "",
12
- "name": "Documents",
13
- "prefix": "",
14
- "suffix": "",
15
- "tooltip": false
16
- },
17
- "navigate": {
18
- "dataTable": false,
19
- "name": "URL",
20
- "tooltip": false
21
- }
22
- },
23
- "legend": {
24
- "numberOfItems": 1,
25
- "position": "side",
26
- "title": "Legend Title",
27
- "description": "Legend Text",
28
- "type": "equalnumber",
29
- "specialClasses": [
30
-
31
- ],
32
- "descriptions": {
33
-
34
- },
35
- "unified": false,
36
- "singleColumn": false,
37
- "dynamicDescription": false,
38
- "disabledAmt": 0,
39
- "geosPerColor": {
40
-
41
- },
42
- "data": [
43
-
44
- ]
45
- },
46
- "data": [
47
- {
48
- "State": "Alabama",
49
- "Abbreviation": "AL",
50
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AL",
51
- "Documents": 31
52
- },
53
- {
54
- "State": "Alaska",
55
- "Abbreviation": "AK",
56
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AK",
57
- "Documents": 37
58
- },
59
- {
60
- "State": "American Samoa",
61
- "Abbreviation": "AS",
62
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AS",
63
- "Documents": 0
64
- },
65
- {
66
- "State": "Arizona",
67
- "Abbreviation": "AZ",
68
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AZ",
69
- "Documents": 71
70
- },
71
- {
72
- "State": "Arkansas",
73
- "Abbreviation": "AR",
74
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AR",
75
- "Documents": 55
76
- },
77
- {
78
- "State": "California",
79
- "Abbreviation": "CA",
80
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=CA",
81
- "Documents": 120
82
- },
83
- {
84
- "State": "Colorado",
85
- "Abbreviation": "CO",
86
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=CO",
87
- "Documents": 60
88
- },
89
- {
90
- "State": "Commonwealth of Northern Marianas",
91
- "Abbreviation": "NI",
92
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NI",
93
- "Documents": 0
94
- },
95
- {
96
- "State": "Connecticut",
97
- "Abbreviation": "CT",
98
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=CT",
99
- "Documents": 69
100
- },
101
- {
102
- "State": "Delaware",
103
- "Abbreviation": "DE",
104
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=DE",
105
- "Documents": 7
106
- },
107
- {
108
- "State": "District of Columbia",
109
- "Abbreviation": "DC",
110
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=DC",
111
- "Documents": 9
112
- },
113
- {
114
- "State": "Florida",
115
- "Abbreviation": "FL",
116
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=FL",
117
- "Documents": 162
118
- },
119
- {
120
- "State": "Georgia",
121
- "Abbreviation": "GA",
122
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=GA",
123
- "Documents": 82
124
- },
125
- {
126
- "State": "Guam",
127
- "Abbreviation": "GU",
128
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=GU",
129
- "Documents": 3
130
- },
131
- {
132
- "State": "Hawaii",
133
- "Abbreviation": "HI",
134
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=HI",
135
- "Documents": 10
136
- },
137
- {
138
- "State": "Idaho",
139
- "Abbreviation": "ID",
140
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=ID",
141
- "Documents": 55
142
- },
143
- {
144
- "State": "Illinois",
145
- "Abbreviation": "IL",
146
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IL",
147
- "Documents": 191
148
- },
149
- {
150
- "State": "Indiana",
151
- "Abbreviation": "IN",
152
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IN",
153
- "Documents": 35
154
- },
155
- {
156
- "Condition": "Generic v2.0",
157
- "State": "CNMI",
158
- "Status": "Onboarding",
159
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IN"
160
- },
161
- {
162
- "Condition": "Generic v2.0",
163
- "State": "GU",
164
- "Abbreviation": "GU",
165
- "Status": "Production",
166
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IN"
167
- },
168
- {
169
- "State": "Iowa",
170
- "Abbreviation": "IA",
171
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IA",
172
- "Documents": 50
173
- },
174
- {
175
- "State": "Kansas",
176
- "Abbreviation": "KS",
177
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=KS",
178
- "Documents": 19
179
- },
180
- {
181
- "State": "Kentucky",
182
- "Abbreviation": "KY",
183
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=KY",
184
- "Documents": 17
185
- },
186
- {
187
- "State": "Louisiana",
188
- "Abbreviation": "LA",
189
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=LA",
190
- "Documents": 108
191
- },
192
- {
193
- "State": "Maine",
194
- "Abbreviation": "ME",
195
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=ME",
196
- "Documents": 22
197
- },
198
- {
199
- "State": "Maryland",
200
- "Abbreviation": "MD",
201
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MD",
202
- "Documents": 38
203
- },
204
- {
205
- "State": "Massachusetts",
206
- "Abbreviation": "MA",
207
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MA",
208
- "Documents": 101
209
- },
210
- {
211
- "State": "Michigan",
212
- "Abbreviation": "MI",
213
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MI",
214
- "Documents": 148
215
- },
216
- {
217
- "State": "Minnesota",
218
- "Abbreviation": "MN",
219
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MN",
220
- "Documents": 74
221
- },
222
- {
223
- "State": "Mississippi",
224
- "Abbreviation": "MS",
225
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MS",
226
- "Documents": 19
227
- },
228
- {
229
- "State": "Missouri",
230
- "Abbreviation": "MO",
231
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MO",
232
- "Documents": 73
233
- },
234
- {
235
- "State": "Montana",
236
- "Abbreviation": "MT",
237
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MT",
238
- "Documents": 25
239
- },
240
- {
241
- "State": "Nebraska",
242
- "Abbreviation": "NE",
243
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NE",
244
- "Documents": 21
245
- },
246
- {
247
- "State": "Nevada",
248
- "Abbreviation": "NV",
249
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NV",
250
- "Documents": 6
251
- },
252
- {
253
- "State": "New Hampshire",
254
- "Abbreviation": "NH",
255
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NH",
256
- "Documents": 55
257
- },
258
- {
259
- "State": "New Jersey",
260
- "Abbreviation": "NJ",
261
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NJ",
262
- "Documents": 130
263
- },
264
- {
265
- "State": "New Mexico",
266
- "Abbreviation": "NM",
267
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NM",
268
- "Documents": 22
269
- },
270
- {
271
- "State": "New York",
272
- "Abbreviation": "NY",
273
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NY",
274
- "Documents": 151
275
- },
276
- {
277
- "State": "North Carolina",
278
- "Abbreviation": "NC",
279
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NC",
280
- "Documents": 47
281
- },
282
- {
283
- "State": "North Dakota",
284
- "Abbreviation": "ND",
285
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=ND",
286
- "Documents": 0
287
- },
288
- {
289
- "State": "Ohio",
290
- "Abbreviation": "OH",
291
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=OH",
292
- "Documents": 110
293
- },
294
- {
295
- "State": "Oklahoma",
296
- "Abbreviation": "OK",
297
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=OK",
298
- "Documents": 12
299
- },
300
- {
301
- "State": "Oregon",
302
- "Abbreviation": "OR",
303
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=OR",
304
- "Documents": 50
305
- },
306
- {
307
- "State": "Pennsylvania",
308
- "Abbreviation": "PA",
309
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=PA",
310
- "Documents": 144
311
- },
312
- {
313
- "State": "Puerto Rico",
314
- "Abbreviation": "PR",
315
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=PR",
316
- "Documents": 33
317
- },
318
- {
319
- "State": "Rhode Island",
320
- "Abbreviation": "RI",
321
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=RI",
322
- "Documents": 11
323
- },
324
- {
325
- "State": "South Carolina",
326
- "Abbreviation": "SC",
327
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=SC",
328
- "Documents": 41
329
- },
330
- {
331
- "State": "South Dakota",
332
- "Abbreviation": "SD",
333
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=SD",
334
- "Documents": 5
335
- },
336
- {
337
- "State": "Tennessee",
338
- "Abbreviation": "TN",
339
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=TN",
340
- "Documents": 105
341
- },
342
- {
343
- "State": "Texas",
344
- "Abbreviation": "TX",
345
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=TX",
346
- "Documents": 134
347
- },
348
- {
349
- "State": "Trust Territories",
350
- "Abbreviation": "TT",
351
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=TT",
352
- "Documents": 0
353
- },
354
- {
355
- "State": "Utah",
356
- "Abbreviation": "UT",
357
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=UT",
358
- "Documents": 42
359
- },
360
- {
361
- "State": "Vermont",
362
- "Abbreviation": "VT",
363
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=VT",
364
- "Documents": 10
365
- },
366
- {
367
- "State": "Virgin Islands",
368
- "Abbreviation": "VI",
369
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=VI",
370
- "Documents": 3
371
- },
372
- {
373
- "State": "Virginia",
374
- "Abbreviation": "VA",
375
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=VA",
376
- "Documents": 38
377
- },
378
- {
379
- "State": "Washington",
380
- "Abbreviation": "WA",
381
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WA",
382
- "Documents": 152
383
- },
384
- {
385
- "State": "West Virginia",
386
- "Abbreviation": "WV",
387
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WV",
388
- "Documents": 31
389
- },
390
- {
391
- "State": "Wisconsin",
392
- "Abbreviation": "WI",
393
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WI",
394
- "Documents": 106
395
- },
396
- {
397
- "State": "Wyoming",
398
- "Abbreviation": "WY",
399
- "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WY",
400
- "Documents": 4
401
- },
402
- {
403
- "State": null
404
- }
405
- ],
406
- "filters": [
407
-
408
- ],
409
- "sharing": {
410
- "enabled": false,
411
- "dataHost": "wcms-wp-test.cdc.gov",
412
- "configUrl": "/newtest/lewisc/ATSDR_Map.json"
413
- },
414
- "general": {
415
- "title": "Find a Publication - Hover over location to view state or territory name",
416
- "subtext": "",
417
- "territoriesLabel": "Territories",
418
- "type": "data",
419
- "geoType": "us",
420
- "headerColor": "theme-cyan",
421
- "showSidebar": false,
422
- "showTitle": true,
423
- "showDownloadButton": false,
424
- "expandDataTable": false,
425
- "backgroundColor": "#f5f5f5",
426
- "geoBorderColor": "darkGray",
427
- "modalOpen": false,
428
- "modalContent": null
429
- },
430
- "dataTable": {
431
- "title": "Public Heatlh Assessment State Listing"
432
- },
433
- "tooltips": {
434
- "appearanceType": "hover",
435
- "linkLabel": "Learn More",
436
- "capitalizeLabels": false
437
- },
438
- "color": "greenbluereverse"
439
- }