@cdc/dashboard 4.26.3 → 4.26.4

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 (85) hide show
  1. package/CONFIG.md +172 -0
  2. package/README.md +60 -20
  3. package/dist/cdcdashboard-CY9IcPSi.es.js +6 -0
  4. package/dist/cdcdashboard-DlpiY3fQ.es.js +4 -0
  5. package/dist/cdcdashboard.js +51744 -49003
  6. package/examples/__data__/data-2.json +6 -0
  7. package/examples/__data__/data.json +6 -0
  8. package/examples/legend-issue.json +1 -1
  9. package/examples/minimal-example.json +34 -0
  10. package/examples/private/dengue.json +4640 -0
  11. package/examples/private/link_to_file.json +16662 -0
  12. package/examples/sankey.json +3 -3
  13. package/examples/test-api-filter-reset.json +4 -4
  14. package/examples/tp5-test.json +86 -4
  15. package/package.json +9 -9
  16. package/src/CdcDashboardComponent.tsx +1 -1
  17. package/src/_stories/Dashboard.smoke.stories.tsx +33 -0
  18. package/src/_stories/Dashboard.stories.tsx +43 -2
  19. package/src/_stories/_mock/dashboard-data-driven-colors.json +171 -0
  20. package/src/_stories/_mock/tp5-test.json +86 -5
  21. package/src/components/DashboardEditors.tsx +15 -0
  22. package/src/components/DashboardFilters/DashboardFilters.test.tsx +129 -0
  23. package/src/components/DashboardFilters/DashboardFilters.tsx +10 -7
  24. package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +5 -4
  25. package/src/components/DashboardFilters/DashboardFiltersEditor/components/APIModal.tsx +5 -3
  26. package/src/components/DashboardFilters/DashboardFiltersEditor/components/DeleteFilterModal.tsx +59 -58
  27. package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.test.tsx +127 -0
  28. package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.tsx +28 -4
  29. package/src/components/DashboardFilters/DashboardFiltersEditor/components/NestedDropDownDashboard.tsx +2 -2
  30. package/src/components/ExpandCollapseButtons.tsx +6 -4
  31. package/src/components/Grid.tsx +4 -3
  32. package/src/components/MultiConfigTabs/MultiConfigTabs.tsx +141 -140
  33. package/src/components/Row.tsx +11 -10
  34. package/src/components/VisualizationRow.tsx +71 -20
  35. package/src/components/VisualizationsPanel/VisualizationsPanel.tsx +1 -1
  36. package/src/components/Widget/Widget.tsx +5 -4
  37. package/src/components/Widget/widget.styles.css +41 -10
  38. package/src/data/initial-state.js +1 -0
  39. package/src/helpers/addVisualization.ts +3 -1
  40. package/src/helpers/tests/addVisualization.test.ts +1 -1
  41. package/src/scss/grid.scss +38 -8
  42. package/src/scss/main.scss +110 -38
  43. package/src/store/dashboard.reducer.ts +1 -0
  44. package/src/test/CdcDashboard.test.jsx +24 -0
  45. package/src/types/SharedFilter.ts +1 -0
  46. package/tests/fixtures/dashboard-config-with-metadata.json +1 -1
  47. package/LICENSE +0 -201
  48. package/dist/cdcdashboard-vr9HZwRt.es.js +0 -6
  49. package/examples/DEV-6574.json +0 -2224
  50. package/examples/api-dashboard-data.json +0 -272
  51. package/examples/api-dashboard-years.json +0 -11
  52. package/examples/api-geographies-data.json +0 -11
  53. package/examples/chart-data.json +0 -5409
  54. package/examples/custom/css/respiratory.css +0 -236
  55. package/examples/custom/js/respiratory.js +0 -242
  56. package/examples/default-data.json +0 -368
  57. package/examples/default-filter-control.json +0 -209
  58. package/examples/default-multi-dataset-shared-filter.json +0 -1729
  59. package/examples/default-multi-dataset.json +0 -506
  60. package/examples/ed-visits-county-file.json +0 -402
  61. package/examples/filters/Alabama.json +0 -72
  62. package/examples/filters/Alaska.json +0 -1737
  63. package/examples/filters/Arkansas.json +0 -4713
  64. package/examples/filters/California.json +0 -212
  65. package/examples/filters/Colorado.json +0 -1500
  66. package/examples/filters/Connecticut.json +0 -559
  67. package/examples/filters/Delaware.json +0 -63
  68. package/examples/filters/DistrictofColumbia.json +0 -63
  69. package/examples/filters/Florida.json +0 -4217
  70. package/examples/filters/States.json +0 -146
  71. package/examples/state-level.json +0 -90136
  72. package/examples/state-points.json +0 -10474
  73. package/examples/temp-example-data.json +0 -130
  74. package/examples/test-dashboard-simple.json +0 -503
  75. package/examples/test-example.json +0 -752
  76. package/examples/test-file.json +0 -147
  77. package/examples/test.json +0 -752
  78. package/examples/testing.json +0 -94456
  79. /package/examples/{data → __data__}/data-with-metadata.json +0 -0
  80. /package/examples/{legend-issue-data.json → __data__/legend-issue-data.json} +0 -0
  81. /package/examples/api-test/{categories.json → __data__/categories.json} +0 -0
  82. /package/examples/api-test/{chart-data.json → __data__/chart-data.json} +0 -0
  83. /package/examples/api-test/{topics.json → __data__/topics.json} +0 -0
  84. /package/examples/api-test/{years.json → __data__/years.json} +0 -0
  85. /package/src/_stories/{Dashboard.Pages.stories.tsx → Dashboard.Pages.smoke.stories.tsx} +0 -0
@@ -1,146 +0,0 @@
1
- [
2
- {
3
- "geography": "Alabama"
4
- },
5
- {
6
- "geography": "Alaska"
7
- },
8
- {
9
- "geography": "Arizona"
10
- },
11
- {
12
- "geography": "Arkansas"
13
- },
14
- {
15
- "geography": "California"
16
- },
17
- {
18
- "geography": "Colorado"
19
- },
20
- {
21
- "geography": "Connecticut"
22
- },
23
- {
24
- "geography": "Delaware"
25
- },
26
- {
27
- "geography": "District of Columbia"
28
- },
29
- {
30
- "geography": "Florida"
31
- },
32
- {
33
- "geography": "Georgia"
34
- },
35
- {
36
- "geography": "Hawaii"
37
- },
38
- {
39
- "geography": "Idaho"
40
- },
41
- {
42
- "geography": "Illinois"
43
- },
44
- {
45
- "geography": "Indiana"
46
- },
47
- {
48
- "geography": "Iowa"
49
- },
50
- {
51
- "geography": "Kansas"
52
- },
53
- {
54
- "geography": "Kentucky"
55
- },
56
- {
57
- "geography": "Louisiana"
58
- },
59
- {
60
- "geography": "Maine"
61
- },
62
- {
63
- "geography": "Maryland"
64
- },
65
- {
66
- "geography": "Massachusetts"
67
- },
68
- {
69
- "geography": "Michigan"
70
- },
71
- {
72
- "geography": "Minnesota"
73
- },
74
- {
75
- "geography": "Mississippi"
76
- },
77
- {
78
- "geography": "Montana"
79
- },
80
- {
81
- "geography": "Nebraska"
82
- },
83
- {
84
- "geography": "Nevada"
85
- },
86
- {
87
- "geography": "New Jersey"
88
- },
89
- {
90
- "geography": "New Mexico"
91
- },
92
- {
93
- "geography": "New York"
94
- },
95
- {
96
- "geography": "North Carolina"
97
- },
98
- {
99
- "geography": "North Dakota"
100
- },
101
- {
102
- "geography": "Ohio"
103
- },
104
- {
105
- "geography": "Oklahoma"
106
- },
107
- {
108
- "geography": "Oregon"
109
- },
110
- {
111
- "geography": "Pennsylvania"
112
- },
113
- {
114
- "geography": "Rhode Island"
115
- },
116
- {
117
- "geography": "South Carolina"
118
- },
119
- {
120
- "geography": "Tennessee"
121
- },
122
- {
123
- "geography": "Texas"
124
- },
125
- {
126
- "geography": "United States"
127
- },
128
- {
129
- "geography": "Utah"
130
- },
131
- {
132
- "geography": "Vermont"
133
- },
134
- {
135
- "geography": "Virginia"
136
- },
137
- {
138
- "geography": "West Virginia"
139
- },
140
- {
141
- "geography": "Wisconsin"
142
- },
143
- {
144
- "geography": "Wyoming"
145
- }
146
- ]