@carbon/charts-react 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/dist/index.mjs +14 -7
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.cjs +4 -4
- package/dist/index.umd.cjs.map +1 -1
- package/dist/index.umd.js +4 -4
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -4065,7 +4065,10 @@ const ue = "cds", vn = {
|
|
|
4065
4065
|
}, kT = {
|
|
4066
4066
|
code: typeof navigator < "u" && (navigator == null ? void 0 : navigator.language) || "en-US",
|
|
4067
4067
|
// read from browser's navigator.language
|
|
4068
|
-
number: (e, t = (navigator == null ? void 0 : navigator.language) || "en-US") =>
|
|
4068
|
+
number: (e, t = (navigator == null ? void 0 : navigator.language) || "en-US") => {
|
|
4069
|
+
var n;
|
|
4070
|
+
return (n = e == null ? void 0 : e.toLocaleString) == null ? void 0 : n.call(e, t);
|
|
4071
|
+
},
|
|
4069
4072
|
// based on code property if specified
|
|
4070
4073
|
date: (e, t = (navigator == null ? void 0 : navigator.language) || "en-US", n = {}, r = null) => r || e.toLocaleDateString(t, n),
|
|
4071
4074
|
// based on code property if specified
|
|
@@ -5595,8 +5598,9 @@ function Ll(e, t, n, r, i, s) {
|
|
|
5595
5598
|
const f = i.localeObject, { code: g, optionsObject: m } = s, v = m[r].type, x = m[r][h ? "primary" : "secondary"][p];
|
|
5596
5599
|
if (r === "quarterly" || !x) {
|
|
5597
5600
|
const _ = Al(l, p, { locale: f }).split("").map((E) => {
|
|
5598
|
-
|
|
5599
|
-
|
|
5601
|
+
var b;
|
|
5602
|
+
const S = Number(E);
|
|
5603
|
+
return E !== " " && !Number.isNaN(S) ? (b = S == null ? void 0 : S.toLocaleString) == null ? void 0 : b.call(S, g) : E;
|
|
5600
5604
|
});
|
|
5601
5605
|
return s[v](l, g, {}, _.join(""));
|
|
5602
5606
|
} else
|
|
@@ -12893,8 +12897,8 @@ class lu extends mt {
|
|
|
12893
12897
|
const n = this.getOptions(), r = y(n, "tooltip", "truncation", "type"), i = y(n, "tooltip", "truncation", "threshold"), s = y(n, "tooltip", "truncation", "numCharacter");
|
|
12894
12898
|
return r !== Ve.NONE ? t.map((a) => {
|
|
12895
12899
|
const o = a.labelIcon ? 12 : 0;
|
|
12896
|
-
return a.value =
|
|
12897
|
-
}) : t.map((a) => (a.value =
|
|
12900
|
+
return a.value = this.valueFormatter(a.value, a.label), a.label && a.label.length + o > i && (a.label = ts(a.label, r, s)), a.value && a.value.length > i && (a.value = ts(a.value, r, s)), a;
|
|
12901
|
+
}) : t.map((a) => (a.value = this.valueFormatter(a.value, a.label), a));
|
|
12898
12902
|
}
|
|
12899
12903
|
getTooltipHTML(t) {
|
|
12900
12904
|
return '<ul class="multi-tooltip">' + t.map(
|
|
@@ -15289,7 +15293,7 @@ class ce extends mt {
|
|
|
15289
15293
|
const n = this.parent, { width: r, height: i } = N.getSVGElementSize(n, {
|
|
15290
15294
|
useAttrs: !0
|
|
15291
15295
|
});
|
|
15292
|
-
this.backdrop = N.appendOrSelect(n, "svg.chart-skeleton.DAII").attr("width", r).attr("height", i);
|
|
15296
|
+
this.backdrop = N.appendOrSelect(n, "svg.chart-skeleton.DAII").attr("role", "presentation").attr("width", r).attr("height", i);
|
|
15293
15297
|
const s = N.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop");
|
|
15294
15298
|
s.attr("width", "100%").attr("height", "100%");
|
|
15295
15299
|
const [a] = this.xScale.range(), [, o] = this.yScale.range();
|
|
@@ -18032,7 +18036,10 @@ class GD extends ce {
|
|
|
18032
18036
|
}
|
|
18033
18037
|
updateBackdropStyle() {
|
|
18034
18038
|
const t = this.parent;
|
|
18035
|
-
this.backdrop = N.appendOrSelect(t, "svg.chart-skeleton.DAII")
|
|
18039
|
+
this.backdrop = N.appendOrSelect(t, "svg.chart-skeleton.DAII").attr(
|
|
18040
|
+
"role",
|
|
18041
|
+
"presentation"
|
|
18042
|
+
), N.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
|
|
18036
18043
|
}
|
|
18037
18044
|
}
|
|
18038
18045
|
class $v extends mt {
|