@carbon/charts-vue 1.23.4 → 1.23.6

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,28 @@
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.6 (2025-04-22)
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
+
15
+ ## 1.23.5 (2025-04-15)
16
+
17
+ ### Bug Fixes
18
+
19
+ - **Tooltip:** formatter not called when value is falsey
20
+ ([#1980](https://github.com/carbon-design-system/carbon-charts/issues/1980))
21
+ ([2734886](https://github.com/carbon-design-system/carbon-charts/commit/27348863ede9f15f82ba4a1517e6b2c5aee439b4))
22
+
23
+ # Change Log
24
+
25
+ All notable changes to this project will be documented in this file. See
26
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
27
+
6
28
  ## 1.23.4 (2025-04-15)
7
29
 
8
30
  ### Bug Fixes
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(