@carbon/charts-vue 1.6.2 → 1.6.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,22 @@
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.4](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.3...v1.6.4) (2023-02-03)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.6.3](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.2...v1.6.3) (2022-12-23)
15
+
16
+ **Note:** Version bump only for package @carbon/charts-vue
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.6.2](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.1...v1.6.2) (2022-12-06)
7
23
 
8
24
  **Note:** Version bump only for package @carbon/charts-vue
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Notice
2
2
 
3
- ### This version is in beta & relies on **Carbon v11**. If you're using Carbon v10, [see the legacy demo site](https://carbon-charts-0x.netlify.app)
3
+ ### This version relies on **Carbon v11**. If you're using Carbon v10, [see the legacy demo site](https://carbon-charts-0x.netlify.app)
4
4
 
5
5
  ## `@carbon/charts-vue`
6
6
 
@@ -12676,7 +12676,7 @@ var model_ChartModel = /** @class */ (function () {
12676
12676
  };
12677
12677
  ChartModel.prototype.exportToCSV = function () {
12678
12678
  var data = this.getTabularDataArray().map(function (row) {
12679
- return row.map(function (column) { return "\"" + column + "\""; });
12679
+ return row.map(function (column) { return "\"" + (column === '–' ? '–' : column) + "\""; });
12680
12680
  });
12681
12681
  var csvString = '', csvData = '';
12682
12682
  data.forEach(function (d, i) {
@@ -24252,7 +24252,8 @@ var tooltip_Tooltip = /** @class */ (function (_super) {
24252
24252
  }
24253
24253
  try {
24254
24254
  // it's a correct ISO format Date string
24255
- if (typeof value === 'string' && (/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(value))) {
24255
+ if (typeof value === 'string' &&
24256
+ /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(value)) {
24256
24257
  return format_format(Date.parse(value), 'MMM d, yyyy');
24257
24258
  }
24258
24259
  }
@@ -35290,7 +35291,7 @@ var alluvial_Alluvial = /** @class */ (function (_super) {
35290
35291
  links.forEach(function (element) { return _this.traverse(direction, element, visited); });
35291
35292
  };
35292
35293
  Alluvial.prototype.getRightArrowIcon = function () {
35293
- return "\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\">\n\t\t\t<polygon points=\"18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6\"/>\n\t\t\t<rect data-name=\"&lt;Transparent Rectangle&gt;\" style=\"fill: none;\" width=\"32\" height=\"32\"/>\n\t\t</svg>";
35294
+ return "\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"arrow-right\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\">\n\t\t\t<polygon points=\"18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6\"/>\n\t\t\t<rect width=\"32\" height=\"32\"/>\n\t\t</svg>";
35294
35295
  };
35295
35296
  // Remove event listeners
35296
35297
  Alluvial.prototype.destroy = function () {
@@ -39765,11 +39766,18 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
39765
39766
  .classed('disabled', function (d) { return d.shouldBeDisabled(); })
39766
39767
  .attr('aria-disabled', function (d) { return d.shouldBeDisabled(); })
39767
39768
  .attr('aria-label', function (d) { return d.title; })
39768
- .html(function (d) { return "\n\t\t\t<button\n\t\t\t\tclass=\"cds--overflow-menu__trigger cds--overflow-menu__trigger\"\n\t\t\t\taria-haspopup=\"true\" aria-expanded=\"false\" id=\"" + _this.services.domUtils.generateElementIDString("control-" + d.id) + "\" aria-label=\"" + d.title + "\">\n\t\t\t\t<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform; width: " + (d.iconSVG.width !== undefined ? d.iconSVG.width : '20px') + "; height: " + (d.iconSVG.height !== undefined
39769
- ? d.iconSVG.height
39770
- : '20px') + "\" xmlns=\"http://www.w3.org/2000/svg\" class=\"cds--overflow-menu__icon cds--overflow-menu__icon\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t" + d.iconSVG.content + "\n\t\t\t\t</svg>\n\t\t\t</button>"; })
39769
+ .html(function (d) { return "\n\t\t\t<button\n\t\t\t\tclass=\"cds--overflow-menu__trigger cds--overflow-menu__trigger\"\n\t\t\t\taria-haspopup=\"true\" aria-expanded=\"false\" id=\"" + _this.services.domUtils.generateElementIDString("control-" + d.id) + "\" aria-label=\"" + d.title + "\">\n\t\t\t\t<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\" class=\"cds--overflow-menu__icon cds--overflow-menu__icon\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t" + d.iconSVG.content + "\n\t\t\t\t</svg>\n\t\t\t</button>"; })
39771
39770
  .each(function (d, index) {
39772
39771
  var _this = this;
39772
+ src_select(this)
39773
+ .select('svg')
39774
+ .style('will-change', 'transform')
39775
+ .style('width', d.iconSVG.width !== undefined
39776
+ ? d.iconSVG.width
39777
+ : '20px')
39778
+ .style('height', d.iconSVG.height !== undefined
39779
+ ? d.iconSVG.height
39780
+ : '20px');
39773
39781
  src_select(this)
39774
39782
  .select('button')
39775
39783
  .on('click', function (event) {