@carbon/charts-react 1.13.6 → 1.13.8

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.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").attr("role", "button"), o = this;
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, this.modal.attr("data-modal", !0).attr("class", "cds--modal cds--modal").attr("role", "dialog").attr("aria-modal", !0).attr("aria-labelledby", "modal-title").attr("aria-describedby", "modal-description").attr("tabindex", -1);
14407
+ this.modal = D.appendOrSelect(r, `div.${he}--${i}--modal`), this.addEventListeners(), this.isEventListenerAdded = !0;
14406
14408
  }
14407
14409
  }
14408
14410
  destroy() {