@cdc/core 4.24.3 → 4.24.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.
Files changed (49) hide show
  1. package/assets/icon-command.svg +3 -0
  2. package/assets/icon-rotate-left.svg +3 -0
  3. package/components/AdvancedEditor.jsx +9 -0
  4. package/components/DataTable/DataTable.tsx +9 -3
  5. package/components/DataTable/components/ExpandCollapse.tsx +22 -16
  6. package/components/DataTable/helpers/chartCellMatrix.tsx +2 -2
  7. package/components/DataTable/helpers/mapCellMatrix.tsx +2 -2
  8. package/components/DataTable/types/TableConfig.ts +1 -0
  9. package/components/EditorPanel/ColumnsEditor.tsx +2 -1
  10. package/components/EditorPanel/DataTableEditor.tsx +17 -1
  11. package/components/Filters.jsx +8 -7
  12. package/components/Layout/components/Responsive.tsx +184 -0
  13. package/components/Layout/components/Sidebar/components/Sidebar.tsx +47 -0
  14. package/components/Layout/components/Sidebar/components/sidebar.styles.scss +902 -0
  15. package/components/Layout/components/Sidebar/index.tsx +3 -0
  16. package/components/Layout/components/Visualization/index.tsx +79 -0
  17. package/components/Layout/components/Visualization/visualizations.scss +33 -0
  18. package/components/Layout/index.tsx +11 -0
  19. package/components/Layout/styles/editor-grid-view.scss +156 -0
  20. package/components/Layout/styles/editor-utils.scss +197 -0
  21. package/components/Layout/styles/editor.scss +144 -0
  22. package/components/LegendCircle.jsx +4 -3
  23. package/components/MediaControls.jsx +1 -1
  24. package/components/Table/Table.tsx +7 -5
  25. package/components/Table/components/Row.tsx +6 -2
  26. package/components/Table/types/RowType.ts +3 -0
  27. package/components/Waiting.jsx +11 -1
  28. package/components/_stories/styles.scss +1 -0
  29. package/components/createBarElement.jsx +37 -34
  30. package/components/elements/SkipTo.tsx +37 -5
  31. package/components/managers/DataDesigner.tsx +18 -18
  32. package/components/ui/Icon.tsx +5 -1
  33. package/helpers/{coveUpdateWorker.js → coveUpdateWorker.ts} +7 -7
  34. package/helpers/useDataVizClasses.js +5 -5
  35. package/helpers/ver/4.24.3.ts +56 -0
  36. package/package.json +2 -2
  37. package/styles/_data-table.scss +8 -0
  38. package/styles/_global.scss +7 -4
  39. package/styles/_variables.scss +3 -0
  40. package/styles/base.scss +0 -18
  41. package/styles/v2/base/index.scss +1 -1
  42. package/styles/v2/components/ui/tooltip.scss +0 -21
  43. package/types/Axis.ts +2 -0
  44. package/types/ConfigureData.ts +8 -0
  45. package/types/DataDescription.ts +9 -0
  46. package/types/Table.ts +1 -0
  47. package/types/Visualization.ts +3 -6
  48. package/helpers/ver/4.23.js +0 -10
  49. package/helpers/ver/4.24.3.js +0 -25
@@ -0,0 +1,9 @@
1
+ export type DataDescription = {
2
+ series: boolean
3
+ horizontal: boolean
4
+ singleRow: boolean
5
+ seriesKey: string
6
+ xKey: string
7
+ valueKeysTallSupport: string[]
8
+ ignoredKeys: string[]
9
+ }
package/types/Table.ts CHANGED
@@ -18,4 +18,5 @@ export type Table = {
18
18
  downloadImageButton?: boolean
19
19
  downloadPdfButton?: boolean
20
20
  dateDisplayFormat?: string
21
+ fontSize: 'small' | 'medium' | 'large'
21
22
  }
@@ -5,20 +5,17 @@ import { Series } from './Series'
5
5
  import { Table } from './Table'
6
6
  import { ConfidenceInterval } from './ConfidenceInterval'
7
7
  import { BaseVisualizationType } from './BaseVisualizationType'
8
+ import { ConfigureData } from './ConfigureData'
8
9
 
9
- export type Visualization = {
10
+ export type Visualization = ConfigureData & {
10
11
  autoLoad: boolean
11
12
  columns: Record<string, Column>
12
13
  confidenceKeys: ConfidenceInterval
13
- data: any
14
- dataDescription: Object
15
14
  dataFileName: string
16
15
  dataFileSourceType: string
17
16
  dataFormat: any
18
- dataKey: string
19
17
  datasets: Record<string, any>
20
18
  editing: boolean
21
- formattedData?: Object[] & Record<string, Object>
22
19
  general: any
23
20
  hide: any[]
24
21
  legend: Legend
@@ -31,7 +28,7 @@ export type Visualization = {
31
28
  table: Table
32
29
  title: string
33
30
  type: BaseVisualizationType
34
- uid: string
31
+ uid: string // this is the actual key of the visualization object
35
32
  usesSharedFilter: any
36
33
  visualizationType: string
37
34
  visualizationSubType: string
@@ -1,10 +0,0 @@
1
- const update_4_23 = async config => {
2
- const ver = 4.23
3
-
4
- let newConfig = { ...config }
5
-
6
- newConfig.validated = ver
7
- return newConfig
8
- }
9
-
10
- export default update_4_23
@@ -1,25 +0,0 @@
1
- const update_4_24_3 = async config => {
2
- const ver = '4.24.3'
3
-
4
- let newConfig = { ...config }
5
-
6
- newConfig.validated = ver
7
-
8
- if (newConfig.type === 'chart') {
9
- if (newConfig.xAxis.sortDates) {
10
- newConfig.xAxis.type = 'date-time'
11
- }
12
- newConfig.table.download = true
13
-
14
- delete newConfig.xAxis.sortDates
15
- }
16
-
17
- if (newConfig.type === 'map') {
18
- newConfig.table.download = true
19
- newConfig.general.showDownloadButton = true
20
- }
21
-
22
- return newConfig
23
- }
24
-
25
- export default update_4_24_3