@carbon/charts 1.13.6 → 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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.13.7 (2023-11-01)
7
+
8
+ **Note:** Version bump only for package @carbon/charts
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
6
15
  ## 1.13.6 (2023-10-06)
7
16
 
8
17
  **Note:** Version bump only for package @carbon/charts
@@ -374,7 +374,7 @@ const Ns = class Hs extends z {
374
374
  a && n.push(this.getOverflowButtonConfig());
375
375
  const i = t.selectAll("div.toolbar-control").data(n, (c) => c.id);
376
376
  i.exit().remove();
377
- const r = i.enter().append("div").attr("class", "toolbar-control cds--overflow-menu cds--overflow-menu").attr("role", "button"), l = this;
377
+ const r = i.enter().append("div").attr("class", "toolbar-control cds--overflow-menu cds--overflow-menu"), l = this;
378
378
  r.merge(i).classed("disabled", (c) => c.shouldBeDisabled()).attr("aria-disabled", (c) => c.shouldBeDisabled()).attr("aria-label", (c) => c.title).html(
379
379
  (c) => `
380
380
  <button
@@ -1846,7 +1846,9 @@ const tr = er;
1846
1846
  class rc extends z {
1847
1847
  constructor(e, t, s) {
1848
1848
  super(e, t, s), this.type = "modal", this.isEventListenerAdded = !1, this.handleShowModal = () => {
1849
- this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), tr.create(this.modal.node()).show();
1849
+ 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()), tr.create(this.modal.node()).show(), document.addEventListener("modal-hidden", this.handleHideModal);
1850
+ }, this.handleHideModal = () => {
1851
+ 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);
1850
1852
  }, this.init();
1851
1853
  }
1852
1854
  addEventListeners() {
@@ -1906,7 +1908,7 @@ class rc extends z {
1906
1908
  const t = this.model.getOptions();
1907
1909
  if (!this.isEventListenerAdded) {
1908
1910
  const s = x(this.services.domUtils.getHolder()), n = y(t, "style", "prefix");
1909
- this.modal = E.appendOrSelect(s, `div.${he}--${n}--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);
1911
+ this.modal = E.appendOrSelect(s, `div.${he}--${n}--modal`), this.addEventListeners(), this.isEventListenerAdded = !0;
1910
1912
  }
1911
1913
  }
1912
1914
  destroy() {
@@ -8030,4 +8032,4 @@ export {
8030
8032
  Zc as y,
8031
8033
  Bc as z
8032
8034
  };
8033
- //# sourceMappingURL=choropleth-bfa2bf81.mjs.map
8035
+ //# sourceMappingURL=choropleth-d532597d.mjs.map