@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.
Files changed (77) hide show
  1. package/components/DataTable/DataTable.tsx +58 -45
  2. package/components/DataTable/DataTableStandAlone.tsx +3 -3
  3. package/components/DataTable/components/ChartHeader.tsx +26 -6
  4. package/components/DataTable/components/ExpandCollapse.tsx +1 -4
  5. package/components/DataTable/components/MapHeader.tsx +5 -1
  6. package/components/DataTable/data-table.css +3 -8
  7. package/components/DataTable/helpers/chartCellMatrix.tsx +14 -5
  8. package/components/DataTable/helpers/customSort.ts +2 -2
  9. package/components/DataTable/helpers/mapCellMatrix.tsx +83 -60
  10. package/components/DataTable/types/TableConfig.ts +0 -1
  11. package/components/EditorPanel/FootnotesEditor.tsx +49 -7
  12. package/components/EditorPanel/Inputs.tsx +4 -0
  13. package/components/EditorPanel/VizFilterEditor/VizFilterEditor.tsx +16 -3
  14. package/components/Filters/Filters.tsx +95 -51
  15. package/components/Filters/helpers/filterWrapping.ts +43 -0
  16. package/components/Filters/helpers/handleSorting.ts +6 -0
  17. package/components/Filters/helpers/tests/handleSorting.test.ts +26 -0
  18. package/components/Footnotes/Footnotes.tsx +1 -1
  19. package/components/Layout/components/Visualization/index.tsx +18 -4
  20. package/components/Layout/components/Visualization/visualizations.scss +1 -1
  21. package/components/Legend/Legend.Gradient.tsx +1 -4
  22. package/components/Legend/index.tsx +1 -1
  23. package/components/LegendShape.tsx +2 -3
  24. package/components/MediaControls.jsx +32 -8
  25. package/components/NestedDropdown/NestedDropdown.tsx +25 -17
  26. package/components/NestedDropdown/nesteddropdown.styles.css +13 -7
  27. package/components/Table/Table.tsx +11 -11
  28. package/components/Table/components/Row.tsx +14 -5
  29. package/components/_stories/DataTable.stories.tsx +1 -2
  30. package/components/elements/Button.jsx +38 -19
  31. package/components/elements/Confirm.tsx +45 -0
  32. package/components/elements/Error.tsx +24 -0
  33. package/components/managers/DataDesigner.tsx +198 -143
  34. package/components/ui/Title/Title.scss +12 -5
  35. package/components/ui/Title/index.tsx +1 -1
  36. package/dist/cove-main.css +260 -723
  37. package/dist/cove-main.css.map +1 -1
  38. package/helpers/DataTransform.ts +55 -61
  39. package/helpers/addValuesToFilters.ts +45 -16
  40. package/helpers/cove/accessibility.ts +24 -0
  41. package/helpers/cove/fontSettings.ts +1 -1
  42. package/helpers/cove/number.ts +1 -7
  43. package/helpers/coveUpdateWorker.ts +5 -1
  44. package/helpers/displayDataAsText.ts +64 -0
  45. package/helpers/filterVizData.ts +2 -2
  46. package/helpers/formatConfigBeforeSave.ts +17 -2
  47. package/helpers/isOlderVersion.ts +20 -0
  48. package/helpers/isRightAlignedTableValue.js +14 -0
  49. package/helpers/missingRequiredSections.ts +20 -0
  50. package/helpers/queryStringUtils.ts +7 -0
  51. package/helpers/tests/addValuesToFilters.test.ts +19 -1
  52. package/helpers/useDataVizClasses.ts +8 -4
  53. package/helpers/ver/4.24.10.ts +12 -0
  54. package/helpers/ver/4.24.11.ts +18 -0
  55. package/helpers/ver/4.24.7.ts +19 -1
  56. package/helpers/ver/4.25.1.ts +18 -0
  57. package/package.json +2 -2
  58. package/styles/_button-section.scss +2 -5
  59. package/styles/_global-variables.scss +17 -7
  60. package/styles/_global.scss +8 -12
  61. package/styles/_reset.scss +4 -5
  62. package/styles/_typography.scss +0 -20
  63. package/styles/_variables.scss +0 -3
  64. package/styles/base.scss +44 -5
  65. package/styles/cove-main.scss +1 -1
  66. package/styles/filters.scss +65 -6
  67. package/styles/v2/base/_general.scss +3 -2
  68. package/styles/v2/components/button.scss +0 -1
  69. package/styles/v2/main.scss +3 -4
  70. package/styles/v2/themes/_color-definitions.scss +4 -4
  71. package/styles/v2/utils/index.scss +0 -1
  72. package/types/BoxPlot.ts +1 -0
  73. package/types/Runtime.ts +1 -0
  74. package/types/Table.ts +0 -1
  75. package/types/Version.ts +1 -1
  76. package/types/VizFilter.ts +3 -1
  77. package/styles/v2/utils/_spacers.scss +0 -31
package/types/Runtime.ts CHANGED
@@ -10,6 +10,7 @@ export type ForecastingSeriesKey = {
10
10
 
11
11
  export type Runtime = {
12
12
  barSeriesKeys?: string[]
13
+ areaSeriesKeys: object[]
13
14
  forecastingSeriesKeys?: ForecastingSeriesKey[]
14
15
  originalXAxis: {
15
16
  dataKey: string
package/types/Table.ts CHANGED
@@ -13,7 +13,6 @@ export type Table = {
13
13
  downloadPdfButton?: boolean
14
14
  excludeColumns?: string[]
15
15
  expanded?: boolean
16
- fontSize: 'small' | 'medium' | 'large'
17
16
  groupBy?: string
18
17
  height?: number
19
18
  indexLabel?: string
package/types/Version.ts CHANGED
@@ -1 +1 @@
1
- export type version = `${number}.${number}.${number}`
1
+ export type Version = `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`
@@ -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'));