@cdc/dashboard 4.24.4 → 4.24.5
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 +131937 -104935
- package/index.html +3 -3
- package/package.json +9 -9
- package/src/CdcDashboardComponent.tsx +73 -110
- package/src/_stories/Dashboard.stories.tsx +39 -15
- package/src/_stories/_mock/api-filter-chart.json +35 -11
- package/src/_stories/_mock/api-filter-map.json +31 -17
- package/src/_stories/_mock/dashboard-gallery.json +534 -523
- package/src/_stories/_mock/markup-include.json +78 -0
- package/src/_stories/_mock/multi-dashboards.json +914 -0
- package/src/_stories/_mock/pivot-filter.json +2 -0
- package/src/_stories/_mock/standalone-table.json +2 -0
- package/src/components/Header/FilterModal.tsx +14 -10
- package/src/components/MultiConfigTabs/MultiTabs.tsx +3 -2
- package/src/components/VisualizationRow.tsx +14 -5
- package/src/components/VisualizationsPanel.tsx +26 -3
- package/src/components/Widget.tsx +2 -2
- package/src/helpers/filterData.ts +15 -17
- package/src/store/dashboard.actions.ts +1 -10
- package/src/store/dashboard.reducer.ts +15 -13
- package/src/types/APIFilter.ts +5 -4
- package/src/components/EditorWrapper/EditorWrapper.tsx +0 -52
- package/src/components/EditorWrapper/editor-wrapper.style.css +0 -13
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dashboard": {
|
|
3
|
+
"theme": "theme-blue"
|
|
4
|
+
},
|
|
5
|
+
"rows": [
|
|
6
|
+
[
|
|
7
|
+
{
|
|
8
|
+
"width": 12,
|
|
9
|
+
"widget": "markup-include1709307330120"
|
|
10
|
+
},
|
|
11
|
+
{},
|
|
12
|
+
{}
|
|
13
|
+
]
|
|
14
|
+
],
|
|
15
|
+
"visualizations": {
|
|
16
|
+
"markup-include1709307330120": {
|
|
17
|
+
"inlineHTML": "",
|
|
18
|
+
"markupSource": "inline",
|
|
19
|
+
"showHeader": false,
|
|
20
|
+
"srcUrl": "#example",
|
|
21
|
+
"theme": "theme-blue",
|
|
22
|
+
"title": "Markup Include",
|
|
23
|
+
"type": "markup-include",
|
|
24
|
+
"visual": {
|
|
25
|
+
"border": false,
|
|
26
|
+
"accent": false,
|
|
27
|
+
"background": false,
|
|
28
|
+
"hideBackgroundColor": false,
|
|
29
|
+
"borderColorTheme": false
|
|
30
|
+
},
|
|
31
|
+
"openModal": false,
|
|
32
|
+
"uid": "markup-include1709307330120",
|
|
33
|
+
"visualizationType": "markup-include",
|
|
34
|
+
"editing": false,
|
|
35
|
+
"data": {},
|
|
36
|
+
"validated": 4.23
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"table": {
|
|
40
|
+
"label": "Data Table",
|
|
41
|
+
"show": false,
|
|
42
|
+
"showDownloadUrl": false,
|
|
43
|
+
"showVertical": true
|
|
44
|
+
},
|
|
45
|
+
"datasets": {
|
|
46
|
+
"valid-data-chart.csv": {
|
|
47
|
+
"data": [
|
|
48
|
+
{
|
|
49
|
+
"Race": "Hispanic or Latino",
|
|
50
|
+
"Age-adjusted rate": "644.2"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"Race": "Non-Hispanic American Indian",
|
|
54
|
+
"Age-adjusted rate": "636.1"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"Race": "Non-Hispanic Black",
|
|
58
|
+
"Age-adjusted rate": "563.7"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"Race": "Non-Hispanic Asian or Pacific Islander",
|
|
62
|
+
"Age-adjusted rate": "202.5"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"Race": "Non-Hispanic White",
|
|
66
|
+
"Age-adjusted rate": "183.6"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"dataFileSize": 184,
|
|
70
|
+
"dataFileName": "valid-data-chart.csv",
|
|
71
|
+
"dataFileSourceType": "file",
|
|
72
|
+
"dataFileFormat": "CSV",
|
|
73
|
+
"preview": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"type": "dashboard",
|
|
77
|
+
"runtime": {}
|
|
78
|
+
}
|