vue-data-ui 3.18.5 → 3.19.0
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/{PackageVersion-sdNn_SJC.js → PackageVersion-D5dkifa6.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +77 -0
- package/dist/types/vue-ui-circle-pack.d.ts +12 -0
- package/dist/{useConfig-Bc9KHPF4.js → useConfig-nXlOKvBq.js} +29 -2
- package/dist/{useObjectBindings-BvfJ3hRY.js → useObjectBindings-SXpt83LZ.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-sGqoT3c9.js → vue-data-ui-DxDDhG_Z.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-C3hPjSrg.js → vue-ui-3d-bar-Dkpnduj2.js} +2 -2
- package/dist/{vue-ui-accordion-DX5HeXF5.js → vue-ui-accordion-CWXbkzsg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-GGrD4IEh.js → vue-ui-age-pyramid-YRzKi3YZ.js} +2 -2
- package/dist/{vue-ui-annotator-CQ_CYhzf.js → vue-ui-annotator-C6MknYlp.js} +2 -2
- package/dist/{vue-ui-bullet-DtrCqmnf.js → vue-ui-bullet--e6wu_eV.js} +2 -2
- package/dist/{vue-ui-bump-x1u4Tz4C.js → vue-ui-bump-k2AwGC59.js} +2 -2
- package/dist/{vue-ui-candlestick-CKUDQebI.js → vue-ui-candlestick-BVmiu7I8.js} +2 -2
- package/dist/{vue-ui-carousel-table-DgIS8XIx.js → vue-ui-carousel-table-CDYCZkJe.js} +2 -2
- package/dist/{vue-ui-chestnut-DH0Ao100.js → vue-ui-chestnut-CoPll4kt.js} +2 -2
- package/dist/{vue-ui-chord-DKIblwCg.js → vue-ui-chord-Zxza5Lek.js} +2 -2
- package/dist/vue-ui-circle-pack-CGss-GQ3.js +1596 -0
- package/dist/{vue-ui-cursor-BPS6jUrO.js → vue-ui-cursor-g1ARqBdZ.js} +2 -2
- package/dist/{vue-ui-dag-DxpIAmJq.js → vue-ui-dag-C_APXc5p.js} +2 -2
- package/dist/{vue-ui-dashboard-CVLuS3tw.js → vue-ui-dashboard-WaoHmE2e.js} +65 -65
- package/dist/{vue-ui-digits-CBjh1slE.js → vue-ui-digits-B6B0VxQN.js} +2 -2
- package/dist/{vue-ui-donut-D07k4eg8.js → vue-ui-donut-C9DqiLiv.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Dpm9YUOj.js → vue-ui-donut-evolution-Bk8wqv1D.js} +2 -2
- package/dist/{vue-ui-dumbbell-D_4zIeyv.js → vue-ui-dumbbell-DFXC67IB.js} +2 -2
- package/dist/{vue-ui-flow-Zy3rBFZi.js → vue-ui-flow-nyqdaw6K.js} +2 -2
- package/dist/{vue-ui-funnel-hr5juV4V.js → vue-ui-funnel-AWd3vkNN.js} +2 -2
- package/dist/{vue-ui-galaxy-CdELCFAd.js → vue-ui-galaxy-9fc9Hd8V.js} +2 -2
- package/dist/{vue-ui-gauge-BLzmjcQD.js → vue-ui-gauge-CWFeHBud.js} +2 -2
- package/dist/{vue-ui-geo-BChbk2Hg.js → vue-ui-geo-Dmzbrvxi.js} +2 -2
- package/dist/{vue-ui-gizmo-rGmWdhBQ.js → vue-ui-gizmo-C7-ia7Qj.js} +2 -2
- package/dist/{vue-ui-heatmap-BkemBgrx.js → vue-ui-heatmap-u70d0SIw.js} +3 -3
- package/dist/{vue-ui-history-plot-DtRwG20f.js → vue-ui-history-plot-CAyTp6g-.js} +2 -2
- package/dist/{vue-ui-horizontal-bar-v8JHlakm.js → vue-ui-horizontal-bar-BwLGyJym.js} +3 -3
- package/dist/{vue-ui-kpi-CbYGRjw6.js → vue-ui-kpi-C3y5-BRC.js} +2 -2
- package/dist/{vue-ui-mini-loader-CINjHFmm.js → vue-ui-mini-loader-B-4A16WA.js} +1 -1
- package/dist/{vue-ui-molecule-D-J2pWsN.js → vue-ui-molecule-DHdJBIhR.js} +5 -4
- package/dist/{vue-ui-mood-radar-CdRxxk0n.js → vue-ui-mood-radar-3rQ3seXn.js} +2 -2
- package/dist/{vue-ui-nested-donuts-Cz7EHVyx.js → vue-ui-nested-donuts-CkyNVcNS.js} +2 -2
- package/dist/{vue-ui-onion-CO8p1JTi.js → vue-ui-onion-BRS0F7vR.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-r2k875_U.js → vue-ui-parallel-coordinate-plot-CK2ZUlSw.js} +2 -2
- package/dist/{vue-ui-quadrant-BAvO1Glx.js → vue-ui-quadrant-Cj2KV_z7.js} +2 -2
- package/dist/{vue-ui-quick-chart-Dnp1rtbG.js → vue-ui-quick-chart-Bhr12oH8.js} +2 -2
- package/dist/{vue-ui-radar-BrxOXNdC.js → vue-ui-radar-DnOyaQkz.js} +2 -2
- package/dist/{vue-ui-rating-BFfT2Pqg.js → vue-ui-rating-BJ9v9H9k.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbC71cfl.js → vue-ui-relation-circle-u9QEc8ee.js} +2 -2
- package/dist/{vue-ui-ridgeline-cOTWhQj-.js → vue-ui-ridgeline-DYTp5R9J.js} +2 -2
- package/dist/{vue-ui-rings-CRrBrqta.js → vue-ui-rings-ClYcK_nn.js} +2 -2
- package/dist/{vue-ui-scatter-DuHuJOUV.js → vue-ui-scatter-D0SU1o_K.js} +2 -2
- package/dist/{vue-ui-skeleton-Csp41587.js → vue-ui-skeleton-8lXnB1kN.js} +2 -2
- package/dist/{vue-ui-smiley-DEXO-F37.js → vue-ui-smiley-XGOYNEOl.js} +1 -1
- package/dist/{vue-ui-spark-trend-pqdjH6Xm.js → vue-ui-spark-trend-BSpJpbES.js} +2 -2
- package/dist/{vue-ui-sparkbar-C-X2phQ7.js → vue-ui-sparkbar-DNDThOca.js} +2 -2
- package/dist/{vue-ui-sparkgauge-Dh1N1yEe.js → vue-ui-sparkgauge-yWuiAETN.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-D-fkk68G.js → vue-ui-sparkhistogram-BDBECsRm.js} +2 -2
- package/dist/{vue-ui-sparkline-DE8Z8Ciy.js → vue-ui-sparkline-CuYL1Whh.js} +210 -206
- package/dist/{vue-ui-sparkstackbar-CVx0Bd7_.js → vue-ui-sparkstackbar-22TzSWXm.js} +2 -2
- package/dist/{vue-ui-stackbar-DiIJJhri.js → vue-ui-stackbar-DUVQRjp6.js} +2 -2
- package/dist/{vue-ui-stackline-C9EzEmfc.js → vue-ui-stackline-J0R-RjHc.js} +2 -2
- package/dist/{vue-ui-strip-plot-jMZRbtW9.js → vue-ui-strip-plot-CZtkOhgu.js} +2 -2
- package/dist/{vue-ui-table-BQu89RtZ.js → vue-ui-table-DLPvMKgy.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BUtctJvL.js → vue-ui-table-heatmap-CjSOXgXq.js} +1 -1
- package/dist/{vue-ui-table-sparkline-glnC8X0z.js → vue-ui-table-sparkline-DOzz3o1m.js} +2 -2
- package/dist/{vue-ui-thermometer-DtRXXI_M.js → vue-ui-thermometer-Bfqbd1ax.js} +2 -2
- package/dist/{vue-ui-timer-PNQOfSZO.js → vue-ui-timer-D0-TQScN.js} +2 -2
- package/dist/{vue-ui-tiremarks-BiUnlf_f.js → vue-ui-tiremarks-BVSRY8Gj.js} +2 -2
- package/dist/{vue-ui-treemap-Dz8-KYZ-.js → vue-ui-treemap-DH06-VQ7.js} +2 -2
- package/dist/{vue-ui-waffle-CGNSkRrU.js → vue-ui-waffle-CerCRZ-W.js} +2 -2
- package/dist/{vue-ui-wheel-B58ts6kX.js → vue-ui-wheel-B1lApEvE.js} +2 -2
- package/dist/{vue-ui-word-cloud-DXx7rzvb.js → vue-ui-word-cloud-B_NoJE4l.js} +2 -2
- package/dist/{vue-ui-world-DMNizkIB.js → vue-ui-world-CI3t1Fim.js} +2 -2
- package/dist/{vue-ui-xy-canvas-CO5nY0eA.js → vue-ui-xy-canvas-QZ0PIIIj.js} +2 -2
- package/dist/{vue-ui-xy-BnRvI9E8.js → vue-ui-xy-xLZXDH_8.js} +3 -3
- package/dist/{vue_ui_circle_pack-DBKz_Fi_.js → vue_ui_circle_pack-FjH0ZQeb.js} +42 -0
- package/package.json +1 -1
- package/dist/vue-ui-circle-pack-CY6Q5PYZ.js +0 -1183
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
2
|
import { At as t, G as n, H as r, I as i, M as a, Mt as o, Q as s, R as c, St as l, X as u, et as d, f, i as p, jt as m, k as ee, l as te, ot as ne, t as re, vt as h, y as ie, zt as ae } from "./lib-BkiwukKO.js";
|
|
3
3
|
import { t as oe } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
-
import { t as se } from "./useConfig-
|
|
4
|
+
import { t as se } from "./useConfig-nXlOKvBq.js";
|
|
5
5
|
import { n as ce, t as le } from "./BaseScanner-C7dmAref.js";
|
|
6
6
|
import { t as ue } from "./useNestedProp-Ck4hsrpu.js";
|
|
7
7
|
import { t as de } from "./useThemeCheck-rFK9Zlb_.js";
|
|
@@ -12,7 +12,7 @@ import { t as me } from "./A11yDataTable-q2-8fSlJ.js";
|
|
|
12
12
|
import { t as he } from "./useChartAccessibility-Do37qcw2.js";
|
|
13
13
|
import { t as ge } from "./usePrefersMotion-BywLbIko.js";
|
|
14
14
|
import { t as _e } from "./vue_ui_sparkline-wgk7yO7E.js";
|
|
15
|
-
import { Fragment as _, computed as v, createBlock as ve, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as ye, createVNode as be, defineAsyncComponent as xe, guardReactiveProps as Se, nextTick as S, normalizeProps as Ce, normalizeStyle as C, onBeforeUnmount as we, onMounted as Te, openBlock as w, ref as T, renderList as
|
|
15
|
+
import { Fragment as _, computed as v, createBlock as ve, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as ye, createVNode as be, defineAsyncComponent as xe, guardReactiveProps as Se, nextTick as S, normalizeProps as Ce, normalizeStyle as C, onBeforeUnmount as we, onMounted as Te, openBlock as w, ref as T, renderList as Ee, renderSlot as E, shallowRef as De, toDisplayString as Oe, toRefs as ke, unref as D, watch as O, watchEffect as Ae, withCtx as je } from "vue";
|
|
16
16
|
//#region src/atoms/SparklinePulse.vue
|
|
17
17
|
var Me = {
|
|
18
18
|
key: 0,
|
|
@@ -141,7 +141,7 @@ var Me = {
|
|
|
141
141
|
await S(), i();
|
|
142
142
|
}), we(() => {
|
|
143
143
|
i();
|
|
144
|
-
}), (t, i) => r.value ? (w(), b("g", Me, [(w(!0), b(_, null,
|
|
144
|
+
}), (t, i) => r.value ? (w(), b("g", Me, [(w(!0), b(_, null, Ee(n.value, (t, n) => (w(), b(_, null, [n % 3 == 0 ? (w(), b("circle", {
|
|
145
145
|
key: `sparkline_dot_${n}_${e.pulsePathId}`,
|
|
146
146
|
r: o(n),
|
|
147
147
|
fill: e.pulse.color,
|
|
@@ -371,16 +371,16 @@ function B(e, t, n, r) {
|
|
|
371
371
|
for (a < 0 && (a = 0), a > e.length - 2 && (a = e.length - 2); a > 0 && i < e[a].position;) --a;
|
|
372
372
|
for (; a < e.length - 2 && i > e[a + 1].position;) a += 1;
|
|
373
373
|
let o = e[a], s = e[a + 1], c = s.position - o.position, l = c > 0 ? (i - o.position) / c : 0;
|
|
374
|
-
return
|
|
374
|
+
return H(nt(o.rgba, s.rgba, l, n));
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function nt(e, t, n, r) {
|
|
377
377
|
let i = L(n, 0, 1);
|
|
378
378
|
if (r === "linearRGB") {
|
|
379
|
-
let n =
|
|
379
|
+
let n = V(e.red), r = V(e.green), a = V(e.blue), o = V(t.red), s = V(t.green), c = V(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
|
|
380
380
|
return {
|
|
381
|
-
red:
|
|
382
|
-
green:
|
|
383
|
-
blue:
|
|
381
|
+
red: rt(l),
|
|
382
|
+
green: rt(u),
|
|
383
|
+
blue: rt(d),
|
|
384
384
|
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
385
385
|
};
|
|
386
386
|
}
|
|
@@ -391,19 +391,19 @@ function V(e, t, n, r) {
|
|
|
391
391
|
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function V(e) {
|
|
395
395
|
let t = L(e / 255, 0, 1);
|
|
396
396
|
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function rt(e) {
|
|
399
399
|
let t = L(e, 0, 1), n;
|
|
400
400
|
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, L(Math.round(n * 255), 0, 255);
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function H(e) {
|
|
403
403
|
let t = L(e.alpha, 0, 1), n = L(Math.round(e.red), 0, 255), r = L(Math.round(e.green), 0, 255), i = L(Math.round(e.blue), 0, 255);
|
|
404
404
|
return t >= 1 ? `#${Ge(n)}${Ge(r)}${Ge(i)}` : `rgba(${n}, ${r}, ${i}, ${R(t, 4).toString()})`;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function U(e) {
|
|
407
407
|
let t = `fill="${G(e.fill ?? "none")}"`, n = Object.keys(e);
|
|
408
408
|
for (let r = 0; r < n.length; r += 1) {
|
|
409
409
|
let i = n[r];
|
|
@@ -413,7 +413,7 @@ function nt(e) {
|
|
|
413
413
|
}
|
|
414
414
|
return t;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function W(e, t, n) {
|
|
417
417
|
return `<path d="${G(e)}" stroke="${G(t)}" ${n} />`;
|
|
418
418
|
}
|
|
419
419
|
function it(e) {
|
|
@@ -448,7 +448,7 @@ function ot(e, t = null, n = {}) {
|
|
|
448
448
|
if (i === null && (!(p > 0) || m.length === 1)) {
|
|
449
449
|
let t = at([it({
|
|
450
450
|
pathData: e,
|
|
451
|
-
stroke:
|
|
451
|
+
stroke: H(m[0]),
|
|
452
452
|
segmentAttributeMap: c
|
|
453
453
|
})], l);
|
|
454
454
|
Xe(a), r(t);
|
|
@@ -468,7 +468,7 @@ function ot(e, t = null, n = {}) {
|
|
|
468
468
|
return t;
|
|
469
469
|
})() : [], re = Ze(p, d, n.maxSegmentLength), h = Qe(p, n.segments, re), ie = p / h, ae = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, oe = ie * .45;
|
|
470
470
|
ae > oe && (ae = oe);
|
|
471
|
-
let se = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce =
|
|
471
|
+
let se = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce = U(c), le = [], ue = i === null ? null : [], de = i === null ? null : [], fe = 0, pe = i === null ? ne.length - 2 : 0, g = 0, me = () => {
|
|
472
472
|
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
473
473
|
for (; g < h && performance.now() - e < t;) {
|
|
474
474
|
let e = g * ie, t = (g + 1) * ie, n = e, r = t;
|
|
@@ -479,7 +479,7 @@ function ot(e, t = null, n = {}) {
|
|
|
479
479
|
let e = (n + r) * .5 / p;
|
|
480
480
|
for (; fe < pe && e > ne[fe + 1].position;) fe += 1;
|
|
481
481
|
let t = B(ne, e, ee, fe), i = $e(f, n, r, s, o, se);
|
|
482
|
-
le.push(
|
|
482
|
+
le.push(W(i, t, ce));
|
|
483
483
|
}
|
|
484
484
|
g += 1;
|
|
485
485
|
}
|
|
@@ -496,8 +496,8 @@ function ot(e, t = null, n = {}) {
|
|
|
496
496
|
let n = te[0], r = te[1];
|
|
497
497
|
le.length = 0;
|
|
498
498
|
for (let a = 0; a < de.length; a += 1) {
|
|
499
|
-
let o = de[a], s = qe(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c =
|
|
500
|
-
le.push(
|
|
499
|
+
let o = de[a], s = qe(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = H(i === "vertical" ? We(n, r, s, ee) : We(r, n, s, ee)), l = ue[a];
|
|
500
|
+
le.push(W(l, c, ce));
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
let c = at(le, l);
|
|
@@ -568,7 +568,7 @@ var st = ["innerHTML"], ct = {
|
|
|
568
568
|
i === r && (n.value = a);
|
|
569
569
|
}, { immediate: !0 }), (e, t) => (w(), b("g", { innerHTML: n.value }, null, 8, st));
|
|
570
570
|
}
|
|
571
|
-
}, lt = /* @__PURE__ */ e({ default: () =>
|
|
571
|
+
}, lt = /* @__PURE__ */ e({ default: () => Ut }), ut = ["id"], dt = ["id"], ft = { style: { position: "relative" } }, pt = [
|
|
572
572
|
"xmlns",
|
|
573
573
|
"viewBox",
|
|
574
574
|
"aria-describedby"
|
|
@@ -652,7 +652,7 @@ var st = ["innerHTML"], ct = {
|
|
|
652
652
|
},
|
|
653
653
|
"data-dom-to-png-ignore": "",
|
|
654
654
|
"aria-hidden": "true"
|
|
655
|
-
},
|
|
655
|
+
}, Ut = /* @__PURE__ */ fe({
|
|
656
656
|
__name: "vue-ui-sparkline",
|
|
657
657
|
props: {
|
|
658
658
|
config: {
|
|
@@ -686,7 +686,7 @@ var st = ["innerHTML"], ct = {
|
|
|
686
686
|
},
|
|
687
687
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
688
688
|
setup(e, { emit: fe }) {
|
|
689
|
-
let Me = xe(() => import("./PackageVersion-
|
|
689
|
+
let Me = xe(() => import("./PackageVersion-D5dkifa6.js").then((e) => e.t)), Ne = xe(() => import("./SparkTooltip-c2DL7gqD.js")), { vue_ui_sparkline: Pe } = se(), { isThemeValid: Fe, warnInvalidTheme: Ie } = de(), Le = ge(), k = e, Re = v(() => Array.isArray(k.dataset) && k.dataset.length > 0), A = T(r()), j = T(null), Be = T(null), Ve = T(null), M = T(null), N = T(null), P = T(R());
|
|
690
690
|
function He(e) {
|
|
691
691
|
return k.config?.skeletonDataset && Array.isArray(k.config.skeletonDataset) ? k.config.skeletonDataset.map((e) => ({
|
|
692
692
|
period: "-",
|
|
@@ -724,7 +724,7 @@ var st = ["innerHTML"], ct = {
|
|
|
724
724
|
prepareConfig: R,
|
|
725
725
|
callback: () => {
|
|
726
726
|
Promise.resolve().then(async () => {
|
|
727
|
-
await S(),
|
|
727
|
+
await S(), lt();
|
|
728
728
|
});
|
|
729
729
|
},
|
|
730
730
|
skeletonDataset: He(12),
|
|
@@ -752,7 +752,7 @@ var st = ["innerHTML"], ct = {
|
|
|
752
752
|
else t = e;
|
|
753
753
|
return t;
|
|
754
754
|
}
|
|
755
|
-
let z = v(() => P.value?.style?.line.pulse || {}), Ge = v(() => `${Math.max(200, Number(z.value.durationMs) || 4e3) / 1e3}s`), Ke = T(0), qe = v(() => z.value?.begin || "0ms"), Je = T("0;1"), Ye = v(() => z.value?.loop === !1 ? "1" : "indefinite"), Xe = v(() => z.value?.loop === !1 ? "freeze" : void 0), Ze = v(() => z.value.trail.show && tt.value.lengthPx || 1), Qe = v(() => !!z.value?.show && !Q.value && !Le.value && !F.value && (
|
|
755
|
+
let z = v(() => P.value?.style?.line.pulse || {}), Ge = v(() => `${Math.max(200, Number(z.value.durationMs) || 4e3) / 1e3}s`), Ke = T(0), qe = v(() => z.value?.begin || "0ms"), Je = T("0;1"), Ye = v(() => z.value?.loop === !1 ? "1" : "indefinite"), Xe = v(() => z.value?.loop === !1 ? "freeze" : void 0), Ze = v(() => z.value.trail.show && tt.value.lengthPx || 1), Qe = v(() => !!z.value?.show && !Q.value && !Le.value && !F.value && (J.value?.length || 0) > 1);
|
|
756
756
|
function $e() {
|
|
757
757
|
if (!Qe.value) {
|
|
758
758
|
Ke.value = 0;
|
|
@@ -760,7 +760,7 @@ var st = ["innerHTML"], ct = {
|
|
|
760
760
|
}
|
|
761
761
|
let e = L.value;
|
|
762
762
|
if (!e) return;
|
|
763
|
-
let t = `#${
|
|
763
|
+
let t = `#${Wt.value}`, n = e.querySelector?.(t);
|
|
764
764
|
if (n && typeof n.getTotalLength == "function") {
|
|
765
765
|
let e = n.getTotalLength();
|
|
766
766
|
Number.isFinite(e) && e > 0 && (Ke.value = e);
|
|
@@ -832,9 +832,13 @@ var st = ["innerHTML"], ct = {
|
|
|
832
832
|
}), B = v(() => h({
|
|
833
833
|
data: I.value,
|
|
834
834
|
threshold: P.value.downsample.threshold
|
|
835
|
-
}))
|
|
835
|
+
})), nt = v(() => {
|
|
836
|
+
if (!P.value.temperatureColors.show) return !1;
|
|
837
|
+
let e = I.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
|
|
838
|
+
return new Set(e).size <= 1;
|
|
839
|
+
});
|
|
836
840
|
O(() => k.config, (e) => {
|
|
837
|
-
F.value || (P.value = R()),
|
|
841
|
+
F.value || (P.value = R()), Jt(), K.value.chartWidth = P.value.style.chartWidth;
|
|
838
842
|
}, { deep: !0 }), O(() => k.dataset, (e) => {
|
|
839
843
|
Array.isArray(e) && e.length > 0 && (We.value = !1), V.value = h({
|
|
840
844
|
data: I.value.map((e) => ({
|
|
@@ -844,8 +848,8 @@ var st = ["innerHTML"], ct = {
|
|
|
844
848
|
threshold: P.value.downsample.threshold
|
|
845
849
|
});
|
|
846
850
|
}, { deep: !0 });
|
|
847
|
-
let V = T(
|
|
848
|
-
function
|
|
851
|
+
let V = T(rt());
|
|
852
|
+
function rt() {
|
|
849
853
|
return h({
|
|
850
854
|
data: I.value.map((e) => P.value.style.animation.show && I.value.length > 1 ? {
|
|
851
855
|
...e,
|
|
@@ -857,59 +861,59 @@ var st = ["innerHTML"], ct = {
|
|
|
857
861
|
threshold: P.value.downsample.threshold
|
|
858
862
|
});
|
|
859
863
|
}
|
|
860
|
-
let
|
|
864
|
+
let H = De(null), U = De(null), W = T(!1), it = T(0), at = T([]), G = T(""), ot = v(() => {
|
|
861
865
|
let e = (B.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = P.value?.style?.animation || {}, n = !!P.value?.gradientPath?.show && !P.value.temperatureColors.show;
|
|
862
866
|
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
863
867
|
});
|
|
864
|
-
function ot() {
|
|
865
|
-
rt.value &&= (cancelAnimationFrame(rt.value), 0), it.value.forEach((e) => clearTimeout(e)), it.value = [], nt.value = !1;
|
|
866
|
-
}
|
|
867
868
|
function st() {
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
869
|
+
it.value &&= (cancelAnimationFrame(it.value), 0), at.value.forEach((e) => clearTimeout(e)), at.value = [], W.value = !1;
|
|
870
|
+
}
|
|
871
|
+
function lt() {
|
|
872
|
+
let e = P.value?.style?.animation || {}, t = B.value || [], n = ot.value, r = !!P.value.gradientPath.show && !P.value.temperatureColors.show;
|
|
873
|
+
if (n && n === G.value && (W.value || V.value.length === t.length)) return;
|
|
874
|
+
if (st(), r || !e.show || F.value || t.length <= 1) {
|
|
875
|
+
V.value = t, G.value = n;
|
|
872
876
|
return;
|
|
873
877
|
}
|
|
874
|
-
|
|
878
|
+
W.value = !0, G.value = n, V.value = [];
|
|
875
879
|
let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
|
|
876
|
-
if (n !==
|
|
877
|
-
|
|
880
|
+
if (n !== ot.value) {
|
|
881
|
+
st();
|
|
878
882
|
return;
|
|
879
883
|
}
|
|
880
884
|
if (o < t.length) {
|
|
881
885
|
V.value.push(t[o]);
|
|
882
886
|
let e = setTimeout(() => {
|
|
883
|
-
|
|
887
|
+
it.value = requestAnimationFrame(s);
|
|
884
888
|
}, a);
|
|
885
|
-
|
|
886
|
-
} else V.value = t,
|
|
889
|
+
at.value.push(e), o += 1;
|
|
890
|
+
} else V.value = t, st();
|
|
887
891
|
};
|
|
888
|
-
|
|
892
|
+
it.value = requestAnimationFrame(s);
|
|
889
893
|
}
|
|
890
|
-
O(
|
|
891
|
-
|
|
894
|
+
O(ot, () => {
|
|
895
|
+
lt();
|
|
892
896
|
}), Te(() => {
|
|
893
|
-
|
|
897
|
+
Jt(), lt();
|
|
894
898
|
}), we(() => {
|
|
895
|
-
|
|
899
|
+
st();
|
|
896
900
|
});
|
|
897
|
-
let
|
|
901
|
+
let Ut = T(0);
|
|
898
902
|
O(() => F.value, async (e) => {
|
|
899
|
-
e || (await S(),
|
|
900
|
-
}), O(() =>
|
|
901
|
-
e || F.value || (await S(),
|
|
903
|
+
e || (await S(), Ut.value += 1);
|
|
904
|
+
}), O(() => W.value, async (e) => {
|
|
905
|
+
e || F.value || (await S(), Ut.value += 1);
|
|
902
906
|
});
|
|
903
|
-
let
|
|
904
|
-
async function
|
|
905
|
-
|
|
907
|
+
let Wt = v(() => `sparkline_line_path_${A.value}`), Gt = T(!0);
|
|
908
|
+
async function Kt() {
|
|
909
|
+
Gt.value = !1, await S(), Gt.value = !0, await S(), $e();
|
|
906
910
|
}
|
|
907
|
-
let
|
|
908
|
-
function
|
|
911
|
+
let qt = v(() => !!P.value.debug);
|
|
912
|
+
function Jt() {
|
|
909
913
|
if (l(k.dataset) ? (u({
|
|
910
914
|
componentName: "VueUiSparkline",
|
|
911
915
|
type: "dataset",
|
|
912
|
-
debug:
|
|
916
|
+
debug: qt.value
|
|
913
917
|
}), We.value = !0) : k.dataset.forEach((e, t) => {
|
|
914
918
|
ne({
|
|
915
919
|
datasetObject: e,
|
|
@@ -920,7 +924,7 @@ var st = ["innerHTML"], ct = {
|
|
|
920
924
|
type: "datasetSerieAttribute",
|
|
921
925
|
property: e,
|
|
922
926
|
index: t,
|
|
923
|
-
debug:
|
|
927
|
+
debug: qt.value
|
|
924
928
|
});
|
|
925
929
|
});
|
|
926
930
|
}), l(k.dataset) || (We.value = P.value.loading), P.value.responsive) {
|
|
@@ -931,55 +935,55 @@ var st = ["innerHTML"], ct = {
|
|
|
931
935
|
source: Ve.value
|
|
932
936
|
});
|
|
933
937
|
requestAnimationFrame(() => {
|
|
934
|
-
|
|
938
|
+
K.value.width = e, K.value.height = t, K.value.chartWidth = P.value.style.chartWidth / 500 * e, K.value.padding = k.forcedPadding / 500 * e;
|
|
935
939
|
});
|
|
936
940
|
});
|
|
937
|
-
|
|
941
|
+
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value = j.value.parentNode, H.value.observe(U.value);
|
|
938
942
|
}
|
|
939
943
|
}
|
|
940
944
|
we(() => {
|
|
941
|
-
|
|
945
|
+
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
|
|
942
946
|
});
|
|
943
|
-
let
|
|
947
|
+
let K = T({
|
|
944
948
|
height: 80 * k.heightRatio,
|
|
945
949
|
width: 500,
|
|
946
950
|
chartWidth: P.value.style.chartWidth,
|
|
947
951
|
padding: k.forcedPadding
|
|
948
|
-
}),
|
|
952
|
+
}), Yt = fe, q = v(() => {
|
|
949
953
|
let { top: e, right: t, bottom: n, left: r } = P.value.style.padding;
|
|
950
954
|
return {
|
|
951
955
|
top: e,
|
|
952
956
|
left: r,
|
|
953
|
-
right:
|
|
954
|
-
bottom:
|
|
955
|
-
start: k.showInfo && P.value.style.dataLabel.show && P.value.style.dataLabel.position === "left" ?
|
|
956
|
-
width: k.showInfo && P.value.style.dataLabel.show ?
|
|
957
|
-
height:
|
|
957
|
+
right: K.value.width - t,
|
|
958
|
+
bottom: K.value.height - n,
|
|
959
|
+
start: k.showInfo && P.value.style.dataLabel.show && P.value.style.dataLabel.position === "left" ? K.value.width - K.value.chartWidth + r : K.value.padding + r,
|
|
960
|
+
width: k.showInfo && P.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
|
|
961
|
+
height: K.value.height - e - n
|
|
958
962
|
};
|
|
959
|
-
}),
|
|
963
|
+
}), Xt = v(() => [null, void 0].includes(P.value.style.scaleMin) ? Math.min(...V.value.map((e) => isNaN(e.value) || [
|
|
960
964
|
void 0,
|
|
961
965
|
null,
|
|
962
966
|
"NaN",
|
|
963
967
|
NaN,
|
|
964
968
|
Infinity,
|
|
965
969
|
-Infinity
|
|
966
|
-
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMin),
|
|
970
|
+
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMin), Zt = v(() => [null, void 0].includes(P.value.style.scaleMax) ? Math.max(...V.value.map((e) => isNaN(e.value) || [
|
|
967
971
|
void 0,
|
|
968
972
|
null,
|
|
969
973
|
"NaN",
|
|
970
974
|
NaN,
|
|
971
975
|
Infinity,
|
|
972
976
|
-Infinity
|
|
973
|
-
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMax),
|
|
974
|
-
let e =
|
|
977
|
+
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMax), Qt = v(() => {
|
|
978
|
+
let e = Xt.value >= 0 ? 0 : Xt.value;
|
|
975
979
|
return Math.abs(e);
|
|
976
|
-
}),
|
|
977
|
-
function
|
|
978
|
-
return isNaN(e /
|
|
980
|
+
}), $t = v(() => Zt.value + Qt.value), en = v(() => q.value.bottom - q.value.height * tn(Qt.value));
|
|
981
|
+
function tn(e) {
|
|
982
|
+
return isNaN(e / $t.value) ? 0 : e / $t.value;
|
|
979
983
|
}
|
|
980
|
-
let
|
|
984
|
+
let nn = v(() => B.value.length - 1 || 1), rn = T([]), an = 0;
|
|
981
985
|
Ae(() => {
|
|
982
|
-
let e = ++
|
|
986
|
+
let e = ++an;
|
|
983
987
|
(async () => {
|
|
984
988
|
let t = await oe({
|
|
985
989
|
values: B.value.map((e) => e.period),
|
|
@@ -988,10 +992,10 @@ var st = ["innerHTML"], ct = {
|
|
|
988
992
|
start: 0,
|
|
989
993
|
end: B.value.length
|
|
990
994
|
});
|
|
991
|
-
e ===
|
|
995
|
+
e === an && (rn.value = t);
|
|
992
996
|
})();
|
|
993
997
|
});
|
|
994
|
-
let
|
|
998
|
+
let J = v(() => V.value.map((e, t) => {
|
|
995
999
|
let n = isNaN(e.value) || [
|
|
996
1000
|
void 0,
|
|
997
1001
|
null,
|
|
@@ -999,28 +1003,28 @@ var st = ["innerHTML"], ct = {
|
|
|
999
1003
|
NaN,
|
|
1000
1004
|
Infinity,
|
|
1001
1005
|
-Infinity
|
|
1002
|
-
].includes(e.value) ? 0 : e.value || 0, r =
|
|
1006
|
+
].includes(e.value) ? 0 : e.value || 0, r = q.value.width / nn.value;
|
|
1003
1007
|
return {
|
|
1004
1008
|
value: e.value,
|
|
1005
1009
|
absoluteValue: n,
|
|
1006
|
-
period:
|
|
1007
|
-
plotValue: n +
|
|
1008
|
-
toMax:
|
|
1009
|
-
x:
|
|
1010
|
-
y:
|
|
1010
|
+
period: rn.value && rn.value[t] && rn.value[t].text ? rn.value[t].text : e.period,
|
|
1011
|
+
plotValue: n + Qt.value,
|
|
1012
|
+
toMax: tn(n + Qt.value),
|
|
1013
|
+
x: q.value.start + t * r,
|
|
1014
|
+
y: q.value.bottom - q.value.height * tn(n + Qt.value),
|
|
1011
1015
|
id: `plot_${A.value}_${t}`,
|
|
1012
|
-
color: Q.value ? P.value.style.bar.color : P.value.style.area.useGradient ? o(P.value.style.line.color, .05 * (1 - t /
|
|
1016
|
+
color: Q.value ? P.value.style.bar.color : P.value.style.area.useGradient ? o(P.value.style.line.color, .05 * (1 - t / nn.value)) : P.value.style.line.color,
|
|
1013
1017
|
width: r
|
|
1014
1018
|
};
|
|
1015
|
-
})),
|
|
1019
|
+
})), on = v(() => k.selectedIndex !== void 0 && k.selectedIndex !== null && k.selectedIndex >= 0 && k.selectedIndex < J.value.length ? k.selectedIndex : N.value !== void 0 && N.value !== null && N.value >= 0 && N.value < J.value.length ? N.value : null), sn = v(() => {
|
|
1016
1020
|
let e = {
|
|
1017
|
-
x:
|
|
1018
|
-
y: (
|
|
1021
|
+
x: J.value[0].x || 0,
|
|
1022
|
+
y: (K.value.height || 0) - 6
|
|
1019
1023
|
}, t = {
|
|
1020
|
-
x:
|
|
1021
|
-
y: (
|
|
1024
|
+
x: J.value[J.value.length - 1].x || 0,
|
|
1025
|
+
y: (K.value.height || 0) - 6
|
|
1022
1026
|
}, n = [];
|
|
1023
|
-
return
|
|
1027
|
+
return J.value.forEach((e) => {
|
|
1024
1028
|
n.push(`${e.x || 0},${e.y || 0} `);
|
|
1025
1029
|
}), [
|
|
1026
1030
|
e.x,
|
|
@@ -1029,28 +1033,28 @@ var st = ["innerHTML"], ct = {
|
|
|
1029
1033
|
t.x,
|
|
1030
1034
|
t.y
|
|
1031
1035
|
].toString();
|
|
1032
|
-
}),
|
|
1033
|
-
function
|
|
1036
|
+
}), Y = T(void 0), X = T(void 0);
|
|
1037
|
+
function cn(e, t) {
|
|
1034
1038
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
1035
1039
|
datapoint: e,
|
|
1036
1040
|
seriesIndex: t
|
|
1037
|
-
}), N.value = t, M.value = t,
|
|
1041
|
+
}), N.value = t, M.value = t, Y.value = e, X.value ||= e, Yt("hoverIndex", { index: t });
|
|
1038
1042
|
}
|
|
1039
|
-
function
|
|
1043
|
+
function ln(e, t) {
|
|
1040
1044
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
1041
1045
|
datapoint: e,
|
|
1042
1046
|
seriesIndex: t
|
|
1043
|
-
}),
|
|
1047
|
+
}), X.value = Y.value, Y.value = void 0, N.value = null, M.value = null, Yt("hoverIndex", { index: void 0 });
|
|
1044
1048
|
}
|
|
1045
1049
|
let Z = v(() => {
|
|
1046
1050
|
if (Re.value) {
|
|
1047
|
-
let e =
|
|
1051
|
+
let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1048
1052
|
return {
|
|
1049
|
-
latest:
|
|
1053
|
+
latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
|
|
1050
1054
|
sum: t,
|
|
1051
|
-
average: t /
|
|
1055
|
+
average: t / J.value.length,
|
|
1052
1056
|
median: f(e),
|
|
1053
|
-
trend: te(
|
|
1057
|
+
trend: te(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1054
1058
|
x: e,
|
|
1055
1059
|
y: t,
|
|
1056
1060
|
value: n
|
|
@@ -1063,72 +1067,72 @@ var st = ["innerHTML"], ct = {
|
|
|
1063
1067
|
median: null,
|
|
1064
1068
|
trend: null
|
|
1065
1069
|
};
|
|
1066
|
-
}),
|
|
1067
|
-
function
|
|
1070
|
+
}), un = v(() => Re.value ? P.value.style.dataLabel.valueType === "latest" ? Z.value.latest : P.value.style.dataLabel.valueType === "sum" ? Z.value.sum : P.value.style.dataLabel.valueType === "average" ? Z.value.average : 0 : 0), Q = v(() => P.value.type && P.value.type === "bar");
|
|
1071
|
+
function dn(e, t) {
|
|
1068
1072
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
1069
1073
|
datapoint: e,
|
|
1070
1074
|
seriesIndex: t
|
|
1071
|
-
}),
|
|
1075
|
+
}), Yt("selectDatapoint", {
|
|
1072
1076
|
datapoint: e,
|
|
1073
1077
|
index: t
|
|
1074
1078
|
});
|
|
1075
1079
|
}
|
|
1076
|
-
let
|
|
1080
|
+
let fn = v(() => Array.isArray(P.value.style.line.dashIndices) && P.value.style.line.dashIndices.length > 0), pn = v(() => Q.value ? "" : ee(J.value)), mn = v(() => Q.value ? "" : i(J.value)), hn = v(() => Q.value || !fn.value ? [] : a(J.value, P.value.style.line.dashIndices)), gn = v(() => Q.value || !fn.value ? [] : c(J.value, P.value.style.line.dashIndices)), _n = v(() => Q.value || !P.value.gradientPath.show || P.value.temperatureColors.show ? "" : `M ${(P.value.style.line.smooth ? pn.value : mn.value) || "0,0"}`), $ = v(() => !P.value.temperatureColors.show || nt.value || !P.value.temperatureColors.colors.length ? null : P.value.temperatureColors.colors.map((e) => ie(e)));
|
|
1077
1081
|
O(() => [
|
|
1078
1082
|
Qe.value,
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
+
Wt.value,
|
|
1084
|
+
J.value.length,
|
|
1085
|
+
K.value.width,
|
|
1086
|
+
K.value.height,
|
|
1083
1087
|
P.value?.style?.line?.smooth
|
|
1084
1088
|
], async () => {
|
|
1085
1089
|
await S(), $e();
|
|
1086
1090
|
}, { immediate: !0 }), Te(async () => {
|
|
1087
1091
|
await S(), $e();
|
|
1088
1092
|
}), O(() => F.value, async (e) => {
|
|
1089
|
-
e || await
|
|
1090
|
-
}), O(() =>
|
|
1091
|
-
e || F.value || await
|
|
1093
|
+
e || await Kt();
|
|
1094
|
+
}), O(() => W.value, async (e) => {
|
|
1095
|
+
e || F.value || await Kt();
|
|
1092
1096
|
}), O(() => k.selectedIndex, (e) => {
|
|
1093
1097
|
if (e == null) {
|
|
1094
|
-
N.value = null, M.value = null,
|
|
1098
|
+
N.value = null, M.value = null, Y.value = void 0;
|
|
1095
1099
|
return;
|
|
1096
1100
|
}
|
|
1097
|
-
if (e < 0 || e >=
|
|
1098
|
-
let t =
|
|
1099
|
-
t && (N.value = e, M.value = e,
|
|
1101
|
+
if (e < 0 || e >= J.value.length) return;
|
|
1102
|
+
let t = J.value[e];
|
|
1103
|
+
t && (N.value = e, M.value = e, Y.value = t);
|
|
1100
1104
|
});
|
|
1101
|
-
let
|
|
1102
|
-
function
|
|
1103
|
-
let e =
|
|
1104
|
-
if (e !== null && e >= 0 && e <
|
|
1105
|
-
let t =
|
|
1105
|
+
let vn = T(!1);
|
|
1106
|
+
function yn() {
|
|
1107
|
+
let e = on.value;
|
|
1108
|
+
if (e !== null && e >= 0 && e < J.value.length) {
|
|
1109
|
+
let t = J.value[e];
|
|
1106
1110
|
if (t) {
|
|
1107
|
-
M.value = e,
|
|
1111
|
+
M.value = e, Y.value = t, N.value = e, vn.value = !0;
|
|
1108
1112
|
return;
|
|
1109
1113
|
}
|
|
1110
1114
|
}
|
|
1111
|
-
M.value = null, !
|
|
1115
|
+
M.value = null, !Y.value && J.value.length && cn(J.value.at(-1), J.value.length - 1), vn.value = !0;
|
|
1112
1116
|
}
|
|
1113
|
-
function
|
|
1114
|
-
|
|
1117
|
+
function bn() {
|
|
1118
|
+
X.value = Y.value, (k.selectedIndex === void 0 || k.selectedIndex === null) && (M.value = null, Y.value = void 0, N.value = null, Yt("hoverIndex", { index: void 0 })), vn.value = !1;
|
|
1115
1119
|
}
|
|
1116
|
-
function
|
|
1120
|
+
function xn(e) {
|
|
1117
1121
|
if (!L.value || document.activeElement !== L.value) return;
|
|
1118
|
-
|
|
1122
|
+
X.value = Y.value;
|
|
1119
1123
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1120
1124
|
if (!t && !n) return;
|
|
1121
|
-
let r =
|
|
1125
|
+
let r = J.value.length;
|
|
1122
1126
|
if (!r) return;
|
|
1123
1127
|
e.preventDefault(), e.stopPropagation();
|
|
1124
|
-
let i = M.value, a = i !== null && i >= 0 && i < r, o =
|
|
1128
|
+
let i = M.value, a = i !== null && i >= 0 && i < r, o = Y.value ? J.value.findIndex((e) => e.id === Y.value.id) : -1;
|
|
1125
1129
|
a ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : o !== null && o >= 0 && o < r ? (i = n ? o + 1 : o - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1;
|
|
1126
|
-
let s =
|
|
1127
|
-
s && (M.value = i,
|
|
1130
|
+
let s = J.value[i];
|
|
1131
|
+
s && (M.value = i, cn(s, i));
|
|
1128
1132
|
}
|
|
1129
|
-
let
|
|
1133
|
+
let Sn = v(() => ({
|
|
1130
1134
|
headers: [P.value.translations.period, P.value.translations.value],
|
|
1131
|
-
rows:
|
|
1135
|
+
rows: J.value.map((e) => [e.period, e.absoluteValue])
|
|
1132
1136
|
}));
|
|
1133
1137
|
return (r, i) => (w(), b("div", {
|
|
1134
1138
|
ref_key: "sparklineChart",
|
|
@@ -1141,11 +1145,11 @@ var st = ["innerHTML"], ct = {
|
|
|
1141
1145
|
id: `chart-instructions-${A.value}`,
|
|
1142
1146
|
class: "sr-only"
|
|
1143
1147
|
}, Oe(P.value.a11y.translations.keyboardNavigation), 9, dt),
|
|
1144
|
-
|
|
1148
|
+
Sn.value?.rows?.length ? (w(), ve(me, {
|
|
1145
1149
|
key: 0,
|
|
1146
1150
|
uid: A.value,
|
|
1147
|
-
head:
|
|
1148
|
-
body:
|
|
1151
|
+
head: Sn.value.headers,
|
|
1152
|
+
body: Sn.value.rows,
|
|
1149
1153
|
notice: P.value.a11y.translations.tableAvailable,
|
|
1150
1154
|
caption: P.value.a11y.translations.tableCaption
|
|
1151
1155
|
}, null, 8, [
|
|
@@ -1155,8 +1159,8 @@ var st = ["innerHTML"], ct = {
|
|
|
1155
1159
|
"notice",
|
|
1156
1160
|
"caption"
|
|
1157
1161
|
])) : y("", !0),
|
|
1158
|
-
|
|
1159
|
-
selected:
|
|
1162
|
+
E(r.$slots, "before", Ce(Se({
|
|
1163
|
+
selected: Y.value,
|
|
1160
1164
|
latest: Z.value.latest,
|
|
1161
1165
|
sum: Z.value.sum,
|
|
1162
1166
|
average: Z.value.average,
|
|
@@ -1169,29 +1173,29 @@ var st = ["innerHTML"], ct = {
|
|
|
1169
1173
|
ref: Be,
|
|
1170
1174
|
class: "vue-ui-sparkline-title",
|
|
1171
1175
|
style: C(`display:flex;align-items:center;width:100%;color:${P.value.style.title.color};background:${P.value.style.backgroundColor};justify-content:${P.value.style.title.textAlign === "left" ? "flex-start" : P.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${P.value.style.title.fontSize * 2}px;font-size:${P.value.style.title.fontSize}px;font-weight:${P.value.style.title.bold ? "bold" : "normal"};`)
|
|
1172
|
-
}, [x("span", { style: C(`padding:${P.value.style.title.textAlign === "left" ? "0 0 0 12px" : P.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Oe(
|
|
1176
|
+
}, [x("span", { style: C(`padding:${P.value.style.title.textAlign === "left" ? "0 0 0 12px" : P.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Oe(Y.value ? Y.value.period : P.value.style.title.text), 5)], 4)) : y("", !0),
|
|
1173
1177
|
x("div", ft, [(w(), b("svg", {
|
|
1174
1178
|
ref_key: "svgRef",
|
|
1175
1179
|
ref: L,
|
|
1176
1180
|
xmlns: D(re),
|
|
1177
|
-
viewBox: `0 0 ${
|
|
1181
|
+
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1178
1182
|
style: C(`background:${P.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1179
1183
|
tabindex: "0",
|
|
1180
1184
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1181
|
-
onMouseleave: i[0] ||= (e) =>
|
|
1182
|
-
onFocus:
|
|
1183
|
-
onBlur:
|
|
1184
|
-
onKeydown:
|
|
1185
|
+
onMouseleave: i[0] ||= (e) => X.value = void 0,
|
|
1186
|
+
onFocus: yn,
|
|
1187
|
+
onBlur: bn,
|
|
1188
|
+
onKeydown: xn
|
|
1185
1189
|
}, [
|
|
1186
1190
|
be(D(Me)),
|
|
1187
1191
|
r.$slots["chart-background"] ? (w(), b("foreignObject", {
|
|
1188
1192
|
key: 0,
|
|
1189
1193
|
x: 0,
|
|
1190
1194
|
y: 0,
|
|
1191
|
-
width:
|
|
1192
|
-
height:
|
|
1195
|
+
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1196
|
+
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1193
1197
|
style: { pointerEvents: "none" }
|
|
1194
|
-
}, [
|
|
1198
|
+
}, [E(r.$slots, "chart-background", {}, void 0, !0)], 8, mt)) : y("", !0),
|
|
1195
1199
|
x("defs", null, [
|
|
1196
1200
|
x("linearGradient", {
|
|
1197
1201
|
x1: "0%",
|
|
@@ -1240,20 +1244,20 @@ var st = ["innerHTML"], ct = {
|
|
|
1240
1244
|
stdDeviation: "3",
|
|
1241
1245
|
result: "blur"
|
|
1242
1246
|
}, null, -1), x("feMerge", null, [x("feMergeNode", { in: "blur" }), x("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, wt),
|
|
1243
|
-
P.value.temperatureColors.show && $.value ? (w(), b("linearGradient", {
|
|
1247
|
+
P.value.temperatureColors.show && $.value && !nt.value ? (w(), b("linearGradient", {
|
|
1244
1248
|
key: 0,
|
|
1245
1249
|
id: `temperature_grad_sparkline_${A.value}`,
|
|
1246
1250
|
gradientTransform: "rotate(90)"
|
|
1247
|
-
}, [(w(!0), b(_, null,
|
|
1251
|
+
}, [(w(!0), b(_, null, Ee($.value, (e, n) => (w(), b("stop", {
|
|
1248
1252
|
key: `temperature_grad_stop_${n}_${A.value}`,
|
|
1249
1253
|
"stop-color": e,
|
|
1250
1254
|
offset: D(t)(n, $.value.length)
|
|
1251
1255
|
}, null, 8, Et))), 128))], 8, Tt)) : y("", !0)
|
|
1252
1256
|
]),
|
|
1253
|
-
P.value.style.area.show && !Q.value &&
|
|
1257
|
+
P.value.style.area.show && !Q.value && J.value[0] && J.value.length > 1 ? (w(), b("g", Dt, [P.value.style.line.smooth ? (w(), b("path", {
|
|
1254
1258
|
key: 0,
|
|
1255
1259
|
class: "vue-ui-sparkline-area",
|
|
1256
|
-
d: `M ${
|
|
1260
|
+
d: `M ${J.value[0].x},${q.value.bottom} ${D(ee)(J.value)} L ${J.value.at(-1).x},${q.value.bottom} Z`,
|
|
1257
1261
|
fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
|
|
1258
1262
|
"stroke-linecap": "round",
|
|
1259
1263
|
"stroke-linejoin": "round",
|
|
@@ -1261,21 +1265,21 @@ var st = ["innerHTML"], ct = {
|
|
|
1261
1265
|
}, null, 12, Ot)) : (w(), b("path", {
|
|
1262
1266
|
key: 1,
|
|
1263
1267
|
class: "vue-ui-sparkline-area",
|
|
1264
|
-
d: `M${
|
|
1268
|
+
d: `M${sn.value}Z`,
|
|
1265
1269
|
fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
|
|
1266
1270
|
"stroke-linecap": "round",
|
|
1267
1271
|
"stroke-linejoin": "round",
|
|
1268
1272
|
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1269
1273
|
}, null, 12, kt))])) : y("", !0),
|
|
1270
1274
|
P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 2 }, [x("path", {
|
|
1271
|
-
id:
|
|
1272
|
-
d: `M ${
|
|
1275
|
+
id: Wt.value,
|
|
1276
|
+
d: `M ${pn.value || "0,0"}`,
|
|
1273
1277
|
fill: "none",
|
|
1274
1278
|
stroke: "transparent",
|
|
1275
1279
|
"stroke-width": P.value.style.line.strokeWidth,
|
|
1276
1280
|
"stroke-linecap": "round",
|
|
1277
1281
|
"stroke-linejoin": "round"
|
|
1278
|
-
}, null, 8, At),
|
|
1282
|
+
}, null, 8, At), fn.value ? (w(!0), b(_, { key: 0 }, Ee(hn.value, (e) => (w(), b("path", {
|
|
1279
1283
|
key: e.path,
|
|
1280
1284
|
class: "vue-ui-sparkline-path",
|
|
1281
1285
|
d: `M ${e.path}`,
|
|
@@ -1289,7 +1293,7 @@ var st = ["innerHTML"], ct = {
|
|
|
1289
1293
|
}, null, 12, jt))), 128)) : (w(), b("path", {
|
|
1290
1294
|
key: 1,
|
|
1291
1295
|
class: "vue-ui-sparkline-path",
|
|
1292
|
-
d: `M ${
|
|
1296
|
+
d: `M ${pn.value || "0,0"}`,
|
|
1293
1297
|
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1294
1298
|
fill: "none",
|
|
1295
1299
|
"stroke-width": P.value.style.line.strokeWidth,
|
|
@@ -1298,14 +1302,14 @@ var st = ["innerHTML"], ct = {
|
|
|
1298
1302
|
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1299
1303
|
}, null, 12, Mt))], 64)) : y("", !0),
|
|
1300
1304
|
!P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 3 }, [x("path", {
|
|
1301
|
-
id:
|
|
1302
|
-
d: `M ${
|
|
1305
|
+
id: Wt.value,
|
|
1306
|
+
d: `M ${mn.value || "0,0"}`,
|
|
1303
1307
|
fill: "none",
|
|
1304
1308
|
stroke: "transparent",
|
|
1305
1309
|
"stroke-width": P.value.style.line.strokeWidth,
|
|
1306
1310
|
"stroke-linecap": "round",
|
|
1307
1311
|
"stroke-linejoin": "round"
|
|
1308
|
-
}, null, 8, Nt),
|
|
1312
|
+
}, null, 8, Nt), fn.value ? (w(!0), b(_, { key: 0 }, Ee(gn.value, (e) => (w(), b("path", {
|
|
1309
1313
|
key: e.path,
|
|
1310
1314
|
class: "vue-ui-sparkline-path",
|
|
1311
1315
|
d: `M ${e.path}`,
|
|
@@ -1319,7 +1323,7 @@ var st = ["innerHTML"], ct = {
|
|
|
1319
1323
|
}, null, 12, Pt))), 128)) : (w(), b("path", {
|
|
1320
1324
|
key: 1,
|
|
1321
1325
|
class: "vue-ui-sparkline-path",
|
|
1322
|
-
d: `M ${
|
|
1326
|
+
d: `M ${mn.value || "0,0"}`,
|
|
1323
1327
|
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1324
1328
|
fill: "none",
|
|
1325
1329
|
"stroke-width": P.value.style.line.strokeWidth,
|
|
@@ -1327,9 +1331,9 @@ var st = ["innerHTML"], ct = {
|
|
|
1327
1331
|
"stroke-linejoin": "round",
|
|
1328
1332
|
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1329
1333
|
}, null, 12, Ft))], 64)) : y("", !0),
|
|
1330
|
-
|
|
1334
|
+
_n.value && !$.value ? (w(), ve(ct, {
|
|
1331
1335
|
key: 4,
|
|
1332
|
-
svgPathData:
|
|
1336
|
+
svgPathData: _n.value,
|
|
1333
1337
|
enabled: P.value.gradientPath.show && !Q.value && !$.value,
|
|
1334
1338
|
strokeWidth: P.value.style.line.strokeWidth,
|
|
1335
1339
|
highColor: P.value.gradientPath.colors.high,
|
|
@@ -1343,11 +1347,11 @@ var st = ["innerHTML"], ct = {
|
|
|
1343
1347
|
"lowColor",
|
|
1344
1348
|
"segments"
|
|
1345
1349
|
])) : y("", !0),
|
|
1346
|
-
|
|
1350
|
+
Gt.value && Qe.value ? (w(), ve(ze, {
|
|
1347
1351
|
key: 5,
|
|
1348
1352
|
uid: A.value,
|
|
1349
1353
|
svgRef: D(L),
|
|
1350
|
-
pulsePathId:
|
|
1354
|
+
pulsePathId: Wt.value,
|
|
1351
1355
|
pulsePathLength: Ke.value,
|
|
1352
1356
|
pulseDur: Ge.value,
|
|
1353
1357
|
pulseBegin: qe.value,
|
|
@@ -1379,37 +1383,37 @@ var st = ["innerHTML"], ct = {
|
|
|
1379
1383
|
"loading",
|
|
1380
1384
|
"isBar"
|
|
1381
1385
|
])) : y("", !0),
|
|
1382
|
-
(w(!0), b(_, null,
|
|
1386
|
+
(w(!0), b(_, null, Ee(J.value, (e, t) => (w(), b("g", null, [Q.value ? (w(), b("rect", {
|
|
1383
1387
|
key: 0,
|
|
1384
1388
|
x: e.x - e.width / 2,
|
|
1385
|
-
y: isNaN(e.absoluteValue > 0 ? e.y :
|
|
1389
|
+
y: isNaN(e.absoluteValue > 0 ? e.y : en.value) ? 0 : e.absoluteValue > 0 ? e.y : en.value,
|
|
1386
1390
|
width: e.width,
|
|
1387
|
-
height: isNaN(Math.abs(e.y -
|
|
1391
|
+
height: isNaN(Math.abs(e.y - en.value)) ? 0 : Math.abs(e.y - en.value),
|
|
1388
1392
|
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${A.value})` : `url(#sparkline_bar_gradient_neg_${A.value})`,
|
|
1389
1393
|
rx: P.value.style.bar.borderRadius
|
|
1390
|
-
}, null, 8, It)) : y("", !0), P.value.style.verticalIndicator.show && (
|
|
1394
|
+
}, null, 8, It)) : y("", !0), P.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || on.value === t) ? (w(), b("line", {
|
|
1391
1395
|
key: 1,
|
|
1392
1396
|
x1: e.x,
|
|
1393
1397
|
x2: e.x,
|
|
1394
|
-
y1:
|
|
1395
|
-
y2:
|
|
1398
|
+
y1: q.value.top - 6,
|
|
1399
|
+
y2: q.value.bottom,
|
|
1396
1400
|
stroke: P.value.style.verticalIndicator.color || e.color,
|
|
1397
1401
|
"stroke-width": P.value.style.verticalIndicator.strokeWidth,
|
|
1398
1402
|
"stroke-linecap": "round",
|
|
1399
1403
|
"stroke-dasharray": P.value.style.verticalIndicator.strokeDasharray || 0
|
|
1400
1404
|
}, null, 8, Lt)) : y("", !0)]))), 256)),
|
|
1401
|
-
|
|
1405
|
+
Xt.value < 0 ? (w(), b("line", {
|
|
1402
1406
|
key: 6,
|
|
1403
|
-
x1:
|
|
1404
|
-
x2:
|
|
1405
|
-
y1: D(d)(
|
|
1406
|
-
y2: D(d)(
|
|
1407
|
+
x1: q.value.start,
|
|
1408
|
+
x2: q.value.start + q.value.width,
|
|
1409
|
+
y1: D(d)(en.value, q.value.bottom),
|
|
1410
|
+
y2: D(d)(en.value, q.value.bottom),
|
|
1407
1411
|
stroke: P.value.style.zeroLine.color,
|
|
1408
1412
|
"stroke-dasharray": P.value.style.zeroLine.strokeWidth * 2,
|
|
1409
1413
|
"stroke-width": P.value.style.zeroLine.strokeWidth,
|
|
1410
1414
|
"stroke-linecap": "round"
|
|
1411
1415
|
}, null, 8, Rt)) : y("", !0),
|
|
1412
|
-
P.value.style.plot.show ? (w(!0), b(_, { key: 7 },
|
|
1416
|
+
P.value.style.plot.show ? (w(!0), b(_, { key: 7 }, Ee(J.value, (t, n) => (w(), b("g", null, [Y.value && t.id === Y.value.id || e.selectedIndex === n || D(I).length === 1 ? (w(), b("circle", {
|
|
1413
1417
|
key: 0,
|
|
1414
1418
|
cx: t.x,
|
|
1415
1419
|
cy: t.y,
|
|
@@ -1420,43 +1424,43 @@ var st = ["innerHTML"], ct = {
|
|
|
1420
1424
|
}, null, 8, zt)) : y("", !0)]))), 256)) : y("", !0),
|
|
1421
1425
|
e.showInfo && P.value.style.dataLabel.show ? (w(), b("text", {
|
|
1422
1426
|
key: 8,
|
|
1423
|
-
x: P.value.style.dataLabel.position === "left" ? 12 + P.value.style.dataLabel.offsetX :
|
|
1424
|
-
y:
|
|
1427
|
+
x: P.value.style.dataLabel.position === "left" ? 12 + P.value.style.dataLabel.offsetX : q.value.width + 12 + P.value.style.dataLabel.offsetX,
|
|
1428
|
+
y: K.value.height / 2 + P.value.style.dataLabel.fontSize / 2.5 + P.value.style.dataLabel.offsetY,
|
|
1425
1429
|
"font-size": P.value.style.dataLabel.fontSize,
|
|
1426
1430
|
"font-weight": P.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1427
1431
|
fill: P.value.style.dataLabel.color
|
|
1428
|
-
}, Oe(
|
|
1432
|
+
}, Oe(Y.value ? D(p)(P.value.style.dataLabel.formatter, Y.value.absoluteValue, D(n)({
|
|
1429
1433
|
p: P.value.style.dataLabel.prefix,
|
|
1430
|
-
v:
|
|
1434
|
+
v: Y.value.absoluteValue,
|
|
1431
1435
|
s: P.value.style.dataLabel.suffix,
|
|
1432
1436
|
r: P.value.style.dataLabel.roundingValue
|
|
1433
|
-
}), { datapoint:
|
|
1437
|
+
}), { datapoint: Y.value }) : D(p)(P.value.style.dataLabel.formatter, un.value, D(n)({
|
|
1434
1438
|
p: P.value.style.dataLabel.prefix,
|
|
1435
|
-
v:
|
|
1439
|
+
v: un.value,
|
|
1436
1440
|
s: P.value.style.dataLabel.suffix,
|
|
1437
1441
|
r: P.value.style.dataLabel.roundingValue
|
|
1438
1442
|
}))), 9, Bt)) : y("", !0),
|
|
1439
|
-
(w(!0), b(_, null,
|
|
1440
|
-
x: e.x - (
|
|
1441
|
-
y:
|
|
1442
|
-
height:
|
|
1443
|
-
width:
|
|
1443
|
+
(w(!0), b(_, null, Ee(J.value, (e, t) => (w(), b("rect", {
|
|
1444
|
+
x: e.x - (q.value.width / (nn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (nn.value + 1)) / 2,
|
|
1445
|
+
y: q.value.top - 6,
|
|
1446
|
+
height: q.value.height + 6,
|
|
1447
|
+
width: q.value.width / (nn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (nn.value + 1),
|
|
1444
1448
|
fill: "transparent",
|
|
1445
|
-
onMouseenter: () =>
|
|
1446
|
-
onMouseleave: () =>
|
|
1447
|
-
onClick: () =>
|
|
1449
|
+
onMouseenter: () => cn(e, t),
|
|
1450
|
+
onMouseleave: () => ln(e, t),
|
|
1451
|
+
onClick: () => dn(e, t)
|
|
1448
1452
|
}, null, 40, Vt))), 256)),
|
|
1449
|
-
|
|
1450
|
-
], 44, pt)), r.$slots.hint ? (w(), b("div", Ht, [
|
|
1453
|
+
E(r.$slots, "svg", { svg: K.value }, void 0, !0)
|
|
1454
|
+
], 44, pt)), r.$slots.hint ? (w(), b("div", Ht, [E(r.$slots, "hint", Ce(Se({
|
|
1451
1455
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1452
|
-
isVisible:
|
|
1456
|
+
isVisible: vn.value
|
|
1453
1457
|
})), void 0, !0)])) : y("", !0)]),
|
|
1454
|
-
|
|
1458
|
+
Y.value && P.value.style.tooltip.show ? (w(), ve(D(Ne), {
|
|
1455
1459
|
key: 2,
|
|
1456
|
-
x:
|
|
1457
|
-
y:
|
|
1458
|
-
prevX:
|
|
1459
|
-
prevY:
|
|
1460
|
+
x: Y.value.x,
|
|
1461
|
+
y: Y.value.y,
|
|
1462
|
+
prevX: X.value.x,
|
|
1463
|
+
prevY: X.value.y,
|
|
1460
1464
|
offsetY: P.value.style.plot.radius * 3 + P.value.style.tooltip.offsetY,
|
|
1461
1465
|
svgRef: D(L),
|
|
1462
1466
|
background: P.value.style.tooltip.backgroundColor,
|
|
@@ -1467,12 +1471,12 @@ var st = ["innerHTML"], ct = {
|
|
|
1467
1471
|
borderRadius: P.value.style.tooltip.borderRadius,
|
|
1468
1472
|
backgroundOpacity: P.value.style.tooltip.backgroundOpacity
|
|
1469
1473
|
}, {
|
|
1470
|
-
default: je(() => [
|
|
1474
|
+
default: je(() => [E(r.$slots, "tooltip", Ce(Se({ ...Y.value })), () => [ye(Oe(Y.value.period) + ": " + Oe(D(p)(P.value.style.dataLabel.formatter, Y.value.absoluteValue, D(n)({
|
|
1471
1475
|
p: P.value.style.dataLabel.prefix,
|
|
1472
|
-
v:
|
|
1476
|
+
v: Y.value.absoluteValue,
|
|
1473
1477
|
s: P.value.style.dataLabel.suffix,
|
|
1474
1478
|
r: P.value.style.dataLabel.roundingValue
|
|
1475
|
-
}), { datapoint:
|
|
1479
|
+
}), { datapoint: Y.value })), 1)], !0)]),
|
|
1476
1480
|
_: 3
|
|
1477
1481
|
}, 8, [
|
|
1478
1482
|
"x",
|
|
@@ -1494,10 +1498,10 @@ var st = ["innerHTML"], ct = {
|
|
|
1494
1498
|
ref_key: "source",
|
|
1495
1499
|
ref: Ve,
|
|
1496
1500
|
dir: "auto"
|
|
1497
|
-
}, [
|
|
1498
|
-
|
|
1501
|
+
}, [E(r.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
1502
|
+
E(r.$slots, "skeleton", {}, () => [D(F) ? (w(), ve(le, { key: 0 })) : y("", !0)], !0)
|
|
1499
1503
|
], 12, ut));
|
|
1500
1504
|
}
|
|
1501
|
-
}, [["__scopeId", "data-v-
|
|
1505
|
+
}, [["__scopeId", "data-v-274de18b"]]);
|
|
1502
1506
|
//#endregion
|
|
1503
|
-
export { lt as n,
|
|
1507
|
+
export { lt as n, Ut as t };
|