@carbon/charts-vue 1.11.2 → 1.11.3
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 +13 -0
- package/dist/components/CcvAlluvialChart.d.ts +1 -1
- package/dist/components/CcvAreaChart.d.ts +1 -1
- package/dist/components/CcvBoxplotChart.d.ts +1 -1
- package/dist/components/CcvBubbleChart.d.ts +1 -1
- package/dist/components/CcvBulletChart.d.ts +1 -1
- package/dist/components/CcvChoroplethChart.d.ts +1 -1
- package/dist/components/CcvCirclePackChart.d.ts +1 -1
- package/dist/components/CcvComboChart.d.ts +1 -1
- package/dist/components/CcvDonutChart.d.ts +1 -1
- package/dist/components/CcvGaugeChart.d.ts +1 -1
- package/dist/components/CcvGroupedBarChart.d.ts +1 -1
- package/dist/components/CcvHeatmapChart.d.ts +1 -1
- package/dist/components/CcvHistogramChart.d.ts +1 -1
- package/dist/components/CcvLineChart.d.ts +1 -1
- package/dist/components/CcvLollipopChart.d.ts +1 -1
- package/dist/components/CcvMeterChart.d.ts +1 -1
- package/dist/components/CcvPieChart.d.ts +1 -1
- package/dist/components/CcvRadarChart.d.ts +1 -1
- package/dist/components/CcvScatterChart.d.ts +1 -1
- package/dist/components/CcvSimpleBarChart.d.ts +1 -1
- package/dist/components/CcvStackedAreaChart.d.ts +1 -1
- package/dist/components/CcvStackedBarChart.d.ts +1 -1
- package/dist/components/CcvTreeChart.d.ts +1 -1
- package/dist/components/CcvTreemapChart.d.ts +1 -1
- package/dist/components/CcvWordCloudChart.d.ts +1 -1
- package/dist/components/chartFactory.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -13265,7 +13265,7 @@ class en extends ut {
|
|
|
13265
13265
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13266
13266
|
// @ts-ignore
|
|
13267
13267
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13268
|
-
render(t = !
|
|
13268
|
+
render(t = !1) {
|
|
13269
13269
|
this.getComponentContainer().style("width", `${this.configs.size || rh.default.size}px`).style("height", `${this.configs.size || rh.default.size}px`).attr("opacity", 0);
|
|
13270
13270
|
}
|
|
13271
13271
|
}
|
|
@@ -14399,7 +14399,7 @@ class Ca extends ut {
|
|
|
14399
14399
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14400
14400
|
// @ts-ignore
|
|
14401
14401
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14402
|
-
render(t = !
|
|
14402
|
+
render(t = !1) {
|
|
14403
14403
|
const n = this.model.getOptions();
|
|
14404
14404
|
if (!this.isEventListenerAdded) {
|
|
14405
14405
|
const i = P(this.services.domUtils.getHolder()), r = E(n, "style", "prefix");
|
|
@@ -14417,7 +14417,7 @@ class Rr extends ut {
|
|
|
14417
14417
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14418
14418
|
// @ts-ignore
|
|
14419
14419
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14420
|
-
render(t = !
|
|
14420
|
+
render(t = !1) {
|
|
14421
14421
|
const n = this.getComponentContainer(), i = E(this.getOptions(), "title"), r = n.selectAll("p.title").data([i]);
|
|
14422
14422
|
if (r.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(r).html((s) => s), r.node() && r.node().offsetWidth < r.node().scrollWidth) {
|
|
14423
14423
|
const s = this;
|
|
@@ -14494,7 +14494,7 @@ class vc extends ut {
|
|
|
14494
14494
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14495
14495
|
// @ts-ignore
|
|
14496
14496
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14497
|
-
render(t = !
|
|
14497
|
+
render(t = !1) {
|
|
14498
14498
|
const n = this.getOptions(), i = E(n, "legend"), r = E(i, "alignment"), s = E(n, "legend", "orientation");
|
|
14499
14499
|
let a = this.model.getDataGroups();
|
|
14500
14500
|
const { DISABLED: o } = $t.items.status, c = a.some((b) => b.status === o), l = E(i, "order"), u = this.getComponentContainer().classed("center-aligned", r === It.CENTER).classed("right-aligned", r === It.RIGHT).classed(s, !0).classed("has-deactivated-items", c).attr("role", at.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
|
|
@@ -14869,7 +14869,7 @@ class yc extends ut {
|
|
|
14869
14869
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14870
14870
|
// @ts-ignore
|
|
14871
14871
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14872
|
-
render(t = !
|
|
14872
|
+
render(t = !1) {
|
|
14873
14873
|
const n = this.getOptions(), i = E(n, "tooltip", "enabled");
|
|
14874
14874
|
if (i) {
|
|
14875
14875
|
const r = P(this.services.domUtils.getHolder()), s = E(n, "style", "prefix");
|
|
@@ -15997,7 +15997,7 @@ let gn = class extends ut {
|
|
|
15997
15997
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15998
15998
|
// @ts-ignore
|
|
15999
15999
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16000
|
-
render(t = !
|
|
16000
|
+
render(t = !1) {
|
|
16001
16001
|
const n = E(this.getOptions(), "ruler", "enabled");
|
|
16002
16002
|
this.drawBackdrop(), n && !this.isEventListenerAdded ? this.addBackdropEventListeners() : !n && this.isEventListenerAdded && this.removeBackdropEventListeners();
|
|
16003
16003
|
}
|
|
@@ -16341,7 +16341,7 @@ let sm = class extends ut {
|
|
|
16341
16341
|
}), c = R.appendOrSelect(s, `g.axis.${n}`);
|
|
16342
16342
|
let l, u;
|
|
16343
16343
|
if (n === H.BOTTOM || n === H.TOP ? (l = this.configs.axes[H.LEFT] ? this.margins.left : 0, u = this.configs.axes[H.RIGHT] ? a - this.margins.right : a) : (l = o - this.margins.bottom, u = this.margins.top), !this.services.cartesianScales)
|
|
16344
|
-
throw new Error("Services cartesianScales
|
|
16344
|
+
throw new Error("Services cartesianScales undefined");
|
|
16345
16345
|
const h = this.services.cartesianScales.getScaleByPosition(n);
|
|
16346
16346
|
this.scaleType === Z.LABELS || this.scaleType === Z.LABELS_RATIO ? h.rangeRound([l, u]) : h.range([l, u]);
|
|
16347
16347
|
let d;
|
|
@@ -17663,7 +17663,7 @@ class am extends vc {
|
|
|
17663
17663
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17664
17664
|
// @ts-ignore
|
|
17665
17665
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17666
|
-
render(t = !
|
|
17666
|
+
render(t = !1) {
|
|
17667
17667
|
const n = this.getOptions(), i = this.getComponentContainer(), { width: r } = R.getSVGElementSize(i, {
|
|
17668
17668
|
useAttrs: !0
|
|
17669
17669
|
}), s = E(n, "color", "gradient", "colors"), a = E(
|
|
@@ -17745,7 +17745,7 @@ class Rk extends Rr {
|
|
|
17745
17745
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17746
17746
|
// @ts-ignore
|
|
17747
17747
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17748
|
-
render(t = !
|
|
17748
|
+
render(t = !1) {
|
|
17749
17749
|
const n = E(this.model.getDisplayData(), 0), i = this.getOptions(), r = this.getComponentContainer(), { groupMapsTo: s } = i.data;
|
|
17750
17750
|
if (E(i, "meter", "proportional"))
|
|
17751
17751
|
this.displayTotal(), this.displayBreakdownTitle();
|
|
@@ -21201,23 +21201,24 @@ class Me {
|
|
|
21201
21201
|
this.model.set({ holder: t }, { skipUpdate: !0 }), Object.keys(this.services).forEach((i) => {
|
|
21202
21202
|
const r = this.services[i];
|
|
21203
21203
|
this.services[i] = new r(this.model, this.services);
|
|
21204
|
-
}), this.services.events.addEventListener(C.Model.UPDATE, () => {
|
|
21205
|
-
|
|
21204
|
+
}), this.services.events.addEventListener(C.Model.UPDATE, (i) => {
|
|
21205
|
+
const r = !!E(i, "detail", "animate");
|
|
21206
|
+
this.update(r);
|
|
21206
21207
|
}), this.model.setData(n.data), this.services.events.addEventListener(C.Chart.RESIZE, () => {
|
|
21207
|
-
this.update();
|
|
21208
|
+
this.update(!1);
|
|
21208
21209
|
}), this.components = this.getComponents(), this.update();
|
|
21209
21210
|
}
|
|
21210
21211
|
getComponents() {
|
|
21211
21212
|
return console.error("getComponents() method is not implemented"), [];
|
|
21212
21213
|
}
|
|
21213
|
-
update() {
|
|
21214
|
+
update(t = !0) {
|
|
21214
21215
|
if (!this.components)
|
|
21215
21216
|
return;
|
|
21216
|
-
Object.keys(this.services).forEach((
|
|
21217
|
-
this.services[
|
|
21218
|
-
}), this.components.forEach((
|
|
21219
|
-
const
|
|
21220
|
-
Promise.all(
|
|
21217
|
+
Object.keys(this.services).forEach((r) => {
|
|
21218
|
+
this.services[r].update();
|
|
21219
|
+
}), this.components.forEach((r) => r.render(t));
|
|
21220
|
+
const n = this.services.transitions.getPendingTransitions(), i = Object.keys(n).map((r) => n[r].end().catch((s) => s));
|
|
21221
|
+
Promise.all(i).then(
|
|
21221
21222
|
() => this.services.events.dispatchEvent(C.Chart.RENDER_FINISHED)
|
|
21222
21223
|
);
|
|
21223
21224
|
}
|