@carbon/charts 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/CHANGELOG.md +18 -0
- package/dist/{choropleth-75258a8a.mjs → choropleth-d532597d.mjs} +9 -7
- package/dist/choropleth-d532597d.mjs.map +1 -0
- package/dist/components/essentials/modal.d.ts +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/demo/index.mjs +5 -5
- package/dist/index.mjs +2 -2
- package/dist/umd/bundle.umd.js +9 -9
- package/dist/umd/bundle.umd.js.map +1 -1
- package/package.json +2 -2
- package/dist/choropleth-75258a8a.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
|
|
15
|
+
## 1.13.6 (2023-10-06)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @carbon/charts
|
|
18
|
+
|
|
19
|
+
# Change Log
|
|
20
|
+
|
|
21
|
+
All notable changes to this project will be documented in this file. See
|
|
22
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
23
|
+
|
|
6
24
|
## 1.13.5 (2023-10-03)
|
|
7
25
|
|
|
8
26
|
**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")
|
|
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
|
|
1911
|
+
this.modal = E.appendOrSelect(s, `div.${he}--${n}--modal`), this.addEventListeners(), this.isEventListenerAdded = !0;
|
|
1910
1912
|
}
|
|
1911
1913
|
}
|
|
1912
1914
|
destroy() {
|
|
@@ -2088,7 +2090,7 @@ class nr extends z {
|
|
|
2088
2090
|
i.attr("id", function() {
|
|
2089
2091
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
2090
2092
|
}), s !== Ie.NONE ? i.html(function(r) {
|
|
2091
|
-
return r.name.length > n ? Ge(r.name, s, a) : r.name;
|
|
2093
|
+
return r.name.length > n && r.name.length !== a ? Ge(r.name, s, a) : r.name;
|
|
2092
2094
|
}) : i.html((r) => r.name);
|
|
2093
2095
|
}
|
|
2094
2096
|
addEventListeners() {
|
|
@@ -2100,7 +2102,7 @@ class nr extends z {
|
|
|
2100
2102
|
const r = x(this);
|
|
2101
2103
|
r.select("div.checkbox").classed("hovered", !0);
|
|
2102
2104
|
const l = r.datum();
|
|
2103
|
-
l.name.length > a.threshold && a.type !== Ie.NONE && e.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
2105
|
+
l.name.length > a.threshold && a.numCharacter < l.name.length && a.type !== Ie.NONE && e.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
2104
2106
|
event: i,
|
|
2105
2107
|
hoveredElement: r,
|
|
2106
2108
|
content: l.name
|
|
@@ -2340,7 +2342,7 @@ class ir extends z {
|
|
|
2340
2342
|
return s !== Ie.NONE ? e.map((i) => {
|
|
2341
2343
|
const r = i.labelIcon ? 12 : 0;
|
|
2342
2344
|
return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + r > n && (i.label = Ge(i.label, s, a)), i.value && i.value.length > n && (i.value = Ge(i.value, s, a)), i;
|
|
2343
|
-
}) : e;
|
|
2345
|
+
}) : e.map((i) => (i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i));
|
|
2344
2346
|
}
|
|
2345
2347
|
getTooltipHTML(e) {
|
|
2346
2348
|
return '<ul class="multi-tooltip">' + e.map(
|
|
@@ -8030,4 +8032,4 @@ export {
|
|
|
8030
8032
|
Zc as y,
|
|
8031
8033
|
Bc as z
|
|
8032
8034
|
};
|
|
8033
|
-
//# sourceMappingURL=choropleth-
|
|
8035
|
+
//# sourceMappingURL=choropleth-d532597d.mjs.map
|