@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.
Files changed (38) hide show
  1. package/dist/cdcdashboard.js +53114 -52737
  2. package/examples/all-components.json +529 -4607
  3. package/examples/dashboard-gallery.json +397 -397
  4. package/examples/private/DEV-10527.json +845 -0
  5. package/examples/private/DEV-10586.json +54319 -0
  6. package/examples/private/DEV-10856.json +54319 -0
  7. package/examples/private/DEV-9932.json +95 -0
  8. package/examples/private/dashboard-map-filter.json +815 -0
  9. package/examples/private/dev-10856-2.json +1348 -0
  10. package/examples/private/feelings.json +1 -0
  11. package/examples/private/markup.json +115 -0
  12. package/examples/private/nhis.json +1792 -0
  13. package/index.html +4 -3
  14. package/package.json +9 -9
  15. package/src/CdcDashboard.tsx +5 -8
  16. package/src/CdcDashboardComponent.tsx +58 -56
  17. package/src/_stories/Dashboard.stories.tsx +31 -0
  18. package/src/_stories/_mock/dashboard-filter-asc.json +551 -0
  19. package/src/components/CollapsibleVisualizationRow.tsx +1 -1
  20. package/src/components/DashboardFilters/DashboardFilters.tsx +10 -5
  21. package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +22 -5
  22. package/src/components/DashboardFilters/DashboardFiltersEditor/components/DeleteFilterModal.tsx +13 -3
  23. package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.tsx +129 -40
  24. package/src/components/DashboardFilters/DashboardFiltersEditor/components/NestedDropDownDashboard.tsx +10 -7
  25. package/src/components/DashboardFilters/DashboardFiltersWrapper.tsx +11 -12
  26. package/src/components/DashboardFilters/dashboardfilter.styles.css +0 -2
  27. package/src/components/VisualizationRow.tsx +29 -15
  28. package/src/helpers/addValuesToDashboardFilters.ts +6 -5
  29. package/src/helpers/apiFilterHelpers.ts +10 -5
  30. package/src/helpers/changeFilterActive.ts +17 -4
  31. package/src/helpers/getFilteredData.ts +13 -4
  32. package/src/helpers/getUpdateConfig.ts +11 -4
  33. package/src/helpers/loadAPIFilters.ts +6 -4
  34. package/src/helpers/tests/updatesChildFilters.test.ts +56 -0
  35. package/src/helpers/updateChildFilters.ts +50 -0
  36. package/src/scss/main.scss +0 -3
  37. package/src/store/dashboard.reducer.ts +46 -24
  38. 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
+ }