@carbon/charts-vue 1.23.3 → 1.23.5

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,32 @@
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.23.5 (2025-04-15)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **Tooltip:** formatter not called when value is falsey
11
+ ([#1980](https://github.com/carbon-design-system/carbon-charts/issues/1980))
12
+ ([2734886](https://github.com/carbon-design-system/carbon-charts/commit/27348863ede9f15f82ba4a1517e6b2c5aee439b4))
13
+
14
+ # Change Log
15
+
16
+ All notable changes to this project will be documented in this file. See
17
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
18
+
19
+ ## 1.23.4 (2025-04-15)
20
+
21
+ ### Bug Fixes
22
+
23
+ - **Skeleton:** add role=presentation
24
+ ([#1979](https://github.com/carbon-design-system/carbon-charts/issues/1979))
25
+ ([d9b0aa5](https://github.com/carbon-design-system/carbon-charts/commit/d9b0aa510e1587be03c459e8c5e02bb8d8273c88))
26
+
27
+ # Change Log
28
+
29
+ All notable changes to this project will be documented in this file. See
30
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
31
+
6
32
  ## 1.23.3 (2025-04-15)
7
33
 
8
34
  **Note:** Version bump only for package @carbon/charts-vue
package/dist/index.mjs CHANGED
@@ -4062,7 +4062,10 @@ const ce = "cds", mn = {
4062
4062
  }, $T = {
4063
4063
  code: typeof navigator < "u" && (navigator == null ? void 0 : navigator.language) || "en-US",
4064
4064
  // read from browser's navigator.language
4065
- number: (e, t = (navigator == null ? void 0 : navigator.language) || "en-US") => e.toLocaleString(t),
4065
+ number: (e, t = (navigator == null ? void 0 : navigator.language) || "en-US") => {
4066
+ var n;
4067
+ return (n = e == null ? void 0 : e.toLocaleString) == null ? void 0 : n.call(e, t);
4068
+ },
4066
4069
  // based on code property if specified
4067
4070
  date: (e, t = (navigator == null ? void 0 : navigator.language) || "en-US", n = {}, r = null) => r || e.toLocaleDateString(t, n),
4068
4071
  // based on code property if specified
@@ -5592,8 +5595,9 @@ function Tl(e, t, n, r, i, s) {
5592
5595
  const f = i.localeObject, { code: m, optionsObject: g } = s, v = g[r].type, x = g[r][h ? "primary" : "secondary"][p];
5593
5596
  if (r === "quarterly" || !x) {
5594
5597
  const _ = Sl(l, p, { locale: f }).split("").map((E) => {
5595
- const b = Number(E);
5596
- return E !== " " && !Number.isNaN(b) ? b.toLocaleString(m) : E;
5598
+ var b;
5599
+ const S = Number(E);
5600
+ return E !== " " && !Number.isNaN(S) ? (b = S == null ? void 0 : S.toLocaleString) == null ? void 0 : b.call(S, m) : E;
5597
5601
  });
5598
5602
  return s[v](l, m, {}, _.join(""));
5599
5603
  } else
@@ -12886,8 +12890,8 @@ class eu extends gt {
12886
12890
  const n = this.getOptions(), r = y(n, "tooltip", "truncation", "type"), i = y(n, "tooltip", "truncation", "threshold"), s = y(n, "tooltip", "truncation", "numCharacter");
12887
12891
  return r !== He.NONE ? t.map((a) => {
12888
12892
  const o = a.labelIcon ? 12 : 0;
12889
- return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = Zi(a.label, r, s)), a.value && a.value.length > i && (a.value = Zi(a.value, r, s)), a;
12890
- }) : t.map((a) => (a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a));
12893
+ return a.value = this.valueFormatter(a.value, a.label), a.label && a.label.length + o > i && (a.label = Zi(a.label, r, s)), a.value && a.value.length > i && (a.value = Zi(a.value, r, s)), a;
12894
+ }) : t.map((a) => (a.value = this.valueFormatter(a.value, a.label), a));
12891
12895
  }
12892
12896
  getTooltipHTML(t) {
12893
12897
  return '<ul class="multi-tooltip">' + t.map(
@@ -15282,7 +15286,7 @@ class le extends gt {
15282
15286
  const n = this.parent, { width: r, height: i } = N.getSVGElementSize(n, {
15283
15287
  useAttrs: !0
15284
15288
  });
15285
- this.backdrop = N.appendOrSelect(n, "svg.chart-skeleton.DAII").attr("width", r).attr("height", i);
15289
+ this.backdrop = N.appendOrSelect(n, "svg.chart-skeleton.DAII").attr("role", "presentation").attr("width", r).attr("height", i);
15286
15290
  const s = N.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop");
15287
15291
  s.attr("width", "100%").attr("height", "100%");
15288
15292
  const [a] = this.xScale.range(), [, o] = this.yScale.range();
@@ -18009,7 +18013,10 @@ class Lk extends le {
18009
18013
  }
18010
18014
  updateBackdropStyle() {
18011
18015
  const t = this.parent;
18012
- this.backdrop = N.appendOrSelect(t, "svg.chart-skeleton.DAII"), N.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
18016
+ this.backdrop = N.appendOrSelect(t, "svg.chart-skeleton.DAII").attr(
18017
+ "role",
18018
+ "presentation"
18019
+ ), N.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
18013
18020
  }
18014
18021
  }
18015
18022
  class _v extends gt {