genus-ui 1.93.21 → 1.93.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +147 -153
- package/dist/index.umd.js +4 -10
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -31,7 +31,7 @@ const xa = x`
|
|
|
31
31
|
justify-self: start;
|
|
32
32
|
grid-area: il;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`, Ia = x`
|
|
35
35
|
textarea
|
|
36
36
|
{
|
|
37
37
|
border: var(--textarea-border, none);
|
|
@@ -49,7 +49,7 @@ const xa = x`
|
|
|
49
49
|
border-radius: var(--textarea-border-radius, 0.375rem);
|
|
50
50
|
grid-area: ic;
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`, va = x`
|
|
53
53
|
textarea
|
|
54
54
|
{
|
|
55
55
|
font-family: var(--textarea-font-family, 'Sofia Pro');
|
|
@@ -99,7 +99,7 @@ let Ot = class extends tt {
|
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
Ot.styles = [xa, Ca, ya,
|
|
102
|
+
Ot.styles = [xa, Ca, ya, va, Ia];
|
|
103
103
|
le([
|
|
104
104
|
G({ attribute: "label-text" })
|
|
105
105
|
], Ot.prototype, "labelText", 2);
|
|
@@ -1143,7 +1143,7 @@ var ir = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, nr = (i, t
|
|
|
1143
1143
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1144
1144
|
return s && n && ir(t, e, n), n;
|
|
1145
1145
|
};
|
|
1146
|
-
let
|
|
1146
|
+
let Ii = class extends tt {
|
|
1147
1147
|
render() {
|
|
1148
1148
|
return B`
|
|
1149
1149
|
<div class='step-content'>
|
|
@@ -1152,14 +1152,14 @@ let vi = class extends tt {
|
|
|
1152
1152
|
`;
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
|
|
1156
|
-
|
|
1155
|
+
Ii.styles = [Mo, Do];
|
|
1156
|
+
Ii = nr([
|
|
1157
1157
|
et("genus-step-content")
|
|
1158
|
-
],
|
|
1158
|
+
], Ii);
|
|
1159
1159
|
const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1160
1160
|
__proto__: null,
|
|
1161
1161
|
get GenusStepContent() {
|
|
1162
|
-
return
|
|
1162
|
+
return Ii;
|
|
1163
1163
|
},
|
|
1164
1164
|
get GenusStepWizard() {
|
|
1165
1165
|
return ct;
|
|
@@ -1597,7 +1597,7 @@ const Cr = x`
|
|
|
1597
1597
|
'ol ol ol ol . .'
|
|
1598
1598
|
'oc oc oc oc oc oc';
|
|
1599
1599
|
}
|
|
1600
|
-
`,
|
|
1600
|
+
`, Ir = x`
|
|
1601
1601
|
.options-container
|
|
1602
1602
|
{
|
|
1603
1603
|
display: flex;
|
|
@@ -1605,10 +1605,10 @@ const Cr = x`
|
|
|
1605
1605
|
gap: 1rem;
|
|
1606
1606
|
}
|
|
1607
1607
|
`;
|
|
1608
|
-
var
|
|
1608
|
+
var vr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, Go = (i, t, e, s) => {
|
|
1609
1609
|
for (var n = s > 1 ? void 0 : s ? Er(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1610
1610
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1611
|
-
return s && n &&
|
|
1611
|
+
return s && n && vr(t, e, n), n;
|
|
1612
1612
|
};
|
|
1613
1613
|
let Ve = class extends tt {
|
|
1614
1614
|
constructor() {
|
|
@@ -1625,7 +1625,7 @@ let Ve = class extends tt {
|
|
|
1625
1625
|
`;
|
|
1626
1626
|
}
|
|
1627
1627
|
};
|
|
1628
|
-
Ve.styles = [Bo, bo, Cr, yr,
|
|
1628
|
+
Ve.styles = [Bo, bo, Cr, yr, Ir];
|
|
1629
1629
|
Go([
|
|
1630
1630
|
G({ attribute: "group-label-text" })
|
|
1631
1631
|
], Ve.prototype, "labelText", 2);
|
|
@@ -1841,7 +1841,7 @@ const jr = x`
|
|
|
1841
1841
|
border-radius: 0.375rem 0.375rem 0 0;
|
|
1842
1842
|
}
|
|
1843
1843
|
`, xo = x`
|
|
1844
|
-
.options
|
|
1844
|
+
.options, .filter-container ul
|
|
1845
1845
|
{
|
|
1846
1846
|
list-style: none;
|
|
1847
1847
|
background: #fff;
|
|
@@ -1854,6 +1854,8 @@ const jr = x`
|
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
1856
1856
|
.options::-webkit-scrollbar { display: none; }
|
|
1857
|
+
|
|
1858
|
+
.filter-container ul::-webkit-scrollbar { display: none; }
|
|
1857
1859
|
|
|
1858
1860
|
.options__list-item
|
|
1859
1861
|
{
|
|
@@ -1882,14 +1884,6 @@ const jr = x`
|
|
|
1882
1884
|
width: 100%;
|
|
1883
1885
|
}
|
|
1884
1886
|
|
|
1885
|
-
.filter-container .options
|
|
1886
|
-
{
|
|
1887
|
-
position: unset;
|
|
1888
|
-
visibility: visible;
|
|
1889
|
-
opacity: unset;
|
|
1890
|
-
transition: unset;
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
1887
|
.options, .filter-container
|
|
1894
1888
|
{
|
|
1895
1889
|
position: absolute;
|
|
@@ -2007,7 +2001,7 @@ let rt = class extends tt {
|
|
|
2007
2001
|
<div class='search-container'>
|
|
2008
2002
|
<input class='search-textbox' type='text' placeholder=${this.searchPlaceholderText} @input=${this.getInputValue} />
|
|
2009
2003
|
</div>
|
|
2010
|
-
<ul
|
|
2004
|
+
<ul @click=${this.selectOption}>
|
|
2011
2005
|
<slot></slot>
|
|
2012
2006
|
</ul>
|
|
2013
2007
|
</div>
|
|
@@ -2157,7 +2151,7 @@ function Pe(i) {
|
|
|
2157
2151
|
function Ft(i) {
|
|
2158
2152
|
return St(ti(i * 255), 0, 255);
|
|
2159
2153
|
}
|
|
2160
|
-
function
|
|
2154
|
+
function vt(i) {
|
|
2161
2155
|
return St(ti(i / 2.55) / 100, 0, 1);
|
|
2162
2156
|
}
|
|
2163
2157
|
function Zs(i) {
|
|
@@ -2219,7 +2213,7 @@ function lA(i, t, e) {
|
|
|
2219
2213
|
function cA(i, t, e) {
|
|
2220
2214
|
return Bs(aA, i, t, e);
|
|
2221
2215
|
}
|
|
2222
|
-
function
|
|
2216
|
+
function Io(i) {
|
|
2223
2217
|
return (i % 360 + 360) % 360;
|
|
2224
2218
|
}
|
|
2225
2219
|
function hA(i) {
|
|
@@ -2228,7 +2222,7 @@ function hA(i) {
|
|
|
2228
2222
|
if (!t)
|
|
2229
2223
|
return;
|
|
2230
2224
|
t[5] !== s && (e = t[6] ? Pe(+t[5]) : Ft(+t[5]));
|
|
2231
|
-
const n =
|
|
2225
|
+
const n = Io(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
|
|
2232
2226
|
return t[1] === "hwb" ? s = lA(n, o, a) : t[1] === "hsv" ? s = cA(n, o, a) : s = Gs(n, o, a), {
|
|
2233
2227
|
r: s[0],
|
|
2234
2228
|
g: s[1],
|
|
@@ -2238,13 +2232,13 @@ function hA(i) {
|
|
|
2238
2232
|
}
|
|
2239
2233
|
function dA(i, t) {
|
|
2240
2234
|
var e = bs(i);
|
|
2241
|
-
e[0] =
|
|
2235
|
+
e[0] = Io(e[0] + t), e = Gs(e), i.r = e[0], i.g = e[1], i.b = e[2];
|
|
2242
2236
|
}
|
|
2243
2237
|
function gA(i) {
|
|
2244
2238
|
if (!i)
|
|
2245
2239
|
return;
|
|
2246
2240
|
const t = bs(i), e = t[0], s = Zs(t[1]), n = Zs(t[2]);
|
|
2247
|
-
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${
|
|
2241
|
+
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${vt(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
|
|
2248
2242
|
}
|
|
2249
2243
|
const Ks = {
|
|
2250
2244
|
x: "dark",
|
|
@@ -2463,15 +2457,15 @@ function wA(i) {
|
|
|
2463
2457
|
}
|
|
2464
2458
|
}
|
|
2465
2459
|
function mA(i) {
|
|
2466
|
-
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${
|
|
2460
|
+
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${vt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
2467
2461
|
}
|
|
2468
2462
|
const Wi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, fe = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
2469
2463
|
function MA(i, t, e) {
|
|
2470
|
-
const s = fe(
|
|
2464
|
+
const s = fe(vt(i.r)), n = fe(vt(i.g)), o = fe(vt(i.b));
|
|
2471
2465
|
return {
|
|
2472
|
-
r: Ft(Wi(s + e * (fe(
|
|
2473
|
-
g: Ft(Wi(n + e * (fe(
|
|
2474
|
-
b: Ft(Wi(o + e * (fe(
|
|
2466
|
+
r: Ft(Wi(s + e * (fe(vt(t.r)) - s))),
|
|
2467
|
+
g: Ft(Wi(n + e * (fe(vt(t.g)) - n))),
|
|
2468
|
+
b: Ft(Wi(o + e * (fe(vt(t.b)) - o))),
|
|
2475
2469
|
a: i.a + e * (t.a - i.a)
|
|
2476
2470
|
};
|
|
2477
2471
|
}
|
|
@@ -2481,12 +2475,12 @@ function ri(i, t, e) {
|
|
|
2481
2475
|
s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = Gs(s), i.r = s[0], i.g = s[1], i.b = s[2];
|
|
2482
2476
|
}
|
|
2483
2477
|
}
|
|
2484
|
-
function
|
|
2478
|
+
function vo(i, t) {
|
|
2485
2479
|
return i && Object.assign(t || {}, i);
|
|
2486
2480
|
}
|
|
2487
2481
|
function Xs(i) {
|
|
2488
2482
|
var t = { r: 0, g: 0, b: 0, a: 255 };
|
|
2489
|
-
return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = Ft(i[3]))) : (t =
|
|
2483
|
+
return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = Ft(i[3]))) : (t = vo(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = Ft(t.a)), t;
|
|
2490
2484
|
}
|
|
2491
2485
|
function DA(i) {
|
|
2492
2486
|
return i.charAt(0) === "r" ? wA(i) : hA(i);
|
|
@@ -2503,8 +2497,8 @@ class Ze {
|
|
|
2503
2497
|
return this._valid;
|
|
2504
2498
|
}
|
|
2505
2499
|
get rgb() {
|
|
2506
|
-
var t =
|
|
2507
|
-
return t && (t.a =
|
|
2500
|
+
var t = vo(this._rgb);
|
|
2501
|
+
return t && (t.a = vt(t.a)), t;
|
|
2508
2502
|
}
|
|
2509
2503
|
set rgb(t) {
|
|
2510
2504
|
this._rgb = Xs(t);
|
|
@@ -2619,7 +2613,7 @@ function L(i, t, e, s) {
|
|
|
2619
2613
|
for (a = Object.keys(i), o = a.length, n = 0; n < o; n++)
|
|
2620
2614
|
t.call(e, i[a[n]], a[n]);
|
|
2621
2615
|
}
|
|
2622
|
-
function
|
|
2616
|
+
function vi(i, t) {
|
|
2623
2617
|
let e, s, n, o;
|
|
2624
2618
|
if (!i || !t || i.length !== t.length)
|
|
2625
2619
|
return !1;
|
|
@@ -2724,7 +2718,7 @@ const Ue = (i) => typeof i < "u", Wt = (i) => typeof i == "function", qs = (i, t
|
|
|
2724
2718
|
function yA(i) {
|
|
2725
2719
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
2726
2720
|
}
|
|
2727
|
-
const F = Math.PI, H = 2 * F,
|
|
2721
|
+
const F = Math.PI, H = 2 * F, IA = H + F, ki = Number.POSITIVE_INFINITY, vA = F / 180, X = F / 2, qt = F / 4, _s = F * 2 / 3, Rt = Math.log10, Yt = Math.sign;
|
|
2728
2722
|
function je(i, t, e) {
|
|
2729
2723
|
return Math.abs(i - t) < e;
|
|
2730
2724
|
}
|
|
@@ -2779,7 +2773,7 @@ function os(i, t) {
|
|
|
2779
2773
|
return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
|
|
2780
2774
|
}
|
|
2781
2775
|
function QA(i, t) {
|
|
2782
|
-
return (i - t +
|
|
2776
|
+
return (i - t + IA) % H - F;
|
|
2783
2777
|
}
|
|
2784
2778
|
function gt(i) {
|
|
2785
2779
|
return (i % H + H) % H;
|
|
@@ -2964,7 +2958,7 @@ const Ai = (i) => i === 0 || i === 1, sn = (i, t, e) => -(Math.pow(2, 10 * (i -=
|
|
|
2964
2958
|
},
|
|
2965
2959
|
easeInOutBounce: (i) => i < 0.5 ? He.easeInBounce(i * 2) * 0.5 : He.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
|
|
2966
2960
|
};
|
|
2967
|
-
function
|
|
2961
|
+
function Is(i) {
|
|
2968
2962
|
if (i && typeof i == "object") {
|
|
2969
2963
|
const t = i.toString();
|
|
2970
2964
|
return t === "[object CanvasPattern]" || t === "[object CanvasGradient]";
|
|
@@ -2972,10 +2966,10 @@ function vs(i) {
|
|
|
2972
2966
|
return !1;
|
|
2973
2967
|
}
|
|
2974
2968
|
function on(i) {
|
|
2975
|
-
return
|
|
2969
|
+
return Is(i) ? i : new Ze(i);
|
|
2976
2970
|
}
|
|
2977
2971
|
function Zi(i) {
|
|
2978
|
-
return
|
|
2972
|
+
return Is(i) ? i : new Ze(i).saturate(0.5).darken(0.1).hexString();
|
|
2979
2973
|
}
|
|
2980
2974
|
const RA = [
|
|
2981
2975
|
"x",
|
|
@@ -3301,7 +3295,7 @@ function rs(i, t, e, s) {
|
|
|
3301
3295
|
function Ho(i, t, e, s, n) {
|
|
3302
3296
|
let o, a, r, A, l, c, h, d;
|
|
3303
3297
|
const g = t.pointStyle, u = t.rotation, f = t.radius;
|
|
3304
|
-
let p = (u || 0) *
|
|
3298
|
+
let p = (u || 0) * vA;
|
|
3305
3299
|
if (g && typeof g == "object" && (o = g.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
|
|
3306
3300
|
i.save(), i.translate(e, s), i.rotate(p), i.drawImage(g, -g.width / 2, -g.height / 2, g.width, g.height), i.restore();
|
|
3307
3301
|
return;
|
|
@@ -3412,14 +3406,14 @@ function il(i, t) {
|
|
|
3412
3406
|
return t * i;
|
|
3413
3407
|
}
|
|
3414
3408
|
const sl = (i) => +i || 0;
|
|
3415
|
-
function
|
|
3409
|
+
function vs(i, t) {
|
|
3416
3410
|
const e = {}, s = P(t), n = s ? Object.keys(t) : t, o = P(i) ? s ? (a) => E(i[a], i[t[a]]) : (a) => i[a] : () => i;
|
|
3417
3411
|
for (const a of n)
|
|
3418
3412
|
e[a] = sl(o(a));
|
|
3419
3413
|
return e;
|
|
3420
3414
|
}
|
|
3421
3415
|
function Fo(i) {
|
|
3422
|
-
return
|
|
3416
|
+
return vs(i, {
|
|
3423
3417
|
top: "y",
|
|
3424
3418
|
right: "x",
|
|
3425
3419
|
bottom: "y",
|
|
@@ -3427,7 +3421,7 @@ function Fo(i) {
|
|
|
3427
3421
|
});
|
|
3428
3422
|
}
|
|
3429
3423
|
function oe(i) {
|
|
3430
|
-
return
|
|
3424
|
+
return vs(i, [
|
|
3431
3425
|
"topLeft",
|
|
3432
3426
|
"topRight",
|
|
3433
3427
|
"bottomLeft",
|
|
@@ -3902,13 +3896,13 @@ function ie(i, t, e, s) {
|
|
|
3902
3896
|
y: i.y + e * (t.y - i.y)
|
|
3903
3897
|
};
|
|
3904
3898
|
}
|
|
3905
|
-
function
|
|
3899
|
+
function Il(i, t, e, s) {
|
|
3906
3900
|
return {
|
|
3907
3901
|
x: i.x + e * (t.x - i.x),
|
|
3908
3902
|
y: s === "middle" ? e < 0.5 ? i.y : t.y : s === "after" ? e < 1 ? i.y : t.y : e > 0 ? t.y : i.y
|
|
3909
3903
|
};
|
|
3910
3904
|
}
|
|
3911
|
-
function
|
|
3905
|
+
function vl(i, t, e, s) {
|
|
3912
3906
|
const n = {
|
|
3913
3907
|
x: i.cp2x,
|
|
3914
3908
|
y: i.cp2y
|
|
@@ -4009,14 +4003,14 @@ function _o(i, t, e) {
|
|
|
4009
4003
|
const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: A, normalize: l } = qo(s), { start: c, end: h, loop: d, style: g } = Ql(i, t, e), u = [];
|
|
4010
4004
|
let f = !1, p = null, w, m, b;
|
|
4011
4005
|
const D = () => A(n, b, w) && r(n, b) !== 0, M = () => r(o, w) === 0 || A(o, b, w), C = () => f || D(), y = () => !f || M();
|
|
4012
|
-
for (let
|
|
4013
|
-
m = t[
|
|
4006
|
+
for (let I = c, v = c; I <= h; ++I)
|
|
4007
|
+
m = t[I % a], !m.skip && (w = l(m[s]), w !== b && (f = A(w, n, o), p === null && C() && (p = r(w, n) === 0 ? I : v), p !== null && y() && (u.push(dn({
|
|
4014
4008
|
start: p,
|
|
4015
|
-
end:
|
|
4009
|
+
end: I,
|
|
4016
4010
|
loop: d,
|
|
4017
4011
|
count: a,
|
|
4018
4012
|
style: g
|
|
4019
|
-
})), p = null),
|
|
4013
|
+
})), p = null), v = I, b = w));
|
|
4020
4014
|
return p !== null && u.push(dn({
|
|
4021
4015
|
start: p,
|
|
4022
4016
|
end: h,
|
|
@@ -4134,7 +4128,7 @@ function Tl(i, t) {
|
|
|
4134
4128
|
if (!t)
|
|
4135
4129
|
return !1;
|
|
4136
4130
|
const e = [], s = function(n, o) {
|
|
4137
|
-
return
|
|
4131
|
+
return Is(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o;
|
|
4138
4132
|
};
|
|
4139
4133
|
return JSON.stringify(i, s) !== JSON.stringify(t, s);
|
|
4140
4134
|
}
|
|
@@ -4512,7 +4506,7 @@ function Jl(i, t, e) {
|
|
|
4512
4506
|
type: "data"
|
|
4513
4507
|
});
|
|
4514
4508
|
}
|
|
4515
|
-
function
|
|
4509
|
+
function Ie(i, t) {
|
|
4516
4510
|
const e = i.controller.index, s = i.vScale && i.vScale.axis;
|
|
4517
4511
|
if (s) {
|
|
4518
4512
|
t = t || i._parsed;
|
|
@@ -4537,7 +4531,7 @@ class wt {
|
|
|
4537
4531
|
this.configure(), this.linkScales(), t._stacked = mn(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
|
|
4538
4532
|
}
|
|
4539
4533
|
updateIndex(t) {
|
|
4540
|
-
this.index !== t &&
|
|
4534
|
+
this.index !== t && Ie(this._cachedMeta), this.index = t;
|
|
4541
4535
|
}
|
|
4542
4536
|
linkScales() {
|
|
4543
4537
|
const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (h, d, g, u) => h === "x" ? d : h === "r" ? u : g, o = e.xAxisID = E(s.xAxisID, Ui(t, "x")), a = e.yAxisID = E(s.yAxisID, Ui(t, "y")), r = e.rAxisID = E(s.rAxisID, Ui(t, "r")), A = e.indexAxis, l = e.iAxisID = n(A, o, a, r), c = e.vAxisID = n(A, a, o, r);
|
|
@@ -4561,7 +4555,7 @@ class wt {
|
|
|
4561
4555
|
}
|
|
4562
4556
|
_destroy() {
|
|
4563
4557
|
const t = this._cachedMeta;
|
|
4564
|
-
this._data && en(this._data, this), t._stacked &&
|
|
4558
|
+
this._data && en(this._data, this), t._stacked && Ie(t);
|
|
4565
4559
|
}
|
|
4566
4560
|
_dataCheck() {
|
|
4567
4561
|
const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
|
|
@@ -4572,7 +4566,7 @@ class wt {
|
|
|
4572
4566
|
if (s) {
|
|
4573
4567
|
en(s, this);
|
|
4574
4568
|
const n = this._cachedMeta;
|
|
4575
|
-
|
|
4569
|
+
Ie(n), n._parsed = [];
|
|
4576
4570
|
}
|
|
4577
4571
|
e && Object.isExtensible(e) && LA(e, this), this._syncList = [], this._data = e;
|
|
4578
4572
|
}
|
|
@@ -4586,7 +4580,7 @@ class wt {
|
|
|
4586
4580
|
let n = !1;
|
|
4587
4581
|
this._dataCheck();
|
|
4588
4582
|
const o = e._stacked;
|
|
4589
|
-
e._stacked = mn(e.vScale, e), e.stack !== s.stack && (n = !0,
|
|
4583
|
+
e._stacked = mn(e.vScale, e), e.stack !== s.stack && (n = !0, Ie(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && Dn(this, e._parsed);
|
|
4590
4584
|
}
|
|
4591
4585
|
configure() {
|
|
4592
4586
|
const t = this.chart.config, e = t.datasetScopeKeys(this._type), s = t.getOptionScopes(this.getDataset(), e, !0);
|
|
@@ -4825,7 +4819,7 @@ class wt {
|
|
|
4825
4819
|
const s = this._cachedMeta;
|
|
4826
4820
|
if (this._parsing) {
|
|
4827
4821
|
const n = s._parsed.splice(t, e);
|
|
4828
|
-
s._stacked &&
|
|
4822
|
+
s._stacked && Ie(s, n);
|
|
4829
4823
|
}
|
|
4830
4824
|
s.data.splice(t, e);
|
|
4831
4825
|
}
|
|
@@ -5476,8 +5470,8 @@ class bi extends wt {
|
|
|
5476
5470
|
y.skip = !0;
|
|
5477
5471
|
continue;
|
|
5478
5472
|
}
|
|
5479
|
-
const
|
|
5480
|
-
y.skip = isNaN(k) || isNaN(Q) ||
|
|
5473
|
+
const I = this.getParsed(M), v = z(I[g]), k = y[d] = a.getPixelForValue(I[d], M), Q = y[g] = o || v ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, I, A) : I[g], M);
|
|
5474
|
+
y.skip = isNaN(k) || isNaN(Q) || v, y.stop = M > 0 && Math.abs(I[d] - D[d]) > p, f && (y.parsed = I, y.raw = l.data[M]), h && (y.options = c || this.resolveDataElementOptions(M, C.active ? "active" : n)), w || this.updateElement(C, M, y, n), D = I;
|
|
5481
5475
|
}
|
|
5482
5476
|
}
|
|
5483
5477
|
getMaxOverflow() {
|
|
@@ -5738,8 +5732,8 @@ class Gi extends wt {
|
|
|
5738
5732
|
const o = n === "reset", { iScale: a, vScale: r, _stacked: A, _dataset: l } = this._cachedMeta, c = this.resolveDataElementOptions(e, n), h = this.getSharedOptions(c), d = this.includeOptions(n, h), g = a.axis, u = r.axis, { spanGaps: f, segment: p } = this.options, w = De(f) ? f : Number.POSITIVE_INFINITY, m = this.chart._animationsDisabled || o || n === "none";
|
|
5739
5733
|
let b = e > 0 && this.getParsed(e - 1);
|
|
5740
5734
|
for (let D = e; D < e + s; ++D) {
|
|
5741
|
-
const M = t[D], C = this.getParsed(D), y = m ? M : {},
|
|
5742
|
-
y.skip = isNaN(
|
|
5735
|
+
const M = t[D], C = this.getParsed(D), y = m ? M : {}, I = z(C[u]), v = y[g] = a.getPixelForValue(C[g], D), k = y[u] = o || I ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, C, A) : C[u], D);
|
|
5736
|
+
y.skip = isNaN(v) || isNaN(k) || I, y.stop = D > 0 && Math.abs(C[g] - b[g]) > w, p && (y.parsed = C, y.raw = l.data[D]), d && (y.options = h || this.resolveDataElementOptions(D, M.active ? "active" : n)), m || this.updateElement(M, D, y, n), b = C;
|
|
5743
5737
|
}
|
|
5744
5738
|
this.updateSharedOptions(h, n, c);
|
|
5745
5739
|
}
|
|
@@ -5997,7 +5991,7 @@ const sa = [
|
|
|
5997
5991
|
"right",
|
|
5998
5992
|
"bottom"
|
|
5999
5993
|
];
|
|
6000
|
-
function
|
|
5994
|
+
function ve(i, t) {
|
|
6001
5995
|
return i.filter((e) => e.pos === t);
|
|
6002
5996
|
}
|
|
6003
5997
|
function Cn(i, t) {
|
|
@@ -6051,12 +6045,12 @@ function mc(i, t) {
|
|
|
6051
6045
|
return e;
|
|
6052
6046
|
}
|
|
6053
6047
|
function Mc(i) {
|
|
6054
|
-
const t = pc(i), e = Ee(t.filter((l) => l.box.fullSize), !0), s = Ee(
|
|
6048
|
+
const t = pc(i), e = Ee(t.filter((l) => l.box.fullSize), !0), s = Ee(ve(t, "left"), !0), n = Ee(ve(t, "right")), o = Ee(ve(t, "top"), !0), a = Ee(ve(t, "bottom")), r = Cn(t, "x"), A = Cn(t, "y");
|
|
6055
6049
|
return {
|
|
6056
6050
|
fullSize: e,
|
|
6057
6051
|
leftAndTop: s.concat(o),
|
|
6058
6052
|
rightAndBottom: n.concat(A).concat(a).concat(r),
|
|
6059
|
-
chartArea:
|
|
6053
|
+
chartArea: ve(t, "chartArea"),
|
|
6060
6054
|
vertical: s.concat(n).concat(A),
|
|
6061
6055
|
horizontal: o.concat(a).concat(r)
|
|
6062
6056
|
};
|
|
@@ -6129,7 +6123,7 @@ function ze(i, t, e, s) {
|
|
|
6129
6123
|
function hi(i, t, e, s, n) {
|
|
6130
6124
|
i.top = e, i.left = t, i.right = t + s, i.bottom = e + n, i.width = s, i.height = n;
|
|
6131
6125
|
}
|
|
6132
|
-
function
|
|
6126
|
+
function In(i, t, e, s) {
|
|
6133
6127
|
const n = e.padding;
|
|
6134
6128
|
let { x: o, y: a } = t;
|
|
6135
6129
|
for (const r of i) {
|
|
@@ -6192,7 +6186,7 @@ var ot = {
|
|
|
6192
6186
|
x: n.left,
|
|
6193
6187
|
y: n.top
|
|
6194
6188
|
}, n), u = mc(A.concat(l), h);
|
|
6195
|
-
ze(r.fullSize, g, h, u), ze(A, g, h, u), ze(l, g, h, u) && ze(A, g, h, u), bc(g),
|
|
6189
|
+
ze(r.fullSize, g, h, u), ze(A, g, h, u), ze(l, g, h, u) && ze(A, g, h, u), bc(g), In(r.leftAndTop, g, h, u), g.x += g.w, g.y += g.h, In(r.rightAndBottom, g, h, u), i.chartArea = {
|
|
6196
6190
|
left: g.left,
|
|
6197
6191
|
top: g.top,
|
|
6198
6192
|
right: g.left + g.w,
|
|
@@ -6253,7 +6247,7 @@ const Yi = "$chartjs", Yc = {
|
|
|
6253
6247
|
pointerup: "mouseup",
|
|
6254
6248
|
pointerleave: "mouseout",
|
|
6255
6249
|
pointerout: "mouseout"
|
|
6256
|
-
},
|
|
6250
|
+
}, vn = (i) => i === null || i === "";
|
|
6257
6251
|
function xc(i, t) {
|
|
6258
6252
|
const e = i.style, s = i.getAttribute("height"), n = i.getAttribute("width");
|
|
6259
6253
|
if (i[Yi] = {
|
|
@@ -6266,11 +6260,11 @@ function xc(i, t) {
|
|
|
6266
6260
|
width: e.width
|
|
6267
6261
|
}
|
|
6268
6262
|
}
|
|
6269
|
-
}, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box",
|
|
6263
|
+
}, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", vn(n)) {
|
|
6270
6264
|
const o = hn(i, "width");
|
|
6271
6265
|
o !== void 0 && (i.width = o);
|
|
6272
6266
|
}
|
|
6273
|
-
if (
|
|
6267
|
+
if (vn(s))
|
|
6274
6268
|
if (i.style.height === "")
|
|
6275
6269
|
i.height = i.width / (t || 2);
|
|
6276
6270
|
else {
|
|
@@ -6288,7 +6282,7 @@ function Cc(i, t, e) {
|
|
|
6288
6282
|
function yc(i, t, e) {
|
|
6289
6283
|
i && i.canvas && i.canvas.removeEventListener(t, e, aa);
|
|
6290
6284
|
}
|
|
6291
|
-
function
|
|
6285
|
+
function Ic(i, t) {
|
|
6292
6286
|
const e = Yc[i.type] || i.type, { x: s, y: n } = ee(i, t);
|
|
6293
6287
|
return {
|
|
6294
6288
|
type: e,
|
|
@@ -6303,7 +6297,7 @@ function Oi(i, t) {
|
|
|
6303
6297
|
if (e === t || e.contains(t))
|
|
6304
6298
|
return !0;
|
|
6305
6299
|
}
|
|
6306
|
-
function
|
|
6300
|
+
function vc(i, t, e) {
|
|
6307
6301
|
const s = i.canvas, n = new MutationObserver((o) => {
|
|
6308
6302
|
let a = !1;
|
|
6309
6303
|
for (const r of o)
|
|
@@ -6359,7 +6353,7 @@ function $i(i, t, e) {
|
|
|
6359
6353
|
}
|
|
6360
6354
|
function Oc(i, t, e) {
|
|
6361
6355
|
const s = i.canvas, n = To((o) => {
|
|
6362
|
-
i.ctx !== null && e(
|
|
6356
|
+
i.ctx !== null && e(Ic(o, i));
|
|
6363
6357
|
}, i);
|
|
6364
6358
|
return Cc(s, t, n), n;
|
|
6365
6359
|
}
|
|
@@ -6388,7 +6382,7 @@ class zc extends oa {
|
|
|
6388
6382
|
addEventListener(t, e, s) {
|
|
6389
6383
|
this.removeEventListener(t, e);
|
|
6390
6384
|
const n = t.$proxies || (t.$proxies = {}), a = {
|
|
6391
|
-
attach:
|
|
6385
|
+
attach: vc,
|
|
6392
6386
|
detach: Ec,
|
|
6393
6387
|
resize: Pc
|
|
6394
6388
|
}[e] || Oc;
|
|
@@ -6832,15 +6826,15 @@ class ce extends Mt {
|
|
|
6832
6826
|
a.push(b), r.push(D), l = Math.max(b, l), c = Math.max(D, c);
|
|
6833
6827
|
}
|
|
6834
6828
|
Wc(o, e);
|
|
6835
|
-
const C = a.indexOf(l), y = r.indexOf(c),
|
|
6836
|
-
width: a[
|
|
6837
|
-
height: r[
|
|
6829
|
+
const C = a.indexOf(l), y = r.indexOf(c), I = (v) => ({
|
|
6830
|
+
width: a[v] || 0,
|
|
6831
|
+
height: r[v] || 0
|
|
6838
6832
|
});
|
|
6839
6833
|
return {
|
|
6840
|
-
first:
|
|
6841
|
-
last:
|
|
6842
|
-
widest:
|
|
6843
|
-
highest:
|
|
6834
|
+
first: I(0),
|
|
6835
|
+
last: I(e - 1),
|
|
6836
|
+
widest: I(C),
|
|
6837
|
+
highest: I(y),
|
|
6844
6838
|
widths: a,
|
|
6845
6839
|
heights: r
|
|
6846
6840
|
};
|
|
@@ -6893,15 +6887,15 @@ class ce extends Mt {
|
|
|
6893
6887
|
const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, A = o.offset, l = this.isHorizontal(), h = this.ticks.length + (A ? 1 : 0), d = ke(o), g = [], u = r.setContext(this.getContext()), f = u.display ? u.width : 0, p = f / 2, w = function(N) {
|
|
6894
6888
|
return _t(s, N, f);
|
|
6895
6889
|
};
|
|
6896
|
-
let m, b, D, M, C, y,
|
|
6890
|
+
let m, b, D, M, C, y, I, v, k, Q, O, it;
|
|
6897
6891
|
if (a === "top")
|
|
6898
|
-
m = w(this.bottom), y = this.bottom - d,
|
|
6892
|
+
m = w(this.bottom), y = this.bottom - d, v = m - p, Q = w(t.top) + p, it = t.bottom;
|
|
6899
6893
|
else if (a === "bottom")
|
|
6900
|
-
m = w(this.top), Q = t.top, it = w(t.bottom) - p, y = m + p,
|
|
6894
|
+
m = w(this.top), Q = t.top, it = w(t.bottom) - p, y = m + p, v = this.top + d;
|
|
6901
6895
|
else if (a === "left")
|
|
6902
|
-
m = w(this.right), C = this.right - d,
|
|
6896
|
+
m = w(this.right), C = this.right - d, I = m - p, k = w(t.left) + p, O = t.right;
|
|
6903
6897
|
else if (a === "right")
|
|
6904
|
-
m = w(this.left), k = t.left, O = w(t.right) - p, C = m + p,
|
|
6898
|
+
m = w(this.left), k = t.left, O = w(t.right) - p, C = m + p, I = this.left + d;
|
|
6905
6899
|
else if (e === "x") {
|
|
6906
6900
|
if (a === "center")
|
|
6907
6901
|
m = w((t.top + t.bottom) / 2 + 0.5);
|
|
@@ -6909,7 +6903,7 @@ class ce extends Mt {
|
|
|
6909
6903
|
const N = Object.keys(a)[0], U = a[N];
|
|
6910
6904
|
m = w(this.chart.scales[N].getPixelForValue(U));
|
|
6911
6905
|
}
|
|
6912
|
-
Q = t.top, it = t.bottom, y = m + p,
|
|
6906
|
+
Q = t.top, it = t.bottom, y = m + p, v = y + d;
|
|
6913
6907
|
} else if (e === "y") {
|
|
6914
6908
|
if (a === "center")
|
|
6915
6909
|
m = w((t.left + t.right) / 2);
|
|
@@ -6917,16 +6911,16 @@ class ce extends Mt {
|
|
|
6917
6911
|
const N = Object.keys(a)[0], U = a[N];
|
|
6918
6912
|
m = w(this.chart.scales[N].getPixelForValue(U));
|
|
6919
6913
|
}
|
|
6920
|
-
C = m - p,
|
|
6914
|
+
C = m - p, I = C - d, k = t.left, O = t.right;
|
|
6921
6915
|
}
|
|
6922
6916
|
const ht = E(n.ticks.maxTicksLimit, h), T = Math.max(1, Math.ceil(h / ht));
|
|
6923
6917
|
for (b = 0; b < h; b += T) {
|
|
6924
6918
|
const N = this.getContext(b), U = o.setContext(N), ft = r.setContext(N), st = U.lineWidth, ge = U.color, si = ft.dash || [], ue = ft.dashOffset, Ce = U.tickWidth, Xt = U.tickColor, ye = U.tickBorderDash || [], Jt = U.tickBorderDashOffset;
|
|
6925
|
-
D = Vc(this, b, A), D !== void 0 && (M = _t(s, D, st), l ? C =
|
|
6919
|
+
D = Vc(this, b, A), D !== void 0 && (M = _t(s, D, st), l ? C = I = k = O = M : y = v = Q = it = M, g.push({
|
|
6926
6920
|
tx1: C,
|
|
6927
6921
|
ty1: y,
|
|
6928
|
-
tx2:
|
|
6929
|
-
ty2:
|
|
6922
|
+
tx2: I,
|
|
6923
|
+
ty2: v,
|
|
6930
6924
|
x1: k,
|
|
6931
6925
|
y1: Q,
|
|
6932
6926
|
x2: O,
|
|
@@ -6945,7 +6939,7 @@ class ce extends Mt {
|
|
|
6945
6939
|
}
|
|
6946
6940
|
_computeLabelItems(t) {
|
|
6947
6941
|
const e = this.axis, s = this.options, { position: n, ticks: o } = s, a = this.isHorizontal(), r = this.ticks, { align: A, crossAlign: l, padding: c, mirror: h } = o, d = ke(s.grid), g = d + c, u = h ? -c : g, f = -pt(this.labelRotation), p = [];
|
|
6948
|
-
let w, m, b, D, M, C, y,
|
|
6942
|
+
let w, m, b, D, M, C, y, I, v, k, Q, O, it = "middle";
|
|
6949
6943
|
if (n === "top")
|
|
6950
6944
|
C = this.bottom - u, y = this._getXAxisLabelAlignment();
|
|
6951
6945
|
else if (n === "bottom")
|
|
@@ -6978,10 +6972,10 @@ class ce extends Mt {
|
|
|
6978
6972
|
for (w = 0, m = r.length; w < m; ++w) {
|
|
6979
6973
|
b = r[w], D = b.label;
|
|
6980
6974
|
const T = o.setContext(this.getContext(w));
|
|
6981
|
-
|
|
6975
|
+
I = this.getPixelForTick(w) + o.labelOffset, v = this._resolveTickFontOptions(w), k = v.lineHeight, Q = j(D) ? D.length : 1;
|
|
6982
6976
|
const N = Q / 2, U = T.color, ft = T.textStrokeColor, st = T.textStrokeWidth;
|
|
6983
6977
|
let ge = y;
|
|
6984
|
-
a ? (M =
|
|
6978
|
+
a ? (M = I, y === "inner" && (w === m - 1 ? ge = this.options.reverse ? "left" : "right" : w === 0 ? ge = this.options.reverse ? "right" : "left" : ge = "center"), n === "top" ? l === "near" || f !== 0 ? O = -Q * k + k / 2 : l === "center" ? O = -ht.highest.height / 2 - N * k + k : O = -ht.highest.height + k / 2 : l === "near" || f !== 0 ? O = k / 2 : l === "center" ? O = ht.highest.height / 2 - N * k : O = ht.highest.height - Q * k, h && (O *= -1), f !== 0 && !T.showLabelBackdrop && (M += k / 2 * Math.sin(f))) : (C = I, O = (1 - Q) * k / 2);
|
|
6985
6979
|
let si;
|
|
6986
6980
|
if (T.showLabelBackdrop) {
|
|
6987
6981
|
const ue = at(T.backdropPadding), Ce = ht.heights[w], Xt = ht.widths[w];
|
|
@@ -7015,7 +7009,7 @@ class ce extends Mt {
|
|
|
7015
7009
|
}
|
|
7016
7010
|
p.push({
|
|
7017
7011
|
label: D,
|
|
7018
|
-
font:
|
|
7012
|
+
font: v,
|
|
7019
7013
|
textOffset: O,
|
|
7020
7014
|
options: {
|
|
7021
7015
|
rotation: f,
|
|
@@ -8146,7 +8140,7 @@ class Et {
|
|
|
8146
8140
|
index: a
|
|
8147
8141
|
};
|
|
8148
8142
|
});
|
|
8149
|
-
!
|
|
8143
|
+
!vi(s, e) && (this._active = s, this._lastEvent = null, this._updateHoverStyles(s, e));
|
|
8150
8144
|
}
|
|
8151
8145
|
notifyPlugins(t, e, s) {
|
|
8152
8146
|
return this._plugins.notify(this, t, e, s);
|
|
@@ -8181,7 +8175,7 @@ class Et {
|
|
|
8181
8175
|
r,
|
|
8182
8176
|
this
|
|
8183
8177
|
], this));
|
|
8184
|
-
const c = !
|
|
8178
|
+
const c = !vi(r, n);
|
|
8185
8179
|
return (c || e) && (this._active = r, this._updateHoverStyles(r, n, e)), this._lastEvent = l, c;
|
|
8186
8180
|
}
|
|
8187
8181
|
_getActiveElements(t, e, s, n) {
|
|
@@ -8203,7 +8197,7 @@ function Dh(i, t, e) {
|
|
|
8203
8197
|
i.beginPath(), i.arc(o, a, r, s - l, e + l), A > n ? (l = n / A, i.arc(o, a, A, e + l, s - l, !0)) : i.arc(o, a, n, e + X, s - X), i.closePath(), i.clip();
|
|
8204
8198
|
}
|
|
8205
8199
|
function bh(i) {
|
|
8206
|
-
return
|
|
8200
|
+
return vs(i, [
|
|
8207
8201
|
"outerStart",
|
|
8208
8202
|
"outerEnd",
|
|
8209
8203
|
"innerStart",
|
|
@@ -8236,11 +8230,11 @@ function zi(i, t, e, s, n, o) {
|
|
|
8236
8230
|
const T = c > 0 ? c - s : 0, N = h > 0 ? h - s : 0, U = (T + N) / 2, ft = U !== 0 ? u * U / (U + s) : u;
|
|
8237
8231
|
g = (u - ft) / 2;
|
|
8238
8232
|
}
|
|
8239
|
-
const f = Math.max(1e-3, u * h - e / F) / h, p = (u - f) / 2, w = A + p + g, m = n - p - g, { outerStart: b, outerEnd: D, innerStart: M, innerEnd: C } = Bh(t, d, h, m - w), y = h - b,
|
|
8233
|
+
const f = Math.max(1e-3, u * h - e / F) / h, p = (u - f) / 2, w = A + p + g, m = n - p - g, { outerStart: b, outerEnd: D, innerStart: M, innerEnd: C } = Bh(t, d, h, m - w), y = h - b, I = h - D, v = w + b / y, k = m - D / I, Q = d + M, O = d + C, it = w + M / Q, ht = m - C / O;
|
|
8240
8234
|
if (i.beginPath(), o) {
|
|
8241
|
-
const T = (
|
|
8242
|
-
if (i.arc(a, r, h,
|
|
8243
|
-
const st = pe(
|
|
8235
|
+
const T = (v + k) / 2;
|
|
8236
|
+
if (i.arc(a, r, h, v, T), i.arc(a, r, h, T, k), D > 0) {
|
|
8237
|
+
const st = pe(I, k, a, r);
|
|
8244
8238
|
i.arc(st.x, st.y, D, k, m + X);
|
|
8245
8239
|
}
|
|
8246
8240
|
const N = pe(O, m, a, r);
|
|
@@ -8255,12 +8249,12 @@ function zi(i, t, e, s, n, o) {
|
|
|
8255
8249
|
}
|
|
8256
8250
|
const ft = pe(y, w, a, r);
|
|
8257
8251
|
if (i.lineTo(ft.x, ft.y), b > 0) {
|
|
8258
|
-
const st = pe(y,
|
|
8259
|
-
i.arc(st.x, st.y, b, w - X,
|
|
8252
|
+
const st = pe(y, v, a, r);
|
|
8253
|
+
i.arc(st.x, st.y, b, w - X, v);
|
|
8260
8254
|
}
|
|
8261
8255
|
} else {
|
|
8262
8256
|
i.moveTo(a, r);
|
|
8263
|
-
const T = Math.cos(
|
|
8257
|
+
const T = Math.cos(v) * h + a, N = Math.sin(v) * h + r;
|
|
8264
8258
|
i.lineTo(T, N);
|
|
8265
8259
|
const U = Math.cos(k) * h + a, ft = Math.sin(k) * h + r;
|
|
8266
8260
|
i.lineTo(U, ft);
|
|
@@ -8391,7 +8385,7 @@ function yh(i, t, e, s) {
|
|
|
8391
8385
|
u = n[(r + (d ? l - g : g)) % a], !u.skip && (h ? (i.moveTo(u.x, u.y), h = !1) : c(i, f, u, d, o.stepped), f = u);
|
|
8392
8386
|
return A && (u = n[(r + (d ? l : 0)) % a], c(i, f, u, d, o.stepped)), !!A;
|
|
8393
8387
|
}
|
|
8394
|
-
function
|
|
8388
|
+
function Ih(i, t, e, s) {
|
|
8395
8389
|
const n = t.points, { count: o, start: a, ilen: r } = ga(n, e, s), { move: A = !0, reverse: l } = s || {};
|
|
8396
8390
|
let c = 0, h = 0, d, g, u, f, p, w;
|
|
8397
8391
|
const m = (D) => (a + (l ? r - D : D)) % o, b = () => {
|
|
@@ -8407,10 +8401,10 @@ function vh(i, t, e, s) {
|
|
|
8407
8401
|
}
|
|
8408
8402
|
function hs(i) {
|
|
8409
8403
|
const t = i.options, e = t.borderDash && t.borderDash.length;
|
|
8410
|
-
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ?
|
|
8404
|
+
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Ih : yh;
|
|
8411
8405
|
}
|
|
8412
|
-
function
|
|
8413
|
-
return i.stepped ?
|
|
8406
|
+
function vh(i) {
|
|
8407
|
+
return i.stepped ? Il : i.tension || i.cubicInterpolationMode === "monotone" ? vl : ie;
|
|
8414
8408
|
}
|
|
8415
8409
|
function Eh(i, t, e, s) {
|
|
8416
8410
|
let n = t._path;
|
|
@@ -8464,7 +8458,7 @@ class jt extends Mt {
|
|
|
8464
8458
|
});
|
|
8465
8459
|
if (!a.length)
|
|
8466
8460
|
return;
|
|
8467
|
-
const r = [], A =
|
|
8461
|
+
const r = [], A = vh(s);
|
|
8468
8462
|
let l, c;
|
|
8469
8463
|
for (l = 0, c = a.length; l < c; ++l) {
|
|
8470
8464
|
const { start: h, end: d } = a[l], g = o[h], u = o[d];
|
|
@@ -8791,9 +8785,9 @@ function Zh(i, t, e, s, n) {
|
|
|
8791
8785
|
for (m = b; m < D; m++)
|
|
8792
8786
|
p += i[m].x, w += i[m].y;
|
|
8793
8787
|
p /= M, w /= M;
|
|
8794
|
-
const C = Math.floor(h * r) + 1 + t, y = Math.min(Math.floor((h + 1) * r) + 1, e) + t, { x:
|
|
8788
|
+
const C = Math.floor(h * r) + 1 + t, y = Math.min(Math.floor((h + 1) * r) + 1, e) + t, { x: I, y: v } = i[c];
|
|
8795
8789
|
for (g = u = -1, m = C; m < y; m++)
|
|
8796
|
-
u = 0.5 * Math.abs((
|
|
8790
|
+
u = 0.5 * Math.abs((I - p) * (i[m].y - v) - (I - i[m].x) * (w - v)), u > g && (g = u, d = i[m], f = m);
|
|
8797
8791
|
a[A++] = d, c = f;
|
|
8798
8792
|
}
|
|
8799
8793
|
return a[A++] = i[l], a;
|
|
@@ -8809,12 +8803,12 @@ function Kh(i, t, e, s) {
|
|
|
8809
8803
|
else {
|
|
8810
8804
|
const C = a - 1;
|
|
8811
8805
|
if (!z(h) && !z(d)) {
|
|
8812
|
-
const y = Math.min(h, d),
|
|
8806
|
+
const y = Math.min(h, d), I = Math.max(h, d);
|
|
8813
8807
|
y !== g && y !== C && p.push({
|
|
8814
8808
|
...i[y],
|
|
8815
8809
|
x: n
|
|
8816
|
-
}),
|
|
8817
|
-
...i[
|
|
8810
|
+
}), I !== g && I !== C && p.push({
|
|
8811
|
+
...i[I],
|
|
8818
8812
|
x: n
|
|
8819
8813
|
});
|
|
8820
8814
|
}
|
|
@@ -9370,34 +9364,34 @@ class to extends Mt {
|
|
|
9370
9364
|
const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: a } = t, r = Z.color, A = we(t.rtl, this.left, this.width), l = q(a.font), { padding: c } = a, h = l.size, d = h / 2;
|
|
9371
9365
|
let g;
|
|
9372
9366
|
this.drawTitle(), n.textAlign = A.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = l.string;
|
|
9373
|
-
const { boxWidth: u, boxHeight: f, itemHeight: p } = $n(a, h), w = function(C, y,
|
|
9367
|
+
const { boxWidth: u, boxHeight: f, itemHeight: p } = $n(a, h), w = function(C, y, I) {
|
|
9374
9368
|
if (isNaN(u) || u <= 0 || isNaN(f) || f < 0)
|
|
9375
9369
|
return;
|
|
9376
9370
|
n.save();
|
|
9377
|
-
const
|
|
9378
|
-
if (n.fillStyle = E(
|
|
9371
|
+
const v = E(I.lineWidth, 1);
|
|
9372
|
+
if (n.fillStyle = E(I.fillStyle, r), n.lineCap = E(I.lineCap, "butt"), n.lineDashOffset = E(I.lineDashOffset, 0), n.lineJoin = E(I.lineJoin, "miter"), n.lineWidth = v, n.strokeStyle = E(I.strokeStyle, r), n.setLineDash(E(I.lineDash, [])), a.usePointStyle) {
|
|
9379
9373
|
const k = {
|
|
9380
9374
|
radius: f * Math.SQRT2 / 2,
|
|
9381
|
-
pointStyle:
|
|
9382
|
-
rotation:
|
|
9383
|
-
borderWidth:
|
|
9375
|
+
pointStyle: I.pointStyle,
|
|
9376
|
+
rotation: I.rotation,
|
|
9377
|
+
borderWidth: v
|
|
9384
9378
|
}, Q = A.xPlus(C, u / 2), O = y + d;
|
|
9385
9379
|
Ho(n, k, Q, O, a.pointStyleWidth && u);
|
|
9386
9380
|
} else {
|
|
9387
|
-
const k = y + Math.max((h - f) / 2, 0), Q = A.leftForLtr(C, u), O = oe(
|
|
9381
|
+
const k = y + Math.max((h - f) / 2, 0), Q = A.leftForLtr(C, u), O = oe(I.borderRadius);
|
|
9388
9382
|
n.beginPath(), Object.values(O).some((it) => it !== 0) ? Je(n, {
|
|
9389
9383
|
x: Q,
|
|
9390
9384
|
y: k,
|
|
9391
9385
|
w: u,
|
|
9392
9386
|
h: f,
|
|
9393
9387
|
radius: O
|
|
9394
|
-
}) : n.rect(Q, k, u, f), n.fill(),
|
|
9388
|
+
}) : n.rect(Q, k, u, f), n.fill(), v !== 0 && n.stroke();
|
|
9395
9389
|
}
|
|
9396
9390
|
n.restore();
|
|
9397
|
-
}, m = function(C, y,
|
|
9398
|
-
Ae(n,
|
|
9399
|
-
strikethrough:
|
|
9400
|
-
textAlign: A.textAlign(
|
|
9391
|
+
}, m = function(C, y, I) {
|
|
9392
|
+
Ae(n, I.text, C, y + p / 2, l, {
|
|
9393
|
+
strikethrough: I.hidden,
|
|
9394
|
+
textAlign: A.textAlign(I.textAlign)
|
|
9401
9395
|
});
|
|
9402
9396
|
}, b = this.isHorizontal(), D = this._computeTitleHeight();
|
|
9403
9397
|
b ? g = {
|
|
@@ -9412,11 +9406,11 @@ class to extends Mt {
|
|
|
9412
9406
|
const M = p + c;
|
|
9413
9407
|
this.legendItems.forEach((C, y) => {
|
|
9414
9408
|
n.strokeStyle = C.fontColor, n.fillStyle = C.fontColor;
|
|
9415
|
-
const
|
|
9409
|
+
const I = n.measureText(C.text).width, v = A.textAlign(C.textAlign || (C.textAlign = a.textAlign)), k = u + d + I;
|
|
9416
9410
|
let Q = g.x, O = g.y;
|
|
9417
9411
|
A.setWidth(this.width), b ? y > 0 && Q + k + c > this.right && (O = g.y += M, g.line++, Q = g.x = nt(o, this.left + c, this.right - s[g.line])) : y > 0 && O + M > this.bottom && (Q = g.x = Q + e[g.line].width + c, g.line++, O = g.y = nt(o, this.top + D + c, this.bottom - e[g.line].height));
|
|
9418
9412
|
const it = A.x(Q);
|
|
9419
|
-
if (w(it, O, C), Q = SA(
|
|
9413
|
+
if (w(it, O, C), Q = SA(v, Q + u + d, b ? Q + k : this.right, t.rtl), m(A.x(Q), O, C), b)
|
|
9420
9414
|
g.x += k + c;
|
|
9421
9415
|
else if (typeof C.text != "string") {
|
|
9422
9416
|
const ht = l.lineHeight;
|
|
@@ -9754,7 +9748,7 @@ const Te = {
|
|
|
9754
9748
|
function Bt(i, t) {
|
|
9755
9749
|
return t && (j(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
|
|
9756
9750
|
}
|
|
9757
|
-
function
|
|
9751
|
+
function It(i) {
|
|
9758
9752
|
return (typeof i == "string" || i instanceof String) && i.indexOf(`
|
|
9759
9753
|
`) > -1 ? i.split(`
|
|
9760
9754
|
`) : i;
|
|
@@ -9801,7 +9795,7 @@ function yd(i, t, e, s) {
|
|
|
9801
9795
|
if (i === "left" && n + o + a > t.width || i === "right" && n - o - a < 0)
|
|
9802
9796
|
return !0;
|
|
9803
9797
|
}
|
|
9804
|
-
function
|
|
9798
|
+
function Id(i, t, e, s) {
|
|
9805
9799
|
const { x: n, width: o } = e, { width: a, chartArea: { left: r, right: A } } = i;
|
|
9806
9800
|
let l = "center";
|
|
9807
9801
|
return s === "center" ? l = n <= (r + A) / 2 ? "left" : "right" : n <= o / 2 ? l = "left" : n >= a - o / 2 && (l = "right"), yd(l, i, t, e) && (l = "center"), l;
|
|
@@ -9809,11 +9803,11 @@ function vd(i, t, e, s) {
|
|
|
9809
9803
|
function io(i, t, e) {
|
|
9810
9804
|
const s = e.yAlign || t.yAlign || Cd(i, e);
|
|
9811
9805
|
return {
|
|
9812
|
-
xAlign: e.xAlign || t.xAlign ||
|
|
9806
|
+
xAlign: e.xAlign || t.xAlign || Id(i, t, e, s),
|
|
9813
9807
|
yAlign: s
|
|
9814
9808
|
};
|
|
9815
9809
|
}
|
|
9816
|
-
function
|
|
9810
|
+
function vd(i, t) {
|
|
9817
9811
|
let { x: e, width: s } = i;
|
|
9818
9812
|
return t === "right" ? e -= s : t === "center" && (e -= s / 2), e;
|
|
9819
9813
|
}
|
|
@@ -9823,7 +9817,7 @@ function Ed(i, t, e) {
|
|
|
9823
9817
|
}
|
|
9824
9818
|
function so(i, t, e, s) {
|
|
9825
9819
|
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: A } = e, l = n + o, { topLeft: c, topRight: h, bottomLeft: d, bottomRight: g } = oe(a);
|
|
9826
|
-
let u =
|
|
9820
|
+
let u = vd(t, r);
|
|
9827
9821
|
const f = Ed(t, A, l);
|
|
9828
9822
|
return A === "center" ? r === "left" ? u += l : r === "right" && (u -= l) : r === "left" ? u -= Math.max(c, d) + n : r === "right" && (u += Math.max(h, g) + n), {
|
|
9829
9823
|
x: $(u, 0, s.width - t.width),
|
|
@@ -9835,7 +9829,7 @@ function wi(i, t, e) {
|
|
|
9835
9829
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
|
|
9836
9830
|
}
|
|
9837
9831
|
function no(i) {
|
|
9838
|
-
return Bt([],
|
|
9832
|
+
return Bt([], It(i));
|
|
9839
9833
|
}
|
|
9840
9834
|
function kd(i, t, e) {
|
|
9841
9835
|
return Kt(i, {
|
|
@@ -9924,7 +9918,7 @@ class us extends Mt {
|
|
|
9924
9918
|
getTitle(t, e) {
|
|
9925
9919
|
const { callbacks: s } = e, n = At(s, "beforeTitle", this, t), o = At(s, "title", this, t), a = At(s, "afterTitle", this, t);
|
|
9926
9920
|
let r = [];
|
|
9927
|
-
return r = Bt(r,
|
|
9921
|
+
return r = Bt(r, It(n)), r = Bt(r, It(o)), r = Bt(r, It(a)), r;
|
|
9928
9922
|
}
|
|
9929
9923
|
getBeforeBody(t, e) {
|
|
9930
9924
|
return no(At(e.callbacks, "beforeBody", this, t));
|
|
@@ -9937,7 +9931,7 @@ class us extends Mt {
|
|
|
9937
9931
|
lines: [],
|
|
9938
9932
|
after: []
|
|
9939
9933
|
}, r = oo(s, o);
|
|
9940
|
-
Bt(a.before,
|
|
9934
|
+
Bt(a.before, It(At(r, "beforeLabel", this, o))), Bt(a.lines, At(r, "label", this, o)), Bt(a.after, It(At(r, "afterLabel", this, o))), n.push(a);
|
|
9941
9935
|
}), n;
|
|
9942
9936
|
}
|
|
9943
9937
|
getAfterBody(t, e) {
|
|
@@ -9946,7 +9940,7 @@ class us extends Mt {
|
|
|
9946
9940
|
getFooter(t, e) {
|
|
9947
9941
|
const { callbacks: s } = e, n = At(s, "beforeFooter", this, t), o = At(s, "footer", this, t), a = At(s, "afterFooter", this, t);
|
|
9948
9942
|
let r = [];
|
|
9949
|
-
return r = Bt(r,
|
|
9943
|
+
return r = Bt(r, It(n)), r = Bt(r, It(o)), r = Bt(r, It(a)), r;
|
|
9950
9944
|
}
|
|
9951
9945
|
_createItems(t) {
|
|
9952
9946
|
const e = this._active, s = this.chart.data, n = [], o = [], a = [];
|
|
@@ -10042,8 +10036,8 @@ class us extends Mt {
|
|
|
10042
10036
|
drawBody(t, e, s) {
|
|
10043
10037
|
const { body: n } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: A, boxWidth: l, boxPadding: c } = s, h = q(s.bodyFont);
|
|
10044
10038
|
let d = h.lineHeight, g = 0;
|
|
10045
|
-
const u = we(s.rtl, this.x, this.width), f = function(
|
|
10046
|
-
e.fillText(
|
|
10039
|
+
const u = we(s.rtl, this.x, this.width), f = function(I) {
|
|
10040
|
+
e.fillText(I, u.x(t.x + g), t.y + d / 2), t.y += d + o;
|
|
10047
10041
|
}, p = u.textAlign(a);
|
|
10048
10042
|
let w, m, b, D, M, C, y;
|
|
10049
10043
|
for (e.textAlign = a, e.textBaseline = "middle", e.font = h.string, t.x = wi(this, p, s), e.fillStyle = s.bodyColor, L(this.beforeBody, f), g = r && p !== "right" ? a === "center" ? l / 2 + c : l + 2 + c : 0, D = 0, C = n.length; D < C; ++D) {
|
|
@@ -10109,14 +10103,14 @@ class us extends Mt {
|
|
|
10109
10103
|
element: l.data[A],
|
|
10110
10104
|
index: A
|
|
10111
10105
|
};
|
|
10112
|
-
}), o = !
|
|
10106
|
+
}), o = !vi(s, n), a = this._positionChanged(n, e);
|
|
10113
10107
|
(o || a) && (this._active = n, this._eventPosition = e, this._ignoreReplayEvents = !0, this.update(!0));
|
|
10114
10108
|
}
|
|
10115
10109
|
handleEvent(t, e, s = !0) {
|
|
10116
10110
|
if (e && this._ignoreReplayEvents)
|
|
10117
10111
|
return !1;
|
|
10118
10112
|
this._ignoreReplayEvents = !1;
|
|
10119
|
-
const n = this.options, o = this._active || [], a = this._getActiveElements(t, o, e, s), r = this._positionChanged(a, t), A = e || !
|
|
10113
|
+
const n = this.options, o = this._active || [], a = this._getActiveElements(t, o, e, s), r = this._positionChanged(a, t), A = e || !vi(a, o) || r;
|
|
10120
10114
|
return A && (this._active = a, (n.enabled || n.external) && (this._eventPosition = {
|
|
10121
10115
|
x: t.x,
|
|
10122
10116
|
y: t.y
|
|
@@ -10340,7 +10334,7 @@ Y(fs, "id", "category"), Y(fs, "defaults", {
|
|
|
10340
10334
|
});
|
|
10341
10335
|
function Td(i, t) {
|
|
10342
10336
|
const e = [], { bounds: n, step: o, min: a, max: r, precision: A, count: l, maxTicks: c, maxDigits: h, includeBounds: d } = i, g = o || 1, u = c - 1, { min: f, max: p } = t, w = !z(a), m = !z(r), b = !z(l), D = (p - f) / (h + 1);
|
|
10343
|
-
let M = $s((p - f) / u / g) * g, C, y,
|
|
10337
|
+
let M = $s((p - f) / u / g) * g, C, y, I, v;
|
|
10344
10338
|
if (M < 1e-14 && !w && !m)
|
|
10345
10339
|
return [
|
|
10346
10340
|
{
|
|
@@ -10350,13 +10344,13 @@ function Td(i, t) {
|
|
|
10350
10344
|
value: p
|
|
10351
10345
|
}
|
|
10352
10346
|
];
|
|
10353
|
-
|
|
10347
|
+
v = Math.ceil(p / M) - Math.floor(f / M), v > u && (M = $s(v * M / u / g) * g), z(A) || (C = Math.pow(10, A), M = Math.ceil(M * C) / C), n === "ticks" ? (y = Math.floor(f / M) * M, I = Math.ceil(p / M) * M) : (y = f, I = p), w && m && o && kA((r - a) / o, M / 1e3) ? (v = Math.round(Math.min((r - a) / M, c)), M = (r - a) / v, y = a, I = r) : b ? (y = w ? a : y, I = m ? r : I, v = l - 1, M = (I - y) / v) : (v = (I - y) / M, je(v, Math.round(v), M / 1e3) ? v = Math.round(v) : v = Math.ceil(v));
|
|
10354
10348
|
const k = Math.max(tn(M), tn(y));
|
|
10355
|
-
C = Math.pow(10, z(A) ? k : A), y = Math.round(y * C) / C,
|
|
10349
|
+
C = Math.pow(10, z(A) ? k : A), y = Math.round(y * C) / C, I = Math.round(I * C) / C;
|
|
10356
10350
|
let Q = 0;
|
|
10357
10351
|
for (w && (d && y !== a ? (e.push({
|
|
10358
10352
|
value: a
|
|
10359
|
-
}), y < a && Q++, je(Math.round((y + Q * M) * C) / C, a, ro(a, D, i)) && Q++) : y < a && Q++); Q <
|
|
10353
|
+
}), y < a && Q++, je(Math.round((y + Q * M) * C) / C, a, ro(a, D, i)) && Q++) : y < a && Q++); Q < v; ++Q) {
|
|
10360
10354
|
const O = Math.round((y + Q * M) * C) / C;
|
|
10361
10355
|
if (m && O > r)
|
|
10362
10356
|
break;
|
|
@@ -10364,10 +10358,10 @@ function Td(i, t) {
|
|
|
10364
10358
|
value: O
|
|
10365
10359
|
});
|
|
10366
10360
|
}
|
|
10367
|
-
return m && d &&
|
|
10361
|
+
return m && d && I !== r ? e.length && je(e[e.length - 1].value, r, ro(r, D, i)) ? e[e.length - 1].value = r : e.push({
|
|
10368
10362
|
value: r
|
|
10369
|
-
}) : (!m ||
|
|
10370
|
-
value:
|
|
10363
|
+
}) : (!m || I === r) && e.push({
|
|
10364
|
+
value: I
|
|
10371
10365
|
}), e;
|
|
10372
10366
|
}
|
|
10373
10367
|
function ro(i, t, { horizontal: e, minRotation: s }) {
|
|
@@ -11967,7 +11961,7 @@ const yg = x`
|
|
|
11967
11961
|
align-self: center;
|
|
11968
11962
|
grid-area: a;
|
|
11969
11963
|
}
|
|
11970
|
-
`,
|
|
11964
|
+
`, Ig = x`
|
|
11971
11965
|
.data-header
|
|
11972
11966
|
{
|
|
11973
11967
|
font-family: var(--data-header-font-family, 'Sofia Pro Semi');
|
|
@@ -11986,7 +11980,7 @@ const yg = x`
|
|
|
11986
11980
|
color: var(--data-text-color, #ccc);
|
|
11987
11981
|
grid-area: dtxt;
|
|
11988
11982
|
}
|
|
11989
|
-
`,
|
|
11983
|
+
`, vg = x`
|
|
11990
11984
|
.data-list-item
|
|
11991
11985
|
{
|
|
11992
11986
|
display: grid;
|
|
@@ -12090,7 +12084,7 @@ let Lt = class extends tt {
|
|
|
12090
12084
|
return this.renderDataItem();
|
|
12091
12085
|
}
|
|
12092
12086
|
};
|
|
12093
|
-
Lt.styles = [yg,
|
|
12087
|
+
Lt.styles = [yg, Ig, vg, Eg, kg];
|
|
12094
12088
|
he([
|
|
12095
12089
|
G({ attribute: "data-header" })
|
|
12096
12090
|
], Lt.prototype, "dataHeader", 2);
|
package/dist/index.umd.js
CHANGED
|
@@ -1325,7 +1325,7 @@
|
|
|
1325
1325
|
border-radius: 0.375rem 0.375rem 0 0;
|
|
1326
1326
|
}
|
|
1327
1327
|
`,Rs=p.css`
|
|
1328
|
-
.options
|
|
1328
|
+
.options, .filter-container ul
|
|
1329
1329
|
{
|
|
1330
1330
|
list-style: none;
|
|
1331
1331
|
background: #fff;
|
|
@@ -1338,6 +1338,8 @@
|
|
|
1338
1338
|
}
|
|
1339
1339
|
|
|
1340
1340
|
.options::-webkit-scrollbar { display: none; }
|
|
1341
|
+
|
|
1342
|
+
.filter-container ul::-webkit-scrollbar { display: none; }
|
|
1341
1343
|
|
|
1342
1344
|
.options__list-item
|
|
1343
1345
|
{
|
|
@@ -1366,14 +1368,6 @@
|
|
|
1366
1368
|
width: 100%;
|
|
1367
1369
|
}
|
|
1368
1370
|
|
|
1369
|
-
.filter-container .options
|
|
1370
|
-
{
|
|
1371
|
-
position: unset;
|
|
1372
|
-
visibility: visible;
|
|
1373
|
-
opacity: unset;
|
|
1374
|
-
transition: unset;
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
1371
|
.options, .filter-container
|
|
1378
1372
|
{
|
|
1379
1373
|
position: absolute;
|
|
@@ -1476,7 +1470,7 @@
|
|
|
1476
1470
|
<div class='search-container'>
|
|
1477
1471
|
<input class='search-textbox' type='text' placeholder=${this.searchPlaceholderText} @input=${this.getInputValue} />
|
|
1478
1472
|
</div>
|
|
1479
|
-
<ul
|
|
1473
|
+
<ul @click=${this.selectOption}>
|
|
1480
1474
|
<slot></slot>
|
|
1481
1475
|
</ul>
|
|
1482
1476
|
</div>
|