@carbon/charts-vue 1.6.0 → 1.6.1

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,14 @@
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
+ ## [1.6.1](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.0...v1.6.1) (2022-10-20)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
6
14
  # [1.6.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.5.8...v1.6.0) (2022-09-27)
7
15
 
8
16
  **Note:** Version bump only for package @carbon/charts-vue
@@ -36589,27 +36589,6 @@ var hover_axis_HoverAxis = /** @class */ (function (_super) {
36589
36589
  .attr('width', width + configuration_non_customizable_axis.hover.rectanglePadding * 2)
36590
36590
  .attr('height', height)
36591
36591
  .lower();
36592
- // Add keyboard event listeners to each group element
36593
- g.on('keydown', function (event) {
36594
- // Choose specific arrow key depending on the axis
36595
- if (axisPosition === AxisPositions.LEFT ||
36596
- axisPosition === AxisPositions.RIGHT) {
36597
- if (event.key && event.key === 'ArrowUp') {
36598
- self.goNext(this, event);
36599
- }
36600
- else if (event.key && event.key === 'ArrowDown') {
36601
- self.goPrevious(this, event);
36602
- }
36603
- }
36604
- else {
36605
- if (event.key && event.key === 'ArrowLeft') {
36606
- self.goPrevious(this, event);
36607
- }
36608
- else if (event.key && event.key === 'ArrowRight') {
36609
- self.goNext(this, event);
36610
- }
36611
- }
36612
- });
36613
36592
  });
36614
36593
  // Add event listeners to element group
36615
36594
  this.addEventListeners();
@@ -36698,6 +36677,35 @@ var hover_axis_HoverAxis = /** @class */ (function (_super) {
36698
36677
  element: src_select(this),
36699
36678
  datum: src_select(this).select('text').datum(),
36700
36679
  });
36680
+ })
36681
+ .on('keydown', function (event) {
36682
+ // Hide the tooltip when `Escape` is pressed, but keep focus
36683
+ if (event.key && event.key === 'Escape') {
36684
+ self.services.events.dispatchEvent(Events.Tooltip.HIDE);
36685
+ self.services.events.dispatchEvent(Events.Axis.LABEL_BLUR, {
36686
+ event: event,
36687
+ element: src_select(this),
36688
+ datum: src_select(this).select('text').datum(),
36689
+ });
36690
+ }
36691
+ // Choose specific arrow key depending on the axis
36692
+ if (axisPosition === AxisPositions.LEFT ||
36693
+ axisPosition === AxisPositions.RIGHT) {
36694
+ if (event.key && event.key === 'ArrowUp') {
36695
+ self.goNext(this, event);
36696
+ }
36697
+ else if (event.key && event.key === 'ArrowDown') {
36698
+ self.goPrevious(this, event);
36699
+ }
36700
+ }
36701
+ else {
36702
+ if (event.key && event.key === 'ArrowLeft') {
36703
+ self.goPrevious(this, event);
36704
+ }
36705
+ else if (event.key && event.key === 'ArrowRight') {
36706
+ self.goNext(this, event);
36707
+ }
36708
+ }
36701
36709
  });
36702
36710
  };
36703
36711
  // Focus on the next HTML element sibling