@carbon/charts 1.11.16 → 1.11.18
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 +19 -0
- package/dist/{choropleth-ebfc4dda.mjs → choropleth-2ac5a535.mjs} +401 -401
- package/dist/{choropleth-ebfc4dda.mjs.map → choropleth-2ac5a535.mjs.map} +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/demo/index.mjs +122 -123
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +79 -73
- package/dist/demo/styles.css.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/styles.css +8 -8
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/umd/bundle.umd.js +84 -0
- package/dist/umd/bundle.umd.js.map +1 -0
- package/package.json +35 -40
- package/styles.css +8 -8
- package/styles.min.css +1 -1
- package/dist/_baseEach-c254cbf6.js +0 -2
- package/dist/_baseEach-c254cbf6.js.map +0 -1
- package/dist/a11y-c7c9d087.js +0 -2
- package/dist/a11y-c7c9d087.js.map +0 -1
- package/dist/angle-utils-f4be8d20.js +0 -3
- package/dist/angle-utils-f4be8d20.js.map +0 -1
- package/dist/choropleth-161e9be8.js +0 -82
- package/dist/choropleth-161e9be8.js.map +0 -1
- package/dist/color-scale-utils-f797f768.js +0 -2
- package/dist/color-scale-utils-f797f768.js.map +0 -1
- package/dist/components/index.js +0 -2
- package/dist/components/index.js.map +0 -1
- package/dist/demo/index.js +0 -441
- package/dist/demo/index.js.map +0 -1
- package/dist/enums-aa2efd99.js +0 -2
- package/dist/enums-aa2efd99.js.map +0 -1
- package/dist/index-822564ed.js +0 -2
- package/dist/index-822564ed.js.map +0 -1
- package/dist/index-c5b4f8ab.js +0 -2
- package/dist/index-c5b4f8ab.js.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +0 -1
- package/dist/model/index.js +0 -3
- package/dist/model/index.js.map +0 -1
- package/dist/services/index.js +0 -2
- package/dist/services/index.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { select as x, pointer as
|
|
2
|
-
import { t as
|
|
3
|
-
import { y as H, _ as f, K as ee, r as ye, q as Te, L as Dn, A as ue, m as $, s as Se, V as Ie, S as te, e as V, Z as Le, i as le, f as
|
|
1
|
+
import { select as x, pointer as Je, brushX as ms, scaleTime as qs, extent as Qe, area as kt, line as It, axisBottom as Rt, axisLeft as fs, axisTop as Ks, axisRight as Js, scaleLinear as Oe, arc as $e, easeLinear as Qs, path as Dt, interpolateNumber as vs, quantize as en, scaleBand as _t, hierarchy as Pt, pack as tn, pie as sn, interpolate as nn, interpolateRound as an, min as ht, max as Nt, lineRadial as rn, curveLinearClosed as on, cluster as ln, tree as cn, linkHorizontal as dn, treemap as hn, hsl as ys, color as bs, geoPath as un, geoNaturalEarth1 as pn, geoMercator as gn, geoEquirectangular as mn, geoConicEquidistant as fn, geoConicEqualArea as vn, geoAlbers as yn, geoEqualEarth as bn } from "d3";
|
|
2
|
+
import { t as Es, i as En, S as Ss, U as Sn, V as xs, W as xn, X as On, Y as Tn, Z as Ln, g as y, d as he, f as Re, F as Ht, _ as Q, z as K, $ as Ge, a0 as Ut, K as de, H as wn, a1 as Os, e as Mn, a2 as ve, L as ut, N as pt, j as pe, a3 as Ve, a4 as ge, l as fe, A as me, a5 as An, n as ke, R as Cn, C as Z, q as ce, a6 as ie, a7 as kn, P as In, B as se, u as Pe, s as He, a8 as zt, a9 as Rn, aa as Ft, D as Ee } from "./color-scale-utils-149f8038.mjs";
|
|
3
|
+
import { y as H, _ as f, K as ee, r as ye, q as Te, L as Dn, A as ue, m as $, s as Se, V as Ie, S as te, e as V, Z as Le, i as le, f as Wt, J as nt, d as _n, F as Ue, n as at, H as it, C as rt, p as ze, b as jt, D as ot, Q as Pn, 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
|
|
5
|
+
import { t as ct, D as E, c as gt, G as Zt, a as Vn, p as Y, r as Xt, b as Bn } from "./angle-utils-edabc527.mjs";
|
|
6
6
|
import { sankey as $n, sankeyLinkHorizontal as Gn, sankeyJustify as Nn, sankeyLeft as Hn, sankeyRight as Un } from "d3-sankey";
|
|
7
|
-
import { b as
|
|
7
|
+
import { b as Ts } from "./_baseEach-9c20c3b4.mjs";
|
|
8
8
|
import zn from "d3-cloud";
|
|
9
9
|
function Fn(o, e, t, s) {
|
|
10
10
|
var n = -1, a = o == null ? 0 : o.length;
|
|
@@ -214,7 +214,7 @@ var jn = {
|
|
|
214
214
|
const Xn = Zn;
|
|
215
215
|
var Yn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, qn = "\\u0300-\\u036f", Kn = "\\ufe20-\\ufe2f", Jn = "\\u20d0-\\u20ff", Qn = qn + Kn + Jn, ea = "[" + Qn + "]", ta = RegExp(ea, "g");
|
|
216
216
|
function sa(o) {
|
|
217
|
-
return o =
|
|
217
|
+
return o = Es(o), o && o.replace(Yn, Xn).replace(ta, "");
|
|
218
218
|
}
|
|
219
219
|
var na = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
220
220
|
function aa(o) {
|
|
@@ -224,21 +224,21 @@ var ia = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
|
224
224
|
function ra(o) {
|
|
225
225
|
return ia.test(o);
|
|
226
226
|
}
|
|
227
|
-
var
|
|
228
|
-
Ce + "?" +
|
|
229
|
-
xa + "+" +
|
|
230
|
-
Ce + "?" +
|
|
231
|
-
Ce + "+" +
|
|
227
|
+
var Ls = "\\ud800-\\udfff", oa = "\\u0300-\\u036f", la = "\\ufe20-\\ufe2f", ca = "\\u20d0-\\u20ff", da = oa + la + ca, ws = "\\u2700-\\u27bf", Ms = "a-z\\xdf-\\xf6\\xf8-\\xff", ha = "\\xac\\xb1\\xd7\\xf7", ua = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", pa = "\\u2000-\\u206f", ga = " \\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", ma = "\\ufe0e\\ufe0f", Cs = ha + ua + pa + ga, ks = "['’]", Yt = "[" + Cs + "]", fa = "[" + da + "]", Is = "\\d+", va = "[" + ws + "]", Rs = "[" + Ms + "]", Ds = "[^" + Ls + Cs + Is + ws + Ms + As + "]", ya = "\\ud83c[\\udffb-\\udfff]", ba = "(?:" + fa + "|" + ya + ")", Ea = "[^" + Ls + "]", _s = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ps = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ce = "[" + As + "]", Sa = "\\u200d", qt = "(?:" + Rs + "|" + Ds + ")", xa = "(?:" + Ce + "|" + Ds + ")", Kt = "(?:" + ks + "(?:d|ll|m|re|s|t|ve))?", Jt = "(?:" + ks + "(?:D|LL|M|RE|S|T|VE))?", Vs = ba + "?", Bs = "[" + ma + "]?", Oa = "(?:" + Sa + "(?:" + [Ea, _s, Ps].join("|") + ")" + Bs + Vs + ")*", Ta = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", La = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", wa = Bs + Vs + Oa, Ma = "(?:" + [va, _s, Ps].join("|") + ")" + wa, Aa = RegExp([
|
|
228
|
+
Ce + "?" + Rs + "+" + Kt + "(?=" + [Yt, Ce, "$"].join("|") + ")",
|
|
229
|
+
xa + "+" + Jt + "(?=" + [Yt, Ce + qt, "$"].join("|") + ")",
|
|
230
|
+
Ce + "?" + qt + "+" + Kt,
|
|
231
|
+
Ce + "+" + Jt,
|
|
232
232
|
La,
|
|
233
233
|
Ta,
|
|
234
|
-
|
|
234
|
+
Is,
|
|
235
235
|
Ma
|
|
236
236
|
].join("|"), "g");
|
|
237
237
|
function Ca(o) {
|
|
238
238
|
return o.match(Aa) || [];
|
|
239
239
|
}
|
|
240
240
|
function ka(o, e, t) {
|
|
241
|
-
return o =
|
|
241
|
+
return o = Es(o), e = t ? void 0 : e, e === void 0 ? ra(o) ? Ca(o) : aa(o) : o.match(e) || [];
|
|
242
242
|
}
|
|
243
243
|
var Ia = "['’]", Ra = RegExp(Ia, "g");
|
|
244
244
|
function Da(o) {
|
|
@@ -249,24 +249,24 @@ function Da(o) {
|
|
|
249
249
|
function _a(o, e, t) {
|
|
250
250
|
return o === o && (t !== void 0 && (o = o <= t ? o : t), e !== void 0 && (o = o >= e ? o : e)), o;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t =
|
|
252
|
+
function $s(o, 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), _a(ct(o), e, t);
|
|
254
254
|
}
|
|
255
255
|
function Pa(o, e) {
|
|
256
256
|
var t = -1, s = En(o) ? Array(o.length) : [];
|
|
257
|
-
return
|
|
257
|
+
return Ts(o, function(n, a, i) {
|
|
258
258
|
s[++t] = e(n, a, i);
|
|
259
259
|
}), s;
|
|
260
260
|
}
|
|
261
261
|
function Va(o, e) {
|
|
262
|
-
var t =
|
|
263
|
-
return t(o,
|
|
262
|
+
var t = Ss(o) ? Sn : Pa;
|
|
263
|
+
return t(o, xs(e));
|
|
264
264
|
}
|
|
265
265
|
var Ba = 1 / 0;
|
|
266
266
|
function $a(o, e) {
|
|
267
267
|
return xn(Va(o, e), Ba);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Gs(o, e) {
|
|
270
270
|
return On(o, e);
|
|
271
271
|
}
|
|
272
272
|
var Ga = Da(function(o, e, t) {
|
|
@@ -275,13 +275,13 @@ var Ga = Da(function(o, e, t) {
|
|
|
275
275
|
const we = Ga;
|
|
276
276
|
function Na(o, e) {
|
|
277
277
|
var t;
|
|
278
|
-
return
|
|
278
|
+
return Ts(o, function(s, n, a) {
|
|
279
279
|
return t = e(s, n, a), !t;
|
|
280
280
|
}), !!t;
|
|
281
281
|
}
|
|
282
282
|
function Ha(o, e, t) {
|
|
283
|
-
var s =
|
|
284
|
-
return t && Ln(o, e, t) && (e = void 0), s(o,
|
|
283
|
+
var s = Ss(o) ? Tn : Na;
|
|
284
|
+
return t && Ln(o, e, t) && (e = void 0), s(o, 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 ? Re({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const Ns = class Hs extends z {
|
|
350
350
|
constructor() {
|
|
351
351
|
super(...arguments), this.type = "toolbar", this.renderType = H.HTML;
|
|
352
352
|
}
|
|
@@ -512,7 +512,7 @@ const Je = class Je extends z {
|
|
|
512
512
|
const e = y(this.getOptions(), "toolbar", "numberOfIcons") - 1, t = y(this.getOptions(), "toolbar", "controls"), s = [], n = [], a = [];
|
|
513
513
|
return t.forEach((i) => {
|
|
514
514
|
let r = null;
|
|
515
|
-
i.type === ee.CUSTOM ? (y(i, "id") === null && (i.id = `toolbar-button-${
|
|
515
|
+
i.type === ee.CUSTOM ? (y(i, "id") === null && (i.id = `toolbar-button-${Hs.buttonID++}`), y(i, "shouldBeDisabled") === null && (i.shouldBeDisabled = () => !1), r = i) : r = this.getControlConfigByType(i.type), r && (r.text = i.text ? i.text : i.type, r.id.indexOf("toolbar-export") !== -1 ? s.push(r) : n.length < e ? y(r, "iconSVG", "content") === null ? a.push(r) : n.push(r) : a.push(r));
|
|
516
516
|
}), a.push(...s), a.length ? {
|
|
517
517
|
buttonList: n,
|
|
518
518
|
overflowMenuItemList: a
|
|
@@ -668,11 +668,11 @@ const Je = class Je extends z {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
|
|
672
|
-
let
|
|
673
|
-
const
|
|
671
|
+
Ns.buttonID = 0;
|
|
672
|
+
let nc = Ns;
|
|
673
|
+
const Us = class zs extends z {
|
|
674
674
|
constructor(e, t, s, n) {
|
|
675
|
-
super(e, t, n), this.type = "layout", this.configs = n, this.children = s, this._instanceID =
|
|
675
|
+
super(e, t, n), this.type = "layout", this.configs = n, this.children = s, this._instanceID = zs.instanceID++, this.init();
|
|
676
676
|
}
|
|
677
677
|
init() {
|
|
678
678
|
this.children.forEach((e) => {
|
|
@@ -756,9 +756,9 @@ const Qe = class Qe extends z {
|
|
|
756
756
|
});
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
|
-
|
|
760
|
-
let
|
|
761
|
-
class
|
|
759
|
+
Us.instanceID = Math.floor(Math.random() * 99999999999);
|
|
760
|
+
let ac = Us;
|
|
761
|
+
class ic extends z {
|
|
762
762
|
constructor() {
|
|
763
763
|
super(...arguments), this.type = "spacer";
|
|
764
764
|
}
|
|
@@ -766,7 +766,7 @@ class nc extends z {
|
|
|
766
766
|
// @ts-ignore
|
|
767
767
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
768
768
|
render(e = !1) {
|
|
769
|
-
this.getComponentContainer().style("width", `${this.configs.size ||
|
|
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
772
|
var Ua = {
|
|
@@ -783,15 +783,15 @@ var Ua = {
|
|
|
783
783
|
textarea:not([disabled]),
|
|
784
784
|
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
785
785
|
`
|
|
786
|
-
},
|
|
787
|
-
function
|
|
786
|
+
}, dt = Ua;
|
|
787
|
+
function Qt(o, 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(o, s.key, s);
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
function za(o, e, t) {
|
|
794
|
-
return e &&
|
|
794
|
+
return e && Qt(o.prototype, e), t && Qt(o, t), Object.defineProperty(o, "prototype", {
|
|
795
795
|
writable: !1
|
|
796
796
|
}), o;
|
|
797
797
|
}
|
|
@@ -809,12 +809,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
809
809
|
function Za(o, e) {
|
|
810
810
|
if (o) {
|
|
811
811
|
if (typeof o == "string")
|
|
812
|
-
return
|
|
812
|
+
return mt(o, e);
|
|
813
813
|
var t = Object.prototype.toString.call(o).slice(8, -1);
|
|
814
814
|
if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
|
|
815
815
|
return Array.from(o);
|
|
816
816
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
817
|
-
return
|
|
817
|
+
return mt(o, e);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
function Xa(o) {
|
|
@@ -823,23 +823,23 @@ function Xa(o) {
|
|
|
823
823
|
}
|
|
824
824
|
function Ya(o) {
|
|
825
825
|
if (Array.isArray(o))
|
|
826
|
-
return
|
|
826
|
+
return mt(o);
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function mt(o, e) {
|
|
829
829
|
(e == null || e > o.length) && (e = o.length);
|
|
830
830
|
for (var t = 0, s = new Array(e); t < e; t++)
|
|
831
831
|
s[t] = o[t];
|
|
832
832
|
return s;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Fs(o) {
|
|
835
835
|
return o.reduce(function(e, t) {
|
|
836
|
-
return Array.isArray(t) ? e.push.apply(e, Wa(
|
|
836
|
+
return Array.isArray(t) ? e.push.apply(e, Wa(Fs(t))) : e.push(t), e;
|
|
837
837
|
}, []);
|
|
838
838
|
}
|
|
839
839
|
function qa() {
|
|
840
840
|
for (var o = arguments.length, e = new Array(o), t = 0; t < o; t++)
|
|
841
841
|
e[t] = arguments[t];
|
|
842
|
-
return
|
|
842
|
+
return Fs(e).reduce(function(s, n) {
|
|
843
843
|
return n(s);
|
|
844
844
|
}, /* @__PURE__ */ function() {
|
|
845
845
|
function s() {
|
|
@@ -848,26 +848,26 @@ function qa() {
|
|
|
848
848
|
return za(s);
|
|
849
849
|
}());
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function ft(o) {
|
|
852
852
|
"@babel/helpers - typeof";
|
|
853
|
-
return
|
|
853
|
+
return ft = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
854
854
|
return typeof e;
|
|
855
855
|
} : function(e) {
|
|
856
856
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
857
|
-
},
|
|
857
|
+
}, ft(o);
|
|
858
858
|
}
|
|
859
859
|
function Ka(o, e) {
|
|
860
860
|
if (!(o instanceof e))
|
|
861
861
|
throw new TypeError("Cannot call a class as a function");
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function es(o, e) {
|
|
864
864
|
for (var t = 0; t < e.length; t++) {
|
|
865
865
|
var s = e[t];
|
|
866
866
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(o, s.key, s);
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
function Ja(o, e, t) {
|
|
870
|
-
return e &&
|
|
870
|
+
return e && es(o.prototype, e), t && es(o, t), Object.defineProperty(o, "prototype", {
|
|
871
871
|
writable: !1
|
|
872
872
|
}), o;
|
|
873
873
|
}
|
|
@@ -882,12 +882,12 @@ function Qa(o, e) {
|
|
|
882
882
|
}
|
|
883
883
|
}), Object.defineProperty(o, "prototype", {
|
|
884
884
|
writable: !1
|
|
885
|
-
}), e &&
|
|
885
|
+
}), e && vt(o, e);
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
887
|
+
function vt(o, e) {
|
|
888
|
+
return vt = Object.setPrototypeOf || function(s, n) {
|
|
889
889
|
return s.__proto__ = n, s;
|
|
890
|
-
},
|
|
890
|
+
}, vt(o, e);
|
|
891
891
|
}
|
|
892
892
|
function ei(o) {
|
|
893
893
|
var e = si();
|
|
@@ -902,13 +902,13 @@ function ei(o) {
|
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
function ti(o, e) {
|
|
905
|
-
if (e && (
|
|
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 Ws(o);
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Ws(o) {
|
|
912
912
|
if (o === void 0)
|
|
913
913
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
914
914
|
return o;
|
|
@@ -938,7 +938,7 @@ function ni(o) {
|
|
|
938
938
|
var i, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
939
939
|
if (Ka(this, n), i = s.call(this, a, r), 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), r), i.constructor.components.set(i.element,
|
|
941
|
+
return i.element = a, i.options = Object.assign(Object.create(i.constructor.options), r), i.constructor.components.set(i.element, Ws(i)), i;
|
|
942
942
|
}
|
|
943
943
|
return Ja(n, [{
|
|
944
944
|
key: "release",
|
|
@@ -961,40 +961,40 @@ function ni(o) {
|
|
|
961
961
|
}(o);
|
|
962
962
|
return e;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function yt(o) {
|
|
965
965
|
"@babel/helpers - typeof";
|
|
966
|
-
return
|
|
966
|
+
return yt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
967
967
|
return typeof e;
|
|
968
968
|
} : function(e) {
|
|
969
969
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
970
|
-
},
|
|
970
|
+
}, yt(o);
|
|
971
971
|
}
|
|
972
972
|
function ai(o, e) {
|
|
973
973
|
if (!(o instanceof e))
|
|
974
974
|
throw new TypeError("Cannot call a class as a function");
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function ts(o, e) {
|
|
977
977
|
for (var t = 0; t < e.length; t++) {
|
|
978
978
|
var s = e[t];
|
|
979
979
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(o, s.key, s);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
function ii(o, e, t) {
|
|
983
|
-
return e &&
|
|
983
|
+
return e && ts(o.prototype, e), t && ts(o, t), Object.defineProperty(o, "prototype", {
|
|
984
984
|
writable: !1
|
|
985
985
|
}), o;
|
|
986
986
|
}
|
|
987
|
-
function
|
|
988
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
987
|
+
function We() {
|
|
988
|
+
return typeof Reflect < "u" && Reflect.get ? We = Reflect.get : We = function(e, t, s) {
|
|
989
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
996
|
function ri(o, e) {
|
|
997
|
-
for (; !Object.prototype.hasOwnProperty.call(o, e) && (o =
|
|
997
|
+
for (; !Object.prototype.hasOwnProperty.call(o, e) && (o = De(o), o !== null); )
|
|
998
998
|
;
|
|
999
999
|
return o;
|
|
1000
1000
|
}
|
|
@@ -1009,19 +1009,19 @@ function oi(o, e) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
}), Object.defineProperty(o, "prototype", {
|
|
1011
1011
|
writable: !1
|
|
1012
|
-
}), e &&
|
|
1012
|
+
}), e && bt(o, e);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1014
|
+
function bt(o, e) {
|
|
1015
|
+
return bt = Object.setPrototypeOf || function(s, n) {
|
|
1016
1016
|
return s.__proto__ = n, s;
|
|
1017
|
-
},
|
|
1017
|
+
}, bt(o, e);
|
|
1018
1018
|
}
|
|
1019
1019
|
function li(o) {
|
|
1020
1020
|
var e = hi();
|
|
1021
1021
|
return function() {
|
|
1022
|
-
var s =
|
|
1022
|
+
var s = De(o), n;
|
|
1023
1023
|
if (e) {
|
|
1024
|
-
var a =
|
|
1024
|
+
var a = De(this).constructor;
|
|
1025
1025
|
n = Reflect.construct(s, arguments, a);
|
|
1026
1026
|
} else
|
|
1027
1027
|
n = s.apply(this, arguments);
|
|
@@ -1029,7 +1029,7 @@ function li(o) {
|
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
1031
|
function ci(o, e) {
|
|
1032
|
-
if (e && (
|
|
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");
|
|
@@ -1052,10 +1052,10 @@ function hi() {
|
|
|
1052
1052
|
return !1;
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return
|
|
1055
|
+
function De(o) {
|
|
1056
|
+
return De = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1057
1057
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1058
|
-
},
|
|
1058
|
+
}, De(o);
|
|
1059
1059
|
}
|
|
1060
1060
|
function ui(o) {
|
|
1061
1061
|
var e = /* @__PURE__ */ function(t) {
|
|
@@ -1096,13 +1096,13 @@ function ui(o) {
|
|
|
1096
1096
|
var i = this;
|
|
1097
1097
|
return this.handles.forEach(function(r) {
|
|
1098
1098
|
r.release(), i.handles.delete(r);
|
|
1099
|
-
}),
|
|
1099
|
+
}), We(De(n.prototype), "release", this).call(this);
|
|
1100
1100
|
}
|
|
1101
1101
|
}]), n;
|
|
1102
1102
|
}(o);
|
|
1103
1103
|
return e;
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function Be(o) {
|
|
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 o.addEventListener.apply(o, t), {
|
|
@@ -1111,13 +1111,13 @@ function $e(o) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function Et(o) {
|
|
1115
1115
|
"@babel/helpers - typeof";
|
|
1116
|
-
return
|
|
1116
|
+
return Et = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1117
1117
|
return typeof e;
|
|
1118
1118
|
} : function(e) {
|
|
1119
1119
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1120
|
-
},
|
|
1120
|
+
}, Et(o);
|
|
1121
1121
|
}
|
|
1122
1122
|
function pi(o) {
|
|
1123
1123
|
return vi(o) || fi(o) || mi(o) || gi();
|
|
@@ -1129,12 +1129,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1129
1129
|
function mi(o, e) {
|
|
1130
1130
|
if (o) {
|
|
1131
1131
|
if (typeof o == "string")
|
|
1132
|
-
return
|
|
1132
|
+
return St(o, e);
|
|
1133
1133
|
var t = Object.prototype.toString.call(o).slice(8, -1);
|
|
1134
1134
|
if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
|
|
1135
1135
|
return Array.from(o);
|
|
1136
1136
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
1137
|
-
return
|
|
1137
|
+
return St(o, e);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
function fi(o) {
|
|
@@ -1143,9 +1143,9 @@ function fi(o) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
function vi(o) {
|
|
1145
1145
|
if (Array.isArray(o))
|
|
1146
|
-
return
|
|
1146
|
+
return St(o);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function St(o, e) {
|
|
1149
1149
|
(e == null || e > o.length) && (e = o.length);
|
|
1150
1150
|
for (var t = 0, s = new Array(e); t < e; t++)
|
|
1151
1151
|
s[t] = o[t];
|
|
@@ -1155,14 +1155,14 @@ function yi(o, e) {
|
|
|
1155
1155
|
if (!(o instanceof e))
|
|
1156
1156
|
throw new TypeError("Cannot call a class as a function");
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function ss(o, e) {
|
|
1159
1159
|
for (var t = 0; t < e.length; t++) {
|
|
1160
1160
|
var s = e[t];
|
|
1161
1161
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(o, s.key, s);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
function bi(o, e, t) {
|
|
1165
|
-
return e &&
|
|
1165
|
+
return e && ss(o.prototype, e), t && ss(o, t), Object.defineProperty(o, "prototype", {
|
|
1166
1166
|
writable: !1
|
|
1167
1167
|
}), o;
|
|
1168
1168
|
}
|
|
@@ -1177,12 +1177,12 @@ function Ei(o, e) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
}), Object.defineProperty(o, "prototype", {
|
|
1179
1179
|
writable: !1
|
|
1180
|
-
}), e &&
|
|
1180
|
+
}), e && xt(o, e);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return
|
|
1182
|
+
function xt(o, e) {
|
|
1183
|
+
return xt = Object.setPrototypeOf || function(s, n) {
|
|
1184
1184
|
return s.__proto__ = n, s;
|
|
1185
|
-
},
|
|
1185
|
+
}, xt(o, e);
|
|
1186
1186
|
}
|
|
1187
1187
|
function Si(o) {
|
|
1188
1188
|
var e = Ti();
|
|
@@ -1197,7 +1197,7 @@ function Si(o) {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
1199
|
function xi(o, e) {
|
|
1200
|
-
if (e && (
|
|
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");
|
|
@@ -1309,7 +1309,7 @@ function Li(o) {
|
|
|
1309
1309
|
}(o);
|
|
1310
1310
|
return e;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Ot(o, e) {
|
|
1313
1313
|
var t = o.target, s = o.currentTarget;
|
|
1314
1314
|
if (typeof t.matches == "function") {
|
|
1315
1315
|
if (t.matches(e))
|
|
@@ -1321,7 +1321,7 @@ function Lt(o, e) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function ns(o) {
|
|
1325
1325
|
if (!o || typeof o == "function")
|
|
1326
1326
|
return {
|
|
1327
1327
|
launchingElement: null,
|
|
@@ -1337,26 +1337,26 @@ function os(o) {
|
|
|
1337
1337
|
launchingEvent: t
|
|
1338
1338
|
};
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function Tt(o) {
|
|
1341
1341
|
"@babel/helpers - typeof";
|
|
1342
|
-
return
|
|
1342
|
+
return Tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1343
1343
|
return typeof e;
|
|
1344
1344
|
} : function(e) {
|
|
1345
1345
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1346
|
-
},
|
|
1346
|
+
}, Tt(o);
|
|
1347
1347
|
}
|
|
1348
1348
|
function wi(o, e) {
|
|
1349
1349
|
if (!(o instanceof e))
|
|
1350
1350
|
throw new TypeError("Cannot call a class as a function");
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function as(o, e) {
|
|
1353
1353
|
for (var t = 0; t < e.length; t++) {
|
|
1354
1354
|
var s = e[t];
|
|
1355
1355
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(o, s.key, s);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
function Mi(o, e, t) {
|
|
1359
|
-
return e &&
|
|
1359
|
+
return e && as(o.prototype, e), t && as(o, t), Object.defineProperty(o, "prototype", {
|
|
1360
1360
|
writable: !1
|
|
1361
1361
|
}), o;
|
|
1362
1362
|
}
|
|
@@ -1371,12 +1371,12 @@ function Ai(o, e) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
}), Object.defineProperty(o, "prototype", {
|
|
1373
1373
|
writable: !1
|
|
1374
|
-
}), e &&
|
|
1374
|
+
}), e && Lt(o, e);
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1376
|
+
function Lt(o, e) {
|
|
1377
|
+
return Lt = Object.setPrototypeOf || function(s, n) {
|
|
1378
1378
|
return s.__proto__ = n, s;
|
|
1379
|
-
},
|
|
1379
|
+
}, Lt(o, e);
|
|
1380
1380
|
}
|
|
1381
1381
|
function Ci(o) {
|
|
1382
1382
|
var e = Ri();
|
|
@@ -1391,7 +1391,7 @@ function Ci(o) {
|
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
1393
|
function ki(o, e) {
|
|
1394
|
-
if (e && (
|
|
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");
|
|
@@ -1437,7 +1437,7 @@ function Di(o) {
|
|
|
1437
1437
|
* @param {EventedState~changeStateCallback} [callback] The callback.
|
|
1438
1438
|
*/
|
|
1439
1439
|
function(i, r) {
|
|
1440
|
-
(!i || typeof i == "function") && (r = i), this.changeState("shown",
|
|
1440
|
+
(!i || typeof i == "function") && (r = i), this.changeState("shown", ns(i), r);
|
|
1441
1441
|
}
|
|
1442
1442
|
)
|
|
1443
1443
|
/**
|
|
@@ -1448,7 +1448,7 @@ function Di(o) {
|
|
|
1448
1448
|
}, {
|
|
1449
1449
|
key: "hide",
|
|
1450
1450
|
value: function(i, r) {
|
|
1451
|
-
(!i || typeof i == "function") && (r = i), this.changeState("hidden",
|
|
1451
|
+
(!i || typeof i == "function") && (r = i), this.changeState("hidden", ns(i), r);
|
|
1452
1452
|
}
|
|
1453
1453
|
}]), n;
|
|
1454
1454
|
}(o);
|
|
@@ -1459,9 +1459,9 @@ const Pi = _i;
|
|
|
1459
1459
|
function Vi(o) {
|
|
1460
1460
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
1461
1461
|
}
|
|
1462
|
-
var
|
|
1462
|
+
var js = function() {
|
|
1463
1463
|
};
|
|
1464
|
-
process.env.NODE_ENV !== "production" && (
|
|
1464
|
+
process.env.NODE_ENV !== "production" && (js = function(o, e, t) {
|
|
1465
1465
|
var s = arguments.length;
|
|
1466
1466
|
t = new Array(s > 2 ? s - 2 : 0);
|
|
1467
1467
|
for (var n = 2; n < s; n++)
|
|
@@ -1485,28 +1485,28 @@ process.env.NODE_ENV !== "production" && (Zs = function(o, e, t) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
1487
|
});
|
|
1488
|
-
var Bi =
|
|
1488
|
+
var Bi = js;
|
|
1489
1489
|
const $i = /* @__PURE__ */ Vi(Bi);
|
|
1490
|
-
function
|
|
1490
|
+
function wt(o) {
|
|
1491
1491
|
"@babel/helpers - typeof";
|
|
1492
|
-
return
|
|
1492
|
+
return wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1493
1493
|
return typeof e;
|
|
1494
1494
|
} : function(e) {
|
|
1495
1495
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1496
|
-
},
|
|
1496
|
+
}, wt(o);
|
|
1497
1497
|
}
|
|
1498
1498
|
function Gi(o, e) {
|
|
1499
1499
|
if (!(o instanceof e))
|
|
1500
1500
|
throw new TypeError("Cannot call a class as a function");
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function is(o, e) {
|
|
1503
1503
|
for (var t = 0; t < e.length; t++) {
|
|
1504
1504
|
var s = e[t];
|
|
1505
1505
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(o, s.key, s);
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
function Ni(o, e, t) {
|
|
1509
|
-
return e &&
|
|
1509
|
+
return e && is(o.prototype, e), t && is(o, t), Object.defineProperty(o, "prototype", {
|
|
1510
1510
|
writable: !1
|
|
1511
1511
|
}), o;
|
|
1512
1512
|
}
|
|
@@ -1521,12 +1521,12 @@ function Hi(o, e) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}), Object.defineProperty(o, "prototype", {
|
|
1523
1523
|
writable: !1
|
|
1524
|
-
}), e &&
|
|
1524
|
+
}), e && Mt(o, e);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
return
|
|
1526
|
+
function Mt(o, e) {
|
|
1527
|
+
return Mt = Object.setPrototypeOf || function(s, n) {
|
|
1528
1528
|
return s.__proto__ = n, s;
|
|
1529
|
-
},
|
|
1529
|
+
}, Mt(o, e);
|
|
1530
1530
|
}
|
|
1531
1531
|
function Ui(o) {
|
|
1532
1532
|
var e = Wi();
|
|
@@ -1541,7 +1541,7 @@ function Ui(o) {
|
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
1543
|
function zi(o, e) {
|
|
1544
|
-
if (e && (
|
|
1544
|
+
if (e && (wt(e) === "object" || typeof e == "function"))
|
|
1545
1545
|
return e;
|
|
1546
1546
|
if (e !== void 0)
|
|
1547
1547
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1602,8 +1602,8 @@ function ji(o) {
|
|
|
1602
1602
|
this.create(r, l);
|
|
1603
1603
|
else {
|
|
1604
1604
|
var d = c.initEventNames.map(function(p) {
|
|
1605
|
-
return
|
|
1606
|
-
var u =
|
|
1605
|
+
return Be(r, p, function(h) {
|
|
1606
|
+
var u = Ot(h, "[".concat(c.attribInitTarget, "]"));
|
|
1607
1607
|
if (u) {
|
|
1608
1608
|
h.delegateTarget = u;
|
|
1609
1609
|
var g = u.ownerDocument.querySelectorAll(u.getAttribute(c.attribInitTarget));
|
|
@@ -1631,26 +1631,26 @@ function ji(o) {
|
|
|
1631
1631
|
}(o);
|
|
1632
1632
|
return e;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function At(o) {
|
|
1635
1635
|
"@babel/helpers - typeof";
|
|
1636
|
-
return
|
|
1636
|
+
return At = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1637
1637
|
return typeof e;
|
|
1638
1638
|
} : function(e) {
|
|
1639
1639
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1640
|
-
},
|
|
1640
|
+
}, At(o);
|
|
1641
1641
|
}
|
|
1642
1642
|
function Zi(o, e) {
|
|
1643
1643
|
if (!(o instanceof e))
|
|
1644
1644
|
throw new TypeError("Cannot call a class as a function");
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function rs(o, e) {
|
|
1647
1647
|
for (var t = 0; t < e.length; t++) {
|
|
1648
1648
|
var s = e[t];
|
|
1649
1649
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(o, s.key, s);
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
1652
|
function Xi(o, e, t) {
|
|
1653
|
-
return e &&
|
|
1653
|
+
return e && rs(o.prototype, e), t && rs(o, t), Object.defineProperty(o, "prototype", {
|
|
1654
1654
|
writable: !1
|
|
1655
1655
|
}), o;
|
|
1656
1656
|
}
|
|
@@ -1665,12 +1665,12 @@ function Yi(o, e) {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
}), Object.defineProperty(o, "prototype", {
|
|
1667
1667
|
writable: !1
|
|
1668
|
-
}), e &&
|
|
1668
|
+
}), e && Ct(o, e);
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1670
|
+
function Ct(o, e) {
|
|
1671
|
+
return Ct = Object.setPrototypeOf || function(s, n) {
|
|
1672
1672
|
return s.__proto__ = n, s;
|
|
1673
|
-
},
|
|
1673
|
+
}, Ct(o, e);
|
|
1674
1674
|
}
|
|
1675
1675
|
function qi(o) {
|
|
1676
1676
|
var e = Qi();
|
|
@@ -1685,7 +1685,7 @@ function qi(o) {
|
|
|
1685
1685
|
};
|
|
1686
1686
|
}
|
|
1687
1687
|
function Ki(o, e) {
|
|
1688
|
-
if (e && (
|
|
1688
|
+
if (e && (At(e) === "object" || typeof e == "function"))
|
|
1689
1689
|
return e;
|
|
1690
1690
|
if (e !== void 0)
|
|
1691
1691
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1721,8 +1721,8 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1721
1721
|
return Zi(this, t), a = e.call(this, s, n), a._handleFocusinListener = void 0, a._handleKeydownListener = void 0, a._handleFocusin = function(i) {
|
|
1722
1722
|
var r = a.element.querySelector(a.options.selectorModalContainer) || a.element;
|
|
1723
1723
|
a.element.classList.contains(a.options.classVisible) && !r.contains(i.target) && a.options.selectorsFloatingMenus.every(function(l) {
|
|
1724
|
-
return !
|
|
1725
|
-
}) && a.element.querySelector(
|
|
1724
|
+
return !Ot(i, l);
|
|
1725
|
+
}) && a.element.querySelector(dt.selectorTabbable).focus();
|
|
1726
1726
|
}, a._hookCloseActions(), a;
|
|
1727
1727
|
}
|
|
1728
1728
|
return Xi(t, [{
|
|
@@ -1759,25 +1759,25 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1759
1759
|
var r = this, l, c = function() {
|
|
1760
1760
|
if (l && (l = r.unmanage(l).release()), n === "shown" && r.element.offsetWidth > 0 && r.element.offsetHeight > 0) {
|
|
1761
1761
|
r.previouslyFocusedNode = r.element.ownerDocument.activeElement;
|
|
1762
|
-
var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(
|
|
1762
|
+
var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(dt.selectorTabbable);
|
|
1763
1763
|
u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && $i(u, "Modals need to contain a focusable element by either using " + "`".concat(r.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
|
|
1764
1764
|
}
|
|
1765
1765
|
i();
|
|
1766
1766
|
};
|
|
1767
1767
|
if (this._handleFocusinListener && (this._handleFocusinListener = this.unmanage(this._handleFocusinListener).release()), n === "shown") {
|
|
1768
1768
|
var d = "onfocusin" in this.element.ownerDocument.defaultView, p = d ? "focusin" : "focus";
|
|
1769
|
-
this._handleFocusinListener = this.manage(
|
|
1769
|
+
this._handleFocusinListener = this.manage(Be(this.element.ownerDocument, p, this._handleFocusin, !d));
|
|
1770
1770
|
}
|
|
1771
|
-
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(
|
|
1771
|
+
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));
|
|
1772
1772
|
}
|
|
1773
1773
|
}, {
|
|
1774
1774
|
key: "_hookCloseActions",
|
|
1775
1775
|
value: function() {
|
|
1776
1776
|
var n = this;
|
|
1777
|
-
this.manage(
|
|
1778
|
-
var i =
|
|
1777
|
+
this.manage(Be(this.element, "click", function(a) {
|
|
1778
|
+
var i = Ot(a, n.options.selectorModalClose);
|
|
1779
1779
|
i && (a.delegateTarget = i), (i || a.target === n.element) && n.hide(a);
|
|
1780
|
-
})), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(
|
|
1780
|
+
})), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(Be(this.element.ownerDocument.body, "keydown", function(a) {
|
|
1781
1781
|
a.which === 27 && n.shouldStateBeChanged("hidden") && (a.stopPropagation(), n.hide(a));
|
|
1782
1782
|
}));
|
|
1783
1783
|
}
|
|
@@ -1822,7 +1822,7 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1822
1822
|
* without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
|
|
1823
1823
|
*/
|
|
1824
1824
|
function() {
|
|
1825
|
-
var n =
|
|
1825
|
+
var n = dt.prefix;
|
|
1826
1826
|
return {
|
|
1827
1827
|
selectorInit: "[data-modal]",
|
|
1828
1828
|
selectorModalClose: "[data-modal-close]",
|
|
@@ -1843,7 +1843,7 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1843
1843
|
}]), t.components = /* @__PURE__ */ new WeakMap(), t;
|
|
1844
1844
|
}(qa(ni, ji, Pi, ui));
|
|
1845
1845
|
const tr = er;
|
|
1846
|
-
class
|
|
1846
|
+
class rc extends z {
|
|
1847
1847
|
constructor(e, t, s) {
|
|
1848
1848
|
super(e, t, s), this.type = "modal", this.isEventListenerAdded = !1, this.handleShowModal = () => {
|
|
1849
1849
|
this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), tr.create(this.modal.node()).show();
|
|
@@ -2088,7 +2088,7 @@ class nr extends z {
|
|
|
2088
2088
|
i.attr("id", function() {
|
|
2089
2089
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
2090
2090
|
}), s !== Ie.NONE ? i.html(function(r) {
|
|
2091
|
-
return r.name.length > n ?
|
|
2091
|
+
return r.name.length > n ? Ge(r.name, s, a) : r.name;
|
|
2092
2092
|
}) : i.html((r) => r.name);
|
|
2093
2093
|
}
|
|
2094
2094
|
addEventListeners() {
|
|
@@ -2166,7 +2166,7 @@ class ar extends z {
|
|
|
2166
2166
|
i - a > 0 && c.attr("x", a).attr("y", l).attr("width", i - a).attr("height", r - l), this.chartClipPath.merge(c).lower();
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
|
-
class
|
|
2169
|
+
class oc extends ar {
|
|
2170
2170
|
constructor() {
|
|
2171
2171
|
super(...arguments), this.type = "canvas-chart-clip", this.chartClipId = "canvas-chart-clip-id-" + Math.floor(Math.random() * 99999999999);
|
|
2172
2172
|
}
|
|
@@ -2186,7 +2186,7 @@ var Me, ne;
|
|
|
2186
2186
|
(function(o) {
|
|
2187
2187
|
o.LEFT = "left", o.RIGHT = "right", o.TOP = "top", o.BOTTOM = "bottom";
|
|
2188
2188
|
})(ne || (ne = {}));
|
|
2189
|
-
var
|
|
2189
|
+
var os = (Me = {}, Me[ne.LEFT] = function(o, e, t) {
|
|
2190
2190
|
return {
|
|
2191
2191
|
top: o.top - Math.round(e.offsetHeight / 2) + Math.round(t.height / 2),
|
|
2192
2192
|
left: Math.round(o.left - e.offsetWidth)
|
|
@@ -2206,16 +2206,16 @@ var hs = (Me = {}, Me[ne.LEFT] = function(o, e, t) {
|
|
|
2206
2206
|
top: Math.round(o.top + t.height),
|
|
2207
2207
|
left: o.left - Math.round(e.offsetWidth / 2) + Math.round(t.width / 2)
|
|
2208
2208
|
};
|
|
2209
|
-
}, Me),
|
|
2209
|
+
}, Me), ls = typeof window < "u" ? window : {
|
|
2210
2210
|
innerHeight: 0,
|
|
2211
2211
|
scrollY: 0,
|
|
2212
2212
|
innerWidth: 0,
|
|
2213
2213
|
scrollX: 0
|
|
2214
|
-
},
|
|
2214
|
+
}, et = (
|
|
2215
2215
|
/** @class */
|
|
2216
2216
|
function() {
|
|
2217
2217
|
function o(e) {
|
|
2218
|
-
e === void 0 && (e = {}), this.positions =
|
|
2218
|
+
e === void 0 && (e = {}), this.positions = os, this.positions = Object.assign({}, os, e);
|
|
2219
2219
|
}
|
|
2220
2220
|
return o.prototype.getRelativeOffset = function(e) {
|
|
2221
2221
|
for (var t = {
|
|
@@ -2291,18 +2291,18 @@ var hs = (Me = {}, Me[ne.LEFT] = function(o, e, t) {
|
|
|
2291
2291
|
// we go with window here, because that's going to be the simple/common case
|
|
2292
2292
|
top: 0,
|
|
2293
2293
|
left: 0,
|
|
2294
|
-
height:
|
|
2295
|
-
width:
|
|
2294
|
+
height: ls.innerHeight,
|
|
2295
|
+
width: ls.innerWidth
|
|
2296
2296
|
};
|
|
2297
2297
|
}, o.prototype.calculatePosition = function(e, t, s, n) {
|
|
2298
2298
|
return this.positions[n] ? this.positions[n](e, s, t) : (console.error("No function found for placement, defaulting to 0,0"), { left: 0, top: 0 });
|
|
2299
2299
|
}, o;
|
|
2300
2300
|
}()
|
|
2301
2301
|
);
|
|
2302
|
-
new
|
|
2302
|
+
new et();
|
|
2303
2303
|
class ir extends z {
|
|
2304
2304
|
constructor(e, t, s) {
|
|
2305
|
-
super(e, t, s), this.type = "tooltip", this.renderType = H.HTML, this.isEventListenerAdded = !1, this.positionService = new
|
|
2305
|
+
super(e, t, s), this.type = "tooltip", this.renderType = H.HTML, this.isEventListenerAdded = !1, this.positionService = new et(), this.handleShowTooltip = (n) => {
|
|
2306
2306
|
const a = n.detail.data || n.detail.items;
|
|
2307
2307
|
let i;
|
|
2308
2308
|
const r = this.formatItems(this.getItems(n));
|
|
@@ -2339,7 +2339,7 @@ class ir extends z {
|
|
|
2339
2339
|
const t = this.getOptions(), s = y(t, "tooltip", "truncation", "type"), n = y(t, "tooltip", "truncation", "threshold"), a = y(t, "tooltip", "truncation", "numCharacter");
|
|
2340
2340
|
return s !== Ie.NONE ? e.map((i) => {
|
|
2341
2341
|
const r = i.labelIcon ? 12 : 0;
|
|
2342
|
-
return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + r > n && (i.label =
|
|
2342
|
+
return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + r > n && (i.label = Ge(i.label, s, a)), i.value && i.value.length > n && (i.value = Ge(i.value, s, a)), i;
|
|
2343
2343
|
}) : e;
|
|
2344
2344
|
}
|
|
2345
2345
|
getTooltipHTML(e) {
|
|
@@ -2361,10 +2361,10 @@ class ir extends z {
|
|
|
2361
2361
|
if (n)
|
|
2362
2362
|
return n(e, t);
|
|
2363
2363
|
if (typeof e.getTime == "function")
|
|
2364
|
-
return
|
|
2364
|
+
return Ut(e, "MMM d, yyyy");
|
|
2365
2365
|
try {
|
|
2366
2366
|
if (typeof e == "string" && /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(e))
|
|
2367
|
-
return
|
|
2367
|
+
return Ut(Date.parse(e), "MMM d, yyyy");
|
|
2368
2368
|
} catch {
|
|
2369
2369
|
}
|
|
2370
2370
|
return e.toLocaleString();
|
|
@@ -2384,7 +2384,7 @@ class ir extends z {
|
|
|
2384
2384
|
const t = this.services.domUtils.getHolder(), s = this.tooltip.node(), n = this.getOptions(), a = y(n, "zoomBar", "top", "enabled");
|
|
2385
2385
|
let i = y(e, "detail", "mousePosition");
|
|
2386
2386
|
if (!i)
|
|
2387
|
-
i =
|
|
2387
|
+
i = Je(y(e, "detail", "event"), t);
|
|
2388
2388
|
else {
|
|
2389
2389
|
const h = y(n, "zoomBar", "top", "type"), u = de.height[h];
|
|
2390
2390
|
a && (i[1] += u + de.spacerHeight);
|
|
@@ -2420,7 +2420,7 @@ class ir extends z {
|
|
|
2420
2420
|
this.positionService.setElement(s, p);
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
|
-
const
|
|
2423
|
+
const Zs = class je extends z {
|
|
2424
2424
|
constructor() {
|
|
2425
2425
|
super(...arguments), this.type = "grid-brush", this.renderType = H.SVG, this.selectionSelector = "rect.selection", this.frontSelectionSelector = "rect.frontSelection";
|
|
2426
2426
|
}
|
|
@@ -2443,9 +2443,9 @@ const Re = class Re extends z {
|
|
|
2443
2443
|
const m = (L) => {
|
|
2444
2444
|
const O = L[1] - L[0];
|
|
2445
2445
|
let k = "0," + O.toString();
|
|
2446
|
-
const I = Math.floor(l /
|
|
2446
|
+
const I = Math.floor(l / je.DASH_LENGTH), F = I * je.DASH_LENGTH;
|
|
2447
2447
|
for (let P = 0; P < I; P++)
|
|
2448
|
-
k += "," +
|
|
2448
|
+
k += "," + je.DASH_LENGTH;
|
|
2449
2449
|
k += "," + (l - F), I % 2 === 1 && (k += ",0"), k += "," + O.toString(), k += "," + l.toString(), u.attr("stroke-dasharray", k);
|
|
2450
2450
|
}, b = (L) => {
|
|
2451
2451
|
const O = L.selection;
|
|
@@ -2460,14 +2460,14 @@ const Re = class Re extends z {
|
|
|
2460
2460
|
const O = L.selection;
|
|
2461
2461
|
O !== null && (v(O[0], O[1]), a.call(S.move, null), u.style("display", "none"));
|
|
2462
2462
|
};
|
|
2463
|
-
l != 0 && r != 0 && (S =
|
|
2463
|
+
l != 0 && r != 0 && (S = ms().extent([
|
|
2464
2464
|
[0, 0],
|
|
2465
2465
|
[r - 1, l]
|
|
2466
2466
|
]).on("start brush end", b).on("end.brushed", T), a.call(S));
|
|
2467
2467
|
const w = this.services.zoom.getZoomRatio();
|
|
2468
2468
|
n.on("click", function(L) {
|
|
2469
2469
|
if (L.shiftKey) {
|
|
2470
|
-
const O = this.services.domUtils.getHolder(), k =
|
|
2470
|
+
const O = this.services.domUtils.getHolder(), k = Je(a.node(), O)[0];
|
|
2471
2471
|
let I = k - r * w / 2;
|
|
2472
2472
|
I < 0 && (I = 0);
|
|
2473
2473
|
let F = k + r * w / 2;
|
|
@@ -2477,11 +2477,11 @@ const Re = class Re extends z {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
2479
|
};
|
|
2480
|
-
|
|
2481
|
-
let
|
|
2482
|
-
class
|
|
2480
|
+
Zs.DASH_LENGTH = 4;
|
|
2481
|
+
let lc = Zs;
|
|
2482
|
+
class cc extends z {
|
|
2483
2483
|
constructor() {
|
|
2484
|
-
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 =
|
|
2484
|
+
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;
|
|
2485
2485
|
}
|
|
2486
2486
|
init() {
|
|
2487
2487
|
this.services.events.addEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
@@ -2514,7 +2514,7 @@ class rc extends z {
|
|
|
2514
2514
|
const { cartesianScales: h } = this.services, u = h.getMainXScale(), g = h.getMainYScale(), m = h.getMainXScaleType();
|
|
2515
2515
|
if (u && m === te.TIME) {
|
|
2516
2516
|
let b = this.services.zoom.getZoomBarData();
|
|
2517
|
-
if (
|
|
2517
|
+
if (Os(b) || b.length === 1)
|
|
2518
2518
|
return;
|
|
2519
2519
|
this.xScale = u.copy(), this.yScale = g.copy();
|
|
2520
2520
|
const v = this.services.zoom.getDefaultZoomBarDomain(b);
|
|
@@ -2528,17 +2528,17 @@ class rc extends z {
|
|
|
2528
2528
|
T && T[0] && T[1] && (T[0] = new Date(T[0]), T[1] = new Date(T[1])), T && !(S && S[0].valueOf() === T[0].valueOf() && S[1].valueOf() === T[1].valueOf()) ? this.model.set(
|
|
2529
2529
|
{
|
|
2530
2530
|
// use a new object instead of newInitialZoomDomain
|
|
2531
|
-
initialZoomDomain:
|
|
2532
|
-
zoomDomain: T ?
|
|
2531
|
+
initialZoomDomain: Re([], T),
|
|
2532
|
+
zoomDomain: T ? Re([], T) : v
|
|
2533
2533
|
},
|
|
2534
2534
|
{ skipUpdate: !0 }
|
|
2535
2535
|
) : T === null && S !== null && this.model.set(
|
|
2536
2536
|
{
|
|
2537
2537
|
initialZoomDomain: null,
|
|
2538
|
-
zoomDomain:
|
|
2538
|
+
zoomDomain: Re([], v)
|
|
2539
2539
|
},
|
|
2540
2540
|
{ skipUpdate: !0 }
|
|
2541
|
-
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(
|
|
2541
|
+
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Qe(b, (O) => O.value));
|
|
2542
2542
|
const w = this.model.get("zoomDomain");
|
|
2543
2543
|
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)) {
|
|
2544
2544
|
const O = i.highlightStartMapsTo, k = i.highlightEndMapsTo, I = i.color, F = i.labelMapsTo;
|
|
@@ -2629,7 +2629,7 @@ class rc extends z {
|
|
|
2629
2629
|
E.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", e[0]).attr("y", s / 2 - 1).attr("width", e[1] - e[0]).attr("height", 2);
|
|
2630
2630
|
}
|
|
2631
2631
|
renderZoomBarArea(e, t, s, n) {
|
|
2632
|
-
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (v, S, T) => (w) => a.getValueFromScale(v, S, T, w), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = y(this.getOptions(), "zoomBar", V.TOP, "type"), g = de.height[u], m =
|
|
2632
|
+
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (v, S, T) => (w) => a.getValueFromScale(v, S, T, w), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = y(this.getOptions(), "zoomBar", V.TOP, "type"), g = de.height[u], m = kt().x((v) => p(v)).y0(g).y1((v) => g - h(v)), b = E.appendOrSelect(e, t).datum(s).attr("d", m);
|
|
2633
2633
|
n && b.attr("clip-path", `url(#${n})`);
|
|
2634
2634
|
}
|
|
2635
2635
|
updateClipPath(e, t, s, n, a, i) {
|
|
@@ -2657,7 +2657,7 @@ class rc extends z {
|
|
|
2657
2657
|
"zoomBar",
|
|
2658
2658
|
V.TOP,
|
|
2659
2659
|
"type"
|
|
2660
|
-
), i = de.height[a], r =
|
|
2660
|
+
), i = de.height[a], r = It()([
|
|
2661
2661
|
[t, i],
|
|
2662
2662
|
[s, i]
|
|
2663
2663
|
]);
|
|
@@ -2673,9 +2673,9 @@ class rc extends z {
|
|
|
2673
2673
|
this.brush.on("start brush end", null), this.services.events.removeEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
2674
2674
|
}
|
|
2675
2675
|
}
|
|
2676
|
-
class
|
|
2676
|
+
class dc extends z {
|
|
2677
2677
|
constructor(e, t) {
|
|
2678
|
-
super(e, t), this.type = "threshold", this.renderType = H.SVG, this.positionService = new
|
|
2678
|
+
super(e, t), this.type = "threshold", this.renderType = H.SVG, this.positionService = new et();
|
|
2679
2679
|
}
|
|
2680
2680
|
render(e = !1) {
|
|
2681
2681
|
const t = y(this.getOptions(), "axes"), s = [];
|
|
@@ -2746,11 +2746,11 @@ class oc extends z {
|
|
|
2746
2746
|
getFormattedValue(e) {
|
|
2747
2747
|
const { value: t, axisPosition: s } = e, n = this.getOptions();
|
|
2748
2748
|
if (this.services.cartesianScales.getScaleTypeByPosition(s) === te.TIME) {
|
|
2749
|
-
const i = [V.LEFT, V.RIGHT].includes(s), r = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : r, d = y(n, "timeScale"), p =
|
|
2749
|
+
const i = [V.LEFT, V.RIGHT].includes(s), r = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : r, d = y(n, "timeScale"), p = ut(
|
|
2750
2750
|
c.ticks(),
|
|
2751
2751
|
y(d, "timeInterval")
|
|
2752
2752
|
);
|
|
2753
|
-
return
|
|
2753
|
+
return pt(t, 0, c.ticks(), p, d);
|
|
2754
2754
|
}
|
|
2755
2755
|
return t.toLocaleString("en");
|
|
2756
2756
|
}
|
|
@@ -2762,7 +2762,7 @@ class oc extends z {
|
|
|
2762
2762
|
).classed("hidden", !0);
|
|
2763
2763
|
}
|
|
2764
2764
|
setThresholdLabelPosition({ event: e, datum: t }) {
|
|
2765
|
-
const s = this.services.domUtils.getHolder(), n =
|
|
2765
|
+
const s = this.services.domUtils.getHolder(), n = Je(e, s), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
|
|
2766
2766
|
this.label.html(`${t.label || "Threshold"}: ${a}`).style("background-color", t.fillColor);
|
|
2767
2767
|
const i = this.label.node(), r = this.positionService.findBestPlacementAt(
|
|
2768
2768
|
{
|
|
@@ -2811,9 +2811,9 @@ class oc extends z {
|
|
|
2811
2811
|
});
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
|
-
class
|
|
2814
|
+
class hc extends z {
|
|
2815
2815
|
constructor(e, t) {
|
|
2816
|
-
super(e, t), this.type = "highlight", this.renderType = H.SVG, this.positionService = new
|
|
2816
|
+
super(e, t), this.type = "highlight", this.renderType = H.SVG, this.positionService = new et(), this.highlightStrokeWidth = 1;
|
|
2817
2817
|
}
|
|
2818
2818
|
render(e = !1) {
|
|
2819
2819
|
const t = y(this.getOptions(), "axes"), s = [];
|
|
@@ -2869,7 +2869,7 @@ class lc extends z {
|
|
|
2869
2869
|
});
|
|
2870
2870
|
}
|
|
2871
2871
|
}
|
|
2872
|
-
class
|
|
2872
|
+
class uc extends ir {
|
|
2873
2873
|
getItems(e) {
|
|
2874
2874
|
if (e.detail.items)
|
|
2875
2875
|
return e.detail.items;
|
|
@@ -2956,7 +2956,7 @@ class cc extends ir {
|
|
|
2956
2956
|
return p;
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
|
-
class
|
|
2959
|
+
class pc extends z {
|
|
2960
2960
|
constructor() {
|
|
2961
2961
|
super(...arguments), this.type = "alluvial", this.renderType = H.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
|
|
2962
2962
|
}
|
|
@@ -3054,7 +3054,7 @@ class dc extends z {
|
|
|
3054
3054
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
3055
3055
|
}
|
|
3056
3056
|
addLineEventListener() {
|
|
3057
|
-
const e = this.getOptions(), t = this, s =
|
|
3057
|
+
const e = this.getOptions(), t = this, s = gt((n, a = "mouseover") => {
|
|
3058
3058
|
const i = t.parent.selectAll("path.link").transition().call(
|
|
3059
3059
|
(r) => t.services.transitions.setupTransition({
|
|
3060
3060
|
transition: r,
|
|
@@ -3112,7 +3112,7 @@ class dc extends z {
|
|
|
3112
3112
|
});
|
|
3113
3113
|
}
|
|
3114
3114
|
addNodeEventListener() {
|
|
3115
|
-
const e = this, t =
|
|
3115
|
+
const e = this, t = gt((s = [], n = "mouseover") => {
|
|
3116
3116
|
if (n === "mouseout" || s.length === 0) {
|
|
3117
3117
|
e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", pe.opacity.default);
|
|
3118
3118
|
return;
|
|
@@ -3129,11 +3129,11 @@ class dc extends z {
|
|
|
3129
3129
|
e.parent.selectAll(".node-group").on("mouseover", function(s, n) {
|
|
3130
3130
|
const a = x(this), i = [];
|
|
3131
3131
|
if (e.traverse({ link: "sourceLinks", node: "target" }, n, i), e.traverse({ link: "targetLinks", node: "source" }, n, i), i.length) {
|
|
3132
|
-
const r =
|
|
3132
|
+
const r = Ve(a.attr("transform"));
|
|
3133
3133
|
if (a.attr("transform", `translate(${r.x - 2}, ${r.y})`), a.classed("node-hovered", !0).selectAll("rect.node").attr("width", 8), n.x0 - 2 === 0) {
|
|
3134
3134
|
const c = e.services.domUtils.generateElementIDString(
|
|
3135
3135
|
`alluvial-node-title-${n.index}`
|
|
3136
|
-
), d = e.parent.select(`g#${c}`), p =
|
|
3136
|
+
), d = e.parent.select(`g#${c}`), p = Ve(d.attr("transform"));
|
|
3137
3137
|
d.attr("transform", `translate(${p.x + 4},${p.y})`);
|
|
3138
3138
|
}
|
|
3139
3139
|
const l = e.services.domUtils.generateElementIDString(
|
|
@@ -3160,11 +3160,11 @@ class dc extends z {
|
|
|
3160
3160
|
datum: n
|
|
3161
3161
|
});
|
|
3162
3162
|
}).on("mouseout", function(s, n) {
|
|
3163
|
-
const a = x(this), i =
|
|
3163
|
+
const a = x(this), i = Ve(a.attr("transform"));
|
|
3164
3164
|
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) {
|
|
3165
3165
|
const l = e.services.domUtils.generateElementIDString(
|
|
3166
3166
|
`alluvial-node-title-${n.index}`
|
|
3167
|
-
), c = e.parent.select(`g#${l}`), d =
|
|
3167
|
+
), c = e.parent.select(`g#${l}`), d = Ve(c.attr("transform"));
|
|
3168
3168
|
c.attr("transform", `translate(${d.x - 4},${d.y})`);
|
|
3169
3169
|
}
|
|
3170
3170
|
const r = e.services.domUtils.generateElementIDString(
|
|
@@ -3195,7 +3195,7 @@ class dc extends z {
|
|
|
3195
3195
|
this.parent.selectAll("path.line,.node-group").on("mouseover", null).on("mousemove", null).on("click", null).on("mouseout", null);
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
|
-
class
|
|
3198
|
+
class gc extends z {
|
|
3199
3199
|
constructor() {
|
|
3200
3200
|
super(...arguments), this.type = "grid", this.renderType = H.SVG;
|
|
3201
3201
|
}
|
|
@@ -3204,7 +3204,7 @@ class hc extends z {
|
|
|
3204
3204
|
this.drawBackdrop(t, s), !(!t && !s) && (t && (E.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(e)), s && (E.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(e)));
|
|
3205
3205
|
}
|
|
3206
3206
|
drawXGrid(e) {
|
|
3207
|
-
const t = this.parent, s = this.backdrop.attr("height"), n = this.services.cartesianScales.getMainXScale(), a =
|
|
3207
|
+
const t = this.parent, s = this.backdrop.attr("height"), n = this.services.cartesianScales.getMainXScale(), a = Rt(n).tickSizeInner(-s).tickSizeOuter(0);
|
|
3208
3208
|
if (y(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
|
|
3209
3209
|
const l = this.services.cartesianScales.getDomainAxisPosition(), c = y(this.getOptions(), "axes", l, "ticks", "values");
|
|
3210
3210
|
c && a.tickValues(c);
|
|
@@ -3222,7 +3222,7 @@ class hc extends z {
|
|
|
3222
3222
|
).call(a) : r.call(a), this.cleanGrid(r);
|
|
3223
3223
|
}
|
|
3224
3224
|
drawYGrid(e) {
|
|
3225
|
-
const t = this.parent, s = this.backdrop.attr("width"), n = this.services.cartesianScales.getMainYScale(), a =
|
|
3225
|
+
const t = this.parent, s = this.backdrop.attr("width"), n = this.services.cartesianScales.getMainYScale(), a = fs(n).tickSizeInner(-s).tickSizeOuter(0);
|
|
3226
3226
|
if (y(this.getOptions(), "grid", "y", "alignWithAxisTicks")) {
|
|
3227
3227
|
const l = this.services.cartesianScales.getRangeAxisPosition(), c = y(this.getOptions(), "axes", l, "ticks", "values");
|
|
3228
3228
|
c && a.tickValues(c);
|
|
@@ -3291,7 +3291,7 @@ class hc extends z {
|
|
|
3291
3291
|
e.selectAll("text").remove(), e.select(".domain").remove();
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
|
-
class
|
|
3294
|
+
class mc extends z {
|
|
3295
3295
|
constructor() {
|
|
3296
3296
|
super(...arguments), this.type = "area", this.renderType = H.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
|
|
3297
3297
|
const { hoveredElement: t } = e.detail;
|
|
@@ -3317,7 +3317,7 @@ class uc extends z {
|
|
|
3317
3317
|
render(e = !0) {
|
|
3318
3318
|
const t = this.getComponentContainer({ withinChartClip: !0 }), s = this.getOptions();
|
|
3319
3319
|
let n = [0, 0];
|
|
3320
|
-
const { cartesianScales: a } = this.services, i = a.getOrientation(), r =
|
|
3320
|
+
const { cartesianScales: a } = this.services, i = a.getOrientation(), r = kt().curve(this.services.curves.getD3Curve()).defined((L) => {
|
|
3321
3321
|
const O = a.getRangeIdentifier(), k = L[O];
|
|
3322
3322
|
return k != null;
|
|
3323
3323
|
}), l = this.model.getGroupedData(this.configs.groups), c = y(s, "bounds"), d = c && l && l.length === 1;
|
|
@@ -3353,7 +3353,7 @@ class uc extends z {
|
|
|
3353
3353
|
O = k[I[0]];
|
|
3354
3354
|
}
|
|
3355
3355
|
}
|
|
3356
|
-
|
|
3356
|
+
Zt.appendOrUpdateLinearGradient({
|
|
3357
3357
|
svg: this.parent,
|
|
3358
3358
|
id: this.services.domUtils.generateElementIDString(
|
|
3359
3359
|
`${l[0].name.replace(" ", "")}_${this.gradient_id}`
|
|
@@ -3362,7 +3362,7 @@ class uc extends z {
|
|
|
3362
3362
|
x2: "0%",
|
|
3363
3363
|
y1: "0%",
|
|
3364
3364
|
y2: "100%",
|
|
3365
|
-
stops:
|
|
3365
|
+
stops: Zt.getStops(n, O)
|
|
3366
3366
|
});
|
|
3367
3367
|
} else
|
|
3368
3368
|
this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
|
|
@@ -3407,7 +3407,7 @@ class uc extends z {
|
|
|
3407
3407
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
3408
3408
|
}
|
|
3409
3409
|
}
|
|
3410
|
-
class
|
|
3410
|
+
class fc extends z {
|
|
3411
3411
|
constructor() {
|
|
3412
3412
|
super(...arguments), this.type = "line", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
3413
3413
|
const { hoveredElement: t } = e.detail;
|
|
@@ -3435,7 +3435,7 @@ class pc extends z {
|
|
|
3435
3435
|
a,
|
|
3436
3436
|
i,
|
|
3437
3437
|
s.getOrientation()
|
|
3438
|
-
), c = this.getOptions(), d =
|
|
3438
|
+
), c = this.getOptions(), d = It().x(r).y(l).curve(n.getD3Curve()).defined((g) => {
|
|
3439
3439
|
const m = s.getRangeIdentifier(g), b = g[m];
|
|
3440
3440
|
return b != null;
|
|
3441
3441
|
});
|
|
@@ -3489,9 +3489,9 @@ class pc extends z {
|
|
|
3489
3489
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
|
-
const
|
|
3492
|
+
const cs = 5;
|
|
3493
3493
|
function rr(o, e) {
|
|
3494
|
-
return o > e -
|
|
3494
|
+
return o > e - cs && o < e + cs;
|
|
3495
3495
|
}
|
|
3496
3496
|
class Xs extends z {
|
|
3497
3497
|
constructor() {
|
|
@@ -3539,7 +3539,7 @@ class Xs extends z {
|
|
|
3539
3539
|
const L = this.services.cartesianScales.getDomainValue(w);
|
|
3540
3540
|
return v.includes(L);
|
|
3541
3541
|
});
|
|
3542
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
3542
|
+
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, {
|
|
3543
3543
|
mousePosition: [t, s],
|
|
3544
3544
|
hoveredElement: h,
|
|
3545
3545
|
data: this.formatTooltipData(b)
|
|
@@ -3560,7 +3560,7 @@ class Xs extends z {
|
|
|
3560
3560
|
this.isEventListenerAdded = !0;
|
|
3561
3561
|
const e = this, t = this.services.domUtils.getHolder(), s = this.model.getDisplayData();
|
|
3562
3562
|
let n = function(a) {
|
|
3563
|
-
const i =
|
|
3563
|
+
const i = Je(a, e.parent.node());
|
|
3564
3564
|
e.showRuler(a, i);
|
|
3565
3565
|
};
|
|
3566
3566
|
if (s.length > 100) {
|
|
@@ -3581,7 +3581,7 @@ class Xs extends z {
|
|
|
3581
3581
|
this.backdrop = E.appendOrSelect(e, "svg.chart-grid-backdrop");
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
|
-
class
|
|
3584
|
+
class Vt extends z {
|
|
3585
3585
|
constructor() {
|
|
3586
3586
|
super(...arguments), this.type = "scatter", this.renderType = H.SVG, this.handleChartHolderOnHover = () => {
|
|
3587
3587
|
if (!this.parent)
|
|
@@ -3850,10 +3850,10 @@ class Ys extends z {
|
|
|
3850
3850
|
let h;
|
|
3851
3851
|
switch (t) {
|
|
3852
3852
|
case V.LEFT:
|
|
3853
|
-
h =
|
|
3853
|
+
h = fs;
|
|
3854
3854
|
break;
|
|
3855
3855
|
case V.BOTTOM:
|
|
3856
|
-
h =
|
|
3856
|
+
h = Rt;
|
|
3857
3857
|
break;
|
|
3858
3858
|
case V.RIGHT:
|
|
3859
3859
|
h = Js;
|
|
@@ -3895,12 +3895,12 @@ class Ys extends z {
|
|
|
3895
3895
|
let N;
|
|
3896
3896
|
const ae = y(b, "ticks", "formatter");
|
|
3897
3897
|
if (v) {
|
|
3898
|
-
const B =
|
|
3898
|
+
const B = ut(
|
|
3899
3899
|
W.tickValues(),
|
|
3900
3900
|
y(s, "timeScale", "timeInterval")
|
|
3901
3901
|
);
|
|
3902
|
-
ae === null ? N = (j, q) =>
|
|
3903
|
-
const J =
|
|
3902
|
+
ae === null ? N = (j, q) => pt(j, q, W.tickValues(), B, M) : N = (j, q) => {
|
|
3903
|
+
const J = pt(
|
|
3904
3904
|
j,
|
|
3905
3905
|
q,
|
|
3906
3906
|
W.tickValues(),
|
|
@@ -3912,24 +3912,24 @@ class Ys extends z {
|
|
|
3912
3912
|
} else
|
|
3913
3913
|
ae === null ? re === te.LINEAR && (N = (B) => B.toLocaleString()) : N = ae;
|
|
3914
3914
|
W.tickFormat(N);
|
|
3915
|
-
const [
|
|
3916
|
-
let
|
|
3915
|
+
const [tt, st] = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
3916
|
+
let _e;
|
|
3917
3917
|
if (k) {
|
|
3918
3918
|
if (v)
|
|
3919
3919
|
k.forEach((B, j) => {
|
|
3920
3920
|
B.getTime === void 0 && (k[j] = new Date(B));
|
|
3921
|
-
}),
|
|
3921
|
+
}), _e = k.filter((B) => {
|
|
3922
3922
|
const j = B.getTime();
|
|
3923
|
-
return j >= new Date(
|
|
3923
|
+
return j >= new Date(tt).getTime() && j <= new Date(st).getTime();
|
|
3924
3924
|
});
|
|
3925
3925
|
else if (w === te.LABELS) {
|
|
3926
3926
|
const B = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
3927
|
-
|
|
3927
|
+
_e = k.filter((j) => B.includes(j));
|
|
3928
3928
|
} else
|
|
3929
|
-
|
|
3930
|
-
(B) => B >=
|
|
3929
|
+
_e = k.filter(
|
|
3930
|
+
(B) => B >= tt && B <= st
|
|
3931
3931
|
);
|
|
3932
|
-
W.tickValues(
|
|
3932
|
+
W.tickValues(_e);
|
|
3933
3933
|
}
|
|
3934
3934
|
switch (t) {
|
|
3935
3935
|
case V.LEFT:
|
|
@@ -3945,15 +3945,15 @@ class Ys extends z {
|
|
|
3945
3945
|
g.attr("transform", `translate(0, ${this.margins.top})`);
|
|
3946
3946
|
break;
|
|
3947
3947
|
}
|
|
3948
|
-
const
|
|
3948
|
+
const Gt = this.model.isDataEmpty();
|
|
3949
3949
|
if (b.title) {
|
|
3950
3950
|
const B = E.appendOrSelect(l, "text.axis-title").html(
|
|
3951
|
-
|
|
3951
|
+
Gt || L ? "" : b.title
|
|
3952
3952
|
), j = y(b, "titleOrientation");
|
|
3953
3953
|
let q;
|
|
3954
3954
|
switch (t) {
|
|
3955
3955
|
case V.LEFT:
|
|
3956
|
-
j ===
|
|
3956
|
+
j === Wt.RIGHT ? B.attr("transform", "rotate(90)").attr("y", 0).attr("x", p.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : B.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(p.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
3957
3957
|
break;
|
|
3958
3958
|
case V.BOTTOM:
|
|
3959
3959
|
B.attr(
|
|
@@ -3962,7 +3962,7 @@ class Ys extends z {
|
|
|
3962
3962
|
).style("text-anchor", "middle");
|
|
3963
3963
|
break;
|
|
3964
3964
|
case V.RIGHT:
|
|
3965
|
-
j ===
|
|
3965
|
+
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");
|
|
3966
3966
|
break;
|
|
3967
3967
|
case V.TOP:
|
|
3968
3968
|
q = E.getSVGElementSize(B, {
|
|
@@ -3975,7 +3975,7 @@ class Ys extends z {
|
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
3977
|
if (v) {
|
|
3978
|
-
const B =
|
|
3978
|
+
const B = ut(
|
|
3979
3979
|
W.tickValues(),
|
|
3980
3980
|
y(s, "timeScale", "timeInterval")
|
|
3981
3981
|
), j = M.showDayName, q = g;
|
|
@@ -3985,7 +3985,7 @@ class Ys extends z {
|
|
|
3985
3985
|
name: "axis-update",
|
|
3986
3986
|
animate: e
|
|
3987
3987
|
})
|
|
3988
|
-
)), g = g.call(W), q.selectAll(".tick").data(W.tickValues(), p).order().select("text").style("font-weight", (oe,
|
|
3988
|
+
)), g = g.call(W), q.selectAll(".tick").data(W.tickValues(), p).order().select("text").style("font-weight", (oe, Ne) => Cn(oe, Ne, W.tickValues(), B, j) ? "bold" : "normal");
|
|
3989
3989
|
} else
|
|
3990
3990
|
!e || !u ? g = g.call(W) : g = g.transition().call(
|
|
3991
3991
|
(B) => this.services.transitions.setupTransition({
|
|
@@ -3997,11 +3997,11 @@ class Ys extends z {
|
|
|
3997
3997
|
if (m.call(W), t === V.BOTTOM || t === V.TOP) {
|
|
3998
3998
|
let B = !1;
|
|
3999
3999
|
const j = y(b, "ticks", "rotation");
|
|
4000
|
-
if (j ===
|
|
4000
|
+
if (j === nt.ALWAYS)
|
|
4001
4001
|
B = !0;
|
|
4002
|
-
else if (j ===
|
|
4002
|
+
else if (j === nt.NEVER)
|
|
4003
4003
|
B = !1;
|
|
4004
|
-
else if (!j || j ===
|
|
4004
|
+
else if (!j || j === nt.AUTO)
|
|
4005
4005
|
if (p.step)
|
|
4006
4006
|
B = m.selectAll("g.tick text").nodes().some(
|
|
4007
4007
|
(J) => E.getSVGElementSize(J, {
|
|
@@ -4015,8 +4015,8 @@ class Ys extends z {
|
|
|
4015
4015
|
}).width;
|
|
4016
4016
|
let oe;
|
|
4017
4017
|
m.selectAll("g.tick").each(function() {
|
|
4018
|
-
const
|
|
4019
|
-
C !== null && oe +
|
|
4018
|
+
const Ne = x(this), C = parseFloat(y(ge(this), "tx"));
|
|
4019
|
+
C !== null && oe + Ne.text().length * J * 0.8 >= C && (B = !0), oe = C;
|
|
4020
4020
|
}), q.remove();
|
|
4021
4021
|
}
|
|
4022
4022
|
B ? (A || (W.ticks(
|
|
@@ -4030,9 +4030,9 @@ class Ys extends z {
|
|
|
4030
4030
|
l.selectAll("g.ticks g.tick").html(j);
|
|
4031
4031
|
const q = this;
|
|
4032
4032
|
l.selectAll("g.tick text").data(B).text(function(J) {
|
|
4033
|
-
return J.length > F ? (q.truncation[t] = !0,
|
|
4033
|
+
return J.length > F ? (q.truncation[t] = !0, Ge(J, I, P)) : J;
|
|
4034
4034
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(B).text(function(J) {
|
|
4035
|
-
return J.length > F ?
|
|
4035
|
+
return J.length > F ? Ge(J, I, P) : J;
|
|
4036
4036
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(B);
|
|
4037
4037
|
}
|
|
4038
4038
|
}
|
|
@@ -4082,7 +4082,7 @@ class Ys extends z {
|
|
|
4082
4082
|
}
|
|
4083
4083
|
getNumberOfFittingTicks(e, t, s) {
|
|
4084
4084
|
const n = Math.floor(e / (t * s));
|
|
4085
|
-
return
|
|
4085
|
+
return $s(n, 2, ke.ticks.number);
|
|
4086
4086
|
}
|
|
4087
4087
|
destroy() {
|
|
4088
4088
|
const e = this.getComponentContainer(), { position: t } = this.configs;
|
|
@@ -4193,7 +4193,7 @@ class or extends Ys {
|
|
|
4193
4193
|
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);
|
|
4194
4194
|
}
|
|
4195
4195
|
}
|
|
4196
|
-
class
|
|
4196
|
+
class vc extends z {
|
|
4197
4197
|
constructor() {
|
|
4198
4198
|
super(...arguments), this.type = "2D-axes", this.renderType = H.SVG, this.children = {}, this.thresholds = [], this.margins = {
|
|
4199
4199
|
top: 0,
|
|
@@ -4257,13 +4257,13 @@ class lr extends z {
|
|
|
4257
4257
|
t ? this.renderSkeleton(t) : this.removeSkeleton();
|
|
4258
4258
|
}
|
|
4259
4259
|
renderSkeleton(e) {
|
|
4260
|
-
if (this.configs.skeleton ===
|
|
4260
|
+
if (this.configs.skeleton === Ue.GRID)
|
|
4261
4261
|
this.renderGridSkeleton(e);
|
|
4262
|
-
else if (this.configs.skeleton ===
|
|
4262
|
+
else if (this.configs.skeleton === Ue.VERT_OR_HORIZ)
|
|
4263
4263
|
this.renderVertOrHorizSkeleton(e);
|
|
4264
|
-
else if (this.configs.skeleton ===
|
|
4264
|
+
else if (this.configs.skeleton === Ue.PIE)
|
|
4265
4265
|
this.renderPieSkeleton(e);
|
|
4266
|
-
else if (this.configs.skeleton ===
|
|
4266
|
+
else if (this.configs.skeleton === Ue.DONUT)
|
|
4267
4267
|
this.renderDonutSkeleton(e);
|
|
4268
4268
|
else
|
|
4269
4269
|
throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
|
|
@@ -4319,7 +4319,7 @@ class lr extends z {
|
|
|
4319
4319
|
useAttrs: !0
|
|
4320
4320
|
}), r = E.appendOrSelect(n, "svg.chart-skeleton").attr("width", a).attr("height", i), l = t === 0 ? "pie" : "donut", c = y(this.getOptions(), l, "alignment");
|
|
4321
4321
|
E.appendOrSelect(r, "rect.chart-skeleton-area-container").attr("width", a).attr("height", i).attr("fill", "none");
|
|
4322
|
-
const d =
|
|
4322
|
+
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(r, "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(
|
|
4323
4323
|
"fill",
|
|
4324
4324
|
s ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
|
|
4325
4325
|
);
|
|
@@ -4356,7 +4356,7 @@ class lr extends z {
|
|
|
4356
4356
|
this.parent.select(".chart-skeleton").remove();
|
|
4357
4357
|
}
|
|
4358
4358
|
}
|
|
4359
|
-
class
|
|
4359
|
+
class yc extends z {
|
|
4360
4360
|
constructor() {
|
|
4361
4361
|
super(...arguments), this.type = "boxplot", this.renderType = H.SVG;
|
|
4362
4362
|
}
|
|
@@ -4616,7 +4616,7 @@ class mc extends z {
|
|
|
4616
4616
|
});
|
|
4617
4617
|
}
|
|
4618
4618
|
}
|
|
4619
|
-
class
|
|
4619
|
+
class bc extends z {
|
|
4620
4620
|
constructor() {
|
|
4621
4621
|
super(...arguments), this.type = "zero-line", this.renderType = H.SVG;
|
|
4622
4622
|
}
|
|
@@ -4649,12 +4649,12 @@ class fc extends z {
|
|
|
4649
4649
|
).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
|
|
4650
4650
|
}
|
|
4651
4651
|
}
|
|
4652
|
-
class
|
|
4652
|
+
class Ec extends Vt {
|
|
4653
4653
|
constructor() {
|
|
4654
4654
|
super(...arguments), this.type = "bubble", this.renderType = H.SVG;
|
|
4655
4655
|
}
|
|
4656
4656
|
getRadiusScale(e) {
|
|
4657
|
-
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()), r = a.length > 0, l = r ?
|
|
4657
|
+
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()), r = a.length > 0, l = r ? Qe(a) : [1, 1];
|
|
4658
4658
|
return Oe().domain(l).range(r ? t.bubble.radiusRange(i, n) : [4, 4]);
|
|
4659
4659
|
}
|
|
4660
4660
|
styleCircles(e, t) {
|
|
@@ -4697,7 +4697,7 @@ class vc extends $t {
|
|
|
4697
4697
|
];
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
|
-
class
|
|
4700
|
+
class Sc extends z {
|
|
4701
4701
|
constructor() {
|
|
4702
4702
|
super(...arguments), this.type = "bullet", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
4703
4703
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -4910,14 +4910,14 @@ function hr(o, e) {
|
|
|
4910
4910
|
}
|
|
4911
4911
|
function ur(o, e) {
|
|
4912
4912
|
return typeof e == "string" && (e = o.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
|
|
4913
|
-
return
|
|
4914
|
-
}) } :
|
|
4913
|
+
return ds(o, t);
|
|
4914
|
+
}) } : ds(o, e);
|
|
4915
4915
|
}
|
|
4916
|
-
function
|
|
4917
|
-
var t = e.id, s = e.bbox, n = e.properties == null ? {} : e.properties, a =
|
|
4916
|
+
function ds(o, e) {
|
|
4917
|
+
var t = e.id, s = e.bbox, n = e.properties == null ? {} : e.properties, a = Bt(o, e);
|
|
4918
4918
|
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 };
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function Bt(o, e) {
|
|
4921
4921
|
var t = dr(o.transform), s = o.arcs;
|
|
4922
4922
|
function n(d, p) {
|
|
4923
4923
|
p.length && p.pop();
|
|
@@ -5019,7 +5019,7 @@ function gr(o) {
|
|
|
5019
5019
|
return Math.abs(a);
|
|
5020
5020
|
}
|
|
5021
5021
|
function mr(o) {
|
|
5022
|
-
return
|
|
5022
|
+
return Bt(o, fr.apply(this, arguments));
|
|
5023
5023
|
}
|
|
5024
5024
|
function fr(o, e) {
|
|
5025
5025
|
var t = {}, s = [], n = [];
|
|
@@ -5045,7 +5045,7 @@ function fr(o, e) {
|
|
|
5045
5045
|
}), s.push(l);
|
|
5046
5046
|
}
|
|
5047
5047
|
function r(l) {
|
|
5048
|
-
return gr(
|
|
5048
|
+
return gr(Bt(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
|
|
5049
5049
|
}
|
|
5050
5050
|
return s.forEach(function(l) {
|
|
5051
5051
|
if (!l._) {
|
|
@@ -5080,7 +5080,7 @@ function fr(o, e) {
|
|
|
5080
5080
|
})
|
|
5081
5081
|
};
|
|
5082
5082
|
}
|
|
5083
|
-
class
|
|
5083
|
+
class xc extends Xs {
|
|
5084
5084
|
constructor() {
|
|
5085
5085
|
super(...arguments), this.type = "ruler-binned", this.renderType = H.SVG;
|
|
5086
5086
|
}
|
|
@@ -5095,7 +5095,7 @@ class bc extends Xs {
|
|
|
5095
5095
|
return !0;
|
|
5096
5096
|
});
|
|
5097
5097
|
if (b.size() > 0) {
|
|
5098
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
5098
|
+
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Gs(this.elementsToHighlight, b) && this.hideRuler(), b.dispatch("mouseover"), this.elementsToHighlight = b;
|
|
5099
5099
|
const v = x(b.nodes()[0]).datum(), S = parseFloat(Q(v, "data.x0")), T = parseFloat(Q(v, "data.x1")), w = this.model.getActiveDataGroupNames(), L = w.reverse().map((k) => ({
|
|
5100
5100
|
label: k,
|
|
5101
5101
|
value: Q(v, `data.${k}`),
|
|
@@ -5133,52 +5133,52 @@ class bc extends Xs {
|
|
|
5133
5133
|
this.hideRuler();
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
|
-
class
|
|
5136
|
+
class Oc extends Xs {
|
|
5137
5137
|
formatTooltipData(e) {
|
|
5138
5138
|
return e.reverse();
|
|
5139
5139
|
}
|
|
5140
5140
|
}
|
|
5141
|
-
const
|
|
5142
|
-
const t = o.x, s = o.y, n = e.x, a = e.y, i =
|
|
5141
|
+
const Tc = (o, e) => {
|
|
5142
|
+
const t = o.x, s = o.y, n = e.x, a = e.y, i = Dt();
|
|
5143
5143
|
return i.moveTo(t, s), i.lineTo(n, a), i.toString();
|
|
5144
|
-
},
|
|
5145
|
-
const s = o.x, n = o.y, a = e.x, i = e.y, r =
|
|
5144
|
+
}, Lc = (o, e, t = 0.5) => {
|
|
5145
|
+
const s = o.x, n = o.y, a = e.x, i = e.y, r = Dt();
|
|
5146
5146
|
return r.moveTo(s, n), r.lineTo(s + (a - s) * t, n), r.lineTo(s + (a - s) * t, i), r.lineTo(a, i), r.toString();
|
|
5147
|
-
},
|
|
5148
|
-
const i = o.x, r = o.y, l = e.x, c = e.y, d =
|
|
5147
|
+
}, wc = (o, e, t, s, n, a) => {
|
|
5148
|
+
const i = o.x, r = o.y, l = e.x, c = e.y, d = Dt();
|
|
5149
5149
|
return d.moveTo(i, r), d.bezierCurveTo(t, s, n, a, l, c), d.toString();
|
|
5150
|
-
},
|
|
5150
|
+
}, Mc = {
|
|
5151
5151
|
d: "M7 0v8L0 4z",
|
|
5152
5152
|
height: 8,
|
|
5153
5153
|
width: 7.5,
|
|
5154
5154
|
id: "arrowLeft"
|
|
5155
|
-
},
|
|
5155
|
+
}, Ac = {
|
|
5156
5156
|
d: "M0 0v8l7-4z",
|
|
5157
5157
|
height: 8,
|
|
5158
5158
|
width: 7.5,
|
|
5159
5159
|
id: "arrowRight"
|
|
5160
|
-
},
|
|
5160
|
+
}, Cc = {
|
|
5161
5161
|
d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
|
|
5162
5162
|
height: 10,
|
|
5163
5163
|
width: 10,
|
|
5164
5164
|
id: "circle"
|
|
5165
|
-
},
|
|
5165
|
+
}, kc = {
|
|
5166
5166
|
d: "M5.03517654-1e-7l4.99999996 5-4.99999996 5-5-5L2.4517844 2.58339204z",
|
|
5167
5167
|
height: 10,
|
|
5168
5168
|
width: 10,
|
|
5169
5169
|
id: "diamond"
|
|
5170
|
-
},
|
|
5170
|
+
}, Ic = {
|
|
5171
5171
|
d: "M0 .44974747h8v8H0v-3.6830331z",
|
|
5172
5172
|
height: 9,
|
|
5173
5173
|
width: 8,
|
|
5174
5174
|
id: "square"
|
|
5175
|
-
},
|
|
5175
|
+
}, Rc = {
|
|
5176
5176
|
d: "M0 0h1.5v8H0z",
|
|
5177
5177
|
height: 8,
|
|
5178
5178
|
width: 2,
|
|
5179
5179
|
id: "tee"
|
|
5180
5180
|
};
|
|
5181
|
-
class
|
|
5181
|
+
class Dc extends nr {
|
|
5182
5182
|
constructor(e, t, s) {
|
|
5183
5183
|
super(e, t, s), this.type = "color-legend", this.renderType = H.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
|
|
5184
5184
|
const n = this.getComponentContainer(), { width: a } = E.getSVGElementSize(n, {
|
|
@@ -5221,7 +5221,7 @@ class kc extends nr {
|
|
|
5221
5221
|
s.html("");
|
|
5222
5222
|
return;
|
|
5223
5223
|
}
|
|
5224
|
-
const d = !
|
|
5224
|
+
const d = !Os(a), p = In(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");
|
|
5225
5225
|
if (l) {
|
|
5226
5226
|
const I = E.appendOrSelect(s, "g.legend-title");
|
|
5227
5227
|
E.appendOrSelect(I, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
|
|
@@ -5235,15 +5235,15 @@ class kc extends nr {
|
|
|
5235
5235
|
else
|
|
5236
5236
|
for (let I = 1; I < S + 1; I++)
|
|
5237
5237
|
v.push(
|
|
5238
|
-
i ===
|
|
5238
|
+
i === at.LINEAR ? `stop-color-${b}-${r}-${I}` : `fill-${b}-${r}-${I}`
|
|
5239
5239
|
);
|
|
5240
|
-
const T =
|
|
5240
|
+
const T = vs(p[0], p[1]), w = en(T, 3), L = Oe().domain(p).range([0, u]), O = Rt(L).tickSize(0).tickValues(w);
|
|
5241
5241
|
let k;
|
|
5242
5242
|
switch (i) {
|
|
5243
|
-
case
|
|
5243
|
+
case at.LINEAR:
|
|
5244
5244
|
this.drawLinear(v, g, u);
|
|
5245
5245
|
break;
|
|
5246
|
-
case
|
|
5246
|
+
case at.QUANTIZE:
|
|
5247
5247
|
k = this.drawQuantize(
|
|
5248
5248
|
v,
|
|
5249
5249
|
b,
|
|
@@ -5271,7 +5271,7 @@ class kc extends nr {
|
|
|
5271
5271
|
*/
|
|
5272
5272
|
drawQuantize(e, t, s, n, a) {
|
|
5273
5273
|
!s && t === "diverge" && e.splice(e.length / 2, 1);
|
|
5274
|
-
const i =
|
|
5274
|
+
const i = _t().domain(e).range([0, a]);
|
|
5275
5275
|
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;
|
|
5276
5276
|
}
|
|
5277
5277
|
destroy() {
|
|
@@ -5281,7 +5281,7 @@ class kc extends nr {
|
|
|
5281
5281
|
);
|
|
5282
5282
|
}
|
|
5283
5283
|
}
|
|
5284
|
-
class
|
|
5284
|
+
class _c extends sr {
|
|
5285
5285
|
constructor() {
|
|
5286
5286
|
super(...arguments), this.type = "meter-title", this.renderType = H.SVG;
|
|
5287
5287
|
}
|
|
@@ -5374,16 +5374,16 @@ class Ic extends sr {
|
|
|
5374
5374
|
*/
|
|
5375
5375
|
getStatusIconPathString(e) {
|
|
5376
5376
|
switch (e) {
|
|
5377
|
-
case
|
|
5377
|
+
case it.SUCCESS:
|
|
5378
5378
|
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";
|
|
5379
|
-
case
|
|
5379
|
+
case it.DANGER:
|
|
5380
5380
|
return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
|
|
5381
|
-
case
|
|
5381
|
+
case it.WARNING:
|
|
5382
5382
|
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";
|
|
5383
5383
|
}
|
|
5384
5384
|
}
|
|
5385
5385
|
}
|
|
5386
|
-
class
|
|
5386
|
+
class $t extends z {
|
|
5387
5387
|
// Gets the correct width for bars based on options & configurations
|
|
5388
5388
|
getBarWidth() {
|
|
5389
5389
|
const e = this.getOptions();
|
|
@@ -5409,7 +5409,7 @@ class Nt extends z {
|
|
|
5409
5409
|
return !1;
|
|
5410
5410
|
}
|
|
5411
5411
|
}
|
|
5412
|
-
class
|
|
5412
|
+
class Pc extends z {
|
|
5413
5413
|
constructor() {
|
|
5414
5414
|
super(...arguments), this.type = "circle-pack", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
5415
5415
|
const { hoveredElement: t } = e.detail;
|
|
@@ -5418,7 +5418,7 @@ class Rc extends z {
|
|
|
5418
5418
|
transition: s,
|
|
5419
5419
|
name: "legend-hover-circlepack"
|
|
5420
5420
|
})
|
|
5421
|
-
).attr("opacity", (s) => s.data.dataGroupName === t.datum().name ? 1 :
|
|
5421
|
+
).attr("opacity", (s) => s.data.dataGroupName === t.datum().name ? 1 : Pe.circles.fillOpacity);
|
|
5422
5422
|
}, this.handleLegendMouseOut = () => {
|
|
5423
5423
|
this.parent.selectAll("circle.node").transition("legend-mouseout-circlepack").call(
|
|
5424
5424
|
(e) => this.services.transitions.setupTransition({
|
|
@@ -5440,7 +5440,7 @@ class Rc extends z {
|
|
|
5440
5440
|
let a = this.model.getDisplayData();
|
|
5441
5441
|
const i = this.model.hasParentNode(), r = this.model.getHierarchyLevel(), l = this.getOptions(), c = y(l, "canvasZoom", "enabled");
|
|
5442
5442
|
i && y(a, 0, "children") && (a = y(a, 0, "children"));
|
|
5443
|
-
const d =
|
|
5443
|
+
const d = Pt({ children: a }).sum((m) => m.value).sort((m, b) => b.value - m.value), h = tn().size([s, n]).padding((m) => m.depth >= 1 ? Pe.padding.children + 3 : Pe.padding.mainGroup + 3)(d).descendants().splice(1).filter((m) => m.depth <= r), u = t.selectAll("circle.node").data(h);
|
|
5444
5444
|
u.exit().attr("width", 0).attr("height", 0).remove();
|
|
5445
5445
|
const g = u.enter().append("circle").classed("node", !0);
|
|
5446
5446
|
g.merge(u).attr("class", (m) => {
|
|
@@ -5455,7 +5455,7 @@ class Rc extends z {
|
|
|
5455
5455
|
transition: m,
|
|
5456
5456
|
name: "circlepack-leaf-update-enter"
|
|
5457
5457
|
})
|
|
5458
|
-
).attr("r", (m) => m.r).attr("opacity", 1).attr("fill-opacity",
|
|
5458
|
+
).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();
|
|
5459
5459
|
}
|
|
5460
5460
|
// turn off the highlight class on children circles
|
|
5461
5461
|
unhighlightChildren(e) {
|
|
@@ -5465,7 +5465,7 @@ class Rc extends z {
|
|
|
5465
5465
|
// highlight the children circles with a stroke
|
|
5466
5466
|
highlightChildren(e) {
|
|
5467
5467
|
const t = e.map((s) => s.data);
|
|
5468
|
-
this.parent.selectAll("circle.node").filter((s) => t.some((n) => n === s.data) && s.depth > 1).style("stroke",
|
|
5468
|
+
this.parent.selectAll("circle.node").filter((s) => t.some((n) => n === s.data) && s.depth > 1).style("stroke", Pe.circles.hover.stroke);
|
|
5469
5469
|
}
|
|
5470
5470
|
getZoomClass(e) {
|
|
5471
5471
|
return this.model.getHierarchyLevel() === 3 && this.focal && (e.data === this.focal.data || this.focal.children.some((t) => t.data === e.data)) ? "focal" : "non-focal";
|
|
@@ -5480,7 +5480,7 @@ class Rc extends z {
|
|
|
5480
5480
|
setBackgroundListeners() {
|
|
5481
5481
|
const e = x(this.services.domUtils.getMainContainer()), t = this, s = this.parent.selectAll("circle.node");
|
|
5482
5482
|
e.on("click", () => {
|
|
5483
|
-
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(s,
|
|
5483
|
+
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(s, He);
|
|
5484
5484
|
});
|
|
5485
5485
|
}
|
|
5486
5486
|
// Zoom icon to be appended to the label in the tooltip
|
|
@@ -5566,10 +5566,10 @@ class Rc extends z {
|
|
|
5566
5566
|
const n = x(this), a = n.classed("non-focal"), i = y(e.model.getOptions(), "canvasZoom", "enabled");
|
|
5567
5567
|
if (i && e.model.getHierarchyLevel() > 2) {
|
|
5568
5568
|
const r = e.parent.selectAll("circle.node");
|
|
5569
|
-
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(r,
|
|
5569
|
+
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(r, He);
|
|
5570
5570
|
} else if (s.depth === 2 && s.children && !a && i) {
|
|
5571
5571
|
const r = e.parent.selectAll("circle.node");
|
|
5572
|
-
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = s, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(s, r,
|
|
5572
|
+
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = s, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(s, r, He), t.stopPropagation();
|
|
5573
5573
|
}
|
|
5574
5574
|
e.services.events.dispatchEvent(f.CirclePack.CIRCLE_CLICK, {
|
|
5575
5575
|
event: t,
|
|
@@ -5619,7 +5619,7 @@ class yr extends z {
|
|
|
5619
5619
|
}
|
|
5620
5620
|
render(e = !0) {
|
|
5621
5621
|
const t = this, s = this.getComponentContainer(), n = this.getOptions(), { groupMapsTo: a } = n.data, { valueMapsTo: i } = n.pie, r = this.model.getDisplayData().filter((M) => M[i] > 0), l = this.computeRadius();
|
|
5622
|
-
this.arc =
|
|
5622
|
+
this.arc = $e().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = $e().innerRadius(this.getInnerRadius()).outerRadius(l + Z.hoverArc.outerRadiusOffset);
|
|
5623
5623
|
const d = sn().value((M) => M[i]).sort(y(n, "pie", "sortFunction")).padAngle(Z.padAngle)(r), h = E.appendOrSelect(s, "g.slices").attr("role", U.GROUP).attr("data-name", "slices").selectAll("path.slice").data(d, (M) => M.data[a]);
|
|
5624
5624
|
h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(h).attr(
|
|
5625
5625
|
"class",
|
|
@@ -5636,21 +5636,21 @@ class yr extends z {
|
|
|
5636
5636
|
})
|
|
5637
5637
|
).attr("opacity", 1).attr("role", U.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
|
|
5638
5638
|
"aria-label",
|
|
5639
|
-
(M) => `${M[i]}, ${
|
|
5639
|
+
(M) => `${M[i]}, ${zt(M.data[i], r, i) + "%"}`
|
|
5640
5640
|
).attrTween("d", function(M) {
|
|
5641
5641
|
return vr.bind(this)(M, t.arc);
|
|
5642
5642
|
});
|
|
5643
5643
|
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]);
|
|
5644
5644
|
S.exit().attr("opacity", 0).remove();
|
|
5645
5645
|
const T = S.enter().append("text").classed("pie-label", !0), w = [];
|
|
5646
|
-
T.merge(S).style("text-anchor", "middle").text((M) => n.pie.labels.formatter ? n.pie.labels.formatter(M) :
|
|
5646
|
+
T.merge(S).style("text-anchor", "middle").text((M) => n.pie.labels.formatter ? n.pie.labels.formatter(M) : zt(M.data[i], r, i) + "%").datum(function(M) {
|
|
5647
5647
|
const G = l + 7, D = (M.endAngle - M.startAngle) / 2 + M.startAngle, X = D / Math.PI * 180, re = this.getComputedTextLength();
|
|
5648
5648
|
return M.textOffsetX = re / 2, M.textOffsetY = X > 90 && X < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + G) * Math.sin(D), M.yPosition = (M.textOffsetY + G) * -Math.cos(D), M;
|
|
5649
5649
|
}).attr("transform", function(M, G) {
|
|
5650
5650
|
const D = b.length, X = (M.endAngle - M.startAngle) * (180 / Math.PI);
|
|
5651
5651
|
if (G >= D - 2 && X < Z.callout.minSliceDegree) {
|
|
5652
5652
|
let re, W;
|
|
5653
|
-
return M.index === D - 1 ? (re = M.xPosition + Z.callout.offsetX + Z.callout.textMargin + M.textOffsetX, W = M.yPosition - Z.callout.offsetY, M.direction =
|
|
5653
|
+
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, w.push(M)) : (re = M.xPosition - Z.callout.offsetX - M.textOffsetX - Z.callout.textMargin, W = M.yPosition - Z.callout.offsetY, M.direction = rt.LEFT, w.push(M)), `translate(${re}, ${W})`;
|
|
5654
5654
|
}
|
|
5655
5655
|
return `translate(${M.xPosition}, ${M.yPosition})`;
|
|
5656
5656
|
}), this.renderCallouts(w);
|
|
@@ -5668,7 +5668,7 @@ class yr extends z {
|
|
|
5668
5668
|
const n = s.enter().append("g").classed("callout", !0).attr("role", U.GROUP).attr("aria-roledescription", "label callout");
|
|
5669
5669
|
n.merge(s).datum(function(r) {
|
|
5670
5670
|
const { xPosition: l, yPosition: c, direction: d } = r;
|
|
5671
|
-
return d ===
|
|
5671
|
+
return d === rt.RIGHT ? (r.startPos = {
|
|
5672
5672
|
x: l,
|
|
5673
5673
|
y: c + r.textOffsetY
|
|
5674
5674
|
}, r.endPos = {
|
|
@@ -5751,7 +5751,7 @@ class yr extends z {
|
|
|
5751
5751
|
return s.pie.labels.enabled ? n + Z.radiusOffset : n;
|
|
5752
5752
|
}
|
|
5753
5753
|
}
|
|
5754
|
-
class
|
|
5754
|
+
class Vc extends yr {
|
|
5755
5755
|
constructor() {
|
|
5756
5756
|
super(...arguments), this.type = "donut", this.renderType = H.SVG;
|
|
5757
5757
|
}
|
|
@@ -5782,7 +5782,7 @@ class Dc extends yr {
|
|
|
5782
5782
|
s === null && (s = this.model.getDisplayData().reduce((r, l) => r + l[t.pie.valueMapsTo], 0));
|
|
5783
5783
|
const n = parseInt(e.text().replace(/[, ]+/g, ""), 10) || 0;
|
|
5784
5784
|
let a;
|
|
5785
|
-
n % 1 === 0 && s % 1 === 0 ? a = an : a =
|
|
5785
|
+
n % 1 === 0 && s % 1 === 0 ? a = an : a = vs;
|
|
5786
5786
|
const i = a(n, s);
|
|
5787
5787
|
return (r) => {
|
|
5788
5788
|
const { numberFormatter: l } = t.donut.center;
|
|
@@ -5790,8 +5790,8 @@ class Dc extends yr {
|
|
|
5790
5790
|
};
|
|
5791
5791
|
}
|
|
5792
5792
|
}
|
|
5793
|
-
const
|
|
5794
|
-
class
|
|
5793
|
+
const hs = "4,10 8,6 12,10", us = "12,6 8,10 4,6";
|
|
5794
|
+
class Bc extends z {
|
|
5795
5795
|
constructor() {
|
|
5796
5796
|
super(...arguments), this.type = "gauge", this.renderType = H.SVG;
|
|
5797
5797
|
}
|
|
@@ -5800,7 +5800,7 @@ class _c extends z {
|
|
|
5800
5800
|
return ((s = this.model.getData().find((n) => n.group === "value")) == null ? void 0 : s.value) ?? null;
|
|
5801
5801
|
}
|
|
5802
5802
|
getValueRatio() {
|
|
5803
|
-
return
|
|
5803
|
+
return $s(this.getValue(), 0, 100) / 100;
|
|
5804
5804
|
}
|
|
5805
5805
|
getDelta() {
|
|
5806
5806
|
var s;
|
|
@@ -5808,7 +5808,7 @@ class _c extends z {
|
|
|
5808
5808
|
}
|
|
5809
5809
|
getArcRatio() {
|
|
5810
5810
|
const e = this.getOptions();
|
|
5811
|
-
return y(e, "gauge", "type") ===
|
|
5811
|
+
return y(e, "gauge", "type") === ze.FULL ? 1 : 0.5;
|
|
5812
5812
|
}
|
|
5813
5813
|
getArcSize() {
|
|
5814
5814
|
return this.getArcRatio() * Math.PI * 2;
|
|
@@ -5821,12 +5821,12 @@ class _c extends z {
|
|
|
5821
5821
|
getArrow(e) {
|
|
5822
5822
|
const t = this.getOptions();
|
|
5823
5823
|
switch (y(t, "gauge", "deltaArrow", "direction")) {
|
|
5824
|
-
case
|
|
5825
|
-
return
|
|
5826
|
-
case
|
|
5827
|
-
return
|
|
5824
|
+
case jt.UP:
|
|
5825
|
+
return hs;
|
|
5826
|
+
case jt.DOWN:
|
|
5827
|
+
return us;
|
|
5828
5828
|
default:
|
|
5829
|
-
return e > 0 ?
|
|
5829
|
+
return e > 0 ? hs : us;
|
|
5830
5830
|
}
|
|
5831
5831
|
}
|
|
5832
5832
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -5834,7 +5834,7 @@ class _c extends z {
|
|
|
5834
5834
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5835
5835
|
render(e = !0) {
|
|
5836
5836
|
const t = this.getComponentContainer().attr("width", "100%").attr("height", "100%"), s = this.getOptions(), n = this.getValue(), a = this.getValueRatio(), i = this.getArcSize(), r = this.getStartAngle(), l = a * i, c = r + l, d = r + i, p = this.computeRadius(), h = this.getInnerRadius();
|
|
5837
|
-
this.backgroundArc =
|
|
5837
|
+
this.backgroundArc = $e().innerRadius(h).outerRadius(p).startAngle(c).endAngle(d), this.arc = $e().innerRadius(h).outerRadius(p).startAngle(r).endAngle(c), E.appendOrSelect(t, "path.arc-background").attr("d", this.backgroundArc);
|
|
5838
5838
|
const u = t.selectAll("path.arc-foreground").data([n]);
|
|
5839
5839
|
u.enter().append("path").merge(u).attr(
|
|
5840
5840
|
"class",
|
|
@@ -5856,7 +5856,7 @@ class _c extends z {
|
|
|
5856
5856
|
drawValueNumber() {
|
|
5857
5857
|
const e = this.getComponentContainer(), t = this.getOptions(), s = y(t, "gauge", "type"), n = this.getValue(), a = this.getDelta(), i = this.computeRadius(), r = y(t, "gauge", "valueFontSize"), l = y(t, "gauge", "deltaFontSize"), c = y(t, "gauge", "numberSpacing"), d = y(t, "gauge", "showPercentageSymbol");
|
|
5858
5858
|
let p = 0;
|
|
5859
|
-
s ===
|
|
5859
|
+
s === ze.FULL && !a ? p = l(i) : s === ze.SEMI && a && (p = -(l(i) + c));
|
|
5860
5860
|
const h = E.appendOrSelect(e, "g.gauge-numbers").attr(
|
|
5861
5861
|
"transform",
|
|
5862
5862
|
`translate(0, ${p})`
|
|
@@ -5935,10 +5935,10 @@ class _c extends z {
|
|
|
5935
5935
|
const e = this.getOptions(), t = y(e, "gauge", "type"), { width: s, height: n } = E.getSVGElementSize(this.parent, {
|
|
5936
5936
|
useAttrs: !0
|
|
5937
5937
|
});
|
|
5938
|
-
return t ===
|
|
5938
|
+
return t === ze.SEMI ? Math.min(s / 2, n) : Math.min(s / 2, n / 2);
|
|
5939
5939
|
}
|
|
5940
5940
|
}
|
|
5941
|
-
class
|
|
5941
|
+
class $c extends $t {
|
|
5942
5942
|
constructor() {
|
|
5943
5943
|
super(...arguments), this.type = "grouped-bar", this.renderType = H.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
|
|
5944
5944
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -6098,10 +6098,10 @@ class Pc extends Nt {
|
|
|
6098
6098
|
}
|
|
6099
6099
|
setGroupScale() {
|
|
6100
6100
|
const e = this.model.getActiveDataGroupNames(this.configs.groups);
|
|
6101
|
-
this.groupScale =
|
|
6101
|
+
this.groupScale = _t().domain(e).rangeRound([0, this.getGroupWidth()]);
|
|
6102
6102
|
}
|
|
6103
6103
|
}
|
|
6104
|
-
class
|
|
6104
|
+
class Gc extends z {
|
|
6105
6105
|
constructor() {
|
|
6106
6106
|
super(...arguments), this.type = "heatmap", this.renderType = H.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
|
|
6107
6107
|
x: 0,
|
|
@@ -6127,7 +6127,7 @@ class Vc extends z {
|
|
|
6127
6127
|
}
|
|
6128
6128
|
p += m, h = m < h ? m : h, u = m > u ? m : u;
|
|
6129
6129
|
}
|
|
6130
|
-
})), l(s) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(s)}, ${
|
|
6130
|
+
})), 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, {
|
|
6131
6131
|
event: t.event,
|
|
6132
6132
|
hoveredElement: x(e.detail.element),
|
|
6133
6133
|
items: [
|
|
@@ -6206,14 +6206,14 @@ class Vc extends z {
|
|
|
6206
6206
|
}
|
|
6207
6207
|
determineDividerStatus() {
|
|
6208
6208
|
const e = y(this.getOptions(), "heatmap", "divider", "state");
|
|
6209
|
-
return e !==
|
|
6209
|
+
return e !== ot.OFF && (e === ot.AUTO && Ft.minCellDividerDimension <= this.xBandwidth && Ft.minCellDividerDimension <= this.yBandwidth || e === ot.ON);
|
|
6210
6210
|
}
|
|
6211
6211
|
addEventListener() {
|
|
6212
6212
|
const e = this, { cartesianScales: t } = this.services, s = this.getOptions(), n = Q(s, "tooltip.totalLabel"), a = t.getDomainIdentifier(), i = t.getRangeIdentifier(), r = t.getDomainLabel(), l = t.getRangeLabel();
|
|
6213
6213
|
this.parent.selectAll("g.cell").on("mouseover", function(c, d) {
|
|
6214
6214
|
const p = x(this), h = p.select("rect.heat");
|
|
6215
6215
|
if (!h.classed("null-state")) {
|
|
6216
|
-
const g =
|
|
6216
|
+
const g = Ve(p.attr("transform"));
|
|
6217
6217
|
e.parent.select("g.cell-highlight").attr(
|
|
6218
6218
|
"transform",
|
|
6219
6219
|
`translate(${g.x + e.translationUnits.x}, ${g.y + e.translationUnits.y})`
|
|
@@ -6273,7 +6273,7 @@ class Vc extends z {
|
|
|
6273
6273
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleAxisOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
|
|
6274
6274
|
}
|
|
6275
6275
|
}
|
|
6276
|
-
class
|
|
6276
|
+
class Nc extends z {
|
|
6277
6277
|
constructor() {
|
|
6278
6278
|
super(...arguments), this.type = "histogram", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
6279
6279
|
const { hoveredElement: t } = e.detail, s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
@@ -6367,7 +6367,7 @@ class Bc extends z {
|
|
|
6367
6367
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6368
6368
|
}
|
|
6369
6369
|
}
|
|
6370
|
-
class
|
|
6370
|
+
class Hc extends Vt {
|
|
6371
6371
|
constructor() {
|
|
6372
6372
|
super(...arguments), this.type = "lollipop", this.renderType = H.SVG, this.handleScatterOnHover = (e) => {
|
|
6373
6373
|
const t = e.detail, s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
@@ -6439,7 +6439,7 @@ class $c extends $t {
|
|
|
6439
6439
|
);
|
|
6440
6440
|
}
|
|
6441
6441
|
}
|
|
6442
|
-
class
|
|
6442
|
+
class Uc extends z {
|
|
6443
6443
|
constructor() {
|
|
6444
6444
|
super(...arguments), this.type = "meter", this.renderType = H.SVG;
|
|
6445
6445
|
}
|
|
@@ -6550,7 +6550,7 @@ class Gc extends z {
|
|
|
6550
6550
|
this.parent.selectAll("rect.value").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("click", null);
|
|
6551
6551
|
}
|
|
6552
6552
|
}
|
|
6553
|
-
class
|
|
6553
|
+
class zc extends z {
|
|
6554
6554
|
constructor() {
|
|
6555
6555
|
super(...arguments), this.type = "radar", this.renderType = H.SVG, this.getLabelDimensions = (e) => {
|
|
6556
6556
|
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 });
|
|
@@ -6563,7 +6563,7 @@ class Nc extends z {
|
|
|
6563
6563
|
[n]: null
|
|
6564
6564
|
})))
|
|
6565
6565
|
);
|
|
6566
|
-
return
|
|
6566
|
+
return Re(i, e);
|
|
6567
6567
|
}, this.normalizeGroupedData = (e) => {
|
|
6568
6568
|
const t = this.getOptions(), { angle: s, value: n } = y(t, "radar", "axes"), a = y(t, "data", "groupMapsTo");
|
|
6569
6569
|
return e.map(({ name: i, data: r }) => {
|
|
@@ -6572,7 +6572,7 @@ class Nc extends z {
|
|
|
6572
6572
|
[s]: c,
|
|
6573
6573
|
[n]: null
|
|
6574
6574
|
}));
|
|
6575
|
-
return { name: i, data:
|
|
6575
|
+
return { name: i, data: Re(l, r) };
|
|
6576
6576
|
});
|
|
6577
6577
|
}, this.handleLegendOnHover = (e) => {
|
|
6578
6578
|
const { hoveredElement: t } = e.detail;
|
|
@@ -6603,9 +6603,9 @@ class Nc extends z {
|
|
|
6603
6603
|
const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), L = (Math.min(s, n) - S) / 2;
|
|
6604
6604
|
if (L <= 0)
|
|
6605
6605
|
return;
|
|
6606
|
-
const O =
|
|
6606
|
+
const O = _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])), I = Oe().domain([
|
|
6607
6607
|
k >= 0 ? 0 : k,
|
|
6608
|
-
|
|
6608
|
+
Nt(this.fullDataNormalized.map((C) => C[p]))
|
|
6609
6609
|
]).range([m, L]).nice(g), F = I.ticks(g), P = (C) => this.model.getFillColor(C), A = rn().angle((C) => O(C[d]) + Math.PI / 2).radius((C) => I(C[p])).curve(on), M = this.uniqueKeys.map((C) => {
|
|
6610
6610
|
const R = this.getLabelDimensions(C).width, _ = Vn(
|
|
6611
6611
|
O(C),
|
|
@@ -6613,7 +6613,7 @@ class Nc extends z {
|
|
|
6613
6613
|
);
|
|
6614
6614
|
return R + _;
|
|
6615
6615
|
}), D = {
|
|
6616
|
-
x:
|
|
6616
|
+
x: Nt(M) + h,
|
|
6617
6617
|
y: n / 2
|
|
6618
6618
|
}, re = E.appendOrSelect(t, "g.y-axes").attr("role", U.GROUP).selectAll("path").data(F, (C) => C), W = (C) => this.uniqueKeys.map((R) => ({ [d]: R, [p]: C }));
|
|
6619
6619
|
re.join(
|
|
@@ -6679,9 +6679,9 @@ class Nc extends z {
|
|
|
6679
6679
|
).attr(
|
|
6680
6680
|
"y",
|
|
6681
6681
|
(R) => Y(O(R), I.range()[1] + h, D).y
|
|
6682
|
-
).style("text-anchor", (R) =>
|
|
6682
|
+
).style("text-anchor", (R) => Xt(O(R)).textAnchor).style(
|
|
6683
6683
|
"dominant-baseline",
|
|
6684
|
-
(R) =>
|
|
6684
|
+
(R) => Xt(O(R)).dominantBaseline
|
|
6685
6685
|
).call(
|
|
6686
6686
|
(R) => R.transition().call(
|
|
6687
6687
|
(_) => this.services.transitions.setupTransition({
|
|
@@ -6783,7 +6783,7 @@ class Nc extends z {
|
|
|
6783
6783
|
(C) => C.append("rect"),
|
|
6784
6784
|
(C) => C,
|
|
6785
6785
|
(C) => C.remove()
|
|
6786
|
-
).attr("x", D.x).attr("y", D.y - b / 2).attr("width", I.range()[1]).attr("height", b).style("fill", "red").style("fill-opacity", 0).attr("transform", (C) => `rotate(${Bn(O(C))}, ${D.x}, ${D.y})`), E.appendOrSelect(t, "g.y-labels").attr("role", U.GROUP).selectAll("text").data(
|
|
6786
|
+
).attr("x", D.x).attr("y", D.y - b / 2).attr("width", I.range()[1]).attr("height", b).style("fill", "red").style("fill-opacity", 0).attr("transform", (C) => `rotate(${Bn(O(C))}, ${D.x}, ${D.y})`), E.appendOrSelect(t, "g.y-labels").attr("role", U.GROUP).selectAll("text").data(Qe(F)).join(
|
|
6787
6787
|
(C) => C.append("text").attr("opacity", 0).text((R) => R).attr(
|
|
6788
6788
|
"x",
|
|
6789
6789
|
(R) => Y(-Math.PI / 2, I(R), D).x + u
|
|
@@ -6890,7 +6890,7 @@ class Nc extends z {
|
|
|
6890
6890
|
});
|
|
6891
6891
|
}
|
|
6892
6892
|
}
|
|
6893
|
-
class
|
|
6893
|
+
class Fc extends $t {
|
|
6894
6894
|
constructor() {
|
|
6895
6895
|
super(...arguments), this.type = "simple-bar", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
6896
6896
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -6986,7 +6986,7 @@ class Hc extends Nt {
|
|
|
6986
6986
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6987
6987
|
}
|
|
6988
6988
|
}
|
|
6989
|
-
class
|
|
6989
|
+
class Wc extends lr {
|
|
6990
6990
|
constructor() {
|
|
6991
6991
|
super(...arguments), this.type = "skeleton-lines";
|
|
6992
6992
|
}
|
|
@@ -7012,7 +7012,7 @@ class Uc extends lr {
|
|
|
7012
7012
|
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);
|
|
7013
7013
|
}
|
|
7014
7014
|
}
|
|
7015
|
-
class
|
|
7015
|
+
class jc extends z {
|
|
7016
7016
|
constructor() {
|
|
7017
7017
|
super(...arguments), this.type = "area-stacked", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7018
7018
|
const { hoveredElement: t } = e.detail, s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
@@ -7040,7 +7040,7 @@ class zc extends z {
|
|
|
7040
7040
|
percentage: i,
|
|
7041
7041
|
groups: this.configs.groups
|
|
7042
7042
|
}), l = y(r, 0, 0), c = this.services.cartesianScales.getDomainAxisPosition({ datum: l }), d = this.services.cartesianScales.getRangeAxisPosition({ datum: l }), p = this.services.cartesianScales.getScaleByPosition(d), h = t.selectAll("path.area").data(r, (g) => y(g, 0, a));
|
|
7043
|
-
this.areaGenerator =
|
|
7043
|
+
this.areaGenerator = kt().x(
|
|
7044
7044
|
(g) => this.services.cartesianScales.getValueThroughAxisPosition(
|
|
7045
7045
|
c,
|
|
7046
7046
|
g.data.sharedStackKey
|
|
@@ -7061,7 +7061,7 @@ class zc extends z {
|
|
|
7061
7061
|
).attr("opacity", fe.opacity.selected).attr("d", this.areaGenerator);
|
|
7062
7062
|
}
|
|
7063
7063
|
}
|
|
7064
|
-
class
|
|
7064
|
+
class Zc extends $t {
|
|
7065
7065
|
constructor() {
|
|
7066
7066
|
super(...arguments), this.type = "stacked-bar", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7067
7067
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.model.getOptions().data;
|
|
@@ -7189,7 +7189,7 @@ class Fc extends Nt {
|
|
|
7189
7189
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7190
7190
|
}
|
|
7191
7191
|
}
|
|
7192
|
-
class
|
|
7192
|
+
class Xc extends Vt {
|
|
7193
7193
|
constructor() {
|
|
7194
7194
|
super(...arguments), this.type = "scatter-stacked", this.renderType = H.SVG;
|
|
7195
7195
|
}
|
|
@@ -7238,7 +7238,7 @@ class Wc extends $t {
|
|
|
7238
7238
|
}
|
|
7239
7239
|
}
|
|
7240
7240
|
const Ae = 6;
|
|
7241
|
-
class
|
|
7241
|
+
class Yc extends z {
|
|
7242
7242
|
constructor() {
|
|
7243
7243
|
super(...arguments), this.type = "tree", this.renderType = H.SVG;
|
|
7244
7244
|
}
|
|
@@ -7271,7 +7271,7 @@ class jc extends z {
|
|
|
7271
7271
|
right: 0,
|
|
7272
7272
|
bottom: 0,
|
|
7273
7273
|
left: l > 0 ? l + Ae : 30 - Ae
|
|
7274
|
-
}, h =
|
|
7274
|
+
}, h = Pt({
|
|
7275
7275
|
name: r,
|
|
7276
7276
|
children: i
|
|
7277
7277
|
}), u = 10, g = s / 6, m = (O) => {
|
|
@@ -7465,7 +7465,7 @@ var br = "#000000", Er = "#ffffff", Sr = "#fcf4d6", xr = "#fddc69", Or = "#f1c21
|
|
|
7465
7465
|
80: Ul,
|
|
7466
7466
|
90: zl,
|
|
7467
7467
|
100: Fl
|
|
7468
|
-
},
|
|
7468
|
+
}, ps = {
|
|
7469
7469
|
black: {
|
|
7470
7470
|
100: br
|
|
7471
7471
|
},
|
|
@@ -7488,26 +7488,26 @@ var br = "#000000", Er = "#ffffff", Sr = "#fcf4d6", xr = "#fddc69", Or = "#f1c21
|
|
|
7488
7488
|
const jl = (o) => {
|
|
7489
7489
|
if (!o)
|
|
7490
7490
|
return null;
|
|
7491
|
-
for (const e of Object.keys(
|
|
7492
|
-
const t =
|
|
7491
|
+
for (const e of Object.keys(ps)) {
|
|
7492
|
+
const t = ps[e];
|
|
7493
7493
|
for (const s of Object.keys(t))
|
|
7494
7494
|
if (t[+s] === o)
|
|
7495
7495
|
return s;
|
|
7496
7496
|
}
|
|
7497
7497
|
return null;
|
|
7498
|
-
},
|
|
7498
|
+
}, gs = function() {
|
|
7499
7499
|
const o = x(this.parentNode).select("rect.leaf"), e = getComputedStyle(o.node(), null).getPropertyValue(
|
|
7500
7500
|
"fill"
|
|
7501
|
-
), t =
|
|
7501
|
+
), t = bs(e);
|
|
7502
7502
|
let s;
|
|
7503
7503
|
if (t && (s = jl(t ? t.hex() : null)), s == null) {
|
|
7504
|
-
const n =
|
|
7504
|
+
const n = ys(t).l;
|
|
7505
7505
|
s = Math.abs(n * 100 - 100);
|
|
7506
7506
|
}
|
|
7507
7507
|
return s > 50 ? "white" : "black";
|
|
7508
7508
|
};
|
|
7509
7509
|
let Zl = 0;
|
|
7510
|
-
class
|
|
7510
|
+
class qc extends z {
|
|
7511
7511
|
constructor() {
|
|
7512
7512
|
super(...arguments), this.type = "treemap", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7513
7513
|
const { hoveredElement: t } = e.detail;
|
|
@@ -7538,7 +7538,7 @@ class Zc extends z {
|
|
|
7538
7538
|
this.model.getData();
|
|
7539
7539
|
const s = this.model.getDisplayData(), n = this.model.getOptions(), a = y(window, "location"), { width: i, height: r } = E.getSVGElementSize(t, {
|
|
7540
7540
|
useAttrs: !0
|
|
7541
|
-
}), l =
|
|
7541
|
+
}), l = Pt({
|
|
7542
7542
|
name: n.title || "Treemap",
|
|
7543
7543
|
children: s
|
|
7544
7544
|
}).sum((m) => m.value).sort((m, b) => b.value - m.value), c = hn().size([i, r]).paddingInner(1).paddingOuter(0).round(!0)(
|
|
@@ -7598,7 +7598,7 @@ class Zc extends z {
|
|
|
7598
7598
|
let b = m;
|
|
7599
7599
|
for (; b.depth > 1; )
|
|
7600
7600
|
b = b.parent;
|
|
7601
|
-
const v =
|
|
7601
|
+
const v = ys(this.model.getFillColor(b.data.name));
|
|
7602
7602
|
return [
|
|
7603
7603
|
{
|
|
7604
7604
|
text: m.data.name,
|
|
@@ -7609,13 +7609,13 @@ class Zc extends z {
|
|
|
7609
7609
|
(m) => m
|
|
7610
7610
|
).join(
|
|
7611
7611
|
(m) => {
|
|
7612
|
-
const b = m.append("text").text((v) => v.text).style("fill",
|
|
7612
|
+
const b = m.append("text").text((v) => v.text).style("fill", gs).attr("x", 7).attr("y", 18);
|
|
7613
7613
|
return a && b.attr("clip-path", function() {
|
|
7614
7614
|
const v = x(this.parentNode).attr("data-uid"), S = `${n.style.prefix}-clip-${v}`;
|
|
7615
7615
|
return `url(${new URL(`#${S}`, a) + ""})`;
|
|
7616
7616
|
}), b;
|
|
7617
7617
|
},
|
|
7618
|
-
(m) => m.text((b) => b.text).style("fill",
|
|
7618
|
+
(m) => m.text((b) => b.text).style("fill", gs),
|
|
7619
7619
|
(m) => m.remove()
|
|
7620
7620
|
), this.addEventListeners();
|
|
7621
7621
|
}
|
|
@@ -7633,7 +7633,7 @@ class Zc extends z {
|
|
|
7633
7633
|
})
|
|
7634
7634
|
).style("fill", (r) => {
|
|
7635
7635
|
const l = e.model.getFillColor(r.parent.data.name);
|
|
7636
|
-
return l && (a = l),
|
|
7636
|
+
return l && (a = l), bs(a).darker(0.7).toString();
|
|
7637
7637
|
}), e.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
7638
7638
|
event: t,
|
|
7639
7639
|
hoveredElement: n,
|
|
@@ -7689,7 +7689,7 @@ class Zc extends z {
|
|
|
7689
7689
|
});
|
|
7690
7690
|
}
|
|
7691
7691
|
}
|
|
7692
|
-
class
|
|
7692
|
+
class Kc extends z {
|
|
7693
7693
|
constructor() {
|
|
7694
7694
|
super(...arguments), this.type = "wordcloud", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7695
7695
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -7758,11 +7758,11 @@ class Xc extends z {
|
|
|
7758
7758
|
this.addEventListeners();
|
|
7759
7759
|
}
|
|
7760
7760
|
getFontSizeScale(e) {
|
|
7761
|
-
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, r = i ?
|
|
7761
|
+
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, r = i ? Qe(n) : [1, 1];
|
|
7762
7762
|
return Oe().domain(r).range(i ? t.wordCloud.fontSizeRange(a, e) : [4, 4]);
|
|
7763
7763
|
}
|
|
7764
7764
|
addEventListeners() {
|
|
7765
|
-
const e = this.getOptions(), { groupMapsTo: t } = e.data, s = this, n =
|
|
7765
|
+
const e = this.getOptions(), { groupMapsTo: t } = e.data, s = this, n = gt((a) => {
|
|
7766
7766
|
const i = s.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
|
|
7767
7767
|
(r) => s.services.transitions.setupTransition({
|
|
7768
7768
|
transition: r,
|
|
@@ -7850,7 +7850,7 @@ class Xl extends z {
|
|
|
7850
7850
|
const g = this.services.domUtils.generateElementIDString("geo-pattern-stripes"), m = E.appendOrSelect(e, "defs");
|
|
7851
7851
|
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(
|
|
7852
7852
|
"d",
|
|
7853
|
-
|
|
7853
|
+
It()([
|
|
7854
7854
|
[0, 0],
|
|
7855
7855
|
[0, 10]
|
|
7856
7856
|
])
|
|
@@ -7896,7 +7896,7 @@ class Xl extends z {
|
|
|
7896
7896
|
return e;
|
|
7897
7897
|
}
|
|
7898
7898
|
}
|
|
7899
|
-
class
|
|
7899
|
+
class Jc extends Xl {
|
|
7900
7900
|
constructor() {
|
|
7901
7901
|
super(...arguments), this.type = "choropleth";
|
|
7902
7902
|
}
|
|
@@ -7915,11 +7915,11 @@ class Yc extends Xl {
|
|
|
7915
7915
|
const e = this, t = this.model.getCombinedData();
|
|
7916
7916
|
this.parent.selectAll("path.border").on("mouseover", function(s, n) {
|
|
7917
7917
|
const a = x(this);
|
|
7918
|
-
e.services.events.dispatchEvent(
|
|
7918
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_MOUSEOVER, {
|
|
7919
7919
|
event: s,
|
|
7920
7920
|
element: a,
|
|
7921
7921
|
datum: t[n.properties.NAME]
|
|
7922
|
-
}), e.services.events.dispatchEvent(
|
|
7922
|
+
}), e.services.events.dispatchEvent(lt.SHOW, {
|
|
7923
7923
|
event: s,
|
|
7924
7924
|
hoveredElement: a,
|
|
7925
7925
|
items: [
|
|
@@ -7930,26 +7930,26 @@ class Yc extends Xl {
|
|
|
7930
7930
|
]
|
|
7931
7931
|
});
|
|
7932
7932
|
}).on("mousemove", function(s, n) {
|
|
7933
|
-
e.services.events.dispatchEvent(
|
|
7933
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_MOUSEMOVE, {
|
|
7934
7934
|
event: s,
|
|
7935
7935
|
element: x(this),
|
|
7936
7936
|
datum: t[n.properties.NAME]
|
|
7937
|
-
}), e.services.events.dispatchEvent(
|
|
7937
|
+
}), e.services.events.dispatchEvent(lt.MOVE, {
|
|
7938
7938
|
event: s
|
|
7939
7939
|
});
|
|
7940
7940
|
}).on("click", function(s, n) {
|
|
7941
|
-
e.services.events.dispatchEvent(
|
|
7941
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_CLICK, {
|
|
7942
7942
|
event: s,
|
|
7943
7943
|
element: x(this),
|
|
7944
7944
|
datum: t[n.properties.NAME]
|
|
7945
7945
|
});
|
|
7946
7946
|
}).on("mouseout", function(s, n) {
|
|
7947
7947
|
const a = x(this);
|
|
7948
|
-
e.services.events.dispatchEvent(
|
|
7948
|
+
e.services.events.dispatchEvent(Fe.CHOROPLETH_MOUSEOUT, {
|
|
7949
7949
|
event: s,
|
|
7950
7950
|
element: a,
|
|
7951
7951
|
datum: t[n.properties.NAME]
|
|
7952
|
-
}), e.services.events.dispatchEvent(
|
|
7952
|
+
}), e.services.events.dispatchEvent(lt.HIDE, {
|
|
7953
7953
|
event: s,
|
|
7954
7954
|
hoveredElement: a
|
|
7955
7955
|
});
|
|
@@ -7957,69 +7957,69 @@ class Yc extends Xl {
|
|
|
7957
7957
|
}
|
|
7958
7958
|
}
|
|
7959
7959
|
export {
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7960
|
+
Ac as $,
|
|
7961
|
+
uc as A,
|
|
7962
|
+
yc as B,
|
|
7963
|
+
oc as C,
|
|
7964
|
+
Vc as D,
|
|
7965
|
+
Gc as E,
|
|
7966
|
+
xc as F,
|
|
7967
|
+
gc as G,
|
|
7968
|
+
hc as H,
|
|
7969
|
+
Nc as I,
|
|
7970
|
+
Wc as J,
|
|
7971
|
+
Hc as K,
|
|
7972
7972
|
nr as L,
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7973
|
+
rc as M,
|
|
7974
|
+
_c as N,
|
|
7975
|
+
Uc as O,
|
|
7976
7976
|
yr as P,
|
|
7977
|
-
|
|
7977
|
+
zc as Q,
|
|
7978
7978
|
Xs as R,
|
|
7979
|
-
|
|
7979
|
+
ic as S,
|
|
7980
7980
|
sr as T,
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7981
|
+
Yc as U,
|
|
7982
|
+
qc as V,
|
|
7983
|
+
Kc as W,
|
|
7984
7984
|
Ys as X,
|
|
7985
7985
|
or as Y,
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7986
|
+
cc as Z,
|
|
7987
|
+
Mc as _,
|
|
7988
|
+
nc as a,
|
|
7989
|
+
wc as a0,
|
|
7990
|
+
Lc as a1,
|
|
7991
|
+
Tc as a2,
|
|
7992
|
+
Cc as a3,
|
|
7993
|
+
kc as a4,
|
|
7994
|
+
Ic as a5,
|
|
7995
|
+
Rc as a6,
|
|
7996
7996
|
Xl as a7,
|
|
7997
|
-
|
|
7997
|
+
$t as a8,
|
|
7998
7998
|
z as a9,
|
|
7999
|
-
|
|
7999
|
+
ac as b,
|
|
8000
8000
|
Da as c,
|
|
8001
8001
|
ir as d,
|
|
8002
8002
|
ar as e,
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8003
|
+
lc as f,
|
|
8004
|
+
dc as g,
|
|
8005
|
+
pc as h,
|
|
8006
|
+
vc as i,
|
|
8007
|
+
fc as j,
|
|
8008
|
+
mc as k,
|
|
8009
|
+
Vt as l,
|
|
8010
8010
|
lr as m,
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8011
|
+
bc as n,
|
|
8012
|
+
Ec as o,
|
|
8013
|
+
Sc as p,
|
|
8014
|
+
Dc as q,
|
|
8015
|
+
Jc as r,
|
|
8016
|
+
Pc as s,
|
|
8017
|
+
jc as t,
|
|
8018
|
+
Xc as u,
|
|
8019
|
+
Oc as v,
|
|
8020
|
+
Fc as w,
|
|
8021
|
+
$c as x,
|
|
8022
|
+
Zc as y,
|
|
8023
|
+
Bc as z
|
|
8024
8024
|
};
|
|
8025
|
-
//# sourceMappingURL=choropleth-
|
|
8025
|
+
//# sourceMappingURL=choropleth-2ac5a535.mjs.map
|