@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.
- package/assets/icon-command.svg +3 -0
- package/assets/icon-rotate-left.svg +3 -0
- package/components/AdvancedEditor.jsx +9 -0
- package/components/DataTable/DataTable.tsx +9 -3
- package/components/DataTable/components/ExpandCollapse.tsx +22 -16
- package/components/DataTable/helpers/chartCellMatrix.tsx +2 -2
- package/components/DataTable/helpers/mapCellMatrix.tsx +2 -2
- package/components/DataTable/types/TableConfig.ts +1 -0
- package/components/EditorPanel/ColumnsEditor.tsx +2 -1
- package/components/EditorPanel/DataTableEditor.tsx +17 -1
- package/components/Filters.jsx +8 -7
- package/components/Layout/components/Responsive.tsx +184 -0
- package/components/Layout/components/Sidebar/components/Sidebar.tsx +47 -0
- package/components/Layout/components/Sidebar/components/sidebar.styles.scss +902 -0
- package/components/Layout/components/Sidebar/index.tsx +3 -0
- package/components/Layout/components/Visualization/index.tsx +79 -0
- package/components/Layout/components/Visualization/visualizations.scss +33 -0
- package/components/Layout/index.tsx +11 -0
- package/components/Layout/styles/editor-grid-view.scss +156 -0
- package/components/Layout/styles/editor-utils.scss +197 -0
- package/components/Layout/styles/editor.scss +144 -0
- package/components/LegendCircle.jsx +4 -3
- package/components/MediaControls.jsx +1 -1
- package/components/Table/Table.tsx +7 -5
- package/components/Table/components/Row.tsx +6 -2
- package/components/Table/types/RowType.ts +3 -0
- package/components/Waiting.jsx +11 -1
- package/components/_stories/styles.scss +1 -0
- package/components/createBarElement.jsx +37 -34
- package/components/elements/SkipTo.tsx +37 -5
- package/components/managers/DataDesigner.tsx +18 -18
- package/components/ui/Icon.tsx +5 -1
- package/helpers/{coveUpdateWorker.js → coveUpdateWorker.ts} +7 -7
- package/helpers/useDataVizClasses.js +5 -5
- package/helpers/ver/4.24.3.ts +56 -0
- package/package.json +2 -2
- package/styles/_data-table.scss +8 -0
- package/styles/_global.scss +7 -4
- package/styles/_variables.scss +3 -0
- package/styles/base.scss +0 -18
- package/styles/v2/base/index.scss +1 -1
- package/styles/v2/components/ui/tooltip.scss +0 -21
- package/types/Axis.ts +2 -0
- package/types/ConfigureData.ts +8 -0
- package/types/DataDescription.ts +9 -0
- package/types/Table.ts +1 -0
- package/types/Visualization.ts +3 -6
- package/helpers/ver/4.23.js +0 -10
- package/helpers/ver/4.24.3.js +0 -25
package/types/Table.ts
CHANGED
package/types/Visualization.ts
CHANGED
|
@@ -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
|
package/helpers/ver/4.23.js
DELETED
package/helpers/ver/4.24.3.js
DELETED
|
@@ -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
|