@cdc/core 4.24.12 → 4.25.2-25
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/components/DataTable/DataTable.tsx +58 -45
- package/components/DataTable/DataTableStandAlone.tsx +3 -3
- package/components/DataTable/components/ChartHeader.tsx +26 -6
- package/components/DataTable/components/ExpandCollapse.tsx +1 -4
- package/components/DataTable/components/MapHeader.tsx +5 -1
- package/components/DataTable/data-table.css +3 -8
- package/components/DataTable/helpers/chartCellMatrix.tsx +14 -5
- package/components/DataTable/helpers/customSort.ts +2 -2
- package/components/DataTable/helpers/mapCellMatrix.tsx +83 -60
- package/components/DataTable/types/TableConfig.ts +0 -1
- package/components/EditorPanel/FootnotesEditor.tsx +49 -7
- package/components/EditorPanel/Inputs.tsx +4 -0
- package/components/EditorPanel/VizFilterEditor/VizFilterEditor.tsx +16 -3
- package/components/Filters/Filters.tsx +95 -51
- package/components/Filters/helpers/filterWrapping.ts +43 -0
- package/components/Filters/helpers/handleSorting.ts +6 -0
- package/components/Filters/helpers/tests/handleSorting.test.ts +26 -0
- package/components/Footnotes/Footnotes.tsx +1 -1
- package/components/Layout/components/Visualization/index.tsx +18 -4
- package/components/Layout/components/Visualization/visualizations.scss +1 -1
- package/components/Legend/Legend.Gradient.tsx +1 -4
- package/components/Legend/index.tsx +1 -1
- package/components/LegendShape.tsx +2 -3
- package/components/MediaControls.jsx +32 -8
- package/components/NestedDropdown/NestedDropdown.tsx +25 -17
- package/components/NestedDropdown/nesteddropdown.styles.css +13 -7
- package/components/Table/Table.tsx +11 -11
- package/components/Table/components/Row.tsx +14 -5
- package/components/_stories/DataTable.stories.tsx +1 -2
- package/components/elements/Button.jsx +38 -19
- package/components/elements/Confirm.tsx +45 -0
- package/components/elements/Error.tsx +24 -0
- package/components/managers/DataDesigner.tsx +198 -143
- package/components/ui/Title/Title.scss +12 -5
- package/components/ui/Title/index.tsx +1 -1
- package/dist/cove-main.css +260 -723
- package/dist/cove-main.css.map +1 -1
- package/helpers/DataTransform.ts +55 -61
- package/helpers/addValuesToFilters.ts +45 -16
- package/helpers/cove/accessibility.ts +24 -0
- package/helpers/cove/fontSettings.ts +1 -1
- package/helpers/cove/number.ts +1 -7
- package/helpers/coveUpdateWorker.ts +5 -1
- package/helpers/displayDataAsText.ts +64 -0
- package/helpers/filterVizData.ts +2 -2
- package/helpers/formatConfigBeforeSave.ts +17 -2
- package/helpers/isOlderVersion.ts +20 -0
- package/helpers/isRightAlignedTableValue.js +14 -0
- package/helpers/missingRequiredSections.ts +20 -0
- package/helpers/queryStringUtils.ts +7 -0
- package/helpers/tests/addValuesToFilters.test.ts +19 -1
- package/helpers/useDataVizClasses.ts +8 -4
- package/helpers/ver/4.24.10.ts +12 -0
- package/helpers/ver/4.24.11.ts +18 -0
- package/helpers/ver/4.24.7.ts +19 -1
- package/helpers/ver/4.25.1.ts +18 -0
- package/package.json +2 -2
- package/styles/_button-section.scss +2 -5
- package/styles/_global-variables.scss +17 -7
- package/styles/_global.scss +8 -12
- package/styles/_reset.scss +4 -5
- package/styles/_typography.scss +0 -20
- package/styles/_variables.scss +0 -3
- package/styles/base.scss +44 -5
- package/styles/cove-main.scss +1 -1
- package/styles/filters.scss +65 -6
- package/styles/v2/base/_general.scss +3 -2
- package/styles/v2/components/button.scss +0 -1
- package/styles/v2/main.scss +3 -4
- package/styles/v2/themes/_color-definitions.scss +4 -4
- package/styles/v2/utils/index.scss +0 -1
- package/types/BoxPlot.ts +1 -0
- package/types/Runtime.ts +1 -0
- package/types/Table.ts +0 -1
- package/types/Version.ts +1 -1
- package/types/VizFilter.ts +3 -1
- package/styles/v2/utils/_spacers.scss +0 -31
package/types/Runtime.ts
CHANGED
package/types/Table.ts
CHANGED
package/types/Version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type Version = `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`
|
package/types/VizFilter.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type OrderBy = 'asc' | 'desc' | 'cust'
|
|
1
|
+
export type OrderBy = 'asc' | 'desc' | 'cust' | 'column'
|
|
2
2
|
|
|
3
3
|
export type FilterBase = {
|
|
4
4
|
columnName: string
|
|
@@ -11,6 +11,7 @@ export type FilterBase = {
|
|
|
11
11
|
|
|
12
12
|
export type VizFilterStyle =
|
|
13
13
|
| 'tab'
|
|
14
|
+
| 'tab-simple'
|
|
14
15
|
| 'pill'
|
|
15
16
|
| 'tab bar'
|
|
16
17
|
| 'dropdown'
|
|
@@ -23,6 +24,7 @@ export type GeneralFilter = FilterBase & {
|
|
|
23
24
|
filterStyle: VizFilterStyle
|
|
24
25
|
label: string
|
|
25
26
|
order: OrderBy
|
|
27
|
+
orderColumn?: string
|
|
26
28
|
orderedValues?: string[] // should only exist if the order is 'cust'
|
|
27
29
|
queryParameter: string
|
|
28
30
|
setByQueryParameter: string
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Content Spacer Classes
|
|
2
|
-
$cove-spacers-offset: 8;
|
|
3
|
-
$cove-spacers-max: 64;
|
|
4
|
-
|
|
5
|
-
@mixin spacers($className, $styleNameCollection) {
|
|
6
|
-
$i: 0;
|
|
7
|
-
@while ($i * $cove-spacers-offset) <= $cove-spacers-max {
|
|
8
|
-
#{$className + $i} {
|
|
9
|
-
@each $styleName in $styleNameCollection {
|
|
10
|
-
#{$styleName}: #{($i * $cove-spacers-offset) + 'px'} !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
$i: $i + 1;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@include spacers('.p-', 'padding');
|
|
18
|
-
@include spacers('.pt-', 'padding-top');
|
|
19
|
-
@include spacers('.pr-', 'padding-right');
|
|
20
|
-
@include spacers('.pb-', 'padding-bottom');
|
|
21
|
-
@include spacers('.pl-', 'padding-left');
|
|
22
|
-
@include spacers('.px-', ('padding-left', 'padding-right'));
|
|
23
|
-
@include spacers('.py-', ('padding-top', 'padding-bottom'));
|
|
24
|
-
|
|
25
|
-
@include spacers('.m-', 'margin');
|
|
26
|
-
@include spacers('.mt-', 'margin-top');
|
|
27
|
-
@include spacers('.mr-', 'margin-right');
|
|
28
|
-
@include spacers('.mb-', 'margin-bottom');
|
|
29
|
-
@include spacers('.ml-', 'margin-left');
|
|
30
|
-
@include spacers('.mx-', ('margin-left', 'margin-right'));
|
|
31
|
-
@include spacers('.mx-', ('margin-top', 'margin-bottom'));
|