@carbon/charts 0.53.0 → 0.53.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/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
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.53.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.3...v0.53.4) (2021-12-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **core:** allow users to define custom buttons in toolbar ([#1158](https://github.com/carbon-design-system/carbon-charts/issues/1158)) ([4996591](https://github.com/carbon-design-system/carbon-charts/commit/499659155b56df9f7ab03633e43f5437f21bb129)), closes [#1129](https://github.com/carbon-design-system/carbon-charts/issues/1129)
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.53.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.2...v0.53.3) (2021-12-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **core:** fix overflow menu caused by data loading option change ([#1239](https://github.com/carbon-design-system/carbon-charts/issues/1239)) ([48b2058](https://github.com/carbon-design-system/carbon-charts/commit/48b2058746d3d86675d1f979e7ea6839712bef65)), closes [#1229](https://github.com/carbon-design-system/carbon-charts/issues/1229)
23
+
24
+
25
+
26
+
27
+
28
+ ## [0.53.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.1...v0.53.2) (2021-12-06)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **core:** display respective combochart tooltips range label ([#1236](https://github.com/carbon-design-system/carbon-charts/issues/1236)) ([a460ea3](https://github.com/carbon-design-system/carbon-charts/commit/a460ea3e1a695b6bf2b56f4401621d2853add8b6)), closes [#1085](https://github.com/carbon-design-system/carbon-charts/issues/1085)
34
+
35
+
36
+
37
+
38
+
39
+ ## [0.53.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.0...v0.53.1) (2021-12-02)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **core:** display the correct group when hovering over scatter point ([#1233](https://github.com/carbon-design-system/carbon-charts/issues/1233)) ([dcb5357](https://github.com/carbon-design-system/carbon-charts/commit/dcb5357a470789bbdecb97a2f0fccfa999b0c837)), closes [#1188](https://github.com/carbon-design-system/carbon-charts/issues/1188)
45
+
46
+
47
+
48
+
49
+
6
50
  # [0.53.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.4...v0.53.0) (2021-12-01)
7
51
 
8
52
  **Note:** Version bump only for package @carbon/charts
@@ -1,6 +1,7 @@
1
1
  import { Component } from '../component';
2
2
  import { RenderTypes, ToolbarControlTypes } from '../../interfaces';
3
3
  export declare class Toolbar extends Component {
4
+ static buttonID: number;
4
5
  type: string;
5
6
  renderType: RenderTypes;
6
7
  overflowButton: any;
@@ -15,6 +16,7 @@ export declare class Toolbar extends Component {
15
16
  focusOnPreviousEnabledMenuItem(currentItemIndex: any): void;
16
17
  focusOnNextEnabledMenuItem(currentItemIndex: any): void;
17
18
  toggleOverflowMenu(event: any): void;
19
+ triggerFunctionAndEvent(control: any, event: any, element?: any): void;
18
20
  getControlConfigs(): {
19
21
  buttonList: any[];
20
22
  overflowMenuItemList?: undefined;
@@ -28,7 +30,9 @@ export declare class Toolbar extends Component {
28
30
  id: string;
29
31
  title: string;
30
32
  shouldBeDisabled: () => boolean;
31
- iconSVGContent: string;
33
+ iconSVG: {
34
+ content: string;
35
+ };
32
36
  clickFunction: (event: any) => void;
33
37
  };
34
38
  getControlConfigByType(controlType: ToolbarControlTypes): any;
@@ -152,6 +152,25 @@ export interface ToolbarControl {
152
152
  * type value will be displayed if text is not available
153
153
  */
154
154
  text?: string;
155
+ /**
156
+ * custom id for button
157
+ */
158
+ id?: String;
159
+ /**
160
+ * SVG HTML element
161
+ */
162
+ iconSVG?: {
163
+ content?: string;
164
+ height?: string;
165
+ width?: string;
166
+ };
167
+ shouldBeDisabled?: Function;
168
+ /**
169
+ * function to execute on button click
170
+ * alternatively, users can choose to not pass in a function and can
171
+ * listen for events to execute asynchronously
172
+ */
173
+ clickFunction?: Function;
155
174
  }
156
175
  /**
157
176
  * customize the ZoomBars in a chart
@@ -203,7 +203,8 @@ export declare enum ToolbarControlTypes {
203
203
  ZOOM_OUT = "Zoom out",
204
204
  RESET_ZOOM = "Reset zoom",
205
205
  MAKE_FULLSCREEN = "Make fullscreen",
206
- SHOW_AS_DATATABLE = "Show as data-table"
206
+ SHOW_AS_DATATABLE = "Show as data-table",
207
+ CUSTOM = "Custom"
207
208
  }
208
209
  /**
209
210
  * enum of title orientations for _vertical axes_
@@ -25,7 +25,8 @@ export declare enum Model {
25
25
  */
26
26
  export declare enum Toolbar {
27
27
  SHOW_OVERFLOW_MENU = "show-toolbar-overflow-menu",
28
- HIDE_OVERFLOW_MENU = "hide-toolbar-overflow-menu"
28
+ HIDE_OVERFLOW_MENU = "hide-toolbar-overflow-menu",
29
+ BUTTON_CLICK = "toolbar-button-click"
29
30
  }
30
31
  /**
31
32
  * enum of all events related to the zoom-bar