@cdc/core 4.23.10-alpha → 4.23.11

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 (52) hide show
  1. package/assets/icon-deviation-bar.svg +1 -0
  2. package/components/DataTable/DataTable.tsx +205 -0
  3. package/components/DataTable/components/BoxplotHeader.tsx +16 -0
  4. package/components/DataTable/components/CellAnchor.tsx +44 -0
  5. package/components/DataTable/components/ChartHeader.tsx +91 -0
  6. package/components/DataTable/components/ExpandCollapse.tsx +21 -0
  7. package/components/DataTable/components/Icons.tsx +10 -0
  8. package/components/DataTable/components/MapHeader.tsx +56 -0
  9. package/components/DataTable/components/SkipNav.tsx +7 -0
  10. package/components/DataTable/helpers/boxplotCellMatrix.tsx +64 -0
  11. package/components/DataTable/helpers/chartCellMatrix.tsx +78 -0
  12. package/components/DataTable/helpers/customSort.ts +55 -0
  13. package/components/DataTable/helpers/getChartCellValue.ts +55 -0
  14. package/components/DataTable/helpers/getDataSeriesColumns.ts +28 -0
  15. package/components/DataTable/helpers/getSeriesName.ts +26 -0
  16. package/components/DataTable/helpers/mapCellMatrix.tsx +56 -0
  17. package/components/DataTable/helpers/regionCellMatrix.tsx +13 -0
  18. package/components/DataTable/helpers/standardizeState.js +76 -0
  19. package/components/DataTable/index.ts +1 -0
  20. package/components/DataTable/types/TableConfig.ts +57 -0
  21. package/components/DownloadButton.tsx +29 -0
  22. package/components/LegendCircle.jsx +2 -2
  23. package/components/Table/Table.tsx +49 -0
  24. package/components/Table/components/Cell.tsx +9 -0
  25. package/components/Table/components/GroupRow.tsx +16 -0
  26. package/components/Table/components/Row.tsx +19 -0
  27. package/components/Table/index.ts +1 -0
  28. package/components/Table/types/CellMatrix.ts +4 -0
  29. package/components/_stories/DataTable.stories.tsx +62 -0
  30. package/components/_stories/Table.stories.tsx +53 -0
  31. package/components/_stories/_mocks/dashboard_no_filter.json +121 -0
  32. package/components/_stories/_mocks/example-city-state.json +808 -0
  33. package/components/_stories/styles.scss +9 -0
  34. package/components/managers/{DataDesigner.jsx → DataDesigner.tsx} +96 -87
  35. package/components/ui/Title/Title.scss +95 -0
  36. package/components/ui/Title/index.tsx +34 -0
  37. package/components/ui/_stories/Title.stories.tsx +21 -0
  38. package/helpers/DataTransform.ts +41 -18
  39. package/helpers/cove/string.ts +11 -0
  40. package/package.json +2 -2
  41. package/styles/_data-table.scss +1 -0
  42. package/styles/heading-colors.scss +0 -3
  43. package/styles/v2/layout/_component.scss +0 -11
  44. package/types/Axis.ts +6 -0
  45. package/types/Color.ts +5 -0
  46. package/types/ComponentStyles.ts +7 -0
  47. package/types/ComponentThemes.ts +13 -0
  48. package/types/EditorColumnProperties.ts +8 -0
  49. package/types/Runtime.ts +9 -0
  50. package/types/Series.ts +1 -0
  51. package/types/Visualization.ts +21 -0
  52. package/components/DataTable.jsx +0 -759
@@ -0,0 +1,121 @@
1
+ {
2
+ "dashboard": {
3
+ "theme": "theme-blue",
4
+ "title": "Dashboard with No Filters"
5
+ },
6
+ "rows": [
7
+ [
8
+ {
9
+ "width": 12,
10
+ "widget": "map1629143821077"
11
+ },
12
+ {},
13
+ {}
14
+ ],
15
+ [
16
+ {
17
+ "width": 6,
18
+ "widget": "data-bite1629144030877"
19
+ },
20
+ {
21
+ "width": 6,
22
+ "widget": "data-bite1629144267659"
23
+ },
24
+ {
25
+ "width": null
26
+ }
27
+ ]
28
+ ],
29
+ "table": {
30
+ "label": "Data Table",
31
+ "show": true
32
+ },
33
+ "type": "dashboard",
34
+ "uuid": 1629144022257,
35
+ "datasets": {
36
+ "dashboard_example_map.csv": {
37
+ "data": [
38
+ {
39
+ "Location": "Alabama",
40
+ "TimeZone": 1,
41
+ "Rate": 1375
42
+ },
43
+ {
44
+ "Location": "Alaska",
45
+ "TimeZone": 1,
46
+ "Rate": 1377
47
+ },
48
+ {
49
+ "Location": "American Samoa",
50
+ "TimeZone": 1,
51
+ "Rate": 1388
52
+ },
53
+ {
54
+ "Location": "Arizona",
55
+ "TimeZone": 1,
56
+ "Rate": 1401
57
+ },
58
+ {
59
+ "Location": "Arkansas",
60
+ "TimeZone": 1,
61
+ "Rate": 1398
62
+ },
63
+ {
64
+ "Location": "California",
65
+ "TimeZone": 2,
66
+ "Rate": 1381
67
+ },
68
+ {
69
+ "Location": "Colorado",
70
+ "TimeZone": 2,
71
+ "Rate": 1369
72
+ },
73
+ {
74
+ "Location": "Connecticut",
75
+ "TimeZone": 2,
76
+ "Rate": 1403
77
+ },
78
+ {
79
+ "Location": "Delaware\t",
80
+ "TimeZone": 2,
81
+ "Rate": "1384"
82
+ },
83
+ {
84
+ "Location": "District of Columbia",
85
+ "TimeZone": 2,
86
+ "Rate": 1400
87
+ },
88
+ {
89
+ "Location": "Florida",
90
+ "TimeZone": 2,
91
+ "Rate": 1387
92
+ },
93
+ {
94
+ "Location": "Georgia",
95
+ "TimeZone": 3,
96
+ "Rate": 1365
97
+ },
98
+ {
99
+ "Location": "Guam",
100
+ "TimeZone": 3,
101
+ "Rate": 1356
102
+ },
103
+ {
104
+ "Location": "Hawaii",
105
+ "TimeZone": 3,
106
+ "Rate": 1362
107
+ },
108
+ {
109
+ "Location": "Idaho",
110
+ "TimeZone": 3,
111
+ "Rate": 1374
112
+ }
113
+ ],
114
+ "dataFileSize": 971,
115
+ "dataFileName": "dashboard_example_map.csv",
116
+ "dataFileSourceType": "file",
117
+ "dataFileFormat": "CSV",
118
+ "preview": true
119
+ }
120
+ }
121
+ }