@carbon/charts 1.11.1 → 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 +22 -0
- package/dist/{_baseEach-81f85d61.mjs → _baseEach-05847c57.mjs} +2 -2
- package/dist/{_baseEach-81f85d61.mjs.map → _baseEach-05847c57.mjs.map} +1 -1
- package/dist/{_baseEach-97abc473.js → _baseEach-477c04db.js} +2 -2
- package/dist/{_baseEach-97abc473.js.map → _baseEach-477c04db.js.map} +1 -1
- package/dist/{angle-utils-95c96b71.js → angle-utils-512bc5cd.js} +2 -2
- package/dist/{angle-utils-95c96b71.js.map → angle-utils-512bc5cd.js.map} +1 -1
- package/dist/{angle-utils-a4fbf1b8.mjs → angle-utils-7255d1d9.mjs} +2 -2
- package/dist/{angle-utils-a4fbf1b8.mjs.map → angle-utils-7255d1d9.mjs.map} +1 -1
- package/dist/chart.d.ts +1 -1
- package/dist/{choropleth-91db5841.mjs → choropleth-449cf25e.mjs} +711 -709
- package/dist/choropleth-449cf25e.mjs.map +1 -0
- package/dist/{choropleth-f46a0864.js → choropleth-db3ae9eb.js} +9 -9
- package/dist/choropleth-db3ae9eb.js.map +1 -0
- package/dist/{color-scale-utils-38aedd61.mjs → color-scale-utils-222feda6.mjs} +16 -16
- package/dist/{color-scale-utils-38aedd61.mjs.map → color-scale-utils-222feda6.mjs.map} +1 -1
- package/dist/{color-scale-utils-eaad59b6.js → color-scale-utils-79786095.js} +2 -2
- package/dist/{color-scale-utils-eaad59b6.js.map → color-scale-utils-79786095.js.map} +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/demo/charts/index.d.ts +9 -6
- package/dist/demo/index.js +197 -193
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/index.mjs +2118 -1591
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/utils/index.d.ts +1 -1
- package/dist/demo/utils/package-versions.d.ts +20 -0
- package/dist/demo/utils/stackblitz/angular.d.ts +3 -0
- package/dist/demo/utils/stackblitz/index.d.ts +5 -0
- package/dist/demo/utils/stackblitz/react.d.ts +3 -0
- package/dist/demo/utils/stackblitz/svelte.d.ts +3 -0
- package/dist/demo/utils/stackblitz/vanilla-js.d.ts +3 -0
- package/dist/demo/utils/stackblitz/vue.d.ts +3 -0
- package/dist/{index-c98febf2.js → index-4203ca23.js} +2 -2
- package/dist/index-4203ca23.js.map +1 -0
- package/dist/{index-fcba6cd5.mjs → index-e425a7b5.mjs} +3 -3
- package/dist/index-e425a7b5.mjs.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +100 -99
- package/dist/index.mjs.map +1 -1
- package/dist/model/index.js +1 -1
- package/dist/model/index.js.map +1 -1
- package/dist/model/index.mjs +13 -13
- package/dist/model/index.mjs.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/index.mjs +3 -3
- package/package.json +4 -4
- package/dist/choropleth-91db5841.mjs.map +0 -1
- package/dist/choropleth-f46a0864.js.map +0 -1
- package/dist/demo/utils/sandbox.d.ts +0 -36
- package/dist/index-c98febf2.js.map +0 -1
- package/dist/index-fcba6cd5.mjs.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { select as x, pointer as
|
|
2
|
-
import { t as Es, i as
|
|
3
|
-
import { y as H, _ as f, K as ee, r as ye, q as Te, L as
|
|
1
|
+
import { select as x, pointer as Je, brushX as ms, scaleTime as Zs, extent as Qe, area as kt, line as It, axisBottom as Dt, axisLeft as fs, axisTop as Xs, axisRight as Ys, scaleLinear as Oe, arc as $e, easeLinear as qs, path as Rt, interpolateNumber as vs, quantize as Ks, scaleBand as _t, hierarchy as Pt, pack as Js, pie as Qs, interpolate as en, interpolateRound as tn, min as ht, max as Nt, lineRadial as sn, curveLinearClosed as nn, cluster as an, tree as rn, linkHorizontal as on, treemap as ln, hsl as ys, color as bs, geoPath as cn, geoNaturalEarth1 as dn, geoMercator as hn, geoEquirectangular as un, geoConicEquidistant as pn, geoConicEqualArea as gn, geoAlbers as mn, geoEqualEarth as fn } from "d3";
|
|
2
|
+
import { t as Es, i as vn, U as Ss, V as yn, W as xs, X as bn, Y as En, Z as Sn, _ as xn, g as y, d as he, h as De, G as Ht, $ as On, a0 as Q, A as K, a1 as Ge, a2 as Ut, L as de, I as Tn, a3 as Os, f as Ln, a4 as ve, M as ut, O as pt, l as pe, a5 as Ve, a6 as ge, n as fe, B as me, a7 as wn, p as ke, S as Mn, D as Z, s as ce, a8 as ie, a9 as An, Q as Cn, C as se, v as Pe, u as He, aa as zt, ab as kn, ac as Ft, E as Ee } from "./color-scale-utils-222feda6.mjs";
|
|
3
|
+
import { y as H, _ as f, K as ee, r as ye, q as Te, L as In, A as ue, m as $, s as Se, V as Ie, S as te, e as P, Z as Le, i as le, f as Wt, J as nt, d as Dn, F as Ue, n as at, H as it, C as rt, p as ze, b as jt, D as ot, Q as Rn, x as xe, $ as Fe, N as lt } from "./enums-a96ef472.mjs";
|
|
4
4
|
import { R as U } from "./a11y-7bad4f48.mjs";
|
|
5
|
-
import { t as
|
|
6
|
-
import { sankey as
|
|
7
|
-
import { b as
|
|
8
|
-
import
|
|
9
|
-
function
|
|
5
|
+
import { t as ct, D as E, c as gt, G as Zt, a as _n, p as Y, r as Xt, b as Pn } from "./angle-utils-7255d1d9.mjs";
|
|
6
|
+
import { sankey as Vn, sankeyLinkHorizontal as Bn, sankeyJustify as $n, sankeyLeft as Gn, sankeyRight as Nn } from "d3-sankey";
|
|
7
|
+
import { b as Ts } from "./_baseEach-05847c57.mjs";
|
|
8
|
+
import Hn from "d3-cloud";
|
|
9
|
+
function Un(r, e, t, s) {
|
|
10
10
|
var n = -1, a = r == null ? 0 : r.length;
|
|
11
11
|
for (s && a && (t = r[++n]); ++n < a; )
|
|
12
12
|
t = e(t, r[n], n, r);
|
|
13
13
|
return t;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function zn(r) {
|
|
16
16
|
return function(e) {
|
|
17
17
|
return r == null ? void 0 : r[e];
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var Fn = {
|
|
21
21
|
// Latin-1 Supplement block.
|
|
22
22
|
À: "A",
|
|
23
23
|
Á: "A",
|
|
@@ -210,78 +210,78 @@ var Wn = {
|
|
|
210
210
|
œ: "oe",
|
|
211
211
|
ʼn: "'n",
|
|
212
212
|
ſ: "s"
|
|
213
|
-
},
|
|
214
|
-
const
|
|
215
|
-
var
|
|
216
|
-
function
|
|
217
|
-
return r = Es(r), r && r.replace(
|
|
218
|
-
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
221
|
-
return r.match(
|
|
222
|
-
}
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
return
|
|
226
|
-
}
|
|
227
|
-
var
|
|
228
|
-
Ce + "?" +
|
|
229
|
-
|
|
213
|
+
}, Wn = zn(Fn);
|
|
214
|
+
const jn = Wn;
|
|
215
|
+
var Zn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Xn = "\\u0300-\\u036f", Yn = "\\ufe20-\\ufe2f", qn = "\\u20d0-\\u20ff", Kn = Xn + Yn + qn, Jn = "[" + Kn + "]", Qn = RegExp(Jn, "g");
|
|
216
|
+
function ea(r) {
|
|
217
|
+
return r = Es(r), r && r.replace(Zn, jn).replace(Qn, "");
|
|
218
|
+
}
|
|
219
|
+
var ta = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
220
|
+
function sa(r) {
|
|
221
|
+
return r.match(ta) || [];
|
|
222
|
+
}
|
|
223
|
+
var na = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
224
|
+
function aa(r) {
|
|
225
|
+
return na.test(r);
|
|
226
|
+
}
|
|
227
|
+
var Ls = "\\ud800-\\udfff", ia = "\\u0300-\\u036f", ra = "\\ufe20-\\ufe2f", oa = "\\u20d0-\\u20ff", la = ia + ra + oa, ws = "\\u2700-\\u27bf", Ms = "a-z\\xdf-\\xf6\\xf8-\\xff", ca = "\\xac\\xb1\\xd7\\xf7", da = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ha = "\\u2000-\\u206f", ua = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", As = "A-Z\\xc0-\\xd6\\xd8-\\xde", pa = "\\ufe0e\\ufe0f", Cs = ca + da + ha + ua, ks = "['’]", Yt = "[" + Cs + "]", ga = "[" + la + "]", Is = "\\d+", ma = "[" + ws + "]", Ds = "[" + Ms + "]", Rs = "[^" + Ls + Cs + Is + ws + Ms + As + "]", fa = "\\ud83c[\\udffb-\\udfff]", va = "(?:" + ga + "|" + fa + ")", ya = "[^" + Ls + "]", _s = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ps = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ce = "[" + As + "]", ba = "\\u200d", qt = "(?:" + Ds + "|" + Rs + ")", Ea = "(?:" + Ce + "|" + Rs + ")", Kt = "(?:" + ks + "(?:d|ll|m|re|s|t|ve))?", Jt = "(?:" + ks + "(?:D|LL|M|RE|S|T|VE))?", Vs = va + "?", Bs = "[" + pa + "]?", Sa = "(?:" + ba + "(?:" + [ya, _s, Ps].join("|") + ")" + Bs + Vs + ")*", xa = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Oa = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Ta = Bs + Vs + Sa, La = "(?:" + [ma, _s, Ps].join("|") + ")" + Ta, wa = RegExp([
|
|
228
|
+
Ce + "?" + Ds + "+" + Kt + "(?=" + [Yt, Ce, "$"].join("|") + ")",
|
|
229
|
+
Ea + "+" + Jt + "(?=" + [Yt, Ce + qt, "$"].join("|") + ")",
|
|
230
230
|
Ce + "?" + qt + "+" + Kt,
|
|
231
231
|
Ce + "+" + Jt,
|
|
232
|
-
Ta,
|
|
233
232
|
Oa,
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
xa,
|
|
234
|
+
Is,
|
|
235
|
+
La
|
|
236
236
|
].join("|"), "g");
|
|
237
|
-
function
|
|
238
|
-
return r.match(
|
|
237
|
+
function Ma(r) {
|
|
238
|
+
return r.match(wa) || [];
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
return r = Es(r), e = t ? void 0 : e, e === void 0 ?
|
|
240
|
+
function Aa(r, e, t) {
|
|
241
|
+
return r = Es(r), e = t ? void 0 : e, e === void 0 ? aa(r) ? Ma(r) : sa(r) : r.match(e) || [];
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
function
|
|
243
|
+
var Ca = "['’]", ka = RegExp(Ca, "g");
|
|
244
|
+
function Ia(r) {
|
|
245
245
|
return function(e) {
|
|
246
|
-
return
|
|
246
|
+
return Un(Aa(ea(e).replace(ka, "")), r, "");
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Da(r, e, t) {
|
|
250
250
|
return r === r && (t !== void 0 && (r = r <= t ? r : t), e !== void 0 && (r = r >= e ? r : e)), r;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t =
|
|
252
|
+
function $s(r, e, t) {
|
|
253
|
+
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = ct(t), t = t === t ? t : 0), e !== void 0 && (e = ct(e), e = e === e ? e : 0), Da(ct(r), e, t);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
var t = -1, s =
|
|
257
|
-
return
|
|
255
|
+
function Ra(r, e) {
|
|
256
|
+
var t = -1, s = vn(r) ? Array(r.length) : [];
|
|
257
|
+
return Ts(r, function(n, a, i) {
|
|
258
258
|
s[++t] = e(n, a, i);
|
|
259
259
|
}), s;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
var t = Ss(r) ?
|
|
261
|
+
function _a(r, e) {
|
|
262
|
+
var t = Ss(r) ? yn : Ra;
|
|
263
263
|
return t(r, xs(e));
|
|
264
264
|
}
|
|
265
|
-
var
|
|
266
|
-
function
|
|
267
|
-
return
|
|
265
|
+
var Pa = 1 / 0;
|
|
266
|
+
function Va(r, e) {
|
|
267
|
+
return bn(_a(r, e), Pa);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
269
|
+
function Gs(r, e) {
|
|
270
|
+
return En(r, e);
|
|
271
271
|
}
|
|
272
|
-
var
|
|
272
|
+
var Ba = Ia(function(r, e, t) {
|
|
273
273
|
return r + (t ? "-" : "") + e.toLowerCase();
|
|
274
274
|
});
|
|
275
|
-
const we =
|
|
276
|
-
function
|
|
275
|
+
const we = Ba;
|
|
276
|
+
function $a(r, e) {
|
|
277
277
|
var t;
|
|
278
|
-
return
|
|
278
|
+
return Ts(r, function(s, n, a) {
|
|
279
279
|
return t = e(s, n, a), !t;
|
|
280
280
|
}), !!t;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
var s = Ss(r) ?
|
|
284
|
-
return t &&
|
|
282
|
+
function Ga(r, e, t) {
|
|
283
|
+
var s = Ss(r) ? Sn : $a;
|
|
284
|
+
return t && xn(r, e, t) && (e = void 0), s(r, xs(e));
|
|
285
285
|
}
|
|
286
286
|
class z {
|
|
287
287
|
constructor(e, t, s) {
|
|
@@ -343,10 +343,10 @@ class z {
|
|
|
343
343
|
* component's config.options object.
|
|
344
344
|
*/
|
|
345
345
|
getOptions() {
|
|
346
|
-
return this.configs.options ?
|
|
346
|
+
return this.configs.options ? De({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const Ns = class extends z {
|
|
350
350
|
constructor() {
|
|
351
351
|
super(...arguments), this.type = "toolbar", this.renderType = H.HTML;
|
|
352
352
|
}
|
|
@@ -512,7 +512,7 @@ const Hs = class extends z {
|
|
|
512
512
|
const r = y(this.getOptions(), "toolbar", "numberOfIcons") - 1, e = y(this.getOptions(), "toolbar", "controls"), t = [], s = [], n = [];
|
|
513
513
|
return e.forEach((a) => {
|
|
514
514
|
let i = null;
|
|
515
|
-
a.type === ee.CUSTOM ? (y(a, "id") === null && (a.id = `toolbar-button-${
|
|
515
|
+
a.type === ee.CUSTOM ? (y(a, "id") === null && (a.id = `toolbar-button-${Ns.buttonID++}`), y(a, "shouldBeDisabled") === null && (a.shouldBeDisabled = () => !1), i = a) : i = this.getControlConfigByType(a.type), i && (i.text = a.text ? a.text : a.type, i.id.indexOf("toolbar-export") !== -1 ? t.push(i) : s.length < r ? y(i, "iconSVG", "content") === null ? n.push(i) : s.push(i) : n.push(i));
|
|
516
516
|
}), n.push(...t), n.length ? {
|
|
517
517
|
buttonList: s,
|
|
518
518
|
overflowMenuItemList: n
|
|
@@ -668,11 +668,11 @@ const Hs = class extends z {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
let
|
|
672
|
-
|
|
673
|
-
const
|
|
671
|
+
let Na = Ns;
|
|
672
|
+
Na.buttonID = 0;
|
|
673
|
+
const Hs = class extends z {
|
|
674
674
|
constructor(r, e, t, s) {
|
|
675
|
-
super(r, e, s), this.type = "layout", this.configs = s, this.children = t, this._instanceID =
|
|
675
|
+
super(r, e, s), this.type = "layout", this.configs = s, this.children = t, this._instanceID = Hs.instanceID++, this.init();
|
|
676
676
|
}
|
|
677
677
|
init() {
|
|
678
678
|
this.children.forEach((r) => {
|
|
@@ -709,7 +709,7 @@ const Us = class extends z {
|
|
|
709
709
|
this.configs.direction === Te.COLUMN_REVERSE
|
|
710
710
|
).classed(
|
|
711
711
|
`${he}--${a}--layout-alignitems-center`,
|
|
712
|
-
this.configs.alignItems ===
|
|
712
|
+
this.configs.alignItems === In.CENTER
|
|
713
713
|
).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (c) => c.id);
|
|
714
714
|
i.enter().append("div").merge(e.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (c) => `layout-child layout-child-${this._instanceID} ${c.id}`).each(function(c) {
|
|
715
715
|
c.components.forEach((d) => {
|
|
@@ -756,20 +756,20 @@ const Us = class extends z {
|
|
|
756
756
|
});
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
|
-
let
|
|
760
|
-
|
|
761
|
-
class
|
|
759
|
+
let Ha = Hs;
|
|
760
|
+
Ha.instanceID = Math.floor(Math.random() * 99999999999);
|
|
761
|
+
class nc extends z {
|
|
762
762
|
constructor() {
|
|
763
763
|
super(...arguments), this.type = "spacer";
|
|
764
764
|
}
|
|
765
765
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
766
766
|
// @ts-ignore
|
|
767
767
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
768
|
-
render(e = !
|
|
768
|
+
render(e = !1) {
|
|
769
769
|
this.getComponentContainer().style("width", `${this.configs.size || Ht.default.size}px`).style("height", `${this.configs.size || Ht.default.size}px`).attr("opacity", 0);
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
|
-
var
|
|
772
|
+
var Ua = {
|
|
773
773
|
prefix: "bx",
|
|
774
774
|
selectorTabbable: `
|
|
775
775
|
a[href], area[href], input:not([disabled]):not([tabindex='-1']),
|
|
@@ -783,30 +783,30 @@ var za = {
|
|
|
783
783
|
textarea:not([disabled]),
|
|
784
784
|
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
785
785
|
`
|
|
786
|
-
},
|
|
786
|
+
}, dt = Ua;
|
|
787
787
|
function Qt(r, e) {
|
|
788
788
|
for (var t = 0; t < e.length; t++) {
|
|
789
789
|
var s = e[t];
|
|
790
790
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function za(r, e, t) {
|
|
794
794
|
return e && Qt(r.prototype, e), t && Qt(r, t), Object.defineProperty(r, "prototype", {
|
|
795
795
|
writable: !1
|
|
796
796
|
}), r;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Fa(r, e) {
|
|
799
799
|
if (!(r instanceof e))
|
|
800
800
|
throw new TypeError("Cannot call a class as a function");
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
return
|
|
802
|
+
function Wa(r) {
|
|
803
|
+
return Ya(r) || Xa(r) || Za(r) || ja();
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function ja() {
|
|
806
806
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
807
807
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Za(r, e) {
|
|
810
810
|
if (r) {
|
|
811
811
|
if (typeof r == "string")
|
|
812
812
|
return mt(r, e);
|
|
@@ -817,11 +817,11 @@ function Xa(r, e) {
|
|
|
817
817
|
return mt(r, e);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Xa(r) {
|
|
821
821
|
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null)
|
|
822
822
|
return Array.from(r);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function Ya(r) {
|
|
825
825
|
if (Array.isArray(r))
|
|
826
826
|
return mt(r);
|
|
827
827
|
}
|
|
@@ -831,21 +831,21 @@ function mt(r, e) {
|
|
|
831
831
|
s[t] = r[t];
|
|
832
832
|
return s;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Us(r) {
|
|
835
835
|
return r.reduce(function(e, t) {
|
|
836
|
-
return Array.isArray(t) ? e.push.apply(e,
|
|
836
|
+
return Array.isArray(t) ? e.push.apply(e, Wa(Us(t))) : e.push(t), e;
|
|
837
837
|
}, []);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function qa() {
|
|
840
840
|
for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++)
|
|
841
841
|
e[t] = arguments[t];
|
|
842
|
-
return
|
|
842
|
+
return Us(e).reduce(function(s, n) {
|
|
843
843
|
return n(s);
|
|
844
844
|
}, /* @__PURE__ */ function() {
|
|
845
845
|
function s() {
|
|
846
|
-
|
|
846
|
+
Fa(this, s);
|
|
847
847
|
}
|
|
848
|
-
return
|
|
848
|
+
return za(s);
|
|
849
849
|
}());
|
|
850
850
|
}
|
|
851
851
|
function ft(r) {
|
|
@@ -856,7 +856,7 @@ function ft(r) {
|
|
|
856
856
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
857
857
|
}, ft(r);
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function Ka(r, e) {
|
|
860
860
|
if (!(r instanceof e))
|
|
861
861
|
throw new TypeError("Cannot call a class as a function");
|
|
862
862
|
}
|
|
@@ -866,12 +866,12 @@ function es(r, e) {
|
|
|
866
866
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Ja(r, e, t) {
|
|
870
870
|
return e && es(r.prototype, e), t && es(r, t), Object.defineProperty(r, "prototype", {
|
|
871
871
|
writable: !1
|
|
872
872
|
}), r;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Qa(r, e) {
|
|
875
875
|
if (typeof e != "function" && e !== null)
|
|
876
876
|
throw new TypeError("Super expression must either be null or a function");
|
|
877
877
|
r.prototype = Object.create(e && e.prototype, {
|
|
@@ -889,31 +889,31 @@ function vt(r, e) {
|
|
|
889
889
|
return s.__proto__ = n, s;
|
|
890
890
|
}, vt(r, e);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
893
|
-
var e =
|
|
892
|
+
function ei(r) {
|
|
893
|
+
var e = si();
|
|
894
894
|
return function() {
|
|
895
|
-
var s =
|
|
895
|
+
var s = Ze(r), n;
|
|
896
896
|
if (e) {
|
|
897
|
-
var a =
|
|
897
|
+
var a = Ze(this).constructor;
|
|
898
898
|
n = Reflect.construct(s, arguments, a);
|
|
899
899
|
} else
|
|
900
900
|
n = s.apply(this, arguments);
|
|
901
|
-
return
|
|
901
|
+
return ti(this, n);
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function ti(r, e) {
|
|
905
905
|
if (e && (ft(e) === "object" || typeof e == "function"))
|
|
906
906
|
return e;
|
|
907
907
|
if (e !== void 0)
|
|
908
908
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
909
|
-
return
|
|
909
|
+
return zs(r);
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function zs(r) {
|
|
912
912
|
if (r === void 0)
|
|
913
913
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
914
914
|
return r;
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function si() {
|
|
917
917
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
918
918
|
return !1;
|
|
919
919
|
if (typeof Proxy == "function")
|
|
@@ -925,22 +925,22 @@ function ni() {
|
|
|
925
925
|
return !1;
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
return
|
|
928
|
+
function Ze(r) {
|
|
929
|
+
return Ze = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
930
930
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
931
|
-
},
|
|
931
|
+
}, Ze(r);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function ni(r) {
|
|
934
934
|
var e = /* @__PURE__ */ function(t) {
|
|
935
|
-
|
|
936
|
-
var s =
|
|
935
|
+
Qa(n, t);
|
|
936
|
+
var s = ei(n);
|
|
937
937
|
function n(a) {
|
|
938
938
|
var i, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
939
|
-
if (
|
|
939
|
+
if (Ka(this, n), i = s.call(this, a, o), i.children = [], !a || a.nodeType !== Node.ELEMENT_NODE)
|
|
940
940
|
throw new TypeError("DOM element should be given to initialize this widget.");
|
|
941
|
-
return i.element = a, i.options = Object.assign(Object.create(i.constructor.options), o), i.constructor.components.set(i.element,
|
|
941
|
+
return i.element = a, i.options = Object.assign(Object.create(i.constructor.options), o), i.constructor.components.set(i.element, zs(i)), i;
|
|
942
942
|
}
|
|
943
|
-
return
|
|
943
|
+
return Ja(n, [{
|
|
944
944
|
key: "release",
|
|
945
945
|
value: (
|
|
946
946
|
/**
|
|
@@ -969,7 +969,7 @@ function yt(r) {
|
|
|
969
969
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
970
970
|
}, yt(r);
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function ai(r, e) {
|
|
973
973
|
if (!(r instanceof e))
|
|
974
974
|
throw new TypeError("Cannot call a class as a function");
|
|
975
975
|
}
|
|
@@ -979,26 +979,26 @@ function ts(r, e) {
|
|
|
979
979
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function ii(r, e, t) {
|
|
983
983
|
return e && ts(r.prototype, e), t && ts(r, t), Object.defineProperty(r, "prototype", {
|
|
984
984
|
writable: !1
|
|
985
985
|
}), r;
|
|
986
986
|
}
|
|
987
|
-
function
|
|
988
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
989
|
-
var n =
|
|
987
|
+
function We() {
|
|
988
|
+
return typeof Reflect < "u" && Reflect.get ? We = Reflect.get : We = function(e, t, s) {
|
|
989
|
+
var n = ri(e, t);
|
|
990
990
|
if (n) {
|
|
991
991
|
var a = Object.getOwnPropertyDescriptor(n, t);
|
|
992
992
|
return a.get ? a.get.call(arguments.length < 3 ? e : s) : a.value;
|
|
993
993
|
}
|
|
994
|
-
},
|
|
994
|
+
}, We.apply(this, arguments);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
for (; !Object.prototype.hasOwnProperty.call(r, e) && (r =
|
|
996
|
+
function ri(r, e) {
|
|
997
|
+
for (; !Object.prototype.hasOwnProperty.call(r, e) && (r = Re(r), r !== null); )
|
|
998
998
|
;
|
|
999
999
|
return r;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function oi(r, e) {
|
|
1002
1002
|
if (typeof e != "function" && e !== null)
|
|
1003
1003
|
throw new TypeError("Super expression must either be null or a function");
|
|
1004
1004
|
r.prototype = Object.create(e && e.prototype, {
|
|
@@ -1016,31 +1016,31 @@ function bt(r, e) {
|
|
|
1016
1016
|
return s.__proto__ = n, s;
|
|
1017
1017
|
}, bt(r, e);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
var e =
|
|
1019
|
+
function li(r) {
|
|
1020
|
+
var e = hi();
|
|
1021
1021
|
return function() {
|
|
1022
|
-
var s =
|
|
1022
|
+
var s = Re(r), n;
|
|
1023
1023
|
if (e) {
|
|
1024
|
-
var a =
|
|
1024
|
+
var a = Re(this).constructor;
|
|
1025
1025
|
n = Reflect.construct(s, arguments, a);
|
|
1026
1026
|
} else
|
|
1027
1027
|
n = s.apply(this, arguments);
|
|
1028
|
-
return
|
|
1028
|
+
return ci(this, n);
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function ci(r, e) {
|
|
1032
1032
|
if (e && (yt(e) === "object" || typeof e == "function"))
|
|
1033
1033
|
return e;
|
|
1034
1034
|
if (e !== void 0)
|
|
1035
1035
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1036
|
-
return
|
|
1036
|
+
return di(r);
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function di(r) {
|
|
1039
1039
|
if (r === void 0)
|
|
1040
1040
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1041
1041
|
return r;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function hi() {
|
|
1044
1044
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1045
1045
|
return !1;
|
|
1046
1046
|
if (typeof Proxy == "function")
|
|
@@ -1052,23 +1052,23 @@ function ui() {
|
|
|
1052
1052
|
return !1;
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return
|
|
1055
|
+
function Re(r) {
|
|
1056
|
+
return Re = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1057
1057
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1058
|
-
},
|
|
1058
|
+
}, Re(r);
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function ui(r) {
|
|
1061
1061
|
var e = /* @__PURE__ */ function(t) {
|
|
1062
|
-
|
|
1063
|
-
var s =
|
|
1062
|
+
oi(n, t);
|
|
1063
|
+
var s = li(n);
|
|
1064
1064
|
function n() {
|
|
1065
1065
|
var a;
|
|
1066
|
-
|
|
1066
|
+
ai(this, n);
|
|
1067
1067
|
for (var i = arguments.length, o = new Array(i), l = 0; l < i; l++)
|
|
1068
1068
|
o[l] = arguments[l];
|
|
1069
1069
|
return a = s.call.apply(s, [this].concat(o)), a.handles = /* @__PURE__ */ new Set(), a;
|
|
1070
1070
|
}
|
|
1071
|
-
return
|
|
1071
|
+
return ii(n, [{
|
|
1072
1072
|
key: "manage",
|
|
1073
1073
|
value: (
|
|
1074
1074
|
/**
|
|
@@ -1096,13 +1096,13 @@ function pi(r) {
|
|
|
1096
1096
|
var i = this;
|
|
1097
1097
|
return this.handles.forEach(function(o) {
|
|
1098
1098
|
o.release(), i.handles.delete(o);
|
|
1099
|
-
}),
|
|
1099
|
+
}), We(Re(n.prototype), "release", this).call(this);
|
|
1100
1100
|
}
|
|
1101
1101
|
}]), n;
|
|
1102
1102
|
}(r);
|
|
1103
1103
|
return e;
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function Be(r) {
|
|
1106
1106
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
|
|
1107
1107
|
t[s - 1] = arguments[s];
|
|
1108
1108
|
return r.addEventListener.apply(r, t), {
|
|
@@ -1119,14 +1119,14 @@ function Et(r) {
|
|
|
1119
1119
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1120
1120
|
}, Et(r);
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
1122
|
+
function pi(r) {
|
|
1123
|
+
return vi(r) || fi(r) || mi(r) || gi();
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function gi() {
|
|
1126
1126
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1127
1127
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function mi(r, e) {
|
|
1130
1130
|
if (r) {
|
|
1131
1131
|
if (typeof r == "string")
|
|
1132
1132
|
return St(r, e);
|
|
@@ -1137,11 +1137,11 @@ function fi(r, e) {
|
|
|
1137
1137
|
return St(r, e);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function fi(r) {
|
|
1141
1141
|
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null)
|
|
1142
1142
|
return Array.from(r);
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function vi(r) {
|
|
1145
1145
|
if (Array.isArray(r))
|
|
1146
1146
|
return St(r);
|
|
1147
1147
|
}
|
|
@@ -1151,7 +1151,7 @@ function St(r, e) {
|
|
|
1151
1151
|
s[t] = r[t];
|
|
1152
1152
|
return s;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function yi(r, e) {
|
|
1155
1155
|
if (!(r instanceof e))
|
|
1156
1156
|
throw new TypeError("Cannot call a class as a function");
|
|
1157
1157
|
}
|
|
@@ -1161,12 +1161,12 @@ function ss(r, e) {
|
|
|
1161
1161
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function bi(r, e, t) {
|
|
1165
1165
|
return e && ss(r.prototype, e), t && ss(r, t), Object.defineProperty(r, "prototype", {
|
|
1166
1166
|
writable: !1
|
|
1167
1167
|
}), r;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Ei(r, e) {
|
|
1170
1170
|
if (typeof e != "function" && e !== null)
|
|
1171
1171
|
throw new TypeError("Super expression must either be null or a function");
|
|
1172
1172
|
r.prototype = Object.create(e && e.prototype, {
|
|
@@ -1184,31 +1184,31 @@ function xt(r, e) {
|
|
|
1184
1184
|
return s.__proto__ = n, s;
|
|
1185
1185
|
}, xt(r, e);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
var e =
|
|
1187
|
+
function Si(r) {
|
|
1188
|
+
var e = Ti();
|
|
1189
1189
|
return function() {
|
|
1190
|
-
var s =
|
|
1190
|
+
var s = Xe(r), n;
|
|
1191
1191
|
if (e) {
|
|
1192
|
-
var a =
|
|
1192
|
+
var a = Xe(this).constructor;
|
|
1193
1193
|
n = Reflect.construct(s, arguments, a);
|
|
1194
1194
|
} else
|
|
1195
1195
|
n = s.apply(this, arguments);
|
|
1196
|
-
return
|
|
1196
|
+
return xi(this, n);
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function xi(r, e) {
|
|
1200
1200
|
if (e && (Et(e) === "object" || typeof e == "function"))
|
|
1201
1201
|
return e;
|
|
1202
1202
|
if (e !== void 0)
|
|
1203
1203
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1204
|
-
return
|
|
1204
|
+
return Oi(r);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Oi(r) {
|
|
1207
1207
|
if (r === void 0)
|
|
1208
1208
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1209
1209
|
return r;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Ti() {
|
|
1212
1212
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1213
1213
|
return !1;
|
|
1214
1214
|
if (typeof Proxy == "function")
|
|
@@ -1220,19 +1220,19 @@ function Li() {
|
|
|
1220
1220
|
return !1;
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return
|
|
1223
|
+
function Xe(r) {
|
|
1224
|
+
return Xe = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1225
1225
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1226
|
-
},
|
|
1226
|
+
}, Xe(r);
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Li(r) {
|
|
1229
1229
|
var e = /* @__PURE__ */ function(t) {
|
|
1230
|
-
|
|
1231
|
-
var s =
|
|
1230
|
+
Ei(n, t);
|
|
1231
|
+
var s = Si(n);
|
|
1232
1232
|
function n() {
|
|
1233
|
-
return
|
|
1233
|
+
return yi(this, n), s.apply(this, arguments);
|
|
1234
1234
|
}
|
|
1235
|
-
return
|
|
1235
|
+
return bi(n, [{
|
|
1236
1236
|
key: "_changeState",
|
|
1237
1237
|
value: (
|
|
1238
1238
|
/* eslint-disable jsdoc/check-param-names */
|
|
@@ -1284,7 +1284,7 @@ function wi(r) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
} else {
|
|
1286
1286
|
var O = [d, p].filter(Boolean);
|
|
1287
|
-
this._changeState.apply(this,
|
|
1287
|
+
this._changeState.apply(this, pi(O).concat([function() {
|
|
1288
1288
|
b.dispatchEvent(new CustomEvent(i.options["eventAfter".concat(g)], {
|
|
1289
1289
|
bubbles: !0,
|
|
1290
1290
|
cancelable: !0,
|
|
@@ -1345,7 +1345,7 @@ function Tt(r) {
|
|
|
1345
1345
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1346
1346
|
}, Tt(r);
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function wi(r, e) {
|
|
1349
1349
|
if (!(r instanceof e))
|
|
1350
1350
|
throw new TypeError("Cannot call a class as a function");
|
|
1351
1351
|
}
|
|
@@ -1355,12 +1355,12 @@ function as(r, e) {
|
|
|
1355
1355
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function Mi(r, e, t) {
|
|
1359
1359
|
return e && as(r.prototype, e), t && as(r, t), Object.defineProperty(r, "prototype", {
|
|
1360
1360
|
writable: !1
|
|
1361
1361
|
}), r;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Ai(r, e) {
|
|
1364
1364
|
if (typeof e != "function" && e !== null)
|
|
1365
1365
|
throw new TypeError("Super expression must either be null or a function");
|
|
1366
1366
|
r.prototype = Object.create(e && e.prototype, {
|
|
@@ -1378,31 +1378,31 @@ function Lt(r, e) {
|
|
|
1378
1378
|
return s.__proto__ = n, s;
|
|
1379
1379
|
}, Lt(r, e);
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
var e =
|
|
1381
|
+
function Ci(r) {
|
|
1382
|
+
var e = Di();
|
|
1383
1383
|
return function() {
|
|
1384
|
-
var s =
|
|
1384
|
+
var s = Ye(r), n;
|
|
1385
1385
|
if (e) {
|
|
1386
|
-
var a =
|
|
1386
|
+
var a = Ye(this).constructor;
|
|
1387
1387
|
n = Reflect.construct(s, arguments, a);
|
|
1388
1388
|
} else
|
|
1389
1389
|
n = s.apply(this, arguments);
|
|
1390
|
-
return
|
|
1390
|
+
return ki(this, n);
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function ki(r, e) {
|
|
1394
1394
|
if (e && (Tt(e) === "object" || typeof e == "function"))
|
|
1395
1395
|
return e;
|
|
1396
1396
|
if (e !== void 0)
|
|
1397
1397
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1398
|
-
return
|
|
1398
|
+
return Ii(r);
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Ii(r) {
|
|
1401
1401
|
if (r === void 0)
|
|
1402
1402
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1403
1403
|
return r;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function Di() {
|
|
1406
1406
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1407
1407
|
return !1;
|
|
1408
1408
|
if (typeof Proxy == "function")
|
|
@@ -1414,19 +1414,19 @@ function Ri() {
|
|
|
1414
1414
|
return !1;
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1418
|
-
return
|
|
1417
|
+
function Ye(r) {
|
|
1418
|
+
return Ye = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1419
1419
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1420
|
-
},
|
|
1420
|
+
}, Ye(r);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function Ri(r) {
|
|
1423
1423
|
var e = /* @__PURE__ */ function(t) {
|
|
1424
|
-
|
|
1425
|
-
var s =
|
|
1424
|
+
Ai(n, t);
|
|
1425
|
+
var s = Ci(n);
|
|
1426
1426
|
function n() {
|
|
1427
|
-
return
|
|
1427
|
+
return wi(this, n), s.apply(this, arguments);
|
|
1428
1428
|
}
|
|
1429
|
-
return
|
|
1429
|
+
return Mi(n, [{
|
|
1430
1430
|
key: "show",
|
|
1431
1431
|
value: (
|
|
1432
1432
|
/**
|
|
@@ -1454,11 +1454,11 @@ function _i(r) {
|
|
|
1454
1454
|
}(r);
|
|
1455
1455
|
return e;
|
|
1456
1456
|
}
|
|
1457
|
-
var
|
|
1458
|
-
const
|
|
1459
|
-
var
|
|
1457
|
+
var _i = [Li, Ri];
|
|
1458
|
+
const Pi = _i;
|
|
1459
|
+
var Fs = function() {
|
|
1460
1460
|
};
|
|
1461
|
-
process.env.NODE_ENV !== "production" && (
|
|
1461
|
+
process.env.NODE_ENV !== "production" && (Fs = function(r, e, t) {
|
|
1462
1462
|
var s = arguments.length;
|
|
1463
1463
|
t = new Array(s > 2 ? s - 2 : 0);
|
|
1464
1464
|
for (var n = 2; n < s; n++)
|
|
@@ -1482,8 +1482,8 @@ process.env.NODE_ENV !== "production" && (Ws = function(r, e, t) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
});
|
|
1485
|
-
var
|
|
1486
|
-
const
|
|
1485
|
+
var Vi = Fs;
|
|
1486
|
+
const Bi = /* @__PURE__ */ On(Vi);
|
|
1487
1487
|
function wt(r) {
|
|
1488
1488
|
"@babel/helpers - typeof";
|
|
1489
1489
|
return wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -1492,7 +1492,7 @@ function wt(r) {
|
|
|
1492
1492
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1493
1493
|
}, wt(r);
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function $i(r, e) {
|
|
1496
1496
|
if (!(r instanceof e))
|
|
1497
1497
|
throw new TypeError("Cannot call a class as a function");
|
|
1498
1498
|
}
|
|
@@ -1502,12 +1502,12 @@ function is(r, e) {
|
|
|
1502
1502
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function Gi(r, e, t) {
|
|
1506
1506
|
return e && is(r.prototype, e), t && is(r, t), Object.defineProperty(r, "prototype", {
|
|
1507
1507
|
writable: !1
|
|
1508
1508
|
}), r;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function Ni(r, e) {
|
|
1511
1511
|
if (typeof e != "function" && e !== null)
|
|
1512
1512
|
throw new TypeError("Super expression must either be null or a function");
|
|
1513
1513
|
r.prototype = Object.create(e && e.prototype, {
|
|
@@ -1525,31 +1525,31 @@ function Mt(r, e) {
|
|
|
1525
1525
|
return s.__proto__ = n, s;
|
|
1526
1526
|
}, Mt(r, e);
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
var e =
|
|
1528
|
+
function Hi(r) {
|
|
1529
|
+
var e = Fi();
|
|
1530
1530
|
return function() {
|
|
1531
|
-
var s =
|
|
1531
|
+
var s = qe(r), n;
|
|
1532
1532
|
if (e) {
|
|
1533
|
-
var a =
|
|
1533
|
+
var a = qe(this).constructor;
|
|
1534
1534
|
n = Reflect.construct(s, arguments, a);
|
|
1535
1535
|
} else
|
|
1536
1536
|
n = s.apply(this, arguments);
|
|
1537
|
-
return
|
|
1537
|
+
return Ui(this, n);
|
|
1538
1538
|
};
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function Ui(r, e) {
|
|
1541
1541
|
if (e && (wt(e) === "object" || typeof e == "function"))
|
|
1542
1542
|
return e;
|
|
1543
1543
|
if (e !== void 0)
|
|
1544
1544
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1545
|
-
return
|
|
1545
|
+
return zi(r);
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function zi(r) {
|
|
1548
1548
|
if (r === void 0)
|
|
1549
1549
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1550
1550
|
return r;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function Fi() {
|
|
1553
1553
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1554
1554
|
return !1;
|
|
1555
1555
|
if (typeof Proxy == "function")
|
|
@@ -1561,19 +1561,19 @@ function Wi() {
|
|
|
1561
1561
|
return !1;
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1565
|
-
return
|
|
1564
|
+
function qe(r) {
|
|
1565
|
+
return qe = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1566
1566
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1567
|
-
},
|
|
1567
|
+
}, qe(r);
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Wi(r) {
|
|
1570
1570
|
var e = /* @__PURE__ */ function(t) {
|
|
1571
|
-
|
|
1572
|
-
var s =
|
|
1571
|
+
Ni(n, t);
|
|
1572
|
+
var s = Hi(n);
|
|
1573
1573
|
function n() {
|
|
1574
|
-
return
|
|
1574
|
+
return $i(this, n), s.apply(this, arguments);
|
|
1575
1575
|
}
|
|
1576
|
-
return
|
|
1576
|
+
return Gi(n, null, [{
|
|
1577
1577
|
key: "init",
|
|
1578
1578
|
value: (
|
|
1579
1579
|
/**
|
|
@@ -1599,7 +1599,7 @@ function ji(r) {
|
|
|
1599
1599
|
this.create(o, l);
|
|
1600
1600
|
else {
|
|
1601
1601
|
var d = c.initEventNames.map(function(p) {
|
|
1602
|
-
return
|
|
1602
|
+
return Be(o, p, function(h) {
|
|
1603
1603
|
var u = Ot(h, "[".concat(c.attribInitTarget, "]"));
|
|
1604
1604
|
if (u) {
|
|
1605
1605
|
h.delegateTarget = u;
|
|
@@ -1636,7 +1636,7 @@ function At(r) {
|
|
|
1636
1636
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1637
1637
|
}, At(r);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function ji(r, e) {
|
|
1640
1640
|
if (!(r instanceof e))
|
|
1641
1641
|
throw new TypeError("Cannot call a class as a function");
|
|
1642
1642
|
}
|
|
@@ -1646,12 +1646,12 @@ function rs(r, e) {
|
|
|
1646
1646
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function Zi(r, e, t) {
|
|
1650
1650
|
return e && rs(r.prototype, e), t && rs(r, t), Object.defineProperty(r, "prototype", {
|
|
1651
1651
|
writable: !1
|
|
1652
1652
|
}), r;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function Xi(r, e) {
|
|
1655
1655
|
if (typeof e != "function" && e !== null)
|
|
1656
1656
|
throw new TypeError("Super expression must either be null or a function");
|
|
1657
1657
|
r.prototype = Object.create(e && e.prototype, {
|
|
@@ -1669,31 +1669,31 @@ function Ct(r, e) {
|
|
|
1669
1669
|
return s.__proto__ = n, s;
|
|
1670
1670
|
}, Ct(r, e);
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1673
|
-
var e =
|
|
1672
|
+
function Yi(r) {
|
|
1673
|
+
var e = Ji();
|
|
1674
1674
|
return function() {
|
|
1675
|
-
var s =
|
|
1675
|
+
var s = Ke(r), n;
|
|
1676
1676
|
if (e) {
|
|
1677
|
-
var a =
|
|
1677
|
+
var a = Ke(this).constructor;
|
|
1678
1678
|
n = Reflect.construct(s, arguments, a);
|
|
1679
1679
|
} else
|
|
1680
1680
|
n = s.apply(this, arguments);
|
|
1681
|
-
return
|
|
1681
|
+
return qi(this, n);
|
|
1682
1682
|
};
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function qi(r, e) {
|
|
1685
1685
|
if (e && (At(e) === "object" || typeof e == "function"))
|
|
1686
1686
|
return e;
|
|
1687
1687
|
if (e !== void 0)
|
|
1688
1688
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1689
|
-
return
|
|
1689
|
+
return Ki(r);
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function Ki(r) {
|
|
1692
1692
|
if (r === void 0)
|
|
1693
1693
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1694
1694
|
return r;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Ji() {
|
|
1697
1697
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1698
1698
|
return !1;
|
|
1699
1699
|
if (typeof Proxy == "function")
|
|
@@ -1705,24 +1705,24 @@ function Qi() {
|
|
|
1705
1705
|
return !1;
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1709
|
-
return
|
|
1708
|
+
function Ke(r) {
|
|
1709
|
+
return Ke = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1710
1710
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1711
|
-
},
|
|
1711
|
+
}, Ke(r);
|
|
1712
1712
|
}
|
|
1713
|
-
var
|
|
1714
|
-
|
|
1715
|
-
var e =
|
|
1713
|
+
var Qi = /* @__PURE__ */ function(r) {
|
|
1714
|
+
Xi(t, r);
|
|
1715
|
+
var e = Yi(t);
|
|
1716
1716
|
function t(s, n) {
|
|
1717
1717
|
var a;
|
|
1718
|
-
return
|
|
1718
|
+
return ji(this, t), a = e.call(this, s, n), a._handleFocusinListener = void 0, a._handleKeydownListener = void 0, a._handleFocusin = function(i) {
|
|
1719
1719
|
var o = a.element.querySelector(a.options.selectorModalContainer) || a.element;
|
|
1720
1720
|
a.element.classList.contains(a.options.classVisible) && !o.contains(i.target) && a.options.selectorsFloatingMenus.every(function(l) {
|
|
1721
1721
|
return !Ot(i, l);
|
|
1722
|
-
}) && a.element.querySelector(
|
|
1722
|
+
}) && a.element.querySelector(dt.selectorTabbable).focus();
|
|
1723
1723
|
}, a._hookCloseActions(), a;
|
|
1724
1724
|
}
|
|
1725
|
-
return
|
|
1725
|
+
return Zi(t, [{
|
|
1726
1726
|
key: "createdByLauncher",
|
|
1727
1727
|
value: (
|
|
1728
1728
|
/**
|
|
@@ -1756,25 +1756,25 @@ var er = /* @__PURE__ */ function(r) {
|
|
|
1756
1756
|
var o = this, l, c = function() {
|
|
1757
1757
|
if (l && (l = o.unmanage(l).release()), n === "shown" && o.element.offsetWidth > 0 && o.element.offsetHeight > 0) {
|
|
1758
1758
|
o.previouslyFocusedNode = o.element.ownerDocument.activeElement;
|
|
1759
|
-
var u = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(
|
|
1760
|
-
u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" &&
|
|
1759
|
+
var u = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(dt.selectorTabbable);
|
|
1760
|
+
u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Bi(u, "Modals need to contain a focusable element by either using " + "`".concat(o.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
|
|
1761
1761
|
}
|
|
1762
1762
|
i();
|
|
1763
1763
|
};
|
|
1764
1764
|
if (this._handleFocusinListener && (this._handleFocusinListener = this.unmanage(this._handleFocusinListener).release()), n === "shown") {
|
|
1765
1765
|
var d = "onfocusin" in this.element.ownerDocument.defaultView, p = d ? "focusin" : "focus";
|
|
1766
|
-
this._handleFocusinListener = this.manage(
|
|
1766
|
+
this._handleFocusinListener = this.manage(Be(this.element.ownerDocument, p, this._handleFocusin, !d));
|
|
1767
1767
|
}
|
|
1768
|
-
n === "hidden" ? (this.element.classList.toggle(this.options.classVisible, !1), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !1), (this.options.selectorFocusOnClose || this.previouslyFocusedNode) && (this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose) || this.previouslyFocusedNode).focus()) : n === "shown" && (this.element.classList.toggle(this.options.classVisible, !0), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !0)), l = this.manage(
|
|
1768
|
+
n === "hidden" ? (this.element.classList.toggle(this.options.classVisible, !1), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !1), (this.options.selectorFocusOnClose || this.previouslyFocusedNode) && (this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose) || this.previouslyFocusedNode).focus()) : n === "shown" && (this.element.classList.toggle(this.options.classVisible, !0), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !0)), l = this.manage(Be(this.element, "transitionend", c));
|
|
1769
1769
|
}
|
|
1770
1770
|
}, {
|
|
1771
1771
|
key: "_hookCloseActions",
|
|
1772
1772
|
value: function() {
|
|
1773
1773
|
var n = this;
|
|
1774
|
-
this.manage(
|
|
1774
|
+
this.manage(Be(this.element, "click", function(a) {
|
|
1775
1775
|
var i = Ot(a, n.options.selectorModalClose);
|
|
1776
1776
|
i && (a.delegateTarget = i), (i || a.target === n.element) && n.hide(a);
|
|
1777
|
-
})), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(
|
|
1777
|
+
})), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(Be(this.element.ownerDocument.body, "keydown", function(a) {
|
|
1778
1778
|
a.which === 27 && n.shouldStateBeChanged("hidden") && (a.stopPropagation(), n.hide(a));
|
|
1779
1779
|
}));
|
|
1780
1780
|
}
|
|
@@ -1819,7 +1819,7 @@ var er = /* @__PURE__ */ function(r) {
|
|
|
1819
1819
|
* without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
|
|
1820
1820
|
*/
|
|
1821
1821
|
function() {
|
|
1822
|
-
var n =
|
|
1822
|
+
var n = dt.prefix;
|
|
1823
1823
|
return {
|
|
1824
1824
|
selectorInit: "[data-modal]",
|
|
1825
1825
|
selectorModalClose: "[data-modal-close]",
|
|
@@ -1838,12 +1838,12 @@ var er = /* @__PURE__ */ function(r) {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
)
|
|
1840
1840
|
}]), t.components = /* @__PURE__ */ new WeakMap(), t;
|
|
1841
|
-
}(
|
|
1842
|
-
const
|
|
1843
|
-
class
|
|
1841
|
+
}(qa(ni, Wi, Pi, ui));
|
|
1842
|
+
const er = Qi;
|
|
1843
|
+
class ac extends z {
|
|
1844
1844
|
constructor(e, t, s) {
|
|
1845
1845
|
super(e, t, s), this.type = "modal", this.isEventListenerAdded = !1, this.handleShowModal = () => {
|
|
1846
|
-
this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()),
|
|
1846
|
+
this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), er.create(this.modal.node()).show();
|
|
1847
1847
|
}, this.init();
|
|
1848
1848
|
}
|
|
1849
1849
|
addEventListeners() {
|
|
@@ -1899,7 +1899,7 @@ class ic extends z {
|
|
|
1899
1899
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1900
1900
|
// @ts-ignore
|
|
1901
1901
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1902
|
-
render(e = !
|
|
1902
|
+
render(e = !1) {
|
|
1903
1903
|
const t = this.model.getOptions();
|
|
1904
1904
|
if (!this.isEventListenerAdded) {
|
|
1905
1905
|
const s = x(this.services.domUtils.getHolder()), n = y(t, "style", "prefix");
|
|
@@ -1910,14 +1910,14 @@ class ic extends z {
|
|
|
1910
1910
|
this.removeEventListeners(), this.isEventListenerAdded = !1;
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
class
|
|
1913
|
+
class tr extends z {
|
|
1914
1914
|
constructor() {
|
|
1915
1915
|
super(...arguments), this.type = "title", this.renderType = H.HTML;
|
|
1916
1916
|
}
|
|
1917
1917
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1918
1918
|
// @ts-ignore
|
|
1919
1919
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1920
|
-
render(e = !
|
|
1920
|
+
render(e = !1) {
|
|
1921
1921
|
const t = this.getComponentContainer(), s = y(this.getOptions(), "title"), n = t.selectAll("p.title").data([s]);
|
|
1922
1922
|
if (n.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(n).html((a) => a), n.node() && n.node().offsetWidth < n.node().scrollWidth) {
|
|
1923
1923
|
const a = this;
|
|
@@ -1987,28 +1987,28 @@ class sr extends z {
|
|
|
1987
1987
|
return e.getSubStringLength(0, a) > n ? this.getSubstringIndex(e, t, a, n) : e.getSubStringLength(0, a) < n ? e.getSubStringLength(0, a + 1) > n ? a : this.getSubstringIndex(e, a, s, n) : a;
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
-
class
|
|
1990
|
+
class sr extends z {
|
|
1991
1991
|
constructor() {
|
|
1992
1992
|
super(...arguments), this.type = "legend", this.renderType = H.HTML;
|
|
1993
1993
|
}
|
|
1994
1994
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1995
1995
|
// @ts-ignore
|
|
1996
1996
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1997
|
-
render(e = !
|
|
1997
|
+
render(e = !1) {
|
|
1998
1998
|
const t = this.getOptions(), s = y(t, "legend"), n = y(s, "alignment"), a = y(t, "legend", "orientation");
|
|
1999
1999
|
let i = this.model.getDataGroups();
|
|
2000
|
-
const { DISABLED: o } =
|
|
2000
|
+
const { DISABLED: o } = K.items.status, l = i.some((S) => S.status === o), c = y(s, "order"), d = this.getComponentContainer().classed("center-aligned", n === ue.CENTER).classed("right-aligned", n === ue.RIGHT).classed(a, !0).classed("has-deactivated-items", l).attr("role", U.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
|
|
2001
2001
|
c && (i = this.sortDataGroups(i, c));
|
|
2002
2002
|
const p = d.selectAll("div.legend-item").data(i, (S) => S.name), h = p.enter().append("div").attr("class", "legend-item");
|
|
2003
2003
|
h.merge(d.selectAll("div.legend-item")).classed("active", function(S) {
|
|
2004
|
-
return S.status ===
|
|
2004
|
+
return S.status === K.items.status.ACTIVE;
|
|
2005
2005
|
});
|
|
2006
2006
|
const u = y(this.getOptions(), "legend", "clickable");
|
|
2007
2007
|
d.classed("clickable", u && i.length > 1);
|
|
2008
|
-
const g =
|
|
2008
|
+
const g = K.checkbox.radius, m = h.append("div").classed("checkbox", !0), b = m.merge(p.select("div.checkbox")).attr("role", U.CHECKBOX).attr("tabindex", u ? 0 : -1).attr(
|
|
2009
2009
|
"aria-labelledby",
|
|
2010
2010
|
(S, O) => this.services.domUtils.generateElementIDString(`legend-datagroup-${O}-title`)
|
|
2011
|
-
).attr("aria-checked", ({ status: S }) => S ===
|
|
2011
|
+
).attr("aria-checked", ({ status: S }) => S === K.items.status.ACTIVE).attr("width", g * 2).attr("height", g * 2).attr(
|
|
2012
2012
|
"class",
|
|
2013
2013
|
(S) => this.model.getColorClassName({
|
|
2014
2014
|
classNameTypes: [$.BACKGROUND],
|
|
@@ -2017,9 +2017,9 @@ class nr extends z {
|
|
|
2017
2017
|
})
|
|
2018
2018
|
).style(
|
|
2019
2019
|
"background",
|
|
2020
|
-
(S) => S.status ===
|
|
2020
|
+
(S) => S.status === K.items.status.ACTIVE ? this.model.getFillColor(S.name) || this.model.getStrokeColor(S.name) : null
|
|
2021
2021
|
).classed("active", function(S) {
|
|
2022
|
-
return S.status ===
|
|
2022
|
+
return S.status === K.items.status.ACTIVE;
|
|
2023
2023
|
});
|
|
2024
2024
|
m.append("svg").attr("focusable", !1).attr("preserveAspectRatio", "xMidYMid meet").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", "11").attr("height", "11").attr("viewBox", "0 0 31 28").attr("aria-hidden", !0).style("will-change", "transform").append("path").attr("d", "M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"), h.append("p").merge(p.select("p"));
|
|
2025
2025
|
const v = y(t, "legend", "additionalItems");
|
|
@@ -2051,23 +2051,26 @@ class nr extends z {
|
|
|
2051
2051
|
return e;
|
|
2052
2052
|
}
|
|
2053
2053
|
addAdditionalItem(e, t, s) {
|
|
2054
|
-
const { width: n, height: a } =
|
|
2054
|
+
const { width: n, height: a } = K.area;
|
|
2055
2055
|
if (t.type === Se.RADIUS ? e.style("width", `${a}px`).style("height", `${a}px`) : e.style("width", `${n}px`).style("height", `${a}px`), t.type === Se.RADIUS) {
|
|
2056
|
-
const { iconData: i, fill: o, stroke: l } =
|
|
2056
|
+
const { iconData: i, fill: o, stroke: l } = K.radius;
|
|
2057
2057
|
e.attr("fill", "none").selectAll("circle").data(i).enter().append("circle").classed("radius", !0).attr("role", U.IMG).attr("aria-label", "radius").attr("cx", (d) => d.cx).attr("cy", (d) => d.cy).attr("r", (d) => d.r).style("fill", t.fill ? t.fill : o).style("stroke", t.stroke ? t.stroke : l);
|
|
2058
2058
|
} else if (t.type === Se.LINE) {
|
|
2059
|
-
const i =
|
|
2059
|
+
const i = K.line;
|
|
2060
2060
|
e.select("line.line").empty() && e.append("line").classed(`line-${s}`, !0).attr("role", U.IMG).attr("aria-label", "line").attr("x1", 0).attr("y1", i.yPosition).attr("x2", n).attr("y2", i.yPosition).style("stroke", t.stroke ? t.stroke : i.stroke).style("stroke-width", i.strokeWidth);
|
|
2061
2061
|
} else if (t.type === Se.AREA)
|
|
2062
|
-
e.select("rect.area").empty() && e.append("rect").classed(`area-${s}`, !0).attr("role", U.IMG).attr("aria-label", "area").attr("width", n).attr("height", a).style(
|
|
2062
|
+
e.select("rect.area").empty() && e.append("rect").classed(`area-${s}`, !0).attr("role", U.IMG).attr("aria-label", "area").attr("width", n).attr("height", a).style(
|
|
2063
|
+
"fill",
|
|
2064
|
+
s > 3 && !t.fill ? K.area.fill : t.fill
|
|
2065
|
+
).style("stroke", t.stroke);
|
|
2063
2066
|
else if (t.type === Se.SIZE) {
|
|
2064
|
-
const { iconData: i, fill: o, stroke: l } =
|
|
2067
|
+
const { iconData: i, fill: o, stroke: l } = K.size;
|
|
2065
2068
|
e.attr("fill", "none").attr("role", U.IMG).attr("aria-label", "size").selectAll("rect").data(i).enter().append("rect").classed("size", !0).attr("width", (d) => d.width).attr("height", (d) => d.height).attr("y", () => 0).style("fill", t.fill ? t.fill : o).style("stroke", t.stroke ? t.stroke : l).style("stroke-width", 1);
|
|
2066
2069
|
} else if (t.type === Se.QUARTILE) {
|
|
2067
|
-
const { iconData: i } =
|
|
2070
|
+
const { iconData: i } = K.quartile;
|
|
2068
2071
|
e.selectAll("rect").attr("role", U.IMG).attr("aria-label", "quartile").data(i).enter().append("rect").attr("class", (l, c) => `quartile-${c === 0 ? "wrapper" : "line"}`).attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height);
|
|
2069
2072
|
} else if (t.type === Se.ZOOM) {
|
|
2070
|
-
const { iconData: i, color: o } = y(
|
|
2073
|
+
const { iconData: i, color: o } = y(K, "zoom"), l = e.attr("role", U.IMG).attr("aria-label", "zoom").selectAll("g.icon").data(i).enter();
|
|
2071
2074
|
l.append("g").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).append("polygon").attr(
|
|
2072
2075
|
"points",
|
|
2073
2076
|
"7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82"
|
|
@@ -2081,8 +2084,8 @@ class nr extends z {
|
|
|
2081
2084
|
const e = this.getComponentContainer(), t = y(this.getOptions(), "legend", "truncation"), s = y(t, "type"), n = y(t, "threshold"), a = y(t, "numCharacter"), i = e.selectAll("div.legend-item p");
|
|
2082
2085
|
i.attr("id", function() {
|
|
2083
2086
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
2084
|
-
}), s !==
|
|
2085
|
-
return o.name.length > n ?
|
|
2087
|
+
}), s !== Ie.NONE ? i.html(function(o) {
|
|
2088
|
+
return o.name.length > n ? Ge(o.name, s, a) : o.name;
|
|
2086
2089
|
}) : i.html((o) => o.name);
|
|
2087
2090
|
}
|
|
2088
2091
|
addEventListeners() {
|
|
@@ -2094,13 +2097,13 @@ class nr extends z {
|
|
|
2094
2097
|
const o = x(this);
|
|
2095
2098
|
o.select("div.checkbox").classed("hovered", !0);
|
|
2096
2099
|
const l = o.datum();
|
|
2097
|
-
l.name.length > a.threshold && a.type !==
|
|
2100
|
+
l.name.length > a.threshold && a.type !== Ie.NONE && e.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
2098
2101
|
event: i,
|
|
2099
2102
|
hoveredElement: o,
|
|
2100
2103
|
content: l.name
|
|
2101
2104
|
});
|
|
2102
2105
|
}).on("mousemove", function(i) {
|
|
2103
|
-
x(this).datum().name.length > a.threshold && a.type !==
|
|
2106
|
+
x(this).datum().name.length > a.threshold && a.type !== Ie.NONE && e.services.events.dispatchEvent(f.Tooltip.MOVE, {
|
|
2104
2107
|
event: i
|
|
2105
2108
|
});
|
|
2106
2109
|
}).on("click", function() {
|
|
@@ -2111,7 +2114,7 @@ class nr extends z {
|
|
|
2111
2114
|
e.model.toggleDataLabel(o.name);
|
|
2112
2115
|
}).on("mouseout", function() {
|
|
2113
2116
|
const i = x(this);
|
|
2114
|
-
i.select("div.checkbox").classed("hovered", !1), i.datum().name.length > a.threshold && a.type !==
|
|
2117
|
+
i.select("div.checkbox").classed("hovered", !1), i.datum().name.length > a.threshold && a.type !== Ie.NONE && e.services.events.dispatchEvent(f.Tooltip.HIDE), e.services.events.dispatchEvent(f.Legend.ITEM_MOUSEOUT, {
|
|
2115
2118
|
hoveredElement: i
|
|
2116
2119
|
});
|
|
2117
2120
|
}), t.selectAll("div.legend-item div.checkbox").on("keyup", function(i) {
|
|
@@ -2132,7 +2135,7 @@ class nr extends z {
|
|
|
2132
2135
|
});
|
|
2133
2136
|
}
|
|
2134
2137
|
}
|
|
2135
|
-
class
|
|
2138
|
+
class nr extends z {
|
|
2136
2139
|
constructor(e, t, s) {
|
|
2137
2140
|
super(e, t, s), this.type = "chart-clip", this.renderType = H.SVG, this.chartClipId = "chart-clip-id-" + Math.floor(Math.random() * 99999999999), this.init();
|
|
2138
2141
|
}
|
|
@@ -2160,7 +2163,7 @@ class ar extends z {
|
|
|
2160
2163
|
i - a > 0 && c.attr("x", a).attr("y", l).attr("width", i - a).attr("height", o - l), this.chartClipPath.merge(c).lower();
|
|
2161
2164
|
}
|
|
2162
2165
|
}
|
|
2163
|
-
class
|
|
2166
|
+
class ic extends nr {
|
|
2164
2167
|
constructor() {
|
|
2165
2168
|
super(...arguments), this.type = "canvas-chart-clip", this.chartClipId = "canvas-chart-clip-id-" + Math.floor(Math.random() * 99999999999);
|
|
2166
2169
|
}
|
|
@@ -2205,7 +2208,7 @@ var os = (Me = {}, Me[ne.LEFT] = function(r, e, t) {
|
|
|
2205
2208
|
scrollY: 0,
|
|
2206
2209
|
innerWidth: 0,
|
|
2207
2210
|
scrollX: 0
|
|
2208
|
-
},
|
|
2211
|
+
}, et = (
|
|
2209
2212
|
/** @class */
|
|
2210
2213
|
function() {
|
|
2211
2214
|
function r(e) {
|
|
@@ -2293,10 +2296,10 @@ var os = (Me = {}, Me[ne.LEFT] = function(r, e, t) {
|
|
|
2293
2296
|
}, r;
|
|
2294
2297
|
}()
|
|
2295
2298
|
);
|
|
2296
|
-
new
|
|
2297
|
-
class
|
|
2299
|
+
new et();
|
|
2300
|
+
class ar extends z {
|
|
2298
2301
|
constructor(e, t, s) {
|
|
2299
|
-
super(e, t, s), this.type = "tooltip", this.renderType = H.HTML, this.isEventListenerAdded = !1, this.positionService = new
|
|
2302
|
+
super(e, t, s), this.type = "tooltip", this.renderType = H.HTML, this.isEventListenerAdded = !1, this.positionService = new et(), this.handleShowTooltip = (n) => {
|
|
2300
2303
|
const a = n.detail.data || n.detail.items;
|
|
2301
2304
|
let i;
|
|
2302
2305
|
const o = this.formatItems(this.getItems(n));
|
|
@@ -2331,9 +2334,9 @@ class ir extends z {
|
|
|
2331
2334
|
}
|
|
2332
2335
|
formatItems(e) {
|
|
2333
2336
|
const t = this.getOptions(), s = y(t, "tooltip", "truncation", "type"), n = y(t, "tooltip", "truncation", "threshold"), a = y(t, "tooltip", "truncation", "numCharacter");
|
|
2334
|
-
return s !==
|
|
2337
|
+
return s !== Ie.NONE ? e.map((i) => {
|
|
2335
2338
|
const o = i.labelIcon ? 12 : 0;
|
|
2336
|
-
return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + o > n && (i.label =
|
|
2339
|
+
return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + o > n && (i.label = Ge(i.label, s, a)), i.value && i.value.length > n && (i.value = Ge(i.value, s, a)), i;
|
|
2337
2340
|
}) : e;
|
|
2338
2341
|
}
|
|
2339
2342
|
getTooltipHTML(e) {
|
|
@@ -2366,7 +2369,7 @@ class ir extends z {
|
|
|
2366
2369
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2367
2370
|
// @ts-ignore
|
|
2368
2371
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2369
|
-
render(e = !
|
|
2372
|
+
render(e = !1) {
|
|
2370
2373
|
const t = this.getOptions(), s = y(t, "tooltip", "enabled");
|
|
2371
2374
|
if (s) {
|
|
2372
2375
|
const n = x(this.services.domUtils.getHolder()), a = y(t, "style", "prefix");
|
|
@@ -2378,7 +2381,7 @@ class ir extends z {
|
|
|
2378
2381
|
const t = this.services.domUtils.getHolder(), s = this.tooltip.node(), n = this.getOptions(), a = y(n, "zoomBar", "top", "enabled");
|
|
2379
2382
|
let i = y(e, "detail", "mousePosition");
|
|
2380
2383
|
if (!i)
|
|
2381
|
-
i =
|
|
2384
|
+
i = Je(y(e, "detail", "event"), t);
|
|
2382
2385
|
else {
|
|
2383
2386
|
const h = y(n, "zoomBar", "top", "type"), u = de.height[h];
|
|
2384
2387
|
a && (i[1] += u + de.spacerHeight);
|
|
@@ -2401,7 +2404,7 @@ class ir extends z {
|
|
|
2401
2404
|
height: l
|
|
2402
2405
|
})
|
|
2403
2406
|
);
|
|
2404
|
-
let { horizontalOffset: d } =
|
|
2407
|
+
let { horizontalOffset: d } = Tn;
|
|
2405
2408
|
c === ne.LEFT && (d *= -1);
|
|
2406
2409
|
const p = this.positionService.findPositionAt(
|
|
2407
2410
|
{
|
|
@@ -2414,7 +2417,7 @@ class ir extends z {
|
|
|
2414
2417
|
this.positionService.setElement(s, p);
|
|
2415
2418
|
}
|
|
2416
2419
|
}
|
|
2417
|
-
const
|
|
2420
|
+
const je = class extends z {
|
|
2418
2421
|
constructor() {
|
|
2419
2422
|
super(...arguments), this.type = "grid-brush", this.renderType = H.SVG, this.selectionSelector = "rect.selection", this.frontSelectionSelector = "rect.frontSelection";
|
|
2420
2423
|
}
|
|
@@ -2437,15 +2440,15 @@ const Fe = class extends z {
|
|
|
2437
2440
|
const g = (L) => {
|
|
2438
2441
|
const w = L[1] - L[0];
|
|
2439
2442
|
let T = "0," + w.toString();
|
|
2440
|
-
const k = Math.floor(o /
|
|
2443
|
+
const k = Math.floor(o / je.DASH_LENGTH), _ = k * je.DASH_LENGTH;
|
|
2441
2444
|
for (let F = 0; F < k; F++)
|
|
2442
|
-
T += "," +
|
|
2445
|
+
T += "," + je.DASH_LENGTH;
|
|
2443
2446
|
T += "," + (o - _), k % 2 === 1 && (T += ",0"), T += "," + w.toString(), T += "," + o.toString(), h.attr("stroke-dasharray", T);
|
|
2444
2447
|
}, m = (L) => {
|
|
2445
2448
|
const w = L.selection;
|
|
2446
2449
|
w === null || w[0] === w[1] || (h.attr("x", parseFloat(a.attr("x")) + parseFloat(s.attr("x"))).attr("y", a.attr("y")).attr("width", a.attr("width")).attr("height", a.attr("height")).style("cursor", "pointer").style("display", null), g(w));
|
|
2447
2450
|
}, b = (L, w) => {
|
|
2448
|
-
const T =
|
|
2451
|
+
const T = Zs().range([0, i]).domain(u);
|
|
2449
2452
|
let k = [T.invert(L), T.invert(w)];
|
|
2450
2453
|
k[0].valueOf() === k[1].valueOf() && (k = this.services.zoom.getDefaultZoomBarDomain()), (u[0].valueOf() !== k[0].valueOf() || u[1].valueOf() !== k[1].valueOf()) && this.services.zoom.handleDomainChange(k);
|
|
2451
2454
|
};
|
|
@@ -2461,7 +2464,7 @@ const Fe = class extends z {
|
|
|
2461
2464
|
const O = this.services.zoom.getZoomRatio();
|
|
2462
2465
|
s.on("click", function(L) {
|
|
2463
2466
|
if (L.shiftKey) {
|
|
2464
|
-
const w = this.services.domUtils.getHolder(), T =
|
|
2467
|
+
const w = this.services.domUtils.getHolder(), T = Je(n.node(), w)[0];
|
|
2465
2468
|
let k = T - i * O / 2;
|
|
2466
2469
|
k < 0 && (k = 0);
|
|
2467
2470
|
let _ = T + i * O / 2;
|
|
@@ -2471,9 +2474,9 @@ const Fe = class extends z {
|
|
|
2471
2474
|
}
|
|
2472
2475
|
}
|
|
2473
2476
|
};
|
|
2474
|
-
let
|
|
2475
|
-
|
|
2476
|
-
class
|
|
2477
|
+
let ir = je;
|
|
2478
|
+
ir.DASH_LENGTH = 4;
|
|
2479
|
+
class rc extends z {
|
|
2477
2480
|
constructor() {
|
|
2478
2481
|
super(...arguments), this.type = "zoom-bar", this.renderType = H.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = ms(), this.highlightStrokeWidth = 1;
|
|
2479
2482
|
}
|
|
@@ -2508,7 +2511,7 @@ class oc extends z {
|
|
|
2508
2511
|
const { cartesianScales: h } = this.services, u = h.getMainXScale(), g = h.getMainYScale(), m = h.getMainXScaleType();
|
|
2509
2512
|
if (u && m === te.TIME) {
|
|
2510
2513
|
let b = this.services.zoom.getZoomBarData();
|
|
2511
|
-
if (
|
|
2514
|
+
if (Os(b) || b.length === 1)
|
|
2512
2515
|
return;
|
|
2513
2516
|
this.xScale = u.copy(), this.yScale = g.copy();
|
|
2514
2517
|
const v = this.services.zoom.getDefaultZoomBarDomain(b);
|
|
@@ -2522,17 +2525,17 @@ class oc extends z {
|
|
|
2522
2525
|
O && O[0] && O[1] && (O[0] = new Date(O[0]), O[1] = new Date(O[1])), O && !(S && S[0].valueOf() === O[0].valueOf() && S[1].valueOf() === O[1].valueOf()) ? this.model.set(
|
|
2523
2526
|
{
|
|
2524
2527
|
// use a new object instead of newInitialZoomDomain
|
|
2525
|
-
initialZoomDomain:
|
|
2526
|
-
zoomDomain: O ?
|
|
2528
|
+
initialZoomDomain: De([], O),
|
|
2529
|
+
zoomDomain: O ? De([], O) : v
|
|
2527
2530
|
},
|
|
2528
2531
|
{ skipUpdate: !0 }
|
|
2529
2532
|
) : O === null && S !== null && this.model.set(
|
|
2530
2533
|
{
|
|
2531
2534
|
initialZoomDomain: null,
|
|
2532
|
-
zoomDomain:
|
|
2535
|
+
zoomDomain: De([], v)
|
|
2533
2536
|
},
|
|
2534
2537
|
{ skipUpdate: !0 }
|
|
2535
|
-
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(
|
|
2538
|
+
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Qe(b, (T) => T.value));
|
|
2536
2539
|
const L = this.model.get("zoomDomain");
|
|
2537
2540
|
if (a === Le.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", b, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", b, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
|
|
2538
2541
|
const T = i.highlightStartMapsTo, k = i.highlightEndMapsTo, _ = i.color, F = i.labelMapsTo;
|
|
@@ -2634,7 +2637,7 @@ class oc extends z {
|
|
|
2634
2637
|
compensateDataForDefaultDomain(e, t) {
|
|
2635
2638
|
if (!e || e.length < 2)
|
|
2636
2639
|
return;
|
|
2637
|
-
const s =
|
|
2640
|
+
const s = Ln(e), n = this.services.cartesianScales.getDomainIdentifier(), a = this.services.cartesianScales.getRangeIdentifier();
|
|
2638
2641
|
if (Number(t[0]) < Number(s[0][n])) {
|
|
2639
2642
|
const i = {};
|
|
2640
2643
|
i[n] = t[0], i[a] = 0, s.unshift(i);
|
|
@@ -2646,7 +2649,12 @@ class oc extends z {
|
|
|
2646
2649
|
return s;
|
|
2647
2650
|
}
|
|
2648
2651
|
renderZoomBarBaseline(e, t, s, n = !1) {
|
|
2649
|
-
const a = y(
|
|
2652
|
+
const a = y(
|
|
2653
|
+
this.model.getOptions(),
|
|
2654
|
+
"zoomBar",
|
|
2655
|
+
P.TOP,
|
|
2656
|
+
"type"
|
|
2657
|
+
), i = de.height[a], o = It()([
|
|
2650
2658
|
[t, i],
|
|
2651
2659
|
[s, i]
|
|
2652
2660
|
]);
|
|
@@ -2662,9 +2670,9 @@ class oc extends z {
|
|
|
2662
2670
|
this.brush.on("start brush end", null), this.services.events.removeEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
2663
2671
|
}
|
|
2664
2672
|
}
|
|
2665
|
-
class
|
|
2673
|
+
class oc extends z {
|
|
2666
2674
|
constructor(e, t) {
|
|
2667
|
-
super(e, t), this.type = "threshold", this.renderType = H.SVG, this.positionService = new
|
|
2675
|
+
super(e, t), this.type = "threshold", this.renderType = H.SVG, this.positionService = new et();
|
|
2668
2676
|
}
|
|
2669
2677
|
render(e = !1) {
|
|
2670
2678
|
const t = y(this.getOptions(), "axes"), s = [];
|
|
@@ -2735,11 +2743,11 @@ class lc extends z {
|
|
|
2735
2743
|
getFormattedValue(e) {
|
|
2736
2744
|
const { value: t, axisPosition: s } = e, n = this.getOptions();
|
|
2737
2745
|
if (this.services.cartesianScales.getScaleTypeByPosition(s) === te.TIME) {
|
|
2738
|
-
const i = [P.LEFT, P.RIGHT].includes(s), o = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : o, d = y(n, "timeScale"), p =
|
|
2746
|
+
const i = [P.LEFT, P.RIGHT].includes(s), o = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : o, d = y(n, "timeScale"), p = ut(
|
|
2739
2747
|
c.ticks(),
|
|
2740
2748
|
y(d, "timeInterval")
|
|
2741
2749
|
);
|
|
2742
|
-
return
|
|
2750
|
+
return pt(t, 0, c.ticks(), p, d);
|
|
2743
2751
|
}
|
|
2744
2752
|
return t.toLocaleString("en");
|
|
2745
2753
|
}
|
|
@@ -2751,7 +2759,7 @@ class lc extends z {
|
|
|
2751
2759
|
).classed("hidden", !0);
|
|
2752
2760
|
}
|
|
2753
2761
|
setThresholdLabelPosition({ event: e, datum: t }) {
|
|
2754
|
-
const s = this.services.domUtils.getHolder(), n =
|
|
2762
|
+
const s = this.services.domUtils.getHolder(), n = Je(e, s), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
|
|
2755
2763
|
this.label.html(`${t.label || "Threshold"}: ${a}`).style("background-color", t.fillColor);
|
|
2756
2764
|
const i = this.label.node(), o = this.positionService.findBestPlacementAt(
|
|
2757
2765
|
{
|
|
@@ -2800,9 +2808,9 @@ class lc extends z {
|
|
|
2800
2808
|
});
|
|
2801
2809
|
}
|
|
2802
2810
|
}
|
|
2803
|
-
class
|
|
2811
|
+
class lc extends z {
|
|
2804
2812
|
constructor(e, t) {
|
|
2805
|
-
super(e, t), this.type = "highlight", this.renderType = H.SVG, this.positionService = new
|
|
2813
|
+
super(e, t), this.type = "highlight", this.renderType = H.SVG, this.positionService = new et(), this.highlightStrokeWidth = 1;
|
|
2806
2814
|
}
|
|
2807
2815
|
render(e = !1) {
|
|
2808
2816
|
const t = y(this.getOptions(), "axes"), s = [];
|
|
@@ -2858,7 +2866,7 @@ class cc extends z {
|
|
|
2858
2866
|
});
|
|
2859
2867
|
}
|
|
2860
2868
|
}
|
|
2861
|
-
class
|
|
2869
|
+
class cc extends ar {
|
|
2862
2870
|
getItems(e) {
|
|
2863
2871
|
if (e.detail.items)
|
|
2864
2872
|
return e.detail.items;
|
|
@@ -2945,7 +2953,7 @@ class dc extends ir {
|
|
|
2945
2953
|
return p;
|
|
2946
2954
|
}
|
|
2947
2955
|
}
|
|
2948
|
-
class
|
|
2956
|
+
class dc extends z {
|
|
2949
2957
|
constructor() {
|
|
2950
2958
|
super(...arguments), this.type = "alluvial", this.renderType = H.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
|
|
2951
2959
|
}
|
|
@@ -2969,9 +2977,9 @@ class hc extends z {
|
|
|
2969
2977
|
let l = pe.minNodePadding;
|
|
2970
2978
|
a.alluvial.nodePadding > pe.minNodePadding && (l = a.alluvial.nodePadding);
|
|
2971
2979
|
const c = y(a, "alluvial", "nodeAlignment");
|
|
2972
|
-
let d =
|
|
2973
|
-
c === ue.LEFT ? d =
|
|
2974
|
-
const p =
|
|
2980
|
+
let d = $n;
|
|
2981
|
+
c === ue.LEFT ? d = Gn : c === ue.RIGHT && (d = Nn);
|
|
2982
|
+
const p = Vn().nodeId((v) => v.name).nodeWidth(pe.nodeWidth).nodePadding(l).nodeAlign(d).extent([
|
|
2975
2983
|
[2, 30],
|
|
2976
2984
|
[s - 2, n]
|
|
2977
2985
|
]);
|
|
@@ -3002,7 +3010,7 @@ class hc extends z {
|
|
|
3002
3010
|
(S) => S.append("stop").attr("offset", "100%").attr("stop-color", (O) => v[O.target.name])
|
|
3003
3011
|
), g.exit().remove();
|
|
3004
3012
|
}
|
|
3005
|
-
g.enter().append("path").classed("link", !0).attr("d",
|
|
3013
|
+
g.enter().append("path").classed("link", !0).attr("d", Bn()).attr(
|
|
3006
3014
|
"id",
|
|
3007
3015
|
(v) => this.services.domUtils.generateElementIDString(`alluvial-line-${v.index}`)
|
|
3008
3016
|
).attr("class", (v) => a.alluvial.monochrome ? this.model.getColorClassName({
|
|
@@ -3118,11 +3126,11 @@ class hc extends z {
|
|
|
3118
3126
|
e.parent.selectAll(".node-group").on("mouseover", function(s, n) {
|
|
3119
3127
|
const a = x(this), i = [];
|
|
3120
3128
|
if (e.traverse({ link: "sourceLinks", node: "target" }, n, i), e.traverse({ link: "targetLinks", node: "source" }, n, i), i.length) {
|
|
3121
|
-
const o =
|
|
3129
|
+
const o = Ve(a.attr("transform"));
|
|
3122
3130
|
if (a.attr("transform", `translate(${o.x - 2}, ${o.y})`), a.classed("node-hovered", !0).selectAll("rect.node").attr("width", 8), n.x0 - 2 === 0) {
|
|
3123
3131
|
const c = e.services.domUtils.generateElementIDString(
|
|
3124
3132
|
`alluvial-node-title-${n.index}`
|
|
3125
|
-
), d = e.parent.select(`g#${c}`), p =
|
|
3133
|
+
), d = e.parent.select(`g#${c}`), p = Ve(d.attr("transform"));
|
|
3126
3134
|
d.attr("transform", `translate(${p.x + 4},${p.y})`);
|
|
3127
3135
|
}
|
|
3128
3136
|
const l = e.services.domUtils.generateElementIDString(
|
|
@@ -3149,11 +3157,11 @@ class hc extends z {
|
|
|
3149
3157
|
datum: n
|
|
3150
3158
|
});
|
|
3151
3159
|
}).on("mouseout", function(s, n) {
|
|
3152
|
-
const a = x(this), i =
|
|
3160
|
+
const a = x(this), i = Ve(a.attr("transform"));
|
|
3153
3161
|
if (a.classed("node-hovered", !1).attr("transform", `translate(${i.x + 2}, ${i.y})`).select("rect.node").attr("width", pe.nodeWidth), n.x0 - 2 === 0) {
|
|
3154
3162
|
const l = e.services.domUtils.generateElementIDString(
|
|
3155
3163
|
`alluvial-node-title-${n.index}`
|
|
3156
|
-
), c = e.parent.select(`g#${l}`), d =
|
|
3164
|
+
), c = e.parent.select(`g#${l}`), d = Ve(c.attr("transform"));
|
|
3157
3165
|
c.attr("transform", `translate(${d.x - 4},${d.y})`);
|
|
3158
3166
|
}
|
|
3159
3167
|
const o = e.services.domUtils.generateElementIDString(
|
|
@@ -3184,7 +3192,7 @@ class hc extends z {
|
|
|
3184
3192
|
this.parent.selectAll("path.line,.node-group").on("mouseover", null).on("mousemove", null).on("click", null).on("mouseout", null);
|
|
3185
3193
|
}
|
|
3186
3194
|
}
|
|
3187
|
-
class
|
|
3195
|
+
class hc extends z {
|
|
3188
3196
|
constructor() {
|
|
3189
3197
|
super(...arguments), this.type = "grid", this.renderType = H.SVG;
|
|
3190
3198
|
}
|
|
@@ -3280,7 +3288,7 @@ class uc extends z {
|
|
|
3280
3288
|
e.selectAll("text").remove(), e.select(".domain").remove();
|
|
3281
3289
|
}
|
|
3282
3290
|
}
|
|
3283
|
-
class
|
|
3291
|
+
class uc extends z {
|
|
3284
3292
|
constructor() {
|
|
3285
3293
|
super(...arguments), this.type = "area", this.renderType = H.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
|
|
3286
3294
|
const { hoveredElement: t } = e.detail;
|
|
@@ -3396,7 +3404,7 @@ class pc extends z {
|
|
|
3396
3404
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
3397
3405
|
}
|
|
3398
3406
|
}
|
|
3399
|
-
class
|
|
3407
|
+
class pc extends z {
|
|
3400
3408
|
constructor() {
|
|
3401
3409
|
super(...arguments), this.type = "line", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
3402
3410
|
const { hoveredElement: t } = e.detail;
|
|
@@ -3443,7 +3451,7 @@ class gc extends z {
|
|
|
3443
3451
|
[m]: L[m],
|
|
3444
3452
|
[O]: L[1]
|
|
3445
3453
|
})),
|
|
3446
|
-
hidden: !
|
|
3454
|
+
hidden: !Ga(v, (L) => L[0] !== L[1])
|
|
3447
3455
|
};
|
|
3448
3456
|
});
|
|
3449
3457
|
} else
|
|
@@ -3479,17 +3487,17 @@ class gc extends z {
|
|
|
3479
3487
|
}
|
|
3480
3488
|
}
|
|
3481
3489
|
const cs = 5;
|
|
3482
|
-
function
|
|
3490
|
+
function rr(r, e) {
|
|
3483
3491
|
return r > e - cs && r < e + cs;
|
|
3484
3492
|
}
|
|
3485
|
-
class
|
|
3493
|
+
class Ws extends z {
|
|
3486
3494
|
constructor() {
|
|
3487
3495
|
super(...arguments), this.type = "ruler", this.renderType = H.SVG, this.isXGridEnabled = y(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = y(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
|
|
3488
3496
|
}
|
|
3489
3497
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3490
3498
|
// @ts-ignore
|
|
3491
3499
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3492
|
-
render(e = !
|
|
3500
|
+
render(e = !1) {
|
|
3493
3501
|
const t = y(this.getOptions(), "ruler", "enabled");
|
|
3494
3502
|
this.drawBackdrop(), t && !this.isEventListenerAdded ? this.addBackdropEventListeners() : !t && this.isEventListenerAdded && this.removeBackdropEventListeners();
|
|
3495
3503
|
}
|
|
@@ -3506,7 +3514,7 @@ class js extends z {
|
|
|
3506
3514
|
const n = this.parent, a = this.services.cartesianScales.getOrientation(), i = this.model.getDisplayData(), o = this.services.cartesianScales.getRangeScale(), [l, c] = o.range(), d = a === le.HORIZONTAL ? s : t, p = E.appendOrSelect(n, "g.ruler").attr("aria-label", "ruler"), h = E.appendOrSelect(p, "line.ruler-line"), u = n.selectAll("[role=graphics-symbol]"), g = i.map((b) => ({
|
|
3507
3515
|
domainValue: this.services.cartesianScales.getDomainValue(b),
|
|
3508
3516
|
originalData: b
|
|
3509
|
-
})).filter((b) =>
|
|
3517
|
+
})).filter((b) => rr(b.domainValue, d));
|
|
3510
3518
|
if (this.pointsWithinLine && g.length === this.pointsWithinLine.length && g.map((b) => b.domainValue).join() === this.pointsWithinLine.map((b) => b.domainValue).join())
|
|
3511
3519
|
return this.pointsWithinLine = g, this.services.events.dispatchEvent(f.Tooltip.MOVE, {
|
|
3512
3520
|
mousePosition: [t, s]
|
|
@@ -3528,7 +3536,7 @@ class js extends z {
|
|
|
3528
3536
|
const w = this.services.cartesianScales.getDomainValue(L);
|
|
3529
3537
|
return v.includes(w);
|
|
3530
3538
|
});
|
|
3531
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
3539
|
+
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Gs(this.elementsToHighlight, S) && this.hideRuler(), S.dispatch("mouseover"), this.elementsToHighlight = S, this.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
3532
3540
|
mousePosition: [t, s],
|
|
3533
3541
|
hoveredElement: h,
|
|
3534
3542
|
data: this.formatTooltipData(b)
|
|
@@ -3549,12 +3557,12 @@ class js extends z {
|
|
|
3549
3557
|
this.isEventListenerAdded = !0;
|
|
3550
3558
|
const e = this, t = this.services.domUtils.getHolder(), s = this.model.getDisplayData();
|
|
3551
3559
|
let n = function(a) {
|
|
3552
|
-
const i =
|
|
3560
|
+
const i = Je(a, e.parent.node());
|
|
3553
3561
|
e.showRuler(a, i);
|
|
3554
3562
|
};
|
|
3555
3563
|
if (s.length > 100) {
|
|
3556
3564
|
const a = s.length % 50 * 12.5;
|
|
3557
|
-
n =
|
|
3565
|
+
n = wn(
|
|
3558
3566
|
function(i) {
|
|
3559
3567
|
const { mousePosition: o } = this;
|
|
3560
3568
|
e.showRuler(i, o);
|
|
@@ -3818,7 +3826,7 @@ class Vt extends z {
|
|
|
3818
3826
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), e.removeEventListener(f.Chart.MOUSEOVER, this.handleChartHolderOnHover), e.removeEventListener(f.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut);
|
|
3819
3827
|
}
|
|
3820
3828
|
}
|
|
3821
|
-
class
|
|
3829
|
+
class js extends z {
|
|
3822
3830
|
constructor(e, t, s) {
|
|
3823
3831
|
super(e, t, s), this.type = "axes", this.renderType = H.SVG, this.truncation = {
|
|
3824
3832
|
[P.LEFT]: !1,
|
|
@@ -3833,7 +3841,7 @@ class Zs extends z {
|
|
|
3833
3841
|
}), l = E.appendOrSelect(a, `g.axis.${t}`);
|
|
3834
3842
|
let c, d;
|
|
3835
3843
|
if (t === P.BOTTOM || t === P.TOP ? (c = this.configs.axes[P.LEFT] ? this.margins.left : 0, d = this.configs.axes[P.RIGHT] ? i - this.margins.right : i) : (c = o - this.margins.bottom, d = this.margins.top), !this.services.cartesianScales)
|
|
3836
|
-
throw new Error("Services cartesianScales
|
|
3844
|
+
throw new Error("Services cartesianScales undefined");
|
|
3837
3845
|
const p = this.services.cartesianScales.getScaleByPosition(t);
|
|
3838
3846
|
this.scaleType === te.LABELS || this.scaleType === te.LABELS_RATIO ? p.rangeRound([c, d]) : p.range([c, d]);
|
|
3839
3847
|
let h;
|
|
@@ -3845,10 +3853,10 @@ class Zs extends z {
|
|
|
3845
3853
|
h = Dt;
|
|
3846
3854
|
break;
|
|
3847
3855
|
case P.RIGHT:
|
|
3848
|
-
h =
|
|
3856
|
+
h = Ys;
|
|
3849
3857
|
break;
|
|
3850
3858
|
case P.TOP:
|
|
3851
|
-
h =
|
|
3859
|
+
h = Xs;
|
|
3852
3860
|
break;
|
|
3853
3861
|
}
|
|
3854
3862
|
l.attr("aria-label", `${t} axis`);
|
|
@@ -3867,58 +3875,58 @@ class Zs extends z {
|
|
|
3867
3875
|
const re = this.scaleType || b.scaleType || te.LINEAR, W = h(p).tickSizeOuter(0);
|
|
3868
3876
|
if (p.ticks) {
|
|
3869
3877
|
let B;
|
|
3870
|
-
if (A ? B = T : (B =
|
|
3878
|
+
if (A ? B = T : (B = ke.ticks.number, S && (B = this.getNumberOfFittingTicks(
|
|
3871
3879
|
o,
|
|
3872
3880
|
X,
|
|
3873
|
-
|
|
3881
|
+
ke.ticks.verticalSpaceRatio
|
|
3874
3882
|
))), p.ticks().length === 1 && p.ticks()[0] === 0 && (B = 0), W.ticks(B), v)
|
|
3875
3883
|
if (!p.ticks(B).length)
|
|
3876
3884
|
W.tickValues([]);
|
|
3877
3885
|
else {
|
|
3878
|
-
const j = y(s, "timeScale", "addSpaceOnEdges"), q = y(s, "axes", t, "domain"),
|
|
3879
|
-
j && !q &&
|
|
3880
|
-
const oe =
|
|
3886
|
+
const j = y(s, "timeScale", "addSpaceOnEdges"), q = y(s, "axes", t, "domain"), J = p.copy();
|
|
3887
|
+
j && !q && J.nice(B);
|
|
3888
|
+
const oe = J.ticks(B);
|
|
3881
3889
|
j && oe.length > 2 && !q && (oe.splice(oe.length - 1, 1), oe.splice(0, 1)), W.tickValues(oe);
|
|
3882
3890
|
}
|
|
3883
3891
|
}
|
|
3884
3892
|
let N;
|
|
3885
3893
|
const ae = y(b, "ticks", "formatter");
|
|
3886
3894
|
if (v) {
|
|
3887
|
-
const B =
|
|
3895
|
+
const B = ut(
|
|
3888
3896
|
W.tickValues(),
|
|
3889
3897
|
y(s, "timeScale", "timeInterval")
|
|
3890
3898
|
);
|
|
3891
|
-
ae === null ? N = (j, q) =>
|
|
3892
|
-
const
|
|
3899
|
+
ae === null ? N = (j, q) => pt(j, q, W.tickValues(), B, M) : N = (j, q) => {
|
|
3900
|
+
const J = pt(
|
|
3893
3901
|
j,
|
|
3894
3902
|
q,
|
|
3895
3903
|
W.tickValues(),
|
|
3896
3904
|
B,
|
|
3897
3905
|
M
|
|
3898
3906
|
);
|
|
3899
|
-
return ae(j, q,
|
|
3907
|
+
return ae(j, q, J);
|
|
3900
3908
|
};
|
|
3901
3909
|
} else
|
|
3902
3910
|
ae === null ? re === te.LINEAR && (N = (B) => B.toLocaleString()) : N = ae;
|
|
3903
3911
|
W.tickFormat(N);
|
|
3904
|
-
const [
|
|
3905
|
-
let
|
|
3912
|
+
const [tt, st] = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
3913
|
+
let _e;
|
|
3906
3914
|
if (k) {
|
|
3907
3915
|
if (v)
|
|
3908
3916
|
k.forEach((B, j) => {
|
|
3909
3917
|
B.getTime === void 0 && (k[j] = new Date(B));
|
|
3910
|
-
}),
|
|
3918
|
+
}), _e = k.filter((B) => {
|
|
3911
3919
|
const j = B.getTime();
|
|
3912
|
-
return j >= new Date(
|
|
3920
|
+
return j >= new Date(tt).getTime() && j <= new Date(st).getTime();
|
|
3913
3921
|
});
|
|
3914
3922
|
else if (L === te.LABELS) {
|
|
3915
3923
|
const B = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
3916
|
-
|
|
3924
|
+
_e = k.filter((j) => B.includes(j));
|
|
3917
3925
|
} else
|
|
3918
|
-
|
|
3919
|
-
(B) => B >=
|
|
3926
|
+
_e = k.filter(
|
|
3927
|
+
(B) => B >= tt && B <= st
|
|
3920
3928
|
);
|
|
3921
|
-
W.tickValues(
|
|
3929
|
+
W.tickValues(_e);
|
|
3922
3930
|
}
|
|
3923
3931
|
switch (t) {
|
|
3924
3932
|
case P.LEFT:
|
|
@@ -3954,9 +3962,9 @@ class Zs extends z {
|
|
|
3954
3962
|
j === Wt.LEFT ? B.attr("transform", "rotate(-90)").attr("y", i).attr("x", -(p.range()[0] / 2)).style("text-anchor", "middle") : B.attr("transform", "rotate(90)").attr("y", -i).attr("x", p.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
3955
3963
|
break;
|
|
3956
3964
|
case P.TOP:
|
|
3957
|
-
|
|
3965
|
+
q = E.getSVGElementSize(B, {
|
|
3958
3966
|
useBBox: !0
|
|
3959
|
-
})
|
|
3967
|
+
}).height, B.attr(
|
|
3960
3968
|
"transform",
|
|
3961
3969
|
`translate(${this.margins.left / 2 + p.range()[1] / 2}, ${q / 2})`
|
|
3962
3970
|
).style("text-anchor", "middle");
|
|
@@ -3964,7 +3972,7 @@ class Zs extends z {
|
|
|
3964
3972
|
}
|
|
3965
3973
|
}
|
|
3966
3974
|
if (v) {
|
|
3967
|
-
const B =
|
|
3975
|
+
const B = ut(
|
|
3968
3976
|
W.tickValues(),
|
|
3969
3977
|
y(s, "timeScale", "timeInterval")
|
|
3970
3978
|
), j = M.showDayName, q = g;
|
|
@@ -3974,7 +3982,7 @@ class Zs extends z {
|
|
|
3974
3982
|
name: "axis-update",
|
|
3975
3983
|
animate: e
|
|
3976
3984
|
})
|
|
3977
|
-
)), g = g.call(W), q.selectAll(".tick").data(W.tickValues(), p).order().select("text").style("font-weight", (oe,
|
|
3985
|
+
)), g = g.call(W), q.selectAll(".tick").data(W.tickValues(), p).order().select("text").style("font-weight", (oe, Ne) => Mn(oe, Ne, W.tickValues(), B, j) ? "bold" : "normal");
|
|
3978
3986
|
} else
|
|
3979
3987
|
!e || !u ? g = g.call(W) : g = g.transition().call(
|
|
3980
3988
|
(B) => this.services.transitions.setupTransition({
|
|
@@ -3986,42 +3994,42 @@ class Zs extends z {
|
|
|
3986
3994
|
if (m.call(W), t === P.BOTTOM || t === P.TOP) {
|
|
3987
3995
|
let B = !1;
|
|
3988
3996
|
const j = y(b, "ticks", "rotation");
|
|
3989
|
-
if (j ===
|
|
3997
|
+
if (j === nt.ALWAYS)
|
|
3990
3998
|
B = !0;
|
|
3991
|
-
else if (j ===
|
|
3999
|
+
else if (j === nt.NEVER)
|
|
3992
4000
|
B = !1;
|
|
3993
|
-
else if (!j || j ===
|
|
4001
|
+
else if (!j || j === nt.AUTO)
|
|
3994
4002
|
if (p.step)
|
|
3995
4003
|
B = m.selectAll("g.tick text").nodes().some(
|
|
3996
|
-
(
|
|
4004
|
+
(J) => E.getSVGElementSize(J, {
|
|
3997
4005
|
useBBox: !0
|
|
3998
4006
|
}).width >= p.step()
|
|
3999
4007
|
);
|
|
4000
4008
|
else {
|
|
4001
4009
|
B = !1;
|
|
4002
|
-
const q = m.append("text").text("A"),
|
|
4010
|
+
const q = m.append("text").text("A"), J = E.getSVGElementSize(q.node(), {
|
|
4003
4011
|
useBBox: !0
|
|
4004
4012
|
}).width;
|
|
4005
4013
|
let oe;
|
|
4006
4014
|
m.selectAll("g.tick").each(function() {
|
|
4007
|
-
const
|
|
4008
|
-
C !== null && oe +
|
|
4015
|
+
const Ne = x(this), C = parseFloat(y(ge(this), "tx"));
|
|
4016
|
+
C !== null && oe + Ne.text().length * J * 0.8 >= C && (B = !0), oe = C;
|
|
4009
4017
|
}), q.remove();
|
|
4010
4018
|
}
|
|
4011
4019
|
B ? (A || (W.ticks(
|
|
4012
|
-
this.getNumberOfFittingTicks(i, X,
|
|
4020
|
+
this.getNumberOfFittingTicks(i, X, ke.ticks.horizontalSpaceRatio)
|
|
4013
4021
|
), m.call(W), g.call(W)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === P.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
4014
4022
|
}
|
|
4015
|
-
if (w ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (B) => B), m.selectAll("g.tick").attr("aria-label", (B) => B), _ !==
|
|
4023
|
+
if (w ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (B) => B), m.selectAll("g.tick").attr("aria-label", (B) => B), _ !== Ie.NONE && L === te.LABELS && !k) {
|
|
4016
4024
|
const B = this.services.cartesianScales.getScaleDomain(t);
|
|
4017
4025
|
if (B.length > 0) {
|
|
4018
4026
|
const j = a.select(`g.axis.${t} g.ticks g.tick`).html();
|
|
4019
4027
|
l.selectAll("g.ticks g.tick").html(j);
|
|
4020
4028
|
const q = this;
|
|
4021
|
-
l.selectAll("g.tick text").data(B).text(function(
|
|
4022
|
-
return
|
|
4023
|
-
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(B).text(function(
|
|
4024
|
-
return
|
|
4029
|
+
l.selectAll("g.tick text").data(B).text(function(J) {
|
|
4030
|
+
return J.length > F ? (q.truncation[t] = !0, Ge(J, _, V)) : J;
|
|
4031
|
+
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(B).text(function(J) {
|
|
4032
|
+
return J.length > F ? Ge(J, _, V) : J;
|
|
4025
4033
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(B);
|
|
4026
4034
|
}
|
|
4027
4035
|
}
|
|
@@ -4071,14 +4079,14 @@ class Zs extends z {
|
|
|
4071
4079
|
}
|
|
4072
4080
|
getNumberOfFittingTicks(e, t, s) {
|
|
4073
4081
|
const n = Math.floor(e / (t * s));
|
|
4074
|
-
return
|
|
4082
|
+
return $s(n, 2, ke.ticks.number);
|
|
4075
4083
|
}
|
|
4076
4084
|
destroy() {
|
|
4077
4085
|
const e = this.getComponentContainer(), { position: t } = this.configs;
|
|
4078
4086
|
E.appendOrSelect(e, `g.axis.${t}`).selectAll("g.tick text").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
4079
4087
|
}
|
|
4080
4088
|
}
|
|
4081
|
-
class
|
|
4089
|
+
class or extends js {
|
|
4082
4090
|
constructor(e, t, s) {
|
|
4083
4091
|
super(e, t, s);
|
|
4084
4092
|
}
|
|
@@ -4106,7 +4114,7 @@ class lr extends Zs {
|
|
|
4106
4114
|
u = -(d / 2), g = p / 2 - 2, a.truncation[t] && (u = -d, h.attr("transform", "rotate(-45)"));
|
|
4107
4115
|
break;
|
|
4108
4116
|
}
|
|
4109
|
-
h.attr("x", u -
|
|
4117
|
+
h.attr("x", u - ke.hover.rectanglePadding).attr("y", g).attr("width", d + ke.hover.rectanglePadding * 2).attr("height", p).lower();
|
|
4110
4118
|
}), this.addEventListeners();
|
|
4111
4119
|
}
|
|
4112
4120
|
addEventListeners() {
|
|
@@ -4182,7 +4190,7 @@ class lr extends Zs {
|
|
|
4182
4190
|
E.appendOrSelect(e, `g.axis.${t}`).selectAll("g.tick.tick-hover").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("focus", null).on("blur", null);
|
|
4183
4191
|
}
|
|
4184
4192
|
}
|
|
4185
|
-
class
|
|
4193
|
+
class gc extends z {
|
|
4186
4194
|
constructor() {
|
|
4187
4195
|
super(...arguments), this.type = "2D-axes", this.renderType = H.SVG, this.children = {}, this.thresholds = [], this.margins = {
|
|
4188
4196
|
top: 0,
|
|
@@ -4202,7 +4210,7 @@ class mc extends z {
|
|
|
4202
4210
|
position: l,
|
|
4203
4211
|
axes: this.configs.axes,
|
|
4204
4212
|
margins: this.margins
|
|
4205
|
-
}, d = this.model.axisFlavor ===
|
|
4213
|
+
}, d = this.model.axisFlavor === Dn.DEFAULT ? new js(this.model, this.services, c) : new or(this.model, this.services, c);
|
|
4206
4214
|
d.setModel(this.model), d.setServices(this.services), d.setParent(this.parent), this.children[l] = d;
|
|
4207
4215
|
}
|
|
4208
4216
|
}), Object.keys(this.children).forEach((o) => {
|
|
@@ -4234,7 +4242,7 @@ class mc extends z {
|
|
|
4234
4242
|
}), this.render(!0));
|
|
4235
4243
|
}
|
|
4236
4244
|
}
|
|
4237
|
-
class
|
|
4245
|
+
class lr extends z {
|
|
4238
4246
|
constructor() {
|
|
4239
4247
|
super(...arguments), this.type = "skeleton";
|
|
4240
4248
|
}
|
|
@@ -4246,13 +4254,13 @@ class cr extends z {
|
|
|
4246
4254
|
t ? this.renderSkeleton(t) : this.removeSkeleton();
|
|
4247
4255
|
}
|
|
4248
4256
|
renderSkeleton(e) {
|
|
4249
|
-
if (this.configs.skeleton ===
|
|
4257
|
+
if (this.configs.skeleton === Ue.GRID)
|
|
4250
4258
|
this.renderGridSkeleton(e);
|
|
4251
|
-
else if (this.configs.skeleton ===
|
|
4259
|
+
else if (this.configs.skeleton === Ue.VERT_OR_HORIZ)
|
|
4252
4260
|
this.renderVertOrHorizSkeleton(e);
|
|
4253
|
-
else if (this.configs.skeleton ===
|
|
4261
|
+
else if (this.configs.skeleton === Ue.PIE)
|
|
4254
4262
|
this.renderPieSkeleton(e);
|
|
4255
|
-
else if (this.configs.skeleton ===
|
|
4263
|
+
else if (this.configs.skeleton === Ue.DONUT)
|
|
4256
4264
|
this.renderDonutSkeleton(e);
|
|
4257
4265
|
else
|
|
4258
4266
|
throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
|
|
@@ -4308,7 +4316,7 @@ class cr extends z {
|
|
|
4308
4316
|
useAttrs: !0
|
|
4309
4317
|
}), o = E.appendOrSelect(n, "svg.chart-skeleton").attr("width", a).attr("height", i), l = t === 0 ? "pie" : "donut", c = y(this.getOptions(), l, "alignment");
|
|
4310
4318
|
E.appendOrSelect(o, "rect.chart-skeleton-area-container").attr("width", a).attr("height", i).attr("fill", "none");
|
|
4311
|
-
const d =
|
|
4319
|
+
const d = $e().innerRadius(t).outerRadius(e).startAngle(0).endAngle(Math.PI * 2), p = e + Math.abs(Z.radiusOffset), h = e + (Math.min(a, i) - e * 2) / 2, u = E.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${p}, ${h})`).attr("d", d).classed("shimmer-effect-areas", s).classed("empty-state-areas", !s).style(
|
|
4312
4320
|
"fill",
|
|
4313
4321
|
s ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
|
|
4314
4322
|
);
|
|
@@ -4338,14 +4346,14 @@ class cr extends z {
|
|
|
4338
4346
|
`;
|
|
4339
4347
|
h.html(u), g();
|
|
4340
4348
|
function g() {
|
|
4341
|
-
h.attr("gradientTransform", `translate(${c - 3 * 0.2 * l}, 0)`).transition().duration(2e3).delay(1e3).ease(
|
|
4349
|
+
h.attr("gradientTransform", `translate(${c - 3 * 0.2 * l}, 0)`).transition().duration(2e3).delay(1e3).ease(qs).attr("gradientTransform", `translate(${d + 3 * 0.2 * l}, 0)`).on("end", g);
|
|
4342
4350
|
}
|
|
4343
4351
|
}
|
|
4344
4352
|
removeSkeleton() {
|
|
4345
4353
|
this.parent.select(".chart-skeleton").remove();
|
|
4346
4354
|
}
|
|
4347
4355
|
}
|
|
4348
|
-
class
|
|
4356
|
+
class mc extends z {
|
|
4349
4357
|
constructor() {
|
|
4350
4358
|
super(...arguments), this.type = "boxplot", this.renderType = H.SVG;
|
|
4351
4359
|
}
|
|
@@ -4605,7 +4613,7 @@ class fc extends z {
|
|
|
4605
4613
|
});
|
|
4606
4614
|
}
|
|
4607
4615
|
}
|
|
4608
|
-
class
|
|
4616
|
+
class fc extends z {
|
|
4609
4617
|
constructor() {
|
|
4610
4618
|
super(...arguments), this.type = "zero-line", this.renderType = H.SVG;
|
|
4611
4619
|
}
|
|
@@ -4620,7 +4628,7 @@ class vc extends z {
|
|
|
4620
4628
|
const [l, c] = this.services.cartesianScales.getDomainScale().range();
|
|
4621
4629
|
let d = +s(0) + 0.5;
|
|
4622
4630
|
d || (d = s.range()[0]);
|
|
4623
|
-
const p =
|
|
4631
|
+
const p = An(
|
|
4624
4632
|
{
|
|
4625
4633
|
x0: l,
|
|
4626
4634
|
x1: c,
|
|
@@ -4638,12 +4646,12 @@ class vc extends z {
|
|
|
4638
4646
|
).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
|
|
4639
4647
|
}
|
|
4640
4648
|
}
|
|
4641
|
-
class
|
|
4649
|
+
class vc extends Vt {
|
|
4642
4650
|
constructor() {
|
|
4643
4651
|
super(...arguments), this.type = "bubble", this.renderType = H.SVG;
|
|
4644
4652
|
}
|
|
4645
4653
|
getRadiusScale(e) {
|
|
4646
|
-
const t = this.getOptions(), { radiusMapsTo: s } = t.bubble, n = e.data(), a = n.map((c) => c[s]).filter((c) => c), i = E.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = a.length > 0, l = o ?
|
|
4654
|
+
const t = this.getOptions(), { radiusMapsTo: s } = t.bubble, n = e.data(), a = n.map((c) => c[s]).filter((c) => c), i = E.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = a.length > 0, l = o ? Qe(a) : [1, 1];
|
|
4647
4655
|
return Oe().domain(l).range(o ? t.bubble.radiusRange(i, n) : [4, 4]);
|
|
4648
4656
|
}
|
|
4649
4657
|
styleCircles(e, t) {
|
|
@@ -4686,7 +4694,7 @@ class yc extends Vt {
|
|
|
4686
4694
|
];
|
|
4687
4695
|
}
|
|
4688
4696
|
}
|
|
4689
|
-
class
|
|
4697
|
+
class yc extends z {
|
|
4690
4698
|
constructor() {
|
|
4691
4699
|
super(...arguments), this.type = "bullet", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
4692
4700
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -4878,12 +4886,12 @@ class bc extends z {
|
|
|
4878
4886
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
4879
4887
|
}
|
|
4880
4888
|
}
|
|
4881
|
-
function
|
|
4889
|
+
function cr(r) {
|
|
4882
4890
|
return r;
|
|
4883
4891
|
}
|
|
4884
|
-
function
|
|
4892
|
+
function dr(r) {
|
|
4885
4893
|
if (r == null)
|
|
4886
|
-
return
|
|
4894
|
+
return cr;
|
|
4887
4895
|
var e, t, s = r.scale[0], n = r.scale[1], a = r.translate[0], i = r.translate[1];
|
|
4888
4896
|
return function(o, l) {
|
|
4889
4897
|
l || (e = t = 0);
|
|
@@ -4893,11 +4901,11 @@ function hr(r) {
|
|
|
4893
4901
|
return p;
|
|
4894
4902
|
};
|
|
4895
4903
|
}
|
|
4896
|
-
function
|
|
4904
|
+
function hr(r, e) {
|
|
4897
4905
|
for (var t, s = r.length, n = s - e; n < --s; )
|
|
4898
4906
|
t = r[n], r[n++] = r[s], r[s] = t;
|
|
4899
4907
|
}
|
|
4900
|
-
function
|
|
4908
|
+
function ur(r, e) {
|
|
4901
4909
|
return typeof e == "string" && (e = r.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
|
|
4902
4910
|
return ds(r, t);
|
|
4903
4911
|
}) } : ds(r, e);
|
|
@@ -4907,12 +4915,12 @@ function ds(r, e) {
|
|
|
4907
4915
|
return t == null && s == null ? { type: "Feature", properties: n, geometry: a } : s == null ? { type: "Feature", id: t, properties: n, geometry: a } : { type: "Feature", id: t, bbox: s, properties: n, geometry: a };
|
|
4908
4916
|
}
|
|
4909
4917
|
function Bt(r, e) {
|
|
4910
|
-
var t =
|
|
4918
|
+
var t = dr(r.transform), s = r.arcs;
|
|
4911
4919
|
function n(d, p) {
|
|
4912
4920
|
p.length && p.pop();
|
|
4913
4921
|
for (var h = s[d < 0 ? ~d : d], u = 0, g = h.length; u < g; ++u)
|
|
4914
4922
|
p.push(t(h[u], u));
|
|
4915
|
-
d < 0 &&
|
|
4923
|
+
d < 0 && hr(p, g);
|
|
4916
4924
|
}
|
|
4917
4925
|
function a(d) {
|
|
4918
4926
|
return t(d);
|
|
@@ -4960,7 +4968,7 @@ function Bt(r, e) {
|
|
|
4960
4968
|
}
|
|
4961
4969
|
return c(e);
|
|
4962
4970
|
}
|
|
4963
|
-
function
|
|
4971
|
+
function pr(r, e) {
|
|
4964
4972
|
var t = {}, s = {}, n = {}, a = [], i = -1;
|
|
4965
4973
|
e.forEach(function(c, d) {
|
|
4966
4974
|
var p = r.arcs[c < 0 ? ~c : c], h;
|
|
@@ -5002,15 +5010,15 @@ function gr(r, e) {
|
|
|
5002
5010
|
t[c < 0 ? ~c : c] || a.push([c]);
|
|
5003
5011
|
}), a;
|
|
5004
5012
|
}
|
|
5005
|
-
function
|
|
5013
|
+
function gr(r) {
|
|
5006
5014
|
for (var e = -1, t = r.length, s, n = r[t - 1], a = 0; ++e < t; )
|
|
5007
5015
|
s = n, n = r[e], a += s[0] * n[1] - s[1] * n[0];
|
|
5008
5016
|
return Math.abs(a);
|
|
5009
5017
|
}
|
|
5010
|
-
function
|
|
5011
|
-
return Bt(r,
|
|
5018
|
+
function mr(r) {
|
|
5019
|
+
return Bt(r, fr.apply(this, arguments));
|
|
5012
5020
|
}
|
|
5013
|
-
function
|
|
5021
|
+
function fr(r, e) {
|
|
5014
5022
|
var t = {}, s = [], n = [];
|
|
5015
5023
|
e.forEach(a);
|
|
5016
5024
|
function a(l) {
|
|
@@ -5034,7 +5042,7 @@ function vr(r, e) {
|
|
|
5034
5042
|
}), s.push(l);
|
|
5035
5043
|
}
|
|
5036
5044
|
function o(l) {
|
|
5037
|
-
return
|
|
5045
|
+
return gr(Bt(r, { type: "Polygon", arcs: [l] }).coordinates[0]);
|
|
5038
5046
|
}
|
|
5039
5047
|
return s.forEach(function(l) {
|
|
5040
5048
|
if (!l._) {
|
|
@@ -5060,7 +5068,7 @@ function vr(r, e) {
|
|
|
5060
5068
|
t[v < 0 ? ~v : v].length < 2 && c.push(v);
|
|
5061
5069
|
});
|
|
5062
5070
|
});
|
|
5063
|
-
}), c =
|
|
5071
|
+
}), c = pr(r, c), (d = c.length) > 1)
|
|
5064
5072
|
for (var p = 1, h = o(c[0]), u, g; p < d; ++p)
|
|
5065
5073
|
(u = o(c[p])) > h && (g = c[0], c[0] = c[p], c[p] = g, h = u);
|
|
5066
5074
|
return c;
|
|
@@ -5069,7 +5077,7 @@ function vr(r, e) {
|
|
|
5069
5077
|
})
|
|
5070
5078
|
};
|
|
5071
5079
|
}
|
|
5072
|
-
class
|
|
5080
|
+
class bc extends Ws {
|
|
5073
5081
|
constructor() {
|
|
5074
5082
|
super(...arguments), this.type = "ruler-binned", this.renderType = H.SVG;
|
|
5075
5083
|
}
|
|
@@ -5084,7 +5092,7 @@ class Ec extends js {
|
|
|
5084
5092
|
return !0;
|
|
5085
5093
|
});
|
|
5086
5094
|
if (b.size() > 0) {
|
|
5087
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
5095
|
+
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Gs(this.elementsToHighlight, b) && this.hideRuler(), b.dispatch("mouseover"), this.elementsToHighlight = b;
|
|
5088
5096
|
const v = x(b.nodes()[0]).datum(), S = parseFloat(Q(v, "data.x0")), O = parseFloat(Q(v, "data.x1")), L = this.model.getActiveDataGroupNames(), w = L.reverse().map((k) => ({
|
|
5089
5097
|
label: k,
|
|
5090
5098
|
value: Q(v, `data.${k}`),
|
|
@@ -5122,58 +5130,58 @@ class Ec extends js {
|
|
|
5122
5130
|
this.hideRuler();
|
|
5123
5131
|
}
|
|
5124
5132
|
}
|
|
5125
|
-
class
|
|
5133
|
+
class Ec extends Ws {
|
|
5126
5134
|
formatTooltipData(e) {
|
|
5127
5135
|
return e.reverse();
|
|
5128
5136
|
}
|
|
5129
5137
|
}
|
|
5130
|
-
const
|
|
5138
|
+
const Sc = (r, e) => {
|
|
5131
5139
|
const t = r.x, s = r.y, n = e.x, a = e.y, i = Rt();
|
|
5132
5140
|
return i.moveTo(t, s), i.lineTo(n, a), i.toString();
|
|
5133
|
-
},
|
|
5141
|
+
}, xc = (r, e, t = 0.5) => {
|
|
5134
5142
|
const s = r.x, n = r.y, a = e.x, i = e.y, o = Rt();
|
|
5135
5143
|
return o.moveTo(s, n), o.lineTo(s + (a - s) * t, n), o.lineTo(s + (a - s) * t, i), o.lineTo(a, i), o.toString();
|
|
5136
|
-
},
|
|
5144
|
+
}, Oc = (r, e, t, s, n, a) => {
|
|
5137
5145
|
const i = r.x, o = r.y, l = e.x, c = e.y, d = Rt();
|
|
5138
5146
|
return d.moveTo(i, o), d.bezierCurveTo(t, s, n, a, l, c), d.toString();
|
|
5139
|
-
},
|
|
5147
|
+
}, Tc = {
|
|
5140
5148
|
d: "M7 0v8L0 4z",
|
|
5141
5149
|
height: 8,
|
|
5142
5150
|
width: 7.5,
|
|
5143
5151
|
id: "arrowLeft"
|
|
5144
|
-
},
|
|
5152
|
+
}, Lc = {
|
|
5145
5153
|
d: "M0 0v8l7-4z",
|
|
5146
5154
|
height: 8,
|
|
5147
5155
|
width: 7.5,
|
|
5148
5156
|
id: "arrowRight"
|
|
5149
|
-
},
|
|
5157
|
+
}, wc = {
|
|
5150
5158
|
d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
|
|
5151
5159
|
height: 10,
|
|
5152
5160
|
width: 10,
|
|
5153
5161
|
id: "circle"
|
|
5154
|
-
},
|
|
5162
|
+
}, Mc = {
|
|
5155
5163
|
d: "M5.03517654-1e-7l4.99999996 5-4.99999996 5-5-5L2.4517844 2.58339204z",
|
|
5156
5164
|
height: 10,
|
|
5157
5165
|
width: 10,
|
|
5158
5166
|
id: "diamond"
|
|
5159
|
-
},
|
|
5167
|
+
}, Ac = {
|
|
5160
5168
|
d: "M0 .44974747h8v8H0v-3.6830331z",
|
|
5161
5169
|
height: 9,
|
|
5162
5170
|
width: 8,
|
|
5163
5171
|
id: "square"
|
|
5164
|
-
},
|
|
5172
|
+
}, Cc = {
|
|
5165
5173
|
d: "M0 0h1.5v8H0z",
|
|
5166
5174
|
height: 8,
|
|
5167
5175
|
width: 2,
|
|
5168
5176
|
id: "tee"
|
|
5169
5177
|
};
|
|
5170
|
-
class
|
|
5178
|
+
class kc extends sr {
|
|
5171
5179
|
constructor(e, t, s) {
|
|
5172
5180
|
super(e, t, s), this.type = "color-legend", this.renderType = H.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
|
|
5173
5181
|
const n = this.getComponentContainer(), { width: a } = E.getSVGElementSize(n, {
|
|
5174
5182
|
useAttrs: !0
|
|
5175
5183
|
}), i = y(this.getOptions(), "data", "loading");
|
|
5176
|
-
if (a >
|
|
5184
|
+
if (a > K.color.barWidth && !i) {
|
|
5177
5185
|
const o = y(this.getOptions(), "heatmap", "colorLegend", "title"), { cartesianScales: l } = this.services, d = l.getMainXScale().range();
|
|
5178
5186
|
if (d[0] > 1 && (n.select("g.legend").attr("transform", `translate(${d[0]}, 0)`), o)) {
|
|
5179
5187
|
const { width: p } = E.getSVGElementSize(
|
|
@@ -5195,7 +5203,7 @@ class Ic extends nr {
|
|
|
5195
5203
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5196
5204
|
// @ts-ignore
|
|
5197
5205
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5198
|
-
render(e = !
|
|
5206
|
+
render(e = !1) {
|
|
5199
5207
|
const t = this.getOptions(), s = this.getComponentContainer(), { width: n } = E.getSVGElementSize(s, {
|
|
5200
5208
|
useAttrs: !0
|
|
5201
5209
|
}), a = y(t, "color", "gradient", "colors"), i = y(
|
|
@@ -5210,7 +5218,7 @@ class Ic extends nr {
|
|
|
5210
5218
|
s.html("");
|
|
5211
5219
|
return;
|
|
5212
5220
|
}
|
|
5213
|
-
const d = !
|
|
5221
|
+
const d = !Os(a), p = Cn(this.model.getDisplayData()), h = !(n <= K.color.barWidth), u = h ? K.color.barWidth : n, g = E.appendOrSelect(s, "g.legend"), m = E.appendOrSelect(g, "g.legend-axis");
|
|
5214
5222
|
if (l) {
|
|
5215
5223
|
const _ = E.appendOrSelect(s, "g.legend-title");
|
|
5216
5224
|
E.appendOrSelect(_, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
|
|
@@ -5224,15 +5232,15 @@ class Ic extends nr {
|
|
|
5224
5232
|
else
|
|
5225
5233
|
for (let _ = 1; _ < S + 1; _++)
|
|
5226
5234
|
v.push(
|
|
5227
|
-
i ===
|
|
5235
|
+
i === at.LINEAR ? `stop-color-${b}-${o}-${_}` : `fill-${b}-${o}-${_}`
|
|
5228
5236
|
);
|
|
5229
|
-
const O = vs(p[0], p[1]), L =
|
|
5237
|
+
const O = vs(p[0], p[1]), L = Ks(O, 3), w = Oe().domain(p).range([0, u]), T = Dt(w).tickSize(0).tickValues(L);
|
|
5230
5238
|
let k;
|
|
5231
5239
|
switch (i) {
|
|
5232
|
-
case
|
|
5240
|
+
case at.LINEAR:
|
|
5233
5241
|
this.drawLinear(v, g, u);
|
|
5234
5242
|
break;
|
|
5235
|
-
case
|
|
5243
|
+
case at.QUANTIZE:
|
|
5236
5244
|
k = this.drawQuantize(
|
|
5237
5245
|
v,
|
|
5238
5246
|
b,
|
|
@@ -5244,7 +5252,7 @@ class Ic extends nr {
|
|
|
5244
5252
|
default:
|
|
5245
5253
|
throw Error("Entered color legend type is not supported.");
|
|
5246
5254
|
}
|
|
5247
|
-
m.attr("transform", `translate(0,${
|
|
5255
|
+
m.attr("transform", `translate(0,${K.color.axisYTranslation})`).call(T), m.select(".domain").remove(), m.select("g.tick:last-of-type text").style("text-anchor", h ? "middle" : "end"), m.select("g.tick:first-of-type text").style(
|
|
5248
5256
|
"text-anchor",
|
|
5249
5257
|
h && this.chartType !== "choropleth" ? "middle" : "start"
|
|
5250
5258
|
);
|
|
@@ -5252,7 +5260,7 @@ class Ic extends nr {
|
|
|
5252
5260
|
// Renders gradient legend
|
|
5253
5261
|
drawLinear(e, t, s) {
|
|
5254
5262
|
const n = 100 / (e.length - 1);
|
|
5255
|
-
E.appendOrSelect(t, "linearGradient").attr("id", `${this.gradient_id}-legend`).selectAll("stop").data(e).enter().append("stop").attr("offset", (o, l) => `${l * n}%`).attr("class", (o, l) => e[l]).attr("stop-color", (o) => o), E.appendOrSelect(t, "rect").attr("width", s).attr("height",
|
|
5263
|
+
E.appendOrSelect(t, "linearGradient").attr("id", `${this.gradient_id}-legend`).selectAll("stop").data(e).enter().append("stop").attr("offset", (o, l) => `${l * n}%`).attr("class", (o, l) => e[l]).attr("stop-color", (o) => o), E.appendOrSelect(t, "rect").attr("width", s).attr("height", K.color.barHeight).style("fill", `url(#${this.gradient_id}-legend)`);
|
|
5256
5264
|
}
|
|
5257
5265
|
/**
|
|
5258
5266
|
* Renders quantized legend
|
|
@@ -5261,7 +5269,7 @@ class Ic extends nr {
|
|
|
5261
5269
|
drawQuantize(e, t, s, n, a) {
|
|
5262
5270
|
!s && t === "diverge" && e.splice(e.length / 2, 1);
|
|
5263
5271
|
const i = _t().domain(e).range([0, a]);
|
|
5264
|
-
return E.appendOrSelect(n, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height",
|
|
5272
|
+
return E.appendOrSelect(n, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height", K.color.barHeight).attr("class", (l) => l).attr("fill", (l) => l), (!s && t) === "mono" ? i.bandwidth() - 1 : 0;
|
|
5265
5273
|
}
|
|
5266
5274
|
destroy() {
|
|
5267
5275
|
this.chartType === "heatmap" && this.services.events.removeEventListener(
|
|
@@ -5270,14 +5278,14 @@ class Ic extends nr {
|
|
|
5270
5278
|
);
|
|
5271
5279
|
}
|
|
5272
5280
|
}
|
|
5273
|
-
class
|
|
5281
|
+
class Ic extends tr {
|
|
5274
5282
|
constructor() {
|
|
5275
5283
|
super(...arguments), this.type = "meter-title", this.renderType = H.SVG;
|
|
5276
5284
|
}
|
|
5277
5285
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5278
5286
|
// @ts-ignore
|
|
5279
5287
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5280
|
-
render(e = !
|
|
5288
|
+
render(e = !1) {
|
|
5281
5289
|
const t = y(this.model.getDisplayData(), 0), s = this.getOptions(), n = this.getComponentContainer(), { groupMapsTo: a } = s.data;
|
|
5282
5290
|
if (y(s, "meter", "proportional"))
|
|
5283
5291
|
this.displayTotal(), this.displayBreakdownTitle();
|
|
@@ -5363,11 +5371,11 @@ class Dc extends sr {
|
|
|
5363
5371
|
*/
|
|
5364
5372
|
getStatusIconPathString(e) {
|
|
5365
5373
|
switch (e) {
|
|
5366
|
-
case
|
|
5374
|
+
case it.SUCCESS:
|
|
5367
5375
|
return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
|
|
5368
|
-
case
|
|
5376
|
+
case it.DANGER:
|
|
5369
5377
|
return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
|
|
5370
|
-
case
|
|
5378
|
+
case it.WARNING:
|
|
5371
5379
|
return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
|
|
5372
5380
|
}
|
|
5373
5381
|
}
|
|
@@ -5398,7 +5406,7 @@ class $t extends z {
|
|
|
5398
5406
|
return !1;
|
|
5399
5407
|
}
|
|
5400
5408
|
}
|
|
5401
|
-
class
|
|
5409
|
+
class Dc extends z {
|
|
5402
5410
|
constructor() {
|
|
5403
5411
|
super(...arguments), this.type = "circle-pack", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
5404
5412
|
const { hoveredElement: t } = e.detail;
|
|
@@ -5407,7 +5415,7 @@ class Rc extends z {
|
|
|
5407
5415
|
transition: s,
|
|
5408
5416
|
name: "legend-hover-circlepack"
|
|
5409
5417
|
})
|
|
5410
|
-
).attr("opacity", (s) => s.data.dataGroupName === t.datum().name ? 1 :
|
|
5418
|
+
).attr("opacity", (s) => s.data.dataGroupName === t.datum().name ? 1 : Pe.circles.fillOpacity);
|
|
5411
5419
|
}, this.handleLegendMouseOut = () => {
|
|
5412
5420
|
this.parent.selectAll("circle.node").transition("legend-mouseout-circlepack").call(
|
|
5413
5421
|
(e) => this.services.transitions.setupTransition({
|
|
@@ -5429,7 +5437,7 @@ class Rc extends z {
|
|
|
5429
5437
|
let a = this.model.getDisplayData();
|
|
5430
5438
|
const i = this.model.hasParentNode(), o = this.model.getHierarchyLevel(), l = this.getOptions(), c = y(l, "canvasZoom", "enabled");
|
|
5431
5439
|
i && y(a, 0, "children") && (a = y(a, 0, "children"));
|
|
5432
|
-
const d = Pt({ children: a }).sum((m) => m.value).sort((m, b) => b.value - m.value), h =
|
|
5440
|
+
const d = Pt({ children: a }).sum((m) => m.value).sort((m, b) => b.value - m.value), h = Js().size([s, n]).padding((m) => m.depth >= 1 ? Pe.padding.children + 3 : Pe.padding.mainGroup + 3)(d).descendants().splice(1).filter((m) => m.depth <= o), u = t.selectAll("circle.node").data(h);
|
|
5433
5441
|
u.exit().attr("width", 0).attr("height", 0).remove();
|
|
5434
5442
|
const g = u.enter().append("circle").classed("node", !0);
|
|
5435
5443
|
g.merge(u).attr("class", (m) => {
|
|
@@ -5444,7 +5452,7 @@ class Rc extends z {
|
|
|
5444
5452
|
transition: m,
|
|
5445
5453
|
name: "circlepack-leaf-update-enter"
|
|
5446
5454
|
})
|
|
5447
|
-
).attr("r", (m) => m.r).attr("opacity", 1).attr("fill-opacity",
|
|
5455
|
+
).attr("r", (m) => m.r).attr("opacity", 1).attr("fill-opacity", Pe.circles.fillOpacity), c === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, g, He), this.setBackgroundListeners()), i || this.addLegendListeners(), this.addEventListeners();
|
|
5448
5456
|
}
|
|
5449
5457
|
// turn off the highlight class on children circles
|
|
5450
5458
|
unhighlightChildren(e) {
|
|
@@ -5454,7 +5462,7 @@ class Rc extends z {
|
|
|
5454
5462
|
// highlight the children circles with a stroke
|
|
5455
5463
|
highlightChildren(e) {
|
|
5456
5464
|
const t = e.map((s) => s.data);
|
|
5457
|
-
this.parent.selectAll("circle.node").filter((s) => t.some((n) => n === s.data) && s.depth > 1).style("stroke",
|
|
5465
|
+
this.parent.selectAll("circle.node").filter((s) => t.some((n) => n === s.data) && s.depth > 1).style("stroke", Pe.circles.hover.stroke);
|
|
5458
5466
|
}
|
|
5459
5467
|
getZoomClass(e) {
|
|
5460
5468
|
return this.model.getHierarchyLevel() === 3 && this.focal && (e.data === this.focal.data || this.focal.children.some((t) => t.data === e.data)) ? "focal" : "non-focal";
|
|
@@ -5467,9 +5475,9 @@ class Rc extends z {
|
|
|
5467
5475
|
x(this.services.domUtils.getMainContainer()).on("click", () => null);
|
|
5468
5476
|
}
|
|
5469
5477
|
setBackgroundListeners() {
|
|
5470
|
-
const e = x(this.services.domUtils.getMainContainer()), t = this, s = this.parent.selectAll("circle.node")
|
|
5478
|
+
const e = x(this.services.domUtils.getMainContainer()), t = this, s = this.parent.selectAll("circle.node");
|
|
5471
5479
|
e.on("click", () => {
|
|
5472
|
-
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(s,
|
|
5480
|
+
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(s, He);
|
|
5473
5481
|
});
|
|
5474
5482
|
}
|
|
5475
5483
|
// Zoom icon to be appended to the label in the tooltip
|
|
@@ -5555,10 +5563,10 @@ class Rc extends z {
|
|
|
5555
5563
|
const n = x(this), a = n.classed("non-focal"), i = y(e.model.getOptions(), "canvasZoom", "enabled");
|
|
5556
5564
|
if (i && e.model.getHierarchyLevel() > 2) {
|
|
5557
5565
|
const o = e.parent.selectAll("circle.node");
|
|
5558
|
-
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(o,
|
|
5566
|
+
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(o, He);
|
|
5559
5567
|
} else if (s.depth === 2 && s.children && !a && i) {
|
|
5560
5568
|
const o = e.parent.selectAll("circle.node");
|
|
5561
|
-
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = s, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(s, o,
|
|
5569
|
+
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = s, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(s, o, He), t.stopPropagation();
|
|
5562
5570
|
}
|
|
5563
5571
|
e.services.events.dispatchEvent(f.CirclePack.CIRCLE_CLICK, {
|
|
5564
5572
|
event: t,
|
|
@@ -5573,11 +5581,11 @@ class Rc extends z {
|
|
|
5573
5581
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), this.removeBackgroundListeners();
|
|
5574
5582
|
}
|
|
5575
5583
|
}
|
|
5576
|
-
function
|
|
5577
|
-
const t =
|
|
5584
|
+
function vr(r, e) {
|
|
5585
|
+
const t = en(this._current, r);
|
|
5578
5586
|
return (s) => (this._current = t(s), e(this._current));
|
|
5579
5587
|
}
|
|
5580
|
-
class
|
|
5588
|
+
class yr extends z {
|
|
5581
5589
|
constructor() {
|
|
5582
5590
|
super(...arguments), this.type = "pie", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
5583
5591
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -5608,8 +5616,8 @@ class br extends z {
|
|
|
5608
5616
|
}
|
|
5609
5617
|
render(e = !0) {
|
|
5610
5618
|
const t = this, s = this.getComponentContainer(), n = this.getOptions(), { groupMapsTo: a } = n.data, { valueMapsTo: i } = n.pie, o = this.model.getDisplayData().filter((M) => M[i] > 0), l = this.computeRadius();
|
|
5611
|
-
this.arc =
|
|
5612
|
-
const d =
|
|
5619
|
+
this.arc = $e().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = $e().innerRadius(this.getInnerRadius()).outerRadius(l + Z.hoverArc.outerRadiusOffset);
|
|
5620
|
+
const d = Qs().value((M) => M[i]).sort(y(n, "pie", "sortFunction")).padAngle(Z.padAngle)(o), h = E.appendOrSelect(s, "g.slices").attr("role", U.GROUP).attr("data-name", "slices").selectAll("path.slice").data(d, (M) => M.data[a]);
|
|
5613
5621
|
h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(h).attr(
|
|
5614
5622
|
"class",
|
|
5615
5623
|
(M) => this.model.getColorClassName({
|
|
@@ -5627,7 +5635,7 @@ class br extends z {
|
|
|
5627
5635
|
"aria-label",
|
|
5628
5636
|
(M) => `${M[i]}, ${zt(M.data[i], o, i) + "%"}`
|
|
5629
5637
|
).attrTween("d", function(M) {
|
|
5630
|
-
return
|
|
5638
|
+
return vr.bind(this)(M, t.arc);
|
|
5631
5639
|
});
|
|
5632
5640
|
const m = n.pie.labels.enabled, b = m ? d.filter((M) => M.data[i] > 0) : [], S = E.appendOrSelect(s, "g.labels").attr("role", U.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(b, (M) => M.data[a]);
|
|
5633
5641
|
S.exit().attr("opacity", 0).remove();
|
|
@@ -5639,7 +5647,7 @@ class br extends z {
|
|
|
5639
5647
|
const D = b.length, X = (M.endAngle - M.startAngle) * (180 / Math.PI);
|
|
5640
5648
|
if (G >= D - 2 && X < Z.callout.minSliceDegree) {
|
|
5641
5649
|
let re, W;
|
|
5642
|
-
return M.index === D - 1 ? (re = M.xPosition + Z.callout.offsetX + Z.callout.textMargin + M.textOffsetX, W = M.yPosition - Z.callout.offsetY, M.direction =
|
|
5650
|
+
return M.index === D - 1 ? (re = M.xPosition + Z.callout.offsetX + Z.callout.textMargin + M.textOffsetX, W = M.yPosition - Z.callout.offsetY, M.direction = rt.RIGHT, L.push(M)) : (re = M.xPosition - Z.callout.offsetX - M.textOffsetX - Z.callout.textMargin, W = M.yPosition - Z.callout.offsetY, M.direction = rt.LEFT, L.push(M)), `translate(${re}, ${W})`;
|
|
5643
5651
|
}
|
|
5644
5652
|
return `translate(${M.xPosition}, ${M.yPosition})`;
|
|
5645
5653
|
}), this.renderCallouts(L);
|
|
@@ -5657,7 +5665,7 @@ class br extends z {
|
|
|
5657
5665
|
const n = s.enter().append("g").classed("callout", !0).attr("role", U.GROUP).attr("aria-roledescription", "label callout");
|
|
5658
5666
|
n.merge(s).datum(function(o) {
|
|
5659
5667
|
const { xPosition: l, yPosition: c, direction: d } = o;
|
|
5660
|
-
return d ===
|
|
5668
|
+
return d === rt.RIGHT ? (o.startPos = {
|
|
5661
5669
|
x: l,
|
|
5662
5670
|
y: c + o.textOffsetY
|
|
5663
5671
|
}, o.endPos = {
|
|
@@ -5740,7 +5748,7 @@ class br extends z {
|
|
|
5740
5748
|
return s.pie.labels.enabled ? n + Z.radiusOffset : n;
|
|
5741
5749
|
}
|
|
5742
5750
|
}
|
|
5743
|
-
class
|
|
5751
|
+
class Rc extends yr {
|
|
5744
5752
|
constructor() {
|
|
5745
5753
|
super(...arguments), this.type = "donut", this.renderType = H.SVG;
|
|
5746
5754
|
}
|
|
@@ -5771,7 +5779,7 @@ class _c extends br {
|
|
|
5771
5779
|
s === null && (s = this.model.getDisplayData().reduce((o, l) => o + l[t.pie.valueMapsTo], 0));
|
|
5772
5780
|
const n = parseInt(e.text().replace(/[, ]+/g, ""), 10) || 0;
|
|
5773
5781
|
let a;
|
|
5774
|
-
n % 1 === 0 && s % 1 === 0 ? a =
|
|
5782
|
+
n % 1 === 0 && s % 1 === 0 ? a = tn : a = vs;
|
|
5775
5783
|
const i = a(n, s);
|
|
5776
5784
|
return (o) => {
|
|
5777
5785
|
const { numberFormatter: l } = t.donut.center;
|
|
@@ -5780,7 +5788,7 @@ class _c extends br {
|
|
|
5780
5788
|
}
|
|
5781
5789
|
}
|
|
5782
5790
|
const hs = "4,10 8,6 12,10", us = "12,6 8,10 4,6";
|
|
5783
|
-
class
|
|
5791
|
+
class _c extends z {
|
|
5784
5792
|
constructor() {
|
|
5785
5793
|
super(...arguments), this.type = "gauge", this.renderType = H.SVG;
|
|
5786
5794
|
}
|
|
@@ -5789,7 +5797,7 @@ class Pc extends z {
|
|
|
5789
5797
|
return ((s = this.model.getData().find((n) => n.group === "value")) == null ? void 0 : s.value) ?? null;
|
|
5790
5798
|
}
|
|
5791
5799
|
getValueRatio() {
|
|
5792
|
-
return
|
|
5800
|
+
return $s(this.getValue(), 0, 100) / 100;
|
|
5793
5801
|
}
|
|
5794
5802
|
getDelta() {
|
|
5795
5803
|
var s;
|
|
@@ -5797,7 +5805,7 @@ class Pc extends z {
|
|
|
5797
5805
|
}
|
|
5798
5806
|
getArcRatio() {
|
|
5799
5807
|
const e = this.getOptions();
|
|
5800
|
-
return y(e, "gauge", "type") ===
|
|
5808
|
+
return y(e, "gauge", "type") === ze.FULL ? 1 : 0.5;
|
|
5801
5809
|
}
|
|
5802
5810
|
getArcSize() {
|
|
5803
5811
|
return this.getArcRatio() * Math.PI * 2;
|
|
@@ -5823,7 +5831,7 @@ class Pc extends z {
|
|
|
5823
5831
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5824
5832
|
render(e = !0) {
|
|
5825
5833
|
const t = this.getComponentContainer().attr("width", "100%").attr("height", "100%"), s = this.getOptions(), n = this.getValue(), a = this.getValueRatio(), i = this.getArcSize(), o = this.getStartAngle(), l = a * i, c = o + l, d = o + i, p = this.computeRadius(), h = this.getInnerRadius();
|
|
5826
|
-
this.backgroundArc =
|
|
5834
|
+
this.backgroundArc = $e().innerRadius(h).outerRadius(p).startAngle(c).endAngle(d), this.arc = $e().innerRadius(h).outerRadius(p).startAngle(o).endAngle(c), E.appendOrSelect(t, "path.arc-background").attr("d", this.backgroundArc);
|
|
5827
5835
|
const u = t.selectAll("path.arc-foreground").data([n]);
|
|
5828
5836
|
u.enter().append("path").merge(u).attr(
|
|
5829
5837
|
"class",
|
|
@@ -5845,7 +5853,7 @@ class Pc extends z {
|
|
|
5845
5853
|
drawValueNumber() {
|
|
5846
5854
|
const e = this.getComponentContainer(), t = this.getOptions(), s = y(t, "gauge", "type"), n = this.getValue(), a = this.getDelta(), i = this.computeRadius(), o = y(t, "gauge", "valueFontSize"), l = y(t, "gauge", "deltaFontSize"), c = y(t, "gauge", "numberSpacing"), d = y(t, "gauge", "showPercentageSymbol");
|
|
5847
5855
|
let p = 0;
|
|
5848
|
-
s ===
|
|
5856
|
+
s === ze.FULL && !a ? p = l(i) : s === ze.SEMI && a && (p = -(l(i) + c));
|
|
5849
5857
|
const h = E.appendOrSelect(e, "g.gauge-numbers").attr(
|
|
5850
5858
|
"transform",
|
|
5851
5859
|
`translate(0, ${p})`
|
|
@@ -5924,10 +5932,10 @@ class Pc extends z {
|
|
|
5924
5932
|
const e = this.getOptions(), t = y(e, "gauge", "type"), { width: s, height: n } = E.getSVGElementSize(this.parent, {
|
|
5925
5933
|
useAttrs: !0
|
|
5926
5934
|
});
|
|
5927
|
-
return t ===
|
|
5935
|
+
return t === ze.SEMI ? Math.min(s / 2, n) : Math.min(s / 2, n / 2);
|
|
5928
5936
|
}
|
|
5929
5937
|
}
|
|
5930
|
-
class
|
|
5938
|
+
class Pc extends $t {
|
|
5931
5939
|
constructor() {
|
|
5932
5940
|
super(...arguments), this.type = "grouped-bar", this.renderType = H.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
|
|
5933
5941
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -5953,7 +5961,7 @@ class Vc extends $t {
|
|
|
5953
5961
|
render(e) {
|
|
5954
5962
|
const t = this.model.getDisplayData(this.configs.groups), s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
5955
5963
|
this.setGroupScale();
|
|
5956
|
-
const a = this.getComponentContainer({ withinChartClip: !0 }), i =
|
|
5964
|
+
const a = this.getComponentContainer({ withinChartClip: !0 }), i = kn(
|
|
5957
5965
|
t.map((h) => {
|
|
5958
5966
|
const u = this.services.cartesianScales.getDomainIdentifier(h);
|
|
5959
5967
|
return h[u] && typeof h[u].toString == "function" ? h[u].toString() : h[u];
|
|
@@ -6090,7 +6098,7 @@ class Vc extends $t {
|
|
|
6090
6098
|
this.groupScale = _t().domain(e).rangeRound([0, this.getGroupWidth()]);
|
|
6091
6099
|
}
|
|
6092
6100
|
}
|
|
6093
|
-
class
|
|
6101
|
+
class Vc extends z {
|
|
6094
6102
|
constructor() {
|
|
6095
6103
|
super(...arguments), this.type = "heatmap", this.renderType = H.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
|
|
6096
6104
|
x: 0,
|
|
@@ -6116,7 +6124,7 @@ class Bc extends z {
|
|
|
6116
6124
|
}
|
|
6117
6125
|
p += m, h = m < h ? m : h, u = m > u ? m : u;
|
|
6118
6126
|
}
|
|
6119
|
-
})), l(s) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(s)}, ${
|
|
6127
|
+
})), l(s) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(s)}, ${ht(c.range())})`) : c(s) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${ht(l.range())},${c(s)})`), this.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
6120
6128
|
event: t.event,
|
|
6121
6129
|
hoveredElement: x(e.detail.element),
|
|
6122
6130
|
items: [
|
|
@@ -6195,14 +6203,14 @@ class Bc extends z {
|
|
|
6195
6203
|
}
|
|
6196
6204
|
determineDividerStatus() {
|
|
6197
6205
|
const e = y(this.getOptions(), "heatmap", "divider", "state");
|
|
6198
|
-
return e !==
|
|
6206
|
+
return e !== ot.OFF && (e === ot.AUTO && Ft.minCellDividerDimension <= this.xBandwidth && Ft.minCellDividerDimension <= this.yBandwidth || e === ot.ON);
|
|
6199
6207
|
}
|
|
6200
6208
|
addEventListener() {
|
|
6201
6209
|
const e = this, { cartesianScales: t } = this.services, s = this.getOptions(), n = Q(s, "tooltip.totalLabel"), a = t.getDomainIdentifier(), i = t.getRangeIdentifier(), o = t.getDomainLabel(), l = t.getRangeLabel();
|
|
6202
6210
|
this.parent.selectAll("g.cell").on("mouseover", function(c, d) {
|
|
6203
6211
|
const p = x(this), h = p.select("rect.heat");
|
|
6204
6212
|
if (!h.classed("null-state")) {
|
|
6205
|
-
const g =
|
|
6213
|
+
const g = Ve(p.attr("transform"));
|
|
6206
6214
|
e.parent.select("g.cell-highlight").attr(
|
|
6207
6215
|
"transform",
|
|
6208
6216
|
`translate(${g.x + e.translationUnits.x}, ${g.y + e.translationUnits.y})`
|
|
@@ -6262,7 +6270,7 @@ class Bc extends z {
|
|
|
6262
6270
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleAxisOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
|
|
6263
6271
|
}
|
|
6264
6272
|
}
|
|
6265
|
-
class
|
|
6273
|
+
class Bc extends z {
|
|
6266
6274
|
constructor() {
|
|
6267
6275
|
super(...arguments), this.type = "histogram", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
6268
6276
|
const { hoveredElement: t } = e.detail, s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
@@ -6356,7 +6364,7 @@ class $c extends z {
|
|
|
6356
6364
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6357
6365
|
}
|
|
6358
6366
|
}
|
|
6359
|
-
class
|
|
6367
|
+
class $c extends Vt {
|
|
6360
6368
|
constructor() {
|
|
6361
6369
|
super(...arguments), this.type = "lollipop", this.renderType = H.SVG, this.handleScatterOnHover = (e) => {
|
|
6362
6370
|
const t = e.detail, s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
@@ -6428,7 +6436,7 @@ class Gc extends Vt {
|
|
|
6428
6436
|
);
|
|
6429
6437
|
}
|
|
6430
6438
|
}
|
|
6431
|
-
class
|
|
6439
|
+
class Gc extends z {
|
|
6432
6440
|
constructor() {
|
|
6433
6441
|
super(...arguments), this.type = "meter", this.renderType = H.SVG;
|
|
6434
6442
|
}
|
|
@@ -6464,10 +6472,7 @@ class Nc extends z {
|
|
|
6464
6472
|
u || (a ? se.height.proportional : se.height.default)
|
|
6465
6473
|
);
|
|
6466
6474
|
const g = s.selectAll("rect.value").data(h), m = o != null && !t.model.isUserProvidedColorScaleValid() && !a ? `value status--${o}` : "value";
|
|
6467
|
-
g.enter().append("rect").classed("value", !0).merge(g).attr("x", (O) => O.x).attr("y", 0).attr("height", () =>
|
|
6468
|
-
const O = y(n, "meter", "height");
|
|
6469
|
-
return O || (a ? se.height.proportional : se.height.default);
|
|
6470
|
-
}).attr(
|
|
6475
|
+
g.enter().append("rect").classed("value", !0).merge(g).attr("x", (O) => O.x).attr("y", 0).attr("height", () => u || (a ? se.height.proportional : se.height.default)).attr(
|
|
6471
6476
|
"class",
|
|
6472
6477
|
(O) => this.model.getColorClassName({
|
|
6473
6478
|
classNameTypes: [$.FILL],
|
|
@@ -6485,10 +6490,7 @@ class Nc extends z {
|
|
|
6485
6490
|
let v = b;
|
|
6486
6491
|
b !== null && (b > d ? v = d : b < i[0].value && (v = i[0].value > d ? d : i[0].value));
|
|
6487
6492
|
const S = s.selectAll("line.peak").data(v == null ? [] : [v]);
|
|
6488
|
-
S.enter().append("line").classed("peak", !0).merge(S).attr("y1", 0).attr("y2", () =>
|
|
6489
|
-
const O = y(n, "meter", "height");
|
|
6490
|
-
return O || (a ? se.height.proportional : se.height.default);
|
|
6491
|
-
}).transition().call(
|
|
6493
|
+
S.enter().append("line").classed("peak", !0).merge(S).attr("y1", 0).attr("y2", () => u || (a ? se.height.proportional : se.height.default)).transition().call(
|
|
6492
6494
|
(O) => this.services.transitions.setupTransition({
|
|
6493
6495
|
transition: O,
|
|
6494
6496
|
name: "peak-line-update",
|
|
@@ -6545,20 +6547,20 @@ class Nc extends z {
|
|
|
6545
6547
|
this.parent.selectAll("rect.value").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("click", null);
|
|
6546
6548
|
}
|
|
6547
6549
|
}
|
|
6548
|
-
class
|
|
6550
|
+
class Nc extends z {
|
|
6549
6551
|
constructor() {
|
|
6550
6552
|
super(...arguments), this.type = "radar", this.renderType = H.SVG, this.getLabelDimensions = (e) => {
|
|
6551
6553
|
const t = E.appendOrSelect(this.getComponentContainer(), "g.tmp-tick"), s = E.appendOrSelect(t, "text").text(e), { width: n, height: a } = E.getSVGElementSize(s.node(), { useBBox: !0 });
|
|
6552
6554
|
return t.remove(), { width: n, height: a };
|
|
6553
6555
|
}, this.normalizeFlatData = (e) => {
|
|
6554
|
-
const t = this.getOptions(), { angle: s, value: n } = y(t, "radar", "axes"), a = y(t, "data", "groupMapsTo"), i =
|
|
6556
|
+
const t = this.getOptions(), { angle: s, value: n } = y(t, "radar", "axes"), a = y(t, "data", "groupMapsTo"), i = Va(
|
|
6555
6557
|
this.uniqueKeys.map((o) => this.uniqueGroups.map((l) => ({
|
|
6556
6558
|
[s]: o,
|
|
6557
6559
|
[a]: l,
|
|
6558
6560
|
[n]: null
|
|
6559
6561
|
})))
|
|
6560
6562
|
);
|
|
6561
|
-
return
|
|
6563
|
+
return De(i, e);
|
|
6562
6564
|
}, this.normalizeGroupedData = (e) => {
|
|
6563
6565
|
const t = this.getOptions(), { angle: s, value: n } = y(t, "radar", "axes"), a = y(t, "data", "groupMapsTo");
|
|
6564
6566
|
return e.map(({ name: i, data: o }) => {
|
|
@@ -6567,7 +6569,7 @@ class Hc extends z {
|
|
|
6567
6569
|
[s]: c,
|
|
6568
6570
|
[n]: null
|
|
6569
6571
|
}));
|
|
6570
|
-
return { name: i, data:
|
|
6572
|
+
return { name: i, data: De(l, o) };
|
|
6571
6573
|
});
|
|
6572
6574
|
}, this.handleLegendOnHover = (e) => {
|
|
6573
6575
|
const { hoveredElement: t } = e.detail;
|
|
@@ -6598,11 +6600,11 @@ class Hc extends z {
|
|
|
6598
6600
|
const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), w = (Math.min(s, n) - S) / 2;
|
|
6599
6601
|
if (w <= 0)
|
|
6600
6602
|
return;
|
|
6601
|
-
const T = _t().domain(this.fullDataNormalized.map((C) => C[d])).range([0, 2 * Math.PI].map((C) => C - Math.PI / 2)), k =
|
|
6603
|
+
const T = _t().domain(this.fullDataNormalized.map((C) => C[d])).range([0, 2 * Math.PI].map((C) => C - Math.PI / 2)), k = ht(this.fullDataNormalized.map((C) => C[p])), _ = Oe().domain([
|
|
6602
6604
|
k >= 0 ? 0 : k,
|
|
6603
6605
|
Nt(this.fullDataNormalized.map((C) => C[p]))
|
|
6604
|
-
]).range([m, w]).nice(g), F = _.ticks(g), V = (C) => this.model.getFillColor(C), A =
|
|
6605
|
-
const I = this.getLabelDimensions(C).width, R =
|
|
6606
|
+
]).range([m, w]).nice(g), F = _.ticks(g), V = (C) => this.model.getFillColor(C), A = sn().angle((C) => T(C[d]) + Math.PI / 2).radius((C) => _(C[p])).curve(nn), M = this.uniqueKeys.map((C) => {
|
|
6607
|
+
const I = this.getLabelDimensions(C).width, R = _n(
|
|
6606
6608
|
T(C),
|
|
6607
6609
|
w
|
|
6608
6610
|
);
|
|
@@ -6778,7 +6780,7 @@ class Hc extends z {
|
|
|
6778
6780
|
(C) => C.append("rect"),
|
|
6779
6781
|
(C) => C,
|
|
6780
6782
|
(C) => C.remove()
|
|
6781
|
-
).attr("x", D.x).attr("y", D.y - b / 2).attr("width", _.range()[1]).attr("height", b).style("fill", "red").style("fill-opacity", 0).attr("transform", (C) => `rotate(${
|
|
6783
|
+
).attr("x", D.x).attr("y", D.y - b / 2).attr("width", _.range()[1]).attr("height", b).style("fill", "red").style("fill-opacity", 0).attr("transform", (C) => `rotate(${Pn(T(C))}, ${D.x}, ${D.y})`), E.appendOrSelect(t, "g.y-labels").attr("role", U.GROUP).selectAll("text").data(Qe(F)).join(
|
|
6782
6784
|
(C) => C.append("text").attr("opacity", 0).text((I) => I).attr(
|
|
6783
6785
|
"x",
|
|
6784
6786
|
(I) => Y(-Math.PI / 2, _(I), D).x + u
|
|
@@ -6885,7 +6887,7 @@ class Hc extends z {
|
|
|
6885
6887
|
});
|
|
6886
6888
|
}
|
|
6887
6889
|
}
|
|
6888
|
-
class
|
|
6890
|
+
class Hc extends $t {
|
|
6889
6891
|
constructor() {
|
|
6890
6892
|
super(...arguments), this.type = "simple-bar", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
6891
6893
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -6981,7 +6983,7 @@ class Uc extends $t {
|
|
|
6981
6983
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6982
6984
|
}
|
|
6983
6985
|
}
|
|
6984
|
-
class
|
|
6986
|
+
class Uc extends lr {
|
|
6985
6987
|
constructor() {
|
|
6986
6988
|
super(...arguments), this.type = "skeleton-lines";
|
|
6987
6989
|
}
|
|
@@ -7007,7 +7009,7 @@ class zc extends cr {
|
|
|
7007
7009
|
this.backdrop = E.appendOrSelect(e, "svg.chart-skeleton.DAII"), E.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
|
|
7008
7010
|
}
|
|
7009
7011
|
}
|
|
7010
|
-
class
|
|
7012
|
+
class zc extends z {
|
|
7011
7013
|
constructor() {
|
|
7012
7014
|
super(...arguments), this.type = "area-stacked", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7013
7015
|
const { hoveredElement: t } = e.detail, s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
@@ -7056,7 +7058,7 @@ class Fc extends z {
|
|
|
7056
7058
|
).attr("opacity", fe.opacity.selected).attr("d", this.areaGenerator);
|
|
7057
7059
|
}
|
|
7058
7060
|
}
|
|
7059
|
-
class
|
|
7061
|
+
class Fc extends $t {
|
|
7060
7062
|
constructor() {
|
|
7061
7063
|
super(...arguments), this.type = "stacked-bar", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7062
7064
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.model.getOptions().data;
|
|
@@ -7184,7 +7186,7 @@ class Wc extends $t {
|
|
|
7184
7186
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7185
7187
|
}
|
|
7186
7188
|
}
|
|
7187
|
-
class
|
|
7189
|
+
class Wc extends Vt {
|
|
7188
7190
|
constructor() {
|
|
7189
7191
|
super(...arguments), this.type = "scatter-stacked", this.renderType = H.SVG;
|
|
7190
7192
|
}
|
|
@@ -7233,7 +7235,7 @@ class jc extends Vt {
|
|
|
7233
7235
|
}
|
|
7234
7236
|
}
|
|
7235
7237
|
const Ae = 6;
|
|
7236
|
-
class
|
|
7238
|
+
class jc extends z {
|
|
7237
7239
|
constructor() {
|
|
7238
7240
|
super(...arguments), this.type = "tree", this.renderType = H.SVG;
|
|
7239
7241
|
}
|
|
@@ -7314,13 +7316,13 @@ class Zc extends z {
|
|
|
7314
7316
|
}), h.eachBefore((N) => {
|
|
7315
7317
|
N.x0 = N.x, N.y0 = N.y;
|
|
7316
7318
|
});
|
|
7317
|
-
}, b = h.descendants(), v = b[b.length - 1].depth, S = y(a, "tree", "type") ===
|
|
7319
|
+
}, b = h.descendants(), v = b[b.length - 1].depth, S = y(a, "tree", "type") === Rn.DENDROGRAM ? an().size([
|
|
7318
7320
|
n,
|
|
7319
7321
|
s - d - v * Ae - l
|
|
7320
|
-
]) :
|
|
7322
|
+
]) : rn().nodeSize([u, g]).size([
|
|
7321
7323
|
n,
|
|
7322
7324
|
s - d - v * Ae - l
|
|
7323
|
-
]), O =
|
|
7325
|
+
]), O = on().x((T) => T.y).y((T) => T.x);
|
|
7324
7326
|
h.x0 = g / 2, h.y0 = 0, h.descendants().forEach((T, k) => {
|
|
7325
7327
|
T.id = k, T._children = T.children;
|
|
7326
7328
|
}), S(h), t.attr("viewBox", [-p.left, -p.top, s, u]).style("user-select", "none");
|
|
@@ -7328,159 +7330,159 @@ class Zc extends z {
|
|
|
7328
7330
|
m(h);
|
|
7329
7331
|
}
|
|
7330
7332
|
}
|
|
7331
|
-
var
|
|
7332
|
-
10:
|
|
7333
|
-
20:
|
|
7334
|
-
30:
|
|
7335
|
-
40:
|
|
7336
|
-
50:
|
|
7337
|
-
60:
|
|
7338
|
-
70:
|
|
7339
|
-
80:
|
|
7340
|
-
90:
|
|
7341
|
-
100:
|
|
7342
|
-
},
|
|
7343
|
-
10:
|
|
7344
|
-
20:
|
|
7345
|
-
30:
|
|
7346
|
-
40:
|
|
7347
|
-
50:
|
|
7348
|
-
60:
|
|
7349
|
-
70:
|
|
7350
|
-
80:
|
|
7351
|
-
90:
|
|
7352
|
-
100:
|
|
7353
|
-
},
|
|
7354
|
-
10:
|
|
7355
|
-
20:
|
|
7356
|
-
30:
|
|
7357
|
-
40:
|
|
7358
|
-
50:
|
|
7359
|
-
60:
|
|
7360
|
-
70:
|
|
7361
|
-
80:
|
|
7362
|
-
90:
|
|
7363
|
-
100:
|
|
7364
|
-
},
|
|
7365
|
-
10:
|
|
7366
|
-
20:
|
|
7367
|
-
30:
|
|
7368
|
-
40:
|
|
7369
|
-
50:
|
|
7370
|
-
60:
|
|
7371
|
-
70:
|
|
7372
|
-
80:
|
|
7373
|
-
90:
|
|
7374
|
-
100:
|
|
7375
|
-
},
|
|
7376
|
-
10:
|
|
7377
|
-
20:
|
|
7378
|
-
30:
|
|
7379
|
-
40:
|
|
7380
|
-
50:
|
|
7381
|
-
60:
|
|
7382
|
-
70:
|
|
7383
|
-
80:
|
|
7384
|
-
90:
|
|
7385
|
-
100:
|
|
7386
|
-
},
|
|
7387
|
-
10:
|
|
7388
|
-
20:
|
|
7389
|
-
30:
|
|
7390
|
-
40:
|
|
7391
|
-
50:
|
|
7392
|
-
60:
|
|
7393
|
-
70:
|
|
7394
|
-
80:
|
|
7395
|
-
90:
|
|
7396
|
-
100:
|
|
7397
|
-
},
|
|
7398
|
-
10:
|
|
7399
|
-
20:
|
|
7400
|
-
30:
|
|
7401
|
-
40:
|
|
7402
|
-
50:
|
|
7403
|
-
60:
|
|
7404
|
-
70:
|
|
7405
|
-
80:
|
|
7406
|
-
90:
|
|
7407
|
-
100:
|
|
7408
|
-
},
|
|
7409
|
-
10:
|
|
7410
|
-
20:
|
|
7411
|
-
30:
|
|
7412
|
-
40:
|
|
7413
|
-
50:
|
|
7414
|
-
60:
|
|
7415
|
-
70:
|
|
7416
|
-
80:
|
|
7417
|
-
90:
|
|
7418
|
-
100:
|
|
7419
|
-
},
|
|
7420
|
-
10:
|
|
7421
|
-
20:
|
|
7422
|
-
30:
|
|
7423
|
-
40:
|
|
7424
|
-
50:
|
|
7425
|
-
60:
|
|
7426
|
-
70:
|
|
7427
|
-
80:
|
|
7428
|
-
90:
|
|
7429
|
-
100:
|
|
7430
|
-
},
|
|
7431
|
-
10:
|
|
7432
|
-
20:
|
|
7433
|
-
30:
|
|
7434
|
-
40:
|
|
7435
|
-
50:
|
|
7436
|
-
60:
|
|
7437
|
-
70:
|
|
7438
|
-
80:
|
|
7439
|
-
90:
|
|
7440
|
-
100:
|
|
7441
|
-
},
|
|
7442
|
-
10:
|
|
7443
|
-
20:
|
|
7444
|
-
30:
|
|
7445
|
-
40:
|
|
7446
|
-
50:
|
|
7447
|
-
60:
|
|
7448
|
-
70:
|
|
7449
|
-
80:
|
|
7450
|
-
90:
|
|
7451
|
-
100:
|
|
7452
|
-
},
|
|
7453
|
-
10:
|
|
7454
|
-
20:
|
|
7455
|
-
30:
|
|
7456
|
-
40:
|
|
7457
|
-
50:
|
|
7458
|
-
60:
|
|
7459
|
-
70:
|
|
7460
|
-
80:
|
|
7461
|
-
90:
|
|
7462
|
-
100:
|
|
7333
|
+
var br = "#000000", Er = "#ffffff", Sr = "#fcf4d6", xr = "#fddc69", Or = "#f1c21b", Tr = "#d2a106", Lr = "#b28600", wr = "#8e6a00", Mr = "#684e00", Ar = "#483700", Cr = "#302400", kr = "#1c1500", Ir = {
|
|
7334
|
+
10: Sr,
|
|
7335
|
+
20: xr,
|
|
7336
|
+
30: Or,
|
|
7337
|
+
40: Tr,
|
|
7338
|
+
50: Lr,
|
|
7339
|
+
60: wr,
|
|
7340
|
+
70: Mr,
|
|
7341
|
+
80: Ar,
|
|
7342
|
+
90: Cr,
|
|
7343
|
+
100: kr
|
|
7344
|
+
}, Dr = "#fff2e8", Rr = "#ffd9be", _r = "#ffb784", Pr = "#ff832b", Vr = "#eb6200", Br = "#ba4e00", $r = "#8a3800", Gr = "#5e2900", Nr = "#3e1a00", Hr = "#231000", Ur = {
|
|
7345
|
+
10: Dr,
|
|
7346
|
+
20: Rr,
|
|
7347
|
+
30: _r,
|
|
7348
|
+
40: Pr,
|
|
7349
|
+
50: Vr,
|
|
7350
|
+
60: Br,
|
|
7351
|
+
70: $r,
|
|
7352
|
+
80: Gr,
|
|
7353
|
+
90: Nr,
|
|
7354
|
+
100: Hr
|
|
7355
|
+
}, zr = "#fff1f1", Fr = "#ffd7d9", Wr = "#ffb3b8", jr = "#ff8389", Zr = "#fa4d56", Xr = "#da1e28", Yr = "#a2191f", qr = "#750e13", Kr = "#520408", Jr = "#2d0709", Qr = {
|
|
7356
|
+
10: zr,
|
|
7357
|
+
20: Fr,
|
|
7358
|
+
30: Wr,
|
|
7359
|
+
40: jr,
|
|
7360
|
+
50: Zr,
|
|
7361
|
+
60: Xr,
|
|
7362
|
+
70: Yr,
|
|
7363
|
+
80: qr,
|
|
7364
|
+
90: Kr,
|
|
7365
|
+
100: Jr
|
|
7366
|
+
}, eo = "#fff0f7", to = "#ffd6e8", so = "#ffafd2", no = "#ff7eb6", ao = "#ee5396", io = "#d02670", ro = "#9f1853", oo = "#740937", lo = "#510224", co = "#2a0a18", ho = {
|
|
7367
|
+
10: eo,
|
|
7368
|
+
20: to,
|
|
7369
|
+
30: so,
|
|
7370
|
+
40: no,
|
|
7371
|
+
50: ao,
|
|
7372
|
+
60: io,
|
|
7373
|
+
70: ro,
|
|
7374
|
+
80: oo,
|
|
7375
|
+
90: lo,
|
|
7376
|
+
100: co
|
|
7377
|
+
}, uo = "#f6f2ff", po = "#e8daff", go = "#d4bbff", mo = "#be95ff", fo = "#a56eff", vo = "#8a3ffc", yo = "#6929c4", bo = "#491d8b", Eo = "#31135e", So = "#1c0f30", xo = {
|
|
7378
|
+
10: uo,
|
|
7379
|
+
20: po,
|
|
7380
|
+
30: go,
|
|
7381
|
+
40: mo,
|
|
7382
|
+
50: fo,
|
|
7383
|
+
60: vo,
|
|
7384
|
+
70: yo,
|
|
7385
|
+
80: bo,
|
|
7386
|
+
90: Eo,
|
|
7387
|
+
100: So
|
|
7388
|
+
}, Oo = "#edf5ff", To = "#d0e2ff", Lo = "#a6c8ff", wo = "#78a9ff", Mo = "#4589ff", Ao = "#0f62fe", Co = "#0043ce", ko = "#002d9c", Io = "#001d6c", Do = "#001141", Ro = {
|
|
7389
|
+
10: Oo,
|
|
7390
|
+
20: To,
|
|
7391
|
+
30: Lo,
|
|
7392
|
+
40: wo,
|
|
7393
|
+
50: Mo,
|
|
7394
|
+
60: Ao,
|
|
7395
|
+
70: Co,
|
|
7396
|
+
80: ko,
|
|
7397
|
+
90: Io,
|
|
7398
|
+
100: Do
|
|
7399
|
+
}, _o = "#e5f6ff", Po = "#bae6ff", Vo = "#82cfff", Bo = "#33b1ff", $o = "#1192e8", Go = "#0072c3", No = "#00539a", Ho = "#003a6d", Uo = "#012749", zo = "#061727", Fo = {
|
|
7400
|
+
10: _o,
|
|
7401
|
+
20: Po,
|
|
7402
|
+
30: Vo,
|
|
7403
|
+
40: Bo,
|
|
7404
|
+
50: $o,
|
|
7405
|
+
60: Go,
|
|
7406
|
+
70: No,
|
|
7407
|
+
80: Ho,
|
|
7408
|
+
90: Uo,
|
|
7409
|
+
100: zo
|
|
7410
|
+
}, Wo = "#d9fbfb", jo = "#9ef0f0", Zo = "#3ddbd9", Xo = "#08bdba", Yo = "#009d9a", qo = "#007d79", Ko = "#005d5d", Jo = "#004144", Qo = "#022b30", el = "#081a1c", tl = {
|
|
7411
|
+
10: Wo,
|
|
7412
|
+
20: jo,
|
|
7413
|
+
30: Zo,
|
|
7414
|
+
40: Xo,
|
|
7415
|
+
50: Yo,
|
|
7416
|
+
60: qo,
|
|
7417
|
+
70: Ko,
|
|
7418
|
+
80: Jo,
|
|
7419
|
+
90: Qo,
|
|
7420
|
+
100: el
|
|
7421
|
+
}, sl = "#defbe6", nl = "#a7f0ba", al = "#6fdc8c", il = "#42be65", rl = "#24a148", ol = "#198038", ll = "#0e6027", cl = "#044317", dl = "#022d0d", hl = "#071908", ul = {
|
|
7422
|
+
10: sl,
|
|
7423
|
+
20: nl,
|
|
7424
|
+
30: al,
|
|
7425
|
+
40: il,
|
|
7426
|
+
50: rl,
|
|
7427
|
+
60: ol,
|
|
7428
|
+
70: ll,
|
|
7429
|
+
80: cl,
|
|
7430
|
+
90: dl,
|
|
7431
|
+
100: hl
|
|
7432
|
+
}, pl = "#f2f4f8", gl = "#dde1e6", ml = "#c1c7cd", fl = "#a2a9b0", vl = "#878d96", yl = "#697077", bl = "#4d5358", El = "#343a3f", Sl = "#21272a", xl = "#121619", Ol = {
|
|
7433
|
+
10: pl,
|
|
7434
|
+
20: gl,
|
|
7435
|
+
30: ml,
|
|
7436
|
+
40: fl,
|
|
7437
|
+
50: vl,
|
|
7438
|
+
60: yl,
|
|
7439
|
+
70: bl,
|
|
7440
|
+
80: El,
|
|
7441
|
+
90: Sl,
|
|
7442
|
+
100: xl
|
|
7443
|
+
}, Tl = "#f4f4f4", Ll = "#e0e0e0", wl = "#c6c6c6", Ml = "#a8a8a8", Al = "#8d8d8d", Cl = "#6f6f6f", kl = "#525252", Il = "#393939", Dl = "#262626", Rl = "#161616", _l = {
|
|
7444
|
+
10: Tl,
|
|
7445
|
+
20: Ll,
|
|
7446
|
+
30: wl,
|
|
7447
|
+
40: Ml,
|
|
7448
|
+
50: Al,
|
|
7449
|
+
60: Cl,
|
|
7450
|
+
70: kl,
|
|
7451
|
+
80: Il,
|
|
7452
|
+
90: Dl,
|
|
7453
|
+
100: Rl
|
|
7454
|
+
}, Pl = "#f7f3f2", Vl = "#e5e0df", Bl = "#cac5c4", $l = "#ada8a8", Gl = "#8f8b8b", Nl = "#726e6e", Hl = "#565151", Ul = "#3c3838", zl = "#272525", Fl = "#171414", Wl = {
|
|
7455
|
+
10: Pl,
|
|
7456
|
+
20: Vl,
|
|
7457
|
+
30: Bl,
|
|
7458
|
+
40: $l,
|
|
7459
|
+
50: Gl,
|
|
7460
|
+
60: Nl,
|
|
7461
|
+
70: Hl,
|
|
7462
|
+
80: Ul,
|
|
7463
|
+
90: zl,
|
|
7464
|
+
100: Fl
|
|
7463
7465
|
}, ps = {
|
|
7464
7466
|
black: {
|
|
7465
|
-
100:
|
|
7467
|
+
100: br
|
|
7466
7468
|
},
|
|
7467
|
-
blue:
|
|
7468
|
-
coolGray:
|
|
7469
|
-
cyan:
|
|
7470
|
-
gray:
|
|
7471
|
-
green:
|
|
7472
|
-
magenta:
|
|
7473
|
-
orange:
|
|
7474
|
-
purple:
|
|
7475
|
-
red:
|
|
7476
|
-
teal:
|
|
7477
|
-
warmGray:
|
|
7469
|
+
blue: Ro,
|
|
7470
|
+
coolGray: Ol,
|
|
7471
|
+
cyan: Fo,
|
|
7472
|
+
gray: _l,
|
|
7473
|
+
green: ul,
|
|
7474
|
+
magenta: ho,
|
|
7475
|
+
orange: Ur,
|
|
7476
|
+
purple: xo,
|
|
7477
|
+
red: Qr,
|
|
7478
|
+
teal: tl,
|
|
7479
|
+
warmGray: Wl,
|
|
7478
7480
|
white: {
|
|
7479
|
-
0:
|
|
7481
|
+
0: Er
|
|
7480
7482
|
},
|
|
7481
|
-
yellow:
|
|
7483
|
+
yellow: Ir
|
|
7482
7484
|
};
|
|
7483
|
-
const
|
|
7485
|
+
const jl = (r) => {
|
|
7484
7486
|
if (!r)
|
|
7485
7487
|
return null;
|
|
7486
7488
|
for (const e of Object.keys(ps)) {
|
|
@@ -7495,14 +7497,14 @@ const Zl = (r) => {
|
|
|
7495
7497
|
"fill"
|
|
7496
7498
|
), t = bs(e);
|
|
7497
7499
|
let s;
|
|
7498
|
-
if (t && (s =
|
|
7500
|
+
if (t && (s = jl(t ? t.hex() : null)), s == null) {
|
|
7499
7501
|
const n = ys(t).l;
|
|
7500
7502
|
s = Math.abs(n * 100 - 100);
|
|
7501
7503
|
}
|
|
7502
7504
|
return s > 50 ? "white" : "black";
|
|
7503
7505
|
};
|
|
7504
|
-
let
|
|
7505
|
-
class
|
|
7506
|
+
let Zl = 0;
|
|
7507
|
+
class Zc extends z {
|
|
7506
7508
|
constructor() {
|
|
7507
7509
|
super(...arguments), this.type = "treemap", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7508
7510
|
const { hoveredElement: t } = e.detail;
|
|
@@ -7536,11 +7538,11 @@ class Xc extends z {
|
|
|
7536
7538
|
}), l = Pt({
|
|
7537
7539
|
name: n.title || "Treemap",
|
|
7538
7540
|
children: s
|
|
7539
|
-
}).sum((m) => m.value).sort((m, b) => b.value - m.value), c =
|
|
7541
|
+
}).sum((m) => m.value).sort((m, b) => b.value - m.value), c = ln().size([i, o]).paddingInner(1).paddingOuter(0).round(!0)(
|
|
7540
7542
|
l
|
|
7541
7543
|
), d = t.selectAll("g[data-name='leaf']").data(c.leaves(), (m) => m.data.name);
|
|
7542
7544
|
d.exit().attr("opacity", 0).remove();
|
|
7543
|
-
const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () =>
|
|
7545
|
+
const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () => Zl++).merge(d);
|
|
7544
7546
|
h.attr("data-name", "leaf").transition().call(
|
|
7545
7547
|
(m) => this.services.transitions.setupTransition({
|
|
7546
7548
|
transition: m,
|
|
@@ -7684,7 +7686,7 @@ class Xc extends z {
|
|
|
7684
7686
|
});
|
|
7685
7687
|
}
|
|
7686
7688
|
}
|
|
7687
|
-
class
|
|
7689
|
+
class Xc extends z {
|
|
7688
7690
|
constructor() {
|
|
7689
7691
|
super(...arguments), this.type = "wordcloud", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7690
7692
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -7713,7 +7715,7 @@ class Yc extends z {
|
|
|
7713
7715
|
});
|
|
7714
7716
|
if (d === 0 || p === 0)
|
|
7715
7717
|
return;
|
|
7716
|
-
const h =
|
|
7718
|
+
const h = Hn().size([d, p]).words(
|
|
7717
7719
|
n.map(function(g) {
|
|
7718
7720
|
const m = g[o];
|
|
7719
7721
|
if (typeof g[o] != "number")
|
|
@@ -7753,7 +7755,7 @@ class Yc extends z {
|
|
|
7753
7755
|
this.addEventListeners();
|
|
7754
7756
|
}
|
|
7755
7757
|
getFontSizeScale(e) {
|
|
7756
|
-
const t = this.getOptions(), { fontSizeMapsTo: s } = t.wordCloud, n = e.map((l) => l[s]).filter((l) => l), a = E.getHTMLElementSize(this.services.domUtils.getMainContainer()), i = n.length > 0, o = i ?
|
|
7758
|
+
const t = this.getOptions(), { fontSizeMapsTo: s } = t.wordCloud, n = e.map((l) => l[s]).filter((l) => l), a = E.getHTMLElementSize(this.services.domUtils.getMainContainer()), i = n.length > 0, o = i ? Qe(n) : [1, 1];
|
|
7757
7759
|
return Oe().domain(o).range(i ? t.wordCloud.fontSizeRange(a, e) : [4, 4]);
|
|
7758
7760
|
}
|
|
7759
7761
|
addEventListeners() {
|
|
@@ -7822,7 +7824,7 @@ class Yc extends z {
|
|
|
7822
7824
|
});
|
|
7823
7825
|
}
|
|
7824
7826
|
}
|
|
7825
|
-
class
|
|
7827
|
+
class Xl extends z {
|
|
7826
7828
|
constructor() {
|
|
7827
7829
|
super(...arguments), this.type = "geo", this.renderType = H.SVG;
|
|
7828
7830
|
}
|
|
@@ -7836,11 +7838,11 @@ class Yl extends z {
|
|
|
7836
7838
|
Object.keys(i).forEach((v) => {
|
|
7837
7839
|
typeof i[v].value == "number" ? o[v] = i[v] : l[v] = i[v];
|
|
7838
7840
|
});
|
|
7839
|
-
const c =
|
|
7841
|
+
const c = mr(a, Object.values(l)), d = ur(a, {
|
|
7840
7842
|
// We need to specify that we are converting geometry collections
|
|
7841
7843
|
type: "GeometryCollection",
|
|
7842
7844
|
geometries: Object.values(o)
|
|
7843
|
-
}), p = n.fitSize([t, s], d), h =
|
|
7845
|
+
}), p = n.fitSize([t, s], d), h = cn().projection(p);
|
|
7844
7846
|
E.appendOrSelect(e, "g.geo").selectAll("path").data(d.features).join("path").attr("d", h);
|
|
7845
7847
|
const g = this.services.domUtils.generateElementIDString("geo-pattern-stripes"), m = E.appendOrSelect(e, "defs");
|
|
7846
7848
|
E.appendOrSelect(m, "pattern").attr("id", g).attr("width", 5).attr("height", 10).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("path").classed("pattern-fill", !0).attr(
|
|
@@ -7865,25 +7867,25 @@ class Yl extends z {
|
|
|
7865
7867
|
let e = null;
|
|
7866
7868
|
switch (y(this.getOptions(), "thematic", "projection")) {
|
|
7867
7869
|
case xe.geoEqualEarth:
|
|
7868
|
-
e =
|
|
7870
|
+
e = fn();
|
|
7869
7871
|
break;
|
|
7870
7872
|
case xe.geoAlbers:
|
|
7871
|
-
e =
|
|
7873
|
+
e = mn();
|
|
7872
7874
|
break;
|
|
7873
7875
|
case xe.geoConicEqualArea:
|
|
7874
|
-
e =
|
|
7876
|
+
e = gn();
|
|
7875
7877
|
break;
|
|
7876
7878
|
case xe.geoConicEquidistant:
|
|
7877
|
-
e =
|
|
7879
|
+
e = pn();
|
|
7878
7880
|
break;
|
|
7879
7881
|
case xe.geoEquirectangular:
|
|
7880
|
-
e =
|
|
7882
|
+
e = un();
|
|
7881
7883
|
break;
|
|
7882
7884
|
case xe.geoMercator:
|
|
7883
|
-
e =
|
|
7885
|
+
e = hn();
|
|
7884
7886
|
break;
|
|
7885
7887
|
case xe.geoNaturalEarth1:
|
|
7886
|
-
e =
|
|
7888
|
+
e = dn();
|
|
7887
7889
|
break;
|
|
7888
7890
|
default:
|
|
7889
7891
|
throw new Error("Projection is not supported.");
|
|
@@ -7891,7 +7893,7 @@ class Yl extends z {
|
|
|
7891
7893
|
return e;
|
|
7892
7894
|
}
|
|
7893
7895
|
}
|
|
7894
|
-
class
|
|
7896
|
+
class Yc extends Xl {
|
|
7895
7897
|
constructor() {
|
|
7896
7898
|
super(...arguments), this.type = "choropleth";
|
|
7897
7899
|
}
|
|
@@ -7910,11 +7912,11 @@ class qc extends Yl {
|
|
|
7910
7912
|
const e = this, t = this.model.getCombinedData();
|
|
7911
7913
|
this.parent.selectAll("path.border").on("mouseover", function(s, n) {
|
|
7912
7914
|
const a = x(this);
|
|
7913
|
-
e.services.events.dispatchEvent(
|
|
7915
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_MOUSEOVER, {
|
|
7914
7916
|
event: s,
|
|
7915
7917
|
element: a,
|
|
7916
7918
|
datum: t[n.properties.NAME]
|
|
7917
|
-
}), e.services.events.dispatchEvent(
|
|
7919
|
+
}), e.services.events.dispatchEvent(lt.SHOW, {
|
|
7918
7920
|
event: s,
|
|
7919
7921
|
hoveredElement: a,
|
|
7920
7922
|
items: [
|
|
@@ -7925,26 +7927,26 @@ class qc extends Yl {
|
|
|
7925
7927
|
]
|
|
7926
7928
|
});
|
|
7927
7929
|
}).on("mousemove", function(s, n) {
|
|
7928
|
-
e.services.events.dispatchEvent(
|
|
7930
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_MOUSEMOVE, {
|
|
7929
7931
|
event: s,
|
|
7930
7932
|
element: x(this),
|
|
7931
7933
|
datum: t[n.properties.NAME]
|
|
7932
|
-
}), e.services.events.dispatchEvent(
|
|
7934
|
+
}), e.services.events.dispatchEvent(lt.MOVE, {
|
|
7933
7935
|
event: s
|
|
7934
7936
|
});
|
|
7935
7937
|
}).on("click", function(s, n) {
|
|
7936
|
-
e.services.events.dispatchEvent(
|
|
7938
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_CLICK, {
|
|
7937
7939
|
event: s,
|
|
7938
7940
|
element: x(this),
|
|
7939
7941
|
datum: t[n.properties.NAME]
|
|
7940
7942
|
});
|
|
7941
7943
|
}).on("mouseout", function(s, n) {
|
|
7942
7944
|
const a = x(this);
|
|
7943
|
-
e.services.events.dispatchEvent(
|
|
7945
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_MOUSEOUT, {
|
|
7944
7946
|
event: s,
|
|
7945
7947
|
element: a,
|
|
7946
7948
|
datum: t[n.properties.NAME]
|
|
7947
|
-
}), e.services.events.dispatchEvent(
|
|
7949
|
+
}), e.services.events.dispatchEvent(lt.HIDE, {
|
|
7948
7950
|
event: s,
|
|
7949
7951
|
hoveredElement: a
|
|
7950
7952
|
});
|
|
@@ -7952,69 +7954,69 @@ class qc extends Yl {
|
|
|
7952
7954
|
}
|
|
7953
7955
|
}
|
|
7954
7956
|
export {
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7957
|
+
Lc as $,
|
|
7958
|
+
cc as A,
|
|
7959
|
+
mc as B,
|
|
7960
|
+
ic as C,
|
|
7961
|
+
Rc as D,
|
|
7962
|
+
Vc as E,
|
|
7963
|
+
bc as F,
|
|
7964
|
+
hc as G,
|
|
7965
|
+
lc as H,
|
|
7966
|
+
Bc as I,
|
|
7967
|
+
Uc as J,
|
|
7968
|
+
$c as K,
|
|
7969
|
+
sr as L,
|
|
7970
|
+
ac as M,
|
|
7971
|
+
Ic as N,
|
|
7972
|
+
Gc as O,
|
|
7973
|
+
yr as P,
|
|
7974
|
+
Nc as Q,
|
|
7975
|
+
Ws as R,
|
|
7976
|
+
nc as S,
|
|
7977
|
+
tr as T,
|
|
7978
|
+
jc as U,
|
|
7979
|
+
Zc as V,
|
|
7980
|
+
Xc as W,
|
|
7981
|
+
js as X,
|
|
7982
|
+
or as Y,
|
|
7983
|
+
rc as Z,
|
|
7984
|
+
Tc as _,
|
|
7985
|
+
Na as a,
|
|
7986
|
+
Oc as a0,
|
|
7987
|
+
xc as a1,
|
|
7988
|
+
Sc as a2,
|
|
7989
|
+
wc as a3,
|
|
7990
|
+
Mc as a4,
|
|
7991
|
+
Ac as a5,
|
|
7992
|
+
Cc as a6,
|
|
7993
|
+
Xl as a7,
|
|
7992
7994
|
$t as a8,
|
|
7993
7995
|
z as a9,
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
7996
|
+
Ha as b,
|
|
7997
|
+
Ia as c,
|
|
7998
|
+
ar as d,
|
|
7999
|
+
nr as e,
|
|
8000
|
+
ir as f,
|
|
8001
|
+
oc as g,
|
|
8002
|
+
dc as h,
|
|
8003
|
+
gc as i,
|
|
8004
|
+
pc as j,
|
|
8005
|
+
uc as k,
|
|
8004
8006
|
Vt as l,
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8007
|
+
lr as m,
|
|
8008
|
+
fc as n,
|
|
8009
|
+
vc as o,
|
|
8010
|
+
yc as p,
|
|
8011
|
+
kc as q,
|
|
8012
|
+
Yc as r,
|
|
8013
|
+
Dc as s,
|
|
8014
|
+
zc as t,
|
|
8015
|
+
Wc as u,
|
|
8016
|
+
Ec as v,
|
|
8017
|
+
Hc as w,
|
|
8018
|
+
Pc as x,
|
|
8019
|
+
Fc as y,
|
|
8020
|
+
_c as z
|
|
8019
8021
|
};
|
|
8020
|
-
//# sourceMappingURL=choropleth-
|
|
8022
|
+
//# sourceMappingURL=choropleth-449cf25e.mjs.map
|