@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.
- package/CONFIG.md +172 -0
- package/README.md +60 -20
- package/dist/cdcdashboard-CY9IcPSi.es.js +6 -0
- package/dist/cdcdashboard-DlpiY3fQ.es.js +4 -0
- package/dist/cdcdashboard.js +51744 -49003
- package/examples/__data__/data-2.json +6 -0
- package/examples/__data__/data.json +6 -0
- package/examples/legend-issue.json +1 -1
- package/examples/minimal-example.json +34 -0
- package/examples/private/dengue.json +4640 -0
- package/examples/private/link_to_file.json +16662 -0
- package/examples/sankey.json +3 -3
- package/examples/test-api-filter-reset.json +4 -4
- package/examples/tp5-test.json +86 -4
- package/package.json +9 -9
- package/src/CdcDashboardComponent.tsx +1 -1
- package/src/_stories/Dashboard.smoke.stories.tsx +33 -0
- package/src/_stories/Dashboard.stories.tsx +43 -2
- package/src/_stories/_mock/dashboard-data-driven-colors.json +171 -0
- package/src/_stories/_mock/tp5-test.json +86 -5
- package/src/components/DashboardEditors.tsx +15 -0
- package/src/components/DashboardFilters/DashboardFilters.test.tsx +129 -0
- package/src/components/DashboardFilters/DashboardFilters.tsx +10 -7
- package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +5 -4
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/APIModal.tsx +5 -3
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/DeleteFilterModal.tsx +59 -58
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.test.tsx +127 -0
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.tsx +28 -4
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/NestedDropDownDashboard.tsx +2 -2
- package/src/components/ExpandCollapseButtons.tsx +6 -4
- package/src/components/Grid.tsx +4 -3
- package/src/components/MultiConfigTabs/MultiConfigTabs.tsx +141 -140
- package/src/components/Row.tsx +11 -10
- package/src/components/VisualizationRow.tsx +71 -20
- package/src/components/VisualizationsPanel/VisualizationsPanel.tsx +1 -1
- package/src/components/Widget/Widget.tsx +5 -4
- package/src/components/Widget/widget.styles.css +41 -10
- package/src/data/initial-state.js +1 -0
- package/src/helpers/addVisualization.ts +3 -1
- package/src/helpers/tests/addVisualization.test.ts +1 -1
- package/src/scss/grid.scss +38 -8
- package/src/scss/main.scss +110 -38
- package/src/store/dashboard.reducer.ts +1 -0
- package/src/test/CdcDashboard.test.jsx +24 -0
- package/src/types/SharedFilter.ts +1 -0
- package/tests/fixtures/dashboard-config-with-metadata.json +1 -1
- package/LICENSE +0 -201
- package/dist/cdcdashboard-vr9HZwRt.es.js +0 -6
- package/examples/DEV-6574.json +0 -2224
- package/examples/api-dashboard-data.json +0 -272
- package/examples/api-dashboard-years.json +0 -11
- package/examples/api-geographies-data.json +0 -11
- package/examples/chart-data.json +0 -5409
- package/examples/custom/css/respiratory.css +0 -236
- package/examples/custom/js/respiratory.js +0 -242
- package/examples/default-data.json +0 -368
- package/examples/default-filter-control.json +0 -209
- package/examples/default-multi-dataset-shared-filter.json +0 -1729
- package/examples/default-multi-dataset.json +0 -506
- package/examples/ed-visits-county-file.json +0 -402
- package/examples/filters/Alabama.json +0 -72
- package/examples/filters/Alaska.json +0 -1737
- package/examples/filters/Arkansas.json +0 -4713
- package/examples/filters/California.json +0 -212
- package/examples/filters/Colorado.json +0 -1500
- package/examples/filters/Connecticut.json +0 -559
- package/examples/filters/Delaware.json +0 -63
- package/examples/filters/DistrictofColumbia.json +0 -63
- package/examples/filters/Florida.json +0 -4217
- package/examples/filters/States.json +0 -146
- package/examples/state-level.json +0 -90136
- package/examples/state-points.json +0 -10474
- package/examples/temp-example-data.json +0 -130
- package/examples/test-dashboard-simple.json +0 -503
- package/examples/test-example.json +0 -752
- package/examples/test-file.json +0 -147
- package/examples/test.json +0 -752
- package/examples/testing.json +0 -94456
- /package/examples/{data → __data__}/data-with-metadata.json +0 -0
- /package/examples/{legend-issue-data.json → __data__/legend-issue-data.json} +0 -0
- /package/examples/api-test/{categories.json → __data__/categories.json} +0 -0
- /package/examples/api-test/{chart-data.json → __data__/chart-data.json} +0 -0
- /package/examples/api-test/{topics.json → __data__/topics.json} +0 -0
- /package/examples/api-test/{years.json → __data__/years.json} +0 -0
- /package/src/_stories/{Dashboard.Pages.stories.tsx → Dashboard.Pages.smoke.stories.tsx} +0 -0
package/examples/test-file.json
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"dashboard": {
|
|
3
|
-
"theme": "theme-blue",
|
|
4
|
-
"sharedFilters": [
|
|
5
|
-
{
|
|
6
|
-
"key": "Topic",
|
|
7
|
-
"showDropdown": true,
|
|
8
|
-
"type": "urlfilter",
|
|
9
|
-
"apiFilter": {
|
|
10
|
-
"apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=statesystem_cessation&$select=distinct%20Topic",
|
|
11
|
-
"valueSelector": "Topic",
|
|
12
|
-
"textSelector": ""
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"key": "Quarter",
|
|
17
|
-
"showDropdown": true,
|
|
18
|
-
"type": "urlfilter",
|
|
19
|
-
"apiFilter": {
|
|
20
|
-
"apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=statesystem_cessation&$select=distinct%20Quarter",
|
|
21
|
-
"valueSelector": "Quarter",
|
|
22
|
-
"textSelector": ""
|
|
23
|
-
},
|
|
24
|
-
"parents": [
|
|
25
|
-
"Topic"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"key": "YearQuarter",
|
|
30
|
-
"showDropdown": true,
|
|
31
|
-
"type": "urlfilter",
|
|
32
|
-
"apiFilter": {
|
|
33
|
-
"apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=statesystem_cessation&$select=distinct YearQuarter,Year",
|
|
34
|
-
"valueSelector": "Year",
|
|
35
|
-
"textSelector": "YearQuarter"
|
|
36
|
-
},
|
|
37
|
-
"parents": [
|
|
38
|
-
"Topic",
|
|
39
|
-
"Quarter"
|
|
40
|
-
],
|
|
41
|
-
"multiSelect": true
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"rows": [
|
|
46
|
-
{
|
|
47
|
-
"columns": [
|
|
48
|
-
{
|
|
49
|
-
"width": 12,
|
|
50
|
-
"widget": "dashboardFilters1723058075362"
|
|
51
|
-
},
|
|
52
|
-
{},
|
|
53
|
-
{}
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"columns": [
|
|
58
|
-
{
|
|
59
|
-
"width": 12,
|
|
60
|
-
"widget": "dashboardFilters1723058794676"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"columns": [
|
|
66
|
-
{
|
|
67
|
-
"width": 12,
|
|
68
|
-
"widget": "table1724779017139"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"visualizations": {
|
|
74
|
-
"dashboardFilters1723058075362": {
|
|
75
|
-
"filters": [],
|
|
76
|
-
"filterBehavior": "Apply Button",
|
|
77
|
-
"newViz": true,
|
|
78
|
-
"openModal": true,
|
|
79
|
-
"uid": "dashboardFilters1723058075362",
|
|
80
|
-
"type": "dashboardFilters",
|
|
81
|
-
"sharedFilterIndexes": [
|
|
82
|
-
0,
|
|
83
|
-
1
|
|
84
|
-
],
|
|
85
|
-
"visualizationType": "dashboardFilters",
|
|
86
|
-
"editing": false
|
|
87
|
-
},
|
|
88
|
-
"dashboardFilters1723058794676": {
|
|
89
|
-
"filters": [],
|
|
90
|
-
"filterBehavior": "Filter Change",
|
|
91
|
-
"newViz": true,
|
|
92
|
-
"openModal": true,
|
|
93
|
-
"uid": "dashboardFilters1723058794676",
|
|
94
|
-
"type": "dashboardFilters",
|
|
95
|
-
"sharedFilterIndexes": [
|
|
96
|
-
2
|
|
97
|
-
],
|
|
98
|
-
"visualizationType": "dashboardFilters",
|
|
99
|
-
"editing": false,
|
|
100
|
-
"autoLoad": true
|
|
101
|
-
},
|
|
102
|
-
"table1724779017139": {
|
|
103
|
-
"filters": [],
|
|
104
|
-
"filterBehavior": "Filter Change",
|
|
105
|
-
"newViz": false,
|
|
106
|
-
"openModal": true,
|
|
107
|
-
"uid": "table1724779017139",
|
|
108
|
-
"type": "table",
|
|
109
|
-
"table": {
|
|
110
|
-
"label": "Data Table",
|
|
111
|
-
"show": true,
|
|
112
|
-
"showDownloadUrl": false,
|
|
113
|
-
"showVertical": true,
|
|
114
|
-
"expanded": true,
|
|
115
|
-
"collapsible": true
|
|
116
|
-
},
|
|
117
|
-
"columns": {},
|
|
118
|
-
"dataFormat": {},
|
|
119
|
-
"visualizationType": "table",
|
|
120
|
-
"dataDescription": {
|
|
121
|
-
"horizontal": false,
|
|
122
|
-
"series": false
|
|
123
|
-
},
|
|
124
|
-
"dataKey": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=statesystem_cessation"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
"table": {
|
|
128
|
-
"label": "Data Table",
|
|
129
|
-
"show": true,
|
|
130
|
-
"showDownloadUrl": false,
|
|
131
|
-
"showVertical": true
|
|
132
|
-
},
|
|
133
|
-
"datasets": {
|
|
134
|
-
"https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=statesystem_cessation": {
|
|
135
|
-
"dataFileSize": 19076,
|
|
136
|
-
"dataFileName": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=statesystem_cessation",
|
|
137
|
-
"dataFileSourceType": "url",
|
|
138
|
-
"dataFileFormat": "JSON",
|
|
139
|
-
"preview": true,
|
|
140
|
-
"dataUrl": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=statesystem_cessation"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"type": "dashboard",
|
|
144
|
-
"version": "4.24.9",
|
|
145
|
-
"uuid": 1724778985218,
|
|
146
|
-
"runtime": {}
|
|
147
|
-
}
|