@carbon/charts-react 1.13.5 → 1.13.7
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -12870,7 +12870,7 @@ const lv = class cv extends dt {
|
|
|
12870
12870
|
i && r.push(this.getOverflowButtonConfig());
|
|
12871
12871
|
const s = n.selectAll("div.toolbar-control").data(r, (l) => l.id);
|
|
12872
12872
|
s.exit().remove();
|
|
12873
|
-
const a = s.enter().append("div").attr("class", "toolbar-control cds--overflow-menu cds--overflow-menu")
|
|
12873
|
+
const a = s.enter().append("div").attr("class", "toolbar-control cds--overflow-menu cds--overflow-menu"), o = this;
|
|
12874
12874
|
a.merge(s).classed("disabled", (l) => l.shouldBeDisabled()).attr("aria-disabled", (l) => l.shouldBeDisabled()).attr("aria-label", (l) => l.title).html(
|
|
12875
12875
|
(l) => `
|
|
12876
12876
|
<button
|
|
@@ -14342,7 +14342,9 @@ const LI = AI;
|
|
|
14342
14342
|
class io extends dt {
|
|
14343
14343
|
constructor(t, n, r) {
|
|
14344
14344
|
super(t, n, r), this.type = "modal", this.isEventListenerAdded = !1, this.handleShowModal = () => {
|
|
14345
|
-
this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), LI.create(this.modal.node()).show();
|
|
14345
|
+
this.modal.attr("data-modal", !0).attr("class", "cds--modal").attr("role", "dialog").attr("aria-modal", !0).attr("aria-labelledby", "modal-title").attr("aria-describedby", "modal-description").attr("tabindex", -1), this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), LI.create(this.modal.node()).show(), document.addEventListener("modal-hidden", this.handleHideModal);
|
|
14346
|
+
}, this.handleHideModal = () => {
|
|
14347
|
+
this.modal.attr("role", null).attr("aria-modal", null).attr("aria-labelledby", null).attr("aria-describedby", null).attr("tabindex", null), document.removeEventListener("modal-hidden", this.handleHideModal);
|
|
14346
14348
|
}, this.init();
|
|
14347
14349
|
}
|
|
14348
14350
|
addEventListeners() {
|
|
@@ -14402,7 +14404,7 @@ class io extends dt {
|
|
|
14402
14404
|
const n = this.model.getOptions();
|
|
14403
14405
|
if (!this.isEventListenerAdded) {
|
|
14404
14406
|
const r = R(this.services.domUtils.getHolder()), i = b(n, "style", "prefix");
|
|
14405
|
-
this.modal = D.appendOrSelect(r, `div.${he}--${i}--modal`), this.addEventListeners(), this.isEventListenerAdded = !0
|
|
14407
|
+
this.modal = D.appendOrSelect(r, `div.${he}--${i}--modal`), this.addEventListeners(), this.isEventListenerAdded = !0;
|
|
14406
14408
|
}
|
|
14407
14409
|
}
|
|
14408
14410
|
destroy() {
|
|
@@ -14584,7 +14586,7 @@ class su extends dt {
|
|
|
14584
14586
|
a.attr("id", function() {
|
|
14585
14587
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
14586
14588
|
}), r !== Ie.NONE ? a.html(function(o) {
|
|
14587
|
-
return o.name.length > i ? zi(o.name, r, s) : o.name;
|
|
14589
|
+
return o.name.length > i && o.name.length !== s ? zi(o.name, r, s) : o.name;
|
|
14588
14590
|
}) : a.html((o) => o.name);
|
|
14589
14591
|
}
|
|
14590
14592
|
addEventListeners() {
|
|
@@ -14596,7 +14598,7 @@ class su extends dt {
|
|
|
14596
14598
|
const o = R(this);
|
|
14597
14599
|
o.select("div.checkbox").classed("hovered", !0);
|
|
14598
14600
|
const l = o.datum();
|
|
14599
|
-
l.name.length > s.threshold && s.type !== Ie.NONE && t.services.events.dispatchEvent(O.Tooltip.SHOW, {
|
|
14601
|
+
l.name.length > s.threshold && s.numCharacter < l.name.length && s.type !== Ie.NONE && t.services.events.dispatchEvent(O.Tooltip.SHOW, {
|
|
14600
14602
|
event: a,
|
|
14601
14603
|
hoveredElement: o,
|
|
14602
14604
|
content: l.name
|
|
@@ -14836,7 +14838,7 @@ class au extends dt {
|
|
|
14836
14838
|
return r !== Ie.NONE ? t.map((a) => {
|
|
14837
14839
|
const o = a.labelIcon ? 12 : 0;
|
|
14838
14840
|
return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = zi(a.label, r, s)), a.value && a.value.length > i && (a.value = zi(a.value, r, s)), a;
|
|
14839
|
-
}) : t;
|
|
14841
|
+
}) : t.map((a) => (a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a));
|
|
14840
14842
|
}
|
|
14841
14843
|
getTooltipHTML(t) {
|
|
14842
14844
|
return '<ul class="multi-tooltip">' + t.map(
|