vue-data-ui 3.23.1 → 3.23.2
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-D6d8SCp9.js → PackageVersion-DXU7nRr9.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-hill.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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -2,12 +2,12 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { $ as t, A as n, B as r, Bt as i, Ct as a, D as o, Et as s, G as c, Gt as l, H as u, I as ee, Jt as te, Kt as ne, L as re, Lt as d, M as f, N as ie, P as ae, Pt as oe, S as se, St as ce, U as le, V as ue, Vt as de, W as fe, X as pe, _ as me, b as p, c as m, d as h, dt as he, i as g, jt as ge, k as _e, l as ve, n as ye, o as be, ot as _, q as xe, qt as Se, r as Ce, tt as we, v as Te, vt as Ee, w as De, xt as Oe, z as ke, zt as Ae } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as je, t as Me } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { n as Ne, r as Pe, t as Fe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as Ie } from "./useConfig-
|
|
5
|
+
import { t as Ie } from "./useConfig-DlNpz6P8.js";
|
|
6
6
|
import { t as Le } from "./usePrinter-DN5bYhTG.js";
|
|
7
7
|
import { n as Re, t as ze } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as Be } from "./
|
|
9
|
-
import { t as Ve } from "./
|
|
10
|
-
import { t as He } from "./
|
|
8
|
+
import { t as Be } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as Ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as He } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as Ue } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as We } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as Ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
@@ -18,7 +18,7 @@ import { t as Ye } from "./Shape-C21CMlWS.js";
|
|
|
18
18
|
import { t as Xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
19
19
|
import { t as Ze } from "./DefGrad-DVBqDjhO.js";
|
|
20
20
|
import { t as Qe } from "./SlicerPreview-wUw1hFwe.js";
|
|
21
|
-
import { t as $e } from "./vue-ui-accordion-
|
|
21
|
+
import { t as $e } from "./vue-ui-accordion-DegI2lzR.js";
|
|
22
22
|
import { t as et } from "./BaseLegendToggle-DZVucLnv.js";
|
|
23
23
|
import { t as tt } from "./A11yDataTable-DdRsVULz.js";
|
|
24
24
|
import { Fragment as v, Teleport as nt, computed as y, createBlock as rt, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as it, createTextVNode as at, createVNode as ot, defineAsyncComponent as st, getCurrentInstance as ct, guardReactiveProps as lt, mergeProps as ut, nextTick as dt, normalizeClass as C, normalizeProps as ft, normalizeStyle as w, onBeforeUnmount as pt, onMounted as mt, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as ht, shallowRef as gt, toDisplayString as k, toRefs as _t, unref as A, useSlots as vt, vModelCheckbox as yt, watch as bt, watchEffect as xt, withCtx as j, withDirectives as St } from "vue";
|
|
@@ -568,93 +568,92 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
568
568
|
"copyAlt"
|
|
569
569
|
],
|
|
570
570
|
setup(e, { expose: Xe, emit: Mt }) {
|
|
571
|
-
let M = e, ui = st(() => import("./DataTable-BbKgJ5UI.js")), di = st(() => import("./Tooltip-DhjyfHwz.js")), fi = st(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), pi = st(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), mi = st(() => import("./vue-ui-table-sparkline-
|
|
571
|
+
let M = e, ui = st(() => import("./DataTable-BbKgJ5UI.js")), di = st(() => import("./Tooltip-DhjyfHwz.js")), fi = st(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), pi = st(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), mi = st(() => import("./vue-ui-table-sparkline-l1cUX3ny.js").then((e) => e.n)), hi = st(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), gi = st(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), _i = st(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), vi = Mt, yi = vt(), bi = ct(), { vue_ui_xy: xi } = Ie(), { isThemeValid: Si, warnInvalidTheme: Ci } = Ve(), wi = E(null), Ti = E(null), Ei = E(null), Di = E(null), Oi = E(null), ki = E(null), Ai = E(null), ji = E(null), Mi = E(null), Ni = E(null), Pi = E(null), Fi = E(null), Ii = E(null), Li = E(null), Ri = E(0), N = E(null), zi = E(!0), Bi = E(600), P = E(1e3), Vi = E("0 0 1000 600"), Hi = E({
|
|
572
572
|
x: 0,
|
|
573
573
|
y: 0
|
|
574
574
|
}), Ui = E({
|
|
575
575
|
line: "line",
|
|
576
576
|
bar: "bar",
|
|
577
577
|
plot: "plot"
|
|
578
|
-
}), Wi = E(!1), Gi = E(!1), Ki = E(!1), qi = E(null), Ji = E([]), Yi = y(() => new Set(Ji.value)), F = E(xe()), Xi = E(0), Zi = E(0), Qi = E(0), $i = E(!0), ea = E(0), I = E(null), ta = E(!1), na = E(!0), ra = E(!0), L = E(null), ia = E({}), aa = E(null), oa = E(!1), sa = E(null), ca = E(
|
|
578
|
+
}), Wi = E(!1), Gi = E(!1), Ki = E(!1), qi = E(null), Ji = E([]), Yi = y(() => new Set(Ji.value)), F = E(xe()), Xi = E(0), Zi = E(0), Qi = E(0), $i = E(!0), ea = E(0), I = E(null), ta = E(!1), na = E(!0), ra = E(!0), L = E(null), ia = E({}), aa = E(null), oa = E(!1), sa = E(null), ca = E(null), R = E(null), la = E(null), ua = E({
|
|
579
579
|
x: 0,
|
|
580
580
|
y: 0
|
|
581
|
-
}),
|
|
582
|
-
elementRef:
|
|
581
|
+
}), da = E(null), fa = E(null), z = E(null), pa = E(null), ma = E(null), ha = gt(null), ga = E(!1), _a = E(0), va = E(0), ya = We({
|
|
582
|
+
elementRef: ha,
|
|
583
583
|
minimumWidth: 2,
|
|
584
584
|
minimumHeight: 2,
|
|
585
585
|
stableFramesRequired: 2,
|
|
586
586
|
once: !1,
|
|
587
587
|
onSizeAccepted: () => {
|
|
588
|
-
|
|
588
|
+
Sa();
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
|
-
function
|
|
592
|
-
|
|
591
|
+
function ba() {
|
|
592
|
+
ha.value = wi.value?.parentNode ?? null;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function xa() {
|
|
595
595
|
return new Promise((e) => {
|
|
596
596
|
requestAnimationFrame(() => {
|
|
597
597
|
requestAnimationFrame(e);
|
|
598
598
|
});
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
async function
|
|
602
|
-
let e = ++
|
|
603
|
-
|
|
601
|
+
async function Sa() {
|
|
602
|
+
let e = ++va.value;
|
|
603
|
+
ga.value = !1, await dt(), await xa(), await xa(), e === va.value && (_a.value += 1, ga.value = !0);
|
|
604
604
|
}
|
|
605
|
-
let
|
|
606
|
-
function
|
|
607
|
-
|
|
608
|
-
|
|
605
|
+
let Ca = E(!1);
|
|
606
|
+
function wa() {
|
|
607
|
+
Ca.value || (Ca.value = !0, dt(() => {
|
|
608
|
+
Ca.value = !1, ba(), Sa();
|
|
609
609
|
}));
|
|
610
610
|
}
|
|
611
|
-
let
|
|
611
|
+
let Ta = y(() => ({
|
|
612
612
|
height: Bi.value,
|
|
613
613
|
width: P.value
|
|
614
|
-
})),
|
|
614
|
+
})), Ea = E(!1), Da = E(null), Oa = E(null), B = E({
|
|
615
615
|
xAxis: 18,
|
|
616
616
|
yAxis: 12,
|
|
617
617
|
dataLabels: 20,
|
|
618
618
|
plotLabels: 10
|
|
619
|
-
}),
|
|
619
|
+
}), ka = E({
|
|
620
620
|
plot: 3,
|
|
621
621
|
line: 3,
|
|
622
622
|
selectedLine: 3
|
|
623
|
-
}),
|
|
623
|
+
}), Aa = y(() => Math.max(ka.value.line * 1.5, ka.value.selectedLine));
|
|
624
624
|
mt(() => {
|
|
625
|
-
oa.value = !0, M.dataset.length && M.dataset.forEach((e, t) => {
|
|
625
|
+
oa.value = !0, M.dataset.length && La.value && M.dataset.forEach((e, t) => {
|
|
626
626
|
[null, void 0].includes(e.series) && we({
|
|
627
627
|
componentName: "VueUiXy",
|
|
628
628
|
type: "datasetSerieAttribute",
|
|
629
629
|
property: "series (number[])",
|
|
630
|
-
index: t
|
|
631
|
-
debug: za.value
|
|
630
|
+
index: t
|
|
632
631
|
});
|
|
633
|
-
}),
|
|
632
|
+
}), ba(), ya.start(), Sa();
|
|
634
633
|
});
|
|
635
|
-
function
|
|
634
|
+
function ja() {
|
|
636
635
|
if (!Object.keys(M.config || {}).length) return xi;
|
|
637
|
-
let e =
|
|
636
|
+
let e = Be({
|
|
638
637
|
userConfig: M.config,
|
|
639
638
|
defaultConfig: xi
|
|
640
639
|
});
|
|
641
|
-
M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea : e.chart.highlightArea = [M.config.chart.highlightArea]), M.config && Ee(M.config, "chart.annotations") && Array.isArray(M.config.chart.annotations) && M.config.chart.annotations.length ? e.chart.annotations = M.config.chart.annotations.map((e) =>
|
|
640
|
+
M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea : e.chart.highlightArea = [M.config.chart.highlightArea]), M.config && Ee(M.config, "chart.annotations") && Array.isArray(M.config.chart.annotations) && M.config.chart.annotations.length ? e.chart.annotations = M.config.chart.annotations.map((e) => Be({
|
|
642
641
|
defaultConfig: xi.chart.annotations[0],
|
|
643
642
|
userConfig: e
|
|
644
|
-
})) : e.chart.annotations = [], M.config && Ee(M.config, "chart.grid.position") && M.config.chart.grid.position === "start" && M.dataset.length && M.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", Ee(M.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea.map((e) =>
|
|
643
|
+
})) : e.chart.annotations = [], M.config && Ee(M.config, "chart.grid.position") && M.config.chart.grid.position === "start" && M.dataset.length && M.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", Ee(M.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea.map((e) => Ma({
|
|
645
644
|
defaultConfig: xi.chart.highlightArea,
|
|
646
645
|
userConfig: e
|
|
647
|
-
})) : e.chart.highlightArea =
|
|
646
|
+
})) : e.chart.highlightArea = Ma({
|
|
648
647
|
defaultConfig: xi.chart.highlightArea,
|
|
649
648
|
userConfig: M.config.chart.highlightArea
|
|
650
649
|
}));
|
|
651
650
|
let t = e.theme;
|
|
652
651
|
if (!t) return e;
|
|
653
652
|
if (!Si.value(e)) return Ci(e), e;
|
|
654
|
-
let n =
|
|
653
|
+
let n = Be({
|
|
655
654
|
userConfig: Je[t] || M.config,
|
|
656
655
|
defaultConfig: e
|
|
657
|
-
}), r =
|
|
656
|
+
}), r = Be({
|
|
658
657
|
userConfig: M.config,
|
|
659
658
|
defaultConfig: n
|
|
660
659
|
});
|
|
@@ -663,20 +662,20 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
663
662
|
customPalette: r.customPalette.length ? r.customPalette : ne[t] || oe
|
|
664
663
|
};
|
|
665
664
|
}
|
|
666
|
-
function
|
|
667
|
-
return
|
|
665
|
+
function Ma({ defaultConfig: e, userConfig: t }) {
|
|
666
|
+
return Be({
|
|
668
667
|
defaultConfig: e,
|
|
669
668
|
userConfig: t
|
|
670
669
|
});
|
|
671
670
|
}
|
|
672
|
-
let
|
|
671
|
+
let Na = y({
|
|
673
672
|
get() {
|
|
674
673
|
return !!M.dataset && M.dataset.length;
|
|
675
674
|
},
|
|
676
675
|
set(e) {
|
|
677
676
|
return e;
|
|
678
677
|
}
|
|
679
|
-
}), V = E(
|
|
678
|
+
}), V = E(ja());
|
|
680
679
|
je({
|
|
681
680
|
config: () => V.value,
|
|
682
681
|
dataset: () => M.dataset,
|
|
@@ -715,31 +714,31 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
715
714
|
}
|
|
716
715
|
]
|
|
717
716
|
});
|
|
718
|
-
let { transitionEnabled:
|
|
717
|
+
let { transitionEnabled: Pa } = Ue({
|
|
719
718
|
config: () => V.value.transitions,
|
|
720
719
|
dataset: () => M.dataset
|
|
721
|
-
}),
|
|
720
|
+
}), Fa = y(() => V.value.chart.userOptions.useCursorPointer), H = E({
|
|
722
721
|
dataLabels: { show: !0 },
|
|
723
722
|
showTooltip: !0,
|
|
724
723
|
showTable: !1,
|
|
725
724
|
isStacked: !1,
|
|
726
725
|
useIndividualScale: !1
|
|
727
726
|
});
|
|
728
|
-
function
|
|
727
|
+
function Ia() {
|
|
729
728
|
let e = V.value.chart.grid.labels.yAxis.stacked, t = V.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
730
|
-
if (!
|
|
729
|
+
if (!Ea.value) {
|
|
731
730
|
H.value = {
|
|
732
731
|
dataLabels: { show: !0 },
|
|
733
732
|
showTooltip: V.value.chart.tooltip.show === !0,
|
|
734
733
|
showTable: V.value.showTable === !0,
|
|
735
734
|
isStacked: e,
|
|
736
735
|
useIndividualScale: t
|
|
737
|
-
},
|
|
736
|
+
}, Da.value = e, Oa.value = t, Ea.value = !0;
|
|
738
737
|
return;
|
|
739
738
|
}
|
|
740
|
-
H.value.showTooltip = V.value.chart.tooltip.show === !0, e !==
|
|
739
|
+
H.value.showTooltip = V.value.chart.tooltip.show === !0, e !== Da.value && (H.value.isStacked = e, Da.value = e), t !== Oa.value && (H.value.useIndividualScale = t, Oa.value = t), H.value.isStacked && (H.value.useIndividualScale = !0);
|
|
741
740
|
}
|
|
742
|
-
let
|
|
741
|
+
let La = y(() => V.value.debug), Ra = y(() => te({
|
|
743
742
|
defaultConfig: {
|
|
744
743
|
useCssAnimation: !1,
|
|
745
744
|
showTable: !1,
|
|
@@ -795,7 +794,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
795
794
|
}
|
|
796
795
|
},
|
|
797
796
|
userConfig: V.value.skeletonConfig ?? {}
|
|
798
|
-
})),
|
|
797
|
+
})), za = y(() => M.config?.skeletonDataset ?? [{
|
|
799
798
|
name: "",
|
|
800
799
|
series: [
|
|
801
800
|
0,
|
|
@@ -832,67 +831,67 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
832
831
|
],
|
|
833
832
|
type: "bar",
|
|
834
833
|
color: "#CACACA"
|
|
835
|
-
}]), { loading:
|
|
834
|
+
}]), { loading: Ba, FINAL_DATASET: Va, manualLoading: Ha } = Re({
|
|
836
835
|
..._t(M),
|
|
837
836
|
FINAL_CONFIG: V,
|
|
838
|
-
prepareConfig:
|
|
837
|
+
prepareConfig: ja,
|
|
839
838
|
callback: () => {
|
|
840
839
|
Promise.resolve().then(async () => {
|
|
841
|
-
(!V.value.chart.zoom.keepState || !
|
|
840
|
+
(!V.value.chart.zoom.keepState || !rs.value || U.value.start === 0 && U.value.end === 0) && await os(), H.value.showTable = V.value.showTable;
|
|
842
841
|
});
|
|
843
842
|
},
|
|
844
|
-
skeletonDataset:
|
|
843
|
+
skeletonDataset: za.value,
|
|
845
844
|
skeletonConfig: te({
|
|
846
845
|
defaultConfig: V.value,
|
|
847
|
-
userConfig:
|
|
846
|
+
userConfig: Ra.value
|
|
848
847
|
})
|
|
849
|
-
}),
|
|
848
|
+
}), Ua = Ot((e, t) => s({
|
|
850
849
|
data: e,
|
|
851
850
|
threshold: t
|
|
852
|
-
})),
|
|
851
|
+
})), Wa = (e) => Ua(e, V.value.downsample.threshold), Ga = y(() => {
|
|
853
852
|
let e = V.value.downsample.threshold;
|
|
854
|
-
return
|
|
855
|
-
}),
|
|
853
|
+
return Va.value.map((t) => Ua(t.series, e).length);
|
|
854
|
+
}), Ka = y(() => {
|
|
856
855
|
let e = -Infinity;
|
|
857
|
-
for (let t = 0; t <
|
|
858
|
-
let n =
|
|
856
|
+
for (let t = 0; t < Ga.value.length; t += 1) {
|
|
857
|
+
let n = Ga.value[t];
|
|
859
858
|
n > e && (e = n);
|
|
860
859
|
}
|
|
861
860
|
return e;
|
|
862
|
-
}),
|
|
861
|
+
}), qa = y(() => {
|
|
863
862
|
let e = 0;
|
|
864
|
-
for (let t = 0; t <
|
|
865
|
-
let n =
|
|
863
|
+
for (let t = 0; t < Ga.value.length; t += 1) {
|
|
864
|
+
let n = Ga.value[t];
|
|
866
865
|
n > e && (e = n);
|
|
867
866
|
}
|
|
868
867
|
return e;
|
|
869
|
-
}),
|
|
868
|
+
}), Ja = y(() => Ka.value), U = E({
|
|
870
869
|
start: 0,
|
|
871
|
-
end:
|
|
872
|
-
}),
|
|
870
|
+
end: Ja.value
|
|
871
|
+
}), Ya = E({
|
|
873
872
|
start: 0,
|
|
874
|
-
end:
|
|
875
|
-
}),
|
|
876
|
-
function
|
|
877
|
-
|
|
873
|
+
end: Ja.value
|
|
874
|
+
}), Xa = y(() => V.value.chart.zoom.preview.enable && (Ya.value.start !== U.value.start || Ya.value.end !== U.value.end));
|
|
875
|
+
function Za(e, t) {
|
|
876
|
+
Ya.value[e] = t;
|
|
878
877
|
}
|
|
879
|
-
function
|
|
878
|
+
function Qa() {
|
|
880
879
|
if (G.value) {
|
|
881
|
-
let e =
|
|
880
|
+
let e = el.value.min, t = el.value.max, n = Number(U.value.start), r = Number(U.value.end);
|
|
882
881
|
Number.isFinite(n) || (n = e), Number.isFinite(r) || (r = t), n = Math.max(e, Math.min(n, t)), r = Math.max(n, Math.min(r, t)), r <= n && (n = e, r = t), U.value = {
|
|
883
882
|
start: n,
|
|
884
883
|
end: r
|
|
885
|
-
},
|
|
884
|
+
}, Ya.value.start = n, Ya.value.end = r, Ei.value && (Ei.value.setStartValue(n), Ei.value.setEndValue(r));
|
|
886
885
|
return;
|
|
887
886
|
}
|
|
888
|
-
let e = Math.max(1, ...
|
|
887
|
+
let e = Math.max(1, ...Va.value.map((e) => Wa(e.series).length)), t = Math.max(0, Math.min(U.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(U.value.end ?? e, e));
|
|
889
888
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), U.value = {
|
|
890
889
|
start: t,
|
|
891
890
|
end: n
|
|
892
|
-
},
|
|
891
|
+
}, Ya.value.start = t, Ya.value.end = n, Ei.value && (Ei.value.setStartValue(t), Ei.value.setEndValue(n));
|
|
893
892
|
}
|
|
894
|
-
let
|
|
895
|
-
let { left: e, top: t, width: n, height: r } = J.value, i = U.value.start, a = U.value.end - i, o = n / a, s =
|
|
893
|
+
let $a = y(() => {
|
|
894
|
+
let { left: e, top: t, width: n, height: r } = J.value, i = U.value.start, a = U.value.end - i, o = n / a, s = Ya.value.start - i, c = Ya.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
896
895
|
return {
|
|
897
896
|
x: e + l * o,
|
|
898
897
|
y: t,
|
|
@@ -919,51 +918,51 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
919
918
|
let t = e - U.value.start;
|
|
920
919
|
t < 0 || e >= U.value.end ? R.value = null : R.value = t ?? null;
|
|
921
920
|
}, { immediate: !0 });
|
|
922
|
-
let { isPrinting:
|
|
921
|
+
let { isPrinting: eo, isImaging: to, generatePdf: no, generateImage: ro } = Le({
|
|
923
922
|
elementId: `vue-ui-xy_${F.value}`,
|
|
924
923
|
fileName: V.value.chart.title.text || "vue-ui-xy",
|
|
925
924
|
options: V.value.chart.userOptions.print
|
|
926
|
-
}),
|
|
925
|
+
}), io = E(!1), ao = y(() => De(V.value.customPalette)), oo = y(() => {
|
|
927
926
|
let e = V.value.chart.grid.labels.yAxis.scaleMin;
|
|
928
927
|
if (e == null) return null;
|
|
929
928
|
let t = Number(e);
|
|
930
929
|
return Number.isFinite(t) ? t : null;
|
|
931
|
-
}),
|
|
930
|
+
}), so = y(() => oo.value === null ? Es.value : J.value.bottom), co = y(() => {
|
|
932
931
|
let e = V.value.chart.grid.labels.yAxis.scaleMax;
|
|
933
932
|
if (e == null) return null;
|
|
934
933
|
let t = Number(e);
|
|
935
934
|
return Number.isFinite(t) ? t : null;
|
|
936
|
-
}),
|
|
937
|
-
let { min: e, max: t } =
|
|
938
|
-
if (!
|
|
935
|
+
}), lo = y(() => oo.value !== null || co.value !== null), uo = y(() => Uc(bo.value.filter((e) => !Yi.value.has(e.id)), 0, 1)), fo = y(() => {
|
|
936
|
+
let { min: e, max: t } = uo.value;
|
|
937
|
+
if (!lo.value) {
|
|
939
938
|
let t = e;
|
|
940
939
|
return t > 0 ? 0 : t;
|
|
941
940
|
}
|
|
942
|
-
let n =
|
|
941
|
+
let n = oo.value === null ? e > 0 ? 0 : e : oo.value, r = co.value === null ? t : co.value;
|
|
943
942
|
return kt(e < n ? e : n, t > r ? t : r).min;
|
|
944
|
-
}),
|
|
945
|
-
let { min: e, max: t } =
|
|
946
|
-
if (!
|
|
943
|
+
}), po = y(() => {
|
|
944
|
+
let { min: e, max: t } = uo.value;
|
|
945
|
+
if (!lo.value) {
|
|
947
946
|
let e = t;
|
|
948
|
-
return
|
|
947
|
+
return fo.value === e ? e + 1 : e;
|
|
949
948
|
}
|
|
950
|
-
let n =
|
|
949
|
+
let n = oo.value === null ? e > 0 ? 0 : e : oo.value, r = co.value === null ? t : co.value;
|
|
951
950
|
return kt(e < n ? e : n, t > r ? t : r).max;
|
|
952
|
-
}), W = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ? me(
|
|
951
|
+
}), W = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ? me(fo.value, po.value < 0 ? 0 : po.value, V.value.chart.grid.labels.yAxis.commonScaleSteps) : Te(fo.value, po.value < 0 ? 0 : po.value, V.value.chart.grid.labels.yAxis.commonScaleSteps)), mo = y(() => [null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) ? W.value.min >= 0 ? 0 : Math.abs(W.value.min) : -W.value.min), G = y(() => Va.value.some((e) => Array.isArray(e.series) && e.series.some(Et)));
|
|
953
952
|
xt(() => {
|
|
954
|
-
G.value &&
|
|
953
|
+
G.value && Va.value.some((e) => !_o(e)) && console.warn("Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.\n\nContinuous mode requires all visible 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nSeries of type 'bar' and standard numeric series are ignored in continuous mode to prevent runtime errors.\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard [number, number, number...] format.");
|
|
955
954
|
});
|
|
956
|
-
function
|
|
955
|
+
function ho(e) {
|
|
957
956
|
return e && typeof e == "object" && e.x === null && e.y === null;
|
|
958
957
|
}
|
|
959
|
-
function
|
|
960
|
-
return Array.isArray(e) && e.some((e) => Et(e) ||
|
|
958
|
+
function go(e) {
|
|
959
|
+
return Array.isArray(e) && e.some((e) => Et(e) || ho(e));
|
|
961
960
|
}
|
|
962
|
-
function
|
|
963
|
-
return !G.value || ["line", "plot"].includes(e.type) &&
|
|
961
|
+
function _o(e) {
|
|
962
|
+
return !G.value || ["line", "plot"].includes(e.type) && go(e.series);
|
|
964
963
|
}
|
|
965
|
-
function
|
|
966
|
-
return
|
|
964
|
+
function vo(e, t) {
|
|
965
|
+
return ho(e) ? {
|
|
967
966
|
x: null,
|
|
968
967
|
y: null,
|
|
969
968
|
index: t,
|
|
@@ -985,38 +984,38 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
985
984
|
isInvalid: !1
|
|
986
985
|
};
|
|
987
986
|
}
|
|
988
|
-
function
|
|
987
|
+
function yo(e) {
|
|
989
988
|
return G.value ? e && typeof e == "object" ? e.y : null : e;
|
|
990
989
|
}
|
|
991
|
-
let
|
|
992
|
-
let n = `uniqueId_${t}`, r =
|
|
990
|
+
let bo = y(() => !zi.value && !G.value ? Va.value : Va.value.map((e, t) => {
|
|
991
|
+
let n = `uniqueId_${t}`, r = _o(e), i = G.value ? r ? e.series : [] : Wa(e.series);
|
|
993
992
|
return {
|
|
994
993
|
...e,
|
|
995
994
|
slotAbsoluteIndex: t,
|
|
996
|
-
series: G.value ? i.map((e, t) =>
|
|
997
|
-
color: se(e.color ? e.color :
|
|
995
|
+
series: G.value ? i.map((e, t) => vo(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) => ce(e) ? e : null).slice(U.value.start, U.value.end),
|
|
996
|
+
color: se(e.color ? e.color : ao.value[t] ? ao.value[t] : oe[t]),
|
|
998
997
|
id: n,
|
|
999
998
|
scaleLabel: e.scaleLabel || n
|
|
1000
999
|
};
|
|
1001
|
-
})),
|
|
1000
|
+
})), xo = y(() => bo.value.map((e, t) => ({
|
|
1002
1001
|
absoluteIndex: t,
|
|
1003
1002
|
...e,
|
|
1004
1003
|
series: G.value ? e.series.map((e) => ({
|
|
1005
1004
|
...e,
|
|
1006
|
-
y: e.y === null ? null : e.y +
|
|
1007
|
-
})) : e.series.map((e) => e +
|
|
1005
|
+
y: e.y === null ? null : e.y + mo.value
|
|
1006
|
+
})) : e.series.map((e) => e + mo.value),
|
|
1008
1007
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series,
|
|
1009
|
-
segregate: () =>
|
|
1008
|
+
segregate: () => ec(e),
|
|
1010
1009
|
isSegregated: Yi.value.has(e.id)
|
|
1011
|
-
}))), K = y(() =>
|
|
1010
|
+
}))), K = y(() => bo.value.map((e) => ({
|
|
1012
1011
|
...e,
|
|
1013
1012
|
series: G.value ? e.series.map((e) => ({
|
|
1014
1013
|
...e,
|
|
1015
|
-
y: e.y === null ? null : e.y +
|
|
1016
|
-
})) : e.series.map((e) => e +
|
|
1014
|
+
y: e.y === null ? null : e.y + mo.value
|
|
1015
|
+
})) : e.series.map((e) => e + mo.value),
|
|
1017
1016
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series
|
|
1018
|
-
})).filter((e) => !Yi.value.has(e.id))),
|
|
1019
|
-
function
|
|
1017
|
+
})).filter((e) => !Yi.value.has(e.id))), So = y(() => Ji.value.length === xo.value.length), q = y(() => V.value.chart.grid.labels.yAxis.position === "right");
|
|
1018
|
+
function Co() {
|
|
1020
1019
|
let e = 0;
|
|
1021
1020
|
Pi.value && (e = Array.from(Pi.value.querySelectorAll("text")).reduce((e, t) => {
|
|
1022
1021
|
let n = t.getComputedTextLength();
|
|
@@ -1030,72 +1029,72 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1030
1029
|
yAxisLabelWidth: t
|
|
1031
1030
|
};
|
|
1032
1031
|
}
|
|
1033
|
-
function
|
|
1034
|
-
let t =
|
|
1032
|
+
function wo(e) {
|
|
1033
|
+
let t = Bs(e);
|
|
1035
1034
|
if (!t) {
|
|
1036
|
-
Z.value = [],
|
|
1035
|
+
Z.value = [], Rs.value = null, ca.value = null;
|
|
1037
1036
|
return;
|
|
1038
1037
|
}
|
|
1039
|
-
let n = Number(t.point.x), r =
|
|
1038
|
+
let n = Number(t.point.x), r = zs.value.matchingPointsByXValue.get(n) || [];
|
|
1040
1039
|
Z.value = r.map((e) => ({
|
|
1041
1040
|
...e,
|
|
1042
1041
|
distance: 0
|
|
1043
|
-
})),
|
|
1042
|
+
})), Rs.value = $c({ x: n }), ca.value = n;
|
|
1044
1043
|
}
|
|
1045
|
-
function
|
|
1044
|
+
function To(e) {
|
|
1046
1045
|
if (!Number.isFinite(Number(e))) {
|
|
1047
|
-
Z.value = [],
|
|
1046
|
+
Z.value = [], Rs.value = null;
|
|
1048
1047
|
return;
|
|
1049
1048
|
}
|
|
1050
|
-
let t =
|
|
1051
|
-
|
|
1049
|
+
let t = $c({ x: Number(e) });
|
|
1050
|
+
wo(t), Rs.value = t;
|
|
1052
1051
|
}
|
|
1053
|
-
let
|
|
1054
|
-
function
|
|
1052
|
+
let Eo = E(0), Do = E(0);
|
|
1053
|
+
function Oo() {
|
|
1055
1054
|
let e = Ni.value;
|
|
1056
1055
|
if (!e) {
|
|
1057
|
-
|
|
1056
|
+
Eo.value = 0, Do.value = 0;
|
|
1058
1057
|
return;
|
|
1059
1058
|
}
|
|
1060
1059
|
try {
|
|
1061
1060
|
let t = e.getBBox();
|
|
1062
|
-
|
|
1061
|
+
Eo.value = t?.height ?? 0, Do.value = t?.x ?? 0;
|
|
1063
1062
|
} catch {
|
|
1064
|
-
|
|
1063
|
+
Eo.value = 0, Do.value = 0;
|
|
1065
1064
|
}
|
|
1066
1065
|
}
|
|
1067
|
-
let
|
|
1066
|
+
let ko = y(() => {
|
|
1068
1067
|
let e = 0;
|
|
1069
1068
|
if (ji.value) try {
|
|
1070
1069
|
e = ji.value.getBBox().height || 0;
|
|
1071
1070
|
} catch {
|
|
1072
1071
|
e = 0;
|
|
1073
1072
|
}
|
|
1074
|
-
return e +
|
|
1075
|
-
}),
|
|
1076
|
-
function
|
|
1073
|
+
return e + Eo.value + B.value.xAxis;
|
|
1074
|
+
}), Ao = y(() => Va.value.some((e) => e.useProgression));
|
|
1075
|
+
function jo() {
|
|
1077
1076
|
return V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.dataLabels * .8;
|
|
1078
1077
|
}
|
|
1079
1078
|
let J = y(() => {
|
|
1080
|
-
|
|
1079
|
+
_a.value;
|
|
1081
1080
|
let e = 0, t = 0, n = 0, r = 0;
|
|
1082
|
-
if (V.value.chart.grid.labels.show) if (H.value.useIndividualScale && !H.value.isStacked) q.value ? t = (
|
|
1081
|
+
if (V.value.chart.grid.labels.show) if (H.value.useIndividualScale && !H.value.isStacked) q.value ? t = (Va.value.length - Ji.value.length) * jo() : e = (Va.value.length - Ji.value.length) * (V.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
1083
1082
|
else if (H.value.useIndividualScale && H.value.isStacked) {
|
|
1084
1083
|
let n = V.value.chart.grid.labels.yAxis.labelWidth + 36;
|
|
1085
1084
|
q.value ? t = n : e = n;
|
|
1086
1085
|
} else {
|
|
1087
|
-
let i =
|
|
1086
|
+
let i = Co();
|
|
1088
1087
|
e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
|
|
1089
1088
|
}
|
|
1090
|
-
let i = V.value.chart.labels.fontSize * 1.1, a =
|
|
1091
|
-
Ni.value &&
|
|
1089
|
+
let i = V.value.chart.labels.fontSize * 1.1, a = Ao.value ? 24 : 6;
|
|
1090
|
+
Ni.value && Do.value < 0 && (e += Math.abs(Do.value));
|
|
1092
1091
|
let o = P.value - e - t - a - V.value.chart.padding?.left - V.value.chart.padding?.right;
|
|
1093
1092
|
return {
|
|
1094
1093
|
top: V.value.chart.padding?.top + i,
|
|
1095
1094
|
right: e + (q.value ? 0 : V.value.chart.grid.labels.yAxis.crosshairSize) + V.value.chart.padding?.left + o,
|
|
1096
|
-
bottom: Bi.value -
|
|
1095
|
+
bottom: Bi.value - ko.value - V.value.chart.padding?.bottom - V.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1097
1096
|
left: e + (q.value ? 0 : V.value.chart.grid.labels.yAxis.crosshairSize) + V.value.chart.padding?.left,
|
|
1098
|
-
height: Bi.value -
|
|
1097
|
+
height: Bi.value - ko.value - V.value.chart.padding?.top - V.value.chart.padding?.bottom - i - V.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1099
1098
|
width: o,
|
|
1100
1099
|
scaleLabelX: e,
|
|
1101
1100
|
rightScaleLabelX: t,
|
|
@@ -1103,108 +1102,108 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1103
1102
|
yAxisLabelWidth: r,
|
|
1104
1103
|
individualOffsetX: 36
|
|
1105
1104
|
};
|
|
1106
|
-
}),
|
|
1105
|
+
}), Mo = y(() => {
|
|
1107
1106
|
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n = _(J.value?.top), r = _(J.value?.bottom);
|
|
1108
|
-
return G.value ? V.value.chart.grid.position === "middle" ?
|
|
1107
|
+
return G.value ? V.value.chart.grid.position === "middle" ? Zc.value.map((e, t, i) => {
|
|
1109
1108
|
if (t === 0) return null;
|
|
1110
1109
|
let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
|
|
1111
1110
|
return `M${o},${n} L${o},${r}`;
|
|
1112
|
-
}).filter(Boolean).join(" ") :
|
|
1113
|
-
let i = V.value.chart.grid.position === "middle" ?
|
|
1111
|
+
}).filter(Boolean).join(" ") : Zc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
|
|
1112
|
+
let i = V.value.chart.grid.position === "middle" ? mc(t) : pc(t);
|
|
1114
1113
|
return `M${i},${n} L${i},${r}`;
|
|
1115
1114
|
}).join(" ");
|
|
1116
|
-
}),
|
|
1115
|
+
}), No = y(() => {
|
|
1117
1116
|
if (!V.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1118
1117
|
let e = V.value.chart.grid.labels.xAxis.crosshairSize, t = V.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1119
|
-
return (G.value ?
|
|
1118
|
+
return (G.value ? Zc.value : qo.value).map((n, r) => {
|
|
1120
1119
|
if (!n || !n.text) return null;
|
|
1121
|
-
let i = G.value ? n.x :
|
|
1122
|
-
return `M${i},${t ?
|
|
1120
|
+
let i = G.value ? n.x : pc(r);
|
|
1121
|
+
return `M${i},${t ? Es.value - (Es.value === J.value?.bottom ? 0 : e / 2) : J.value?.bottom} L${i},${t ? Es.value + e / (Es.value === J.value?.bottom ? 1 : 2) : J.value?.bottom + e}`;
|
|
1123
1122
|
}).filter(Boolean).join(" ");
|
|
1124
1123
|
});
|
|
1125
|
-
function
|
|
1124
|
+
function Po() {
|
|
1126
1125
|
return !!bi?.vnode.props?.onSelectTimeLabel;
|
|
1127
1126
|
}
|
|
1128
|
-
function
|
|
1127
|
+
function Fo(e, t, n) {
|
|
1129
1128
|
if (!aa.value) {
|
|
1130
1129
|
let e = document.createElement("canvas");
|
|
1131
1130
|
aa.value = e.getContext("2d");
|
|
1132
1131
|
}
|
|
1133
1132
|
return aa.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, aa.value;
|
|
1134
1133
|
}
|
|
1135
|
-
function
|
|
1134
|
+
function Io() {
|
|
1136
1135
|
let e = wi.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1137
1136
|
e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
|
|
1138
1137
|
}
|
|
1139
|
-
function
|
|
1138
|
+
function Lo(e, t, n, r, i) {
|
|
1140
1139
|
n && (ia.value[`${e}_${t}_${r}_${i}`] = n);
|
|
1141
1140
|
}
|
|
1142
|
-
let
|
|
1143
|
-
async function
|
|
1144
|
-
await dt(),
|
|
1141
|
+
let Ro = E(!1);
|
|
1142
|
+
async function zo(e = !1) {
|
|
1143
|
+
await dt(), Ro.value = e, ta.value && (ra.value = e);
|
|
1145
1144
|
}
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1145
|
+
function Bo() {
|
|
1146
|
+
zo(!0);
|
|
1148
1147
|
}
|
|
1149
|
-
function
|
|
1150
|
-
|
|
1148
|
+
function Vo() {
|
|
1149
|
+
zo(!1);
|
|
1151
1150
|
}
|
|
1152
|
-
function
|
|
1151
|
+
function Ho() {
|
|
1153
1152
|
Wi.value = !Wi.value;
|
|
1154
1153
|
}
|
|
1155
|
-
let Y = E([]),
|
|
1154
|
+
let Y = E([]), Uo = E([]), Wo = 0;
|
|
1156
1155
|
xt(() => {
|
|
1157
|
-
let e = ++
|
|
1156
|
+
let e = ++Wo;
|
|
1158
1157
|
(async () => {
|
|
1159
|
-
let t =
|
|
1158
|
+
let t = Ka.value, n = await Fe({
|
|
1160
1159
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1161
1160
|
maxDatapoints: t,
|
|
1162
1161
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1163
1162
|
start: U.value.start,
|
|
1164
1163
|
end: U.value.end
|
|
1165
1164
|
});
|
|
1166
|
-
e ===
|
|
1165
|
+
e === Wo && (Y.value = n);
|
|
1167
1166
|
})();
|
|
1168
1167
|
});
|
|
1169
|
-
let
|
|
1168
|
+
let Go = 0;
|
|
1170
1169
|
xt(() => {
|
|
1171
|
-
let e = ++
|
|
1170
|
+
let e = ++Go;
|
|
1172
1171
|
(async () => {
|
|
1173
|
-
let t =
|
|
1172
|
+
let t = Ka.value, n = await Fe({
|
|
1174
1173
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1175
1174
|
maxDatapoints: t,
|
|
1176
1175
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1177
1176
|
start: 0,
|
|
1178
|
-
end:
|
|
1177
|
+
end: Ja.value
|
|
1179
1178
|
});
|
|
1180
|
-
e ===
|
|
1179
|
+
e === Go && (Uo.value = n);
|
|
1181
1180
|
})();
|
|
1182
1181
|
});
|
|
1183
|
-
let
|
|
1182
|
+
let Ko = y(() => {
|
|
1184
1183
|
let e = V.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1185
1184
|
return Y.value.length ? Math.min(e, [...new Set(Y.value.map((e) => e.text))].length) : e;
|
|
1186
|
-
}),
|
|
1187
|
-
let e = V.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n =
|
|
1188
|
-
return m(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
1189
|
-
}),
|
|
1185
|
+
}), qo = y(() => {
|
|
1186
|
+
let e = V.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n = Uo.value || [], r = U.value.start ?? 0, i = R.value, a = X.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
1187
|
+
return m(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Ko.value || 1), o, s, r, i, a);
|
|
1188
|
+
}), Jo = y(() => (qo.value || []).map((e) => e?.text ?? "").join("|"));
|
|
1190
1189
|
mt(() => {
|
|
1191
1190
|
requestAnimationFrame(() => {
|
|
1192
|
-
|
|
1191
|
+
Oo();
|
|
1193
1192
|
}), bt([
|
|
1194
|
-
() =>
|
|
1193
|
+
() => Jo.value,
|
|
1195
1194
|
() => V.value.chart.grid.labels.xAxisLabels.rotation,
|
|
1196
1195
|
() => B.value.xAxis,
|
|
1197
1196
|
() => P.value,
|
|
1198
1197
|
() => Bi.value
|
|
1199
1198
|
], async () => {
|
|
1200
1199
|
await dt(), requestAnimationFrame(() => {
|
|
1201
|
-
|
|
1200
|
+
Oo();
|
|
1202
1201
|
});
|
|
1203
1202
|
}, { flush: "post" });
|
|
1204
1203
|
}), pt(() => {
|
|
1205
|
-
|
|
1204
|
+
Eo.value = 0, Do.value = 0, ya.stop(), da.value &&= (da.value.disconnect(), null);
|
|
1206
1205
|
});
|
|
1207
|
-
function
|
|
1206
|
+
function Yo(e, t) {
|
|
1208
1207
|
let n = K.value.map((e) => ({
|
|
1209
1208
|
shape: e.shape ?? e.type === "bar" ? "square" : "circle",
|
|
1210
1209
|
name: e.name,
|
|
@@ -1225,166 +1224,166 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1225
1224
|
let e = jt((U.value.end ?? 0) - (U.value.start ?? 0));
|
|
1226
1225
|
return Math.max(1, e);
|
|
1227
1226
|
});
|
|
1228
|
-
function
|
|
1227
|
+
function Xo(e) {
|
|
1229
1228
|
G.value || (I.value = e);
|
|
1230
1229
|
}
|
|
1231
|
-
function
|
|
1230
|
+
function Zo(e) {
|
|
1232
1231
|
if (!G.value || !a(e)) {
|
|
1233
|
-
|
|
1232
|
+
ca.value = null, Z.value = [], Rs.value = null;
|
|
1234
1233
|
return;
|
|
1235
1234
|
}
|
|
1236
|
-
|
|
1235
|
+
ca.value = Number(e), To(Number(e));
|
|
1237
1236
|
}
|
|
1238
|
-
let
|
|
1239
|
-
function
|
|
1237
|
+
let Qo = y(() => G.value ? a(ca.value) || a(Rs.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
|
|
1238
|
+
function $o() {
|
|
1240
1239
|
H.value.isStacked = !H.value.isStacked, H.value.isStacked ? H.value.useIndividualScale = !0 : H.value.useIndividualScale = V.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1241
1240
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1241
|
+
function es(e) {
|
|
1242
|
+
La.value && e.autoScaling && (V.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), V.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1244
1243
|
}
|
|
1245
|
-
function
|
|
1246
|
-
let t =
|
|
1244
|
+
function ts(e) {
|
|
1245
|
+
let t = Ka.value;
|
|
1247
1246
|
return e > t ? t : e < 0 || V.value.chart.zoom.startIndex !== null && e < V.value.chart.zoom.startIndex ? V.value.chart.zoom.startIndex === null ? 1 : V.value.chart.zoom.startIndex + 1 : e;
|
|
1248
1247
|
}
|
|
1249
|
-
let
|
|
1250
|
-
function
|
|
1251
|
-
if (!
|
|
1252
|
-
|
|
1248
|
+
let ns = E(!1), rs = E(!1), is = E(0), as = E(0);
|
|
1249
|
+
function os() {
|
|
1250
|
+
if (!ns.value) {
|
|
1251
|
+
ns.value = !0;
|
|
1253
1252
|
try {
|
|
1254
1253
|
if (G.value) {
|
|
1255
|
-
let e =
|
|
1256
|
-
|
|
1254
|
+
let e = el.value.min, t = el.value.max;
|
|
1255
|
+
is.value = e, as.value = t, U.value.start = e, U.value.end = t, Ya.value.start = e, Ya.value.end = t, rs.value = !0, Ei.value && (Ei.value.setStartValue(e), Ei.value.setEndValue(t));
|
|
1257
1256
|
return;
|
|
1258
1257
|
}
|
|
1259
|
-
let { startIndex: e, endIndex: t } = V.value.chart.zoom, n = V.value.chart.zoom.keepState ?
|
|
1258
|
+
let { startIndex: e, endIndex: t } = V.value.chart.zoom, n = V.value.chart.zoom.keepState ? qa.value : Ka.value;
|
|
1260
1259
|
if (V.value.chart.zoom.keepState && n <= 0) return;
|
|
1261
|
-
|
|
1262
|
-
let r = e ?? 0, i = t == null ? n : Math.min(
|
|
1263
|
-
|
|
1260
|
+
is.value = 0, as.value = n;
|
|
1261
|
+
let r = e ?? 0, i = t == null ? n : Math.min(ts(t + 1), n);
|
|
1262
|
+
ss.value = !0, U.value.start = r, U.value.end = i, Ya.value.start = r, Ya.value.end = i, Qa(), rs.value = !0;
|
|
1264
1263
|
} finally {
|
|
1265
1264
|
queueMicrotask(() => {
|
|
1266
|
-
|
|
1267
|
-
}),
|
|
1265
|
+
ss.value = !1;
|
|
1266
|
+
}), ns.value = !1;
|
|
1268
1267
|
}
|
|
1269
1268
|
}
|
|
1270
1269
|
}
|
|
1271
|
-
let
|
|
1272
|
-
function
|
|
1270
|
+
let ss = E(!1), cs = E(!1), ls = null, us = null, ds = {};
|
|
1271
|
+
function fs(e = U.value) {
|
|
1273
1272
|
return Number(e.end) - Number(e.start);
|
|
1274
1273
|
}
|
|
1275
|
-
function
|
|
1276
|
-
|
|
1274
|
+
function ps() {
|
|
1275
|
+
ls &&= (cancelAnimationFrame(ls), null), us &&= (cancelAnimationFrame(us), null);
|
|
1277
1276
|
}
|
|
1278
|
-
function
|
|
1279
|
-
|
|
1280
|
-
...
|
|
1277
|
+
function ms(e) {
|
|
1278
|
+
ds = {
|
|
1279
|
+
...ds,
|
|
1281
1280
|
...e
|
|
1282
|
-
},
|
|
1283
|
-
let e =
|
|
1281
|
+
}, ls && cancelAnimationFrame(ls), ls = requestAnimationFrame(() => {
|
|
1282
|
+
let e = fs(), t = {
|
|
1284
1283
|
...U.value,
|
|
1285
|
-
...
|
|
1286
|
-
}, n =
|
|
1287
|
-
|
|
1288
|
-
|
|
1284
|
+
...ds
|
|
1285
|
+
}, n = fs(t);
|
|
1286
|
+
cs.value = n !== e, U.value = t, Ya.value = { ...t }, ds = {}, ls = null, Qa(), us && cancelAnimationFrame(us), us = requestAnimationFrame(() => {
|
|
1287
|
+
cs.value = !1, us = null;
|
|
1289
1288
|
});
|
|
1290
1289
|
});
|
|
1291
1290
|
}
|
|
1292
|
-
function
|
|
1293
|
-
if (
|
|
1291
|
+
function hs(e) {
|
|
1292
|
+
if (ns.value || ss.value) return;
|
|
1294
1293
|
let t = Number(e);
|
|
1295
1294
|
vi("zoomStart", {
|
|
1296
1295
|
index: t,
|
|
1297
|
-
isZoom: Dt(t,
|
|
1298
|
-
}), Number.isFinite(t) && t !== U.value.start &&
|
|
1296
|
+
isZoom: Dt(t, is.value)
|
|
1297
|
+
}), Number.isFinite(t) && t !== U.value.start && ms({ start: t });
|
|
1299
1298
|
}
|
|
1300
|
-
function
|
|
1301
|
-
if (
|
|
1299
|
+
function gs(e) {
|
|
1300
|
+
if (ns.value || ss.value) return;
|
|
1302
1301
|
if (G.value) {
|
|
1303
1302
|
let t = Number(e);
|
|
1304
1303
|
if (!Number.isFinite(t)) return;
|
|
1305
|
-
let n = Math.max(Number(U.value.start) + 1 / 10 ** V.value.chart.grid.labels.xAxis.rounding, Math.min(t,
|
|
1304
|
+
let n = Math.max(Number(U.value.start) + 1 / 10 ** V.value.chart.grid.labels.xAxis.rounding, Math.min(t, el.value.max));
|
|
1306
1305
|
if (vi("zoomEnd", {
|
|
1307
1306
|
index: n,
|
|
1308
|
-
isZoom: Dt(n,
|
|
1307
|
+
isZoom: Dt(n, as.value)
|
|
1309
1308
|
}), n === U.value.end) return;
|
|
1310
|
-
|
|
1309
|
+
ms({ end: n });
|
|
1311
1310
|
return;
|
|
1312
1311
|
}
|
|
1313
|
-
let t =
|
|
1312
|
+
let t = ts(e);
|
|
1314
1313
|
vi("zoomEnd", {
|
|
1315
1314
|
index: t,
|
|
1316
|
-
isZoom: Dt(t,
|
|
1317
|
-
}), t !== U.value.end &&
|
|
1315
|
+
isZoom: Dt(t, as.value)
|
|
1316
|
+
}), t !== U.value.end && ms({ end: t });
|
|
1318
1317
|
}
|
|
1319
|
-
async function
|
|
1320
|
-
let e =
|
|
1321
|
-
|
|
1322
|
-
|
|
1318
|
+
async function _s() {
|
|
1319
|
+
let e = fs();
|
|
1320
|
+
cs.value = !0, await os(), fs() === e ? cs.value = !1 : (await dt(), us && cancelAnimationFrame(us), us = requestAnimationFrame(() => {
|
|
1321
|
+
cs.value = !1, us = null;
|
|
1323
1322
|
})), vi("zoomReset");
|
|
1324
1323
|
}
|
|
1325
|
-
let
|
|
1326
|
-
function
|
|
1327
|
-
return e / (Ct(
|
|
1324
|
+
let vs = y(() => W.value.max + mo.value);
|
|
1325
|
+
function ys(e) {
|
|
1326
|
+
return e / (Ct(vs.value) ? vs.value : 1);
|
|
1328
1327
|
}
|
|
1329
|
-
let
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1328
|
+
let bs = y(() => V.value.chart.grid.labels.yAxis.reverse);
|
|
1329
|
+
function xs(e) {
|
|
1330
|
+
return bs.value ? 1 - e : e;
|
|
1332
1331
|
}
|
|
1333
|
-
function
|
|
1334
|
-
let r =
|
|
1332
|
+
function Ss({ ratio: e, yOffset: t = 0, individualHeight: n }) {
|
|
1333
|
+
let r = xs(e);
|
|
1335
1334
|
return J.value?.bottom - t - n * r;
|
|
1336
1335
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return
|
|
1336
|
+
function Cs({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
|
|
1337
|
+
return Ss({
|
|
1339
1338
|
ratio: (e - t) / (n - t || 1),
|
|
1340
1339
|
yOffset: r,
|
|
1341
1340
|
individualHeight: i
|
|
1342
1341
|
});
|
|
1343
1342
|
}
|
|
1344
|
-
let
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1343
|
+
let ws = y(() => V.value.chart.grid.labels.xAxis.reverse);
|
|
1344
|
+
function Ts(e) {
|
|
1345
|
+
return ws.value ? 1 - e : e;
|
|
1347
1346
|
}
|
|
1348
|
-
let
|
|
1349
|
-
function
|
|
1347
|
+
let Es = y(() => isNaN(ys(mo.value)) ? J.value?.bottom : J.value?.bottom - J.value.height * ys(mo.value));
|
|
1348
|
+
function Ds(e) {
|
|
1350
1349
|
let t = W.value.min, n = W.value.max - t;
|
|
1351
1350
|
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? J.value?.bottom : J.value?.bottom - J.value.height * ((e - t) / n);
|
|
1352
1351
|
}
|
|
1353
|
-
let
|
|
1354
|
-
function
|
|
1355
|
-
let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
1356
|
-
return e.value >= 0 ? p(t - e.y <= 0 ? 1e-5 : t - e.y) : p(e.y -
|
|
1352
|
+
let Os = y(() => W.value.min <= 0 && W.value.max >= 0 ? Ds(0) : W.value.min > 0 ? Ds(W.value.min) : Ds(W.value.max));
|
|
1353
|
+
function ks(e) {
|
|
1354
|
+
let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 && fo.value >= 0 ? J.value?.bottom : Es.value;
|
|
1355
|
+
return e.value >= 0 ? p(t - e.y <= 0 ? 1e-5 : t - e.y) : p(e.y - Es.value <= 0 ? 1e-5 : e.y - Es.value);
|
|
1357
1356
|
}
|
|
1358
|
-
function
|
|
1357
|
+
function As(e) {
|
|
1359
1358
|
return e.value >= 0 ? p(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : p(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1360
1359
|
}
|
|
1361
|
-
let
|
|
1360
|
+
let js = y(() => {
|
|
1362
1361
|
let e = Math.max(1, X.value);
|
|
1363
1362
|
return {
|
|
1364
|
-
bar: At(Math.max(1, J.value.width), e *
|
|
1365
|
-
plot:
|
|
1366
|
-
line:
|
|
1363
|
+
bar: At(Math.max(1, J.value.width), e * kc.value, 1),
|
|
1364
|
+
plot: dc.value,
|
|
1365
|
+
line: dc.value
|
|
1367
1366
|
};
|
|
1368
1367
|
});
|
|
1369
|
-
function
|
|
1370
|
-
return H.value.useIndividualScale && H.value.isStacked ?
|
|
1368
|
+
function Ms() {
|
|
1369
|
+
return H.value.useIndividualScale && H.value.isStacked ? js.value.line - J.value.width / X.value * .1 : js.value.bar;
|
|
1371
1370
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return H.value.useIndividualScale && H.value.isStacked ? e.x + J.value.width / X.value * .05 : e.x +
|
|
1371
|
+
function Ns(e) {
|
|
1372
|
+
return H.value.useIndividualScale && H.value.isStacked ? e.x + J.value.width / X.value * .05 : e.x + js.value.bar / 2;
|
|
1374
1373
|
}
|
|
1375
|
-
function
|
|
1376
|
-
return H.value.useIndividualScale && H.value.isStacked ? e.x +
|
|
1374
|
+
function Ps(e) {
|
|
1375
|
+
return H.value.useIndividualScale && H.value.isStacked ? e.x + js.value.line / 2 : Ns(e) + Ms() / 2 - Pc.value / 2;
|
|
1377
1376
|
}
|
|
1378
|
-
function
|
|
1377
|
+
function Fs(e) {
|
|
1379
1378
|
return e.value >= 0 ? e.y : [
|
|
1380
1379
|
null,
|
|
1381
1380
|
void 0,
|
|
1382
1381
|
NaN,
|
|
1383
1382
|
Infinity,
|
|
1384
1383
|
-Infinity
|
|
1385
|
-
].includes(
|
|
1384
|
+
].includes(Es.value) ? J?.bottom.value : Es.value;
|
|
1386
1385
|
}
|
|
1387
|
-
function
|
|
1386
|
+
function Is(e) {
|
|
1388
1387
|
return e.value >= 0 ? e.y : [
|
|
1389
1388
|
null,
|
|
1390
1389
|
void 0,
|
|
@@ -1393,7 +1392,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1393
1392
|
-Infinity
|
|
1394
1393
|
].includes(e.zeroPosition) ? 0 : e.zeroPosition;
|
|
1395
1394
|
}
|
|
1396
|
-
let
|
|
1395
|
+
let Ls = E(null), Z = E([]), Rs = E(null), zs = y(() => {
|
|
1397
1396
|
if (!G.value) return {
|
|
1398
1397
|
sortedPoints: [],
|
|
1399
1398
|
matchingPointsByXValue: /* @__PURE__ */ new Map()
|
|
@@ -1404,7 +1403,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1404
1403
|
if (["line", "plot"].includes(i.type) && Array.isArray(i.series)) for (let r = 0; r < i.series.length; r += 1) {
|
|
1405
1404
|
let o = i.series[r];
|
|
1406
1405
|
if (!a(o?.x) || !a(o?.y)) continue;
|
|
1407
|
-
let s = Number(o.x), c =
|
|
1406
|
+
let s = Number(o.x), c = $c(o), l = {
|
|
1408
1407
|
datapoint: i,
|
|
1409
1408
|
point: o,
|
|
1410
1409
|
index: r,
|
|
@@ -1424,8 +1423,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1424
1423
|
matchingPointsByXValue: t
|
|
1425
1424
|
};
|
|
1426
1425
|
});
|
|
1427
|
-
function
|
|
1428
|
-
let t =
|
|
1426
|
+
function Bs(e) {
|
|
1427
|
+
let t = zs.value.sortedPoints;
|
|
1429
1428
|
if (!t.length) return null;
|
|
1430
1429
|
let n = 0, r = t.length - 1;
|
|
1431
1430
|
for (; n <= r;) {
|
|
@@ -1443,18 +1442,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1443
1442
|
});
|
|
1444
1443
|
}), a;
|
|
1445
1444
|
}
|
|
1446
|
-
let
|
|
1447
|
-
function
|
|
1448
|
-
let t =
|
|
1445
|
+
let Vs = y(() => G.value ? Array.from(zs.value.matchingPointsByXValue.keys()).sort((e, t) => $c({ x: e }) - $c({ x: t })) : []);
|
|
1446
|
+
function Hs(e) {
|
|
1447
|
+
let t = Vs.value[e];
|
|
1449
1448
|
if (!a(t)) {
|
|
1450
|
-
Z.value = [],
|
|
1449
|
+
Z.value = [], Rs.value = null, ca.value = null, Ki.value = !1;
|
|
1451
1450
|
return;
|
|
1452
1451
|
}
|
|
1453
|
-
|
|
1454
|
-
let n =
|
|
1455
|
-
i && (
|
|
1452
|
+
To(Number(t));
|
|
1453
|
+
let n = $c({ x: Number(t) }), r = J.value.top + J.value.height / 2, i = l(n, r, L.value);
|
|
1454
|
+
i && (ua.value = i), R.value = e, la.value = e, Ki.value = !0;
|
|
1456
1455
|
}
|
|
1457
|
-
function
|
|
1456
|
+
function Us(e) {
|
|
1458
1457
|
let t = L.value;
|
|
1459
1458
|
if (!t) return null;
|
|
1460
1459
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
@@ -1482,46 +1481,46 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1482
1481
|
ok: !0
|
|
1483
1482
|
};
|
|
1484
1483
|
}
|
|
1485
|
-
let
|
|
1486
|
-
function
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
let t =
|
|
1484
|
+
let Ws = 0;
|
|
1485
|
+
function Gs(e) {
|
|
1486
|
+
la.value = null, !Wi.value && (Ws && cancelAnimationFrame(Ws), Ws = requestAnimationFrame(() => {
|
|
1487
|
+
Ws = 0;
|
|
1488
|
+
let t = Us(e);
|
|
1490
1489
|
if (!t || !L.value) {
|
|
1491
|
-
|
|
1490
|
+
Ks();
|
|
1492
1491
|
return;
|
|
1493
1492
|
}
|
|
1494
1493
|
let { left: n, right: r, top: i, bottom: a } = J.value;
|
|
1495
1494
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1496
|
-
|
|
1495
|
+
Ks();
|
|
1497
1496
|
return;
|
|
1498
1497
|
}
|
|
1499
1498
|
if (G.value) {
|
|
1500
|
-
|
|
1499
|
+
wo(t.x), zl(!0, R.value ?? 0);
|
|
1501
1500
|
return;
|
|
1502
1501
|
}
|
|
1503
|
-
let o =
|
|
1504
|
-
o == null ?
|
|
1502
|
+
let o = _c(t.x);
|
|
1503
|
+
o == null ? Ks() : Ls.value !== o && (Ls.value = o, zl(!0, o));
|
|
1505
1504
|
}));
|
|
1506
1505
|
}
|
|
1507
|
-
function
|
|
1508
|
-
|
|
1506
|
+
function Ks() {
|
|
1507
|
+
Ws &&= (cancelAnimationFrame(Ws), 0), Ls.value = null, I.value = null, ca.value = null, zl(!1, null), Z.value = [], Rs.value = null;
|
|
1509
1508
|
}
|
|
1510
|
-
function
|
|
1511
|
-
let t =
|
|
1509
|
+
function qs(e) {
|
|
1510
|
+
let t = Us(e);
|
|
1512
1511
|
if (t && L.value) {
|
|
1513
1512
|
let { left: e, right: n, top: r, bottom: i } = J.value;
|
|
1514
1513
|
if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
|
|
1515
|
-
let e =
|
|
1514
|
+
let e = _c(t.x);
|
|
1516
1515
|
if (e != null) {
|
|
1517
|
-
|
|
1516
|
+
Js(e);
|
|
1518
1517
|
return;
|
|
1519
1518
|
}
|
|
1520
1519
|
}
|
|
1521
1520
|
}
|
|
1522
|
-
|
|
1521
|
+
Ls.value != null && Js(Ls.value);
|
|
1523
1522
|
}
|
|
1524
|
-
function
|
|
1523
|
+
function Js(e) {
|
|
1525
1524
|
let t = K.value.map((t) => ({
|
|
1526
1525
|
name: t.name,
|
|
1527
1526
|
value: [
|
|
@@ -1541,15 +1540,15 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1541
1540
|
seriesIndex: e + U.value.start
|
|
1542
1541
|
});
|
|
1543
1542
|
}
|
|
1544
|
-
function
|
|
1545
|
-
return
|
|
1543
|
+
function Ys() {
|
|
1544
|
+
return xo.value.map((e) => ({
|
|
1546
1545
|
values: e.absoluteValues,
|
|
1547
1546
|
color: e.color,
|
|
1548
1547
|
name: e.name,
|
|
1549
1548
|
type: e.type
|
|
1550
1549
|
}));
|
|
1551
1550
|
}
|
|
1552
|
-
async function
|
|
1551
|
+
async function Xs({ scale: e = 2 } = {}) {
|
|
1553
1552
|
if (!wi.value) return;
|
|
1554
1553
|
let { imageUri: t, base64: n } = await Ke({
|
|
1555
1554
|
domElement: wi.value,
|
|
@@ -1568,15 +1567,15 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1568
1567
|
...a
|
|
1569
1568
|
};
|
|
1570
1569
|
}
|
|
1571
|
-
function
|
|
1572
|
-
Ji.value.length ? Ji.value = [] :
|
|
1570
|
+
function Zs() {
|
|
1571
|
+
Ji.value.length ? Ji.value = [] : xo.value.forEach((e) => {
|
|
1573
1572
|
Ji.value.push(e.id);
|
|
1574
|
-
}),
|
|
1573
|
+
}), $s();
|
|
1575
1574
|
}
|
|
1576
|
-
function
|
|
1577
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
1575
|
+
function Qs(e, t) {
|
|
1576
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), ec(t));
|
|
1578
1577
|
}
|
|
1579
|
-
function
|
|
1578
|
+
function $s() {
|
|
1580
1579
|
vi("selectLegend", K.value.map((e) => ({
|
|
1581
1580
|
name: e.name,
|
|
1582
1581
|
values: e.absoluteValues,
|
|
@@ -1584,28 +1583,28 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1584
1583
|
type: e.type
|
|
1585
1584
|
})));
|
|
1586
1585
|
}
|
|
1587
|
-
function
|
|
1588
|
-
if (
|
|
1586
|
+
function ec(e) {
|
|
1587
|
+
if (cs.value = !1, us &&= (cancelAnimationFrame(us), null), Yi.value.has(e.id)) Ji.value = Ji.value.filter((t) => t !== e.id);
|
|
1589
1588
|
else {
|
|
1590
|
-
if (Ji.value.length + 1 ===
|
|
1589
|
+
if (Ji.value.length + 1 === bo.value.length) return;
|
|
1591
1590
|
Ji.value.push(e.id);
|
|
1592
1591
|
}
|
|
1593
|
-
|
|
1592
|
+
$s(), ea.value += 1;
|
|
1594
1593
|
}
|
|
1595
|
-
function
|
|
1596
|
-
return
|
|
1594
|
+
function tc(e) {
|
|
1595
|
+
return xo.value.length ? xo.value.find((t) => t.name === e) || (La.value && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (La.value && console.warn("VueUiXy - There are no series to show."), null);
|
|
1597
1596
|
}
|
|
1598
|
-
function
|
|
1599
|
-
let t =
|
|
1600
|
-
t !== null && Yi.value.has(t.id) &&
|
|
1597
|
+
function nc(e) {
|
|
1598
|
+
let t = tc(e);
|
|
1599
|
+
t !== null && Yi.value.has(t.id) && ec({ id: t.id });
|
|
1601
1600
|
}
|
|
1602
|
-
function
|
|
1603
|
-
let t =
|
|
1604
|
-
t !== null && (Yi.value.has(t.id) ||
|
|
1601
|
+
function rc(e) {
|
|
1602
|
+
let t = tc(e);
|
|
1603
|
+
t !== null && (Yi.value.has(t.id) || ec({ id: t.id }));
|
|
1605
1604
|
}
|
|
1606
|
-
let
|
|
1605
|
+
let ic = y(() => `${V.value.chart.title.text || "Chart visualization"}. ${V.value.chart.title.subtitle.text || ""}`), ac = y(() => ({ linePlot: X.value > V.value.line.dot.hideAboveMaxSerieLength })), oc = y(() => V.value.chart.userOptions.show && (!V.value.chart.title.show || !V.value.chart.title.text)), sc = y(() => {
|
|
1607
1606
|
if (Array.isArray(V.value.chart.highlightArea)) return V.value.chart.highlightArea.map((e) => {
|
|
1608
|
-
let t = Math.min(e.to,
|
|
1607
|
+
let t = Math.min(e.to, Ja.value - 1);
|
|
1609
1608
|
return {
|
|
1610
1609
|
...e,
|
|
1611
1610
|
span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
|
|
@@ -1613,18 +1612,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1613
1612
|
});
|
|
1614
1613
|
let e = {
|
|
1615
1614
|
...V.value.chart.highlightArea,
|
|
1616
|
-
to: Math.min(V.value.chart.highlightArea.to,
|
|
1615
|
+
to: Math.min(V.value.chart.highlightArea.to, Ja.value - 1)
|
|
1617
1616
|
};
|
|
1618
1617
|
return [{
|
|
1619
1618
|
...e,
|
|
1620
1619
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1621
1620
|
}];
|
|
1622
|
-
}),
|
|
1621
|
+
}), cc = y(() => zi.value ? Va.value.map((e, t) => ({
|
|
1623
1622
|
...e,
|
|
1624
|
-
series:
|
|
1623
|
+
series: Wa(e.series),
|
|
1625
1624
|
id: `uniqueId_${t}`,
|
|
1626
|
-
color: se(e.color ? e.color :
|
|
1627
|
-
})) :
|
|
1625
|
+
color: se(e.color ? e.color : ao.value[t] ? ao.value[t] : oe[t])
|
|
1626
|
+
})) : Va.value), lc = y(() => K.value.map((e) => {
|
|
1628
1627
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? null : e);
|
|
1629
1628
|
return {
|
|
1630
1629
|
id: e.id,
|
|
@@ -1632,7 +1631,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1632
1631
|
color: e.color,
|
|
1633
1632
|
values: wt(X.value, t)
|
|
1634
1633
|
};
|
|
1635
|
-
})),
|
|
1634
|
+
})), uc = y(() => ({
|
|
1636
1635
|
responsiveBreakpoint: V.value.table.responsiveBreakpoint,
|
|
1637
1636
|
roundingValues: V.value.table.rounding,
|
|
1638
1637
|
showAverage: !1,
|
|
@@ -1641,7 +1640,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1641
1640
|
fontFamily: V.value.chart.fontFamily,
|
|
1642
1641
|
prefix: V.value.chart.labels.prefix,
|
|
1643
1642
|
suffix: V.value.chart.labels.suffix,
|
|
1644
|
-
colNames: Y.value.map((e, t) => V.value.table.useDefaultTimeFormat ? e.text :
|
|
1643
|
+
colNames: Y.value.map((e, t) => V.value.table.useDefaultTimeFormat ? e.text : xl.value(t + U.value.start, V.value.table.timeFormat)),
|
|
1645
1644
|
thead: {
|
|
1646
1645
|
backgroundColor: V.value.table.th.backgroundColor,
|
|
1647
1646
|
color: V.value.table.th.color,
|
|
@@ -1657,46 +1656,46 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1657
1656
|
animation: { show: !1 },
|
|
1658
1657
|
cutNullValues: V.value.line.cutNullValues
|
|
1659
1658
|
}
|
|
1660
|
-
})),
|
|
1659
|
+
})), dc = y(() => {
|
|
1661
1660
|
let e = Math.max(0, J.value?.width || 0);
|
|
1662
1661
|
return V.value.chart.grid.position === "middle" ? At(e, Math.max(1, X.value), 1) : At(e, Math.max(1, X.value - 1), 0);
|
|
1663
|
-
}),
|
|
1664
|
-
function
|
|
1662
|
+
}), fc = y(() => V.value.chart.grid.position === "middle" ? dc.value : X.value <= 1 ? Math.max(0, J.value?.width || 0) : dc.value);
|
|
1663
|
+
function pc(e) {
|
|
1665
1664
|
let t = J.value?.left || 0;
|
|
1666
|
-
return V.value.chart.grid.position === "middle" ? t +
|
|
1665
|
+
return V.value.chart.grid.position === "middle" ? t + dc.value / 2 + dc.value * e : t + dc.value * e;
|
|
1667
1666
|
}
|
|
1668
|
-
function
|
|
1667
|
+
function mc(e) {
|
|
1669
1668
|
let t = J.value?.left || 0;
|
|
1670
|
-
return V.value.chart.grid.position === "middle" ? t +
|
|
1669
|
+
return V.value.chart.grid.position === "middle" ? t + dc.value * e : X.value <= 1 ? t : t + dc.value * e - dc.value / 2;
|
|
1671
1670
|
}
|
|
1672
|
-
function
|
|
1673
|
-
return Math.max(J.value?.left || 0,
|
|
1671
|
+
function hc(e) {
|
|
1672
|
+
return Math.max(J.value?.left || 0, mc(e));
|
|
1674
1673
|
}
|
|
1675
|
-
function
|
|
1676
|
-
let t = J.value?.left || 0, n = J.value?.right || 0, r =
|
|
1674
|
+
function gc(e) {
|
|
1675
|
+
let t = J.value?.left || 0, n = J.value?.right || 0, r = mc(e), i = r + fc.value;
|
|
1677
1676
|
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1678
1677
|
}
|
|
1679
|
-
function
|
|
1678
|
+
function _c(e) {
|
|
1680
1679
|
let t = J.value?.left || 0, n = J.value?.right || 0, r = X.value;
|
|
1681
1680
|
if (r <= 0 || e < t || e > n) return null;
|
|
1682
|
-
let i =
|
|
1681
|
+
let i = dc.value;
|
|
1683
1682
|
if (i <= 0) return 0;
|
|
1684
1683
|
let a;
|
|
1685
1684
|
return a = V.value.chart.grid.position === "middle" ? Math.ceil((e - t) / i) - 1 : r <= 1 ? 0 : Math.ceil((e - t) / i - .5), a < 0 ? 0 : a >= r ? r - 1 : a;
|
|
1686
1685
|
}
|
|
1687
|
-
function
|
|
1688
|
-
let t = J.value?.left || 0, n = J.value?.right || 0, r =
|
|
1686
|
+
function vc(e) {
|
|
1687
|
+
let t = J.value?.left || 0, n = J.value?.right || 0, r = mc(e), i = r + fc.value;
|
|
1689
1688
|
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1690
1689
|
}
|
|
1691
|
-
function
|
|
1692
|
-
return Math.max(1e-5,
|
|
1690
|
+
function yc(e) {
|
|
1691
|
+
return Math.max(1e-5, fc.value * e);
|
|
1693
1692
|
}
|
|
1694
|
-
let
|
|
1693
|
+
let bc = y(() => be(xo.value.filter((e) => !Yi.value.has(e.id)))), xc = [
|
|
1695
1694
|
"bar",
|
|
1696
1695
|
"line",
|
|
1697
1696
|
"plot"
|
|
1698
|
-
],
|
|
1699
|
-
let e = Tt(
|
|
1697
|
+
], Sc = y(() => bc.value.filter((e) => xc.includes(e.type))), Cc = y(() => Sc.value.length), wc = y(() => Sc.value.filter((e) => e.type === "bar")), Tc = y(() => Sc.value.filter((e) => e.type === "line")), Ec = y(() => Sc.value.filter((e) => e.type === "plot")), Dc = y(() => bo.value.filter((e) => e.type === "bar" && !Yi.value.has(e.id))), Oc = y(() => Dc.value.length), kc = y(() => Math.max(1, Oc.value)), Ac = y(() => {
|
|
1698
|
+
let e = Tt(bc.value, (e) => e.scaleLabel), t = {};
|
|
1700
1699
|
for (let [n, r] of Object.entries(e)) {
|
|
1701
1700
|
let e = Infinity, i = -Infinity, a = !1;
|
|
1702
1701
|
for (let t = 0; t < r.length; t += 1) {
|
|
@@ -1714,18 +1713,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1714
1713
|
t[n] = {
|
|
1715
1714
|
min: a ? e : 0,
|
|
1716
1715
|
max: a ? i : 1,
|
|
1717
|
-
groupId:
|
|
1716
|
+
groupId: qc("scale_group", [n])
|
|
1718
1717
|
};
|
|
1719
1718
|
}
|
|
1720
1719
|
return t;
|
|
1721
|
-
}),
|
|
1720
|
+
}), jc = y(() => bc.value.reduce((e, t) => {
|
|
1722
1721
|
let n = t.scaleLabel || "";
|
|
1723
1722
|
return e[n] = (e[n] || 0) + 1, e;
|
|
1724
1723
|
}, {}));
|
|
1725
|
-
function
|
|
1724
|
+
function Mc({ datapoint: e, scaleYLabels: t, autoScaleYLabels: n, zeroPosition: r, autoScaleZeroPosition: i, individualMax: a, autoScaleMax: o, yOffset: s, individualHeight: c }) {
|
|
1726
1725
|
let l = e.scaleLabel || "";
|
|
1727
1726
|
return {
|
|
1728
|
-
...
|
|
1727
|
+
...Ac.value[l] || {},
|
|
1729
1728
|
name: e.name,
|
|
1730
1729
|
groupName: l,
|
|
1731
1730
|
groupColor: V.value.chart.grid.labels.yAxis.groupColor || e.color,
|
|
@@ -1738,12 +1737,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1738
1737
|
yOffset: s,
|
|
1739
1738
|
individualHeight: c,
|
|
1740
1739
|
autoScaleYLabels: n,
|
|
1741
|
-
unique:
|
|
1740
|
+
unique: jc.value[l] === 1
|
|
1742
1741
|
};
|
|
1743
1742
|
}
|
|
1744
|
-
let
|
|
1743
|
+
let Nc = y(() => J.value.width / X.value / Oc.value - Pc.value * Oc.value), Pc = y(() => js.value.line * V.value.bar.periodGap), Fc = y(() => Math.max(1e-5, Ms() - (H.value.useIndividualScale && H.value.isStacked ? 0 : Pc.value))), Ic = y(() => Fc.value * Math.min(Math.abs(V.value.bar.innerGap), .95)), Lc = y(() => {
|
|
1745
1744
|
if (!V.value.chart.zoom.minimap.show) return [];
|
|
1746
|
-
let e =
|
|
1745
|
+
let e = cc.value.filter((e) => !Yi.value.has(e.id)), t = 0;
|
|
1747
1746
|
for (let n = 0; n < e.length; n += 1) {
|
|
1748
1747
|
let r = e[n].series.length;
|
|
1749
1748
|
r > t && (t = r);
|
|
@@ -1754,12 +1753,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1754
1753
|
for (let n = 0; n < e.length; n += 1) t += e[n].series[r] || 0;
|
|
1755
1754
|
n.push(t);
|
|
1756
1755
|
}
|
|
1757
|
-
let r =
|
|
1756
|
+
let r = Gc(n, 0, 1).min;
|
|
1758
1757
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1759
|
-
}),
|
|
1758
|
+
}), Rc = y(() => V.value.chart.zoom.minimap.show ? cc.value.map((e) => ({
|
|
1760
1759
|
...e,
|
|
1761
1760
|
isVisible: !Yi.value.has(e.id)
|
|
1762
|
-
})) : []),
|
|
1761
|
+
})) : []), zc = y(() => G.value ? Z.value.map((e) => ({
|
|
1763
1762
|
slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
|
|
1764
1763
|
shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
|
|
1765
1764
|
name: e.datapoint.name,
|
|
@@ -1780,25 +1779,25 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1780
1779
|
comments: e.comments || [],
|
|
1781
1780
|
prefix: e.prefix || V.value.chart.labels.prefix,
|
|
1782
1781
|
suffix: e.suffix || V.value.chart.labels.suffix
|
|
1783
|
-
}))),
|
|
1784
|
-
let t = e >= 0 ?
|
|
1782
|
+
}))), Bc = y(() => W.value.ticks.map((e) => {
|
|
1783
|
+
let t = e >= 0 ? Es.value - J.value.height * ys(e) : Es.value + J.value.height * ys(Math.abs(e));
|
|
1785
1784
|
return {
|
|
1786
|
-
y:
|
|
1785
|
+
y: bs.value ? J.value.top + J.value.bottom - t : t,
|
|
1787
1786
|
value: e,
|
|
1788
1787
|
prefix: V.value.chart.labels.prefix,
|
|
1789
1788
|
suffix: V.value.chart.labels.suffix
|
|
1790
1789
|
};
|
|
1791
|
-
})),
|
|
1790
|
+
})), Vc = y(() => {
|
|
1792
1791
|
let e = V.value.chart.annotations;
|
|
1793
1792
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1794
1793
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
1795
1794
|
if (!t.length) return [];
|
|
1796
|
-
let { left: n, right: r } = J.value, i =
|
|
1795
|
+
let { left: n, right: r } = J.value, i = Es.value, a = J.value.height, o = W.value.min, s = W.value.max - o, c = (e) => {
|
|
1797
1796
|
let t = (e - 0) / s;
|
|
1798
1797
|
return i - t * a;
|
|
1799
1798
|
};
|
|
1800
1799
|
return t.map((e, t) => {
|
|
1801
|
-
let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a), ee =
|
|
1800
|
+
let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a), ee = Fo(o.fontSize);
|
|
1802
1801
|
ee.font = `${o.fontSize}px sans-serif`;
|
|
1803
1802
|
let te = ee.measureText(o.text).width, ne = o.fontSize, re = (o.position === "start" ? n + o.padding?.left : r - o.padding?.right) + o.offsetX, d = (l != null && u != null ? Math.min(l, u) : l ?? u) - o.fontSize / 3 + o.offsetY - o.padding?.top, f;
|
|
1804
1803
|
f = o.textAnchor === "middle" ? re - te / 2 - o.padding?.left : o.textAnchor === "end" ? re - te - o.padding?.right : re - o.padding?.left;
|
|
@@ -1809,7 +1808,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1809
1808
|
u,
|
|
1810
1809
|
ie
|
|
1811
1810
|
].includes(NaN),
|
|
1812
|
-
id:
|
|
1811
|
+
id: qc("annotation_y", [
|
|
1813
1812
|
t,
|
|
1814
1813
|
i,
|
|
1815
1814
|
a,
|
|
@@ -1840,16 +1839,16 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1840
1839
|
};
|
|
1841
1840
|
});
|
|
1842
1841
|
});
|
|
1843
|
-
function
|
|
1842
|
+
function Hc(e, t) {
|
|
1844
1843
|
let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
|
|
1845
1844
|
return Ct(e[t].value) && i && V.value.line.cutNullValues;
|
|
1846
1845
|
}
|
|
1847
|
-
function
|
|
1846
|
+
function Uc(e, t = 0, n = 1) {
|
|
1848
1847
|
let r = Infinity, i = -Infinity, a = !1;
|
|
1849
1848
|
for (let t = 0; t < e.length; t += 1) {
|
|
1850
1849
|
let n = e[t];
|
|
1851
1850
|
if (Array.isArray(n.series)) for (let e = 0; e < n.series.length; e += 1) {
|
|
1852
|
-
let t =
|
|
1851
|
+
let t = yo(n.series[e]);
|
|
1853
1852
|
Number.isFinite(t) && (a = !0, t < r && (r = t), t > i && (i = t));
|
|
1854
1853
|
}
|
|
1855
1854
|
}
|
|
@@ -1861,7 +1860,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1861
1860
|
max: n
|
|
1862
1861
|
};
|
|
1863
1862
|
}
|
|
1864
|
-
function
|
|
1863
|
+
function Wc(e, t = 0, n = 1) {
|
|
1865
1864
|
let r = Infinity, i = -Infinity, a = !1;
|
|
1866
1865
|
for (let t = 0; t < e.length; t += 1) {
|
|
1867
1866
|
let n = e[t];
|
|
@@ -1880,7 +1879,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1880
1879
|
max: n
|
|
1881
1880
|
};
|
|
1882
1881
|
}
|
|
1883
|
-
function
|
|
1882
|
+
function Gc(e, t = 0, n = 1) {
|
|
1884
1883
|
if (!Array.isArray(e) || e.length === 0) return {
|
|
1885
1884
|
min: t,
|
|
1886
1885
|
max: n
|
|
@@ -1899,26 +1898,26 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1899
1898
|
max: i
|
|
1900
1899
|
};
|
|
1901
1900
|
}
|
|
1902
|
-
function
|
|
1901
|
+
function Kc(e) {
|
|
1903
1902
|
let t = String(e ?? ""), n = 0;
|
|
1904
1903
|
for (let e = 0; e < t.length; e += 1) n = (n << 5) - n + t.charCodeAt(e), n |= 0;
|
|
1905
1904
|
return Math.abs(n).toString(36);
|
|
1906
1905
|
}
|
|
1907
|
-
function
|
|
1908
|
-
return `${e}_${
|
|
1906
|
+
function qc(e, t) {
|
|
1907
|
+
return `${e}_${Kc(t.join("|"))}`;
|
|
1909
1908
|
}
|
|
1910
|
-
function
|
|
1911
|
-
return
|
|
1909
|
+
function Jc() {
|
|
1910
|
+
return Ba.value || cs.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`;
|
|
1912
1911
|
}
|
|
1913
|
-
let
|
|
1914
|
-
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) :
|
|
1912
|
+
let Yc = y(() => Wc(bo.value, 0, 1)), Xc = y(() => {
|
|
1913
|
+
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : Yc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : Yc.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ? me(r, i, e) : Te(r, i, e);
|
|
1915
1914
|
if (V.value.chart.grid.position !== "start") return a;
|
|
1916
1915
|
let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
|
|
1917
1916
|
return {
|
|
1918
1917
|
...a,
|
|
1919
1918
|
max: a.max + o
|
|
1920
1919
|
};
|
|
1921
|
-
}),
|
|
1920
|
+
}), Zc = y(() => G.value ? (ws.value ? [...Xc.value.ticks].reverse() : [...Xc.value.ticks]).map((e, t) => ({
|
|
1922
1921
|
id: `continuous_x_label_${t}`,
|
|
1923
1922
|
text: g(V.value.chart.grid.labels.xAxis.formatter, e, pe({
|
|
1924
1923
|
v: e,
|
|
@@ -1930,24 +1929,24 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1930
1929
|
seriesIndex: t
|
|
1931
1930
|
}),
|
|
1932
1931
|
value: e,
|
|
1933
|
-
x:
|
|
1932
|
+
x: $c({ x: e }),
|
|
1934
1933
|
index: t
|
|
1935
|
-
})) :
|
|
1936
|
-
function
|
|
1937
|
-
return G.value ? e.x :
|
|
1934
|
+
})) : qo.value);
|
|
1935
|
+
function Qc(e, t) {
|
|
1936
|
+
return G.value ? e.x : pc(t);
|
|
1938
1937
|
}
|
|
1939
|
-
function
|
|
1940
|
-
let t =
|
|
1938
|
+
function $c({ x: e }) {
|
|
1939
|
+
let t = Xc.value.max - Xc.value.min || 1, n = Ts((e - Xc.value.min) / t);
|
|
1941
1940
|
return J.value.left + J.value.width * n;
|
|
1942
1941
|
}
|
|
1943
|
-
let
|
|
1944
|
-
function
|
|
1945
|
-
return G.value ? e.x == null || e.y == null ? null :
|
|
1942
|
+
let el = y(() => Wc(Va.value, 0, 1)), tl = y(() => G.value ? el.value.min : 0), nl = y(() => G.value ? el.value.max : Ja.value);
|
|
1943
|
+
function rl(e, t) {
|
|
1944
|
+
return G.value ? e.x == null || e.y == null ? null : $c(e) : pc(t);
|
|
1946
1945
|
}
|
|
1947
|
-
function
|
|
1946
|
+
function il(e) {
|
|
1948
1947
|
return !G.value || !e ? null : e.x ?? null;
|
|
1949
1948
|
}
|
|
1950
|
-
function
|
|
1949
|
+
function al({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1951
1950
|
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ? Te : me, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, ne = u(o.min, ee, c), re = u(i, te, c), d = ne.min >= 0 ? 0 : Math.abs(ne.min), f = ne.max + Math.abs(d), ie = re.max + 0, ae = e.stackIndex, oe = t - 1 - ae, se = H.value.isStacked ? 1 - e.cumulatedStackRatio : 0, ce = H.value.isStacked ? r * se + n * oe : 0, le = H.value.isStacked ? r * e.stackRatio : J.value.height;
|
|
1952
1951
|
return {
|
|
1953
1952
|
scaleSteps: c,
|
|
@@ -1963,27 +1962,27 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1963
1962
|
autoScaleZeroPosition: J.value?.bottom - ce - le * 0 / ie
|
|
1964
1963
|
};
|
|
1965
1964
|
}
|
|
1966
|
-
function
|
|
1967
|
-
let n =
|
|
1965
|
+
function ol({ datapoint: e, clampNegativeAutoScaleMaximum: t = !1 }) {
|
|
1966
|
+
let n = Ac.value[e.scaleLabel], r = n.min, i = n.max;
|
|
1968
1967
|
return {
|
|
1969
1968
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (i - r)),
|
|
1970
1969
|
valueMin: r,
|
|
1971
1970
|
valueMax: t && i < 0 ? 0 : i
|
|
1972
1971
|
};
|
|
1973
1972
|
}
|
|
1974
|
-
function
|
|
1975
|
-
let r =
|
|
1973
|
+
function sl({ datapoint: e, filterMinimumValues: t = !1, preserveLooseMinimumExpression: n = !1 }) {
|
|
1974
|
+
let r = Gc(e.absoluteValues, 0, 1), i = Gc(t ? e.absoluteValues.filter((e) => ![null, void 0].includes(e)) : e.absoluteValues, 0, 1).min;
|
|
1976
1975
|
return {
|
|
1977
1976
|
max: e.scaleMax || r.max || 1,
|
|
1978
1977
|
min: n ? e.scaleMin || i > 0 ? 0 : i : e.scaleMin || (i > 0 ? 0 : i)
|
|
1979
1978
|
};
|
|
1980
1979
|
}
|
|
1981
|
-
function
|
|
1980
|
+
function cl({ values: e, autoScaleSteps: t }) {
|
|
1982
1981
|
return e.map((e) => t.min >= 0 ? (e - Math.abs(t.min)) / (t.max - Math.abs(t.min)) : (e + Math.abs(t.min)) / (t.max + Math.abs(t.min)));
|
|
1983
1982
|
}
|
|
1984
|
-
function
|
|
1983
|
+
function ll({ datapoint: e, individualScale: t, yOffset: n, individualHeight: r }) {
|
|
1985
1984
|
return t.ticks.map((i) => ({
|
|
1986
|
-
y:
|
|
1985
|
+
y: Cs({
|
|
1987
1986
|
value: i,
|
|
1988
1987
|
scaleMin: t.min,
|
|
1989
1988
|
scaleMax: t.max,
|
|
@@ -1996,9 +1995,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
1996
1995
|
datapoint: e
|
|
1997
1996
|
}));
|
|
1998
1997
|
}
|
|
1999
|
-
function
|
|
1998
|
+
function ul({ datapoint: e, autoScaleSteps: t, yOffset: n, individualHeight: r }) {
|
|
2000
1999
|
return t.ticks.map((i) => ({
|
|
2001
|
-
y:
|
|
2000
|
+
y: Ss({
|
|
2002
2001
|
ratio: (i - t.min) / (t.max - t.min || 1),
|
|
2003
2002
|
yOffset: n,
|
|
2004
2003
|
individualHeight: r
|
|
@@ -2009,16 +2008,16 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2009
2008
|
datapoint: e
|
|
2010
2009
|
}));
|
|
2011
2010
|
}
|
|
2012
|
-
function
|
|
2013
|
-
|
|
2014
|
-
let c =
|
|
2011
|
+
function dl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, forceExactScale: i = !1, clampNegativeAutoScaleMaximum: a = !1, filterMinimumValues: o = !1, preserveLooseMinimumExpression: s = !1 }) {
|
|
2012
|
+
es(e);
|
|
2013
|
+
let c = ol({
|
|
2015
2014
|
datapoint: e,
|
|
2016
2015
|
clampNegativeAutoScaleMaximum: a
|
|
2017
|
-
}), l =
|
|
2016
|
+
}), l = sl({
|
|
2018
2017
|
datapoint: e,
|
|
2019
2018
|
filterMinimumValues: o,
|
|
2020
2019
|
preserveLooseMinimumExpression: s
|
|
2021
|
-
}), u =
|
|
2020
|
+
}), u = al({
|
|
2022
2021
|
datapoint: e,
|
|
2023
2022
|
totalSeries: t,
|
|
2024
2023
|
gap: n,
|
|
@@ -2031,35 +2030,35 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2031
2030
|
return {
|
|
2032
2031
|
autoScale: c,
|
|
2033
2032
|
individualExtremes: l,
|
|
2034
|
-
scaleYLabels:
|
|
2033
|
+
scaleYLabels: ll({
|
|
2035
2034
|
datapoint: e,
|
|
2036
2035
|
individualScale: u.individualScale,
|
|
2037
2036
|
yOffset: u.yOffset,
|
|
2038
2037
|
individualHeight: u.individualHeight
|
|
2039
2038
|
}),
|
|
2040
|
-
autoScaleYLabels:
|
|
2039
|
+
autoScaleYLabels: ul({
|
|
2041
2040
|
datapoint: e,
|
|
2042
2041
|
autoScaleSteps: u.autoScaleSteps,
|
|
2043
2042
|
yOffset: u.yOffset,
|
|
2044
2043
|
individualHeight: u.individualHeight
|
|
2045
2044
|
}),
|
|
2046
|
-
autoScaleRatiosToNiceScale:
|
|
2045
|
+
autoScaleRatiosToNiceScale: cl({
|
|
2047
2046
|
values: e.absoluteValues,
|
|
2048
2047
|
autoScaleSteps: u.autoScaleSteps
|
|
2049
2048
|
}),
|
|
2050
2049
|
...u
|
|
2051
2050
|
};
|
|
2052
2051
|
}
|
|
2053
|
-
function
|
|
2052
|
+
function fl(e) {
|
|
2054
2053
|
return Array.isArray(e) ? e.slice(U.value.start, U.value.end) : [];
|
|
2055
2054
|
}
|
|
2056
|
-
function
|
|
2055
|
+
function pl(e, t) {
|
|
2057
2056
|
return Array.isArray(e) && e[t + U.value.start] || "";
|
|
2058
2057
|
}
|
|
2059
|
-
let
|
|
2060
|
-
let e =
|
|
2061
|
-
return
|
|
2062
|
-
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: ee, zeroPosition: te, autoScaleZeroPosition: ne, scaleYLabels: re, autoScaleYLabels: d, autoScaleRatiosToNiceScale: f } =
|
|
2058
|
+
let ml = y(() => {
|
|
2059
|
+
let e = Cc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2060
|
+
return wc.value.map((n, i) => {
|
|
2061
|
+
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: ee, zeroPosition: te, autoScaleZeroPosition: ne, scaleYLabels: re, autoScaleYLabels: d, autoScaleRatiosToNiceScale: f } = dl({
|
|
2063
2062
|
datapoint: n,
|
|
2064
2063
|
totalSeries: e,
|
|
2065
2064
|
gap: t,
|
|
@@ -2067,13 +2066,13 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2067
2066
|
clampNegativeAutoScaleMaximum: !0,
|
|
2068
2067
|
filterMinimumValues: !0,
|
|
2069
2068
|
preserveLooseMinimumExpression: !0
|
|
2070
|
-
}), ie =
|
|
2071
|
-
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c :
|
|
2069
|
+
}), ie = Oc.value, ae = fl(n.comments), oe = n.series.map((e, t) => {
|
|
2070
|
+
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : ys(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + js.value.bar * i + js.value.bar * t * ie - Nc.value / 2 - i * Pc.value;
|
|
2072
2071
|
return {
|
|
2073
2072
|
yOffset: p(u),
|
|
2074
2073
|
individualHeight: p(ee),
|
|
2075
2074
|
x: p(a),
|
|
2076
|
-
y:
|
|
2075
|
+
y: Ss({
|
|
2077
2076
|
ratio: r,
|
|
2078
2077
|
yOffset: u,
|
|
2079
2078
|
individualHeight: ee
|
|
@@ -2084,12 +2083,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2084
2083
|
comment: ae[t] || ""
|
|
2085
2084
|
};
|
|
2086
2085
|
}), se = n.series.map((e, t) => {
|
|
2087
|
-
let r = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left -
|
|
2086
|
+
let r = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left - js.value.bar / 2 + js.value.bar * i + js.value.bar * t * xo.value.filter((e) => e.type === "bar").filter((e) => !Yi.value.has(e.id)).length;
|
|
2088
2087
|
return {
|
|
2089
2088
|
yOffset: p(u),
|
|
2090
2089
|
individualHeight: p(ee),
|
|
2091
2090
|
x: p(r),
|
|
2092
|
-
y: p(
|
|
2091
|
+
y: p(Ss({
|
|
2093
2092
|
ratio: f[t] || 0,
|
|
2094
2093
|
yOffset: p(u),
|
|
2095
2094
|
individualHeight: p(ee)
|
|
@@ -2099,7 +2098,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2099
2098
|
individualMax: p(c),
|
|
2100
2099
|
comment: ae[t] || ""
|
|
2101
2100
|
};
|
|
2102
|
-
}), ce =
|
|
2101
|
+
}), ce = Mc({
|
|
2103
2102
|
datapoint: n,
|
|
2104
2103
|
scaleYLabels: re,
|
|
2105
2104
|
autoScaleYLabels: d,
|
|
@@ -2125,28 +2124,28 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2125
2124
|
};
|
|
2126
2125
|
});
|
|
2127
2126
|
}), Q = y(() => {
|
|
2128
|
-
let e =
|
|
2129
|
-
return
|
|
2130
|
-
let { individualScale: s, autoScaleSteps: c, individualZero: l, individualMax: te, autoScaleMax: ne, yOffset: d, individualHeight: f, zeroPosition: oe, autoScaleZeroPosition: ce, scaleYLabels: de, autoScaleYLabels: fe, autoScaleRatiosToNiceScale: pe } =
|
|
2127
|
+
let e = Cc.value, t = V.value.chart.grid.labels.yAxis.gap, i = H.value.isStacked ? t * (e - 1) : 0, a = J.value.height - i;
|
|
2128
|
+
return Tc.value.map((i, o) => {
|
|
2129
|
+
let { individualScale: s, autoScaleSteps: c, individualZero: l, individualMax: te, autoScaleMax: ne, yOffset: d, individualHeight: f, zeroPosition: oe, autoScaleZeroPosition: ce, scaleYLabels: de, autoScaleYLabels: fe, autoScaleRatiosToNiceScale: pe } = dl({
|
|
2131
2130
|
datapoint: i,
|
|
2132
2131
|
totalSeries: e,
|
|
2133
2132
|
gap: t,
|
|
2134
2133
|
usableHeight: a
|
|
2135
|
-
}), me =
|
|
2134
|
+
}), me = fl(i.comments), m = i.series.map((e, t) => {
|
|
2136
2135
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2137
2136
|
index: t,
|
|
2138
2137
|
x: null,
|
|
2139
2138
|
y: null,
|
|
2140
2139
|
value: null,
|
|
2141
|
-
datasetXValue:
|
|
2140
|
+
datasetXValue: il(e),
|
|
2142
2141
|
comment: i.comments && i.comments.slice(U.value.start, U.value.end)[t] || ""
|
|
2143
2142
|
};
|
|
2144
|
-
let n = H.value.useIndividualScale ? (i.absoluteValues[t] + Math.abs(l)) / te :
|
|
2143
|
+
let n = H.value.useIndividualScale ? (i.absoluteValues[t] + Math.abs(l)) / te : ys(yo(e));
|
|
2145
2144
|
return {
|
|
2146
2145
|
index: t,
|
|
2147
|
-
x: p(
|
|
2148
|
-
datasetXValue:
|
|
2149
|
-
y: p(
|
|
2146
|
+
x: p(rl(e, t)),
|
|
2147
|
+
datasetXValue: il(e),
|
|
2148
|
+
y: p(Ss({
|
|
2150
2149
|
ratio: n,
|
|
2151
2150
|
yOffset: d,
|
|
2152
2151
|
individualHeight: f
|
|
@@ -2158,27 +2157,27 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2158
2157
|
index: t,
|
|
2159
2158
|
x: null,
|
|
2160
2159
|
y: null,
|
|
2161
|
-
datasetXValue:
|
|
2160
|
+
datasetXValue: il(e),
|
|
2162
2161
|
value: null,
|
|
2163
2162
|
comment: me[t] || ""
|
|
2164
2163
|
} : [void 0, null].includes(i.absoluteValues[t]) ? {
|
|
2165
2164
|
index: t,
|
|
2166
|
-
x: p(
|
|
2165
|
+
x: p(rl(e, t)),
|
|
2167
2166
|
y: oe,
|
|
2168
2167
|
value: i.absoluteValues[t],
|
|
2169
2168
|
comment: me[t] || ""
|
|
2170
2169
|
} : {
|
|
2171
2170
|
index: t,
|
|
2172
|
-
x: p(
|
|
2173
|
-
datasetXValue:
|
|
2174
|
-
y: p(
|
|
2171
|
+
x: p(rl(e, t)),
|
|
2172
|
+
datasetXValue: il(e),
|
|
2173
|
+
y: p(Ss({
|
|
2175
2174
|
ratio: pe[t] || 0,
|
|
2176
2175
|
yOffset: d,
|
|
2177
2176
|
individualHeight: f
|
|
2178
2177
|
})),
|
|
2179
2178
|
value: i.absoluteValues[t],
|
|
2180
2179
|
comment: me[t] || ""
|
|
2181
|
-
}), he = i.dashIndices && Array.isArray(i.dashIndices) && i?.dashIndices?.length > 0, g = V.value.line.cutNullValues ? ee(m) : ae(m.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? ee(h) : ae(h.filter((e) => e.value !== null)), ve = V.value.line.cutNullValues ? u(m) : ue(m.filter((e) => e.value !== null)), ye = V.value.line.cutNullValues ? u(h) : ue(h.filter((e) => e.value !== null)), be = r(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), _ = r(V.value.line.cutNullValues ? h : h.filter((e) => e.value !== null)), xe = he ? le(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Se = he ? re(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Ce =
|
|
2180
|
+
}), he = i.dashIndices && Array.isArray(i.dashIndices) && i?.dashIndices?.length > 0, g = V.value.line.cutNullValues ? ee(m) : ae(m.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? ee(h) : ae(h.filter((e) => e.value !== null)), ve = V.value.line.cutNullValues ? u(m) : ue(m.filter((e) => e.value !== null)), ye = V.value.line.cutNullValues ? u(h) : ue(h.filter((e) => e.value !== null)), be = r(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), _ = r(V.value.line.cutNullValues ? h : h.filter((e) => e.value !== null)), xe = he ? le(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Se = he ? re(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Ce = Mc({
|
|
2182
2181
|
datapoint: i,
|
|
2183
2182
|
scaleYLabels: de,
|
|
2184
2183
|
autoScaleYLabels: fe,
|
|
@@ -2188,7 +2187,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2188
2187
|
autoScaleMax: ne,
|
|
2189
2188
|
yOffset: d,
|
|
2190
2189
|
individualHeight: f
|
|
2191
|
-
}), we = H.value.useIndividualScale ? i.autoScaling ? ce : oe :
|
|
2190
|
+
}), we = H.value.useIndividualScale ? i.autoScaling ? ce : oe : so.value, Te = Math.max(Math.max(i.autoScaling ? ce : de.at(-1) ? de.at(-1).y : 0, J.value?.top), we), Ee = i.autoScaling ? h : m, De = V.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = i.absoluteValues.filter((e) => ![
|
|
2192
2191
|
null,
|
|
2193
2192
|
void 0,
|
|
2194
2193
|
NaN
|
|
@@ -2217,30 +2216,30 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2217
2216
|
};
|
|
2218
2217
|
});
|
|
2219
2218
|
}), $ = y(() => {
|
|
2220
|
-
let e =
|
|
2221
|
-
return
|
|
2222
|
-
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: re, autoScaleRatiosToNiceScale: d } =
|
|
2219
|
+
let e = Cc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2220
|
+
return Ec.value.map((n) => {
|
|
2221
|
+
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: re, autoScaleRatiosToNiceScale: d } = dl({
|
|
2223
2222
|
datapoint: n,
|
|
2224
2223
|
totalSeries: e,
|
|
2225
2224
|
gap: t,
|
|
2226
2225
|
usableHeight: r,
|
|
2227
2226
|
forceExactScale: !0,
|
|
2228
2227
|
preserveLooseMinimumExpression: !0
|
|
2229
|
-
}), f =
|
|
2228
|
+
}), f = fl(n.comments), ie = n.series.map((e, t) => {
|
|
2230
2229
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2231
2230
|
index: t,
|
|
2232
2231
|
x: null,
|
|
2233
|
-
datasetXValue:
|
|
2232
|
+
datasetXValue: il(e),
|
|
2234
2233
|
y: null,
|
|
2235
2234
|
value: null,
|
|
2236
2235
|
comment: f[t] || ""
|
|
2237
2236
|
};
|
|
2238
|
-
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s :
|
|
2237
|
+
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s : ys(yo(e));
|
|
2239
2238
|
return {
|
|
2240
2239
|
index: t,
|
|
2241
|
-
x: p(
|
|
2242
|
-
datasetXValue:
|
|
2243
|
-
y: p(
|
|
2240
|
+
x: p(rl(e, t)),
|
|
2241
|
+
datasetXValue: il(e),
|
|
2242
|
+
y: p(Ss({
|
|
2244
2243
|
ratio: r,
|
|
2245
2244
|
yOffset: l,
|
|
2246
2245
|
individualHeight: u
|
|
@@ -2251,22 +2250,22 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2251
2250
|
}), ae = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2252
2251
|
index: t,
|
|
2253
2252
|
x: null,
|
|
2254
|
-
datasetXValue:
|
|
2253
|
+
datasetXValue: il(e),
|
|
2255
2254
|
y: null,
|
|
2256
2255
|
value: null,
|
|
2257
2256
|
comment: f[t] || ""
|
|
2258
2257
|
} : {
|
|
2259
2258
|
index: t,
|
|
2260
|
-
x: p(
|
|
2261
|
-
datasetXValue:
|
|
2262
|
-
y: p(
|
|
2259
|
+
x: p(rl(e, t)),
|
|
2260
|
+
datasetXValue: il(e),
|
|
2261
|
+
y: p(Ss({
|
|
2263
2262
|
ratio: d[t] || 0,
|
|
2264
2263
|
yOffset: l,
|
|
2265
2264
|
individualHeight: u
|
|
2266
2265
|
})),
|
|
2267
2266
|
value: n.absoluteValues[t],
|
|
2268
2267
|
comment: f[t] || ""
|
|
2269
|
-
}), oe =
|
|
2268
|
+
}), oe = Mc({
|
|
2270
2269
|
datapoint: n,
|
|
2271
2270
|
scaleYLabels: ne,
|
|
2272
2271
|
autoScaleYLabels: re,
|
|
@@ -2291,14 +2290,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2291
2290
|
groupId: oe.groupId
|
|
2292
2291
|
};
|
|
2293
2292
|
});
|
|
2294
|
-
}),
|
|
2295
|
-
let e = Object.entries(
|
|
2293
|
+
}), hl = y(() => {
|
|
2294
|
+
let e = Object.entries(Ac.value).reduce((e, [t, n]) => (e[t] = {
|
|
2296
2295
|
...n,
|
|
2297
2296
|
scaleLabel: t
|
|
2298
2297
|
}, e), {});
|
|
2299
2298
|
return [
|
|
2300
2299
|
...Q.value,
|
|
2301
|
-
...
|
|
2300
|
+
...ml.value,
|
|
2302
2301
|
...$.value
|
|
2303
2302
|
].forEach((t) => {
|
|
2304
2303
|
t.scaleGroup && (e[t.scaleLabel || ""] = {
|
|
@@ -2306,7 +2305,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2306
2305
|
...t.scaleGroup
|
|
2307
2306
|
});
|
|
2308
2307
|
}), e;
|
|
2309
|
-
}),
|
|
2308
|
+
}), gl = y(() => {
|
|
2310
2309
|
let e = Q.value.map((e) => ({
|
|
2311
2310
|
name: e.name,
|
|
2312
2311
|
color: e.color,
|
|
@@ -2319,7 +2318,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2319
2318
|
yOffset: e.yOffset || 0,
|
|
2320
2319
|
individualHeight: e.individualHeight || J.value.height,
|
|
2321
2320
|
autoScaleYLabels: e.autoScaleYLabels
|
|
2322
|
-
})), t =
|
|
2321
|
+
})), t = ml.value.map((e) => ({
|
|
2323
2322
|
name: e.name,
|
|
2324
2323
|
color: e.color,
|
|
2325
2324
|
scale: e.individualScale,
|
|
@@ -2341,14 +2340,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2341
2340
|
id: e.id,
|
|
2342
2341
|
yOffset: e.yOffset || 0,
|
|
2343
2342
|
individualHeight: e.individualHeight || J.value.height
|
|
2344
|
-
})), r = H.value.useIndividualScale && !H.value.isStacked ? Object.values(
|
|
2343
|
+
})), r = H.value.useIndividualScale && !H.value.isStacked ? Object.values(hl.value) : [
|
|
2345
2344
|
...e,
|
|
2346
2345
|
...t,
|
|
2347
2346
|
...n
|
|
2348
2347
|
], i = r.flatMap((e) => e).length;
|
|
2349
2348
|
return r.flatMap((e, t) => {
|
|
2350
2349
|
let n = 0;
|
|
2351
|
-
n = H.value.isStacked ? q.value ? J.value?.right : J.value?.left : q.value ? J.value?.right +
|
|
2350
|
+
n = H.value.isStacked ? q.value ? J.value?.right : J.value?.left : q.value ? J.value?.right + jo() * t : J.value?.left / i * (t + 1);
|
|
2352
2351
|
let r = H.value.useIndividualScale && !H.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
|
|
2353
2352
|
return {
|
|
2354
2353
|
unique: e.unique,
|
|
@@ -2362,7 +2361,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2362
2361
|
individualHeight: e.individualHeight,
|
|
2363
2362
|
x: n,
|
|
2364
2363
|
yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
|
|
2365
|
-
y:
|
|
2364
|
+
y: Cs({
|
|
2366
2365
|
value: t,
|
|
2367
2366
|
scaleMin: e.scale.min,
|
|
2368
2367
|
scaleMax: e.scale.max,
|
|
@@ -2373,7 +2372,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2373
2372
|
}))
|
|
2374
2373
|
};
|
|
2375
2374
|
});
|
|
2376
|
-
}),
|
|
2375
|
+
}), _l = y(() => {
|
|
2377
2376
|
let e = V.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
2378
2377
|
if (!t.length) return [];
|
|
2379
2378
|
let r = [];
|
|
@@ -2401,64 +2400,64 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2401
2400
|
});
|
|
2402
2401
|
});
|
|
2403
2402
|
}), r;
|
|
2404
|
-
}),
|
|
2403
|
+
}), vl = y(() => {
|
|
2405
2404
|
let e = Z.value[0]?.index ?? null, t = G.value ? e : R.value;
|
|
2406
2405
|
return {
|
|
2407
2406
|
timeLabel: G.value ? {
|
|
2408
2407
|
text: String(Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x),
|
|
2409
2408
|
absoluteIndex: e
|
|
2410
2409
|
} : Y.value[R.value],
|
|
2411
|
-
datapoint:
|
|
2410
|
+
datapoint: zc.value,
|
|
2412
2411
|
seriesIndex: R.value,
|
|
2413
2412
|
selectedIndex: t,
|
|
2414
2413
|
absoluteIndex: G.value ? e : R.value + U.value.start,
|
|
2415
|
-
series:
|
|
2416
|
-
bars:
|
|
2414
|
+
series: xo.value,
|
|
2415
|
+
bars: ml.value,
|
|
2417
2416
|
lines: Q.value,
|
|
2418
2417
|
plots: $.value,
|
|
2419
2418
|
config: V.value
|
|
2420
2419
|
};
|
|
2421
|
-
}),
|
|
2420
|
+
}), yl = E({
|
|
2422
2421
|
months: [],
|
|
2423
2422
|
shortMonths: [],
|
|
2424
2423
|
days: [],
|
|
2425
2424
|
shortDays: []
|
|
2426
|
-
}),
|
|
2425
|
+
}), bl = 0;
|
|
2427
2426
|
xt(() => {
|
|
2428
|
-
let e = ++
|
|
2427
|
+
let e = ++bl, t = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
2429
2428
|
(async () => {
|
|
2430
2429
|
let n = await Pe(t.locale).catch(() => Pe("en"));
|
|
2431
|
-
e ===
|
|
2430
|
+
e === bl && (yl.value = n.data);
|
|
2432
2431
|
})();
|
|
2433
2432
|
});
|
|
2434
|
-
let
|
|
2433
|
+
let xl = y(() => {
|
|
2435
2434
|
let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Ne({
|
|
2436
2435
|
useUTC: e.useUTC,
|
|
2437
|
-
locale:
|
|
2436
|
+
locale: yl.value,
|
|
2438
2437
|
januaryAsYear: e.januaryAsYear
|
|
2439
2438
|
});
|
|
2440
2439
|
return (e, n) => {
|
|
2441
2440
|
let r = V.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
2442
2441
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
2443
2442
|
};
|
|
2444
|
-
}),
|
|
2445
|
-
text:
|
|
2443
|
+
}), Sl = y(() => (V.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
2444
|
+
text: xl.value(t, V.value.chart.zoom.timeFormat),
|
|
2446
2445
|
absoluteIndex: t
|
|
2447
|
-
}))),
|
|
2448
|
-
function
|
|
2446
|
+
}))), Cl = /* @__PURE__ */ new Map();
|
|
2447
|
+
function wl(e) {
|
|
2449
2448
|
return {
|
|
2450
2449
|
absoluteIndex: R.value + U.value.start,
|
|
2451
2450
|
seriesIndex: R.value,
|
|
2452
|
-
datapoint:
|
|
2453
|
-
series:
|
|
2454
|
-
bars:
|
|
2451
|
+
datapoint: zc.value,
|
|
2452
|
+
series: xo.value,
|
|
2453
|
+
bars: ml.value,
|
|
2455
2454
|
lines: Q.value,
|
|
2456
2455
|
plots: $.value,
|
|
2457
2456
|
config: V.value,
|
|
2458
2457
|
dateLabel: e
|
|
2459
2458
|
};
|
|
2460
2459
|
}
|
|
2461
|
-
function
|
|
2460
|
+
function Tl(e) {
|
|
2462
2461
|
return [
|
|
2463
2462
|
Ui.value[e.type],
|
|
2464
2463
|
e.shape || "",
|
|
@@ -2469,9 +2468,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2469
2468
|
e.slotAbsoluteIndex
|
|
2470
2469
|
].join("|");
|
|
2471
2470
|
}
|
|
2472
|
-
function
|
|
2473
|
-
let t =
|
|
2474
|
-
if (
|
|
2471
|
+
function El(e) {
|
|
2472
|
+
let t = Tl(e);
|
|
2473
|
+
if (Cl.has(t)) return Cl.get(t);
|
|
2475
2474
|
let n = V.value.chart.tooltip.backgroundColor, r = "", i = "";
|
|
2476
2475
|
switch (Ui.value[e.type]) {
|
|
2477
2476
|
case "bar":
|
|
@@ -2616,10 +2615,10 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2616
2615
|
break;
|
|
2617
2616
|
}
|
|
2618
2617
|
}
|
|
2619
|
-
return
|
|
2618
|
+
return Cl.set(t, r), r;
|
|
2620
2619
|
}
|
|
2621
|
-
let
|
|
2622
|
-
let e = "", t =
|
|
2620
|
+
let Dl = y(() => {
|
|
2621
|
+
let e = "", t = zc.value.map((e) => e.value).filter((e) => ce(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = G.value ? { text: g(V.value.chart.grid.labels.xAxis.formatter, Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x, pe({
|
|
2623
2622
|
v: Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x,
|
|
2624
2623
|
r: V.value.chart.tooltip.roundingValue
|
|
2625
2624
|
}), {
|
|
@@ -2627,18 +2626,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2627
2626
|
serriesIndex: null
|
|
2628
2627
|
}) } : Y.value[R.value], r = V.value.chart.tooltip.customFormat;
|
|
2629
2628
|
if (Oe(r)) try {
|
|
2630
|
-
let e = r(
|
|
2629
|
+
let e = r(wl(n));
|
|
2631
2630
|
if (typeof e == "string") return e;
|
|
2632
2631
|
} catch (e) {
|
|
2633
2632
|
console.warn("Vue Data UI - VueUiXy: custom tooltip formatter failed.", e);
|
|
2634
2633
|
}
|
|
2635
2634
|
if (n && n.text && V.value.chart.tooltip.showTimeLabel) {
|
|
2636
|
-
let t =
|
|
2635
|
+
let t = xl.value(R.value + U.value.start, V.value.chart.tooltip.timeFormat);
|
|
2637
2636
|
G.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.chart.tooltip.borderColor}; width:100%">${V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
|
|
2638
2637
|
}
|
|
2639
|
-
return
|
|
2638
|
+
return zc.value.forEach((r) => {
|
|
2640
2639
|
if (ce(r.value)) {
|
|
2641
|
-
let i =
|
|
2640
|
+
let i = El(r), a = V.value.chart.tooltip.showValue ? g(r.type === "line" ? V.value.line.labels.formatter : r.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, r.value, pe({
|
|
2642
2641
|
p: r.prefix,
|
|
2643
2642
|
v: r.value,
|
|
2644
2643
|
s: r.suffix,
|
|
@@ -2664,11 +2663,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2664
2663
|
s: "%",
|
|
2665
2664
|
r: V.value.chart.tooltip.roundingPercentage
|
|
2666
2665
|
})})` : ""}</div>`;
|
|
2667
|
-
let c =
|
|
2666
|
+
let c = pl(r.comments, R.value);
|
|
2668
2667
|
V.value.chart.comments.showInTooltip && c && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${c}</div>`);
|
|
2669
2668
|
}
|
|
2670
2669
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${V.value.chart.tooltip.color}">${e}</div>`;
|
|
2671
|
-
}),
|
|
2670
|
+
}), Ol = y(() => {
|
|
2672
2671
|
if (!G.value) return [];
|
|
2673
2672
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2674
2673
|
return K.value.forEach((n) => {
|
|
@@ -2678,9 +2677,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2678
2677
|
let i = String(r);
|
|
2679
2678
|
e.has(i) || (e.add(i), t.push(r));
|
|
2680
2679
|
});
|
|
2681
|
-
}), t.sort((e, t) =>
|
|
2680
|
+
}), t.sort((e, t) => ws.value ? t - e : e - t);
|
|
2682
2681
|
});
|
|
2683
|
-
function
|
|
2682
|
+
function kl(e) {
|
|
2684
2683
|
let t = Number(e);
|
|
2685
2684
|
return Number.isFinite(t) ? g(V.value.chart.grid.labels.xAxis.formatter, t, pe({
|
|
2686
2685
|
v: t,
|
|
@@ -2690,22 +2689,22 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2690
2689
|
seriesIndex: null
|
|
2691
2690
|
}) : "-";
|
|
2692
2691
|
}
|
|
2693
|
-
function
|
|
2694
|
-
return G.value ?
|
|
2692
|
+
function Al(e) {
|
|
2693
|
+
return G.value ? kl(e) : V.value.table.useDefaultTimeFormat ? Y.value[e]?.text ?? "-" : xl.value(e + U.value.start, V.value.table.timeFormat);
|
|
2695
2694
|
}
|
|
2696
|
-
function
|
|
2695
|
+
function jl(e, t) {
|
|
2697
2696
|
if (G.value) {
|
|
2698
2697
|
let n = Number(t);
|
|
2699
2698
|
return Number.isFinite(n) ? e.series.find((e) => Number(e?.x) === n)?.y ?? null : null;
|
|
2700
2699
|
}
|
|
2701
2700
|
return e.absoluteValues[t];
|
|
2702
2701
|
}
|
|
2703
|
-
function
|
|
2704
|
-
let n =
|
|
2702
|
+
function Ml(e, t) {
|
|
2703
|
+
let n = jl(e, t);
|
|
2705
2704
|
return Ct(n) ? Number(n.toFixed(V.value.table.rounding)) : "";
|
|
2706
2705
|
}
|
|
2707
|
-
function
|
|
2708
|
-
let n =
|
|
2706
|
+
function Nl(e, t) {
|
|
2707
|
+
let n = jl(e, t);
|
|
2709
2708
|
return Ct(n) ? g(e.type === "line" ? V.value.line.labels.formatter : e.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, n, pe({
|
|
2710
2709
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2711
2710
|
v: n,
|
|
@@ -2713,33 +2712,33 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2713
2712
|
r: V.value.table.rounding
|
|
2714
2713
|
})) : "";
|
|
2715
2714
|
}
|
|
2716
|
-
function
|
|
2717
|
-
return K.value.map((t) =>
|
|
2715
|
+
function Pl(e) {
|
|
2716
|
+
return K.value.map((t) => jl(t, e) ?? 0).reduce((e, t) => e + t, 0);
|
|
2718
2717
|
}
|
|
2719
|
-
let
|
|
2720
|
-
if (G.value) return
|
|
2721
|
-
let t =
|
|
2718
|
+
let Fl = y(() => {
|
|
2719
|
+
if (G.value) return Ol.value.map((e) => {
|
|
2720
|
+
let t = Pl(e);
|
|
2722
2721
|
return {
|
|
2723
|
-
period:
|
|
2724
|
-
csvValues: K.value.map((t) =>
|
|
2725
|
-
formattedValues: K.value.map((t) =>
|
|
2722
|
+
period: Al(e),
|
|
2723
|
+
csvValues: K.value.map((t) => Ml(t, e)),
|
|
2724
|
+
formattedValues: K.value.map((t) => Nl(t, e)),
|
|
2726
2725
|
sum: t,
|
|
2727
2726
|
formattedSum: t.toFixed(V.value.table.rounding)
|
|
2728
2727
|
};
|
|
2729
2728
|
});
|
|
2730
2729
|
let e = [];
|
|
2731
2730
|
for (let t = 0; t < X.value; t += 1) {
|
|
2732
|
-
let n =
|
|
2731
|
+
let n = Pl(t);
|
|
2733
2732
|
e.push({
|
|
2734
|
-
period:
|
|
2735
|
-
csvValues: K.value.map((e) =>
|
|
2736
|
-
formattedValues: K.value.map((e) =>
|
|
2733
|
+
period: Al(t),
|
|
2734
|
+
csvValues: K.value.map((e) => Ml(e, t)),
|
|
2735
|
+
formattedValues: K.value.map((e) => Nl(e, t)),
|
|
2737
2736
|
sum: n,
|
|
2738
2737
|
formattedSum: n.toFixed(V.value.table.rounding)
|
|
2739
2738
|
});
|
|
2740
2739
|
}
|
|
2741
2740
|
return e;
|
|
2742
|
-
}),
|
|
2741
|
+
}), Il = y(() => bo.value.length === 0 ? {
|
|
2743
2742
|
head: [],
|
|
2744
2743
|
body: [],
|
|
2745
2744
|
config: {},
|
|
@@ -2750,11 +2749,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2750
2749
|
color: e.color,
|
|
2751
2750
|
type: e.type
|
|
2752
2751
|
})),
|
|
2753
|
-
body:
|
|
2754
|
-
}),
|
|
2752
|
+
body: Fl.value.map((e) => [e.period].concat(e.csvValues))
|
|
2753
|
+
}), Ll = y(() => {
|
|
2755
2754
|
let e = V.value.table.showSum, t = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : ""].concat(K.value.map((e) => e.name));
|
|
2756
2755
|
e && (t = t.concat(" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"));
|
|
2757
|
-
let n =
|
|
2756
|
+
let n = Fl.value.map((t) => [t.period].concat(t.formattedValues, e ? t.formattedSum : [])), r = {
|
|
2758
2757
|
th: {
|
|
2759
2758
|
backgroundColor: V.value.table.th.backgroundColor,
|
|
2760
2759
|
color: V.value.table.th.color,
|
|
@@ -2774,19 +2773,19 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2774
2773
|
colNames: i
|
|
2775
2774
|
};
|
|
2776
2775
|
});
|
|
2777
|
-
function
|
|
2776
|
+
function Rl(e = null) {
|
|
2778
2777
|
let n = [
|
|
2779
2778
|
[V.value.chart.title.text],
|
|
2780
2779
|
[V.value.chart.title.subtitle.text],
|
|
2781
2780
|
[""]
|
|
2782
|
-
], r = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...
|
|
2781
|
+
], r = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Il.value.head.map((e) => e.label)], i = Il.value.body, a = n.concat([r]).concat(i), s = o(a);
|
|
2783
2782
|
e ? e(s) : t({
|
|
2784
2783
|
csvContent: s,
|
|
2785
2784
|
title: V.value.chart.title.text || "vue-ui-xy"
|
|
2786
2785
|
});
|
|
2787
2786
|
}
|
|
2788
|
-
function
|
|
2789
|
-
if (
|
|
2787
|
+
function zl(e, t = null) {
|
|
2788
|
+
if (So.value) return;
|
|
2790
2789
|
Ki.value = e;
|
|
2791
2790
|
let n = K.value.map((e) => ({
|
|
2792
2791
|
name: e.name,
|
|
@@ -2806,21 +2805,21 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2806
2805
|
seriesIndex: t + U.value.start
|
|
2807
2806
|
}));
|
|
2808
2807
|
}
|
|
2809
|
-
function
|
|
2808
|
+
function Bl() {
|
|
2810
2809
|
H.value.showTable = !H.value.showTable;
|
|
2811
2810
|
}
|
|
2812
|
-
function
|
|
2811
|
+
function Vl() {
|
|
2813
2812
|
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
2814
2813
|
}
|
|
2815
|
-
function
|
|
2814
|
+
function Hl() {
|
|
2816
2815
|
H.value.showTooltip = !H.value.showTooltip;
|
|
2817
2816
|
}
|
|
2818
|
-
function
|
|
2817
|
+
function Ul(e) {
|
|
2819
2818
|
Gi.value = e, Xi.value += 1;
|
|
2820
2819
|
}
|
|
2821
|
-
function
|
|
2820
|
+
function Wl() {
|
|
2822
2821
|
if (!V.value.responsiveProportionalSizing) {
|
|
2823
|
-
B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize,
|
|
2822
|
+
B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, ka.value.plot = V.value.plot.radius, ka.value.line = V.value.line.radius, ka.value.selectedLine = V.value.line.dot.selectedRadius;
|
|
2824
2823
|
return;
|
|
2825
2824
|
}
|
|
2826
2825
|
B.value.dataLabels = Se({
|
|
@@ -2847,19 +2846,19 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2847
2846
|
source: V.value.chart.labels.fontSize,
|
|
2848
2847
|
threshold: 10,
|
|
2849
2848
|
fallback: 10
|
|
2850
|
-
}),
|
|
2849
|
+
}), ka.value.plot = Se({
|
|
2851
2850
|
relator: P.value,
|
|
2852
2851
|
adjuster: 800,
|
|
2853
2852
|
source: V.value.plot.radius,
|
|
2854
2853
|
threshold: 1,
|
|
2855
2854
|
fallback: 1
|
|
2856
|
-
}),
|
|
2855
|
+
}), ka.value.line = Se({
|
|
2857
2856
|
relator: P.value,
|
|
2858
2857
|
adjuster: 800,
|
|
2859
2858
|
source: V.value.line.radius,
|
|
2860
2859
|
threshold: 1,
|
|
2861
2860
|
fallback: 0
|
|
2862
|
-
}),
|
|
2861
|
+
}), ka.value.selectedLine = Se({
|
|
2863
2862
|
relator: P.value,
|
|
2864
2863
|
adjuster: 800,
|
|
2865
2864
|
source: V.value.line.dot.selectedRadius,
|
|
@@ -2867,55 +2866,55 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2867
2866
|
fallback: 0
|
|
2868
2867
|
});
|
|
2869
2868
|
}
|
|
2870
|
-
function
|
|
2869
|
+
function Gl() {
|
|
2871
2870
|
if (ge(M.dataset) ? (we({
|
|
2872
2871
|
componentName: "VueUiXy",
|
|
2873
2872
|
type: "dataset",
|
|
2874
|
-
debug:
|
|
2875
|
-
}),
|
|
2873
|
+
debug: La.value
|
|
2874
|
+
}), Ha.value = !0) : M.dataset.forEach((e, t) => {
|
|
2876
2875
|
[null, void 0].includes(e.name) && (we({
|
|
2877
2876
|
componentName: "VueUiXy",
|
|
2878
2877
|
type: "datasetSerieAttribute",
|
|
2879
2878
|
property: "name (string)",
|
|
2880
2879
|
index: t,
|
|
2881
|
-
debug:
|
|
2882
|
-
}),
|
|
2883
|
-
}),
|
|
2880
|
+
debug: La.value
|
|
2881
|
+
}), Ha.value = !0);
|
|
2882
|
+
}), La.value && M.dataset.forEach((e) => {
|
|
2884
2883
|
e.series.forEach((t, n) => {
|
|
2885
2884
|
ce(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
|
|
2886
2885
|
});
|
|
2887
|
-
}), ge(M.dataset) || (
|
|
2886
|
+
}), ge(M.dataset) || (Ha.value = V.value.loading), ta.value = V.value.chart.userOptions.showOnChartHover, na.value = V.value.chart.userOptions.keepStateOnChartLeave, ra.value = !V.value.chart.userOptions.showOnChartHover, Ia(), V.value.responsive) {
|
|
2888
2887
|
let e = wi.value.parentNode;
|
|
2889
2888
|
Ii.value && (Li.value && Ii.value.unobserve(Li.value), Ii.value.disconnect(), Ii.value = null, Li.value = null);
|
|
2890
2889
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
2891
2890
|
V.value.chart.title.show && Ti.value && (r = Ti.value, i = r.getBoundingClientRect().height);
|
|
2892
2891
|
let a = null, o = 0;
|
|
2893
|
-
V.value.chart.zoom.show &&
|
|
2892
|
+
V.value.chart.zoom.show && Ja.value > 6 && Na.value && Ei.value && Ei.value.$el && (a = Ei.value.$el, o = a.getBoundingClientRect().height);
|
|
2894
2893
|
let s = null, c = 0;
|
|
2895
2894
|
V.value.chart.legend.show && Di.value && (s = Di.value, c = s.getBoundingClientRect().height);
|
|
2896
2895
|
let l = 0;
|
|
2897
2896
|
Oi.value && (l = Oi.value.getBoundingClientRect().height);
|
|
2898
2897
|
let u = 0;
|
|
2899
|
-
ki.value && (u = ki.value.getBoundingClientRect().height), Bi.value = t - i - c - o - l - u - 12, P.value = n, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`,
|
|
2898
|
+
ki.value && (u = ki.value.getBoundingClientRect().height), Bi.value = t - i - c - o - l - u - 12, P.value = n, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`, Wl();
|
|
2900
2899
|
let ee = new ResizeObserver((e) => {
|
|
2901
2900
|
for (let t of e) i = V.value.chart.title.show && Ti.value ? Ti.value.getBoundingClientRect().height : 0, o = Ei.value && Ei.value.$el ? Ei.value.$el.getBoundingClientRect().height : 0, c = Di.value ? Di.value.getBoundingClientRect().height : 0, l = Oi.value ? Oi.value.getBoundingClientRect().height : 0, u = ki.value ? ki.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
|
|
2902
|
-
Bi.value = t.contentRect.height - i - c - o - l - u - 12, P.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`,
|
|
2901
|
+
Bi.value = t.contentRect.height - i - c - o - l - u - 12, P.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`, Wl(), wa();
|
|
2903
2902
|
});
|
|
2904
2903
|
});
|
|
2905
2904
|
Ii.value = ee, Li.value = e, ee.observe(e);
|
|
2906
|
-
} else Bi.value = V.value.chart.height, P.value = V.value.chart.width, B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize,
|
|
2907
|
-
|
|
2905
|
+
} else Bi.value = V.value.chart.height, P.value = V.value.chart.width, B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, ka.value.plot = V.value.plot.radius, ka.value.line = V.value.line.radius, ka.value.selectedLine = V.value.line.dot.selectedRadius, Vi.value = `0 0 ${P.value} ${Bi.value}`;
|
|
2906
|
+
wa();
|
|
2908
2907
|
}
|
|
2909
|
-
function
|
|
2908
|
+
function Kl(e) {
|
|
2910
2909
|
Hi.value = {
|
|
2911
2910
|
x: e.clientX,
|
|
2912
2911
|
y: e.clientY
|
|
2913
2912
|
};
|
|
2914
2913
|
}
|
|
2915
2914
|
mt(() => {
|
|
2916
|
-
|
|
2915
|
+
Gl(), os(), document.addEventListener("mousemove", Kl, { passive: !0 }), document.addEventListener("scroll", Io, { passive: !0 });
|
|
2917
2916
|
}), pt(() => {
|
|
2918
|
-
document.removeEventListener("scroll",
|
|
2917
|
+
document.removeEventListener("scroll", Io, { passive: !0 }), document.removeEventListener("mousemove", Kl, { passive: !0 }), Ii.value && (Li.value && Ii.value.unobserve(Li.value), Ii.value.disconnect(), Ii.value = null, Li.value = null), eu(), ps();
|
|
2919
2918
|
}), Ge({
|
|
2920
2919
|
timeLabelsEls: Ni,
|
|
2921
2920
|
timeLabels: Y,
|
|
@@ -2936,73 +2935,73 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
2936
2935
|
"autoRotate",
|
|
2937
2936
|
"enable"
|
|
2938
2937
|
],
|
|
2939
|
-
isAutoSize:
|
|
2938
|
+
isAutoSize: io,
|
|
2940
2939
|
height: Bi,
|
|
2941
2940
|
width: P,
|
|
2942
2941
|
rotation: V.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2943
2942
|
});
|
|
2944
|
-
let
|
|
2943
|
+
let ql = E(!1), Jl = E(null), Yl = E(200), Xl = y(() => R.value ?? I.value ?? 0), Zl = y(() => {
|
|
2945
2944
|
if (!G.value) return null;
|
|
2946
|
-
if (a(
|
|
2945
|
+
if (a(ca.value)) return Number(ca.value);
|
|
2947
2946
|
let e = Z.value[0];
|
|
2948
2947
|
return a(e?.point?.x) ? Number(e.point.x) : null;
|
|
2949
2948
|
});
|
|
2950
|
-
function
|
|
2951
|
-
let e = Math.ceil(
|
|
2949
|
+
function Ql() {
|
|
2950
|
+
let e = Math.ceil(Yl.value || 200);
|
|
2952
2951
|
return Math.min(Math.max(e, 1), 200);
|
|
2953
2952
|
}
|
|
2954
|
-
function
|
|
2955
|
-
let e =
|
|
2953
|
+
function $l() {
|
|
2954
|
+
let e = Ql(), t = (G.value && a(Zl.value) ? $c({ x: Zl.value }) : pc(Xl.value)) - e / 2 - (200 - e) / 2, n = J.value?.left - (200 - e) / 2, r = J.value?.right - (200 + e) / 2;
|
|
2956
2955
|
return p(Math.max(n, Math.min(t, r)));
|
|
2957
2956
|
}
|
|
2958
|
-
function
|
|
2959
|
-
|
|
2957
|
+
function eu() {
|
|
2958
|
+
pa.value !== null && (cancelAnimationFrame(pa.value), pa.value = null), fa.value && z.value && fa.value.unobserve(z.value), fa.value &&= (fa.value.disconnect(), null), ma.value &&= (ma.value(), null), z.value = null;
|
|
2960
2959
|
}
|
|
2961
|
-
function
|
|
2962
|
-
|
|
2963
|
-
|
|
2960
|
+
function tu(e) {
|
|
2961
|
+
pa.value !== null && cancelAnimationFrame(pa.value), pa.value = requestAnimationFrame(() => {
|
|
2962
|
+
Yl.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200), pa.value = null;
|
|
2964
2963
|
});
|
|
2965
2964
|
}
|
|
2966
|
-
function
|
|
2967
|
-
!
|
|
2968
|
-
e.offsetParent !== null &&
|
|
2969
|
-
}),
|
|
2965
|
+
function nu(e) {
|
|
2966
|
+
!fa.value || !e || (z.value && z.value !== e && (fa.value.unobserve(z.value), z.value = null), e !== z.value && (dt(() => {
|
|
2967
|
+
e.offsetParent !== null && tu(e.offsetWidth || e.getBoundingClientRect().width || 200);
|
|
2968
|
+
}), fa.value.observe(e), z.value = e));
|
|
2970
2969
|
}
|
|
2971
2970
|
mt(() => {
|
|
2972
|
-
|
|
2971
|
+
fa.value = new ResizeObserver((e) => {
|
|
2973
2972
|
let t = e.find((e) => e.target === z.value) || e[0];
|
|
2974
|
-
t &&
|
|
2975
|
-
}),
|
|
2976
|
-
let t =
|
|
2973
|
+
t && tu(t.contentRect.width || 200);
|
|
2974
|
+
}), ma.value = xt((e) => {
|
|
2975
|
+
let t = Jl.value;
|
|
2977
2976
|
if (!t) {
|
|
2978
|
-
|
|
2977
|
+
fa.value && z.value && (fa.value.unobserve(z.value), z.value = null);
|
|
2979
2978
|
return;
|
|
2980
2979
|
}
|
|
2981
|
-
|
|
2982
|
-
|
|
2980
|
+
nu(t), e(() => {
|
|
2981
|
+
fa.value && z.value && z.value !== Jl.value && (fa.value.unobserve(z.value), z.value = null);
|
|
2983
2982
|
});
|
|
2984
2983
|
});
|
|
2985
2984
|
});
|
|
2986
|
-
let
|
|
2985
|
+
let ru = y(() => {
|
|
2987
2986
|
if (G.value) {
|
|
2988
|
-
if (!Number.isFinite(Number(
|
|
2987
|
+
if (!Number.isFinite(Number(Zl.value))) return "";
|
|
2989
2988
|
} else if ([null, void 0].includes(R.value) && [null, void 0].includes(I.value)) return "";
|
|
2990
2989
|
let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = V.value.chart.timeTag.customFormat;
|
|
2991
|
-
if (
|
|
2992
|
-
let e =
|
|
2990
|
+
if (ql.value = !1, G.value) {
|
|
2991
|
+
let e = Zl.value;
|
|
2993
2992
|
if (Oe(t)) try {
|
|
2994
2993
|
let n = t({
|
|
2995
2994
|
absoluteIndex: e,
|
|
2996
2995
|
seriesIndex: e,
|
|
2997
|
-
datapoint:
|
|
2998
|
-
bars:
|
|
2996
|
+
datapoint: zc.value,
|
|
2997
|
+
bars: ml.value,
|
|
2999
2998
|
lines: Q.value,
|
|
3000
2999
|
plots: $.value,
|
|
3001
3000
|
config: V.value
|
|
3002
3001
|
});
|
|
3003
|
-
if (typeof n == "string") return
|
|
3002
|
+
if (typeof n == "string") return ql.value = !0, n;
|
|
3004
3003
|
} catch {
|
|
3005
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
3004
|
+
console.warn("Custom format cannot be applied on timeTag."), ql.value = !1;
|
|
3006
3005
|
}
|
|
3007
3006
|
return pe({
|
|
3008
3007
|
v: e,
|
|
@@ -3013,19 +3012,19 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3013
3012
|
let n = t({
|
|
3014
3013
|
absoluteIndex: e + U.value.start,
|
|
3015
3014
|
seriesIndex: e,
|
|
3016
|
-
datapoint:
|
|
3017
|
-
bars:
|
|
3015
|
+
datapoint: zc.value,
|
|
3016
|
+
bars: ml.value,
|
|
3018
3017
|
lines: Q.value,
|
|
3019
3018
|
plots: $.value,
|
|
3020
3019
|
config: V.value
|
|
3021
3020
|
});
|
|
3022
|
-
if (typeof n == "string") return
|
|
3021
|
+
if (typeof n == "string") return ql.value = !0, n;
|
|
3023
3022
|
} catch {
|
|
3024
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
3023
|
+
console.warn("Custom format cannot be applied on timeTag."), ql.value = !1;
|
|
3025
3024
|
}
|
|
3026
|
-
if (!
|
|
3025
|
+
if (!ql.value) return [null, void 0].includes(Y.value[e]) ? "" : V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.timeTag.useDefaultFormat ? xl.value(e + U.value.start, V.value.chart.timeTag.timeFormat) : Y.value[e].text;
|
|
3027
3026
|
});
|
|
3028
|
-
function
|
|
3027
|
+
function iu({ serie: e, plot: t, type: n }) {
|
|
3029
3028
|
if (!Ct(t.value)) return "";
|
|
3030
3029
|
let r = pe({
|
|
3031
3030
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
@@ -3047,44 +3046,44 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3047
3046
|
y: 0
|
|
3048
3047
|
});
|
|
3049
3048
|
}
|
|
3050
|
-
function
|
|
3051
|
-
let t = V.value.bar.labels.offsetY, n = Math.abs(
|
|
3052
|
-
x:
|
|
3049
|
+
function au({ plot: e }) {
|
|
3050
|
+
let t = V.value.bar.labels.offsetY, n = Math.abs(As(e)), r = e.value < 0, i = {
|
|
3051
|
+
x: Ps(e) + V.value.bar.labels.offsetX,
|
|
3053
3052
|
y: p(e.y) + (V.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
3054
3053
|
};
|
|
3055
3054
|
return `translate(${i.x}, ${i.y}) rotate(${V.value.bar.labels.rotation})`;
|
|
3056
3055
|
}
|
|
3057
|
-
function
|
|
3056
|
+
function ou({ plot: e, type: t }) {
|
|
3058
3057
|
let n = V.value[t].labels.offsetY, r = {
|
|
3059
3058
|
x: e.x + V.value[t].labels.offsetX,
|
|
3060
3059
|
y: p(e.y) + (V.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
3061
3060
|
};
|
|
3062
3061
|
return `translate(${r.x}, ${r.y}) rotate(${V.value[t].labels.rotation})`;
|
|
3063
3062
|
}
|
|
3064
|
-
function
|
|
3063
|
+
function su({ plot: e, type: t }) {
|
|
3065
3064
|
if (V.value[t].labels.textAnchor != null) return V.value[t].labels.textAnchor;
|
|
3066
3065
|
let n = e.value >= 0;
|
|
3067
3066
|
return V.value[t].labels.rotation === 0 ? "middle" : V.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
3068
3067
|
}
|
|
3069
|
-
let
|
|
3068
|
+
let cu = y(() => G.value ? a(ca.value) ? $c({ x: Number(ca.value) }) : a(Rs.value) ? Rs.value : null : pc(R.value ?? I.value ?? 0)), lu = y(() => V.value.chart.highlighter.crosshairs.show && Qo.value), uu = y(() => [
|
|
3070
3069
|
...Q.value,
|
|
3071
3070
|
...$.value,
|
|
3072
|
-
...
|
|
3071
|
+
...ml.value
|
|
3073
3072
|
].flatMap((e) => (e.plots || []).map((e, t) => ({
|
|
3074
3073
|
plot: e,
|
|
3075
3074
|
index: t
|
|
3076
|
-
})).filter(({ plot: t, index: n }) =>
|
|
3075
|
+
})).filter(({ plot: t, index: n }) => pu(e, t, n)).filter(({ plot: e }) => Ct(e.value)).map(({ plot: t, index: n }) => ({
|
|
3077
3076
|
...t,
|
|
3078
3077
|
index: t.index ?? n,
|
|
3079
3078
|
serie: e,
|
|
3080
|
-
x: p(e.type === "bar" ?
|
|
3079
|
+
x: p(e.type === "bar" ? Ps(t) : t.x),
|
|
3081
3080
|
y: p(t.y)
|
|
3082
|
-
})))),
|
|
3083
|
-
if (!
|
|
3081
|
+
})))), du = y(() => {
|
|
3082
|
+
if (!lu.value) return null;
|
|
3084
3083
|
if (G.value) {
|
|
3085
3084
|
let e = Z.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
3086
3085
|
return a(t) ? {
|
|
3087
|
-
x:
|
|
3086
|
+
x: cu.value,
|
|
3088
3087
|
text: g(V.value.chart.grid.labels.xAxis.formatter, t, pe({
|
|
3089
3088
|
v: t,
|
|
3090
3089
|
r: V.value.chart.tooltip.roundingValue
|
|
@@ -3093,24 +3092,24 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3093
3092
|
}
|
|
3094
3093
|
let e = R.value === null ? I.value : R.value;
|
|
3095
3094
|
return e == null ? null : {
|
|
3096
|
-
x:
|
|
3095
|
+
x: pc(e),
|
|
3097
3096
|
text: Y.value[e]?.text ?? ""
|
|
3098
3097
|
};
|
|
3099
3098
|
});
|
|
3100
|
-
function
|
|
3099
|
+
function fu(e) {
|
|
3101
3100
|
return V.value.chart.grid.labels.yAxis.position === "right" ? J.value.right : J.value.left;
|
|
3102
3101
|
}
|
|
3103
|
-
function
|
|
3102
|
+
function pu(e, t, n) {
|
|
3104
3103
|
return G.value ? Z.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : R.value !== null && R.value === n || I.value !== null && I.value === n;
|
|
3105
3104
|
}
|
|
3106
|
-
function
|
|
3107
|
-
return !t || !Ct(t.value) || !V.value[r].labels.show || !H.value.dataLabels.show ? !1 : !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3105
|
+
function mu({ serie: e, plot: t, index: n, type: r }) {
|
|
3106
|
+
return !t || !Ct(t.value) || !V.value[r].labels.show || !H.value.dataLabels.show ? !1 : !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pu(e, t, n);
|
|
3108
3107
|
}
|
|
3109
|
-
function
|
|
3108
|
+
function hu(e, t) {
|
|
3110
3109
|
let n = [];
|
|
3111
3110
|
return e.forEach((e, r) => {
|
|
3112
3111
|
(Array.isArray(e.plots) ? e.plots : []).forEach((i, a) => {
|
|
3113
|
-
|
|
3112
|
+
mu({
|
|
3114
3113
|
serie: e,
|
|
3115
3114
|
plot: i,
|
|
3116
3115
|
index: a,
|
|
@@ -3125,53 +3124,53 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3125
3124
|
});
|
|
3126
3125
|
}), n;
|
|
3127
3126
|
}
|
|
3128
|
-
let
|
|
3127
|
+
let gu = y(() => hu(ml.value, "bar")), _u = y(() => hu($.value, "plot")), vu = y(() => hu(Q.value, "line"));
|
|
3129
3128
|
bt(() => M.dataset, (e) => {
|
|
3130
|
-
if (Array.isArray(e) && e.length > 0 && (
|
|
3131
|
-
let e =
|
|
3129
|
+
if (Array.isArray(e) && e.length > 0 && (Ha.value = !1), V.value.chart.zoom.keepState) {
|
|
3130
|
+
let e = Ja.value;
|
|
3132
3131
|
if (e > 0) {
|
|
3133
3132
|
let t = U.value.start, n = U.value.end;
|
|
3134
|
-
if (!
|
|
3133
|
+
if (!rs.value || t === 0 && n === 0) os();
|
|
3135
3134
|
else {
|
|
3136
3135
|
let r = Math.max(0, Math.min(t, e - 1)), i = Math.max(r + 1, Math.min(n, e));
|
|
3137
3136
|
U.value = {
|
|
3138
3137
|
start: r,
|
|
3139
3138
|
end: i
|
|
3140
|
-
},
|
|
3139
|
+
}, Ya.value = {
|
|
3141
3140
|
start: r,
|
|
3142
3141
|
end: i
|
|
3143
|
-
},
|
|
3142
|
+
}, is.value = 0, as.value = e;
|
|
3144
3143
|
}
|
|
3145
3144
|
}
|
|
3146
3145
|
} else U.value = {
|
|
3147
3146
|
start: 0,
|
|
3148
|
-
end:
|
|
3147
|
+
end: Ja.value
|
|
3149
3148
|
};
|
|
3150
|
-
Ri.value += 1, ea.value += 1,
|
|
3149
|
+
Ri.value += 1, ea.value += 1, wa(), Qa();
|
|
3151
3150
|
}, { deep: !0 }), bt(() => M.config, (e) => {
|
|
3152
|
-
|
|
3151
|
+
Ba.value || (V.value = ja()), Gl(), Qi.value += 1, Zi.value += 1, Ia(), V.value.chart.zoom.keepState && Ja.value > 0 && (!rs.value || U.value.start === 0 && U.value.end === 0) && os(), Qa();
|
|
3153
3152
|
}, { deep: !0 });
|
|
3154
|
-
let
|
|
3155
|
-
function
|
|
3153
|
+
let yu = E(!1), bu = E(!1);
|
|
3154
|
+
function xu() {
|
|
3156
3155
|
let e = wi.value?.parentNode;
|
|
3157
3156
|
if (!e) {
|
|
3158
|
-
|
|
3157
|
+
bu.value = yu.value, yu.value = !1;
|
|
3159
3158
|
return;
|
|
3160
3159
|
}
|
|
3161
3160
|
let t = e.getBoundingClientRect();
|
|
3162
|
-
|
|
3161
|
+
bu.value = yu.value, yu.value = t.width > 0 && t.height > 0;
|
|
3163
3162
|
}
|
|
3164
|
-
function
|
|
3165
|
-
return !
|
|
3163
|
+
function Su() {
|
|
3164
|
+
return !yu.value || bu.value || rs.value ? !1 : U.value.start === 0 && U.value.end === 0;
|
|
3166
3165
|
}
|
|
3167
3166
|
mt(() => {
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
}), wi.value?.parentNode &&
|
|
3167
|
+
xu(), da.value = new ResizeObserver(() => {
|
|
3168
|
+
xu(), yu.value && (Gl(), Qa(), Su() && os());
|
|
3169
|
+
}), wi.value?.parentNode && da.value.observe(wi.value.parentNode);
|
|
3171
3170
|
}), bt(V, () => {
|
|
3172
|
-
|
|
3171
|
+
Ia();
|
|
3173
3172
|
}, { immediate: !0 });
|
|
3174
|
-
let
|
|
3173
|
+
let Cu = y(() => {
|
|
3175
3174
|
let e = V.value.table.useDialog && !V.value.showTable, t = H.value.showTable;
|
|
3176
3175
|
return {
|
|
3177
3176
|
component: e ? _i : $e,
|
|
@@ -3204,48 +3203,23 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3204
3203
|
bt(() => H.value.showTable, (e) => {
|
|
3205
3204
|
V.value.showTable || (e && V.value.table.useDialog && sa.value ? sa.value.open() : sa.value && sa.value.close && sa.value.close());
|
|
3206
3205
|
});
|
|
3207
|
-
function
|
|
3206
|
+
function wu() {
|
|
3208
3207
|
H.value.showTable = !1, Fi.value && Fi.value.setTableIconState(!1);
|
|
3209
3208
|
}
|
|
3210
|
-
let
|
|
3209
|
+
let Tu = y(() => xo.value.map((e) => ({
|
|
3211
3210
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
3212
3211
|
color: e.color,
|
|
3213
3212
|
name: e.name
|
|
3214
|
-
}))),
|
|
3213
|
+
}))), Eu = y(() => V.value.chart.backgroundColor), Du = y(() => V.value.chart.legend), Ou = y(() => V.value.chart.title), { isCallbackImaging: ku, isCallbackSvg: Au, generateSvg: ju, onGenerateImage: Mu } = He({
|
|
3215
3214
|
svg: L,
|
|
3216
|
-
title:
|
|
3217
|
-
legend:
|
|
3218
|
-
legendItems:
|
|
3219
|
-
backgroundColor:
|
|
3215
|
+
title: Ou,
|
|
3216
|
+
legend: Du,
|
|
3217
|
+
legendItems: Tu,
|
|
3218
|
+
backgroundColor: Eu,
|
|
3219
|
+
getSvgCallback: () => V.value.chart.userOptions.callbacks.svg,
|
|
3220
|
+
generateImage: ro
|
|
3220
3221
|
});
|
|
3221
|
-
async function Nu(
|
|
3222
|
-
la.value = !0, await dt();
|
|
3223
|
-
try {
|
|
3224
|
-
if (e) {
|
|
3225
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Mu();
|
|
3226
|
-
await Promise.resolve(V.value.chart.userOptions.callbacks.svg({
|
|
3227
|
-
blob: e,
|
|
3228
|
-
url: t,
|
|
3229
|
-
text: n,
|
|
3230
|
-
dataUrl: r
|
|
3231
|
-
}));
|
|
3232
|
-
} else await Promise.resolve(ju());
|
|
3233
|
-
} finally {
|
|
3234
|
-
la.value = !1;
|
|
3235
|
-
}
|
|
3236
|
-
}
|
|
3237
|
-
function Pu(e) {
|
|
3238
|
-
if (e?.stage === "start") {
|
|
3239
|
-
ca.value = !0;
|
|
3240
|
-
return;
|
|
3241
|
-
}
|
|
3242
|
-
if (e?.stage === "end") {
|
|
3243
|
-
ca.value = !1;
|
|
3244
|
-
return;
|
|
3245
|
-
}
|
|
3246
|
-
ao();
|
|
3247
|
-
}
|
|
3248
|
-
async function Fu() {
|
|
3222
|
+
async function Nu() {
|
|
3249
3223
|
if (vi("copyAlt", {
|
|
3250
3224
|
config: {
|
|
3251
3225
|
...V.value,
|
|
@@ -3253,7 +3227,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3253
3227
|
},
|
|
3254
3228
|
dataset: {
|
|
3255
3229
|
lines: Q.value,
|
|
3256
|
-
bars:
|
|
3230
|
+
bars: ml.value,
|
|
3257
3231
|
plots: $.value
|
|
3258
3232
|
}
|
|
3259
3233
|
}), !V.value.chart.userOptions.callbacks.altCopy) {
|
|
@@ -3267,84 +3241,84 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3267
3241
|
},
|
|
3268
3242
|
dataset: {
|
|
3269
3243
|
lines: Q.value,
|
|
3270
|
-
bars:
|
|
3244
|
+
bars: ml.value,
|
|
3271
3245
|
plots: $.value
|
|
3272
3246
|
}
|
|
3273
3247
|
}));
|
|
3274
3248
|
}
|
|
3275
|
-
let
|
|
3276
|
-
function
|
|
3277
|
-
U.value.end > U.value.start && (
|
|
3249
|
+
let Pu = E(!1);
|
|
3250
|
+
function Fu() {
|
|
3251
|
+
U.value.end > U.value.start && (la.value = null), Ro.value = !0, Pu.value = !0;
|
|
3278
3252
|
}
|
|
3279
|
-
function
|
|
3280
|
-
|
|
3253
|
+
function Iu() {
|
|
3254
|
+
la.value = null, Ks(), Pu.value = !1, Ro.value = !1;
|
|
3281
3255
|
}
|
|
3282
|
-
function
|
|
3256
|
+
function Lu(e) {
|
|
3283
3257
|
if (!L.value || Wi.value || document.activeElement !== L.value) return;
|
|
3284
3258
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
3285
3259
|
if (!t && !n || !U.value.end && U.value.end !== 0) return;
|
|
3286
3260
|
let r = U.value.end - U.value.start;
|
|
3287
3261
|
if (r <= 0) return;
|
|
3288
3262
|
if (e.preventDefault(), e.stopPropagation(), G.value) {
|
|
3289
|
-
let e =
|
|
3263
|
+
let e = Vs.value.length;
|
|
3290
3264
|
if (!e) return;
|
|
3291
|
-
let r =
|
|
3292
|
-
r !== null && r >= 0 && r < e ? n ? (r += 1, r >= e && (r = 0)) : t && (--r, r < 0 && (r = e - 1)) : r = n ? 0 : e - 1,
|
|
3265
|
+
let r = la.value;
|
|
3266
|
+
r !== null && r >= 0 && r < e ? n ? (r += 1, r >= e && (r = 0)) : t && (--r, r < 0 && (r = e - 1)) : r = n ? 0 : e - 1, Hs(r);
|
|
3293
3267
|
return;
|
|
3294
3268
|
}
|
|
3295
|
-
let i =
|
|
3296
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
3269
|
+
let i = la.value, a = Ls.value;
|
|
3270
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, la.value = i, Ru(i), zl(!0, i);
|
|
3297
3271
|
}
|
|
3298
|
-
function
|
|
3272
|
+
function Ru(e) {
|
|
3299
3273
|
let t = U.value.end - U.value.start;
|
|
3300
3274
|
if (t <= 0) return;
|
|
3301
3275
|
let n = J.value.width / t, r = J.value.left + n * e + n / 2, i = J.value.top + J.value.height / 2, a = l(r, i, L.value);
|
|
3302
|
-
a && (
|
|
3276
|
+
a && (ua.value = a);
|
|
3303
3277
|
}
|
|
3304
|
-
let
|
|
3305
|
-
if (!
|
|
3278
|
+
let zu = y(() => {
|
|
3279
|
+
if (!Ll.value) return null;
|
|
3306
3280
|
let e = V.value.table.showSum, t = [V.value.table.columnNames.period].concat(K.value.map((e) => e.name));
|
|
3307
3281
|
return e && (t = t.concat(V.value.table.columnNames.total)), {
|
|
3308
3282
|
headers: t,
|
|
3309
|
-
rows:
|
|
3283
|
+
rows: Ll.value.body
|
|
3310
3284
|
};
|
|
3311
3285
|
});
|
|
3312
3286
|
return Xe({
|
|
3313
|
-
getData:
|
|
3314
|
-
getImage:
|
|
3315
|
-
generatePdf:
|
|
3316
|
-
generateImage:
|
|
3317
|
-
generateSvg:
|
|
3318
|
-
generateCsv:
|
|
3319
|
-
hideSeries:
|
|
3320
|
-
showSeries:
|
|
3321
|
-
toggleStack:
|
|
3322
|
-
toggleTable:
|
|
3323
|
-
toggleLabels:
|
|
3324
|
-
toggleTooltip:
|
|
3325
|
-
toggleAnnotator:
|
|
3326
|
-
toggleFullscreen:
|
|
3327
|
-
copyAlt:
|
|
3328
|
-
resetZoom:
|
|
3287
|
+
getData: Ys,
|
|
3288
|
+
getImage: Xs,
|
|
3289
|
+
generatePdf: no,
|
|
3290
|
+
generateImage: ro,
|
|
3291
|
+
generateSvg: ju,
|
|
3292
|
+
generateCsv: Rl,
|
|
3293
|
+
hideSeries: rc,
|
|
3294
|
+
showSeries: nc,
|
|
3295
|
+
toggleStack: $o,
|
|
3296
|
+
toggleTable: Bl,
|
|
3297
|
+
toggleLabels: Vl,
|
|
3298
|
+
toggleTooltip: Hl,
|
|
3299
|
+
toggleAnnotator: Ho,
|
|
3300
|
+
toggleFullscreen: Ul,
|
|
3301
|
+
copyAlt: Nu,
|
|
3302
|
+
resetZoom: _s
|
|
3329
3303
|
}), (t, n) => (T(), x("div", {
|
|
3330
3304
|
id: `vue-ui-xy_${F.value}`,
|
|
3331
3305
|
class: C(`vue-data-ui-component vue-ui-xy ${Gi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${V.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
3332
3306
|
ref_key: "chart",
|
|
3333
3307
|
ref: wi,
|
|
3334
3308
|
style: w(`background:${V.value.chart.backgroundColor}; color:${V.value.chart.color};width:100%;font-family:${V.value.chart.fontFamily};${V.value.responsive ? "height: 100%" : ""}`),
|
|
3335
|
-
onMouseenter:
|
|
3336
|
-
onMouseleave:
|
|
3337
|
-
onClick:
|
|
3309
|
+
onMouseenter: Bo,
|
|
3310
|
+
onMouseleave: Vo,
|
|
3311
|
+
onClick: qs
|
|
3338
3312
|
}, [
|
|
3339
3313
|
S("div", {
|
|
3340
3314
|
id: `chart-instructions-${F.value}`,
|
|
3341
3315
|
class: "sr-only"
|
|
3342
3316
|
}, [S("p", null, k(V.value.a11y.translations.keyboardNavigation), 1)], 8, Pt),
|
|
3343
|
-
|
|
3317
|
+
zu.value?.rows?.length ? (T(), rt(tt, {
|
|
3344
3318
|
key: 0,
|
|
3345
3319
|
uid: F.value,
|
|
3346
|
-
head:
|
|
3347
|
-
body:
|
|
3320
|
+
head: zu.value.headers,
|
|
3321
|
+
body: zu.value.rows,
|
|
3348
3322
|
notice: V.value.a11y.translations.tableAvailable,
|
|
3349
3323
|
caption: V.value.a11y.translations.tableCaption
|
|
3350
3324
|
}, null, 8, [
|
|
@@ -3360,8 +3334,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3360
3334
|
backgroundColor: V.value.chart.backgroundColor,
|
|
3361
3335
|
color: V.value.chart.color,
|
|
3362
3336
|
active: Wi.value,
|
|
3363
|
-
isCursorPointer:
|
|
3364
|
-
onClose:
|
|
3337
|
+
isCursorPointer: Fa.value,
|
|
3338
|
+
onClose: Ho
|
|
3365
3339
|
}, {
|
|
3366
3340
|
"annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
3367
3341
|
"annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", ft(lt({ color: e })), void 0, !0)]),
|
|
@@ -3377,7 +3351,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3377
3351
|
"active",
|
|
3378
3352
|
"isCursorPointer"
|
|
3379
3353
|
])) : b("", !0),
|
|
3380
|
-
|
|
3354
|
+
oc.value ? (T(), x("div", {
|
|
3381
3355
|
key: 2,
|
|
3382
3356
|
ref_key: "noTitle",
|
|
3383
3357
|
ref: ki,
|
|
@@ -3410,8 +3384,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3410
3384
|
key: `user_options_${Xi.value}`,
|
|
3411
3385
|
backgroundColor: V.value.chart.backgroundColor,
|
|
3412
3386
|
color: V.value.chart.color,
|
|
3413
|
-
isPrinting: A(
|
|
3414
|
-
isImaging: A(
|
|
3387
|
+
isPrinting: A(eo),
|
|
3388
|
+
isImaging: A(to),
|
|
3415
3389
|
uid: F.value,
|
|
3416
3390
|
hasTooltip: V.value.chart.userOptions.buttons.tooltip && V.value.chart.tooltip.show,
|
|
3417
3391
|
hasPdf: V.value.chart.userOptions.buttons.pdf,
|
|
@@ -3434,18 +3408,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3434
3408
|
callbacks: V.value.chart.userOptions.callbacks,
|
|
3435
3409
|
tableDialog: V.value.table.useDialog,
|
|
3436
3410
|
printScale: V.value.chart.userOptions.print.scale,
|
|
3437
|
-
isCursorPointer:
|
|
3438
|
-
onToggleFullscreen:
|
|
3439
|
-
onGeneratePdf: A(
|
|
3440
|
-
onGenerateCsv:
|
|
3441
|
-
onGenerateImage:
|
|
3442
|
-
onGenerateSvg:
|
|
3443
|
-
onToggleTable:
|
|
3444
|
-
onToggleLabels:
|
|
3445
|
-
onToggleStack:
|
|
3446
|
-
onToggleTooltip:
|
|
3447
|
-
onToggleAnnotator:
|
|
3448
|
-
onCopyAlt:
|
|
3411
|
+
isCursorPointer: Fa.value,
|
|
3412
|
+
onToggleFullscreen: Ul,
|
|
3413
|
+
onGeneratePdf: A(no),
|
|
3414
|
+
onGenerateCsv: Rl,
|
|
3415
|
+
onGenerateImage: A(Mu),
|
|
3416
|
+
onGenerateSvg: A(ju),
|
|
3417
|
+
onToggleTable: Bl,
|
|
3418
|
+
onToggleLabels: Vl,
|
|
3419
|
+
onToggleStack: $o,
|
|
3420
|
+
onToggleTooltip: Hl,
|
|
3421
|
+
onToggleAnnotator: Ho,
|
|
3422
|
+
onCopyAlt: Nu,
|
|
3449
3423
|
style: w({ visibility: na.value ? ra.value ? "visible" : "hidden" : "visible" })
|
|
3450
3424
|
}, it({ _: 2 }, [
|
|
3451
3425
|
t.$slots.menuIcon ? {
|
|
@@ -3527,7 +3501,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3527
3501
|
fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
3528
3502
|
key: "13"
|
|
3529
3503
|
} : void 0
|
|
3530
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : b("", !0),
|
|
3504
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
|
|
3531
3505
|
S("div", It, [(T(), x("svg", {
|
|
3532
3506
|
ref_key: "svgRef",
|
|
3533
3507
|
ref: L,
|
|
@@ -3535,7 +3509,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3535
3509
|
class: C([{
|
|
3536
3510
|
"vue-data-ui-fullscreen--on": Gi.value,
|
|
3537
3511
|
"vue-data-ui-fulscreen--off": !Gi.value,
|
|
3538
|
-
"vue-data-ui-no-transition": !A(
|
|
3512
|
+
"vue-data-ui-no-transition": !A(Pa)
|
|
3539
3513
|
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
3540
3514
|
width: "100%",
|
|
3541
3515
|
viewBox: Vi.value,
|
|
@@ -3544,18 +3518,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3544
3518
|
color: V.value.chart.color,
|
|
3545
3519
|
fontFamily: V.value.chart.fontFamily
|
|
3546
3520
|
}),
|
|
3547
|
-
"aria-label":
|
|
3521
|
+
"aria-label": ic.value,
|
|
3548
3522
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
3549
3523
|
"aria-live": "polite",
|
|
3550
3524
|
role: "img",
|
|
3551
3525
|
tabindex: "0",
|
|
3552
3526
|
preserveAspectRatio: "xMidYMid",
|
|
3553
|
-
onMousemove:
|
|
3554
|
-
onMouseleave:
|
|
3555
|
-
onClick:
|
|
3556
|
-
onFocus:
|
|
3557
|
-
onBlur:
|
|
3558
|
-
onKeydown:
|
|
3527
|
+
onMousemove: Gs,
|
|
3528
|
+
onMouseleave: Ks,
|
|
3529
|
+
onClick: qs,
|
|
3530
|
+
onFocus: Fu,
|
|
3531
|
+
onBlur: Iu,
|
|
3532
|
+
onKeydown: Lu
|
|
3559
3533
|
}, [S("g", {
|
|
3560
3534
|
ref_key: "G",
|
|
3561
3535
|
ref: Ai,
|
|
@@ -3583,7 +3557,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3583
3557
|
"stroke-linecap": "round",
|
|
3584
3558
|
style: { animation: "none !important" }
|
|
3585
3559
|
}, null, 8, Vt)) : b("", !0),
|
|
3586
|
-
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (T(!0), x(v, { key: 2 }, D(
|
|
3560
|
+
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (T(!0), x(v, { key: 2 }, D(gl.value, (e) => (T(), x("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === N.value && e.yLabels.length ? (T(!0), x(v, { key: 0 }, D(e.yLabels, (t) => (T(), x("line", {
|
|
3587
3561
|
key: `selected_individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3588
3562
|
x1: J.value?.left,
|
|
3589
3563
|
x2: J.value?.right,
|
|
@@ -3614,7 +3588,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3614
3588
|
y2: A(_)(J.value?.bottom),
|
|
3615
3589
|
"stroke-linecap": "round",
|
|
3616
3590
|
style: { animation: "none !important" }
|
|
3617
|
-
}, null, 8, Ht)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (T(), x("g", Ut, [(T(!0), x(v, null, D(
|
|
3591
|
+
}, null, 8, Ht)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (T(), x("g", Ut, [(T(!0), x(v, null, D(Bc.value, (e) => (T(), x("line", {
|
|
3618
3592
|
key: `horizontal_grid_line_${e.value}_${e.y}`,
|
|
3619
3593
|
x1: J.value?.left,
|
|
3620
3594
|
x2: J.value?.right,
|
|
@@ -3626,21 +3600,21 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3626
3600
|
style: { animation: "none !important" }
|
|
3627
3601
|
}, null, 8, Wt))), 128))])) : b("", !0)], 64)),
|
|
3628
3602
|
V.value.chart.grid.showVerticalLines ? (T(), x("g", qt, [S("path", {
|
|
3629
|
-
d:
|
|
3603
|
+
d: Mo.value,
|
|
3630
3604
|
"stroke-width": .5,
|
|
3631
3605
|
stroke: V.value.chart.grid.stroke,
|
|
3632
3606
|
"stroke-linecap": "round",
|
|
3633
3607
|
style: { animation: "none !important" }
|
|
3634
3608
|
}, null, 8, Jt)])) : b("", !0),
|
|
3635
3609
|
V.value.chart.grid.labels.xAxisLabels.show ? (T(), x("g", Yt, [S("path", {
|
|
3636
|
-
d:
|
|
3610
|
+
d: No.value,
|
|
3637
3611
|
stroke: V.value.chart.grid.stroke,
|
|
3638
3612
|
"stroke-width": 1,
|
|
3639
3613
|
"stroke-linecap": "round",
|
|
3640
3614
|
style: { animation: "none !important" }
|
|
3641
3615
|
}, null, 8, Xt)])) : b("", !0)
|
|
3642
3616
|
]),
|
|
3643
|
-
(T(!0), x(v, null, D(
|
|
3617
|
+
(T(!0), x(v, null, D(ml.value, (e, n) => (T(), x("defs", { key: `def_rect_${n}` }, [t.$slots["bar-gradient"] ? O(t.$slots, "bar-gradient", ut({ ref_for: !0 }, {
|
|
3644
3618
|
series: e,
|
|
3645
3619
|
positiveId: `rectGradient_pos_${n}_${F.value}`,
|
|
3646
3620
|
negativeId: `rectGradient_neg_${n}_${F.value}`
|
|
@@ -3752,32 +3726,32 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3752
3726
|
"stop-color": t,
|
|
3753
3727
|
offset: A(Ae)(r, e.temperatureColors.length)
|
|
3754
3728
|
}, null, 8, $t))), 128))], 8, Qt)])) : b("", !0)], 64))), 128)),
|
|
3755
|
-
(T(!0), x(v, null, D(
|
|
3729
|
+
(T(!0), x(v, null, D(sc.value, (e) => (T(), x("g", { key: `highlight_area_${e.from}_${e.span}_${e.color}` }, [e.show ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(e.span, (t, n) => (T(), x("g", { key: `highlight_area_rect_${e.from}_${n}` }, [S("rect", {
|
|
3756
3730
|
style: w({
|
|
3757
3731
|
transition: "none",
|
|
3758
3732
|
opacity: +(e.from + n >= U.value.start && e.from + n <= U.value.end - 1)
|
|
3759
3733
|
}),
|
|
3760
|
-
x:
|
|
3734
|
+
x: hc(e.from + n - U.value.start),
|
|
3761
3735
|
y: J.value?.top,
|
|
3762
3736
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
3763
|
-
width:
|
|
3737
|
+
width: gc(e.from + n - U.value.start),
|
|
3764
3738
|
fill: A(i)(e.color, e.opacity)
|
|
3765
3739
|
}, null, 12, en)]))), 128)), (T(!0), x(v, null, D(e.span, (t, n) => (T(), x("g", { key: `highlight_area_caption_${e.from}_${n}` }, [e.caption.text && n === 0 ? (T(), x("foreignObject", {
|
|
3766
3740
|
key: 0,
|
|
3767
|
-
x:
|
|
3741
|
+
x: hc(e.from + n - U.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - yc(e.span) / 2),
|
|
3768
3742
|
y: J.value?.top + e.caption.offsetY,
|
|
3769
3743
|
style: w({
|
|
3770
3744
|
overflow: "visible",
|
|
3771
3745
|
opacity: +(e.to >= U.value.start && e.from < U.value.end)
|
|
3772
3746
|
}),
|
|
3773
3747
|
height: "1",
|
|
3774
|
-
width: e.caption.width === "auto" ?
|
|
3748
|
+
width: e.caption.width === "auto" ? yc(e.span) : e.caption.width
|
|
3775
3749
|
}, [S("div", { style: w(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, k(e.caption.text), 5)], 12, tn)) : b("", !0)]))), 128))], 64)) : b("", !0)]))), 128)),
|
|
3776
|
-
|
|
3777
|
-
x:
|
|
3750
|
+
Ro.value && !G.value ? (T(), x("g", nn, [(T(!0), x(v, null, D(X.value, (e, t) => (T(), x("g", { key: `tooltip_trap_highlighter_${t}` }, [S("rect", {
|
|
3751
|
+
x: hc(t),
|
|
3778
3752
|
y: J.value?.top,
|
|
3779
3753
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
3780
|
-
width:
|
|
3754
|
+
width: vc(t),
|
|
3781
3755
|
fill: [
|
|
3782
3756
|
I.value,
|
|
3783
3757
|
R.value,
|
|
@@ -3788,41 +3762,41 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3788
3762
|
animation: "none !important"
|
|
3789
3763
|
}
|
|
3790
3764
|
}, null, 8, rn)]))), 128))])) : b("", !0),
|
|
3791
|
-
|
|
3765
|
+
ml.value.length ? (T(!0), x(v, { key: 1 }, D(ml.value, (e, n) => (T(), x("g", {
|
|
3792
3766
|
key: `serie_bar_${e.id}`,
|
|
3793
3767
|
class: C(`serie_bar_${n}`),
|
|
3794
3768
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3795
3769
|
}, [(T(!0), x(v, null, D(e.plots, (r, i) => (T(), x("g", { key: `bar_plot_${n}_${i}` }, [
|
|
3796
3770
|
A(Ct)(r.value) ? (T(), x("rect", {
|
|
3797
3771
|
key: 0,
|
|
3798
|
-
x:
|
|
3799
|
-
y: H.value.useIndividualScale ?
|
|
3800
|
-
height: H.value.useIndividualScale ? Math.abs(
|
|
3801
|
-
width:
|
|
3772
|
+
x: Ns(r) + Ic.value / 2,
|
|
3773
|
+
y: H.value.useIndividualScale ? Is(r) : Fs(r),
|
|
3774
|
+
height: H.value.useIndividualScale ? Math.abs(As(r)) : Math.abs(ks(r)),
|
|
3775
|
+
width: Fc.value - Ic.value,
|
|
3802
3776
|
rx: V.value.bar.borderRadius,
|
|
3803
3777
|
fill: V.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${n}_${F.value})` : `url(#rectGradient_neg_${n}_${F.value})` : e.color,
|
|
3804
3778
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3805
3779
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3806
|
-
style: w({ transition: A(
|
|
3780
|
+
style: w({ transition: A(Ba) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3807
3781
|
}, null, 12, an)) : b("", !0),
|
|
3808
3782
|
A(Ct)(r.value) && t.$slots.pattern ? (T(), x("rect", {
|
|
3809
3783
|
key: 1,
|
|
3810
|
-
x:
|
|
3811
|
-
y: H.value.useIndividualScale ?
|
|
3812
|
-
height: H.value.useIndividualScale ? Math.abs(
|
|
3813
|
-
width:
|
|
3784
|
+
x: Ns(r) - Ic.value / 2,
|
|
3785
|
+
y: H.value.useIndividualScale ? Is(r) : Fs(r),
|
|
3786
|
+
height: H.value.useIndividualScale ? Math.abs(As(r)) : Math.abs(ks(r)),
|
|
3787
|
+
width: Fc.value - Ic.value,
|
|
3814
3788
|
rx: V.value.bar.borderRadius,
|
|
3815
3789
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
3816
3790
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3817
3791
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3818
|
-
style: w({ transition: A(
|
|
3792
|
+
style: w({ transition: A(Ba) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3819
3793
|
}, null, 12, on)) : b("", !0),
|
|
3820
3794
|
r.comment && V.value.chart.comments.show ? (T(), x("foreignObject", {
|
|
3821
3795
|
key: 2,
|
|
3822
3796
|
style: { overflow: "visible" },
|
|
3823
3797
|
height: "12",
|
|
3824
|
-
width:
|
|
3825
|
-
x:
|
|
3798
|
+
width: Fc.value + V.value.chart.comments.width,
|
|
3799
|
+
x: Ns(r) - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3826
3800
|
y: A(p)(r.y) + V.value.chart.comments.offsetY + 6
|
|
3827
3801
|
}, [O(t.$slots, "plot-comment", { plot: {
|
|
3828
3802
|
...r,
|
|
@@ -3837,14 +3811,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3837
3811
|
"stroke-width": "1",
|
|
3838
3812
|
x1: J.value?.left,
|
|
3839
3813
|
x2: J.value?.right,
|
|
3840
|
-
y1: A(_)(
|
|
3841
|
-
y2: A(_)(
|
|
3814
|
+
y1: A(_)(Os.value),
|
|
3815
|
+
y2: A(_)(Os.value),
|
|
3842
3816
|
"stroke-linecap": "round",
|
|
3843
3817
|
style: { animation: "none !important" }
|
|
3844
3818
|
}, null, 8, cn)) : b("", !0),
|
|
3845
|
-
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) &&
|
|
3846
|
-
x1:
|
|
3847
|
-
x2:
|
|
3819
|
+
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && Qo.value ? (T(), x("g", ln, [S("line", {
|
|
3820
|
+
x1: cu.value,
|
|
3821
|
+
x2: cu.value,
|
|
3848
3822
|
y1: A(_)(J.value?.top),
|
|
3849
3823
|
y2: A(_)(J.value?.bottom),
|
|
3850
3824
|
stroke: V.value.chart.highlighter.color,
|
|
@@ -3857,10 +3831,10 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3857
3831
|
"pointer-events": "none"
|
|
3858
3832
|
}
|
|
3859
3833
|
}, null, 8, un)])) : b("", !0),
|
|
3860
|
-
|
|
3834
|
+
lu.value ? (T(), x("g", dn, [(T(!0), x(v, null, D(uu.value, (e) => (T(), x("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3861
3835
|
S("line", {
|
|
3862
3836
|
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(e.x) : J.value.left,
|
|
3863
|
-
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(
|
|
3837
|
+
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(fu(e.x)) : J.value.right,
|
|
3864
3838
|
y1: A(_)(e.y),
|
|
3865
3839
|
y2: A(_)(e.y),
|
|
3866
3840
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
@@ -3881,7 +3855,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3881
3855
|
style: { "pointer-events": "none" }
|
|
3882
3856
|
}, null, 8, pn),
|
|
3883
3857
|
S("circle", {
|
|
3884
|
-
cx: A(_)(
|
|
3858
|
+
cx: A(_)(fu(e.x)),
|
|
3885
3859
|
cy: A(_)(e.y),
|
|
3886
3860
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3887
3861
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
@@ -3912,9 +3886,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3912
3886
|
key: 6,
|
|
3913
3887
|
ref_key: "scaleLabels",
|
|
3914
3888
|
ref: Pi,
|
|
3915
|
-
opacity:
|
|
3889
|
+
opacity: lu.value ? .2 : 1,
|
|
3916
3890
|
style: { transition: "opacity 0.2s" }
|
|
3917
|
-
}, [H.value.useIndividualScale ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(
|
|
3891
|
+
}, [H.value.useIndividualScale ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(gl.value, (e) => (T(), x("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [S("line", {
|
|
3918
3892
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3919
3893
|
x2: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3920
3894
|
y1: H.value.isStacked ? A(_)(J.value?.bottom - e.yOffset - e.individualHeight) : A(_)(J.value?.top),
|
|
@@ -3923,12 +3897,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3923
3897
|
"stroke-width": V.value.chart.grid.stroke,
|
|
3924
3898
|
"stroke-linecap": "round",
|
|
3925
3899
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3926
|
-
}, null, 12, _n)]))), 128)), (T(!0), x(v, null, D(
|
|
3900
|
+
}, null, 12, _n)]))), 128)), (T(!0), x(v, null, D(gl.value, (e) => (T(), x("g", {
|
|
3927
3901
|
key: `individual_scale_label_${e.groupId || e.id}`,
|
|
3928
3902
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3929
3903
|
}, [
|
|
3930
3904
|
S("text", {
|
|
3931
|
-
class: C({ "vue-data-ui-transition": A(
|
|
3905
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
3932
3906
|
fill: e.color,
|
|
3933
3907
|
"font-size": B.value.dataLabels * .8,
|
|
3934
3908
|
"text-anchor": "middle",
|
|
@@ -3946,7 +3920,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3946
3920
|
style: { animation: "none !important" }
|
|
3947
3921
|
}, null, 8, yn)) : b("", !0)], 64))), 128)),
|
|
3948
3922
|
(T(!0), x(v, null, D(e.yLabels, (t, n) => (T(), x("text", {
|
|
3949
|
-
class: C({ "vue-data-ui-transition": A(
|
|
3923
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
3950
3924
|
key: `individual_scale_y_label_${e.groupId || e.id}_${t.value}_${n}`,
|
|
3951
3925
|
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${A(_)(t.y) + B.value.dataLabels / 3})`,
|
|
3952
3926
|
"text-anchor": q.value ? "start" : "end",
|
|
@@ -3961,7 +3935,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3961
3935
|
datapoint: t.datapoint,
|
|
3962
3936
|
seriesIndex: n
|
|
3963
3937
|
})), 11, bn))), 128))
|
|
3964
|
-
], 4))), 128))], 64)) : (T(!0), x(v, { key: 1 }, D(
|
|
3938
|
+
], 4))), 128))], 64)) : (T(!0), x(v, { key: 1 }, D(Bc.value, (e, t) => (T(), x("g", { key: `yLabel_${t}` }, [A(Ct)(e) && e.value >= W.value.min && e.value <= W.value.max && V.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), x("line", {
|
|
3965
3939
|
key: 0,
|
|
3966
3940
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3967
3941
|
x2: q.value ? J.value?.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value?.left - V.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -3973,7 +3947,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3973
3947
|
style: { animation: "none !important" }
|
|
3974
3948
|
}, null, 8, xn)) : b("", !0), e.value >= W.value.min && e.value <= W.value.max ? (T(), x("text", {
|
|
3975
3949
|
key: 1,
|
|
3976
|
-
class: C({ "vue-data-ui-transition": A(
|
|
3950
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
3977
3951
|
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(p)(e.y + B.value.dataLabels / 3)})`,
|
|
3978
3952
|
"font-size": B.value.dataLabels,
|
|
3979
3953
|
"text-anchor": q.value ? "start" : "end",
|
|
@@ -3984,8 +3958,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
3984
3958
|
s: e.suffix,
|
|
3985
3959
|
r: V.value.chart.grid.labels.yAxis.rounding
|
|
3986
3960
|
})) : ""), 11, Sn)) : b("", !0)]))), 128))], 8, gn)) : b("", !0),
|
|
3987
|
-
|
|
3988
|
-
class: C({ "vue-data-ui-transition": A(
|
|
3961
|
+
lu.value ? (T(), x("g", Cn, [(T(!0), x(v, null, D(uu.value, (e) => (T(), x("text", {
|
|
3962
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
3989
3963
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
3990
3964
|
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(_)(e.y) + B.value.dataLabels / 3})`,
|
|
3991
3965
|
"font-size": B.value.dataLabels,
|
|
@@ -4005,8 +3979,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4005
3979
|
datapoint: e.serie,
|
|
4006
3980
|
seriesIndex: e.index
|
|
4007
3981
|
})), 11, wn))), 128))])) : b("", !0),
|
|
4008
|
-
|
|
4009
|
-
cx:
|
|
3982
|
+
du.value ? (T(), x("g", Tn, [S("circle", {
|
|
3983
|
+
cx: cu.value,
|
|
4010
3984
|
cy: A(_)(J.value?.bottom),
|
|
4011
3985
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
4012
3986
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
@@ -4037,11 +4011,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4037
4011
|
x: A(p)(r.x),
|
|
4038
4012
|
y: A(p)(r.y)
|
|
4039
4013
|
},
|
|
4040
|
-
radius:
|
|
4014
|
+
radius: pu(e, r, i) ? (ka.value.plot || 6) * 1.5 : (Hc(e.plots, i), ka.value.plot || 6),
|
|
4041
4015
|
stroke: V.value.plot.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
4042
4016
|
strokeWidth: V.value.plot.dot.strokeWidth,
|
|
4043
|
-
transition: A(
|
|
4044
|
-
still:
|
|
4017
|
+
transition: A(Ba) || cs.value || !V.value.plot.showTransition ? void 0 : `all ${V.value.plot.transitionDurationMs}ms ease-in-out`,
|
|
4018
|
+
still: cs.value
|
|
4045
4019
|
}, null, 8, [
|
|
4046
4020
|
"shape",
|
|
4047
4021
|
"color",
|
|
@@ -4077,7 +4051,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4077
4051
|
stroke: V.value.chart.backgroundColor,
|
|
4078
4052
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4079
4053
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4080
|
-
style: w({ transition:
|
|
4054
|
+
style: w({ transition: Jc() })
|
|
4081
4055
|
}, null, 12, kn))), 128)) : (T(!0), x(v, { key: 1 }, D(e.dashedStraight, (t, n) => (T(), x("path", {
|
|
4082
4056
|
key: `line_coating_straight_segment_${e.id}_${n}`,
|
|
4083
4057
|
fill: "none",
|
|
@@ -4087,7 +4061,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4087
4061
|
stroke: V.value.chart.backgroundColor,
|
|
4088
4062
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4089
4063
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4090
|
-
style: w({ transition:
|
|
4064
|
+
style: w({ transition: Jc() })
|
|
4091
4065
|
}, null, 12, An))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (T(), x("path", {
|
|
4092
4066
|
key: 1,
|
|
4093
4067
|
d: `M${e.curve}`,
|
|
@@ -4097,7 +4071,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4097
4071
|
fill: "none",
|
|
4098
4072
|
"stroke-linecap": "round",
|
|
4099
4073
|
"stroke-linejoin": "round",
|
|
4100
|
-
style: w({ transition:
|
|
4074
|
+
style: w({ transition: Jc() })
|
|
4101
4075
|
}, null, 12, jn)) : e.plots.length > 1 && e.straight ? (T(), x("path", {
|
|
4102
4076
|
key: 2,
|
|
4103
4077
|
d: `M${e.straight}`,
|
|
@@ -4107,21 +4081,21 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4107
4081
|
fill: "none",
|
|
4108
4082
|
"stroke-linecap": "round",
|
|
4109
4083
|
"stroke-linejoin": "round",
|
|
4110
|
-
style: w({ transition:
|
|
4084
|
+
style: w({ transition: Jc() })
|
|
4111
4085
|
}, null, 12, Mn)) : b("", !0)], 6))), 128)),
|
|
4112
|
-
t.$slots.pattern ? (T(), x("defs", Nn, [(T(!0), x(v, null, D(
|
|
4086
|
+
t.$slots.pattern ? (T(), x("defs", Nn, [(T(!0), x(v, null, D(bo.value, (e, n) => O(t.$slots, "pattern", ut({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
4113
4087
|
...e,
|
|
4114
4088
|
seriesIndex: e.slotAbsoluteIndex,
|
|
4115
4089
|
patternId: `pattern_${F.value}_${n}`
|
|
4116
4090
|
}), void 0, !0)), 128))])) : b("", !0),
|
|
4117
|
-
|
|
4091
|
+
_l.value.length && !H.value.isStacked ? (T(), x("g", Pn, [(T(!0), x(v, null, D(_l.value, (e) => (T(), x("path", {
|
|
4118
4092
|
key: e.key,
|
|
4119
4093
|
d: e.d,
|
|
4120
4094
|
fill: e.color,
|
|
4121
4095
|
"fill-opacity": V.value.line.interLine.fillOpacity,
|
|
4122
4096
|
stroke: "none",
|
|
4123
4097
|
"pointer-events": "none",
|
|
4124
|
-
style: w({ transition:
|
|
4098
|
+
style: w({ transition: Jc() })
|
|
4125
4099
|
}, null, 12, Fn))), 128))])) : b("", !0),
|
|
4126
4100
|
(T(!0), x(v, null, D(Q.value, (e, n) => (T(), x("g", {
|
|
4127
4101
|
key: `serie_line_above_${e.id}`,
|
|
@@ -4132,22 +4106,22 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4132
4106
|
key: 0,
|
|
4133
4107
|
d: r,
|
|
4134
4108
|
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(i)(e.color, V.value.line.area.opacity),
|
|
4135
|
-
style: w({ transition:
|
|
4109
|
+
style: w({ transition: Jc() })
|
|
4136
4110
|
}, null, 12, Ln)) : b("", !0), t.$slots.pattern && r ? (T(), x("path", {
|
|
4137
4111
|
key: 1,
|
|
4138
4112
|
d: r,
|
|
4139
4113
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4140
|
-
style: w({ transition:
|
|
4114
|
+
style: w({ transition: Jc() })
|
|
4141
4115
|
}, null, 12, Rn)) : b("", !0)], 64))), 128)) : (T(!0), x(v, { key: 1 }, D(e.area.split(";"), (r, a) => (T(), x(v, { key: a }, [r ? (T(), x("path", {
|
|
4142
4116
|
key: 0,
|
|
4143
4117
|
d: `M${r}Z`,
|
|
4144
4118
|
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(i)(e.color, V.value.line.area.opacity),
|
|
4145
|
-
style: w({ transition:
|
|
4119
|
+
style: w({ transition: Jc() })
|
|
4146
4120
|
}, null, 12, zn)) : b("", !0), t.$slots.pattern && r ? (T(), x("path", {
|
|
4147
4121
|
key: 1,
|
|
4148
4122
|
d: `M${r}Z`,
|
|
4149
4123
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4150
|
-
style: w({ transition:
|
|
4124
|
+
style: w({ transition: Jc() })
|
|
4151
4125
|
}, null, 12, Bn)) : b("", !0)], 64))), 128))])) : b("", !0),
|
|
4152
4126
|
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (T(), x("path", {
|
|
4153
4127
|
key: 1,
|
|
@@ -4157,7 +4131,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4157
4131
|
"stroke-dasharray": e.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4158
4132
|
fill: "none",
|
|
4159
4133
|
"stroke-linecap": "round",
|
|
4160
|
-
style: w({ transition:
|
|
4134
|
+
style: w({ transition: Jc() })
|
|
4161
4135
|
}, null, 12, Vn)) : e.hasDashedSegments ? (T(), x(v, { key: 2 }, [e.smooth ? (T(!0), x(v, { key: 0 }, D(e.dashedSmooth, (t, r) => (T(), x("path", {
|
|
4162
4136
|
key: `line_smooth_segment_${e.id}_${r}`,
|
|
4163
4137
|
fill: "none",
|
|
@@ -4167,7 +4141,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4167
4141
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
4168
4142
|
"stroke-width": V.value.line.strokeWidth,
|
|
4169
4143
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4170
|
-
style: w({ transition:
|
|
4144
|
+
style: w({ transition: Jc() })
|
|
4171
4145
|
}, null, 12, Hn))), 128)) : (T(!0), x(v, { key: 1 }, D(e.dashedStraight, (t, r) => (T(), x("path", {
|
|
4172
4146
|
key: `line_straight_segment_${e.id}_${r}`,
|
|
4173
4147
|
fill: "none",
|
|
@@ -4177,7 +4151,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4177
4151
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
4178
4152
|
"stroke-width": V.value.line.strokeWidth,
|
|
4179
4153
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4180
|
-
style: w({ transition:
|
|
4154
|
+
style: w({ transition: Jc() })
|
|
4181
4155
|
}, null, 12, Un))), 128))], 64)) : e.plots.length > 1 && e.straight ? (T(), x("path", {
|
|
4182
4156
|
key: 3,
|
|
4183
4157
|
d: `M${e.straight}`,
|
|
@@ -4187,9 +4161,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4187
4161
|
fill: "none",
|
|
4188
4162
|
"stroke-linecap": "round",
|
|
4189
4163
|
"stroke-linejoin": "round",
|
|
4190
|
-
style: w({ transition:
|
|
4164
|
+
style: w({ transition: Jc() })
|
|
4191
4165
|
}, null, 12, Wn)) : b("", !0),
|
|
4192
|
-
(T(!0), x(v, null, D(e.plots, (r, i) => (T(), x(v, { key: `circle_line_${e.id}_${i}` }, [!
|
|
4166
|
+
(T(!0), x(v, null, D(e.plots, (r, i) => (T(), x(v, { key: `circle_line_${e.id}_${i}` }, [!ac.value.linePlot && r && A(Ct)(r.value) || ac.value.linePlot && r && A(Ct)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || Hc(e.plots, i) ? (T(), rt(Ye, {
|
|
4193
4167
|
key: 0,
|
|
4194
4168
|
shape: [
|
|
4195
4169
|
"triangle",
|
|
@@ -4204,11 +4178,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4204
4178
|
x: A(p)(r.x),
|
|
4205
4179
|
y: A(p)(r.y)
|
|
4206
4180
|
},
|
|
4207
|
-
radius:
|
|
4181
|
+
radius: pu(e, r, i) ? Aa.value || 0 : (Hc(e.plots, i), ka.value.line || 0),
|
|
4208
4182
|
stroke: V.value.line.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
4209
4183
|
strokeWidth: V.value.line.dot.strokeWidth,
|
|
4210
|
-
transition: A(
|
|
4211
|
-
still:
|
|
4184
|
+
transition: A(Ba) || cs.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`,
|
|
4185
|
+
still: cs.value
|
|
4212
4186
|
}, null, 8, [
|
|
4213
4187
|
"shape",
|
|
4214
4188
|
"color",
|
|
@@ -4232,28 +4206,28 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4232
4206
|
datapointIndex: i
|
|
4233
4207
|
} }, void 0, !0)])], 8, Gn)) : b("", !0)], 64))), 128))
|
|
4234
4208
|
], 6))), 128)),
|
|
4235
|
-
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (T(), x("g", qn, [(T(!0), x(v, null, D(
|
|
4209
|
+
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (T(), x("g", qn, [(T(!0), x(v, null, D(gu.value, (e) => (T(), x("text", {
|
|
4236
4210
|
key: e.key,
|
|
4237
|
-
class: C({ "vue-data-ui-transition": A(
|
|
4238
|
-
"text-anchor":
|
|
4211
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
4212
|
+
"text-anchor": su({
|
|
4239
4213
|
plot: e.plot,
|
|
4240
4214
|
type: "bar"
|
|
4241
4215
|
}),
|
|
4242
4216
|
"font-size": B.value.plotLabels,
|
|
4243
|
-
transform:
|
|
4217
|
+
transform: au({ plot: e.plot }),
|
|
4244
4218
|
fill: V.value.bar.labels.color,
|
|
4245
4219
|
stroke: V.value.chart.backgroundColor,
|
|
4246
4220
|
"paint-order": "stroke",
|
|
4247
4221
|
style: w(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1};`),
|
|
4248
|
-
innerHTML:
|
|
4222
|
+
innerHTML: iu({
|
|
4249
4223
|
serie: e.serie,
|
|
4250
4224
|
plot: e.plot,
|
|
4251
4225
|
type: "bar"
|
|
4252
4226
|
})
|
|
4253
|
-
}, null, 14, Jn))), 128)), (T(!0), x(v, null, D(
|
|
4227
|
+
}, null, 14, Jn))), 128)), (T(!0), x(v, null, D(ml.value, (e, t) => (T(), x(v, { key: `xLabel_bar_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_bar_${t}_${r}` }, [n && V.value.bar.serieName.show ? (T(), x("text", {
|
|
4254
4228
|
key: 0,
|
|
4255
|
-
class: C({ "vue-data-ui-transition": A(
|
|
4256
|
-
transform: `translate(${H.value.useIndividualScale && H.value.isStacked ? n.x +
|
|
4229
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
4230
|
+
transform: `translate(${H.value.useIndividualScale && H.value.isStacked ? n.x + js.value.line / 2 : n.x + Ms() * 1.1}, ${n.y + (n.value > 0 ? V.value.bar.serieName.offsetY : -V.value.bar.serieName.offsetY * 3)})`,
|
|
4257
4231
|
"text-anchor": "middle",
|
|
4258
4232
|
"font-size": B.value.plotLabels,
|
|
4259
4233
|
fill: V.value.bar.serieName.useSerieColor ? e.color : V.value.bar.serieName.color,
|
|
@@ -4263,14 +4237,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4263
4237
|
source: e.name,
|
|
4264
4238
|
length: V.value.bar.serieName.abbreviationSize
|
|
4265
4239
|
}) : e.name), 15, Yn)) : b("", !0)], 64))), 128))], 64))), 128))])) : b("", !0),
|
|
4266
|
-
V.value.plot.labels.show && H.value.dataLabels.show ? (T(), x("g", Xn, [(T(!0), x(v, null, D(
|
|
4240
|
+
V.value.plot.labels.show && H.value.dataLabels.show ? (T(), x("g", Xn, [(T(!0), x(v, null, D(_u.value, (e) => (T(), x("text", {
|
|
4267
4241
|
key: e.key,
|
|
4268
|
-
class: C({ "vue-data-ui-transition": A(
|
|
4269
|
-
transform:
|
|
4242
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
4243
|
+
transform: ou({
|
|
4270
4244
|
plot: e.plot,
|
|
4271
4245
|
type: "plot"
|
|
4272
4246
|
}),
|
|
4273
|
-
"text-anchor":
|
|
4247
|
+
"text-anchor": su({
|
|
4274
4248
|
plot: e.plot,
|
|
4275
4249
|
type: "plot"
|
|
4276
4250
|
}),
|
|
@@ -4279,7 +4253,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4279
4253
|
stroke: V.value.chart.backgroundColor,
|
|
4280
4254
|
"paint-order": "stroke",
|
|
4281
4255
|
style: w(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1}`),
|
|
4282
|
-
innerHTML:
|
|
4256
|
+
innerHTML: iu({
|
|
4283
4257
|
serie: e.serie,
|
|
4284
4258
|
plot: e.plot,
|
|
4285
4259
|
type: "plot"
|
|
@@ -4328,14 +4302,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4328
4302
|
serieName: e.name
|
|
4329
4303
|
})
|
|
4330
4304
|
}, null, 12, nr)], 12, tr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4331
|
-
V.value.line.labels.show && H.value.dataLabels.show ? (T(), x("g", ir, [(T(!0), x(v, null, D(
|
|
4305
|
+
V.value.line.labels.show && H.value.dataLabels.show ? (T(), x("g", ir, [(T(!0), x(v, null, D(vu.value, (e) => (T(), x("text", {
|
|
4332
4306
|
key: e.key,
|
|
4333
|
-
class: C({ "vue-data-ui-transition": A(
|
|
4334
|
-
transform:
|
|
4307
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
4308
|
+
transform: ou({
|
|
4335
4309
|
plot: e.plot,
|
|
4336
4310
|
type: "line"
|
|
4337
4311
|
}),
|
|
4338
|
-
"text-anchor":
|
|
4312
|
+
"text-anchor": su({
|
|
4339
4313
|
plot: e.plot,
|
|
4340
4314
|
type: "line"
|
|
4341
4315
|
}),
|
|
@@ -4344,7 +4318,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4344
4318
|
stroke: V.value.chart.backgroundColor,
|
|
4345
4319
|
"paint-order": "stroke",
|
|
4346
4320
|
style: w(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1};`),
|
|
4347
|
-
innerHTML:
|
|
4321
|
+
innerHTML: iu({
|
|
4348
4322
|
serie: e.serie,
|
|
4349
4323
|
plot: e.plot,
|
|
4350
4324
|
type: "line"
|
|
@@ -4462,7 +4436,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4462
4436
|
(T(!0), x(v, null, D([
|
|
4463
4437
|
...$.value,
|
|
4464
4438
|
...Q.value,
|
|
4465
|
-
...
|
|
4439
|
+
...ml.value
|
|
4466
4440
|
], (e, t) => (T(), x(v, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(A(h)(e.plots).trend) ? (T(), x("g", gr, [
|
|
4467
4441
|
S("defs", null, [S("marker", {
|
|
4468
4442
|
id: `progression_arrow_${t}`,
|
|
@@ -4483,8 +4457,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4483
4457
|
}, null, 8, vr)], 8, _r)]),
|
|
4484
4458
|
e.plots.length > 1 ? (T(), x("line", {
|
|
4485
4459
|
key: 0,
|
|
4486
|
-
x1: A(h)(e.plots).x1 + (e.type === "bar" ?
|
|
4487
|
-
x2: A(h)(e.plots).x2 + (e.type === "bar" ?
|
|
4460
|
+
x1: A(h)(e.plots).x1 + (e.type === "bar" ? Ms() : 0),
|
|
4461
|
+
x2: A(h)(e.plots).x2 + (e.type === "bar" ? Ms() : 0),
|
|
4488
4462
|
y1: A(_)(A(h)(e.plots).y1),
|
|
4489
4463
|
y2: A(_)(A(h)(e.plots).y2),
|
|
4490
4464
|
"stroke-width": 1,
|
|
@@ -4496,8 +4470,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4496
4470
|
}, null, 8, yr)) : b("", !0),
|
|
4497
4471
|
e.plots.length > 1 ? (T(), x("line", {
|
|
4498
4472
|
key: 1,
|
|
4499
|
-
x1: A(h)(e.plots).x1 + (e.type === "bar" ?
|
|
4500
|
-
x2: A(h)(e.plots).x2 + (e.type === "bar" ?
|
|
4473
|
+
x1: A(h)(e.plots).x1 + (e.type === "bar" ? Ms() : 0),
|
|
4474
|
+
x2: A(h)(e.plots).x2 + (e.type === "bar" ? Ms() : 0),
|
|
4501
4475
|
y1: A(_)(A(h)(e.plots).y1),
|
|
4502
4476
|
y2: A(_)(A(h)(e.plots).y2),
|
|
4503
4477
|
"stroke-width": 1,
|
|
@@ -4509,9 +4483,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4509
4483
|
}, null, 8, br)) : b("", !0),
|
|
4510
4484
|
e.plots.length > 1 ? (T(), x("text", {
|
|
4511
4485
|
key: 2,
|
|
4512
|
-
class: C({ "vue-data-ui-transition": A(
|
|
4486
|
+
class: C({ "vue-data-ui-transition": A(Pa) }),
|
|
4513
4487
|
"text-anchor": "middle",
|
|
4514
|
-
transform: `translate(${A(h)(e.plots).x2 + (e.type === "bar" ?
|
|
4488
|
+
transform: `translate(${A(h)(e.plots).x2 + (e.type === "bar" ? Ms() : 0)}, ${A(h)(e.plots).y2 - 12})`,
|
|
4515
4489
|
"font-size": B.value.plotLabels,
|
|
4516
4490
|
fill: e.color,
|
|
4517
4491
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4525,7 +4499,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4525
4499
|
r: 2
|
|
4526
4500
|
})), 11, xr)) : b("", !0)
|
|
4527
4501
|
])) : b("", !0)], 64))), 128)),
|
|
4528
|
-
H.value.useIndividualScale && !H.value.isStacked ? (T(), x(v, { key: 16 }, [S("defs", null, [(T(!0), x(v, null, D(
|
|
4502
|
+
H.value.useIndividualScale && !H.value.isStacked ? (T(), x(v, { key: 16 }, [S("defs", null, [(T(!0), x(v, null, D(gl.value, (e, t) => (T(), rt(Ze, {
|
|
4529
4503
|
t: "linear",
|
|
4530
4504
|
key: `individual_scale_gradient_${e.groupId || e.id || t}`,
|
|
4531
4505
|
id: `individual_scale_gradient_${F.value}_${t}`,
|
|
@@ -4547,7 +4521,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4547
4521
|
"x1",
|
|
4548
4522
|
"x2",
|
|
4549
4523
|
"stops"
|
|
4550
|
-
]))), 128))]), (T(!0), x(v, null, D(
|
|
4524
|
+
]))), 128))]), (T(!0), x(v, null, D(gl.value, (e, t) => (T(), x("rect", {
|
|
4551
4525
|
key: `individual_scale_background_${e.groupId || e.id || t}`,
|
|
4552
4526
|
x: q.value ? e.x : e.x - V.value.chart.grid.labels.yAxis.labelWidth - J.value.individualOffsetX,
|
|
4553
4527
|
y: J.value?.top,
|
|
@@ -4580,26 +4554,26 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4580
4554
|
key: 17,
|
|
4581
4555
|
ref_key: "timeLabelsEls",
|
|
4582
4556
|
ref: Ni,
|
|
4583
|
-
opacity:
|
|
4557
|
+
opacity: lu.value ? .1 : 1,
|
|
4584
4558
|
style: { transition: "opacity 0.2s" }
|
|
4585
|
-
}, [t.$slots["time-label"] ? (T(!0), x(v, { key: 0 }, D(
|
|
4586
|
-
x:
|
|
4559
|
+
}, [t.$slots["time-label"] ? (T(!0), x(v, { key: 0 }, D(Zc.value, (e, n) => O(t.$slots, "time-label", ut({ ref_for: !0 }, {
|
|
4560
|
+
x: Qc(e, n),
|
|
4587
4561
|
y: J.value?.bottom,
|
|
4588
4562
|
fontSize: B.value.xAxis,
|
|
4589
4563
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4590
|
-
transform: `translate(${
|
|
4564
|
+
transform: `translate(${Qc(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.3 + V.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4591
4565
|
absoluteIndex: e.absoluteIndex,
|
|
4592
4566
|
content: e.text,
|
|
4593
4567
|
textAnchor: V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4594
4568
|
show: e && e.text
|
|
4595
|
-
}), void 0, !0, `time_label_${e.id}`)), 128)) : (T(!0), x(v, { key: 1 }, D(
|
|
4569
|
+
}), void 0, !0, `time_label_${e.id}`)), 128)) : (T(!0), x(v, { key: 1 }, D(Zc.value, (e, t) => (T(), x("g", { key: `time_label_${t}` }, [e && e.text ? (T(), x(v, { key: 0 }, [String(e.text).includes("\n") ? (T(), x("text", {
|
|
4596
4570
|
key: 1,
|
|
4597
4571
|
class: "vue-data-ui-time-label",
|
|
4598
4572
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4599
4573
|
"font-size": B.value.xAxis,
|
|
4600
4574
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4601
|
-
transform: `translate(${
|
|
4602
|
-
style: w({ cursor:
|
|
4575
|
+
transform: `translate(${Qc(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4576
|
+
style: w({ cursor: Po() && Fa.value ? "pointer" : "default" }),
|
|
4603
4577
|
innerHTML: A(c)({
|
|
4604
4578
|
content: String(e.text),
|
|
4605
4579
|
fontSize: B.value.xAxis,
|
|
@@ -4607,23 +4581,23 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4607
4581
|
x: 0,
|
|
4608
4582
|
y: 0
|
|
4609
4583
|
}),
|
|
4610
|
-
onClick: (n) =>
|
|
4584
|
+
onClick: (n) => Yo(e, t)
|
|
4611
4585
|
}, null, 12, Dr)) : (T(), x("text", {
|
|
4612
4586
|
key: 0,
|
|
4613
4587
|
class: "vue-data-ui-time-label",
|
|
4614
4588
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4615
4589
|
"font-size": B.value.xAxis,
|
|
4616
4590
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4617
|
-
transform: `translate(${
|
|
4618
|
-
style: w({ cursor:
|
|
4619
|
-
onClick: (n) =>
|
|
4591
|
+
transform: `translate(${Qc(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4592
|
+
style: w({ cursor: Po() && Fa.value ? "pointer" : "default" }),
|
|
4593
|
+
onClick: (n) => Yo(e, t)
|
|
4620
4594
|
}, k(e.text || ""), 13, Er))], 64)) : b("", !0)]))), 128))], 8, Tr)) : b("", !0),
|
|
4621
|
-
|
|
4595
|
+
du.value ? (T(), x("g", Or, [S("text", {
|
|
4622
4596
|
class: "vue-data-ui-time-label",
|
|
4623
4597
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4624
4598
|
"font-size": B.value.xAxis,
|
|
4625
4599
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4626
|
-
transform: `translate(${
|
|
4600
|
+
transform: `translate(${du.value.x}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4627
4601
|
"font-weight": "bold",
|
|
4628
4602
|
style: {
|
|
4629
4603
|
transition: "none !important",
|
|
@@ -4631,14 +4605,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4631
4605
|
"pointer-events": "none"
|
|
4632
4606
|
},
|
|
4633
4607
|
innerHTML: A(c)({
|
|
4634
|
-
content: String(
|
|
4608
|
+
content: String(du.value.text),
|
|
4635
4609
|
fontSize: B.value.xAxis,
|
|
4636
4610
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4637
4611
|
x: 0,
|
|
4638
4612
|
y: 0
|
|
4639
4613
|
})
|
|
4640
4614
|
}, null, 8, kr)])) : b("", !0),
|
|
4641
|
-
|
|
4615
|
+
Vc.value.length && !H.value.isStacked ? (T(), x("g", Ar, [(T(!0), x(v, null, D(Vc.value, (e) => (T(), x("g", { key: e.id }, [
|
|
4642
4616
|
e.yTop && e.show && isFinite(e.yTop) ? (T(), x("line", {
|
|
4643
4617
|
key: 0,
|
|
4644
4618
|
x1: e.x1,
|
|
@@ -4682,53 +4656,53 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4682
4656
|
e.config.label.text && e.show && isFinite(e._text.y) ? (T(), x("text", {
|
|
4683
4657
|
key: 4,
|
|
4684
4658
|
id: e.id,
|
|
4685
|
-
class: C(["vue-ui-xy-annotation-label", { "vue-data-ui-transition": A(
|
|
4659
|
+
class: C(["vue-ui-xy-annotation-label", { "vue-data-ui-transition": A(Pa) }]),
|
|
4686
4660
|
transform: `translate(${e._text.x}, ${e._text.y})`,
|
|
4687
4661
|
"font-size": e.config.label.fontSize,
|
|
4688
4662
|
fill: e.config.label.color,
|
|
4689
4663
|
"text-anchor": e.config.label.textAnchor
|
|
4690
4664
|
}, k(e.config.label.text), 11, Pr)) : b("", !0)
|
|
4691
4665
|
]))), 128))])) : b("", !0),
|
|
4692
|
-
!
|
|
4693
|
-
x:
|
|
4666
|
+
!lu.value && V.value.chart.timeTag.show && (G.value ? A(a)(Zl.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (T(), x("g", Fr, [(T(), x("foreignObject", {
|
|
4667
|
+
x: $l(),
|
|
4694
4668
|
y: J.value?.bottom,
|
|
4695
4669
|
width: "200",
|
|
4696
4670
|
height: "40",
|
|
4697
4671
|
style: { overflow: "visible !important" }
|
|
4698
4672
|
}, [S("div", {
|
|
4699
4673
|
ref_key: "timeTagEl",
|
|
4700
|
-
ref:
|
|
4674
|
+
ref: Jl,
|
|
4701
4675
|
class: "vue-ui-xy-time-tag",
|
|
4702
4676
|
style: w(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${V.value.chart.timeTag.backgroundColor};color:${V.value.chart.timeTag.color};font-size:${V.value.chart.timeTag.fontSize}px`),
|
|
4703
|
-
innerHTML:
|
|
4677
|
+
innerHTML: ru.value
|
|
4704
4678
|
}, null, 12, Lr)], 8, Ir)), S("circle", {
|
|
4705
|
-
cx: G.value && A(a)(
|
|
4679
|
+
cx: G.value && A(a)(Zl.value) ? $c({ x: Zl.value }) : pc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
|
|
4706
4680
|
cy: J.value?.bottom,
|
|
4707
4681
|
r: V.value.chart.timeTag.circleMarker.radius,
|
|
4708
4682
|
fill: V.value.chart.timeTag.circleMarker.color
|
|
4709
4683
|
}, null, 8, Rr)])) : b("", !0)
|
|
4710
4684
|
])) : b("", !0),
|
|
4711
|
-
|
|
4685
|
+
Xa.value ? (T(), x("rect", ut({ key: 2 }, $a.value, {
|
|
4712
4686
|
"data-start": U.value.start,
|
|
4713
4687
|
"data-end": U.value.end
|
|
4714
4688
|
}), null, 16, zr)) : b("", !0),
|
|
4715
4689
|
O(t.$slots, "svg", { svg: {
|
|
4716
|
-
...
|
|
4690
|
+
...Ta.value,
|
|
4717
4691
|
slicer: U.value,
|
|
4718
|
-
isPrintingImg: A(
|
|
4719
|
-
isPrintingSvg:
|
|
4692
|
+
isPrintingImg: A(eo) || A(to) || A(ku),
|
|
4693
|
+
isPrintingSvg: A(Au),
|
|
4720
4694
|
data: [
|
|
4721
4695
|
...Q.value,
|
|
4722
|
-
...
|
|
4696
|
+
...ml.value,
|
|
4723
4697
|
...$.value
|
|
4724
4698
|
],
|
|
4725
4699
|
drawingArea: J.value
|
|
4726
4700
|
} }, void 0, !0)
|
|
4727
4701
|
], 512)], 46, Lt)), t.$slots.hint ? (T(), x("div", Br, [O(t.$slots, "hint", ft(lt({
|
|
4728
4702
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
4729
|
-
isVisible:
|
|
4703
|
+
isVisible: Pu.value
|
|
4730
4704
|
})), void 0, !0)])) : b("", !0)]),
|
|
4731
|
-
t.$slots.watermark ? (T(), x("div", Vr, [O(t.$slots, "watermark", ft(lt({ isPrinting: A(
|
|
4705
|
+
t.$slots.watermark ? (T(), x("div", Vr, [O(t.$slots, "watermark", ft(lt({ isPrinting: A(eo) || A(to) || A(ku) || A(Au) })), void 0, !0)])) : b("", !0),
|
|
4732
4706
|
(T(!0), x(v, null, D(Q.value, (e, t) => (T(), x(v, { key: `tag_line_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `tag_line_${t}_${r}` }, [[
|
|
4733
4707
|
I.value,
|
|
4734
4708
|
R.value,
|
|
@@ -4736,7 +4710,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4736
4710
|
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (T(), x("div", {
|
|
4737
4711
|
key: 0,
|
|
4738
4712
|
ref_for: !0,
|
|
4739
|
-
ref: (e) =>
|
|
4713
|
+
ref: (e) => Lo(t, r, e, "right", "line"),
|
|
4740
4714
|
class: "vue-ui-xy-tag",
|
|
4741
4715
|
"data-tag": "right",
|
|
4742
4716
|
style: w({
|
|
@@ -4781,7 +4755,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4781
4755
|
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (T(), x("div", {
|
|
4782
4756
|
key: 1,
|
|
4783
4757
|
ref_for: !0,
|
|
4784
|
-
ref: (e) =>
|
|
4758
|
+
ref: (e) => Lo(t, r, e, "left", "line"),
|
|
4785
4759
|
class: "vue-ui-xy-tag",
|
|
4786
4760
|
"data-tag": "left",
|
|
4787
4761
|
style: w({
|
|
@@ -4827,7 +4801,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4827
4801
|
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (T(), x("div", {
|
|
4828
4802
|
key: 0,
|
|
4829
4803
|
ref_for: !0,
|
|
4830
|
-
ref: (e) =>
|
|
4804
|
+
ref: (e) => Lo(t, r, e, "right", "plot"),
|
|
4831
4805
|
class: "vue-ui-xy-tag",
|
|
4832
4806
|
"data-tag": "right",
|
|
4833
4807
|
style: w({
|
|
@@ -4872,7 +4846,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4872
4846
|
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (T(), x("div", {
|
|
4873
4847
|
key: 1,
|
|
4874
4848
|
ref_for: !0,
|
|
4875
|
-
ref: (e) =>
|
|
4849
|
+
ref: (e) => Lo(t, r, e, "left", "plot"),
|
|
4876
4850
|
class: "vue-ui-xy-tag",
|
|
4877
4851
|
"data-tag": "left",
|
|
4878
4852
|
style: w({
|
|
@@ -4911,12 +4885,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4911
4885
|
serieName: e.name
|
|
4912
4886
|
})
|
|
4913
4887
|
}, null, 8, $r)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4914
|
-
V.value.chart.zoom.show &&
|
|
4888
|
+
V.value.chart.zoom.show && Ja.value > 6 && Na.value && rs.value ? (T(), rt(Qe, {
|
|
4915
4889
|
key: 6,
|
|
4916
4890
|
ref_key: "chartSlicer",
|
|
4917
4891
|
ref: Ei,
|
|
4918
4892
|
uuid: F.value,
|
|
4919
|
-
allMinimaps:
|
|
4893
|
+
allMinimaps: Rc.value,
|
|
4920
4894
|
background: V.value.chart.zoom.color,
|
|
4921
4895
|
borderColor: V.value.chart.backgroundColor,
|
|
4922
4896
|
customFormat: V.value.chart.zoom.customFormat,
|
|
@@ -4930,14 +4904,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4930
4904
|
useResetSlot: V.value.chart.zoom.useResetSlot,
|
|
4931
4905
|
immediate: !V.value.chart.zoom.preview.enable,
|
|
4932
4906
|
inputColor: V.value.chart.zoom.color,
|
|
4933
|
-
isPreview:
|
|
4907
|
+
isPreview: Xa.value,
|
|
4934
4908
|
labelLeft: Y.value[0] ? Y.value[0].text : "",
|
|
4935
4909
|
labelRight: Y.value.at(-1) ? Y.value.at(-1).text : "",
|
|
4936
|
-
max:
|
|
4937
|
-
min:
|
|
4910
|
+
max: nl.value,
|
|
4911
|
+
min: tl.value,
|
|
4938
4912
|
precision: G.value ? V.value.chart.grid.labels.xAxis.rounding : 0,
|
|
4939
4913
|
useValueRange: G.value,
|
|
4940
|
-
minimap:
|
|
4914
|
+
minimap: Lc.value,
|
|
4941
4915
|
minimapCompact: V.value.chart.zoom.minimap.compact,
|
|
4942
4916
|
minimapFrameColor: V.value.chart.zoom.minimap.frameColor,
|
|
4943
4917
|
minimapIndicatorColor: V.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -4945,17 +4919,17 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4945
4919
|
minimapMerged: V.value.chart.zoom.minimap.merged,
|
|
4946
4920
|
minimapSelectedColor: V.value.chart.zoom.minimap.selectedColor,
|
|
4947
4921
|
minimapSelectedColorOpacity: V.value.chart.zoom.minimap.selectedColorOpacity,
|
|
4948
|
-
minimapSelectedIndex: G.value ?
|
|
4922
|
+
minimapSelectedIndex: G.value ? ca.value : R.value ?? I.value,
|
|
4949
4923
|
minimapSelectionRadius: V.value.chart.zoom.minimap.selectionRadius,
|
|
4950
|
-
preciseLabels:
|
|
4951
|
-
refreshStartPoint: G.value ?
|
|
4952
|
-
refreshEndPoint: G.value ?
|
|
4924
|
+
preciseLabels: Sl.value.length ? Sl.value : Uo.value,
|
|
4925
|
+
refreshStartPoint: G.value ? tl.value : V.value.chart.zoom.startIndex === null ? 0 : V.value.chart.zoom.startIndex,
|
|
4926
|
+
refreshEndPoint: G.value ? nl.value : V.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Wa(e.series).length)) : V.value.chart.zoom.endIndex + 1,
|
|
4953
4927
|
selectColor: V.value.chart.zoom.highlightColor,
|
|
4954
|
-
selectedSeries:
|
|
4928
|
+
selectedSeries: zc.value,
|
|
4955
4929
|
smoothMinimap: V.value.chart.zoom.minimap.smooth,
|
|
4956
4930
|
start: U.value.start,
|
|
4957
4931
|
textColor: V.value.chart.color,
|
|
4958
|
-
timeLabels:
|
|
4932
|
+
timeLabels: Uo.value,
|
|
4959
4933
|
usePreciseLabels: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.zoom.useDefaultFormat,
|
|
4960
4934
|
valueEnd: U.value.end,
|
|
4961
4935
|
valueStart: U.value.start,
|
|
@@ -4972,14 +4946,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4972
4946
|
handleBorderColor: V.value.chart.zoom.minimap.handleBorderColor,
|
|
4973
4947
|
handleFill: V.value.chart.zoom.minimap.handleFill,
|
|
4974
4948
|
handleWidth: V.value.chart.zoom.minimap.handleWidth,
|
|
4975
|
-
isCursorPointer:
|
|
4976
|
-
onFutureEnd: n[1] ||= (e) =>
|
|
4977
|
-
onFutureStart: n[2] ||= (e) =>
|
|
4978
|
-
onReset:
|
|
4979
|
-
onTrapMouse:
|
|
4980
|
-
onTrapMouseValue:
|
|
4981
|
-
"onUpdate:end":
|
|
4982
|
-
"onUpdate:start":
|
|
4949
|
+
isCursorPointer: Fa.value,
|
|
4950
|
+
onFutureEnd: n[1] ||= (e) => Za("end", e),
|
|
4951
|
+
onFutureStart: n[2] ||= (e) => Za("start", e),
|
|
4952
|
+
onReset: _s,
|
|
4953
|
+
onTrapMouse: Xo,
|
|
4954
|
+
onTrapMouseValue: Zo,
|
|
4955
|
+
"onUpdate:end": gs,
|
|
4956
|
+
"onUpdate:start": hs
|
|
4983
4957
|
}, {
|
|
4984
4958
|
"reset-action": j(({ reset: e }) => [O(t.$slots, "reset-action", ft(lt({ reset: e })), void 0, !0)]),
|
|
4985
4959
|
_: 3
|
|
@@ -4991,34 +4965,34 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
4991
4965
|
}, [S("div", {
|
|
4992
4966
|
ref_key: "chartLegend",
|
|
4993
4967
|
ref: Di
|
|
4994
|
-
}, [O(t.$slots, "legend", { legend:
|
|
4968
|
+
}, [O(t.$slots, "legend", { legend: xo.value }, () => [V.value.chart.legend.show ? (T(), x("div", {
|
|
4995
4969
|
key: 0,
|
|
4996
4970
|
class: "vue-ui-xy-legend",
|
|
4997
4971
|
style: w({ fontSize: `var(--legend-font-size, ${V.value.chart.legend.fontSize ?? 14}px)` })
|
|
4998
|
-
}, [V.value.chart.legend.selectAllToggle.show &&
|
|
4972
|
+
}, [V.value.chart.legend.selectAllToggle.show && xo.value.length > 2 && !A(Ba) ? (T(), rt(et, {
|
|
4999
4973
|
key: 0,
|
|
5000
4974
|
backgroundColor: V.value.chart.legend.selectAllToggle.backgroundColor,
|
|
5001
4975
|
color: V.value.chart.legend.selectAllToggle.color,
|
|
5002
4976
|
fontSize: V.value.chart.legend.fontSize,
|
|
5003
4977
|
checked: Ji.value.length > 0,
|
|
5004
|
-
onToggle:
|
|
4978
|
+
onToggle: Zs
|
|
5005
4979
|
}, null, 8, [
|
|
5006
4980
|
"backgroundColor",
|
|
5007
4981
|
"color",
|
|
5008
4982
|
"fontSize",
|
|
5009
4983
|
"checked"
|
|
5010
|
-
])) : b("", !0), (T(!0), x(v, null, D(
|
|
4984
|
+
])) : b("", !0), (T(!0), x(v, null, D(xo.value, (e, n) => (T(), x("div", {
|
|
5011
4985
|
key: `div_legend_item_${n}`,
|
|
5012
|
-
onClick: (t) =>
|
|
5013
|
-
onKeydown: (t) =>
|
|
4986
|
+
onClick: (t) => ec(e),
|
|
4987
|
+
onKeydown: (t) => Qs(t, e),
|
|
5014
4988
|
role: "button",
|
|
5015
4989
|
tabindex: "0",
|
|
5016
4990
|
class: C({
|
|
5017
|
-
"vue-ui-xy-legend-item-alone":
|
|
4991
|
+
"vue-ui-xy-legend-item-alone": xo.value.length === 1,
|
|
5018
4992
|
"vue-ui-xy-legend-item": !0,
|
|
5019
4993
|
"vue-ui-xy-legend-item-segregated": Yi.value.has(e.id)
|
|
5020
4994
|
}),
|
|
5021
|
-
style: w({ cursor:
|
|
4995
|
+
style: w({ cursor: Fa.value ? "pointer" : "default" })
|
|
5022
4996
|
}, [Ui.value[e.type] === "line" ? (T(), x("svg", ni, [S("rect", {
|
|
5023
4997
|
x: "0",
|
|
5024
4998
|
y: "7.5",
|
|
@@ -5103,19 +5077,19 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
5103
5077
|
offsetX: V.value.chart.tooltip.offsetX,
|
|
5104
5078
|
offsetY: V.value.chart.tooltip.offsetY,
|
|
5105
5079
|
parent: t.$refs.chart,
|
|
5106
|
-
content:
|
|
5080
|
+
content: Dl.value,
|
|
5107
5081
|
isFullscreen: Gi.value,
|
|
5108
5082
|
isCustom: V.value.chart.tooltip.customFormat && typeof V.value.chart.tooltip.customFormat == "function",
|
|
5109
5083
|
smooth: V.value.chart.tooltip.smooth,
|
|
5110
5084
|
backdropFilter: V.value.chart.tooltip.backdropFilter,
|
|
5111
5085
|
smoothForce: V.value.chart.tooltip.smoothForce,
|
|
5112
5086
|
smoothSnapThreshold: V.value.chart.tooltip.smoothSnapThreshold,
|
|
5113
|
-
isA11yMode:
|
|
5114
|
-
a11yPosition:
|
|
5087
|
+
isA11yMode: la.value != null,
|
|
5088
|
+
a11yPosition: ua.value
|
|
5115
5089
|
}, {
|
|
5116
|
-
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", ft(lt({ ...
|
|
5117
|
-
tooltip: j(() => [O(t.$slots, "tooltip", ft(lt({ ...
|
|
5118
|
-
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", ft(lt({ ...
|
|
5090
|
+
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", ft(lt({ ...vl.value })), void 0, !0)]),
|
|
5091
|
+
tooltip: j(() => [O(t.$slots, "tooltip", ft(lt({ ...vl.value })), void 0, !0)]),
|
|
5092
|
+
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", ft(lt({ ...vl.value })), void 0, !0)]),
|
|
5119
5093
|
_: 3
|
|
5120
5094
|
}, 8, [
|
|
5121
5095
|
"teleportTo",
|
|
@@ -5141,34 +5115,34 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
5141
5115
|
"isA11yMode",
|
|
5142
5116
|
"a11yPosition"
|
|
5143
5117
|
]),
|
|
5144
|
-
|
|
5118
|
+
Na.value && V.value.chart.userOptions.buttons.table ? (T(), rt(ht(Cu.value.component), ut({ key: 9 }, Cu.value.props, {
|
|
5145
5119
|
ref_key: "tableUnit",
|
|
5146
5120
|
ref: sa,
|
|
5147
|
-
onClose:
|
|
5121
|
+
onClose: wu
|
|
5148
5122
|
}), it({
|
|
5149
|
-
content: j(() => [S("div", { style: w(`${A(
|
|
5123
|
+
content: j(() => [S("div", { style: w(`${A(eo) || V.value.table.useDialog ? "" : "max-height:400px"};${V.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${V.value.table.useDialog ? "" : "margin-top:48px"}`) }, [S("div", ci, [St(S("input", {
|
|
5150
5124
|
type: "checkbox",
|
|
5151
5125
|
"onUpdate:modelValue": n[4] ||= (e) => $i.value = e
|
|
5152
5126
|
}, null, 512), [[yt, $i.value]]), S("div", {
|
|
5153
5127
|
onClick: n[5] ||= (e) => $i.value = !$i.value,
|
|
5154
|
-
style: w({ cursor:
|
|
5128
|
+
style: w({ cursor: Fa.value ? "pointer" : "default" })
|
|
5155
5129
|
}, [ot(A(pi), {
|
|
5156
5130
|
name: "chartLine",
|
|
5157
5131
|
size: 20,
|
|
5158
5132
|
stroke: V.value.chart.color
|
|
5159
5133
|
}, null, 8, ["stroke"])], 4)]), $i.value ? (T(), rt(A(mi), {
|
|
5160
5134
|
key: `sparkline_${ea.value}`,
|
|
5161
|
-
dataset:
|
|
5162
|
-
config:
|
|
5135
|
+
dataset: lc.value,
|
|
5136
|
+
config: uc.value
|
|
5163
5137
|
}, null, 8, ["dataset", "config"])) : (T(), rt(A(ui), {
|
|
5164
5138
|
key: `table_${Zi.value}`,
|
|
5165
|
-
colNames:
|
|
5166
|
-
head:
|
|
5167
|
-
body:
|
|
5168
|
-
config:
|
|
5169
|
-
title: V.value.table.useDialog ? "" :
|
|
5139
|
+
colNames: Ll.value.colNames,
|
|
5140
|
+
head: Ll.value.head,
|
|
5141
|
+
body: Ll.value.body,
|
|
5142
|
+
config: Ll.value.config,
|
|
5143
|
+
title: V.value.table.useDialog ? "" : Cu.value.title,
|
|
5170
5144
|
withCloseButton: !V.value.table.useDialog,
|
|
5171
|
-
onClose:
|
|
5145
|
+
onClose: wu
|
|
5172
5146
|
}, {
|
|
5173
5147
|
th: j(({ th: e }) => [S("div", { innerHTML: e }, null, 8, li)]),
|
|
5174
5148
|
td: j(({ td: e }) => [at(k(isNaN(Number(e)) ? e : A(pe)({
|
|
@@ -5189,23 +5163,23 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
|
|
|
5189
5163
|
_: 2
|
|
5190
5164
|
}, [V.value.table.useDialog ? {
|
|
5191
5165
|
name: "title",
|
|
5192
|
-
fn: j(() => [at(k(
|
|
5166
|
+
fn: j(() => [at(k(Cu.value.title), 1)]),
|
|
5193
5167
|
key: "0"
|
|
5194
5168
|
} : void 0, V.value.table.useDialog ? {
|
|
5195
5169
|
name: "actions",
|
|
5196
5170
|
fn: j(() => [S("button", {
|
|
5197
5171
|
tabindex: "0",
|
|
5198
5172
|
class: "vue-ui-user-options-button",
|
|
5199
|
-
onClick: n[3] ||= (e) =>
|
|
5173
|
+
onClick: n[3] ||= (e) => Rl(V.value.chart.userOptions.callbacks.csv)
|
|
5200
5174
|
}, [ot(A(pi), {
|
|
5201
5175
|
name: "fileCsv",
|
|
5202
|
-
stroke:
|
|
5176
|
+
stroke: Cu.value.props.color
|
|
5203
5177
|
}, null, 8, ["stroke"])])]),
|
|
5204
5178
|
key: "1"
|
|
5205
5179
|
} : void 0]), 1040)) : b("", !0),
|
|
5206
|
-
O(t.$slots, "skeleton", {}, () => [A(
|
|
5180
|
+
O(t.$slots, "skeleton", {}, () => [A(Ba) ? (T(), rt(ze, { key: 0 })) : b("", !0)], !0)
|
|
5207
5181
|
], 46, Nt));
|
|
5208
5182
|
}
|
|
5209
|
-
}, [["__scopeId", "data-v-
|
|
5183
|
+
}, [["__scopeId", "data-v-603bfdc1"]]);
|
|
5210
5184
|
//#endregion
|
|
5211
5185
|
export { Mt as n, M as t };
|