@carbon/charts-vue 1.13.18 → 1.13.19
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 +9 -0
- package/dist/index.mjs +15 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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.19 (2024-01-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
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.18 (2024-01-03)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @carbon/charts-vue
|
package/dist/index.mjs
CHANGED
|
@@ -11453,7 +11453,7 @@ const XD = "DONT_STYLE_ME_css_styles_verifier";
|
|
|
11453
11453
|
let D = class ec extends Tn {
|
|
11454
11454
|
// initialized in initializeID() called by init()
|
|
11455
11455
|
constructor(t, n) {
|
|
11456
|
-
super(t, n)
|
|
11456
|
+
super(t, n);
|
|
11457
11457
|
}
|
|
11458
11458
|
static getHTMLElementSize(t) {
|
|
11459
11459
|
return {
|
|
@@ -11533,7 +11533,7 @@ let D = class ec extends Tn {
|
|
|
11533
11533
|
return r;
|
|
11534
11534
|
}
|
|
11535
11535
|
init() {
|
|
11536
|
-
this.
|
|
11536
|
+
this.initializeID(), this.styleHolderElement(), this.addMainContainer(), this.model.getOptions().resizable && this.addResizeListener(), this.addHolderListeners(), this.handleFullscreenChange();
|
|
11537
11537
|
}
|
|
11538
11538
|
getChartID() {
|
|
11539
11539
|
return this.chartID;
|
|
@@ -14753,7 +14753,8 @@ const gN = pN;
|
|
|
14753
14753
|
class vo extends dt {
|
|
14754
14754
|
constructor(t, n, r) {
|
|
14755
14755
|
super(t, n, r), this.type = "modal", this.isEventListenerAdded = !1, this.handleShowModal = () => {
|
|
14756
|
-
|
|
14756
|
+
const i = this.services.domUtils.getChartID();
|
|
14757
|
+
this.modal.attr("data-modal", !0).attr("class", "cds--modal").attr("role", "dialog").attr("aria-modal", !0).attr("aria-labelledby", `${i}__modal-title`).attr("aria-describedby", `${i}__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()), gN.create(this.modal.node()).show(), document.addEventListener("modal-hidden", this.handleHideModal);
|
|
14757
14758
|
}, this.handleHideModal = () => {
|
|
14758
14759
|
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);
|
|
14759
14760
|
}, this.init();
|
|
@@ -14765,14 +14766,14 @@ class vo extends dt {
|
|
|
14765
14766
|
this.services.events.removeEventListener(O.Modal.SHOW, this.handleShowModal);
|
|
14766
14767
|
}
|
|
14767
14768
|
getModalHTML() {
|
|
14768
|
-
const t = this.model.getOptions(),
|
|
14769
|
+
const t = this.services.domUtils.getChartID(), n = this.model.getOptions(), r = b(n, "style", "prefix"), i = this.model.getTabularDataArray();
|
|
14769
14770
|
return `
|
|
14770
14771
|
<div class="cds--modal-container cds--modal-container">
|
|
14771
14772
|
<div class="cds--modal-header cds--modal-header">
|
|
14772
|
-
<p class="cds--modal-header__label cds--type-delta cds--modal-header__label cds--type-delta" id="
|
|
14773
|
+
<p class="cds--modal-header__label cds--type-delta cds--modal-header__label cds--type-delta" id="${t}__modal-title">Tabular representation</p>
|
|
14773
14774
|
|
|
14774
|
-
<p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="
|
|
14775
|
-
|
|
14775
|
+
<p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="${t}__modal-description">${Ze(
|
|
14776
|
+
n.title
|
|
14776
14777
|
)}</p>
|
|
14777
14778
|
|
|
14778
14779
|
<button class="cds--modal-close cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>
|
|
@@ -14786,18 +14787,18 @@ class vo extends dt {
|
|
|
14786
14787
|
<table class="cds--data-table cds--data-table--no-border cds--data-table cds--data-table--no-border">
|
|
14787
14788
|
<thead>
|
|
14788
14789
|
<tr>
|
|
14789
|
-
${Tt(
|
|
14790
|
-
(
|
|
14791
|
-
<div class="cds--table-header-label cds--table-header-label">${Ze(
|
|
14790
|
+
${Tt(i, 0).map(
|
|
14791
|
+
(s) => `<th scope="col">
|
|
14792
|
+
<div class="cds--table-header-label cds--table-header-label">${Ze(s)}</div>
|
|
14792
14793
|
</th>`
|
|
14793
14794
|
).join("")}
|
|
14794
14795
|
</tr>
|
|
14795
14796
|
</thead>
|
|
14796
14797
|
|
|
14797
|
-
<tbody>${
|
|
14798
|
-
(
|
|
14798
|
+
<tbody>${i.slice(1).map(
|
|
14799
|
+
(s) => `
|
|
14799
14800
|
<tr>
|
|
14800
|
-
${
|
|
14801
|
+
${s.map((a) => `<td>${Ze(a)}</td>`).join("")}
|
|
14801
14802
|
</tr>`
|
|
14802
14803
|
).join("")}
|
|
14803
14804
|
</tbody>
|
|
@@ -14805,7 +14806,7 @@ class vo extends dt {
|
|
|
14805
14806
|
</div>
|
|
14806
14807
|
|
|
14807
14808
|
<div class="cds--modal-footer cds--modal-footer">
|
|
14808
|
-
<div class="${oe}--${
|
|
14809
|
+
<div class="${oe}--${r}-modal-footer-spacer"></div>
|
|
14809
14810
|
<button class="cds--btn cds--btn--primary cds--btn cds--btn--primary" type="button" data-modal-primary-focus>Download as CSV</button>
|
|
14810
14811
|
</div>
|
|
14811
14812
|
</div>`;
|