@carbon/charts 1.22.3 → 1.22.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 +18 -0
- package/dist/{angle-utils-RQSA_x-9.mjs → angle-utils-Cxvps4Hd.mjs} +29 -29
- package/dist/{angle-utils-RQSA_x-9.mjs.map → angle-utils-Cxvps4Hd.mjs.map} +1 -1
- package/dist/{array-DUMAG1_w.mjs → array-DjPCniaL.mjs} +2 -2
- package/dist/{array-DUMAG1_w.mjs.map → array-DjPCniaL.mjs.map} +1 -1
- package/dist/{choropleth-C1BTZZfm.mjs → choropleth-CtLw9e8_.mjs} +42 -23
- package/dist/{choropleth-C1BTZZfm.mjs.map → choropleth-CtLw9e8_.mjs.map} +1 -1
- package/dist/{color-scale-utils-CKd_DujW.mjs → color-scale-utils-Bxw257YA.mjs} +12 -10
- package/dist/{color-scale-utils-CKd_DujW.mjs.map → color-scale-utils-Bxw257YA.mjs.map} +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{index-CiAo-vQV.mjs → index-Kltqng9e.mjs} +10 -10
- package/dist/{index-CiAo-vQV.mjs.map → index-Kltqng9e.mjs.map} +1 -1
- package/dist/index.mjs +35 -35
- package/dist/model/index.mjs +4 -4
- package/dist/services/index.mjs +3 -3
- package/dist/umd/bundle.umd.cjs +9 -4
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +9 -4
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as f, k as i, i as b } from "./color-scale-utils-
|
|
1
|
+
import { b as f, k as i, i as b } from "./color-scale-utils-Bxw257YA.mjs";
|
|
2
2
|
function h(r, n) {
|
|
3
3
|
return r && f(r, n, i);
|
|
4
4
|
}
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
g as c,
|
|
30
30
|
k as s
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=array-
|
|
32
|
+
//# sourceMappingURL=array-DjPCniaL.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-
|
|
1
|
+
{"version":3,"file":"array-DjPCniaL.mjs","sources":["../../../node_modules/lodash-es/_baseForOwn.js","../../../node_modules/lodash-es/_createBaseEach.js","../../../node_modules/lodash-es/_baseEach.js","../../../node_modules/d3/node_modules/d3-shape/src/constant.js","../../../node_modules/d3/node_modules/d3-shape/src/array.js"],"sourcesContent":["import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nexport default createBaseEach;\n","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":["baseForOwn","object","iteratee","baseFor","keys","createBaseEach","eachFunc","fromRight","collection","isArrayLike","length","index","iterable","baseEach","constant","x","slice","array"],"mappings":";AAWA,SAASA,EAAWC,GAAQC,GAAU;AACpC,SAAOD,KAAUE,EAAQF,GAAQC,GAAUE,CAAI;AACjD;ACHA,SAASC,EAAeC,GAAUC,GAAW;AAC3C,SAAO,SAASC,GAAYN,GAAU;AACpC,QAAIM,KAAc;AAChB,aAAOA;AAET,QAAI,CAACC,EAAYD,CAAU;AACzB,aAAOF,EAASE,GAAYN,CAAQ;AAMtC,aAJIQ,IAASF,EAAW,QACpBG,IAA6B,IAC7BC,IAAW,OAAOJ,CAAU,GAEF,EAAEG,IAAQD,KAClCR,EAASU,EAASD,CAAK,GAAGA,GAAOC,CAAQ,MAAM;AAAnD;AAIF,WAAOJ;AAAA,EACR;AACH;AClBG,IAACK,IAAWR,EAAeL,CAAU;ACXzB,SAAQc,EAACC,GAAG;AACzB,SAAO,WAAoB;AACzB,WAAOA;AAAA,EACR;AACH;ACJU,IAACC,IAAQ,MAAM,UAAU;AAEpB,SAAQC,EAACF,GAAG;AACzB,SAAO,OAAOA,KAAM,YAAY,YAAYA,IACxCA,IACA,MAAM,KAAKA,CAAC;AAClB;","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as
|
|
1
|
+
import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as vo, a2 as Hl, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as yo, a8 as zr, a9 as en, g as T, p as qt, a as tn, C as Fr, aa as vt, w as wt, ab as kn, H as Yt, E as Wr, ac as Eo, ad as Is, c as Xl, ae as ye, I as Si, K as xi, e as ee, af as mn, ag as fe, f as me, x as ge, ah as jl, h as qe, O as Yl, ai as Ce, z as mt, l as jt, aj as $t, ak as ql, M as Zl, al as So, y as _t, q as un, n as Un, am as Fs, an as Kl, ao as Jl, ap as bi, aq as Xr, A as Te, ar as jr, as as xo, at as Ql } from "./color-scale-utils-Bxw257YA.mjs";
|
|
2
2
|
import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as Ws, d as ec, F as zn, n as Xs, H as js, C as Ys, p as Fn, b as qr, D as qs, U as nc, x as we, a0 as Wn, O as Zs } from "./axis-scales-CPuwbFQf.mjs";
|
|
3
3
|
import { R as it } from "./a11y-ePqvrObQ.mjs";
|
|
4
|
-
import { t as ss, s as R,
|
|
5
|
-
import { b as bo, c as lt, a as dr, s as cc } from "./array-
|
|
4
|
+
import { t as ss, s as R, c as Zr, e as Le, f as oe, h as Kr, g as Gt, i as is, j as Ke, m as Ks, k as Jr, l as Ct, n as Qr, o as sc, q as ic, u as ur, D as _, v as rc, w as Ti, G as ta, x as hr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-Cxvps4Hd.mjs";
|
|
5
|
+
import { b as bo, c as lt, a as dr, s as cc } from "./array-DjPCniaL.mjs";
|
|
6
6
|
function uc(s, t, e, n) {
|
|
7
7
|
for (var i = -1, r = s == null ? 0 : s.length; ++i < r; )
|
|
8
8
|
e = t(e, s[i], i, s);
|
|
@@ -264,8 +264,8 @@ function su(s, t) {
|
|
|
264
264
|
}), n;
|
|
265
265
|
}
|
|
266
266
|
function iu(s, t) {
|
|
267
|
-
var e =
|
|
268
|
-
return e(s,
|
|
267
|
+
var e = vo(s) ? Hl : su;
|
|
268
|
+
return e(s, mo(t));
|
|
269
269
|
}
|
|
270
270
|
var ru = 1 / 0;
|
|
271
271
|
function au(s, t) {
|
|
@@ -284,8 +284,8 @@ function ou(s, t) {
|
|
|
284
284
|
}), !!e;
|
|
285
285
|
}
|
|
286
286
|
function lu(s, t, e) {
|
|
287
|
-
var n =
|
|
288
|
-
return n(s,
|
|
287
|
+
var n = vo(s) ? Fl : ou;
|
|
288
|
+
return n(s, mo(t));
|
|
289
289
|
}
|
|
290
290
|
class Re {
|
|
291
291
|
constructor() {
|
|
@@ -2424,7 +2424,7 @@ function Cd(s, t, e, n, i, r, a, o) {
|
|
|
2424
2424
|
return u = (h * (t - r) - d * (s - i)) / u, [s + u * c, t + u * l];
|
|
2425
2425
|
}
|
|
2426
2426
|
function Jn(s, t, e, n, i, r, a) {
|
|
2427
|
-
var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(
|
|
2427
|
+
var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(ic(0, b * b * S - O * O)), C = (O * v - y * I) / S, G = (-O * y - v * I) / S, k = (O * v + y * I) / S, L = (-O * y + v * I) / S, B = C - m, D = G - E, A = k - m, w = L - E;
|
|
2428
2428
|
return B * B + D * D > A * A + w * w && (C = k, G = L), {
|
|
2429
2429
|
cx: C,
|
|
2430
2430
|
cy: G,
|
|
@@ -2437,12 +2437,12 @@ function Jn(s, t, e, n, i, r, a) {
|
|
|
2437
2437
|
function Dn() {
|
|
2438
2438
|
var s = Ld, t = Ad, e = lt(0), n = null, i = Md, r = _d, a = kd, o = null, c = $s(l);
|
|
2439
2439
|
function l() {
|
|
2440
|
-
var h, d, u = +s.apply(this, arguments), p = +t.apply(this, arguments), f = i.apply(this, arguments) -
|
|
2440
|
+
var h, d, u = +s.apply(this, arguments), p = +t.apply(this, arguments), f = i.apply(this, arguments) - Kr, g = r.apply(this, arguments) - Kr, m = Jr(g - f), E = g > f;
|
|
2441
2441
|
if (o || (o = h = c()), p < u && (d = p, p = u, u = d), !(p > Gt)) o.moveTo(0, 0);
|
|
2442
2442
|
else if (m > is - Gt)
|
|
2443
2443
|
o.moveTo(p * Le(f), p * oe(f)), o.arc(0, 0, p, f, g, !E), u > Gt && (o.moveTo(u * Le(g), u * oe(g)), o.arc(0, 0, u, g, f, E));
|
|
2444
2444
|
else {
|
|
2445
|
-
var y = f, v = g, S = f, b = g, O = m, I = m, C = a.apply(this, arguments) / 2, G = C > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), k = Ks(
|
|
2445
|
+
var y = f, v = g, S = f, b = g, O = m, I = m, C = a.apply(this, arguments) / 2, G = C > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), k = Ks(Jr(p - u) / 2, +e.apply(this, arguments)), L = k, B = k, D, A;
|
|
2446
2446
|
if (G > Gt) {
|
|
2447
2447
|
var w = Qr(G / u * oe(C)), V = Qr(G / p * oe(C));
|
|
2448
2448
|
(O -= w * 2) > Gt ? (w *= E ? 1 : -1, S += w, b -= w) : (O = 0, S = b = (f + g) / 2), (I -= V * 2) > Gt ? (V *= E ? 1 : -1, y += V, v -= V) : (I = 0, y = v = (f + g) / 2);
|
|
@@ -2450,9 +2450,9 @@ function Dn() {
|
|
|
2450
2450
|
var N = p * Le(y), P = p * oe(y), $ = u * Le(b), X = u * oe(b);
|
|
2451
2451
|
if (k > Gt) {
|
|
2452
2452
|
var F = p * Le(v), et = p * oe(v), J = u * Le(S), ct = u * oe(S), Q;
|
|
2453
|
-
if (m <
|
|
2453
|
+
if (m < Zr)
|
|
2454
2454
|
if (Q = Cd(N, P, J, ct, F, et, $, X)) {
|
|
2455
|
-
var j = N - Q[0], K = P - Q[1], ut = F - Q[0], ht = et - Q[1], yt = 1 / oe(
|
|
2455
|
+
var j = N - Q[0], K = P - Q[1], ut = F - Q[0], ht = et - Q[1], yt = 1 / oe(sc((j * ut + K * ht) / (Ke(j * j + K * K) * Ke(ut * ut + ht * ht))) / 2), Ut = Ke(Q[0] * Q[0] + Q[1] * Q[1]);
|
|
2456
2456
|
L = Ks(k, (u - Ut) / (yt - 1)), B = Ks(k, (p - Ut) / (yt + 1));
|
|
2457
2457
|
} else
|
|
2458
2458
|
L = B = 0;
|
|
@@ -2462,7 +2462,7 @@ function Dn() {
|
|
|
2462
2462
|
if (o.closePath(), h) return o = null, h + "" || null;
|
|
2463
2463
|
}
|
|
2464
2464
|
return l.centroid = function() {
|
|
2465
|
-
var h = (+s.apply(this, arguments) + +t.apply(this, arguments)) / 2, d = (+i.apply(this, arguments) + +r.apply(this, arguments)) / 2 -
|
|
2465
|
+
var h = (+s.apply(this, arguments) + +t.apply(this, arguments)) / 2, d = (+i.apply(this, arguments) + +r.apply(this, arguments)) / 2 - Zr / 2;
|
|
2466
2466
|
return [Le(d) * h, oe(d) * h];
|
|
2467
2467
|
}, l.innerRadius = function(h) {
|
|
2468
2468
|
return arguments.length ? (s = typeof h == "function" ? h : lt(+h), l) : s;
|
|
@@ -2763,7 +2763,7 @@ class ot {
|
|
|
2763
2763
|
return this.configs.options ? tn({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
|
-
/*! @license DOMPurify 3.2.
|
|
2766
|
+
/*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE */
|
|
2767
2767
|
const {
|
|
2768
2768
|
entries: ml,
|
|
2769
2769
|
setPrototypeOf: Va,
|
|
@@ -2869,11 +2869,20 @@ var Wa = /* @__PURE__ */ Object.freeze({
|
|
|
2869
2869
|
});
|
|
2870
2870
|
const gn = {
|
|
2871
2871
|
element: 1,
|
|
2872
|
+
attribute: 2,
|
|
2872
2873
|
text: 3,
|
|
2874
|
+
cdataSection: 4,
|
|
2875
|
+
entityReference: 5,
|
|
2876
|
+
// Deprecated
|
|
2877
|
+
entityNode: 6,
|
|
2873
2878
|
// Deprecated
|
|
2874
2879
|
progressingInstruction: 7,
|
|
2875
2880
|
comment: 8,
|
|
2876
|
-
document: 9
|
|
2881
|
+
document: 9,
|
|
2882
|
+
documentType: 10,
|
|
2883
|
+
documentFragment: 11,
|
|
2884
|
+
notation: 12
|
|
2885
|
+
// Deprecated
|
|
2877
2886
|
}, op = function() {
|
|
2878
2887
|
return typeof window > "u" ? null : window;
|
|
2879
2888
|
}, lp = function(t, e) {
|
|
@@ -2899,7 +2908,7 @@ const gn = {
|
|
|
2899
2908
|
function Sl() {
|
|
2900
2909
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : op();
|
|
2901
2910
|
const t = (Z) => Sl(Z);
|
|
2902
|
-
if (t.version = "3.2.
|
|
2911
|
+
if (t.version = "3.2.1", t.removed = [], !s || !s.document || s.document.nodeType !== gn.document)
|
|
2903
2912
|
return t.isSupported = !1, t;
|
|
2904
2913
|
let {
|
|
2905
2914
|
document: e
|
|
@@ -3760,6 +3769,12 @@ var up = {
|
|
|
3760
3769
|
button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),
|
|
3761
3770
|
textarea:not([disabled]):not([tabindex='-1']),
|
|
3762
3771
|
iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]
|
|
3772
|
+
`,
|
|
3773
|
+
selectorFocusable: `
|
|
3774
|
+
a[href], area[href], input:not([disabled]),
|
|
3775
|
+
button:not([disabled]),select:not([disabled]),
|
|
3776
|
+
textarea:not([disabled]),
|
|
3777
|
+
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
3763
3778
|
`
|
|
3764
3779
|
}, mi = up;
|
|
3765
3780
|
function hp(s, t, e) {
|
|
@@ -5181,7 +5196,9 @@ var Ka = (Fe = {}, Fe[Ot.LEFT] = function(s, t, e) {
|
|
|
5181
5196
|
};
|
|
5182
5197
|
}, Fe), Ja = typeof window < "u" ? window : {
|
|
5183
5198
|
innerHeight: 0,
|
|
5184
|
-
|
|
5199
|
+
scrollY: 0,
|
|
5200
|
+
innerWidth: 0,
|
|
5201
|
+
scrollX: 0
|
|
5185
5202
|
}, Vs = (
|
|
5186
5203
|
/** @class */
|
|
5187
5204
|
function() {
|
|
@@ -10751,6 +10768,8 @@ class ty extends ot {
|
|
|
10751
10768
|
return;
|
|
10752
10769
|
const r = this.model.getOptions(), a = this.model.getDisplayData(), o = T(r, "tree", "rootTitle") || "Tree", c = this.getMockLabelWidth(e, o), l = this.getLongestLabel(a), h = this.getMockLabelWidth(e, l), d = {
|
|
10753
10770
|
top: 0,
|
|
10771
|
+
right: 0,
|
|
10772
|
+
bottom: 0,
|
|
10754
10773
|
left: c > 0 ? c + We : 30 - We
|
|
10755
10774
|
}, u = Pn({
|
|
10756
10775
|
name: o,
|
|
@@ -11742,12 +11761,12 @@ export {
|
|
|
11742
11761
|
V0 as q,
|
|
11743
11762
|
sy as r,
|
|
11744
11763
|
G0 as s,
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11764
|
+
K0 as t,
|
|
11765
|
+
Q0 as u,
|
|
11766
|
+
M0 as v,
|
|
11748
11767
|
q0 as w,
|
|
11749
|
-
|
|
11750
|
-
|
|
11768
|
+
z0 as x,
|
|
11769
|
+
J0 as y,
|
|
11751
11770
|
U0 as z
|
|
11752
11771
|
};
|
|
11753
|
-
//# sourceMappingURL=choropleth-
|
|
11772
|
+
//# sourceMappingURL=choropleth-CtLw9e8_.mjs.map
|