@carbon/charts-vue 0.54.14 → 0.55.0
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 +8 -0
- package/charts-vue.common.js +16 -12
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +16 -12
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
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
|
+
# [0.55.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.14...v0.55.0) (2022-03-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.54.14](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.13...v0.54.14) (2022-03-14)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @carbon/charts-vue
|
package/charts-vue.common.js
CHANGED
|
@@ -20580,12 +20580,12 @@ var essentials_modal_Modal = /** @class */ (function (_super) {
|
|
|
20580
20580
|
var options = this.model.getOptions();
|
|
20581
20581
|
var chartprefix = tools_Tools.getProperty(options, 'style', 'prefix');
|
|
20582
20582
|
var tableArray = this.model.getTabularDataArray();
|
|
20583
|
-
return "\n\t\t<div class=\"bx--modal-container\">\n\t\t\t<div class=\"bx--modal-header\">\n\t\t\t\t<p class=\"bx--modal-header__label bx--type-delta\" id=\"modal-title\">Tabular representation</p>\n\t\t\t\t<p class=\"bx--modal-header__heading bx--type-beta\" id=\"modal-description\">" + options.title + "</p>\n\t\t\t\t<button class=\"bx--modal-close\" type=\"button\" data-modal-close aria-label=\"close modal\" data-modal-primary-focus>\n\t\t\t\t\t<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" aria-label=\"Close\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" role=\"img\" class=\"bx--modal-close__icon\">\n\t\t\t\t\t\t<path d=\"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class=\"bx--modal-content\"
|
|
20584
|
-
.map(function (heading) { return "<th scope=\"col\">\n\t\t\t\t\t\t\t\t<div class=\"bx--table-header-label\">" + heading + "</div>\n\t\t\t\t\t\t\t</th>"; })
|
|
20585
|
-
.join('') + "\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>" + tableArray
|
|
20583
|
+
return "\n\t\t<div class=\"bx--modal-container cds--modal-container\">\n\t\t\t<div class=\"bx--modal-header cds--modal-header\">\n\t\t\t\t<p class=\"bx--modal-header__label bx--type-delta cds--modal-header__label cds--type-delta\" id=\"modal-title\">Tabular representation</p>\n\n\t\t\t\t<p class=\"bx--modal-header__heading bx--type-beta cds--modal-header__heading cds--type-beta\" id=\"modal-description\">" + options.title + "</p>\n\n\t\t\t\t<button class=\"bx--modal-close cds--modal-close\" type=\"button\" data-modal-close aria-label=\"close modal\" data-modal-primary-focus>\n\t\t\t\t\t<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" aria-label=\"Close\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" role=\"img\" class=\"bx--modal-close__icon cds--modal-close__icon\">\n\t\t\t\t\t\t<path d=\"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<div class=\"bx--modal-content cds--modal-content\">\n\t\t\t\t<table class=\"bx--data-table bx--data-table--no-border cds--data-table cds--data-table--no-border\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t" + lodash_es_get(tableArray, 0)
|
|
20584
|
+
.map(function (heading) { return "<th scope=\"col\">\n\t\t\t\t\t\t\t\t<div class=\"bx--table-header-label cds--table-header-label\">" + heading + "</div>\n\t\t\t\t\t\t\t</th>"; })
|
|
20585
|
+
.join('') + "\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\n\t\t\t\t\t<tbody>" + tableArray
|
|
20586
20586
|
.slice(1)
|
|
20587
20587
|
.map(function (row) { return "\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t" + row.map(function (column) { return "<td>" + column + "</td>"; }).join('') + "\n\t\t\t\t\t\t\t</tr>"; })
|
|
20588
|
-
.join('') + "\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t\t<div class=\"bx--modal-footer\">\n\t\t\t <div class=\"" + js_settings.prefix + "--" + chartprefix + "-modal-footer-spacer\"></div>\n\t\t\t <button class=\"bx--btn bx--btn--primary\" type=\"button\" data-modal-primary-focus>Download as CSV</button>\n\t\t\t</div>\n\t\t</div>";
|
|
20588
|
+
.join('') + "\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\n\t\t\t<div class=\"bx--modal-footer cds--modal-footer\">\n\t\t\t <div class=\"" + js_settings.prefix + "--" + chartprefix + "-modal-footer-spacer\"></div>\n\t\t\t <button class=\"bx--btn bx--btn--primary cds--btn cds--btn--primary\" type=\"button\" data-modal-primary-focus>Download as CSV</button>\n\t\t\t</div>\n\t\t</div>";
|
|
20589
20589
|
};
|
|
20590
20590
|
Modal.prototype.render = function () {
|
|
20591
20591
|
var options = this.model.getOptions();
|
|
@@ -20598,7 +20598,7 @@ var essentials_modal_Modal = /** @class */ (function (_super) {
|
|
|
20598
20598
|
this.isEventListenerAdded = true;
|
|
20599
20599
|
this.modal
|
|
20600
20600
|
.attr('data-modal', true)
|
|
20601
|
-
.attr('class', 'bx--modal')
|
|
20601
|
+
.attr('class', 'bx--modal cds--modal')
|
|
20602
20602
|
.attr('role', 'dialog')
|
|
20603
20603
|
.attr('aria-modal', true)
|
|
20604
20604
|
.attr('aria-labelledby', 'modal-title')
|
|
@@ -39586,7 +39586,7 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
|
|
|
39586
39586
|
if (!this.overflowMenu) {
|
|
39587
39587
|
this.overflowMenu = container
|
|
39588
39588
|
.append('div')
|
|
39589
|
-
.attr('class', 'bx--overflow-menu-options bx--overflow-menu--flip')
|
|
39589
|
+
.attr('class', 'bx--overflow-menu-options bx--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip')
|
|
39590
39590
|
.attr('tabindex', -1)
|
|
39591
39591
|
.attr('role', 'menu')
|
|
39592
39592
|
.html("<ul></ul>");
|
|
@@ -39604,7 +39604,7 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
|
|
|
39604
39604
|
var enteringToolbarControls = toolbarControls
|
|
39605
39605
|
.enter()
|
|
39606
39606
|
.append('div')
|
|
39607
|
-
.attr('class', 'toolbar-control bx--overflow-menu')
|
|
39607
|
+
.attr('class', 'toolbar-control bx--overflow-menu cds--overflow-menu')
|
|
39608
39608
|
.attr('role', 'button');
|
|
39609
39609
|
var self_1 = this;
|
|
39610
39610
|
var allToolbarControls = enteringToolbarControls
|
|
@@ -39612,9 +39612,9 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
|
|
|
39612
39612
|
.classed('disabled', function (d) { return d.shouldBeDisabled(); })
|
|
39613
39613
|
.attr('aria-disabled', function (d) { return d.shouldBeDisabled(); })
|
|
39614
39614
|
.attr('aria-label', function (d) { return d.title; })
|
|
39615
|
-
.html(function (d) { return "\n\t\t\t<button\n\t\t\t\tclass=\"bx--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
|
|
39615
|
+
.html(function (d) { return "\n\t\t\t<button\n\t\t\t\tclass=\"bx--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
|
|
39616
39616
|
? d.iconSVG.height
|
|
39617
|
-
: '20px') + "\" xmlns=\"http://www.w3.org/2000/svg\" class=\"bx--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>"; })
|
|
39617
|
+
: '20px') + "\" xmlns=\"http://www.w3.org/2000/svg\" class=\"bx--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>"; })
|
|
39618
39618
|
.each(function (d, index) {
|
|
39619
39619
|
var _this = this;
|
|
39620
39620
|
src_select(this)
|
|
@@ -39658,15 +39658,18 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
|
|
|
39658
39658
|
.attr('id', function (d) {
|
|
39659
39659
|
return _this.services.domUtils.generateElementIDString("control-" + d.id);
|
|
39660
39660
|
})
|
|
39661
|
-
.attr('class', 'bx--overflow-menu-options__option')
|
|
39661
|
+
.attr('class', 'bx--overflow-menu-options__option cds--overflow-menu-options__option')
|
|
39662
39662
|
.attr('role', 'menuitem');
|
|
39663
39663
|
enteringOverflowMenuControls
|
|
39664
39664
|
.append('button')
|
|
39665
|
-
.attr('class', 'bx--overflow-menu-options__btn');
|
|
39665
|
+
.attr('class', 'bx--overflow-menu-options__btn cds--overflow-menu-options__btn');
|
|
39666
39666
|
enteringOverflowMenuControls
|
|
39667
39667
|
.merge(overflowMenuControls)
|
|
39668
39668
|
.classed('bx--overflow-menu-options__option--disabled', function (d) {
|
|
39669
39669
|
return d.shouldBeDisabled();
|
|
39670
|
+
})
|
|
39671
|
+
.classed('cds--overflow-menu-options__option--disabled', function (d) {
|
|
39672
|
+
return d.shouldBeDisabled();
|
|
39670
39673
|
})
|
|
39671
39674
|
.attr('aria-disabled', function (d) { return d.shouldBeDisabled(); })
|
|
39672
39675
|
.selectAll('button')
|
|
@@ -39684,7 +39687,8 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
|
|
|
39684
39687
|
// update overflow button background
|
|
39685
39688
|
if (this.overflowButton) {
|
|
39686
39689
|
this.overflowButton.attr('aria-expanded', show);
|
|
39687
|
-
src_select(this.overflowButton.node().parentNode)
|
|
39690
|
+
src_select(this.overflowButton.node().parentNode)
|
|
39691
|
+
.classed('bx--overflow-menu--open', show).classed('cds--overflow-menu--open', show);
|
|
39688
39692
|
}
|
|
39689
39693
|
if (show) {
|
|
39690
39694
|
this.services.events.dispatchEvent(Events.Toolbar.SHOW_OVERFLOW_MENU);
|