@carbon/charts 0.50.6 → 0.50.10

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 (89) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/build/demo/create-codesandbox.d.ts +6 -17
  3. package/build/demo/data/circle-pack.d.ts +0 -6
  4. package/build/src/components/axes/toolbar.d.ts +1 -0
  5. package/build/src/components/essentials/legend.d.ts +1 -1
  6. package/build/src/services/essentials/dom-utils.d.ts +3 -0
  7. package/build/src/services/scales-cartesian.d.ts +1 -1
  8. package/bundle.js +1 -1
  9. package/components/axes/ruler-binned.js +1 -1
  10. package/components/axes/ruler-binned.js.map +1 -1
  11. package/components/axes/toolbar.d.ts +1 -0
  12. package/components/axes/toolbar.js +74 -48
  13. package/components/axes/toolbar.js.map +1 -1
  14. package/components/axes/zoom-bar.js +12 -3
  15. package/components/axes/zoom-bar.js.map +1 -1
  16. package/components/component.js +2 -6
  17. package/components/component.js.map +1 -1
  18. package/components/essentials/legend.d.ts +1 -1
  19. package/components/essentials/legend.js +20 -8
  20. package/components/essentials/legend.js.map +1 -1
  21. package/components/essentials/modal.js +3 -3
  22. package/components/essentials/modal.js.map +1 -1
  23. package/components/essentials/title.js +2 -2
  24. package/components/essentials/title.js.map +1 -1
  25. package/components/essentials/tooltip.js +2 -2
  26. package/components/essentials/tooltip.js.map +1 -1
  27. package/components/graphs/alluvial.js +29 -12
  28. package/components/graphs/alluvial.js.map +1 -1
  29. package/components/graphs/area-stacked.js +1 -0
  30. package/components/graphs/area-stacked.js.map +1 -1
  31. package/components/graphs/area.js +2 -4
  32. package/components/graphs/area.js.map +1 -1
  33. package/components/graphs/boxplot.js +1 -0
  34. package/components/graphs/boxplot.js.map +1 -1
  35. package/components/graphs/bubble.js +4 -0
  36. package/components/graphs/bubble.js.map +1 -1
  37. package/components/graphs/gauge.js +2 -4
  38. package/components/graphs/gauge.js.map +1 -1
  39. package/components/graphs/histogram.js +3 -1
  40. package/components/graphs/histogram.js.map +1 -1
  41. package/components/graphs/pie.js +1 -1
  42. package/components/graphs/pie.js.map +1 -1
  43. package/components/graphs/radar.js +8 -7
  44. package/components/graphs/radar.js.map +1 -1
  45. package/components/graphs/skeleton-lines.js +8 -3
  46. package/components/graphs/skeleton-lines.js.map +1 -1
  47. package/components/graphs/skeleton.js +18 -5
  48. package/components/graphs/skeleton.js.map +1 -1
  49. package/demo/create-codesandbox.d.ts +6 -17
  50. package/demo/create-codesandbox.js +11 -22
  51. package/demo/create-codesandbox.js.map +1 -1
  52. package/demo/data/bundle.js +1 -1
  53. package/demo/data/circle-pack.d.ts +0 -6
  54. package/demo/data/circle-pack.js +0 -6
  55. package/demo/data/circle-pack.js.map +1 -1
  56. package/demo/styles.css +85 -93
  57. package/demo/styles.css.map +1 -1
  58. package/demo/styles.min.css +1 -1
  59. package/demo/styles.min.css.map +1 -1
  60. package/demo/tsconfig.tsbuildinfo +5 -5
  61. package/demo/utils.js +2 -2
  62. package/demo/utils.js.map +1 -1
  63. package/package.json +1 -1
  64. package/services/essentials/dom-utils.d.ts +3 -0
  65. package/services/essentials/dom-utils.js +9 -1
  66. package/services/essentials/dom-utils.js.map +1 -1
  67. package/styles/components/_legend.scss +5 -1
  68. package/styles/components/_skeleton-lines.scss +1 -2
  69. package/styles/components/_skeleton.scss +2 -7
  70. package/styles/components/_toolbar.scss +1 -1
  71. package/styles/components/_tooltip.scss +8 -2
  72. package/styles/components/_zoom-bar.scss +0 -12
  73. package/styles-g10.css +21 -23
  74. package/styles-g10.css.map +1 -1
  75. package/styles-g10.min.css +1 -1
  76. package/styles-g10.min.css.map +1 -1
  77. package/styles-g100.css +21 -23
  78. package/styles-g100.css.map +1 -1
  79. package/styles-g100.min.css +1 -1
  80. package/styles-g100.min.css.map +1 -1
  81. package/styles-g90.css +21 -23
  82. package/styles-g90.css.map +1 -1
  83. package/styles-g90.min.css +1 -1
  84. package/styles-g90.min.css.map +1 -1
  85. package/styles.css +21 -23
  86. package/styles.css.map +1 -1
  87. package/styles.min.css +1 -1
  88. package/styles.min.css.map +1 -1
  89. package/tsconfig.tsbuildinfo +23 -23
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.50.10](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.9...v0.50.10) (2021-10-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **core:** address various accessibility violations ([#1199](https://github.com/carbon-design-system/carbon-charts/issues/1199)) ([a4ab2c0](https://github.com/carbon-design-system/carbon-charts/commit/a4ab2c0e3a91513a18e5724faa87dfd80c81c248))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.50.9](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.8...v0.50.9) (2021-10-20)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **core:** hCM issues with legend & tooltips ([#1195](https://github.com/carbon-design-system/carbon-charts/issues/1195)) ([d5d7bf1](https://github.com/carbon-design-system/carbon-charts/commit/d5d7bf1b1438a275ea7083bc278d36c884a49bce))
23
+
24
+
25
+
26
+
27
+
28
+ ## [0.50.8](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.7...v0.50.8) (2021-10-18)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **core:** fix group names in binned ruler tooltips ([#1190](https://github.com/carbon-design-system/carbon-charts/issues/1190)) ([312f8be](https://github.com/carbon-design-system/carbon-charts/commit/312f8bea2d885539370ca81ddbc89ee63689ab2b))
34
+
35
+
36
+
37
+
38
+
39
+ ## [0.50.7](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.6...v0.50.7) (2021-10-12)
40
+
41
+ **Note:** Version bump only for package @carbon/charts
42
+
43
+
44
+
45
+
46
+
6
47
  ## [0.50.6](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.5...v0.50.6) (2021-10-08)
7
48
 
8
49
  **Note:** Version bump only for package @carbon/charts
@@ -93,33 +93,22 @@ export declare const createVueChartApp: {
93
93
  export declare const createSvelteChartApp: {
94
94
  (demo: any): {
95
95
  'App.svelte': string;
96
- 'index.js': string;
96
+ 'index.html': string;
97
97
  'package.json': {
98
98
  scripts: {
99
- build: string;
100
- autobuild: string;
101
99
  dev: string;
102
- start: string;
103
- 'start:dev': string;
100
+ build: string;
104
101
  };
105
102
  devDependencies: {
106
- 'npm-run-all': string;
107
- rollup: string;
108
- 'rollup-plugin-commonjs': string;
109
- 'rollup-plugin-node-resolve': string;
110
- 'rollup-plugin-svelte': string;
111
- 'rollup-plugin-terser': string;
112
- 'sirv-cli': string;
113
- };
114
- dependencies: {
115
- '@carbon/charts': any;
116
103
  '@carbon/charts-svelte': any;
117
- 'carbon-components': any;
104
+ '@sveltejs/vite-plugin-svelte': string;
118
105
  d3: string;
119
106
  svelte: string;
107
+ 'svelte-hmr': string;
108
+ vite: string;
120
109
  };
121
110
  };
122
- 'rollup.config.js': string;
111
+ 'vite.config.js': string;
123
112
  };
124
113
  displayName: string;
125
114
  __docgenInfo: {
@@ -6,14 +6,12 @@ export declare const circlePackTwoLevelData: {
6
6
  }[];
7
7
  }[];
8
8
  export declare const circlePackTwoLevelOptions: {
9
- experimental: string;
10
9
  title: string;
11
10
  canvasZoom: {
12
11
  enabled: boolean;
13
12
  };
14
13
  };
15
14
  export declare const circlePackTwoLevelCustomColorsOptions: {
16
- experimental: string;
17
15
  title: string;
18
16
  canvasZoom: {
19
17
  enabled: boolean;
@@ -28,7 +26,6 @@ export declare const circlePackTwoLevelCustomColorsOptions: {
28
26
  };
29
27
  };
30
28
  export declare const circlePackSingleOptions: {
31
- experimental: string;
32
29
  title: string;
33
30
  canvasZoom: {
34
31
  enabled: boolean;
@@ -39,7 +36,6 @@ export declare const circlePackSingleLevelData: {
39
36
  value: number;
40
37
  }[];
41
38
  export declare const circlePackThreeLevelOptions: {
42
- experimental: string;
43
39
  title: string;
44
40
  canvasZoom: {
45
41
  enabled: boolean;
@@ -61,7 +57,6 @@ export declare const circlePackThreeLevelData: {
61
57
  })[];
62
58
  }[];
63
59
  export declare const circlePackThreeLevelsMonochromeOptions: {
64
- experimental: string;
65
60
  title: string;
66
61
  canvasZoom: {
67
62
  enabled: boolean;
@@ -86,7 +81,6 @@ export declare const circlePackThreeLevelsMonochromeData: {
86
81
  }[];
87
82
  }[];
88
83
  export declare const circlePackThreeLevelNoZoomOptions: {
89
- experimental: string;
90
84
  title: string;
91
85
  circlePack: {
92
86
  hierarchyLevel: number;
@@ -23,6 +23,7 @@ export declare class Toolbar extends Component {
23
23
  getOverflowMenuItems(): any[];
24
24
  getOverflowButtonConfig(): {
25
25
  id: string;
26
+ title: string;
26
27
  shouldBeDisabled: () => boolean;
27
28
  iconSVGContent: string;
28
29
  clickFunction: (event: any) => void;
@@ -6,6 +6,6 @@ export declare class Legend extends Component {
6
6
  render(): void;
7
7
  sortDataGroups(dataGroups: any, legendOrder: any): any;
8
8
  addAdditionalItem(additionalItem: any, itemConfig: any, indexOfItem: any): void;
9
- truncateLegendText(addedLegendItemsText: any): void;
9
+ truncateLegendText(): void;
10
10
  addEventListeners(): void;
11
11
  }
@@ -7,6 +7,7 @@ interface getSVGElementSizeOptions {
7
7
  useBoundingRect?: boolean;
8
8
  }
9
9
  export declare class DOMUtils extends Service {
10
+ private chartID;
10
11
  constructor(model: any, services: any);
11
12
  static getHTMLElementSize(element: HTMLElement): {
12
13
  width: number;
@@ -18,6 +19,8 @@ export declare class DOMUtils extends Service {
18
19
  protected width: string;
19
20
  protected height: string;
20
21
  init(): void;
22
+ getChartID(): string;
23
+ generateElementIDString(originalID: any): string;
21
24
  addMainContainer(): void;
22
25
  update(): void;
23
26
  styleHolderElement(): void;
@@ -57,7 +57,7 @@ export declare class CartesianScales extends Service {
57
57
  getMainYScaleType(): any;
58
58
  getDomainIdentifier(datum?: any): any;
59
59
  getRangeIdentifier(datum?: any): any;
60
- extendsDomain(axisPosition: AxisPositions, domain: any): number[] | Date[];
60
+ extendsDomain(axisPosition: AxisPositions, domain: any): Date[] | number[];
61
61
  protected findVerticalAxesPositions(): {
62
62
  primary: AxisPositions;
63
63
  secondary: AxisPositions;