@cdc/dashboard 4.25.1 → 4.25.3-6
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 +53114 -52737
- package/examples/all-components.json +529 -4607
- package/examples/dashboard-gallery.json +397 -397
- package/examples/private/DEV-10527.json +845 -0
- package/examples/private/DEV-10586.json +54319 -0
- package/examples/private/DEV-10856.json +54319 -0
- package/examples/private/DEV-9932.json +95 -0
- package/examples/private/dashboard-map-filter.json +815 -0
- package/examples/private/dev-10856-2.json +1348 -0
- package/examples/private/feelings.json +1 -0
- package/examples/private/markup.json +115 -0
- package/examples/private/nhis.json +1792 -0
- package/index.html +4 -3
- package/package.json +9 -9
- package/src/CdcDashboard.tsx +5 -8
- package/src/CdcDashboardComponent.tsx +58 -56
- package/src/_stories/Dashboard.stories.tsx +31 -0
- package/src/_stories/_mock/dashboard-filter-asc.json +551 -0
- package/src/components/CollapsibleVisualizationRow.tsx +1 -1
- package/src/components/DashboardFilters/DashboardFilters.tsx +10 -5
- package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +22 -5
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/DeleteFilterModal.tsx +13 -3
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.tsx +129 -40
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/NestedDropDownDashboard.tsx +10 -7
- package/src/components/DashboardFilters/DashboardFiltersWrapper.tsx +11 -12
- package/src/components/DashboardFilters/dashboardfilter.styles.css +0 -2
- package/src/components/VisualizationRow.tsx +29 -15
- package/src/helpers/addValuesToDashboardFilters.ts +6 -5
- package/src/helpers/apiFilterHelpers.ts +10 -5
- package/src/helpers/changeFilterActive.ts +17 -4
- package/src/helpers/getFilteredData.ts +13 -4
- package/src/helpers/getUpdateConfig.ts +11 -4
- package/src/helpers/loadAPIFilters.ts +6 -4
- package/src/helpers/tests/updatesChildFilters.test.ts +56 -0
- package/src/helpers/updateChildFilters.ts +50 -0
- package/src/scss/main.scss +0 -3
- package/src/store/dashboard.reducer.ts +46 -24
- package/src/types/SharedFilter.ts +1 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dashboard": {
|
|
3
|
+
"theme": "theme-blue",
|
|
4
|
+
"sharedFilters": []
|
|
5
|
+
},
|
|
6
|
+
"rows": [
|
|
7
|
+
{
|
|
8
|
+
"columns": [
|
|
9
|
+
{
|
|
10
|
+
"width": 12,
|
|
11
|
+
"widget": "table1707840146431"
|
|
12
|
+
},
|
|
13
|
+
{},
|
|
14
|
+
{}
|
|
15
|
+
],
|
|
16
|
+
"dataDescription": {
|
|
17
|
+
"horizontal": false,
|
|
18
|
+
"series": false
|
|
19
|
+
},
|
|
20
|
+
"dataKey": "valid-data-chart.csv",
|
|
21
|
+
"multiVizColumn": "Race",
|
|
22
|
+
"expandCollapseAllButtons": true
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"visualizations": {
|
|
26
|
+
"table1707840146431": {
|
|
27
|
+
"newViz": true,
|
|
28
|
+
"openModal": false,
|
|
29
|
+
"uid": "table1707840146431",
|
|
30
|
+
"filters": [],
|
|
31
|
+
"filterBehavior": "Filter Change",
|
|
32
|
+
"table": {
|
|
33
|
+
"label": "Data Table",
|
|
34
|
+
"show": true,
|
|
35
|
+
"showDownloadUrl": false,
|
|
36
|
+
"showVertical": true,
|
|
37
|
+
"expanded": true,
|
|
38
|
+
"groupBy": "Age-adjusted rate"
|
|
39
|
+
},
|
|
40
|
+
"type": "table",
|
|
41
|
+
"visualizationType": "table",
|
|
42
|
+
"dataDescription": {
|
|
43
|
+
"horizontal": false,
|
|
44
|
+
"series": false
|
|
45
|
+
},
|
|
46
|
+
"columns": {},
|
|
47
|
+
"dataFormat": {},
|
|
48
|
+
"dataKey": "valid-data-chart.csv"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"table": {
|
|
52
|
+
"label": "Data Table",
|
|
53
|
+
"show": false,
|
|
54
|
+
"showDownloadUrl": false,
|
|
55
|
+
"showVertical": true
|
|
56
|
+
},
|
|
57
|
+
"newViz": true,
|
|
58
|
+
"datasets": {
|
|
59
|
+
"valid-data-chart.csv": {
|
|
60
|
+
"data": [
|
|
61
|
+
{
|
|
62
|
+
"Race": "Non-Hispanic American Indian",
|
|
63
|
+
"Age-adjusted rate": "6360.1"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"Race": "Non-Hispanic Black",
|
|
67
|
+
"Age-adjusted rate": "563.7"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"Race": "Non-Hispanic Asian or Pacific Islander",
|
|
71
|
+
"Age-adjusted rate": "202.5"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"Race": "Non-Hispanic White",
|
|
75
|
+
"Age-adjusted rate": "183.6"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"Race": "Hispanic or Latino",
|
|
79
|
+
"Age-adjusted rate": "644.2"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"dataFileSize": 178,
|
|
83
|
+
"dataFileName": "valid-data-chart.csv",
|
|
84
|
+
"dataFileSourceType": "file",
|
|
85
|
+
"dataFileFormat": "CSV",
|
|
86
|
+
"preview": true
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"type": "dashboard",
|
|
90
|
+
"runtime": {},
|
|
91
|
+
"version": "4.25.1",
|
|
92
|
+
"migrations": {
|
|
93
|
+
"addColorMigration": true
|
|
94
|
+
}
|
|
95
|
+
}
|