vue-data-ui 3.21.3 → 3.21.5
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/{A11yDataTable-BCbtxMU6.js → A11yDataTable-DdRsVULz.js} +1 -1
- package/dist/{BaseDraggableDialog-BvaFJWHb.js → BaseDraggableDialog-O8jn9Lvi.js} +2 -2
- package/dist/{BaseIcon-CbDazQLH.js → BaseIcon-CWXbczu_.js} +1 -1
- package/dist/{BaseLegendToggle-BNRi408o.js → BaseLegendToggle-CUYal8mC.js} +2 -2
- package/dist/{BaseScanner-Dr2a1Msy.js → BaseScanner-DZvpgOjM.js} +1 -1
- package/dist/{BaseZoomControls-Dbtq9oyx.js → BaseZoomControls-JwSGzoKi.js} +2 -2
- package/dist/{ColorPicker-B4ob7JgP.js → ColorPicker-CCqmzGGo.js} +2 -2
- package/dist/{DataTable-DweDyHc1.js → DataTable-G9aclxhk.js} +3 -3
- package/dist/{Legend-B3tdljl0.js → Legend-CAStwHdx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BzZyMJBF.js → NonSvgPenAndPaper-BLy8zMox.js} +3 -3
- package/dist/{PackageVersion-Ch5CwQQ0.js → PackageVersion-BBQkpuwF.js} +1 -1
- package/dist/{PenAndPaper-D4aFMYZf.js → PenAndPaper-z1woaB1V.js} +2 -2
- package/dist/Shape-BubavoqO.js +143 -0
- package/dist/{Slicer-GABgkLkB.js → Slicer-JCOpjPU7.js} +2 -2
- package/dist/{SlicerPreview-CXLgqXX8.js → SlicerPreview-CZOlZJWD.js} +2 -2
- package/dist/{SparkTooltip-CdSRUoZN.js → SparkTooltip-DMFXQmFi.js} +1 -1
- package/dist/{UserOptions-qFz-9Pnw.js → UserOptions-rx9hUnOy.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.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-DGHwZPNC.js → package-B9u_i6YS.js} +1 -1
- package/dist/{render-common-CEtFwZ7E.js → render-common-g33Vg_dN.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 +14 -0
- package/dist/{useConfig-Ceammwok.js → useConfig-BWi-1gQ8.js} +1 -0
- package/dist/{useObjectBindings-DVAI_7eR.js → useObjectBindings-Cf3f9kQI.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-Cqw-EwKQ.js → vue-data-ui-DbZS2DJ_.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-D4Y4XPXe.js → vue-ui-3d-bar-DNif3dg5.js} +5 -5
- package/dist/{vue-ui-accordion-6KrR0W3I.js → vue-ui-accordion-CJCSNX1M.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BKTUOzeL.js → vue-ui-age-pyramid-C48sXfLz.js} +5 -5
- package/dist/{vue-ui-annotator-BXsgCUg7.js → vue-ui-annotator-CnOOMM8s.js} +6 -6
- package/dist/{vue-ui-bullet-DAFePzj5.js → vue-ui-bullet-BwRpjbhx.js} +5 -5
- package/dist/{vue-ui-bump-DmspS2p9.js → vue-ui-bump-DgtUJitf.js} +6 -6
- package/dist/{vue-ui-candlestick-CPMDMs_p.js → vue-ui-candlestick-Btrs-WzC.js} +6 -6
- package/dist/{vue-ui-carousel-table-BdpKu2Gu.js → vue-ui-carousel-table-BmKpLXI8.js} +3 -3
- package/dist/{vue-ui-chestnut-D5VDyETx.js → vue-ui-chestnut-BEkVPNtJ.js} +5 -5
- package/dist/{vue-ui-chord-BLD3FTrM.js → vue-ui-chord-D77aAAAS.js} +7 -7
- package/dist/{vue-ui-circle-pack-Crty2ywQ.js → vue-ui-circle-pack-d6jsE_cp.js} +5 -5
- package/dist/{vue-ui-cursor-gIz2v2sh.js → vue-ui-cursor-CmCyNFwz.js} +3 -3
- package/dist/{vue-ui-dag-D99YAHUN.js → vue-ui-dag-ChIS35Cx.js} +6 -6
- package/dist/{vue-ui-dashboard-Bwsahr3Q.js → vue-ui-dashboard-862_qG5Y.js} +68 -68
- package/dist/{vue-ui-digits-B5TOL7Tg.js → vue-ui-digits-UygMKLG4.js} +3 -3
- package/dist/{vue-ui-donut-BX4FqXxi.js → vue-ui-donut-1up9r9pp.js} +2 -2
- package/dist/{vue-ui-donut-DxwpwPXL.js → vue-ui-donut-CZPgbMEg.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DgOi1hrP.js → vue-ui-donut-evolution-CD9vByCi.js} +8 -8
- package/dist/{vue-ui-dumbbell-CF2HSfLD.js → vue-ui-dumbbell-BDk_wh2X.js} +6 -6
- package/dist/{vue-ui-flow-CcZqIxXm.js → vue-ui-flow-47y8Z3Pz.js} +6 -6
- package/dist/{vue-ui-funnel-CUEAMdGQ.js → vue-ui-funnel-DTK9dGSj.js} +3 -3
- package/dist/{vue-ui-galaxy-DLCN6lVW.js → vue-ui-galaxy-CIP2DcFf.js} +7 -7
- package/dist/{vue-ui-gauge-Ci9BECLJ.js → vue-ui-gauge-BswUlhGP.js} +4 -4
- package/dist/{vue-ui-geo-LN4_jmL1.js → vue-ui-geo-Wj3ajGwa.js} +6 -6
- package/dist/{vue-ui-gizmo-m4m1T7wp.js → vue-ui-gizmo-LtViOQ1V.js} +4 -4
- package/dist/{vue-ui-heatmap-CGbgmvze.js → vue-ui-heatmap-BQkmmcdC.js} +6 -6
- package/dist/{vue-ui-history-plot-Jv8e316x.js → vue-ui-history-plot-DYcQqHJY.js} +7 -7
- package/dist/{vue-ui-horizontal-bar-Bp4bQE9L.js → vue-ui-horizontal-bar-fXyx1d3p.js} +9 -9
- package/dist/{vue-ui-kpi-BUCkAnwc.js → vue-ui-kpi-CA-ajg4w.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bdtyyj4j.js → vue-ui-mini-loader-CoQu2yra.js} +2 -2
- package/dist/{vue-ui-molecule-COlIB0f9.js → vue-ui-molecule-Dsb5tSSz.js} +4 -4
- package/dist/{vue-ui-mood-radar-ZorBnn5A.js → vue-ui-mood-radar-BvaIQhoq.js} +6 -6
- package/dist/{vue-ui-nested-donuts-YNeX2TNF.js → vue-ui-nested-donuts-HqIJDrOk.js} +7 -7
- package/dist/{vue-ui-onion-CXxE2VEZ.js → vue-ui-onion-VaCEUjPt.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-CBKGYeJ8.js → vue-ui-parallel-coordinate-plot-DbGFtMJW.js} +8 -8
- package/dist/{vue-ui-quadrant-DyVZUH3C.js → vue-ui-quadrant-CCi4x76e.js} +8 -8
- package/dist/{vue-ui-quick-chart-BoTdvCF6.js → vue-ui-quick-chart-YH55ZnPp.js} +7 -7
- package/dist/{vue-ui-radar-CJdevsUV.js → vue-ui-radar-B5erj8pZ.js} +7 -7
- package/dist/{vue-ui-rating-CZGaYqLU.js → vue-ui-rating-BZQlHiMs.js} +2 -2
- package/dist/{vue-ui-relation-circle-UOkATiKO.js → vue-ui-relation-circle-BH-v7yCR.js} +5 -5
- package/dist/{vue-ui-ridgeline-DzT0MjuZ.js → vue-ui-ridgeline-BdxOgy9h.js} +8 -8
- package/dist/{vue-ui-rings-UHR4QZAu.js → vue-ui-rings-Dk1dLyN8.js} +8 -8
- package/dist/{vue-ui-scatter-Dz06VMne.js → vue-ui-scatter-Ddgga48P.js} +8 -8
- package/dist/{vue-ui-skeleton-DszO5oKN.js → vue-ui-skeleton-CY1T6qik.js} +3 -3
- package/dist/{vue-ui-smiley-bFNZybVe.js → vue-ui-smiley-B2MyFtfh.js} +2 -2
- package/dist/{vue-ui-spark-trend-BhHhXKMO.js → vue-ui-spark-trend-CLgmlqIG.js} +4 -4
- package/dist/{vue-ui-sparkbar-3pujPUwi.js → vue-ui-sparkbar-DiswHN41.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BVNi8awn.js → vue-ui-sparkgauge-4u4xtfjc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BHL0TXsU.js → vue-ui-sparkhistogram-CN80CzE6.js} +6 -6
- package/dist/{vue-ui-sparkline-Ce0H8VCU.js → vue-ui-sparkline-CLgI-0qG.js} +13 -7
- package/dist/{vue-ui-sparkstackbar-96m0_60o.js → vue-ui-sparkstackbar-Bt763Z5-.js} +6 -6
- package/dist/{vue-ui-stackbar-qel6EQbi.js → vue-ui-stackbar-C9B75WK_.js} +9 -9
- package/dist/{vue-ui-stackline-C7-gkhqX.js → vue-ui-stackline-CTzNic0Q.js} +9 -9
- package/dist/{vue-ui-strip-plot-SDiz1Qqj.js → vue-ui-strip-plot-CqSXXOFR.js} +6 -6
- package/dist/{vue-ui-table-DIasXzkB.js → vue-ui-table-C8Kchmqw.js} +6 -6
- package/dist/{vue-ui-table-heatmap-BJD8A_Rt.js → vue-ui-table-heatmap-tX0UmcMb.js} +4 -4
- package/dist/{vue-ui-table-sparkline-sxs355Ao.js → vue-ui-table-sparkline-BUeZQnh5.js} +3 -3
- package/dist/{vue-ui-thermometer-gb1GvP5r.js → vue-ui-thermometer-NrNgrdmg.js} +4 -4
- package/dist/{vue-ui-timer-DWiGCYOA.js → vue-ui-timer-X1fY0iRg.js} +4 -4
- package/dist/{vue-ui-tiremarks-BjAL0iLb.js → vue-ui-tiremarks-Bos7yO2u.js} +4 -4
- package/dist/{vue-ui-treemap-BB18e9NT.js → vue-ui-treemap-DoGshGmj.js} +8 -8
- package/dist/{vue-ui-waffle-D8mdsq1a.js → vue-ui-waffle-DHnzcLJ4.js} +8 -8
- package/dist/{vue-ui-wheel-rEAlApIG.js → vue-ui-wheel-CMMvOzIO.js} +4 -4
- package/dist/{vue-ui-word-cloud-BXjUK4pv.js → vue-ui-word-cloud-CKJhq4D5.js} +6 -6
- package/dist/{vue-ui-world-DAB4Gg8j.js → vue-ui-world-UQZszool.js} +6 -6
- package/dist/{vue-ui-xy-V9KNpq90.js → vue-ui-xy-BBYh_YDd.js} +2 -2
- package/dist/{vue-ui-xy-canvas-iuxHwCtX.js → vue-ui-xy-canvas-L2yEmjc-.js} +9 -9
- package/dist/{vue-ui-xy-BJ9B55c0.js → vue-ui-xy-l2c4h8Jh.js} +758 -716
- package/package.json +5 -5
- package/dist/Shape-BxFtoF1z.js +0 -141
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { B as t, Bt as n, D as r, F as i, Ft as a, G as o, H as s, Ht as c, I as l, J as u, L as ee, M as te, Nt as d, O as f, Ot as p, P as ne, Pt as m, R as re, S as ie, T as ae, Tt as oe, Vt as h, X as se, _t as g, a as _, bt as ce, c as le, g as ue, gt as de, h as fe, ht as pe, i as v, it as me, j as he, jt as ge, k as _e, l as ve, n as ye, nt as y, pt as be, r as xe, s as Se, v as b, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
-
import { t as je } from "./useConfig-
|
|
4
|
+
import { t as je } from "./useConfig-BWi-1gQ8.js";
|
|
5
5
|
import { t as Me } from "./usePrinter-6n2MzVyV.js";
|
|
6
|
-
import { n as Ne, t as Pe } from "./BaseScanner-
|
|
6
|
+
import { n as Ne, t as Pe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as Fe } from "./useSvgExport-SVIsDot8.js";
|
|
8
8
|
import { t as Ie } from "./useNestedProp-DtcXIg7n.js";
|
|
9
9
|
import { t as Le } from "./useThemeCheck-C43Tcqmk.js";
|
|
@@ -12,12 +12,12 @@ import { t as ze } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
|
12
12
|
import { t as Be } from "./img-C_RNNswI.js";
|
|
13
13
|
import { n as Ve } from "./Title-DH6G8_cZ.js";
|
|
14
14
|
import { t as He } from "./vue_ui_xy-BA3-_LCx.js";
|
|
15
|
-
import { t as Ue } from "./Shape-
|
|
15
|
+
import { t as Ue } from "./Shape-BubavoqO.js";
|
|
16
16
|
import { t as We } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
-
import { t as Ge } from "./SlicerPreview-
|
|
18
|
-
import { t as Ke } from "./vue-ui-accordion-
|
|
19
|
-
import { t as qe } from "./BaseLegendToggle-
|
|
20
|
-
import { t as Je } from "./A11yDataTable-
|
|
17
|
+
import { t as Ge } from "./SlicerPreview-CZOlZJWD.js";
|
|
18
|
+
import { t as Ke } from "./vue-ui-accordion-CJCSNX1M.js";
|
|
19
|
+
import { t as qe } from "./BaseLegendToggle-CUYal8mC.js";
|
|
20
|
+
import { t as Je } from "./A11yDataTable-DdRsVULz.js";
|
|
21
21
|
import { Fragment as x, Teleport as Ye, computed as S, createBlock as Xe, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as nt, mergeProps as rt, nextTick as it, normalizeClass as at, normalizeProps as ot, normalizeStyle as E, onBeforeUnmount as st, onMounted as ct, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as lt, shallowRef as ut, toDisplayString as dt, toRefs as ft, unref as j, useSlots as pt, vModelCheckbox as mt, watch as ht, watchEffect as gt, withCtx as M, withDirectives as _t } from "vue";
|
|
22
22
|
//#region src/utils/xy.js
|
|
23
23
|
function vt(e) {
|
|
@@ -532,7 +532,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
532
532
|
"padding-left": "6px"
|
|
533
533
|
},
|
|
534
534
|
"data-dom-to-png-ignore": ""
|
|
535
|
-
}, Si = ["innerHTML"], N =
|
|
535
|
+
}, Si = ["innerHTML"], N = /*#__PURE__*/ We({
|
|
536
536
|
__name: "vue-ui-xy",
|
|
537
537
|
props: {
|
|
538
538
|
config: {
|
|
@@ -562,7 +562,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
562
562
|
"copyAlt"
|
|
563
563
|
],
|
|
564
564
|
setup(e, { expose: We, emit: Dt }) {
|
|
565
|
-
let N = e, Ci = et(() => import("./DataTable-
|
|
565
|
+
let N = e, Ci = et(() => import("./DataTable-G9aclxhk.js")), wi = et(() => import("./Tooltip-979Ytd8R.js")), Ti = et(() => import("./UserOptions-rx9hUnOy.js").then((e) => e.n)), Ei = et(() => import("./BaseIcon-CWXbczu_.js").then((e) => e.n)), Di = et(() => import("./vue-ui-table-sparkline-BUeZQnh5.js").then((e) => e.n)), Oi = et(() => import("./PackageVersion-BBQkpuwF.js").then((e) => e.t)), ki = et(() => import("./PenAndPaper-z1woaB1V.js").then((e) => e.t)), Ai = et(() => import("./BaseDraggableDialog-O8jn9Lvi.js").then((e) => e.n)), ji = Dt, Mi = pt(), Ni = tt(), { vue_ui_xy: Pi } = je(), { isThemeValid: Fi, warnInvalidTheme: Ii } = Le(), Li = O(null), Ri = O(null), zi = O(null), Bi = O(null), Vi = O(null), Hi = O(null), Ui = O(null), Wi = O(null), Gi = O(null), Ki = O(null), qi = O(null), Ji = O(null), Yi = O(null), Xi = O(null), Zi = O(0), P = O(null), Qi = O(!0), $i = O(600), F = O(1e3), ea = O("0 0 1000 600"), ta = O({
|
|
566
566
|
x: 0,
|
|
567
567
|
y: 0
|
|
568
568
|
}), na = O({
|
|
@@ -606,8 +606,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
606
606
|
plotLabels: 10
|
|
607
607
|
}), Ia = O({
|
|
608
608
|
plot: 3,
|
|
609
|
-
line: 3
|
|
610
|
-
|
|
609
|
+
line: 3,
|
|
610
|
+
selectedLine: 3
|
|
611
|
+
}), La = S(() => Math.max(Ia.value.line * 1.5, Ia.value.selectedLine));
|
|
611
612
|
ct(() => {
|
|
612
613
|
_a.value = !0, N.dataset.length && N.dataset.forEach((e, t) => {
|
|
613
614
|
[null, void 0].includes(e.series) && se({
|
|
@@ -615,11 +616,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
615
616
|
type: "datasetSerieAttribute",
|
|
616
617
|
property: "series (number[])",
|
|
617
618
|
index: t,
|
|
618
|
-
debug:
|
|
619
|
+
debug: Ua.value
|
|
619
620
|
});
|
|
620
621
|
}), ka(), Oa.start(), ja();
|
|
621
622
|
});
|
|
622
|
-
function
|
|
623
|
+
function Ra() {
|
|
623
624
|
if (!Object.keys(N.config || {}).length) return Pi;
|
|
624
625
|
let e = Ie({
|
|
625
626
|
userConfig: N.config,
|
|
@@ -628,10 +629,10 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
628
629
|
N.config && be(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea : e.chart.highlightArea = [N.config.chart.highlightArea]), N.config && be(N.config, "chart.annotations") && Array.isArray(N.config.chart.annotations) && N.config.chart.annotations.length ? e.chart.annotations = N.config.chart.annotations.map((e) => Ie({
|
|
629
630
|
defaultConfig: Pi.chart.annotations[0],
|
|
630
631
|
userConfig: e
|
|
631
|
-
})) : e.chart.annotations = [], N.config && be(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", be(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && be(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) =>
|
|
632
|
+
})) : e.chart.annotations = [], N.config && be(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", be(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && be(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => za({
|
|
632
633
|
defaultConfig: Pi.chart.highlightArea,
|
|
633
634
|
userConfig: e
|
|
634
|
-
})) : e.chart.highlightArea =
|
|
635
|
+
})) : e.chart.highlightArea = za({
|
|
635
636
|
defaultConfig: Pi.chart.highlightArea,
|
|
636
637
|
userConfig: N.config.chart.highlightArea
|
|
637
638
|
}));
|
|
@@ -650,27 +651,27 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
650
651
|
customPalette: i.customPalette.length ? i.customPalette : n[t] || p
|
|
651
652
|
};
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function za({ defaultConfig: e, userConfig: t }) {
|
|
654
655
|
return Ie({
|
|
655
656
|
defaultConfig: e,
|
|
656
657
|
userConfig: t
|
|
657
658
|
});
|
|
658
659
|
}
|
|
659
|
-
let
|
|
660
|
+
let Ba = S({
|
|
660
661
|
get() {
|
|
661
662
|
return !!N.dataset && N.dataset.length;
|
|
662
663
|
},
|
|
663
664
|
set(e) {
|
|
664
665
|
return e;
|
|
665
666
|
}
|
|
666
|
-
}), H = O(
|
|
667
|
+
}), H = O(Ra()), Va = S(() => H.value.chart.userOptions.useCursorPointer), U = O({
|
|
667
668
|
dataLabels: { show: !0 },
|
|
668
669
|
showTooltip: !0,
|
|
669
670
|
showTable: !1,
|
|
670
671
|
isStacked: !1,
|
|
671
672
|
useIndividualScale: !1
|
|
672
673
|
});
|
|
673
|
-
function
|
|
674
|
+
function Ha() {
|
|
674
675
|
let e = H.value.chart.grid.labels.yAxis.stacked, t = H.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
675
676
|
if (!Na.value) {
|
|
676
677
|
U.value = {
|
|
@@ -684,7 +685,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
684
685
|
}
|
|
685
686
|
U.value.showTooltip = H.value.chart.tooltip.show === !0, e !== Pa.value && (U.value.isStacked = e, Pa.value = e), t !== Fa.value && (U.value.useIndividualScale = t, Fa.value = t), U.value.isStacked && (U.value.useIndividualScale = !0);
|
|
686
687
|
}
|
|
687
|
-
let
|
|
688
|
+
let Ua = S(() => !!H.value.debug), Wa = S(() => c({
|
|
688
689
|
defaultConfig: {
|
|
689
690
|
useCssAnimation: !1,
|
|
690
691
|
showTable: !1,
|
|
@@ -740,7 +741,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
740
741
|
}
|
|
741
742
|
},
|
|
742
743
|
userConfig: H.value.skeletonConfig ?? {}
|
|
743
|
-
})),
|
|
744
|
+
})), Ga = S(() => N.config?.skeletonDataset ?? [{
|
|
744
745
|
name: "",
|
|
745
746
|
series: [
|
|
746
747
|
0,
|
|
@@ -777,53 +778,53 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
777
778
|
],
|
|
778
779
|
type: "bar",
|
|
779
780
|
color: "#CACACA"
|
|
780
|
-
}]), { loading:
|
|
781
|
+
}]), { loading: Ka, FINAL_DATASET: W, manualLoading: qa } = Ne({
|
|
781
782
|
...ft(N),
|
|
782
783
|
FINAL_CONFIG: H,
|
|
783
|
-
prepareConfig:
|
|
784
|
+
prepareConfig: Ra,
|
|
784
785
|
callback: () => {
|
|
785
786
|
Promise.resolve().then(async () => {
|
|
786
|
-
(!H.value.chart.zoom.keepState || !
|
|
787
|
+
(!H.value.chart.zoom.keepState || !ts.value || G.value.start === 0 && G.value.end === 0) && await is(), U.value.showTable = H.value.showTable;
|
|
787
788
|
});
|
|
788
789
|
},
|
|
789
|
-
skeletonDataset:
|
|
790
|
+
skeletonDataset: Ga.value,
|
|
790
791
|
skeletonConfig: c({
|
|
791
792
|
defaultConfig: H.value,
|
|
792
|
-
userConfig:
|
|
793
|
+
userConfig: Wa.value
|
|
793
794
|
})
|
|
794
|
-
}),
|
|
795
|
+
}), Ja = Ct((e, t) => ce({
|
|
795
796
|
data: e,
|
|
796
797
|
threshold: t
|
|
797
|
-
})),
|
|
798
|
-
get: () => Math.max(...W.value.map((e) =>
|
|
798
|
+
})), Ya = (e) => Ja(e, H.value.downsample.threshold), Xa = S({
|
|
799
|
+
get: () => Math.max(...W.value.map((e) => Ya(e.series).length)),
|
|
799
800
|
set: (e) => e
|
|
800
801
|
}), G = O({
|
|
801
802
|
start: 0,
|
|
802
|
-
end:
|
|
803
|
-
}),
|
|
803
|
+
end: Xa.value
|
|
804
|
+
}), Za = O({
|
|
804
805
|
start: 0,
|
|
805
|
-
end:
|
|
806
|
-
}),
|
|
807
|
-
function
|
|
808
|
-
|
|
806
|
+
end: Xa.value
|
|
807
|
+
}), Qa = S(() => H.value.chart.zoom.preview.enable && (Za.value.start !== G.value.start || Za.value.end !== G.value.end));
|
|
808
|
+
function $a(e, t) {
|
|
809
|
+
Za.value[e] = t;
|
|
809
810
|
}
|
|
810
|
-
function
|
|
811
|
+
function eo() {
|
|
811
812
|
if (q.value) {
|
|
812
|
-
let e =
|
|
813
|
+
let e = Mc.value.min, t = Mc.value.max, n = Number(G.value.start), r = Number(G.value.end);
|
|
813
814
|
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), G.value = {
|
|
814
815
|
start: n,
|
|
815
816
|
end: r
|
|
816
|
-
},
|
|
817
|
+
}, Za.value.start = n, Za.value.end = r, zi.value && (zi.value.setStartValue(n), zi.value.setEndValue(r));
|
|
817
818
|
return;
|
|
818
819
|
}
|
|
819
|
-
let e = Math.max(1, ...W.value.map((e) =>
|
|
820
|
+
let e = Math.max(1, ...W.value.map((e) => Ya(e.series).length)), t = Math.max(0, Math.min(G.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(G.value.end ?? e, e));
|
|
820
821
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), G.value = {
|
|
821
822
|
start: t,
|
|
822
823
|
end: n
|
|
823
|
-
},
|
|
824
|
+
}, Za.value.start = t, Za.value.end = n, zi.value && (zi.value.setStartValue(t), zi.value.setEndValue(n));
|
|
824
825
|
}
|
|
825
|
-
let
|
|
826
|
-
let { left: e, top: t, width: n, height: r } = Y.value, i = G.value.start, a = G.value.end - i, o = n / a, s =
|
|
826
|
+
let to = S(() => {
|
|
827
|
+
let { left: e, top: t, width: n, height: r } = Y.value, i = G.value.start, a = G.value.end - i, o = n / a, s = Za.value.start - i, c = Za.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
827
828
|
return {
|
|
828
829
|
x: e + l * o,
|
|
829
830
|
y: t,
|
|
@@ -850,22 +851,22 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
850
851
|
let t = e - G.value.start;
|
|
851
852
|
t < 0 || e >= G.value.end ? B.value = null : B.value = t ?? null;
|
|
852
853
|
}, { immediate: !0 });
|
|
853
|
-
let { isPrinting:
|
|
854
|
+
let { isPrinting: no, isImaging: ro, generatePdf: io, generateImage: ao } = Me({
|
|
854
855
|
elementId: `vue-ui-xy_${L.value}`,
|
|
855
856
|
fileName: H.value.chart.title.text || "vue-ui-xy",
|
|
856
857
|
options: H.value.chart.userOptions.print
|
|
857
|
-
}),
|
|
858
|
+
}), oo = O(!1), so = S(() => we(H.value.customPalette)), co = S(() => {
|
|
858
859
|
let e = H.value.chart.grid.labels.yAxis.scaleMin;
|
|
859
860
|
if (e == null) return null;
|
|
860
861
|
let t = Number(e);
|
|
861
862
|
return Number.isFinite(t) ? t : null;
|
|
862
|
-
}),
|
|
863
|
+
}), lo = S(() => co.value === null ? ws.value : Y.value.bottom), uo = S(() => {
|
|
863
864
|
let e = H.value.chart.grid.labels.yAxis.scaleMax;
|
|
864
865
|
if (e == null) return null;
|
|
865
866
|
let t = Number(e);
|
|
866
867
|
return Number.isFinite(t) ? t : null;
|
|
867
|
-
}),
|
|
868
|
-
let e =
|
|
868
|
+
}), fo = S(() => co.value !== null || uo.value !== null), po = S(() => {
|
|
869
|
+
let e = yo.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).map(vo).filter(Number.isFinite);
|
|
869
870
|
return e.length ? {
|
|
870
871
|
min: Math.min(...e),
|
|
871
872
|
max: Math.max(...e)
|
|
@@ -873,27 +874,27 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
873
874
|
min: 0,
|
|
874
875
|
max: 1
|
|
875
876
|
};
|
|
876
|
-
}),
|
|
877
|
-
let { min: e, max: t } =
|
|
878
|
-
if (!
|
|
877
|
+
}), mo = S(() => {
|
|
878
|
+
let { min: e, max: t } = po.value;
|
|
879
|
+
if (!fo.value) {
|
|
879
880
|
let t = e;
|
|
880
881
|
return t > 0 ? 0 : t;
|
|
881
882
|
}
|
|
882
|
-
let n =
|
|
883
|
+
let n = co.value === null ? e > 0 ? 0 : e : co.value, r = uo.value === null ? t : uo.value;
|
|
883
884
|
return wt(e < n ? e : n, t > r ? t : r).min;
|
|
884
|
-
}),
|
|
885
|
-
let { min: e, max: t } =
|
|
886
|
-
if (!
|
|
885
|
+
}), ho = S(() => {
|
|
886
|
+
let { min: e, max: t } = po.value;
|
|
887
|
+
if (!fo.value) {
|
|
887
888
|
let e = t;
|
|
888
|
-
return
|
|
889
|
+
return mo.value === e ? e + 1 : e;
|
|
889
890
|
}
|
|
890
|
-
let n =
|
|
891
|
+
let n = co.value === null ? e > 0 ? 0 : e : co.value, r = uo.value === null ? t : uo.value;
|
|
891
892
|
return wt(e < n ? e : n, t > r ? t : r).max;
|
|
892
|
-
}), K = S(() => H.value.chart.grid.labels.yAxis.useNiceScale ? fe(
|
|
893
|
+
}), K = S(() => H.value.chart.grid.labels.yAxis.useNiceScale ? fe(mo.value, ho.value < 0 ? 0 : ho.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(mo.value, ho.value < 0 ? 0 : ho.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), go = S(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? K.value.min >= 0 ? 0 : Math.abs(K.value.min) : -K.value.min), q = S(() => W.value.some((e) => Array.isArray(e.series) && e.series.some(xt)));
|
|
893
894
|
ct(() => {
|
|
894
895
|
q.value && N.dataset.some((e) => e.type === "bar") && console.warn("Vue Data UI - VueUiXy: series of type 'bar' are not supported in continuous mode.\n\nContinuous mode requires 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard\n[number, number, number...]");
|
|
895
896
|
});
|
|
896
|
-
function
|
|
897
|
+
function _o(e, t) {
|
|
897
898
|
return e && typeof e == "object" && e.x === null && e.y === null ? {
|
|
898
899
|
x: null,
|
|
899
900
|
y: null,
|
|
@@ -908,38 +909,38 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
908
909
|
isNull: !1
|
|
909
910
|
};
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
+
function vo(e) {
|
|
912
913
|
return q.value ? e.y : e;
|
|
913
914
|
}
|
|
914
|
-
let
|
|
915
|
-
let n = q.value ? e.series :
|
|
915
|
+
let yo = S(() => !Qi.value && !q.value ? W.value : W.value.map((e, t) => {
|
|
916
|
+
let n = q.value ? e.series : Ya(e.series), r = `uniqueId_${t}`;
|
|
916
917
|
return {
|
|
917
918
|
...e,
|
|
918
919
|
slotAbsoluteIndex: t,
|
|
919
|
-
series: q.value ? n.map((e, t) =>
|
|
920
|
-
color: Te(e.color ? e.color :
|
|
920
|
+
series: q.value ? n.map((e, t) => _o(e, t)).filter((e) => e.x >= G.value.start && e.x <= G.value.end) : n.map((e) => de(e) ? e : null).slice(G.value.start, G.value.end),
|
|
921
|
+
color: Te(e.color ? e.color : so.value[t] ? so.value[t] : p[t]),
|
|
921
922
|
id: r,
|
|
922
923
|
scaleLabel: e.scaleLabel || r
|
|
923
924
|
};
|
|
924
|
-
})),
|
|
925
|
+
})), bo = S(() => yo.value.map((e, t) => ({
|
|
925
926
|
absoluteIndex: t,
|
|
926
927
|
...e,
|
|
927
928
|
series: q.value ? e.series.map((e) => ({
|
|
928
929
|
...e,
|
|
929
|
-
y: e.y === null ? null : e.y +
|
|
930
|
-
})) : e.series.map((e) => e +
|
|
930
|
+
y: e.y === null ? null : e.y + go.value
|
|
931
|
+
})) : e.series.map((e) => e + go.value),
|
|
931
932
|
absoluteValues: q.value ? e.series.map((e) => e.y) : e.series,
|
|
932
|
-
segregate: () =>
|
|
933
|
+
segregate: () => Xs(e),
|
|
933
934
|
isSegregated: I.value.includes(e.id)
|
|
934
|
-
}))),
|
|
935
|
+
}))), xo = S(() => yo.value.map((e) => ({
|
|
935
936
|
...e,
|
|
936
937
|
series: q.value ? e.series.map((e) => ({
|
|
937
938
|
...e,
|
|
938
|
-
y: e.y === null ? null : e.y +
|
|
939
|
-
})) : e.series.map((e) => e +
|
|
939
|
+
y: e.y === null ? null : e.y + go.value
|
|
940
|
+
})) : e.series.map((e) => e + go.value),
|
|
940
941
|
absoluteValues: q.value ? e.series.map((e) => e.y) : e.series
|
|
941
|
-
})).filter((e) => !I.value.includes(e.id))),
|
|
942
|
-
function
|
|
942
|
+
})).filter((e) => !I.value.includes(e.id))), So = S(() => I.value.length === bo.value.length), J = S(() => H.value.chart.grid.labels.yAxis.position === "right");
|
|
943
|
+
function Co() {
|
|
943
944
|
let e = 0;
|
|
944
945
|
qi.value && (e = Array.from(qi.value.querySelectorAll("text")).reduce((e, t) => {
|
|
945
946
|
let n = t.getComputedTextLength();
|
|
@@ -953,9 +954,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
953
954
|
yAxisLabelWidth: t
|
|
954
955
|
};
|
|
955
956
|
}
|
|
956
|
-
function
|
|
957
|
-
let t =
|
|
958
|
-
let i =
|
|
957
|
+
function wo(e) {
|
|
958
|
+
let t = xo.value.filter((e) => ["line", "plot"].includes(e.type)).flatMap((t) => t.series.map((n, r) => {
|
|
959
|
+
let i = jc(n);
|
|
959
960
|
return {
|
|
960
961
|
datapoint: t,
|
|
961
962
|
point: n,
|
|
@@ -966,11 +967,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
966
967
|
};
|
|
967
968
|
})).filter((e) => g(e.point?.x) && g(e.point?.y)).reduce((e, t) => !e || t.distance < e.distance ? t : e, null);
|
|
968
969
|
if (!t) {
|
|
969
|
-
|
|
970
|
+
Fs.value = [], Is.value = null, xa.value = null;
|
|
970
971
|
return;
|
|
971
972
|
}
|
|
972
973
|
let n = Number(t.point.x);
|
|
973
|
-
|
|
974
|
+
Fs.value = xo.value.filter((e) => ["line", "plot"].includes(e.type)).map((e) => {
|
|
974
975
|
let t = e.series.findIndex((e) => Number(e.x) === n && g(e.y));
|
|
975
976
|
if (t === -1) return null;
|
|
976
977
|
let r = e.series[t];
|
|
@@ -978,66 +979,66 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
978
979
|
datapoint: e,
|
|
979
980
|
point: r,
|
|
980
981
|
index: t,
|
|
981
|
-
x:
|
|
982
|
+
x: jc(r),
|
|
982
983
|
y: r.y,
|
|
983
984
|
distance: 0
|
|
984
985
|
};
|
|
985
|
-
}).filter(Boolean),
|
|
986
|
+
}).filter(Boolean), Is.value = jc({ x: n }), xa.value = n;
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
+
function To(e) {
|
|
988
989
|
if (!Number.isFinite(Number(e))) {
|
|
989
|
-
|
|
990
|
+
Fs.value = [], Is.value = null;
|
|
990
991
|
return;
|
|
991
992
|
}
|
|
992
|
-
let t =
|
|
993
|
-
|
|
993
|
+
let t = jc({ x: Number(e) });
|
|
994
|
+
wo(t), Is.value = t;
|
|
994
995
|
}
|
|
995
|
-
let
|
|
996
|
-
function
|
|
996
|
+
let Eo = O(0), Do = O(0);
|
|
997
|
+
function Oo() {
|
|
997
998
|
let e = Ki.value;
|
|
998
999
|
if (!e) {
|
|
999
|
-
|
|
1000
|
+
Eo.value = 0, Do.value = 0;
|
|
1000
1001
|
return;
|
|
1001
1002
|
}
|
|
1002
1003
|
try {
|
|
1003
1004
|
let t = e.getBBox();
|
|
1004
|
-
|
|
1005
|
+
Eo.value = t?.height ?? 0, Do.value = t?.x ?? 0;
|
|
1005
1006
|
} catch {
|
|
1006
|
-
|
|
1007
|
+
Eo.value = 0, Do.value = 0;
|
|
1007
1008
|
}
|
|
1008
1009
|
}
|
|
1009
|
-
let
|
|
1010
|
+
let ko = S(() => {
|
|
1010
1011
|
let e = 0;
|
|
1011
1012
|
if (Wi.value) try {
|
|
1012
1013
|
e = Wi.value.getBBox().height || 0;
|
|
1013
1014
|
} catch {
|
|
1014
1015
|
e = 0;
|
|
1015
1016
|
}
|
|
1016
|
-
return e +
|
|
1017
|
-
}),
|
|
1018
|
-
function
|
|
1017
|
+
return e + Eo.value + V.value.xAxis;
|
|
1018
|
+
}), Ao = S(() => W.value.some((e) => e.useProgression));
|
|
1019
|
+
function jo() {
|
|
1019
1020
|
return H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.dataLabels * .8;
|
|
1020
1021
|
}
|
|
1021
1022
|
let Y = S(() => {
|
|
1022
1023
|
Ea.value;
|
|
1023
1024
|
let e = 0, t = 0, n = 0, r = 0;
|
|
1024
|
-
if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) *
|
|
1025
|
+
if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) * jo() : e = (W.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
1025
1026
|
else if (U.value.useIndividualScale && U.value.isStacked) {
|
|
1026
1027
|
let n = H.value.chart.grid.labels.yAxis.labelWidth + 36;
|
|
1027
1028
|
J.value ? t = n : e = n;
|
|
1028
1029
|
} else {
|
|
1029
|
-
let i =
|
|
1030
|
+
let i = Co();
|
|
1030
1031
|
e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
|
|
1031
1032
|
}
|
|
1032
|
-
let i = H.value.chart.labels.fontSize * 1.1, a =
|
|
1033
|
-
Ki.value &&
|
|
1033
|
+
let i = H.value.chart.labels.fontSize * 1.1, a = Ao.value ? 24 : 6;
|
|
1034
|
+
Ki.value && Do.value < 0 && (e += Math.abs(Do.value));
|
|
1034
1035
|
let o = F.value - e - t - a - H.value.chart.padding?.left - H.value.chart.padding?.right;
|
|
1035
1036
|
return {
|
|
1036
1037
|
top: H.value.chart.padding?.top + i,
|
|
1037
1038
|
right: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left + o,
|
|
1038
|
-
bottom: $i.value -
|
|
1039
|
+
bottom: $i.value - ko.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1039
1040
|
left: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left,
|
|
1040
|
-
height: $i.value -
|
|
1041
|
+
height: $i.value - ko.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - i - H.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1041
1042
|
width: o,
|
|
1042
1043
|
scaleLabelX: e,
|
|
1043
1044
|
rightScaleLabelX: t,
|
|
@@ -1045,48 +1046,48 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1045
1046
|
yAxisLabelWidth: r,
|
|
1046
1047
|
individualOffsetX: 36
|
|
1047
1048
|
};
|
|
1048
|
-
}),
|
|
1049
|
+
}), Mo = S(() => {
|
|
1049
1050
|
let e = +(H.value.chart.grid.position === "middle"), t = Z.value + e, n = y(Y.value?.top), r = y(Y.value?.bottom);
|
|
1050
|
-
return q.value ? H.value.chart.grid.position === "middle" ?
|
|
1051
|
+
return q.value ? H.value.chart.grid.position === "middle" ? kc.value.map((e, t, i) => {
|
|
1051
1052
|
if (t === 0) return null;
|
|
1052
1053
|
let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
|
|
1053
1054
|
return `M${o},${n} L${o},${r}`;
|
|
1054
|
-
}).filter(Boolean).join(" ") :
|
|
1055
|
-
let i = H.value.chart.grid.position === "middle" ?
|
|
1055
|
+
}).filter(Boolean).join(" ") : kc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
|
|
1056
|
+
let i = H.value.chart.grid.position === "middle" ? uc(t) : lc(t);
|
|
1056
1057
|
return `M${i},${n} L${i},${r}`;
|
|
1057
1058
|
}).join(" ");
|
|
1058
|
-
}),
|
|
1059
|
+
}), No = S(() => {
|
|
1059
1060
|
if (!H.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1060
1061
|
let e = H.value.chart.grid.labels.xAxis.crosshairSize, t = H.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1061
|
-
return (q.value ?
|
|
1062
|
+
return (q.value ? kc.value : Go.value).map((n, r) => {
|
|
1062
1063
|
if (!n || !n.text) return null;
|
|
1063
|
-
let i = q.value ? n.x :
|
|
1064
|
-
return `M${i},${t ?
|
|
1064
|
+
let i = q.value ? n.x : lc(r);
|
|
1065
|
+
return `M${i},${t ? ws.value - (ws.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? ws.value + e / (ws.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
|
|
1065
1066
|
}).filter(Boolean).join(" ");
|
|
1066
1067
|
});
|
|
1067
|
-
function
|
|
1068
|
+
function Po() {
|
|
1068
1069
|
return !!Ni?.vnode.props?.onSelectTimeLabel;
|
|
1069
1070
|
}
|
|
1070
|
-
function
|
|
1071
|
+
function Fo(e, t, n) {
|
|
1071
1072
|
return ga.value ||= document.createElement("canvas").getContext("2d"), ga.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, ga.value;
|
|
1072
1073
|
}
|
|
1073
|
-
function
|
|
1074
|
+
function Io() {
|
|
1074
1075
|
let e = Li.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1075
1076
|
e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
|
|
1076
1077
|
}
|
|
1077
|
-
function
|
|
1078
|
+
function Lo(e, t, n, r, i) {
|
|
1078
1079
|
n && (ha.value[`${e}_${t}_${r}_${i}`] = n);
|
|
1079
1080
|
}
|
|
1080
|
-
let
|
|
1081
|
-
async function
|
|
1082
|
-
await it(),
|
|
1081
|
+
let Ro = O(!1);
|
|
1082
|
+
async function zo(e = !1) {
|
|
1083
|
+
await it(), Ro.value = e, fa.value && (ma.value = e);
|
|
1083
1084
|
}
|
|
1084
|
-
function
|
|
1085
|
+
function Bo() {
|
|
1085
1086
|
ra.value = !ra.value;
|
|
1086
1087
|
}
|
|
1087
|
-
let X = O([]),
|
|
1088
|
+
let X = O([]), Vo = O([]), Ho = 0;
|
|
1088
1089
|
gt(() => {
|
|
1089
|
-
let e = ++
|
|
1090
|
+
let e = ++Ho;
|
|
1090
1091
|
(async () => {
|
|
1091
1092
|
let t = Math.max(...W.value.map((e) => ce({
|
|
1092
1093
|
data: e.series,
|
|
@@ -1098,12 +1099,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1098
1099
|
start: G.value.start,
|
|
1099
1100
|
end: G.value.end
|
|
1100
1101
|
});
|
|
1101
|
-
e ===
|
|
1102
|
+
e === Ho && (X.value = n);
|
|
1102
1103
|
})();
|
|
1103
1104
|
});
|
|
1104
|
-
let
|
|
1105
|
+
let Uo = 0;
|
|
1105
1106
|
gt(() => {
|
|
1106
|
-
let e = ++
|
|
1107
|
+
let e = ++Uo;
|
|
1107
1108
|
(async () => {
|
|
1108
1109
|
let t = Math.max(...W.value.map((e) => ce({
|
|
1109
1110
|
data: e.series,
|
|
@@ -1113,38 +1114,38 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1113
1114
|
maxDatapoints: t,
|
|
1114
1115
|
formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1115
1116
|
start: 0,
|
|
1116
|
-
end:
|
|
1117
|
+
end: Xa.value
|
|
1117
1118
|
});
|
|
1118
|
-
e ===
|
|
1119
|
+
e === Uo && (Vo.value = n);
|
|
1119
1120
|
})();
|
|
1120
1121
|
});
|
|
1121
|
-
let
|
|
1122
|
+
let Wo = S(() => {
|
|
1122
1123
|
let e = H.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1123
1124
|
return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
|
|
1124
|
-
}),
|
|
1125
|
-
let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n =
|
|
1126
|
-
return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
1127
|
-
}),
|
|
1125
|
+
}), Go = S(() => {
|
|
1126
|
+
let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = Vo.value || [], r = G.value.start ?? 0, i = B.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
1127
|
+
return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Wo.value || 1), o, s, r, i, a);
|
|
1128
|
+
}), Ko = S(() => (Go.value || []).map((e) => e?.text ?? "").join("|"));
|
|
1128
1129
|
ct(() => {
|
|
1129
1130
|
requestAnimationFrame(() => {
|
|
1130
|
-
|
|
1131
|
+
Oo();
|
|
1131
1132
|
}), ht([
|
|
1132
|
-
() =>
|
|
1133
|
+
() => Ko.value,
|
|
1133
1134
|
() => H.value.chart.grid.labels.xAxisLabels.rotation,
|
|
1134
1135
|
() => V.value.xAxis,
|
|
1135
1136
|
() => F.value,
|
|
1136
1137
|
() => $i.value
|
|
1137
1138
|
], async () => {
|
|
1138
1139
|
await it(), requestAnimationFrame(() => {
|
|
1139
|
-
|
|
1140
|
+
Oo();
|
|
1140
1141
|
});
|
|
1141
1142
|
}, { flush: "post" });
|
|
1142
1143
|
}), st(() => {
|
|
1143
|
-
|
|
1144
|
+
Eo.value = 0, Do.value = 0, Oa.stop();
|
|
1144
1145
|
});
|
|
1145
|
-
function
|
|
1146
|
+
function qo(e, t) {
|
|
1146
1147
|
ji("selectTimeLabel", {
|
|
1147
|
-
datapoint:
|
|
1148
|
+
datapoint: xo.value.map((e) => ({
|
|
1148
1149
|
shape: e.shape ?? e.type === "bar" ? "square" : "circle",
|
|
1149
1150
|
name: e.name,
|
|
1150
1151
|
color: e.color,
|
|
@@ -1162,140 +1163,163 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1162
1163
|
let e = Et((G.value.end ?? 0) - (G.value.start ?? 0));
|
|
1163
1164
|
return Math.max(1, e);
|
|
1164
1165
|
});
|
|
1165
|
-
function
|
|
1166
|
+
function Jo(e) {
|
|
1166
1167
|
q.value || (R.value = e);
|
|
1167
1168
|
}
|
|
1168
|
-
function
|
|
1169
|
+
function Yo(e) {
|
|
1169
1170
|
if (!q.value || !g(e)) {
|
|
1170
|
-
xa.value = null,
|
|
1171
|
+
xa.value = null, Fs.value = [], Is.value = null;
|
|
1171
1172
|
return;
|
|
1172
1173
|
}
|
|
1173
|
-
xa.value = Number(e),
|
|
1174
|
+
xa.value = Number(e), To(Number(e));
|
|
1174
1175
|
}
|
|
1175
|
-
let
|
|
1176
|
-
function
|
|
1176
|
+
let Xo = S(() => q.value ? g(xa.value) || g(Is.value) : ![null, void 0].includes(B.value) || ![null, void 0].includes(R.value));
|
|
1177
|
+
function Zo() {
|
|
1177
1178
|
U.value.isStacked = !U.value.isStacked, U.value.isStacked ? U.value.useIndividualScale = !0 : U.value.useIndividualScale = H.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1178
1179
|
}
|
|
1179
|
-
function Zo(e) {
|
|
1180
|
-
Ha.value && e.autoScaling && (H.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`), H.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`));
|
|
1181
|
-
}
|
|
1182
1180
|
function Qo(e) {
|
|
1183
|
-
|
|
1181
|
+
Ua.value && e.autoScaling && (H.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`), H.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`));
|
|
1182
|
+
}
|
|
1183
|
+
function $o(e) {
|
|
1184
|
+
let t = Math.max(...W.value.map((e) => Ya(e.series).length));
|
|
1184
1185
|
return e > t ? t : e < 0 || H.value.chart.zoom.startIndex !== null && e < H.value.chart.zoom.startIndex ? H.value.chart.zoom.startIndex === null ? 1 : H.value.chart.zoom.startIndex + 1 : e;
|
|
1185
1186
|
}
|
|
1186
|
-
let
|
|
1187
|
-
function
|
|
1188
|
-
if (
|
|
1189
|
-
|
|
1187
|
+
let es = O(!1), ts = O(!1), ns = O(0), rs = O(0);
|
|
1188
|
+
function is() {
|
|
1189
|
+
if (!es.value) {
|
|
1190
|
+
es.value = !0;
|
|
1190
1191
|
try {
|
|
1191
1192
|
if (q.value) {
|
|
1192
|
-
let e =
|
|
1193
|
-
|
|
1193
|
+
let e = Mc.value.min, t = Mc.value.max;
|
|
1194
|
+
ns.value = e, rs.value = t, G.value.start = e, G.value.end = t, Za.value.start = e, Za.value.end = t, ts.value = !0, zi.value && (zi.value.setStartValue(e), zi.value.setEndValue(t));
|
|
1194
1195
|
return;
|
|
1195
1196
|
}
|
|
1196
|
-
let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) =>
|
|
1197
|
+
let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) => Ya(e.series).length)) : Math.max(...W.value.map((e) => Ya(e.series).length));
|
|
1197
1198
|
if (H.value.chart.zoom.keepState && n <= 0) return;
|
|
1198
|
-
|
|
1199
|
-
let r = e ?? 0, i = t == null ? n : Math.min(
|
|
1200
|
-
|
|
1199
|
+
ns.value = 0, rs.value = n;
|
|
1200
|
+
let r = e ?? 0, i = t == null ? n : Math.min($o(t + 1), n);
|
|
1201
|
+
as.value = !0, G.value.start = r, G.value.end = i, Za.value.start = r, Za.value.end = i, eo(), ts.value = !0;
|
|
1201
1202
|
} finally {
|
|
1202
1203
|
queueMicrotask(() => {
|
|
1203
|
-
|
|
1204
|
-
}),
|
|
1204
|
+
as.value = !1;
|
|
1205
|
+
}), es.value = !1;
|
|
1205
1206
|
}
|
|
1206
1207
|
}
|
|
1207
1208
|
}
|
|
1208
|
-
let
|
|
1209
|
-
function
|
|
1210
|
-
|
|
1209
|
+
let as = O(!1), os = O(!1), ss = null, cs = null, ls = {};
|
|
1210
|
+
function us(e = G.value) {
|
|
1211
|
+
return Number(e.end) - Number(e.start);
|
|
1212
|
+
}
|
|
1213
|
+
function ds() {
|
|
1214
|
+
ss &&= (cancelAnimationFrame(ss), null), cs &&= (cancelAnimationFrame(cs), null);
|
|
1215
|
+
}
|
|
1216
|
+
function fs(e) {
|
|
1217
|
+
ls = {
|
|
1218
|
+
...ls,
|
|
1219
|
+
...e
|
|
1220
|
+
}, ss && cancelAnimationFrame(ss), ss = requestAnimationFrame(() => {
|
|
1221
|
+
let e = us(), t = {
|
|
1222
|
+
...G.value,
|
|
1223
|
+
...ls
|
|
1224
|
+
};
|
|
1225
|
+
os.value = us(t) !== e, G.value = t, Za.value = { ...t }, ls = {}, ss = null, eo(), cs && cancelAnimationFrame(cs), cs = requestAnimationFrame(() => {
|
|
1226
|
+
os.value = !1, cs = null;
|
|
1227
|
+
});
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
function ps(e) {
|
|
1231
|
+
if (es.value || as.value) return;
|
|
1211
1232
|
let t = Number(e);
|
|
1212
1233
|
ji("zoomStart", {
|
|
1213
1234
|
index: t,
|
|
1214
|
-
isZoom: St(t,
|
|
1215
|
-
}), Number.isFinite(t) && t !== G.value.start && (
|
|
1235
|
+
isZoom: St(t, ns.value)
|
|
1236
|
+
}), Number.isFinite(t) && t !== G.value.start && fs({ start: t });
|
|
1216
1237
|
}
|
|
1217
|
-
function
|
|
1218
|
-
if (
|
|
1238
|
+
function ms(e) {
|
|
1239
|
+
if (es.value || as.value) return;
|
|
1219
1240
|
if (q.value) {
|
|
1220
1241
|
let t = Number(e);
|
|
1221
1242
|
if (!Number.isFinite(t)) return;
|
|
1222
|
-
let n = Math.max(Number(G.value.start) + 1 / 10 ** H.value.chart.grid.labels.xAxis.rounding, Math.min(t,
|
|
1243
|
+
let n = Math.max(Number(G.value.start) + 1 / 10 ** H.value.chart.grid.labels.xAxis.rounding, Math.min(t, Mc.value.max));
|
|
1223
1244
|
if (ji("zoomEnd", {
|
|
1224
1245
|
index: n,
|
|
1225
|
-
isZoom: St(n,
|
|
1246
|
+
isZoom: St(n, rs.value)
|
|
1226
1247
|
}), n === G.value.end) return;
|
|
1227
|
-
|
|
1248
|
+
fs({ end: n });
|
|
1228
1249
|
return;
|
|
1229
1250
|
}
|
|
1230
|
-
let t =
|
|
1251
|
+
let t = $o(e);
|
|
1231
1252
|
ji("zoomEnd", {
|
|
1232
1253
|
index: t,
|
|
1233
|
-
isZoom: St(t,
|
|
1234
|
-
}), t !== G.value.end && (
|
|
1254
|
+
isZoom: St(t, rs.value)
|
|
1255
|
+
}), t !== G.value.end && fs({ end: t });
|
|
1235
1256
|
}
|
|
1236
|
-
async function
|
|
1237
|
-
|
|
1257
|
+
async function hs() {
|
|
1258
|
+
let e = us();
|
|
1259
|
+
os.value = !0, await is(), us() === e ? os.value = !1 : (await it(), cs && cancelAnimationFrame(cs), cs = requestAnimationFrame(() => {
|
|
1260
|
+
os.value = !1, cs = null;
|
|
1261
|
+
})), ji("zoomReset");
|
|
1238
1262
|
}
|
|
1239
|
-
let
|
|
1240
|
-
function
|
|
1241
|
-
return e / (vt(
|
|
1263
|
+
let gs = S(() => K.value.max + go.value);
|
|
1264
|
+
function _s(e) {
|
|
1265
|
+
return e / (vt(gs.value) ? gs.value : 1);
|
|
1242
1266
|
}
|
|
1243
|
-
let
|
|
1244
|
-
function
|
|
1245
|
-
return
|
|
1267
|
+
let vs = S(() => H.value.chart.grid.labels.yAxis.reverse);
|
|
1268
|
+
function ys(e) {
|
|
1269
|
+
return vs.value ? 1 - e : e;
|
|
1246
1270
|
}
|
|
1247
|
-
function
|
|
1248
|
-
let r =
|
|
1271
|
+
function bs({ ratio: e, yOffset: t = 0, individualHeight: n }) {
|
|
1272
|
+
let r = ys(e);
|
|
1249
1273
|
return Y.value?.bottom - t - n * r;
|
|
1250
1274
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return
|
|
1275
|
+
function xs({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
|
|
1276
|
+
return bs({
|
|
1253
1277
|
ratio: (e - t) / (n - t || 1),
|
|
1254
1278
|
yOffset: r,
|
|
1255
1279
|
individualHeight: i
|
|
1256
1280
|
});
|
|
1257
1281
|
}
|
|
1258
|
-
let
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1282
|
+
let Ss = S(() => H.value.chart.grid.labels.xAxis.reverse);
|
|
1283
|
+
function Cs(e) {
|
|
1284
|
+
return Ss.value ? 1 - e : e;
|
|
1261
1285
|
}
|
|
1262
|
-
let
|
|
1263
|
-
function
|
|
1286
|
+
let ws = S(() => isNaN(_s(go.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * _s(go.value));
|
|
1287
|
+
function Ts(e) {
|
|
1264
1288
|
let t = K.value.min, n = K.value.max - t;
|
|
1265
1289
|
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
|
|
1266
1290
|
}
|
|
1267
|
-
let
|
|
1268
|
-
function
|
|
1269
|
-
let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
1270
|
-
return e.value >= 0 ? b(t - e.y <= 0 ? 1e-5 : t - e.y) : b(e.y -
|
|
1291
|
+
let Es = S(() => K.value.min <= 0 && K.value.max >= 0 ? Ts(0) : K.value.min > 0 ? Ts(K.value.min) : Ts(K.value.max));
|
|
1292
|
+
function Ds(e) {
|
|
1293
|
+
let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && mo.value >= 0 ? Y.value?.bottom : ws.value;
|
|
1294
|
+
return e.value >= 0 ? b(t - e.y <= 0 ? 1e-5 : t - e.y) : b(e.y - ws.value <= 0 ? 1e-5 : e.y - ws.value);
|
|
1271
1295
|
}
|
|
1272
|
-
function
|
|
1296
|
+
function Os(e) {
|
|
1273
1297
|
return e.value >= 0 ? b(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : b(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1274
1298
|
}
|
|
1275
|
-
let
|
|
1299
|
+
let ks = S(() => {
|
|
1276
1300
|
let e = Math.max(1, Z.value);
|
|
1277
1301
|
return {
|
|
1278
|
-
bar: Tt(Math.max(1, Y.value.width), e * Math.max(1,
|
|
1279
|
-
plot:
|
|
1280
|
-
line:
|
|
1302
|
+
bar: Tt(Math.max(1, Y.value.width), e * Math.max(1, yo.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
|
|
1303
|
+
plot: sc.value,
|
|
1304
|
+
line: sc.value
|
|
1281
1305
|
};
|
|
1282
1306
|
});
|
|
1283
|
-
function
|
|
1284
|
-
return U.value.useIndividualScale && U.value.isStacked ?
|
|
1307
|
+
function As() {
|
|
1308
|
+
return U.value.useIndividualScale && U.value.isStacked ? ks.value.line - Y.value.width / Z.value * .1 : ks.value.bar;
|
|
1285
1309
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x +
|
|
1310
|
+
function js(e) {
|
|
1311
|
+
return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + ks.value.bar / 2;
|
|
1288
1312
|
}
|
|
1289
|
-
function
|
|
1313
|
+
function Ms(e) {
|
|
1290
1314
|
return e.value >= 0 ? e.y : [
|
|
1291
1315
|
null,
|
|
1292
1316
|
void 0,
|
|
1293
1317
|
NaN,
|
|
1294
1318
|
Infinity,
|
|
1295
1319
|
-Infinity
|
|
1296
|
-
].includes(
|
|
1320
|
+
].includes(ws.value) ? Y?.bottom.value : ws.value;
|
|
1297
1321
|
}
|
|
1298
|
-
function
|
|
1322
|
+
function Ns(e) {
|
|
1299
1323
|
return e.value >= 0 ? e.y : [
|
|
1300
1324
|
null,
|
|
1301
1325
|
void 0,
|
|
@@ -1304,18 +1328,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1304
1328
|
-Infinity
|
|
1305
1329
|
].includes(e.zeroPosition) ? 0 : e.zeroPosition;
|
|
1306
1330
|
}
|
|
1307
|
-
let
|
|
1308
|
-
function
|
|
1309
|
-
let t =
|
|
1331
|
+
let Ps = O(null), Fs = O([]), Is = O(null), Ls = S(() => q.value ? [...new Set(xo.value.flatMap((e) => e.series || []).filter((e) => g(e?.x) && g(e?.y)).map((e) => Number(e.x)))].sort((e, t) => jc({ x: e }) - jc({ x: t })) : []);
|
|
1332
|
+
function Rs(e) {
|
|
1333
|
+
let t = Ls.value[e];
|
|
1310
1334
|
if (!g(t)) {
|
|
1311
|
-
|
|
1335
|
+
Fs.value = [], Is.value = null, xa.value = null, aa.value = !1;
|
|
1312
1336
|
return;
|
|
1313
1337
|
}
|
|
1314
|
-
|
|
1315
|
-
let n = De(
|
|
1338
|
+
To(Number(t));
|
|
1339
|
+
let n = De(jc({ x: Number(t) }), Y.value.top + Y.value.height / 2, z.value);
|
|
1316
1340
|
n && (Ca.value = n), B.value = e, Sa.value = e, aa.value = !0;
|
|
1317
1341
|
}
|
|
1318
|
-
function
|
|
1342
|
+
function zs(e) {
|
|
1319
1343
|
let t = z.value;
|
|
1320
1344
|
if (!t) return null;
|
|
1321
1345
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
@@ -1343,47 +1367,47 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1343
1367
|
ok: !0
|
|
1344
1368
|
};
|
|
1345
1369
|
}
|
|
1346
|
-
let
|
|
1347
|
-
function
|
|
1348
|
-
Sa.value = null, !ra.value && (
|
|
1349
|
-
|
|
1350
|
-
let t =
|
|
1370
|
+
let Bs = 0;
|
|
1371
|
+
function Vs(e) {
|
|
1372
|
+
Sa.value = null, !ra.value && (Bs && cancelAnimationFrame(Bs), Bs = requestAnimationFrame(() => {
|
|
1373
|
+
Bs = 0;
|
|
1374
|
+
let t = zs(e);
|
|
1351
1375
|
if (!t || !z.value) {
|
|
1352
|
-
|
|
1376
|
+
Hs();
|
|
1353
1377
|
return;
|
|
1354
1378
|
}
|
|
1355
1379
|
let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
|
|
1356
1380
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1357
|
-
|
|
1381
|
+
Hs();
|
|
1358
1382
|
return;
|
|
1359
1383
|
}
|
|
1360
1384
|
if (q.value) {
|
|
1361
|
-
|
|
1385
|
+
wo(t.x), Xc(!0, B.value ?? 0);
|
|
1362
1386
|
return;
|
|
1363
1387
|
}
|
|
1364
|
-
let s =
|
|
1365
|
-
s == null ?
|
|
1388
|
+
let s = pc(t.x);
|
|
1389
|
+
s == null ? Hs() : Ps.value !== s && (Ps.value = s, Xc(!0, s));
|
|
1366
1390
|
}));
|
|
1367
1391
|
}
|
|
1368
|
-
function
|
|
1369
|
-
|
|
1392
|
+
function Hs() {
|
|
1393
|
+
Bs &&= (cancelAnimationFrame(Bs), 0), Ps.value = null, R.value = null, xa.value = null, Xc(!1, null), Fs.value = [], Is.value = null;
|
|
1370
1394
|
}
|
|
1371
|
-
function
|
|
1372
|
-
let t =
|
|
1395
|
+
function Us(e) {
|
|
1396
|
+
let t = zs(e);
|
|
1373
1397
|
if (t && z.value) {
|
|
1374
1398
|
let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
|
|
1375
1399
|
if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
|
|
1376
|
-
let e =
|
|
1400
|
+
let e = pc(t.x);
|
|
1377
1401
|
if (e != null) {
|
|
1378
|
-
|
|
1402
|
+
Ws(e);
|
|
1379
1403
|
return;
|
|
1380
1404
|
}
|
|
1381
1405
|
}
|
|
1382
1406
|
}
|
|
1383
|
-
|
|
1407
|
+
Ps.value != null && Ws(Ps.value);
|
|
1384
1408
|
}
|
|
1385
|
-
function
|
|
1386
|
-
let t =
|
|
1409
|
+
function Ws(e) {
|
|
1410
|
+
let t = xo.value.map((t) => ({
|
|
1387
1411
|
name: t.name,
|
|
1388
1412
|
value: [
|
|
1389
1413
|
null,
|
|
@@ -1402,15 +1426,15 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1402
1426
|
seriesIndex: e + G.value.start
|
|
1403
1427
|
});
|
|
1404
1428
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return
|
|
1429
|
+
function Gs() {
|
|
1430
|
+
return bo.value.map((e) => ({
|
|
1407
1431
|
values: e.absoluteValues,
|
|
1408
1432
|
color: e.color,
|
|
1409
1433
|
name: e.name,
|
|
1410
1434
|
type: e.type
|
|
1411
1435
|
}));
|
|
1412
1436
|
}
|
|
1413
|
-
async function
|
|
1437
|
+
async function Ks({ scale: e = 2 } = {}) {
|
|
1414
1438
|
if (!Li.value) return;
|
|
1415
1439
|
let { width: t, height: n } = Li.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
|
|
1416
1440
|
domElement: Li.value,
|
|
@@ -1427,44 +1451,44 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1427
1451
|
aspectRatio: r
|
|
1428
1452
|
};
|
|
1429
1453
|
}
|
|
1430
|
-
function
|
|
1431
|
-
I.value.length ? I.value = [] :
|
|
1454
|
+
function qs() {
|
|
1455
|
+
I.value.length ? I.value = [] : bo.value.forEach((e) => {
|
|
1432
1456
|
I.value.push(e.id);
|
|
1433
|
-
}),
|
|
1457
|
+
}), Ys();
|
|
1434
1458
|
}
|
|
1435
|
-
function
|
|
1436
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
1459
|
+
function Js(e, t) {
|
|
1460
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Xs(t));
|
|
1437
1461
|
}
|
|
1438
|
-
function
|
|
1439
|
-
ji("selectLegend",
|
|
1462
|
+
function Ys() {
|
|
1463
|
+
ji("selectLegend", xo.value.map((e) => ({
|
|
1440
1464
|
name: e.name,
|
|
1441
1465
|
values: e.absoluteValues,
|
|
1442
1466
|
color: e.color,
|
|
1443
1467
|
type: e.type
|
|
1444
1468
|
})));
|
|
1445
1469
|
}
|
|
1446
|
-
function
|
|
1470
|
+
function Xs(e) {
|
|
1447
1471
|
if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
|
|
1448
1472
|
else {
|
|
1449
|
-
if (I.value.length + 1 ===
|
|
1473
|
+
if (I.value.length + 1 === yo.value.length) return;
|
|
1450
1474
|
I.value.push(e.id);
|
|
1451
1475
|
}
|
|
1452
|
-
|
|
1476
|
+
Ys(), da.value += 1;
|
|
1453
1477
|
}
|
|
1454
|
-
function
|
|
1455
|
-
return
|
|
1478
|
+
function Zs(e) {
|
|
1479
|
+
return bo.value.length ? bo.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
|
|
1456
1480
|
}
|
|
1457
|
-
function
|
|
1458
|
-
let t =
|
|
1459
|
-
t !== null && I.value.includes(t.id) &&
|
|
1481
|
+
function Qs(e) {
|
|
1482
|
+
let t = Zs(e);
|
|
1483
|
+
t !== null && I.value.includes(t.id) && Xs({ id: t.id });
|
|
1460
1484
|
}
|
|
1461
|
-
function
|
|
1462
|
-
let t =
|
|
1463
|
-
t !== null && (I.value.includes(t.id) ||
|
|
1485
|
+
function $s(e) {
|
|
1486
|
+
let t = Zs(e);
|
|
1487
|
+
t !== null && (I.value.includes(t.id) || Xs({ id: t.id }));
|
|
1464
1488
|
}
|
|
1465
|
-
let
|
|
1489
|
+
let ec = S(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), tc = S(() => ({ linePlot: Z.value > H.value.line.dot.hideAboveMaxSerieLength })), nc = S(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), rc = S(() => {
|
|
1466
1490
|
if (Array.isArray(H.value.chart.highlightArea)) return H.value.chart.highlightArea.map((e) => {
|
|
1467
|
-
let t = Math.min(e.to,
|
|
1491
|
+
let t = Math.min(e.to, Xa.value - 1);
|
|
1468
1492
|
return {
|
|
1469
1493
|
...e,
|
|
1470
1494
|
span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
|
|
@@ -1472,18 +1496,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1472
1496
|
});
|
|
1473
1497
|
let e = {
|
|
1474
1498
|
...H.value.chart.highlightArea,
|
|
1475
|
-
to: Math.min(H.value.chart.highlightArea.to,
|
|
1499
|
+
to: Math.min(H.value.chart.highlightArea.to, Xa.value - 1)
|
|
1476
1500
|
};
|
|
1477
1501
|
return [{
|
|
1478
1502
|
...e,
|
|
1479
1503
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1480
1504
|
}];
|
|
1481
|
-
}),
|
|
1505
|
+
}), ic = S(() => Qi.value ? W.value.map((e, t) => ({
|
|
1482
1506
|
...e,
|
|
1483
|
-
series:
|
|
1507
|
+
series: Ya(e.series),
|
|
1484
1508
|
id: `uniqueId_${t}`,
|
|
1485
|
-
color: Te(e.color ? e.color :
|
|
1486
|
-
})) : W.value),
|
|
1509
|
+
color: Te(e.color ? e.color : so.value[t] ? so.value[t] : p[t])
|
|
1510
|
+
})) : W.value), ac = S(() => xo.value.map((e) => {
|
|
1487
1511
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1488
1512
|
return {
|
|
1489
1513
|
id: e.id,
|
|
@@ -1491,7 +1515,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1491
1515
|
color: e.color,
|
|
1492
1516
|
values: yt(Z.value, t)
|
|
1493
1517
|
};
|
|
1494
|
-
})),
|
|
1518
|
+
})), oc = S(() => ({
|
|
1495
1519
|
responsiveBreakpoint: H.value.table.responsiveBreakpoint,
|
|
1496
1520
|
roundingValues: H.value.table.rounding,
|
|
1497
1521
|
showAverage: !1,
|
|
@@ -1500,7 +1524,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1500
1524
|
fontFamily: H.value.chart.fontFamily,
|
|
1501
1525
|
prefix: H.value.chart.labels.prefix,
|
|
1502
1526
|
suffix: H.value.chart.labels.suffix,
|
|
1503
|
-
colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text :
|
|
1527
|
+
colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Wc.value(t + G.value.start, H.value.table.timeFormat)),
|
|
1504
1528
|
thead: {
|
|
1505
1529
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
1506
1530
|
color: H.value.table.th.color,
|
|
@@ -1513,42 +1537,42 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1513
1537
|
},
|
|
1514
1538
|
userOptions: { show: !1 },
|
|
1515
1539
|
sparkline: { animation: { show: !1 } }
|
|
1516
|
-
})),
|
|
1540
|
+
})), sc = S(() => {
|
|
1517
1541
|
let e = Math.max(0, Y.value?.width || 0);
|
|
1518
1542
|
return H.value.chart.grid.position === "middle" ? Tt(e, Math.max(1, Z.value), 1) : Tt(e, Math.max(1, Z.value - 1), 0);
|
|
1519
|
-
}),
|
|
1520
|
-
function
|
|
1543
|
+
}), cc = S(() => H.value.chart.grid.position === "middle" ? sc.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : sc.value);
|
|
1544
|
+
function lc(e) {
|
|
1521
1545
|
let t = Y.value?.left || 0;
|
|
1522
|
-
return H.value.chart.grid.position === "middle" ? t +
|
|
1546
|
+
return H.value.chart.grid.position === "middle" ? t + sc.value / 2 + sc.value * e : t + sc.value * e;
|
|
1523
1547
|
}
|
|
1524
|
-
function
|
|
1548
|
+
function uc(e) {
|
|
1525
1549
|
let t = Y.value?.left || 0;
|
|
1526
|
-
return H.value.chart.grid.position === "middle" ? t +
|
|
1550
|
+
return H.value.chart.grid.position === "middle" ? t + sc.value * e : Z.value <= 1 ? t : t + sc.value * e - sc.value / 2;
|
|
1527
1551
|
}
|
|
1528
|
-
function
|
|
1529
|
-
return Math.max(Y.value?.left || 0,
|
|
1552
|
+
function dc(e) {
|
|
1553
|
+
return Math.max(Y.value?.left || 0, uc(e));
|
|
1530
1554
|
}
|
|
1531
|
-
function
|
|
1532
|
-
let t = Y.value?.left || 0, n = Y.value?.right || 0, r =
|
|
1555
|
+
function fc(e) {
|
|
1556
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0, r = uc(e), i = r + cc.value;
|
|
1533
1557
|
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1534
1558
|
}
|
|
1535
|
-
function
|
|
1559
|
+
function pc(e) {
|
|
1536
1560
|
let t = Y.value?.left || 0, n = Y.value?.right || 0;
|
|
1537
1561
|
for (let r = 0; r < Z.value; r += 1) {
|
|
1538
|
-
let i = Math.max(t,
|
|
1562
|
+
let i = Math.max(t, uc(r)), a = Math.min(n, uc(r) + cc.value);
|
|
1539
1563
|
if (e >= i && e <= a) return r;
|
|
1540
1564
|
}
|
|
1541
1565
|
return null;
|
|
1542
1566
|
}
|
|
1543
|
-
function
|
|
1544
|
-
let t = Y.value?.left || 0, n = Y.value?.right || 0, r =
|
|
1567
|
+
function mc(e) {
|
|
1568
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0, r = uc(e), i = r + cc.value;
|
|
1545
1569
|
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1546
1570
|
}
|
|
1547
|
-
function
|
|
1548
|
-
return Math.max(1e-5,
|
|
1571
|
+
function hc(e) {
|
|
1572
|
+
return Math.max(1e-5, cc.value * e);
|
|
1549
1573
|
}
|
|
1550
|
-
let
|
|
1551
|
-
let e = bt(
|
|
1574
|
+
let gc = S(() => _(bo.value.filter((e) => !I.value.includes(e.id)))), Q = S(() => {
|
|
1575
|
+
let e = bt(gc.value, (e) => e.scaleLabel), t = {};
|
|
1552
1576
|
for (let [n, r] of Object.entries(e)) {
|
|
1553
1577
|
let e = r.flatMap((e) => e.absoluteValues);
|
|
1554
1578
|
t[n] = {
|
|
@@ -1558,19 +1582,19 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1558
1582
|
};
|
|
1559
1583
|
}
|
|
1560
1584
|
return t;
|
|
1561
|
-
}),
|
|
1562
|
-
let e =
|
|
1563
|
-
return Y.value.width / Z.value / e -
|
|
1564
|
-
}),
|
|
1585
|
+
}), _c = S(() => {
|
|
1586
|
+
let e = yo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
|
|
1587
|
+
return Y.value.width / Z.value / e - vc.value * e;
|
|
1588
|
+
}), vc = S(() => ks.value.line * H.value.bar.periodGap), yc = S(() => Math.max(1e-5, As() - (U.value.useIndividualScale && U.value.isStacked ? 0 : vc.value))), bc = S(() => yc.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), xc = S(() => {
|
|
1565
1589
|
if (!H.value.chart.zoom.minimap.show) return [];
|
|
1566
|
-
let e =
|
|
1590
|
+
let e = ic.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
1567
1591
|
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
1568
1592
|
let r = Math.min(...n);
|
|
1569
1593
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1570
|
-
}),
|
|
1594
|
+
}), Sc = S(() => H.value.chart.zoom.minimap.show ? ic.value.map((e) => ({
|
|
1571
1595
|
...e,
|
|
1572
1596
|
isVisible: !I.value.includes(e.id)
|
|
1573
|
-
})) : []),
|
|
1597
|
+
})) : []), Cc = S(() => q.value ? Fs.value.map((e) => ({
|
|
1574
1598
|
slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
|
|
1575
1599
|
shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
|
|
1576
1600
|
name: e.datapoint.name,
|
|
@@ -1581,7 +1605,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1581
1605
|
comments: e.datapoint.comments || [],
|
|
1582
1606
|
prefix: e.datapoint.prefix || H.value.chart.labels.prefix,
|
|
1583
1607
|
suffix: e.datapoint.suffix || H.value.chart.labels.suffix
|
|
1584
|
-
})) :
|
|
1608
|
+
})) : xo.value.map((e) => ({
|
|
1585
1609
|
slotAbsoluteIndex: e.slotAbsoluteIndex,
|
|
1586
1610
|
shape: e.shape || e.type === "bar" ? "square" : "circle",
|
|
1587
1611
|
name: e.name,
|
|
@@ -1591,22 +1615,22 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1591
1615
|
comments: e.comments || [],
|
|
1592
1616
|
prefix: e.prefix || H.value.chart.labels.prefix,
|
|
1593
1617
|
suffix: e.suffix || H.value.chart.labels.suffix
|
|
1594
|
-
}))),
|
|
1595
|
-
let t = e >= 0 ?
|
|
1618
|
+
}))), wc = S(() => K.value.ticks.map((e) => {
|
|
1619
|
+
let t = e >= 0 ? ws.value - Y.value.height * _s(e) : ws.value + Y.value.height * _s(Math.abs(e));
|
|
1596
1620
|
return {
|
|
1597
|
-
y:
|
|
1621
|
+
y: vs.value ? Y.value.top + Y.value.bottom - t : t,
|
|
1598
1622
|
value: e,
|
|
1599
1623
|
prefix: H.value.chart.labels.prefix,
|
|
1600
1624
|
suffix: H.value.chart.labels.suffix
|
|
1601
1625
|
};
|
|
1602
|
-
})),
|
|
1626
|
+
})), Tc = S(() => {
|
|
1603
1627
|
let e = H.value.chart.annotations;
|
|
1604
1628
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1605
1629
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
1606
1630
|
if (!t.length) return [];
|
|
1607
|
-
let { left: n, right: r } = Y.value, i =
|
|
1631
|
+
let { left: n, right: r } = Y.value, i = ws.value, a = Y.value.height, o = K.value.min, c = K.value.max - o, l = (e) => i - (e - 0) / c * a;
|
|
1608
1632
|
return t.map((e) => {
|
|
1609
|
-
let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee =
|
|
1633
|
+
let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = Fo(a.fontSize);
|
|
1610
1634
|
ee.font = `${a.fontSize}px sans-serif`;
|
|
1611
1635
|
let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, ne;
|
|
1612
1636
|
ne = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
|
|
@@ -1643,12 +1667,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1643
1667
|
};
|
|
1644
1668
|
});
|
|
1645
1669
|
});
|
|
1646
|
-
function
|
|
1670
|
+
function Ec(e, t) {
|
|
1647
1671
|
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;
|
|
1648
1672
|
return vt(e[t].value) && i && H.value.line.cutNullValues;
|
|
1649
1673
|
}
|
|
1650
|
-
let
|
|
1651
|
-
let e =
|
|
1674
|
+
let Dc = S(() => {
|
|
1675
|
+
let e = yo.value.flatMap((e) => e.series.map((e) => e.x)).filter(Number.isFinite);
|
|
1652
1676
|
if (!e.length) return {
|
|
1653
1677
|
min: 0,
|
|
1654
1678
|
max: 1
|
|
@@ -1658,15 +1682,15 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1658
1682
|
min: t,
|
|
1659
1683
|
max: t === n ? n + 1 : n
|
|
1660
1684
|
};
|
|
1661
|
-
}),
|
|
1662
|
-
let e = H.value.chart.grid.labels.xAxis.commonScaleSteps, t = H.value.chart.grid.labels.xAxis.scaleMin, n = H.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) :
|
|
1685
|
+
}), Oc = S(() => {
|
|
1686
|
+
let e = H.value.chart.grid.labels.xAxis.commonScaleSteps, t = H.value.chart.grid.labels.xAxis.scaleMin, n = H.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : Dc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : Dc.value.max, a = H.value.chart.grid.labels.xAxis.useNiceScale ? fe(r, i, e) : ue(r, i, e);
|
|
1663
1687
|
if (H.value.chart.grid.position !== "start") return a;
|
|
1664
1688
|
let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
|
|
1665
1689
|
return {
|
|
1666
1690
|
...a,
|
|
1667
1691
|
max: a.max + o
|
|
1668
1692
|
};
|
|
1669
|
-
}),
|
|
1693
|
+
}), kc = S(() => q.value ? (Ss.value ? [...Oc.value.ticks].reverse() : [...Oc.value.ticks]).map((e, t) => ({
|
|
1670
1694
|
id: `continuous_x_label_${t}`,
|
|
1671
1695
|
text: v(H.value.chart.grid.labels.xAxis.formatter, e, o({
|
|
1672
1696
|
v: e,
|
|
@@ -1678,17 +1702,17 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1678
1702
|
seriesIndex: t
|
|
1679
1703
|
}),
|
|
1680
1704
|
value: e,
|
|
1681
|
-
x:
|
|
1705
|
+
x: jc({ x: e }),
|
|
1682
1706
|
index: t
|
|
1683
|
-
})) :
|
|
1684
|
-
function
|
|
1685
|
-
return q.value ? e.x :
|
|
1707
|
+
})) : Go.value);
|
|
1708
|
+
function Ac(e, t) {
|
|
1709
|
+
return q.value ? e.x : lc(t);
|
|
1686
1710
|
}
|
|
1687
|
-
function
|
|
1688
|
-
let t =
|
|
1711
|
+
function jc({ x: e }) {
|
|
1712
|
+
let t = Oc.value.max - Oc.value.min || 1, n = Cs((e - Oc.value.min) / t);
|
|
1689
1713
|
return Y.value.left + Y.value.width * n;
|
|
1690
1714
|
}
|
|
1691
|
-
let
|
|
1715
|
+
let Mc = S(() => {
|
|
1692
1716
|
let e = W.value.flatMap((e) => e.series || []).filter(xt).map((e) => Number(e.x)).filter(Number.isFinite);
|
|
1693
1717
|
if (!e.length) return {
|
|
1694
1718
|
min: 0,
|
|
@@ -1699,11 +1723,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1699
1723
|
min: t,
|
|
1700
1724
|
max: t === n ? n + 1 : n
|
|
1701
1725
|
};
|
|
1702
|
-
}),
|
|
1703
|
-
function
|
|
1704
|
-
return q.value ? e.x == null || e.y == null ? null :
|
|
1726
|
+
}), Nc = S(() => q.value ? Mc.value.min : 0), Pc = S(() => q.value ? Mc.value.max : Xa.value);
|
|
1727
|
+
function Fc(e, t) {
|
|
1728
|
+
return q.value ? e.x == null || e.y == null ? null : jc(e) : lc(t);
|
|
1705
1729
|
}
|
|
1706
|
-
function
|
|
1730
|
+
function Ic({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1707
1731
|
let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ? ue : fe, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), ne = d.max + Math.abs(p), m = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = U.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = U.value.isStacked ? r * ae + n * ie : 0, h = U.value.isStacked ? r * e.stackRatio : Y.value.height;
|
|
1708
1732
|
return {
|
|
1709
1733
|
scaleSteps: c,
|
|
@@ -1719,14 +1743,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1719
1743
|
autoScaleZeroPosition: Y.value?.bottom - oe - h * 0 / m
|
|
1720
1744
|
};
|
|
1721
1745
|
}
|
|
1722
|
-
let
|
|
1723
|
-
let e =
|
|
1746
|
+
let Lc = S(() => {
|
|
1747
|
+
let e = gc.value.filter((e) => [
|
|
1724
1748
|
"bar",
|
|
1725
1749
|
"line",
|
|
1726
1750
|
"plot"
|
|
1727
1751
|
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
|
|
1728
1752
|
return e.filter((e) => e.type === "bar").map((e, r) => {
|
|
1729
|
-
|
|
1753
|
+
Qo(e);
|
|
1730
1754
|
let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
|
|
1731
1755
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
|
|
1732
1756
|
valueMin: a,
|
|
@@ -1734,7 +1758,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1734
1758
|
}, c = {
|
|
1735
1759
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1736
1760
|
min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
|
|
1737
|
-
}, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: m } =
|
|
1761
|
+
}, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: m } = Ic({
|
|
1738
1762
|
datapoint: e,
|
|
1739
1763
|
totalSeries: t,
|
|
1740
1764
|
gap: n,
|
|
@@ -1742,13 +1766,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1742
1766
|
autoScaleValueMin: s.valueMin,
|
|
1743
1767
|
autoScaleValueMax: s.valueMax,
|
|
1744
1768
|
individualExtremes: c
|
|
1745
|
-
}), re =
|
|
1746
|
-
let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te :
|
|
1769
|
+
}), re = bo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
|
|
1770
|
+
let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : _s(t), a = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + ks.value.bar * r + ks.value.bar * n * re - _c.value / 2 - r * vc.value;
|
|
1747
1771
|
return {
|
|
1748
1772
|
yOffset: b(f),
|
|
1749
1773
|
individualHeight: b(p),
|
|
1750
1774
|
x: b(a),
|
|
1751
|
-
y:
|
|
1775
|
+
y: bs({
|
|
1752
1776
|
ratio: i,
|
|
1753
1777
|
yOffset: f,
|
|
1754
1778
|
individualHeight: p
|
|
@@ -1759,12 +1783,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1759
1783
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1760
1784
|
};
|
|
1761
1785
|
}), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
|
|
1762
|
-
let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left -
|
|
1786
|
+
let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - ks.value.bar / 2 + ks.value.bar * r + ks.value.bar * n * bo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
|
|
1763
1787
|
return {
|
|
1764
1788
|
yOffset: b(f),
|
|
1765
1789
|
individualHeight: b(p),
|
|
1766
1790
|
x: b(i),
|
|
1767
|
-
y: b(
|
|
1791
|
+
y: b(bs({
|
|
1768
1792
|
ratio: ae[n] || 0,
|
|
1769
1793
|
yOffset: b(f),
|
|
1770
1794
|
individualHeight: b(p)
|
|
@@ -1775,7 +1799,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1775
1799
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1776
1800
|
};
|
|
1777
1801
|
}), h = l.ticks.map((t) => ({
|
|
1778
|
-
y:
|
|
1802
|
+
y: xs({
|
|
1779
1803
|
value: t,
|
|
1780
1804
|
scaleMin: l.min,
|
|
1781
1805
|
scaleMax: l.max,
|
|
@@ -1787,7 +1811,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1787
1811
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
1788
1812
|
datapoint: e
|
|
1789
1813
|
})), se = u.ticks.map((t) => ({
|
|
1790
|
-
y:
|
|
1814
|
+
y: bs({
|
|
1791
1815
|
ratio: (t - u.min) / (u.max - u.min || 1),
|
|
1792
1816
|
yOffset: f,
|
|
1793
1817
|
individualHeight: p
|
|
@@ -1797,7 +1821,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1797
1821
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
1798
1822
|
datapoint: e
|
|
1799
1823
|
}));
|
|
1800
|
-
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : ne, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique =
|
|
1824
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : ne, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = gc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
1801
1825
|
...e,
|
|
1802
1826
|
yOffset: f,
|
|
1803
1827
|
autoScaleYLabels: se,
|
|
@@ -1811,13 +1835,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1811
1835
|
};
|
|
1812
1836
|
});
|
|
1813
1837
|
}), $ = S(() => {
|
|
1814
|
-
let e =
|
|
1838
|
+
let e = gc.value.filter((e) => [
|
|
1815
1839
|
"bar",
|
|
1816
1840
|
"line",
|
|
1817
1841
|
"plot"
|
|
1818
1842
|
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a = Y.value.height - r;
|
|
1819
1843
|
return e.filter((e) => e.type === "line").map((e, r) => {
|
|
1820
|
-
|
|
1844
|
+
Qo(e);
|
|
1821
1845
|
let o = Q.value[e.scaleLabel].min, s = Q.value[e.scaleLabel].max, c = {
|
|
1822
1846
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (s - o)),
|
|
1823
1847
|
valueMin: o,
|
|
@@ -1825,7 +1849,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1825
1849
|
}, u = {
|
|
1826
1850
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1827
1851
|
min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
|
|
1828
|
-
}, { individualScale: d, autoScaleSteps: p, individualZero: ne, individualMax: m, autoScaleMax: ie, yOffset: oe, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: g } =
|
|
1852
|
+
}, { individualScale: d, autoScaleSteps: p, individualZero: ne, individualMax: m, autoScaleMax: ie, yOffset: oe, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: g } = Ic({
|
|
1829
1853
|
datapoint: e,
|
|
1830
1854
|
totalSeries: t,
|
|
1831
1855
|
gap: n,
|
|
@@ -1841,11 +1865,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1841
1865
|
value: null,
|
|
1842
1866
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1843
1867
|
};
|
|
1844
|
-
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(ne)) / m :
|
|
1868
|
+
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(ne)) / m : _s(vo(t));
|
|
1845
1869
|
return {
|
|
1846
1870
|
index: n,
|
|
1847
|
-
x: b(
|
|
1848
|
-
y: b(
|
|
1871
|
+
x: b(Fc(t, n)),
|
|
1872
|
+
y: b(bs({
|
|
1849
1873
|
ratio: r,
|
|
1850
1874
|
yOffset: oe,
|
|
1851
1875
|
individualHeight: h
|
|
@@ -1861,14 +1885,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1861
1885
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1862
1886
|
} : [void 0, null].includes(e.absoluteValues[n]) ? {
|
|
1863
1887
|
index: n,
|
|
1864
|
-
x: b(
|
|
1888
|
+
x: b(Fc(t, n)),
|
|
1865
1889
|
y: se,
|
|
1866
1890
|
value: e.absoluteValues[n],
|
|
1867
1891
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1868
1892
|
} : {
|
|
1869
1893
|
index: n,
|
|
1870
|
-
x: b(
|
|
1871
|
-
y: b(
|
|
1894
|
+
x: b(Fc(t, n)),
|
|
1895
|
+
y: b(bs({
|
|
1872
1896
|
ratio: ce[n] || 0,
|
|
1873
1897
|
yOffset: oe,
|
|
1874
1898
|
individualHeight: h
|
|
@@ -1876,7 +1900,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1876
1900
|
value: e.absoluteValues[n],
|
|
1877
1901
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1878
1902
|
}), ue = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, de = H.value.line.cutNullValues ? he(_) : _e(_.filter((e) => e.value !== null)), fe = H.value.line.cutNullValues ? he(le) : _e(le.filter((e) => e.value !== null)), pe = H.value.line.cutNullValues ? ee(_) : l(_.filter((e) => e.value !== null)), v = H.value.line.cutNullValues ? ee(le) : l(le.filter((e) => e.value !== null)), me = i(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ge = i(H.value.line.cutNullValues ? le : le.filter((e) => e.value !== null)), ve = ue ? re(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null), e.dashIndices.map((e) => e - G.value.start)) : [], ye = ue ? te(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null), e.dashIndices.map((e) => e - G.value.start)) : [], y = d.ticks.map((t) => ({
|
|
1879
|
-
y:
|
|
1903
|
+
y: xs({
|
|
1880
1904
|
value: t,
|
|
1881
1905
|
scaleMin: d.min,
|
|
1882
1906
|
scaleMax: d.max,
|
|
@@ -1888,7 +1912,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1888
1912
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
1889
1913
|
datapoint: e
|
|
1890
1914
|
})), be = p.ticks.map((t) => ({
|
|
1891
|
-
y:
|
|
1915
|
+
y: bs({
|
|
1892
1916
|
ratio: (t - p.min) / (p.max - p.min || 1),
|
|
1893
1917
|
yOffset: oe,
|
|
1894
1918
|
individualHeight: h
|
|
@@ -1898,8 +1922,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1898
1922
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
1899
1923
|
datapoint: e
|
|
1900
1924
|
}));
|
|
1901
|
-
Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? be : y, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? g : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : m, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = oe, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = be, Q.value[e.scaleLabel].unique =
|
|
1902
|
-
let xe = U.value.useIndividualScale ? e.autoScaling ? g : se :
|
|
1925
|
+
Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? be : y, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? g : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : m, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = oe, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = be, Q.value[e.scaleLabel].unique = gc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
|
|
1926
|
+
let xe = U.value.useIndividualScale ? e.autoScaling ? g : se : lo.value, Se = Math.max(Math.max(e.autoScaling ? g : y.at(-1) ? y.at(-1).y : 0, Y.value?.top), xe), we = e.autoScaling ? le : _, Ee = H.value.line.cutNullValues ? we : we.filter((e) => e.value !== null), De = e.absoluteValues.filter((e) => ![
|
|
1903
1927
|
null,
|
|
1904
1928
|
void 0,
|
|
1905
1929
|
NaN
|
|
@@ -1926,14 +1950,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1926
1950
|
groupId: Q.value[e.scaleLabel].groupId
|
|
1927
1951
|
};
|
|
1928
1952
|
});
|
|
1929
|
-
}),
|
|
1930
|
-
let e =
|
|
1953
|
+
}), Rc = S(() => {
|
|
1954
|
+
let e = gc.value.filter((e) => [
|
|
1931
1955
|
"bar",
|
|
1932
1956
|
"line",
|
|
1933
1957
|
"plot"
|
|
1934
1958
|
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
|
|
1935
1959
|
return e.filter((e) => e.type === "plot").map((e) => {
|
|
1936
|
-
|
|
1960
|
+
Qo(e);
|
|
1937
1961
|
let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
|
|
1938
1962
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
|
|
1939
1963
|
valueMin: r,
|
|
@@ -1941,7 +1965,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1941
1965
|
}, s = {
|
|
1942
1966
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1943
1967
|
min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
|
|
1944
|
-
}, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } =
|
|
1968
|
+
}, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } = Ic({
|
|
1945
1969
|
datapoint: e,
|
|
1946
1970
|
totalSeries: t,
|
|
1947
1971
|
gap: n,
|
|
@@ -1958,11 +1982,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1958
1982
|
value: null,
|
|
1959
1983
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1960
1984
|
};
|
|
1961
|
-
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee :
|
|
1985
|
+
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : _s(vo(t));
|
|
1962
1986
|
return {
|
|
1963
1987
|
index: n,
|
|
1964
|
-
x: b(
|
|
1965
|
-
y: b(
|
|
1988
|
+
x: b(Fc(t, n)),
|
|
1989
|
+
y: b(bs({
|
|
1966
1990
|
ratio: r,
|
|
1967
1991
|
yOffset: d,
|
|
1968
1992
|
individualHeight: f
|
|
@@ -1978,8 +2002,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1978
2002
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1979
2003
|
} : {
|
|
1980
2004
|
index: n,
|
|
1981
|
-
x: b(
|
|
1982
|
-
y: b(
|
|
2005
|
+
x: b(Fc(t, n)),
|
|
2006
|
+
y: b(bs({
|
|
1983
2007
|
ratio: re[n] || 0,
|
|
1984
2008
|
yOffset: d,
|
|
1985
2009
|
individualHeight: f
|
|
@@ -1987,7 +2011,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1987
2011
|
value: e.absoluteValues[n],
|
|
1988
2012
|
comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
|
|
1989
2013
|
}), ae = c.ticks.map((t) => ({
|
|
1990
|
-
y:
|
|
2014
|
+
y: xs({
|
|
1991
2015
|
value: t,
|
|
1992
2016
|
scaleMin: c.min,
|
|
1993
2017
|
scaleMax: c.max,
|
|
@@ -1999,7 +2023,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
1999
2023
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
2000
2024
|
datapoint: e
|
|
2001
2025
|
})), oe = l.ticks.map((t) => ({
|
|
2002
|
-
y:
|
|
2026
|
+
y: bs({
|
|
2003
2027
|
ratio: (t - l.min) / (l.max - l.min || 1),
|
|
2004
2028
|
yOffset: d,
|
|
2005
2029
|
individualHeight: f
|
|
@@ -2009,7 +2033,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2009
2033
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
2010
2034
|
datapoint: e
|
|
2011
2035
|
}));
|
|
2012
|
-
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique =
|
|
2036
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = gc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
2013
2037
|
...e,
|
|
2014
2038
|
yOffset: d,
|
|
2015
2039
|
autoScaleYLabels: oe,
|
|
@@ -2022,7 +2046,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2022
2046
|
groupId: Q.value[e.scaleLabel].groupId
|
|
2023
2047
|
};
|
|
2024
2048
|
});
|
|
2025
|
-
}),
|
|
2049
|
+
}), zc = S(() => {
|
|
2026
2050
|
let e = $.value.map((e) => ({
|
|
2027
2051
|
name: e.name,
|
|
2028
2052
|
color: e.color,
|
|
@@ -2035,7 +2059,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2035
2059
|
yOffset: e.yOffset || 0,
|
|
2036
2060
|
individualHeight: e.individualHeight || Y.value.height,
|
|
2037
2061
|
autoScaleYLabels: e.autoScaleYLabels
|
|
2038
|
-
})), t =
|
|
2062
|
+
})), t = Lc.value.map((e) => ({
|
|
2039
2063
|
name: e.name,
|
|
2040
2064
|
color: e.color,
|
|
2041
2065
|
scale: e.individualScale,
|
|
@@ -2046,7 +2070,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2046
2070
|
id: e.id,
|
|
2047
2071
|
yOffset: e.yOffset || 0,
|
|
2048
2072
|
individualHeight: e.individualHeight || Y.value.height
|
|
2049
|
-
})), n =
|
|
2073
|
+
})), n = Rc.value.map((e) => ({
|
|
2050
2074
|
name: e.name,
|
|
2051
2075
|
color: e.color,
|
|
2052
2076
|
scale: e.individualScale,
|
|
@@ -2064,7 +2088,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2064
2088
|
], i = r.flatMap((e) => e).length;
|
|
2065
2089
|
return r.flatMap((e, t) => {
|
|
2066
2090
|
let n = 0;
|
|
2067
|
-
n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right +
|
|
2091
|
+
n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + jo() * t : Y.value?.left / i * (t + 1);
|
|
2068
2092
|
let r = U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
|
|
2069
2093
|
return {
|
|
2070
2094
|
unique: e.unique,
|
|
@@ -2078,7 +2102,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2078
2102
|
individualHeight: e.individualHeight,
|
|
2079
2103
|
x: n,
|
|
2080
2104
|
yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
|
|
2081
|
-
y:
|
|
2105
|
+
y: xs({
|
|
2082
2106
|
value: t,
|
|
2083
2107
|
scaleMin: e.scale.min,
|
|
2084
2108
|
scaleMax: e.scale.max,
|
|
@@ -2089,7 +2113,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2089
2113
|
}))
|
|
2090
2114
|
};
|
|
2091
2115
|
});
|
|
2092
|
-
}),
|
|
2116
|
+
}), Bc = S(() => {
|
|
2093
2117
|
let e = H.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
2094
2118
|
if (!t.length) return [];
|
|
2095
2119
|
let r = [];
|
|
@@ -2115,44 +2139,52 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2115
2139
|
});
|
|
2116
2140
|
});
|
|
2117
2141
|
}), r;
|
|
2118
|
-
}),
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2142
|
+
}), Vc = S(() => {
|
|
2143
|
+
let e = Fs.value[0]?.index ?? null, t = q.value ? e : B.value;
|
|
2144
|
+
return {
|
|
2145
|
+
timeLabel: q.value ? {
|
|
2146
|
+
text: String(Fs.value[0]?.point.raw?.x ?? Fs.value[0]?.point.x),
|
|
2147
|
+
absoluteIndex: e
|
|
2148
|
+
} : X.value[B.value],
|
|
2149
|
+
datapoint: Cc.value,
|
|
2150
|
+
seriesIndex: B.value,
|
|
2151
|
+
selectedIndex: t,
|
|
2152
|
+
absoluteIndex: q.value ? e : B.value + G.value.start,
|
|
2153
|
+
series: bo.value,
|
|
2154
|
+
bars: Lc.value,
|
|
2155
|
+
lines: $.value,
|
|
2156
|
+
plots: Rc.value,
|
|
2157
|
+
config: H.value
|
|
2158
|
+
};
|
|
2159
|
+
}), Hc = O({
|
|
2128
2160
|
months: [],
|
|
2129
2161
|
shortMonths: [],
|
|
2130
2162
|
days: [],
|
|
2131
2163
|
shortDays: []
|
|
2132
|
-
}),
|
|
2164
|
+
}), Uc = 0;
|
|
2133
2165
|
gt(() => {
|
|
2134
|
-
let e = ++
|
|
2166
|
+
let e = ++Uc, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
2135
2167
|
(async () => {
|
|
2136
2168
|
let n = await ke(t.locale).catch(() => ke("en"));
|
|
2137
|
-
e ===
|
|
2169
|
+
e === Uc && (Hc.value = n.data);
|
|
2138
2170
|
})();
|
|
2139
2171
|
});
|
|
2140
|
-
let
|
|
2172
|
+
let Wc = S(() => {
|
|
2141
2173
|
let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
|
|
2142
2174
|
useUTC: e.useUTC,
|
|
2143
|
-
locale:
|
|
2175
|
+
locale: Hc.value,
|
|
2144
2176
|
januaryAsYear: e.januaryAsYear
|
|
2145
2177
|
});
|
|
2146
2178
|
return (e, n) => {
|
|
2147
2179
|
let r = H.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
2148
2180
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
2149
2181
|
};
|
|
2150
|
-
}),
|
|
2151
|
-
text:
|
|
2182
|
+
}), Gc = S(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
2183
|
+
text: Wc.value(t, H.value.chart.zoom.timeFormat),
|
|
2152
2184
|
absoluteIndex: t
|
|
2153
|
-
}))),
|
|
2154
|
-
let e = "", t =
|
|
2155
|
-
v:
|
|
2185
|
+
}))), Kc = S(() => {
|
|
2186
|
+
let e = "", t = Cc.value.map((e) => e.value).filter((e) => de(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = q.value ? { text: v(H.value.chart.grid.labels.xAxis.formatter, Fs.value[0]?.point.raw?.x ?? Fs.value[0]?.point.x, o({
|
|
2187
|
+
v: Fs.value[0]?.point.raw?.x ?? Fs.value[0]?.point.x,
|
|
2156
2188
|
r: H.value.chart.tooltip.roundingValue
|
|
2157
2189
|
}), {
|
|
2158
2190
|
datapoint: null,
|
|
@@ -2161,29 +2193,29 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2161
2193
|
if (pe(i) && me(() => i({
|
|
2162
2194
|
absoluteIndex: B.value + G.value.start,
|
|
2163
2195
|
seriesIndex: B.value,
|
|
2164
|
-
datapoint:
|
|
2165
|
-
series:
|
|
2166
|
-
bars:
|
|
2196
|
+
datapoint: Cc.value,
|
|
2197
|
+
series: bo.value,
|
|
2198
|
+
bars: Lc.value,
|
|
2167
2199
|
lines: $.value,
|
|
2168
|
-
plots:
|
|
2200
|
+
plots: Rc.value,
|
|
2169
2201
|
config: H.value,
|
|
2170
2202
|
dateLabel: n
|
|
2171
2203
|
}))) return i({
|
|
2172
2204
|
absoluteIndex: B.value + G.value.start,
|
|
2173
2205
|
seriesIndex: B.value,
|
|
2174
|
-
datapoint:
|
|
2175
|
-
series:
|
|
2176
|
-
bars:
|
|
2206
|
+
datapoint: Cc.value,
|
|
2207
|
+
series: bo.value,
|
|
2208
|
+
bars: Lc.value,
|
|
2177
2209
|
lines: $.value,
|
|
2178
|
-
plots:
|
|
2210
|
+
plots: Rc.value,
|
|
2179
2211
|
config: H.value,
|
|
2180
2212
|
dateLabel: n
|
|
2181
2213
|
});
|
|
2182
2214
|
if (n && n.text && H.value.chart.tooltip.showTimeLabel) {
|
|
2183
|
-
let t =
|
|
2215
|
+
let t = Wc.value(B.value + G.value.start, H.value.chart.tooltip.timeFormat);
|
|
2184
2216
|
q.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${H.value.chart.tooltip.borderColor}; width:100%">${H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
|
|
2185
2217
|
}
|
|
2186
|
-
return
|
|
2218
|
+
return Cc.value.forEach((i) => {
|
|
2187
2219
|
if (de(i.value)) {
|
|
2188
2220
|
let a = "", s = "";
|
|
2189
2221
|
switch (na.value[i.type]) {
|
|
@@ -2335,7 +2367,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2335
2367
|
v: i.value,
|
|
2336
2368
|
s: i.suffix,
|
|
2337
2369
|
r: H.value.chart.tooltip.roundingValue
|
|
2338
|
-
}), { datapoint: i }) : "", l = H.value.chart.tooltip.showValue ? n
|
|
2370
|
+
}), { datapoint: i }) : "", l = H.value.chart.tooltip.showValue ? n?.text ?? "" : "", u = q.value ? `
|
|
2339
2371
|
<span>${H.value.chart.grid.labels.axis.xLabel || "X"}: </span>
|
|
2340
2372
|
<span>${l}</span>,
|
|
2341
2373
|
<span>${H.value.chart.grid.labels.axis.yLabel || "Y"}: </span>
|
|
@@ -2358,34 +2390,34 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2358
2390
|
})})` : ""}</div>`, H.value.chart.comments.showInTooltip && i.comments.length && i.comments.slice(G.value.start, G.value.end)[B.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${i.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${i.color}">${i.comments.slice(G.value.start, G.value.end)[B.value]}</div>`);
|
|
2359
2391
|
}
|
|
2360
2392
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${H.value.chart.tooltip.color}">${e}</div>`;
|
|
2361
|
-
}),
|
|
2362
|
-
if (
|
|
2393
|
+
}), qc = S(() => {
|
|
2394
|
+
if (yo.value.length === 0) return {
|
|
2363
2395
|
head: [],
|
|
2364
2396
|
body: [],
|
|
2365
2397
|
config: {},
|
|
2366
2398
|
columnNames: []
|
|
2367
2399
|
};
|
|
2368
|
-
let e =
|
|
2400
|
+
let e = xo.value.map((e) => ({
|
|
2369
2401
|
label: e.name,
|
|
2370
2402
|
color: e.color,
|
|
2371
2403
|
type: e.type
|
|
2372
2404
|
})), t = [];
|
|
2373
2405
|
return X.value.forEach((e, n) => {
|
|
2374
|
-
let r = H.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
2375
|
-
|
|
2406
|
+
let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Wc.value(n + G.value.start, H.value.table.timeFormat)];
|
|
2407
|
+
xo.value.forEach((e) => {
|
|
2376
2408
|
r.push(vt(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(H.value.table.rounding)) : "");
|
|
2377
2409
|
}), t.push(r);
|
|
2378
2410
|
}), {
|
|
2379
2411
|
head: e,
|
|
2380
2412
|
body: t
|
|
2381
2413
|
};
|
|
2382
|
-
}),
|
|
2383
|
-
let e = H.value.table.showSum, t = [""].concat(
|
|
2414
|
+
}), Jc = S(() => {
|
|
2415
|
+
let e = H.value.table.showSum, t = [""].concat(xo.value.map((e) => e.name));
|
|
2384
2416
|
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>"));
|
|
2385
2417
|
let n = [];
|
|
2386
2418
|
for (let t = 0; t < Z.value; t += 1) {
|
|
2387
|
-
let r =
|
|
2388
|
-
n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" :
|
|
2419
|
+
let r = xo.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
|
|
2420
|
+
n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Wc.value(t + G.value.start, H.value.table.timeFormat)].concat(xo.value.map((e) => v(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, o({
|
|
2389
2421
|
p: e.prefix || H.value.chart.labels.prefix,
|
|
2390
2422
|
v: e.absoluteValues[t] ?? 0,
|
|
2391
2423
|
s: e.suffix || H.value.chart.labels.suffix,
|
|
@@ -2404,7 +2436,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2404
2436
|
outline: H.value.table.td.outline
|
|
2405
2437
|
},
|
|
2406
2438
|
breakpoint: H.value.table.responsiveBreakpoint
|
|
2407
|
-
}, i = [H.value.table.columnNames.period].concat(
|
|
2439
|
+
}, i = [H.value.table.columnNames.period].concat(xo.value.map((e) => e.name), H.value.table.columnNames.total);
|
|
2408
2440
|
return {
|
|
2409
2441
|
head: t,
|
|
2410
2442
|
body: n,
|
|
@@ -2412,21 +2444,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2412
2444
|
colNames: i
|
|
2413
2445
|
};
|
|
2414
2446
|
});
|
|
2415
|
-
function
|
|
2447
|
+
function Yc(e = null) {
|
|
2416
2448
|
let t = [
|
|
2417
2449
|
[H.value.chart.title.text],
|
|
2418
2450
|
[H.value.chart.title.subtitle.text],
|
|
2419
2451
|
[""]
|
|
2420
|
-
], n = ["", ...
|
|
2452
|
+
], n = ["", ...qc.value.head.map((e) => e.label)], r = qc.value.body, i = ie(t.concat([n]).concat(r));
|
|
2421
2453
|
e ? e(i) : u({
|
|
2422
2454
|
csvContent: i,
|
|
2423
2455
|
title: H.value.chart.title.text || "vue-ui-xy"
|
|
2424
2456
|
});
|
|
2425
2457
|
}
|
|
2426
|
-
function
|
|
2427
|
-
if (
|
|
2458
|
+
function Xc(e, t = null) {
|
|
2459
|
+
if (So.value) return;
|
|
2428
2460
|
aa.value = e;
|
|
2429
|
-
let n =
|
|
2461
|
+
let n = xo.value.map((e) => ({
|
|
2430
2462
|
name: e.name,
|
|
2431
2463
|
value: [
|
|
2432
2464
|
null,
|
|
@@ -2444,21 +2476,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2444
2476
|
seriesIndex: t + G.value.start
|
|
2445
2477
|
}));
|
|
2446
2478
|
}
|
|
2447
|
-
function
|
|
2479
|
+
function Zc() {
|
|
2448
2480
|
U.value.showTable = !U.value.showTable;
|
|
2449
2481
|
}
|
|
2450
|
-
function
|
|
2482
|
+
function Qc() {
|
|
2451
2483
|
U.value.dataLabels.show = !U.value.dataLabels.show;
|
|
2452
2484
|
}
|
|
2453
|
-
function
|
|
2485
|
+
function $c() {
|
|
2454
2486
|
U.value.showTooltip = !U.value.showTooltip;
|
|
2455
2487
|
}
|
|
2456
|
-
function
|
|
2488
|
+
function el(e) {
|
|
2457
2489
|
ia.value = e, sa.value += 1;
|
|
2458
2490
|
}
|
|
2459
|
-
function
|
|
2491
|
+
function tl() {
|
|
2460
2492
|
if (!H.value.responsiveProportionalSizing) {
|
|
2461
|
-
V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius;
|
|
2493
|
+
V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius, Ia.value.selectedLine = H.value.line.dot.selectedRadius;
|
|
2462
2494
|
return;
|
|
2463
2495
|
}
|
|
2464
2496
|
V.value.dataLabels = h({
|
|
@@ -2496,58 +2528,64 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2496
2528
|
adjuster: 800,
|
|
2497
2529
|
source: H.value.line.radius,
|
|
2498
2530
|
threshold: 1,
|
|
2499
|
-
fallback:
|
|
2531
|
+
fallback: 0
|
|
2532
|
+
}), Ia.value.selectedLine = h({
|
|
2533
|
+
relator: F.value,
|
|
2534
|
+
adjuster: 800,
|
|
2535
|
+
source: H.value.line.dot.selectedRadius,
|
|
2536
|
+
threshold: 1,
|
|
2537
|
+
fallback: 0
|
|
2500
2538
|
});
|
|
2501
2539
|
}
|
|
2502
|
-
function
|
|
2540
|
+
function nl() {
|
|
2503
2541
|
if (oe(N.dataset) ? (se({
|
|
2504
2542
|
componentName: "VueUiXy",
|
|
2505
2543
|
type: "dataset",
|
|
2506
|
-
debug:
|
|
2507
|
-
}),
|
|
2544
|
+
debug: Ua.value
|
|
2545
|
+
}), qa.value = !0) : N.dataset.forEach((e, t) => {
|
|
2508
2546
|
[null, void 0].includes(e.name) && (se({
|
|
2509
2547
|
componentName: "VueUiXy",
|
|
2510
2548
|
type: "datasetSerieAttribute",
|
|
2511
2549
|
property: "name (string)",
|
|
2512
2550
|
index: t,
|
|
2513
|
-
debug:
|
|
2514
|
-
}),
|
|
2515
|
-
}),
|
|
2551
|
+
debug: Ua.value
|
|
2552
|
+
}), qa.value = !0);
|
|
2553
|
+
}), Ua.value && N.dataset.forEach((e) => {
|
|
2516
2554
|
e.series.forEach((t, n) => {
|
|
2517
2555
|
de(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.`);
|
|
2518
2556
|
});
|
|
2519
|
-
}), oe(N.dataset) || (
|
|
2557
|
+
}), oe(N.dataset) || (qa.value = H.value.loading), fa.value = H.value.chart.userOptions.showOnChartHover, pa.value = H.value.chart.userOptions.keepStateOnChartLeave, ma.value = !H.value.chart.userOptions.showOnChartHover, Ha(), H.value.responsive) {
|
|
2520
2558
|
let e = Li.value.parentNode;
|
|
2521
2559
|
Yi.value && (Yi.value.unobserve(Xi.value), Yi.value.disconnect());
|
|
2522
2560
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
2523
2561
|
H.value.chart.title.show && Ri.value && (r = Ri.value, i = r.getBoundingClientRect().height);
|
|
2524
2562
|
let a = null, o = 0;
|
|
2525
|
-
H.value.chart.zoom.show &&
|
|
2563
|
+
H.value.chart.zoom.show && Xa.value > 6 && Ba.value && zi.value && zi.value.$el && (a = zi.value.$el, o = a.getBoundingClientRect().height);
|
|
2526
2564
|
let s = null, c = 0;
|
|
2527
2565
|
H.value.chart.legend.show && Bi.value && (s = Bi.value, c = s.getBoundingClientRect().height);
|
|
2528
2566
|
let l = 0;
|
|
2529
2567
|
Vi.value && (l = Vi.value.getBoundingClientRect().height);
|
|
2530
2568
|
let u = 0;
|
|
2531
|
-
Hi.value && (u = Hi.value.getBoundingClientRect().height), $i.value = t - i - c - o - l - u - 12, F.value = n, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`,
|
|
2569
|
+
Hi.value && (u = Hi.value.getBoundingClientRect().height), $i.value = t - i - c - o - l - u - 12, F.value = n, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`, tl();
|
|
2532
2570
|
let ee = new ResizeObserver((e) => {
|
|
2533
2571
|
for (let t of e) i = H.value.chart.title.show && Ri.value ? Ri.value.getBoundingClientRect().height : 0, o = zi.value && zi.value.$el ? zi.value.$el.getBoundingClientRect().height : 0, c = Bi.value ? Bi.value.getBoundingClientRect().height : 0, l = Vi.value ? Vi.value.getBoundingClientRect().height : 0, u = Hi.value ? Hi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
|
|
2534
|
-
$i.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`,
|
|
2572
|
+
$i.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`, tl(), ka(), ja();
|
|
2535
2573
|
});
|
|
2536
2574
|
});
|
|
2537
2575
|
Yi.value = ee, Xi.value = e, ee.observe(e);
|
|
2538
|
-
} else $i.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius, ea.value = `0 0 ${F.value} ${$i.value}`;
|
|
2576
|
+
} else $i.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius, Ia.value.selectedLine = H.value.line.dot.selectedRadius, ea.value = `0 0 ${F.value} ${$i.value}`;
|
|
2539
2577
|
ka(), ja();
|
|
2540
2578
|
}
|
|
2541
|
-
function
|
|
2579
|
+
function rl(e) {
|
|
2542
2580
|
ta.value = {
|
|
2543
2581
|
x: e.clientX,
|
|
2544
2582
|
y: e.clientY
|
|
2545
2583
|
};
|
|
2546
2584
|
}
|
|
2547
2585
|
ct(() => {
|
|
2548
|
-
|
|
2586
|
+
nl(), is(), document.addEventListener("mousemove", rl, { passive: !0 }), document.addEventListener("scroll", Io, { passive: !0 });
|
|
2549
2587
|
}), st(() => {
|
|
2550
|
-
document.removeEventListener("scroll",
|
|
2588
|
+
document.removeEventListener("scroll", Io, { passive: !0 }), document.removeEventListener("mousemove", rl, { passive: !0 }), Yi.value &&= (Yi.value.unobserve(Xi.value), Yi.value.disconnect(), null), ds();
|
|
2551
2589
|
}), ze({
|
|
2552
2590
|
timeLabelsEls: Ki,
|
|
2553
2591
|
timeLabels: X,
|
|
@@ -2568,35 +2606,35 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2568
2606
|
"autoRotate",
|
|
2569
2607
|
"enable"
|
|
2570
2608
|
],
|
|
2571
|
-
isAutoSize:
|
|
2609
|
+
isAutoSize: oo,
|
|
2572
2610
|
height: $i,
|
|
2573
2611
|
width: F,
|
|
2574
2612
|
rotation: H.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2575
2613
|
});
|
|
2576
|
-
let
|
|
2614
|
+
let il = O(!1), al = O(null), ol = O(200), sl = S(() => B.value ?? R.value ?? 0), cl = S(() => {
|
|
2577
2615
|
if (!q.value) return null;
|
|
2578
2616
|
if (g(xa.value)) return Number(xa.value);
|
|
2579
|
-
let e =
|
|
2617
|
+
let e = Fs.value[0];
|
|
2580
2618
|
return g(e?.point?.x) ? Number(e.point.x) : null;
|
|
2581
2619
|
});
|
|
2582
|
-
function
|
|
2583
|
-
let e = Math.ceil(
|
|
2620
|
+
function ll() {
|
|
2621
|
+
let e = Math.ceil(ol.value || 200);
|
|
2584
2622
|
return Math.min(Math.max(e, 1), 200);
|
|
2585
2623
|
}
|
|
2586
|
-
function
|
|
2587
|
-
let e =
|
|
2624
|
+
function ul() {
|
|
2625
|
+
let e = ll(), t = (q.value && g(cl.value) ? jc({ x: cl.value }) : lc(sl.value)) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
|
|
2588
2626
|
return b(Math.max(n, Math.min(t, r)));
|
|
2589
2627
|
}
|
|
2590
2628
|
ct(() => {
|
|
2591
2629
|
let e = null, t = null, n = (e) => {
|
|
2592
2630
|
cancelAnimationFrame(t), t = requestAnimationFrame(() => {
|
|
2593
|
-
|
|
2631
|
+
ol.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
|
|
2594
2632
|
});
|
|
2595
2633
|
}, r = new ResizeObserver((t) => {
|
|
2596
2634
|
let r = t.find((t) => t.target === e) || t[0];
|
|
2597
2635
|
r && n(r.contentRect.width || 200);
|
|
2598
2636
|
}), i = gt((t) => {
|
|
2599
|
-
let i =
|
|
2637
|
+
let i = al.value;
|
|
2600
2638
|
e && e !== i && (r.unobserve(e), e = null), i && i !== e && (it(() => {
|
|
2601
2639
|
i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
|
|
2602
2640
|
}), r.observe(i), e = i), t(() => {
|
|
@@ -2609,26 +2647,26 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2609
2647
|
} catch {}
|
|
2610
2648
|
});
|
|
2611
2649
|
});
|
|
2612
|
-
let
|
|
2650
|
+
let dl = S(() => {
|
|
2613
2651
|
if (q.value) {
|
|
2614
|
-
if (!Number.isFinite(Number(
|
|
2652
|
+
if (!Number.isFinite(Number(cl.value))) return "";
|
|
2615
2653
|
} else if ([null, void 0].includes(B.value) && [null, void 0].includes(R.value)) return "";
|
|
2616
2654
|
let e = (B.value == null ? 0 : B.value) || (R.value == null ? 0 : R.value), t = H.value.chart.timeTag.customFormat;
|
|
2617
|
-
if (
|
|
2618
|
-
let e =
|
|
2655
|
+
if (il.value = !1, q.value) {
|
|
2656
|
+
let e = cl.value;
|
|
2619
2657
|
if (pe(t)) try {
|
|
2620
2658
|
let n = t({
|
|
2621
2659
|
absoluteIndex: e,
|
|
2622
2660
|
seriesIndex: e,
|
|
2623
|
-
datapoint:
|
|
2624
|
-
bars:
|
|
2661
|
+
datapoint: Cc.value,
|
|
2662
|
+
bars: Lc.value,
|
|
2625
2663
|
lines: $.value,
|
|
2626
|
-
plots:
|
|
2664
|
+
plots: Rc.value,
|
|
2627
2665
|
config: H.value
|
|
2628
2666
|
});
|
|
2629
|
-
if (typeof n == "string") return
|
|
2667
|
+
if (typeof n == "string") return il.value = !0, n;
|
|
2630
2668
|
} catch {
|
|
2631
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
2669
|
+
console.warn("Custom format cannot be applied on timeTag."), il.value = !1;
|
|
2632
2670
|
}
|
|
2633
2671
|
return o({
|
|
2634
2672
|
v: e,
|
|
@@ -2639,19 +2677,19 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2639
2677
|
let n = t({
|
|
2640
2678
|
absoluteIndex: e + G.value.start,
|
|
2641
2679
|
seriesIndex: e,
|
|
2642
|
-
datapoint:
|
|
2643
|
-
bars:
|
|
2680
|
+
datapoint: Cc.value,
|
|
2681
|
+
bars: Lc.value,
|
|
2644
2682
|
lines: $.value,
|
|
2645
|
-
plots:
|
|
2683
|
+
plots: Rc.value,
|
|
2646
2684
|
config: H.value
|
|
2647
2685
|
});
|
|
2648
|
-
if (typeof n == "string") return
|
|
2686
|
+
if (typeof n == "string") return il.value = !0, n;
|
|
2649
2687
|
} catch {
|
|
2650
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
2688
|
+
console.warn("Custom format cannot be applied on timeTag."), il.value = !1;
|
|
2651
2689
|
}
|
|
2652
|
-
if (!
|
|
2690
|
+
if (!il.value) return [null, void 0].includes(X.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Wc.value(e + G.value.start, H.value.chart.timeTag.timeFormat) : X.value[e].text;
|
|
2653
2691
|
});
|
|
2654
|
-
function
|
|
2692
|
+
function fl({ serie: e, plot: n, type: r }) {
|
|
2655
2693
|
if (!vt(n.value)) return "";
|
|
2656
2694
|
let i = o({
|
|
2657
2695
|
p: e.prefix || H.value.chart.labels.prefix,
|
|
@@ -2673,40 +2711,40 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2673
2711
|
y: 0
|
|
2674
2712
|
});
|
|
2675
2713
|
}
|
|
2676
|
-
function
|
|
2677
|
-
let t = H.value.bar.labels.offsetY, n = Math.abs(
|
|
2678
|
-
x: (U.value.useIndividualScale && U.value.isStacked ? e.x +
|
|
2714
|
+
function pl({ plot: e }) {
|
|
2715
|
+
let t = H.value.bar.labels.offsetY, n = Math.abs(Os(e)), r = e.value < 0, i = {
|
|
2716
|
+
x: (U.value.useIndividualScale && U.value.isStacked ? e.x + ks.value.line / 2 : js(e) + As() / 2 - vc.value / 2) + H.value.bar.labels.offsetX,
|
|
2679
2717
|
y: b(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
2680
2718
|
};
|
|
2681
2719
|
return `translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`;
|
|
2682
2720
|
}
|
|
2683
|
-
function
|
|
2721
|
+
function ml({ plot: e, type: t }) {
|
|
2684
2722
|
let n = H.value[t].labels.offsetY, r = {
|
|
2685
2723
|
x: e.x + H.value[t].labels.offsetX,
|
|
2686
2724
|
y: b(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
2687
2725
|
};
|
|
2688
2726
|
return `translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`;
|
|
2689
2727
|
}
|
|
2690
|
-
function
|
|
2728
|
+
function hl({ plot: e, type: t }) {
|
|
2691
2729
|
if (H.value[t].labels.textAnchor != null) return H.value[t].labels.textAnchor;
|
|
2692
2730
|
let n = e.value >= 0;
|
|
2693
2731
|
return H.value[t].labels.rotation === 0 ? "middle" : H.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
2694
2732
|
}
|
|
2695
|
-
let
|
|
2733
|
+
let gl = S(() => q.value ? g(xa.value) ? jc({ x: Number(xa.value) }) : g(Is.value) ? Is.value : null : lc((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value))), _l = S(() => H.value.chart.highlighter.crosshairs.show && Xo.value), vl = S(() => [
|
|
2696
2734
|
...$.value,
|
|
2697
|
-
...
|
|
2698
|
-
...
|
|
2699
|
-
].flatMap((e) => (e.plots || []).filter((t, n) =>
|
|
2735
|
+
...Rc.value,
|
|
2736
|
+
...Lc.value
|
|
2737
|
+
].flatMap((e) => (e.plots || []).filter((t, n) => xl(e, t, n)).filter((e) => vt(e.value)).map((t) => ({
|
|
2700
2738
|
...t,
|
|
2701
2739
|
serie: e,
|
|
2702
2740
|
x: b(t.x),
|
|
2703
2741
|
y: b(t.y)
|
|
2704
|
-
})))),
|
|
2705
|
-
if (!
|
|
2742
|
+
})))), yl = S(() => {
|
|
2743
|
+
if (!_l.value) return null;
|
|
2706
2744
|
if (q.value) {
|
|
2707
|
-
let e =
|
|
2745
|
+
let e = Fs.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
2708
2746
|
return g(t) ? {
|
|
2709
|
-
x:
|
|
2747
|
+
x: gl.value,
|
|
2710
2748
|
text: v(H.value.chart.grid.labels.xAxis.formatter, t, o({
|
|
2711
2749
|
v: t,
|
|
2712
2750
|
r: H.value.chart.tooltip.roundingValue
|
|
@@ -2715,60 +2753,60 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2715
2753
|
}
|
|
2716
2754
|
let e = B.value === null ? R.value : B.value;
|
|
2717
2755
|
return e == null ? null : {
|
|
2718
|
-
x:
|
|
2756
|
+
x: lc(e),
|
|
2719
2757
|
text: X.value[e]?.text ?? ""
|
|
2720
2758
|
};
|
|
2721
2759
|
});
|
|
2722
|
-
function
|
|
2760
|
+
function bl(e) {
|
|
2723
2761
|
return H.value.chart.grid.labels.yAxis.position === "right" ? Y.value.right : Y.value.left;
|
|
2724
2762
|
}
|
|
2725
|
-
function
|
|
2726
|
-
return q.value ?
|
|
2763
|
+
function xl(e, t, n) {
|
|
2764
|
+
return q.value ? Fs.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : B.value !== null && B.value === n || R.value !== null && R.value === n;
|
|
2727
2765
|
}
|
|
2728
2766
|
ht(() => N.dataset, (e) => {
|
|
2729
|
-
if (Array.isArray(e) && e.length > 0 && (
|
|
2730
|
-
if (
|
|
2767
|
+
if (Array.isArray(e) && e.length > 0 && (qa.value = !1), H.value.chart.zoom.keepState) {
|
|
2768
|
+
if (Xa.value = Math.max(0, ...W.value.map((e) => Ya(e.series).length)), Xa.value > 0) {
|
|
2731
2769
|
let e = G.value.start, t = G.value.end;
|
|
2732
|
-
if (!
|
|
2770
|
+
if (!ts.value || e === 0 && t === 0) is();
|
|
2733
2771
|
else {
|
|
2734
|
-
let n = Math.max(0, Math.min(e,
|
|
2772
|
+
let n = Math.max(0, Math.min(e, Xa.value - 1)), r = Math.max(n + 1, Math.min(t, Xa.value));
|
|
2735
2773
|
G.value = {
|
|
2736
2774
|
start: n,
|
|
2737
2775
|
end: r
|
|
2738
|
-
},
|
|
2776
|
+
}, Za.value = {
|
|
2739
2777
|
start: n,
|
|
2740
2778
|
end: r
|
|
2741
|
-
},
|
|
2779
|
+
}, ns.value = 0, rs.value = Xa.value;
|
|
2742
2780
|
}
|
|
2743
2781
|
}
|
|
2744
|
-
} else
|
|
2782
|
+
} else Xa.value = Math.max(...W.value.map((e) => Ya(e.series).length)), G.value = {
|
|
2745
2783
|
start: 0,
|
|
2746
|
-
end:
|
|
2784
|
+
end: Xa.value
|
|
2747
2785
|
};
|
|
2748
|
-
Zi.value += 1, da.value += 1, ka(), ja(),
|
|
2786
|
+
Zi.value += 1, da.value += 1, ka(), ja(), eo();
|
|
2749
2787
|
}, { deep: !0 }), ht(() => N.config, (e) => {
|
|
2750
|
-
|
|
2788
|
+
Ka.value || (H.value = Ra()), nl(), la.value += 1, ca.value += 1, Ha(), ka(), ja(), H.value.chart.zoom.keepState && (Xa.value = Math.max(0, ...W.value.map((e) => Ya(e.series).length)), Xa.value > 0 && (!ts.value || G.value.start === 0 && G.value.end === 0) && is()), eo();
|
|
2751
2789
|
}, { deep: !0 });
|
|
2752
|
-
let
|
|
2753
|
-
function
|
|
2790
|
+
let Sl = O(!1);
|
|
2791
|
+
function Cl() {
|
|
2754
2792
|
let e = Li.value?.parentNode;
|
|
2755
2793
|
if (!e) {
|
|
2756
|
-
|
|
2794
|
+
Sl.value = !1;
|
|
2757
2795
|
return;
|
|
2758
2796
|
}
|
|
2759
2797
|
let t = e.getBoundingClientRect();
|
|
2760
|
-
|
|
2798
|
+
Sl.value = t.width > 2 && t.height > 2;
|
|
2761
2799
|
}
|
|
2762
2800
|
ct(() => {
|
|
2763
|
-
|
|
2801
|
+
Cl();
|
|
2764
2802
|
let e = new ResizeObserver(() => {
|
|
2765
|
-
|
|
2803
|
+
Cl(), Sl.value && (nl(), eo(), H.value.chart.zoom.keepState || is());
|
|
2766
2804
|
});
|
|
2767
2805
|
Li.value?.parentNode && e.observe(Li.value.parentNode);
|
|
2768
2806
|
}), ht(H, () => {
|
|
2769
|
-
|
|
2807
|
+
Ha();
|
|
2770
2808
|
}, { immediate: !0 });
|
|
2771
|
-
let
|
|
2809
|
+
let wl = S(() => {
|
|
2772
2810
|
let e = H.value.table.useDialog && !H.value.showTable, t = U.value.showTable;
|
|
2773
2811
|
return {
|
|
2774
2812
|
component: e ? Ai : Ke,
|
|
@@ -2801,37 +2839,37 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2801
2839
|
ht(() => U.value.showTable, (e) => {
|
|
2802
2840
|
H.value.showTable || (e && H.value.table.useDialog && va.value ? va.value.open() : va.value && va.value.close && va.value.close());
|
|
2803
2841
|
});
|
|
2804
|
-
function
|
|
2842
|
+
function Tl() {
|
|
2805
2843
|
U.value.showTable = !1, Ji.value && Ji.value.setTableIconState(!1);
|
|
2806
2844
|
}
|
|
2807
|
-
let
|
|
2845
|
+
let El = S(() => bo.value.map((e) => ({
|
|
2808
2846
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
2809
2847
|
color: e.color,
|
|
2810
2848
|
name: e.name
|
|
2811
|
-
}))),
|
|
2849
|
+
}))), Dl = S(() => H.value.chart.backgroundColor), Ol = S(() => H.value.chart.legend), { exportSvg: kl, getSvg: Al } = Fe({
|
|
2812
2850
|
svg: z,
|
|
2813
2851
|
title: S(() => H.value.chart.title),
|
|
2814
|
-
legend:
|
|
2815
|
-
legendItems:
|
|
2816
|
-
backgroundColor:
|
|
2852
|
+
legend: Ol,
|
|
2853
|
+
legendItems: El,
|
|
2854
|
+
backgroundColor: Dl
|
|
2817
2855
|
});
|
|
2818
|
-
async function
|
|
2856
|
+
async function jl({ isCb: e }) {
|
|
2819
2857
|
ba.value = !0, await it();
|
|
2820
2858
|
try {
|
|
2821
2859
|
if (e) {
|
|
2822
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
2860
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Al();
|
|
2823
2861
|
await Promise.resolve(H.value.chart.userOptions.callbacks.svg({
|
|
2824
2862
|
blob: e,
|
|
2825
2863
|
url: t,
|
|
2826
2864
|
text: n,
|
|
2827
2865
|
dataUrl: r
|
|
2828
2866
|
}));
|
|
2829
|
-
} else await Promise.resolve(
|
|
2867
|
+
} else await Promise.resolve(kl());
|
|
2830
2868
|
} finally {
|
|
2831
2869
|
ba.value = !1;
|
|
2832
2870
|
}
|
|
2833
2871
|
}
|
|
2834
|
-
function
|
|
2872
|
+
function Ml(e) {
|
|
2835
2873
|
if (e?.stage === "start") {
|
|
2836
2874
|
ya.value = !0;
|
|
2837
2875
|
return;
|
|
@@ -2840,9 +2878,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2840
2878
|
ya.value = !1;
|
|
2841
2879
|
return;
|
|
2842
2880
|
}
|
|
2843
|
-
|
|
2881
|
+
ao();
|
|
2844
2882
|
}
|
|
2845
|
-
async function
|
|
2883
|
+
async function Nl() {
|
|
2846
2884
|
if (ji("copyAlt", {
|
|
2847
2885
|
config: {
|
|
2848
2886
|
...H.value,
|
|
@@ -2850,8 +2888,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2850
2888
|
},
|
|
2851
2889
|
dataset: {
|
|
2852
2890
|
lines: $.value,
|
|
2853
|
-
bars:
|
|
2854
|
-
plots:
|
|
2891
|
+
bars: Lc.value,
|
|
2892
|
+
plots: Rc.value
|
|
2855
2893
|
}
|
|
2856
2894
|
}), !H.value.chart.userOptions.callbacks.altCopy) {
|
|
2857
2895
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
@@ -2864,86 +2902,86 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2864
2902
|
},
|
|
2865
2903
|
dataset: {
|
|
2866
2904
|
lines: $.value,
|
|
2867
|
-
bars:
|
|
2868
|
-
plots:
|
|
2905
|
+
bars: Lc.value,
|
|
2906
|
+
plots: Rc.value
|
|
2869
2907
|
}
|
|
2870
2908
|
}));
|
|
2871
2909
|
}
|
|
2872
|
-
let
|
|
2873
|
-
function
|
|
2874
|
-
G.value.end > G.value.start && (Sa.value = null),
|
|
2910
|
+
let Pl = O(!1);
|
|
2911
|
+
function Fl() {
|
|
2912
|
+
G.value.end > G.value.start && (Sa.value = null), Ro.value = !0, Pl.value = !0;
|
|
2875
2913
|
}
|
|
2876
|
-
function
|
|
2877
|
-
Sa.value = null,
|
|
2914
|
+
function Il() {
|
|
2915
|
+
Sa.value = null, Hs(), Pl.value = !1, Ro.value = !1;
|
|
2878
2916
|
}
|
|
2879
|
-
function
|
|
2917
|
+
function Ll(e) {
|
|
2880
2918
|
if (!z.value || ra.value || document.activeElement !== z.value) return;
|
|
2881
2919
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
2882
2920
|
if (!t && !n || !G.value.end && G.value.end !== 0) return;
|
|
2883
2921
|
let r = G.value.end - G.value.start;
|
|
2884
2922
|
if (r <= 0) return;
|
|
2885
2923
|
if (e.preventDefault(), e.stopPropagation(), q.value) {
|
|
2886
|
-
let e =
|
|
2924
|
+
let e = Ls.value.length;
|
|
2887
2925
|
if (!e) return;
|
|
2888
2926
|
let r = Sa.value;
|
|
2889
|
-
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,
|
|
2927
|
+
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, Rs(r);
|
|
2890
2928
|
return;
|
|
2891
2929
|
}
|
|
2892
|
-
let i = Sa.value, a =
|
|
2893
|
-
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, Sa.value = i,
|
|
2930
|
+
let i = Sa.value, a = Ps.value;
|
|
2931
|
+
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, Sa.value = i, Rl(i), Xc(!0, i);
|
|
2894
2932
|
}
|
|
2895
|
-
function
|
|
2933
|
+
function Rl(e) {
|
|
2896
2934
|
let t = G.value.end - G.value.start;
|
|
2897
2935
|
if (t <= 0) return;
|
|
2898
2936
|
let n = Y.value.width / t, r = De(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, z.value);
|
|
2899
2937
|
r && (Ca.value = r);
|
|
2900
2938
|
}
|
|
2901
|
-
let
|
|
2902
|
-
if (!
|
|
2903
|
-
let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(
|
|
2939
|
+
let zl = S(() => {
|
|
2940
|
+
if (!Jc.value) return null;
|
|
2941
|
+
let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(xo.value.map((e) => e.name));
|
|
2904
2942
|
e && (t = t.concat(H.value.table.columnNames.total));
|
|
2905
|
-
let n =
|
|
2943
|
+
let n = Jc.value.body.slice(G.value.start, G.value.end);
|
|
2906
2944
|
return {
|
|
2907
2945
|
headers: t,
|
|
2908
2946
|
rows: n
|
|
2909
2947
|
};
|
|
2910
2948
|
});
|
|
2911
2949
|
return We({
|
|
2912
|
-
getData:
|
|
2913
|
-
getImage:
|
|
2914
|
-
generatePdf:
|
|
2915
|
-
generateImage:
|
|
2916
|
-
generateSvg:
|
|
2917
|
-
generateCsv:
|
|
2918
|
-
hideSeries:
|
|
2919
|
-
showSeries:
|
|
2920
|
-
toggleStack:
|
|
2921
|
-
toggleTable:
|
|
2922
|
-
toggleLabels:
|
|
2923
|
-
toggleTooltip:
|
|
2924
|
-
toggleAnnotator:
|
|
2925
|
-
toggleFullscreen:
|
|
2926
|
-
copyAlt:
|
|
2927
|
-
resetZoom:
|
|
2950
|
+
getData: Gs,
|
|
2951
|
+
getImage: Ks,
|
|
2952
|
+
generatePdf: io,
|
|
2953
|
+
generateImage: ao,
|
|
2954
|
+
generateSvg: jl,
|
|
2955
|
+
generateCsv: Yc,
|
|
2956
|
+
hideSeries: $s,
|
|
2957
|
+
showSeries: Qs,
|
|
2958
|
+
toggleStack: Zo,
|
|
2959
|
+
toggleTable: Zc,
|
|
2960
|
+
toggleLabels: Qc,
|
|
2961
|
+
toggleTooltip: $c,
|
|
2962
|
+
toggleAnnotator: Bo,
|
|
2963
|
+
toggleFullscreen: el,
|
|
2964
|
+
copyAlt: Nl,
|
|
2965
|
+
resetZoom: hs
|
|
2928
2966
|
}), (n, r) => (D(), w("div", {
|
|
2929
2967
|
id: `vue-ui-xy_${L.value}`,
|
|
2930
2968
|
class: at(`vue-data-ui-component vue-ui-xy ${ia.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${H.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2931
2969
|
ref_key: "chart",
|
|
2932
2970
|
ref: Li,
|
|
2933
2971
|
style: E(`background:${H.value.chart.backgroundColor}; color:${H.value.chart.color};width:100%;font-family:${H.value.chart.fontFamily};${H.value.responsive ? "height: 100%" : ""}`),
|
|
2934
|
-
onMouseenter: r[6] ||= () =>
|
|
2935
|
-
onMouseleave: r[7] ||= () =>
|
|
2936
|
-
onClick:
|
|
2972
|
+
onMouseenter: r[6] ||= () => zo(!0),
|
|
2973
|
+
onMouseleave: r[7] ||= () => zo(!1),
|
|
2974
|
+
onClick: Us
|
|
2937
2975
|
}, [
|
|
2938
2976
|
T("div", {
|
|
2939
2977
|
id: `chart-instructions-${L.value}`,
|
|
2940
2978
|
class: "sr-only"
|
|
2941
2979
|
}, [T("p", null, dt(H.value.a11y.translations.keyboardNavigation), 1)], 8, kt),
|
|
2942
|
-
|
|
2980
|
+
zl.value?.rows?.length ? (D(), Xe(Je, {
|
|
2943
2981
|
key: 0,
|
|
2944
2982
|
uid: L.value,
|
|
2945
|
-
head:
|
|
2946
|
-
body:
|
|
2983
|
+
head: zl.value.headers,
|
|
2984
|
+
body: zl.value.rows,
|
|
2947
2985
|
notice: H.value.a11y.translations.tableAvailable,
|
|
2948
2986
|
caption: H.value.a11y.translations.tableCaption
|
|
2949
2987
|
}, null, 8, [
|
|
@@ -2959,8 +2997,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2959
2997
|
backgroundColor: H.value.chart.backgroundColor,
|
|
2960
2998
|
color: H.value.chart.color,
|
|
2961
2999
|
active: ra.value,
|
|
2962
|
-
isCursorPointer:
|
|
2963
|
-
onClose:
|
|
3000
|
+
isCursorPointer: Va.value,
|
|
3001
|
+
onClose: Bo
|
|
2964
3002
|
}, {
|
|
2965
3003
|
"annotator-action-close": M(() => [A(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2966
3004
|
"annotator-action-color": M(({ color: e }) => [A(n.$slots, "annotator-action-color", ot(nt({ color: e })), void 0, !0)]),
|
|
@@ -2976,7 +3014,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
2976
3014
|
"active",
|
|
2977
3015
|
"isCursorPointer"
|
|
2978
3016
|
])) : C("", !0),
|
|
2979
|
-
|
|
3017
|
+
nc.value ? (D(), w("div", {
|
|
2980
3018
|
key: 2,
|
|
2981
3019
|
ref_key: "noTitle",
|
|
2982
3020
|
ref: Hi,
|
|
@@ -3009,8 +3047,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3009
3047
|
key: `user_options_${sa.value}`,
|
|
3010
3048
|
backgroundColor: H.value.chart.backgroundColor,
|
|
3011
3049
|
color: H.value.chart.color,
|
|
3012
|
-
isPrinting: j(
|
|
3013
|
-
isImaging: j(
|
|
3050
|
+
isPrinting: j(no),
|
|
3051
|
+
isImaging: j(ro),
|
|
3014
3052
|
uid: L.value,
|
|
3015
3053
|
hasTooltip: H.value.chart.userOptions.buttons.tooltip && H.value.chart.tooltip.show,
|
|
3016
3054
|
hasPdf: H.value.chart.userOptions.buttons.pdf,
|
|
@@ -3033,18 +3071,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3033
3071
|
callbacks: H.value.chart.userOptions.callbacks,
|
|
3034
3072
|
tableDialog: H.value.table.useDialog,
|
|
3035
3073
|
printScale: H.value.chart.userOptions.print.scale,
|
|
3036
|
-
isCursorPointer:
|
|
3037
|
-
onToggleFullscreen:
|
|
3038
|
-
onGeneratePdf: j(
|
|
3039
|
-
onGenerateCsv:
|
|
3040
|
-
onGenerateImage:
|
|
3041
|
-
onGenerateSvg:
|
|
3042
|
-
onToggleTable:
|
|
3043
|
-
onToggleLabels:
|
|
3044
|
-
onToggleStack:
|
|
3045
|
-
onToggleTooltip:
|
|
3046
|
-
onToggleAnnotator:
|
|
3047
|
-
onCopyAlt:
|
|
3074
|
+
isCursorPointer: Va.value,
|
|
3075
|
+
onToggleFullscreen: el,
|
|
3076
|
+
onGeneratePdf: j(io),
|
|
3077
|
+
onGenerateCsv: Yc,
|
|
3078
|
+
onGenerateImage: Ml,
|
|
3079
|
+
onGenerateSvg: jl,
|
|
3080
|
+
onToggleTable: Zc,
|
|
3081
|
+
onToggleLabels: Qc,
|
|
3082
|
+
onToggleStack: Zo,
|
|
3083
|
+
onToggleTooltip: $c,
|
|
3084
|
+
onToggleAnnotator: Bo,
|
|
3085
|
+
onCopyAlt: Nl,
|
|
3048
3086
|
style: E({ visibility: pa.value ? ma.value ? "visible" : "hidden" : "visible" })
|
|
3049
3087
|
}, Ze({ _: 2 }, [
|
|
3050
3088
|
n.$slots.menuIcon ? {
|
|
@@ -3142,18 +3180,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3142
3180
|
color: H.value.chart.color,
|
|
3143
3181
|
fontFamily: H.value.chart.fontFamily
|
|
3144
3182
|
}),
|
|
3145
|
-
"aria-label":
|
|
3183
|
+
"aria-label": ec.value,
|
|
3146
3184
|
"aria-describedby": `chart-instructions-${L.value}`,
|
|
3147
3185
|
"aria-live": "polite",
|
|
3148
3186
|
role: "img",
|
|
3149
3187
|
tabindex: "0",
|
|
3150
3188
|
preserveAspectRatio: "xMidYMid",
|
|
3151
|
-
onMousemove:
|
|
3152
|
-
onMouseleave:
|
|
3153
|
-
onClick:
|
|
3154
|
-
onFocus:
|
|
3155
|
-
onBlur:
|
|
3156
|
-
onKeydown:
|
|
3189
|
+
onMousemove: Vs,
|
|
3190
|
+
onMouseleave: Hs,
|
|
3191
|
+
onClick: Us,
|
|
3192
|
+
onFocus: Fl,
|
|
3193
|
+
onBlur: Il,
|
|
3194
|
+
onKeydown: Ll
|
|
3157
3195
|
}, [T("g", {
|
|
3158
3196
|
ref_key: "G",
|
|
3159
3197
|
ref: Ui,
|
|
@@ -3181,7 +3219,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3181
3219
|
"stroke-linecap": "round",
|
|
3182
3220
|
style: { animation: "none !important" }
|
|
3183
3221
|
}, null, 8, It)) : C("", !0),
|
|
3184
|
-
U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), w(x, { key: 2 }, k(
|
|
3222
|
+
U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), w(x, { key: 2 }, k(zc.value, (e) => (D(), w("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), w(x, { key: 0 }, k(e.yLabels, (t) => (D(), w("line", {
|
|
3185
3223
|
x1: Y.value?.left,
|
|
3186
3224
|
x2: Y.value?.right,
|
|
3187
3225
|
y1: j(y)(t.y),
|
|
@@ -3210,7 +3248,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3210
3248
|
y2: j(y)(Y.value?.bottom),
|
|
3211
3249
|
"stroke-linecap": "round",
|
|
3212
3250
|
style: { animation: "none !important" }
|
|
3213
|
-
}, null, 8, Lt)) : C("", !0), H.value.chart.grid.showHorizontalLines ? (D(), w("g", Rt, [(D(!0), w(x, null, k(
|
|
3251
|
+
}, null, 8, Lt)) : C("", !0), H.value.chart.grid.showHorizontalLines ? (D(), w("g", Rt, [(D(!0), w(x, null, k(wc.value, (e) => (D(), w("line", {
|
|
3214
3252
|
x1: Y.value?.left,
|
|
3215
3253
|
x2: Y.value?.right,
|
|
3216
3254
|
y1: j(y)(e.y),
|
|
@@ -3221,21 +3259,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3221
3259
|
style: { animation: "none !important" }
|
|
3222
3260
|
}, null, 8, zt))), 256))])) : C("", !0)], 64)),
|
|
3223
3261
|
H.value.chart.grid.showVerticalLines ? (D(), w("g", Ht, [T("path", {
|
|
3224
|
-
d:
|
|
3262
|
+
d: Mo.value,
|
|
3225
3263
|
"stroke-width": .5,
|
|
3226
3264
|
stroke: H.value.chart.grid.stroke,
|
|
3227
3265
|
"stroke-linecap": "round",
|
|
3228
3266
|
style: { animation: "none !important" }
|
|
3229
3267
|
}, null, 8, Ut)])) : C("", !0),
|
|
3230
3268
|
H.value.chart.grid.labels.xAxisLabels.show ? (D(), w("g", Wt, [T("path", {
|
|
3231
|
-
d:
|
|
3269
|
+
d: No.value,
|
|
3232
3270
|
stroke: H.value.chart.grid.stroke,
|
|
3233
3271
|
"stroke-width": 1,
|
|
3234
3272
|
"stroke-linecap": "round",
|
|
3235
3273
|
style: { animation: "none !important" }
|
|
3236
3274
|
}, null, 8, Gt)])) : C("", !0)
|
|
3237
3275
|
]),
|
|
3238
|
-
(D(!0), w(x, null, k(
|
|
3276
|
+
(D(!0), w(x, null, k(Lc.value, (e, t) => (D(), w("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? A(n.$slots, "bar-gradient", rt({
|
|
3239
3277
|
key: 0,
|
|
3240
3278
|
ref_for: !0
|
|
3241
3279
|
}, {
|
|
@@ -3277,7 +3315,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3277
3315
|
"stop-color": e.color
|
|
3278
3316
|
}, null, 8, $t)
|
|
3279
3317
|
], 8, Xt)], 64))]))), 128)),
|
|
3280
|
-
(D(!0), w(x, null, k(
|
|
3318
|
+
(D(!0), w(x, null, k(Rc.value, (e, t) => (D(), w("defs", { key: `def_plot_${t}` }, [T("radialGradient", {
|
|
3281
3319
|
id: `plotGradient_${t}_${L.value}`,
|
|
3282
3320
|
cx: "50%",
|
|
3283
3321
|
cy: "50%",
|
|
@@ -3331,32 +3369,32 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3331
3369
|
"stop-color": n,
|
|
3332
3370
|
offset: j(d)(r, e.temperatureColors.length)
|
|
3333
3371
|
}, null, 8, fn))), 128))], 8, dn)])) : C("", !0)], 64))), 128)),
|
|
3334
|
-
(D(!0), w(x, null, k(
|
|
3372
|
+
(D(!0), w(x, null, k(rc.value, (e) => (D(), w("g", null, [e.show ? (D(), w(x, { key: 0 }, [(D(!0), w(x, null, k(e.span, (t, n) => (D(), w("g", null, [T("rect", {
|
|
3335
3373
|
style: E({
|
|
3336
3374
|
transition: "none",
|
|
3337
3375
|
opacity: +(e.from + n >= G.value.start && e.from + n <= G.value.end - 1)
|
|
3338
3376
|
}),
|
|
3339
|
-
x:
|
|
3377
|
+
x: dc(e.from + n - G.value.start),
|
|
3340
3378
|
y: Y.value?.top,
|
|
3341
3379
|
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
3342
|
-
width:
|
|
3380
|
+
width: fc(e.from + n - G.value.start),
|
|
3343
3381
|
fill: j(m)(e.color, e.opacity)
|
|
3344
3382
|
}, null, 12, pn)]))), 256)), (D(!0), w(x, null, k(e.span, (t, n) => (D(), w("g", null, [e.caption.text && n === 0 ? (D(), w("foreignObject", {
|
|
3345
3383
|
key: 0,
|
|
3346
|
-
x:
|
|
3384
|
+
x: dc(e.from + n - G.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - hc(e.span) / 2),
|
|
3347
3385
|
y: Y.value?.top + e.caption.offsetY,
|
|
3348
3386
|
style: E({
|
|
3349
3387
|
overflow: "visible",
|
|
3350
3388
|
opacity: +(e.to >= G.value.start && e.from < G.value.end)
|
|
3351
3389
|
}),
|
|
3352
3390
|
height: "1",
|
|
3353
|
-
width: e.caption.width === "auto" ?
|
|
3391
|
+
width: e.caption.width === "auto" ? hc(e.span) : e.caption.width
|
|
3354
3392
|
}, [T("div", { style: E(`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"}`) }, dt(e.caption.text), 5)], 12, mn)) : C("", !0)]))), 256))], 64)) : C("", !0)]))), 256)),
|
|
3355
|
-
|
|
3356
|
-
x:
|
|
3393
|
+
Ro.value && !q.value ? (D(), w("g", hn, [(D(!0), w(x, null, k(Z.value, (e, t) => (D(), w("g", { key: `tooltip_trap_highlighter_${t}` }, [T("rect", {
|
|
3394
|
+
x: dc(t),
|
|
3357
3395
|
y: Y.value?.top,
|
|
3358
3396
|
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
3359
|
-
width:
|
|
3397
|
+
width: mc(t),
|
|
3360
3398
|
fill: [
|
|
3361
3399
|
R.value,
|
|
3362
3400
|
B.value,
|
|
@@ -3367,41 +3405,41 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3367
3405
|
animation: "none !important"
|
|
3368
3406
|
}
|
|
3369
3407
|
}, null, 8, gn)]))), 128))])) : C("", !0),
|
|
3370
|
-
|
|
3408
|
+
Lc.value.length ? (D(!0), w(x, { key: 1 }, k(Lc.value, (e, t) => (D(), w("g", {
|
|
3371
3409
|
key: `serie_bar_${e.id}`,
|
|
3372
3410
|
class: at(`serie_bar_${t}`),
|
|
3373
3411
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3374
3412
|
}, [(D(!0), w(x, null, k(e.plots, (r, i) => (D(), w("g", { key: `bar_plot_${t}_${i}` }, [
|
|
3375
3413
|
j(vt)(r.value) ? (D(), w("rect", {
|
|
3376
3414
|
key: 0,
|
|
3377
|
-
x:
|
|
3378
|
-
y: U.value.useIndividualScale ?
|
|
3379
|
-
height: U.value.useIndividualScale ? Math.abs(
|
|
3380
|
-
width:
|
|
3415
|
+
x: js(r) + bc.value / 2,
|
|
3416
|
+
y: U.value.useIndividualScale ? Ns(r) : Ms(r),
|
|
3417
|
+
height: U.value.useIndividualScale ? Math.abs(Os(r)) : Math.abs(Ds(r)),
|
|
3418
|
+
width: yc.value - bc.value,
|
|
3381
3419
|
rx: H.value.bar.borderRadius,
|
|
3382
3420
|
fill: H.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${t}_${L.value})` : `url(#rectGradient_neg_${t}_${L.value})` : e.color,
|
|
3383
3421
|
stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
|
|
3384
3422
|
"stroke-width": H.value.bar.border.strokeWidth,
|
|
3385
|
-
style: E({ transition: j(
|
|
3423
|
+
style: E({ transition: j(Ka) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3386
3424
|
}, null, 12, _n)) : C("", !0),
|
|
3387
3425
|
j(vt)(r.value) && n.$slots.pattern ? (D(), w("rect", {
|
|
3388
3426
|
key: 1,
|
|
3389
|
-
x:
|
|
3390
|
-
y: U.value.useIndividualScale ?
|
|
3391
|
-
height: U.value.useIndividualScale ? Math.abs(
|
|
3392
|
-
width:
|
|
3427
|
+
x: js(r) - bc.value / 2,
|
|
3428
|
+
y: U.value.useIndividualScale ? Ns(r) : Ms(r),
|
|
3429
|
+
height: U.value.useIndividualScale ? Math.abs(Os(r)) : Math.abs(Ds(r)),
|
|
3430
|
+
width: yc.value - bc.value,
|
|
3393
3431
|
rx: H.value.bar.borderRadius,
|
|
3394
3432
|
fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
|
|
3395
3433
|
stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
|
|
3396
3434
|
"stroke-width": H.value.bar.border.strokeWidth,
|
|
3397
|
-
style: E({ transition: j(
|
|
3435
|
+
style: E({ transition: j(Ka) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3398
3436
|
}, null, 12, vn)) : C("", !0),
|
|
3399
3437
|
r.comment && H.value.chart.comments.show ? (D(), w("foreignObject", {
|
|
3400
3438
|
key: 2,
|
|
3401
3439
|
style: { overflow: "visible" },
|
|
3402
3440
|
height: "12",
|
|
3403
|
-
width:
|
|
3404
|
-
x:
|
|
3441
|
+
width: yc.value + H.value.chart.comments.width,
|
|
3442
|
+
x: js(r) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
|
|
3405
3443
|
y: j(b)(r.y) + H.value.chart.comments.offsetY + 6
|
|
3406
3444
|
}, [A(n.$slots, "plot-comment", { plot: {
|
|
3407
3445
|
...r,
|
|
@@ -3416,14 +3454,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3416
3454
|
"stroke-width": "1",
|
|
3417
3455
|
x1: Y.value?.left,
|
|
3418
3456
|
x2: Y.value?.right,
|
|
3419
|
-
y1: j(y)(
|
|
3420
|
-
y2: j(y)(
|
|
3457
|
+
y1: j(y)(Es.value),
|
|
3458
|
+
y2: j(y)(Es.value),
|
|
3421
3459
|
"stroke-linecap": "round",
|
|
3422
3460
|
style: { animation: "none !important" }
|
|
3423
3461
|
}, null, 8, bn)) : C("", !0),
|
|
3424
|
-
!H.value.chart.highlighter.crosshairs.show && (H.value.chart.highlighter.useLine || q.value) &&
|
|
3425
|
-
x1:
|
|
3426
|
-
x2:
|
|
3462
|
+
!H.value.chart.highlighter.crosshairs.show && (H.value.chart.highlighter.useLine || q.value) && Xo.value ? (D(), w("g", xn, [T("line", {
|
|
3463
|
+
x1: gl.value,
|
|
3464
|
+
x2: gl.value,
|
|
3427
3465
|
y1: j(y)(Y.value?.top),
|
|
3428
3466
|
y2: j(y)(Y.value?.bottom),
|
|
3429
3467
|
stroke: H.value.chart.highlighter.color,
|
|
@@ -3436,10 +3474,10 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3436
3474
|
"pointer-events": "none"
|
|
3437
3475
|
}
|
|
3438
3476
|
}, null, 8, Sn)])) : C("", !0),
|
|
3439
|
-
|
|
3477
|
+
_l.value ? (D(), w("g", Cn, [(D(!0), w(x, null, k(vl.value, (e) => (D(), w("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3440
3478
|
T("line", {
|
|
3441
3479
|
x1: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(y)(e.x) : Y.value.left,
|
|
3442
|
-
x2: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(y)(
|
|
3480
|
+
x2: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(y)(bl(e.x)) : Y.value.right,
|
|
3443
3481
|
y1: j(y)(e.y),
|
|
3444
3482
|
y2: j(y)(e.y),
|
|
3445
3483
|
stroke: H.value.chart.highlighter.crosshairs.stroke,
|
|
@@ -3460,7 +3498,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3460
3498
|
style: { "pointer-events": "none" }
|
|
3461
3499
|
}, null, 8, Tn),
|
|
3462
3500
|
T("circle", {
|
|
3463
|
-
cx: j(y)(
|
|
3501
|
+
cx: j(y)(bl(e.x)),
|
|
3464
3502
|
cy: j(y)(e.y),
|
|
3465
3503
|
r: H.value.chart.highlighter.crosshairs.dot.radius,
|
|
3466
3504
|
fill: H.value.chart.highlighter.crosshairs.dot.fill,
|
|
@@ -3491,9 +3529,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3491
3529
|
key: 6,
|
|
3492
3530
|
ref_key: "scaleLabels",
|
|
3493
3531
|
ref: qi,
|
|
3494
|
-
opacity:
|
|
3532
|
+
opacity: _l.value ? .2 : 1,
|
|
3495
3533
|
style: { transition: "opacity 0.2s" }
|
|
3496
|
-
}, [U.value.useIndividualScale ? (D(), w(x, { key: 0 }, [(D(!0), w(x, null, k(
|
|
3534
|
+
}, [U.value.useIndividualScale ? (D(), w(x, { key: 0 }, [(D(!0), w(x, null, k(zc.value, (e) => (D(), w("g", null, [T("line", {
|
|
3497
3535
|
x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
|
|
3498
3536
|
x2: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
|
|
3499
3537
|
y1: U.value.isStacked ? j(y)(Y.value?.bottom - e.yOffset - e.individualHeight) : j(y)(Y.value?.top),
|
|
@@ -3502,7 +3540,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3502
3540
|
"stroke-width": H.value.chart.grid.stroke,
|
|
3503
3541
|
"stroke-linecap": "round",
|
|
3504
3542
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3505
|
-
}, null, 12, kn)]))), 256)), (D(!0), w(x, null, k(
|
|
3543
|
+
}, null, 12, kn)]))), 256)), (D(!0), w(x, null, k(zc.value, (e) => (D(), w("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
|
|
3506
3544
|
T("text", {
|
|
3507
3545
|
fill: e.color,
|
|
3508
3546
|
"font-size": V.value.dataLabels * .8,
|
|
@@ -3534,7 +3572,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3534
3572
|
datapoint: t.datapoint,
|
|
3535
3573
|
seriesIndex: n
|
|
3536
3574
|
})), 9, Mn))), 256))
|
|
3537
|
-
], 4))), 256))], 64)) : (D(!0), w(x, { key: 1 }, k(
|
|
3575
|
+
], 4))), 256))], 64)) : (D(!0), w(x, { key: 1 }, k(wc.value, (e, t) => (D(), w("g", { key: `yLabel_${t}` }, [j(vt)(e) && e.value >= K.value.min && e.value <= K.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), w("line", {
|
|
3538
3576
|
key: 0,
|
|
3539
3577
|
x1: J.value ? Y.value?.right : Y.value?.left,
|
|
3540
3578
|
x2: J.value ? Y.value?.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - H.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -3556,7 +3594,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3556
3594
|
s: e.suffix,
|
|
3557
3595
|
r: H.value.chart.grid.labels.yAxis.rounding
|
|
3558
3596
|
})) : ""), 9, Pn)) : C("", !0)]))), 128))], 8, On)) : C("", !0),
|
|
3559
|
-
|
|
3597
|
+
_l.value ? (D(), w("g", Fn, [(D(!0), w(x, null, k(vl.value, (e) => (D(), w("text", {
|
|
3560
3598
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
3561
3599
|
transform: `translate(${J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(y)(e.y) + V.value.dataLabels / 3})`,
|
|
3562
3600
|
"font-size": V.value.dataLabels,
|
|
@@ -3576,8 +3614,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3576
3614
|
datapoint: e.serie,
|
|
3577
3615
|
seriesIndex: e.index
|
|
3578
3616
|
})), 9, In))), 128))])) : C("", !0),
|
|
3579
|
-
|
|
3580
|
-
cx:
|
|
3617
|
+
yl.value ? (D(), w("g", Ln, [T("circle", {
|
|
3618
|
+
cx: gl.value,
|
|
3581
3619
|
cy: j(y)(Y.value?.bottom),
|
|
3582
3620
|
r: H.value.chart.highlighter.crosshairs.dot.radius,
|
|
3583
3621
|
fill: H.value.chart.highlighter.crosshairs.dot.fill,
|
|
@@ -3589,7 +3627,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3589
3627
|
"pointer-events": "none"
|
|
3590
3628
|
}
|
|
3591
3629
|
}, null, 8, Rn)])) : C("", !0),
|
|
3592
|
-
(D(!0), w(x, null, k(
|
|
3630
|
+
(D(!0), w(x, null, k(Rc.value, (e, t) => (D(), w("g", {
|
|
3593
3631
|
key: `serie_plot_${e.id}`,
|
|
3594
3632
|
class: at(`serie_plot_${t}`),
|
|
3595
3633
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -3608,10 +3646,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3608
3646
|
x: j(b)(r.x),
|
|
3609
3647
|
y: j(b)(r.y)
|
|
3610
3648
|
},
|
|
3611
|
-
radius:
|
|
3649
|
+
radius: xl(e, r, i) ? (Ia.value.plot || 6) * 1.5 : (Ec(e.plots, i), Ia.value.plot || 6),
|
|
3612
3650
|
stroke: H.value.plot.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
|
|
3613
3651
|
strokeWidth: H.value.plot.dot.strokeWidth,
|
|
3614
|
-
transition: j(
|
|
3652
|
+
transition: j(Ka) || os.value || !H.value.plot.showTransition || xl(e, r, i) ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`,
|
|
3653
|
+
still: os.value
|
|
3615
3654
|
}, null, 8, [
|
|
3616
3655
|
"shape",
|
|
3617
3656
|
"color",
|
|
@@ -3619,7 +3658,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3619
3658
|
"radius",
|
|
3620
3659
|
"stroke",
|
|
3621
3660
|
"strokeWidth",
|
|
3622
|
-
"transition"
|
|
3661
|
+
"transition",
|
|
3662
|
+
"still"
|
|
3623
3663
|
])) : C("", !0), r.comment && H.value.chart.comments.show ? (D(), w("foreignObject", {
|
|
3624
3664
|
key: 1,
|
|
3625
3665
|
style: { overflow: "visible" },
|
|
@@ -3644,7 +3684,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3644
3684
|
"stroke-width": H.value.line.strokeWidth + 1,
|
|
3645
3685
|
"stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
|
|
3646
3686
|
fill: "none",
|
|
3647
|
-
style: E({ transition: j(
|
|
3687
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3648
3688
|
}, null, 12, Vn)) : e.plots.length > 1 && e.straight ? (D(), w("path", {
|
|
3649
3689
|
key: 1,
|
|
3650
3690
|
d: `M${e.straight}`,
|
|
@@ -3654,21 +3694,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3654
3694
|
fill: "none",
|
|
3655
3695
|
"stroke-linecap": "round",
|
|
3656
3696
|
"stroke-linejoin": "round",
|
|
3657
|
-
style: E({ transition: j(
|
|
3697
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3658
3698
|
}, null, 12, Hn)) : C("", !0)], 6))), 128)),
|
|
3659
|
-
n.$slots.pattern ? (D(), w("defs", Un, [(D(!0), w(x, null, k(
|
|
3699
|
+
n.$slots.pattern ? (D(), w("defs", Un, [(D(!0), w(x, null, k(yo.value, (e, t) => A(n.$slots, "pattern", rt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
3660
3700
|
...e,
|
|
3661
3701
|
seriesIndex: e.slotAbsoluteIndex,
|
|
3662
3702
|
patternId: `pattern_${L.value}_${t}`
|
|
3663
3703
|
}), void 0, !0)), 128))])) : C("", !0),
|
|
3664
|
-
|
|
3704
|
+
Bc.value.length && !U.value.isStacked ? (D(), w("g", Wn, [(D(!0), w(x, null, k(Bc.value, (e) => (D(), w("path", {
|
|
3665
3705
|
key: e.key,
|
|
3666
3706
|
d: e.d,
|
|
3667
3707
|
fill: e.color,
|
|
3668
3708
|
"fill-opacity": H.value.line.interLine.fillOpacity,
|
|
3669
3709
|
stroke: "none",
|
|
3670
3710
|
"pointer-events": "none",
|
|
3671
|
-
style: E({ transition: j(
|
|
3711
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3672
3712
|
}, null, 12, Gn))), 128))])) : C("", !0),
|
|
3673
3713
|
(D(!0), w(x, null, k($.value, (e, t) => (D(), w("g", {
|
|
3674
3714
|
key: `serie_line_above_${e.id}`,
|
|
@@ -3679,22 +3719,22 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3679
3719
|
key: 0,
|
|
3680
3720
|
d: r,
|
|
3681
3721
|
fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(m)(e.color, H.value.line.area.opacity),
|
|
3682
|
-
style: E({ transition: j(
|
|
3722
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3683
3723
|
}, null, 12, qn)) : C("", !0), n.$slots.pattern && r ? (D(), w("path", {
|
|
3684
3724
|
key: 1,
|
|
3685
3725
|
d: r,
|
|
3686
3726
|
fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
|
|
3687
|
-
style: E({ transition: j(
|
|
3727
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3688
3728
|
}, null, 12, Jn)) : C("", !0)], 64))), 128)) : (D(!0), w(x, { key: 1 }, k(e.area.split(";"), (r, i) => (D(), w(x, { key: i }, [r ? (D(), w("path", {
|
|
3689
3729
|
key: 0,
|
|
3690
3730
|
d: `M${r}Z`,
|
|
3691
3731
|
fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(m)(e.color, H.value.line.area.opacity),
|
|
3692
|
-
style: E({ transition: j(
|
|
3732
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3693
3733
|
}, null, 12, Yn)) : C("", !0), n.$slots.pattern && r ? (D(), w("path", {
|
|
3694
3734
|
key: 1,
|
|
3695
3735
|
d: `M${r}Z`,
|
|
3696
3736
|
fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
|
|
3697
|
-
style: E({ transition: j(
|
|
3737
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3698
3738
|
}, null, 12, Xn)) : C("", !0)], 64))), 128))])) : C("", !0),
|
|
3699
3739
|
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(), w("path", {
|
|
3700
3740
|
key: 1,
|
|
@@ -3704,7 +3744,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3704
3744
|
"stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
|
|
3705
3745
|
fill: "none",
|
|
3706
3746
|
"stroke-linecap": "round",
|
|
3707
|
-
style: E({ transition: j(
|
|
3747
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3708
3748
|
}, null, 12, Zn)) : e.hasDashedSegments ? (D(), w(x, { key: 2 }, [e.smooth ? (D(!0), w(x, { key: 0 }, k(e.dashedSmooth, (n) => (D(), w("path", {
|
|
3709
3749
|
key: n.path,
|
|
3710
3750
|
fill: "none",
|
|
@@ -3732,9 +3772,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3732
3772
|
fill: "none",
|
|
3733
3773
|
"stroke-linecap": "round",
|
|
3734
3774
|
"stroke-linejoin": "round",
|
|
3735
|
-
style: E({ transition: j(
|
|
3775
|
+
style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3736
3776
|
}, null, 12, er)) : C("", !0),
|
|
3737
|
-
(D(!0), w(x, null, k(e.plots, (r, i) => (D(), w(x, { key: `circle_line_${t}_${i}` }, [!
|
|
3777
|
+
(D(!0), w(x, null, k(e.plots, (r, i) => (D(), w(x, { key: `circle_line_${t}_${i}` }, [!tc.value.linePlot && r && j(vt)(r.value) || tc.value.linePlot && r && j(vt)(r.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || Ec(e.plots, i) ? (D(), Xe(Ue, {
|
|
3738
3778
|
key: 0,
|
|
3739
3779
|
shape: [
|
|
3740
3780
|
"triangle",
|
|
@@ -3749,10 +3789,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3749
3789
|
x: j(b)(r.x),
|
|
3750
3790
|
y: j(b)(r.y)
|
|
3751
3791
|
},
|
|
3752
|
-
radius:
|
|
3792
|
+
radius: xl(e, r, i) ? La.value || 0 : (Ec(e.plots, i), Ia.value.line || 0),
|
|
3753
3793
|
stroke: H.value.line.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
|
|
3754
3794
|
strokeWidth: H.value.line.dot.strokeWidth,
|
|
3755
|
-
transition: j(
|
|
3795
|
+
transition: j(Ka) || os.value || !H.value.line.showTransition || xl(e, r, i) ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`,
|
|
3796
|
+
still: os.value
|
|
3756
3797
|
}, null, 8, [
|
|
3757
3798
|
"shape",
|
|
3758
3799
|
"color",
|
|
@@ -3760,7 +3801,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3760
3801
|
"radius",
|
|
3761
3802
|
"stroke",
|
|
3762
3803
|
"strokeWidth",
|
|
3763
|
-
"transition"
|
|
3804
|
+
"transition",
|
|
3805
|
+
"still"
|
|
3764
3806
|
])) : C("", !0), r.comment && H.value.chart.comments.show ? (D(), w("foreignObject", {
|
|
3765
3807
|
key: 1,
|
|
3766
3808
|
style: { overflow: "visible" },
|
|
@@ -3775,26 +3817,26 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3775
3817
|
datapointIndex: i
|
|
3776
3818
|
} }, void 0, !0)])], 8, tr)) : C("", !0)], 64))), 128))
|
|
3777
3819
|
], 6))), 128)),
|
|
3778
|
-
(H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), w("g", rr, [(D(!0), w(x, null, k(
|
|
3820
|
+
(H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), w("g", rr, [(D(!0), w(x, null, k(Lc.value, (e, t) => (D(), w(x, { key: `xLabel_bar_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), w("text", {
|
|
3779
3821
|
key: 0,
|
|
3780
|
-
"text-anchor":
|
|
3822
|
+
"text-anchor": hl({
|
|
3781
3823
|
plot: n,
|
|
3782
3824
|
type: "bar"
|
|
3783
3825
|
}),
|
|
3784
3826
|
"font-size": V.value.plotLabels,
|
|
3785
|
-
transform:
|
|
3827
|
+
transform: pl({ plot: n }),
|
|
3786
3828
|
fill: H.value.bar.labels.color,
|
|
3787
3829
|
stroke: H.value.chart.backgroundColor,
|
|
3788
3830
|
"paint-order": "stroke",
|
|
3789
3831
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3790
|
-
innerHTML:
|
|
3832
|
+
innerHTML: fl({
|
|
3791
3833
|
serie: e,
|
|
3792
3834
|
plot: n,
|
|
3793
3835
|
type: "bar"
|
|
3794
3836
|
})
|
|
3795
3837
|
}, null, 12, ir)) : C("", !0), n && H.value.bar.serieName.show ? (D(), w("text", {
|
|
3796
3838
|
key: 1,
|
|
3797
|
-
x: U.value.useIndividualScale && U.value.isStacked ? n.x +
|
|
3839
|
+
x: U.value.useIndividualScale && U.value.isStacked ? n.x + ks.value.line / 2 : n.x + As() * 1.1,
|
|
3798
3840
|
y: n.y + (n.value > 0 ? H.value.bar.serieName.offsetY : -H.value.bar.serieName.offsetY * 3),
|
|
3799
3841
|
"text-anchor": "middle",
|
|
3800
3842
|
"font-size": V.value.plotLabels,
|
|
@@ -3805,13 +3847,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3805
3847
|
source: e.name,
|
|
3806
3848
|
length: H.value.bar.serieName.abbreviationSize
|
|
3807
3849
|
}) : e.name), 13, ar)) : C("", !0)], 64))), 128))], 64))), 128))])) : C("", !0),
|
|
3808
|
-
H.value.plot.labels.show && U.value.dataLabels.show ? (D(), w("g", or, [(D(!0), w(x, null, k(
|
|
3850
|
+
H.value.plot.labels.show && U.value.dataLabels.show ? (D(), w("g", or, [(D(!0), w(x, null, k(Rc.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || xl(e, n, r) ? (D(), w("text", {
|
|
3809
3851
|
key: 0,
|
|
3810
|
-
transform:
|
|
3852
|
+
transform: ml({
|
|
3811
3853
|
plot: n,
|
|
3812
3854
|
type: "plot"
|
|
3813
3855
|
}),
|
|
3814
|
-
"text-anchor":
|
|
3856
|
+
"text-anchor": hl({
|
|
3815
3857
|
plot: n,
|
|
3816
3858
|
type: "plot"
|
|
3817
3859
|
}),
|
|
@@ -3820,12 +3862,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3820
3862
|
stroke: H.value.chart.backgroundColor,
|
|
3821
3863
|
"paint-order": "stroke",
|
|
3822
3864
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3823
|
-
innerHTML:
|
|
3865
|
+
innerHTML: fl({
|
|
3824
3866
|
serie: e,
|
|
3825
3867
|
plot: n,
|
|
3826
3868
|
type: "plot"
|
|
3827
3869
|
})
|
|
3828
|
-
}, null, 12, sr)) : C("", !0)], 64))), 128))], 64))), 128))])) : (D(), w("g", cr, [(D(!0), w(x, null, k(
|
|
3870
|
+
}, null, 12, sr)) : C("", !0)], 64))), 128))], 64))), 128))])) : (D(), w("g", cr, [(D(!0), w(x, null, k(Rc.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), w(x, { key: 1 }, [[
|
|
3829
3871
|
R.value,
|
|
3830
3872
|
B.value,
|
|
3831
3873
|
oa.value
|
|
@@ -3869,13 +3911,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3869
3911
|
serieName: e.name
|
|
3870
3912
|
})
|
|
3871
3913
|
}, null, 12, fr)], 12, dr)) : C("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
3872
|
-
H.value.line.labels.show && U.value.dataLabels.show ? (D(), w("g", mr, [(D(!0), w(x, null, k($.value, (e, t) => (D(), w(x, { key: `xLabel_line_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3914
|
+
H.value.line.labels.show && U.value.dataLabels.show ? (D(), w("g", mr, [(D(!0), w(x, null, k($.value, (e, t) => (D(), w(x, { key: `xLabel_line_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || xl(e, n, r) ? (D(), w("text", {
|
|
3873
3915
|
key: 0,
|
|
3874
|
-
transform:
|
|
3916
|
+
transform: ml({
|
|
3875
3917
|
plot: n,
|
|
3876
3918
|
type: "line"
|
|
3877
3919
|
}),
|
|
3878
|
-
"text-anchor":
|
|
3920
|
+
"text-anchor": hl({
|
|
3879
3921
|
plot: n,
|
|
3880
3922
|
type: "line"
|
|
3881
3923
|
}),
|
|
@@ -3884,7 +3926,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3884
3926
|
stroke: H.value.chart.backgroundColor,
|
|
3885
3927
|
"paint-order": "stroke",
|
|
3886
3928
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3887
|
-
innerHTML:
|
|
3929
|
+
innerHTML: fl({
|
|
3888
3930
|
serie: e,
|
|
3889
3931
|
plot: n,
|
|
3890
3932
|
type: "line"
|
|
@@ -3966,7 +4008,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
3966
4008
|
}),
|
|
3967
4009
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3968
4010
|
}, null, 12, Cr)) : C("", !0)], 64))), 128))], 64))), 128)),
|
|
3969
|
-
(D(!0), w(x, null, k(
|
|
4011
|
+
(D(!0), w(x, null, k(Rc.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), w("text", {
|
|
3970
4012
|
key: 0,
|
|
3971
4013
|
x: n.x - V.value.plotLabels,
|
|
3972
4014
|
y: n.y,
|
|
@@ -4000,9 +4042,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4000
4042
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4001
4043
|
}, null, 12, Tr)) : C("", !0)], 64))), 128))], 64))), 128)),
|
|
4002
4044
|
(D(!0), w(x, null, k([
|
|
4003
|
-
...
|
|
4045
|
+
...Rc.value,
|
|
4004
4046
|
...$.value,
|
|
4005
|
-
...
|
|
4047
|
+
...Lc.value
|
|
4006
4048
|
], (e, t) => (D(), w(x, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(j(ve)(e.plots).trend) ? (D(), w("g", Er, [
|
|
4007
4049
|
T("defs", null, [T("marker", {
|
|
4008
4050
|
id: `progression_arrow_${t}`,
|
|
@@ -4023,8 +4065,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4023
4065
|
}, null, 8, Or)], 8, Dr)]),
|
|
4024
4066
|
e.plots.length > 1 ? (D(), w("line", {
|
|
4025
4067
|
key: 0,
|
|
4026
|
-
x1: j(ve)(e.plots).x1 + (e.type === "bar" ?
|
|
4027
|
-
x2: j(ve)(e.plots).x2 + (e.type === "bar" ?
|
|
4068
|
+
x1: j(ve)(e.plots).x1 + (e.type === "bar" ? As() : 0),
|
|
4069
|
+
x2: j(ve)(e.plots).x2 + (e.type === "bar" ? As() : 0),
|
|
4028
4070
|
y1: j(y)(j(ve)(e.plots).y1),
|
|
4029
4071
|
y2: j(y)(j(ve)(e.plots).y2),
|
|
4030
4072
|
"stroke-width": 1,
|
|
@@ -4036,8 +4078,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4036
4078
|
}, null, 8, kr)) : C("", !0),
|
|
4037
4079
|
e.plots.length > 1 ? (D(), w("line", {
|
|
4038
4080
|
key: 1,
|
|
4039
|
-
x1: j(ve)(e.plots).x1 + (e.type === "bar" ?
|
|
4040
|
-
x2: j(ve)(e.plots).x2 + (e.type === "bar" ?
|
|
4081
|
+
x1: j(ve)(e.plots).x1 + (e.type === "bar" ? As() : 0),
|
|
4082
|
+
x2: j(ve)(e.plots).x2 + (e.type === "bar" ? As() : 0),
|
|
4041
4083
|
y1: j(y)(j(ve)(e.plots).y1),
|
|
4042
4084
|
y2: j(y)(j(ve)(e.plots).y2),
|
|
4043
4085
|
"stroke-width": 1,
|
|
@@ -4050,7 +4092,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4050
4092
|
e.plots.length > 1 ? (D(), w("text", {
|
|
4051
4093
|
key: 2,
|
|
4052
4094
|
"text-anchor": "middle",
|
|
4053
|
-
x: j(ve)(e.plots).x2 + (e.type === "bar" ?
|
|
4095
|
+
x: j(ve)(e.plots).x2 + (e.type === "bar" ? As() : 0),
|
|
4054
4096
|
y: j(ve)(e.plots).y2 - 12,
|
|
4055
4097
|
"font-size": V.value.plotLabels,
|
|
4056
4098
|
fill: e.color,
|
|
@@ -4065,7 +4107,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4065
4107
|
r: 2
|
|
4066
4108
|
})), 9, jr)) : C("", !0)
|
|
4067
4109
|
])) : C("", !0)], 64))), 128)),
|
|
4068
|
-
U.value.useIndividualScale && !U.value.isStacked ? (D(), w(x, { key: 16 }, [T("defs", null, [(D(!0), w(x, null, k(
|
|
4110
|
+
U.value.useIndividualScale && !U.value.isStacked ? (D(), w(x, { key: 16 }, [T("defs", null, [(D(!0), w(x, null, k(zc.value, (e, t) => (D(), w("linearGradient", {
|
|
4069
4111
|
id: `individual_scale_gradient_${L.value}_${t}`,
|
|
4070
4112
|
x1: J.value ? "100%" : "0%",
|
|
4071
4113
|
x2: J.value ? "0%" : "100%",
|
|
@@ -4079,7 +4121,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4079
4121
|
offset: "100%",
|
|
4080
4122
|
"stop-color": e.color,
|
|
4081
4123
|
"stop-opacity": "0.2"
|
|
4082
|
-
}, null, 8, Pr)], 8, Mr))), 256))]), (D(!0), w(x, null, k(
|
|
4124
|
+
}, null, 8, Pr)], 8, Mr))), 256))]), (D(!0), w(x, null, k(zc.value, (e, t) => (D(), w("rect", {
|
|
4083
4125
|
x: J.value ? e.x : e.x - H.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
|
|
4084
4126
|
y: Y.value?.top,
|
|
4085
4127
|
width: (J.value, H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
|
|
@@ -4111,29 +4153,29 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4111
4153
|
key: 17,
|
|
4112
4154
|
ref_key: "timeLabelsEls",
|
|
4113
4155
|
ref: Ki,
|
|
4114
|
-
opacity:
|
|
4156
|
+
opacity: _l.value ? .1 : 1,
|
|
4115
4157
|
style: { transition: "opacity 0.2s" }
|
|
4116
|
-
}, [n.$slots["time-label"] ? (D(!0), w(x, { key: 0 }, k(
|
|
4158
|
+
}, [n.$slots["time-label"] ? (D(!0), w(x, { key: 0 }, k(kc.value, (e, t) => A(n.$slots, "time-label", rt({
|
|
4117
4159
|
key: `time_label_${e.id}`,
|
|
4118
4160
|
ref_for: !0
|
|
4119
4161
|
}, {
|
|
4120
|
-
x:
|
|
4162
|
+
x: Ac(e, t),
|
|
4121
4163
|
y: Y.value?.bottom,
|
|
4122
4164
|
fontSize: V.value.xAxis,
|
|
4123
4165
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
4124
|
-
transform: `translate(${
|
|
4166
|
+
transform: `translate(${Ac(e, t)}, ${Y.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4125
4167
|
absoluteIndex: e.absoluteIndex,
|
|
4126
4168
|
content: e.text,
|
|
4127
4169
|
textAnchor: H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4128
4170
|
show: e && e.text
|
|
4129
|
-
}), void 0, !0)), 128)) : (D(!0), w(x, { key: 1 }, k(
|
|
4171
|
+
}), void 0, !0)), 128)) : (D(!0), w(x, { key: 1 }, k(kc.value, (e, n) => (D(), w("g", { key: `time_label_${n}` }, [e && e.text ? (D(), w(x, { key: 0 }, [String(e.text).includes("\n") ? (D(), w("text", {
|
|
4130
4172
|
key: 1,
|
|
4131
4173
|
class: "vue-data-ui-time-label",
|
|
4132
4174
|
"text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4133
4175
|
"font-size": V.value.xAxis,
|
|
4134
4176
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
4135
|
-
transform: `translate(${
|
|
4136
|
-
style: E({ cursor:
|
|
4177
|
+
transform: `translate(${Ac(e, n)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4178
|
+
style: E({ cursor: Po() && Va.value ? "pointer" : "default" }),
|
|
4137
4179
|
innerHTML: j(t)({
|
|
4138
4180
|
content: String(e.text),
|
|
4139
4181
|
fontSize: V.value.xAxis,
|
|
@@ -4141,23 +4183,23 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4141
4183
|
x: 0,
|
|
4142
4184
|
y: 0
|
|
4143
4185
|
}),
|
|
4144
|
-
onClick: () =>
|
|
4186
|
+
onClick: () => qo(e, n)
|
|
4145
4187
|
}, null, 12, Br)) : (D(), w("text", {
|
|
4146
4188
|
key: 0,
|
|
4147
4189
|
class: "vue-data-ui-time-label",
|
|
4148
4190
|
"text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4149
4191
|
"font-size": V.value.xAxis,
|
|
4150
4192
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
4151
|
-
transform: `translate(${
|
|
4152
|
-
style: E({ cursor:
|
|
4153
|
-
onClick: () =>
|
|
4193
|
+
transform: `translate(${Ac(e, n)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4194
|
+
style: E({ cursor: Po() && Va.value ? "pointer" : "default" }),
|
|
4195
|
+
onClick: () => qo(e, n)
|
|
4154
4196
|
}, dt(e.text || ""), 13, zr))], 64)) : C("", !0)]))), 128))], 8, Rr)) : C("", !0),
|
|
4155
|
-
|
|
4197
|
+
yl.value ? (D(), w("g", Vr, [T("text", {
|
|
4156
4198
|
class: "vue-data-ui-time-label",
|
|
4157
4199
|
"text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4158
4200
|
"font-size": V.value.xAxis,
|
|
4159
4201
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
4160
|
-
transform: `translate(${
|
|
4202
|
+
transform: `translate(${yl.value.x}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4161
4203
|
"font-weight": "bold",
|
|
4162
4204
|
style: {
|
|
4163
4205
|
transition: "none !important",
|
|
@@ -4165,14 +4207,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4165
4207
|
"pointer-events": "none"
|
|
4166
4208
|
},
|
|
4167
4209
|
innerHTML: j(t)({
|
|
4168
|
-
content: String(
|
|
4210
|
+
content: String(yl.value.text),
|
|
4169
4211
|
fontSize: V.value.xAxis,
|
|
4170
4212
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
4171
4213
|
x: 0,
|
|
4172
4214
|
y: 0
|
|
4173
4215
|
})
|
|
4174
4216
|
}, null, 8, Hr)])) : C("", !0),
|
|
4175
|
-
|
|
4217
|
+
Tc.value.length && !U.value.isStacked ? (D(), w("g", Ur, [(D(!0), w(x, null, k(Tc.value, (e) => (D(), w("g", { key: e.uid }, [
|
|
4176
4218
|
e.yTop && e.show && isFinite(e.yTop) ? (D(), w("line", {
|
|
4177
4219
|
key: 0,
|
|
4178
4220
|
x1: e.x1,
|
|
@@ -4224,46 +4266,46 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4224
4266
|
"text-anchor": e.config.label.textAnchor
|
|
4225
4267
|
}, dt(e.config.label.text), 9, qr)) : C("", !0)
|
|
4226
4268
|
]))), 128))])) : C("", !0),
|
|
4227
|
-
!
|
|
4228
|
-
x:
|
|
4269
|
+
!_l.value && H.value.chart.timeTag.show && (q.value ? j(g)(cl.value) : ![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), w("g", Jr, [(D(), w("foreignObject", {
|
|
4270
|
+
x: ul(),
|
|
4229
4271
|
y: Y.value?.bottom,
|
|
4230
4272
|
width: "200",
|
|
4231
4273
|
height: "40",
|
|
4232
4274
|
style: { overflow: "visible !important" }
|
|
4233
4275
|
}, [T("div", {
|
|
4234
4276
|
ref_key: "timeTagEl",
|
|
4235
|
-
ref:
|
|
4277
|
+
ref: al,
|
|
4236
4278
|
class: "vue-ui-xy-time-tag",
|
|
4237
4279
|
style: E(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${H.value.chart.timeTag.backgroundColor};color:${H.value.chart.timeTag.color};font-size:${H.value.chart.timeTag.fontSize}px`),
|
|
4238
|
-
innerHTML:
|
|
4280
|
+
innerHTML: dl.value
|
|
4239
4281
|
}, null, 12, Xr)], 8, Yr)), T("circle", {
|
|
4240
|
-
cx: q.value && j(g)(
|
|
4282
|
+
cx: q.value && j(g)(cl.value) ? jc({ x: cl.value }) : lc((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
|
|
4241
4283
|
cy: Y.value?.bottom,
|
|
4242
4284
|
r: H.value.chart.timeTag.circleMarker.radius,
|
|
4243
4285
|
fill: H.value.chart.timeTag.circleMarker.color
|
|
4244
4286
|
}, null, 8, Zr)])) : C("", !0)
|
|
4245
4287
|
])) : C("", !0),
|
|
4246
|
-
|
|
4288
|
+
Qa.value ? (D(), w("rect", rt({ key: 2 }, to.value, {
|
|
4247
4289
|
"data-start": G.value.start,
|
|
4248
4290
|
"data-end": G.value.end
|
|
4249
4291
|
}), null, 16, Qr)) : C("", !0),
|
|
4250
4292
|
A(n.$slots, "svg", { svg: {
|
|
4251
4293
|
...Ma.value,
|
|
4252
4294
|
slicer: G.value,
|
|
4253
|
-
isPrintingImg: j(
|
|
4295
|
+
isPrintingImg: j(no) || j(ro) || ya.value,
|
|
4254
4296
|
isPrintingSvg: ba.value,
|
|
4255
4297
|
data: [
|
|
4256
4298
|
...$.value,
|
|
4257
|
-
...
|
|
4258
|
-
...
|
|
4299
|
+
...Lc.value,
|
|
4300
|
+
...Rc.value
|
|
4259
4301
|
],
|
|
4260
4302
|
drawingArea: Y.value
|
|
4261
4303
|
} }, void 0, !0)
|
|
4262
4304
|
], 512)], 46, Mt)), n.$slots.hint ? (D(), w("div", $r, [A(n.$slots, "hint", ot(nt({
|
|
4263
4305
|
hint: H.value.a11y.translations.keyboardNavigation,
|
|
4264
|
-
isVisible:
|
|
4306
|
+
isVisible: Pl.value
|
|
4265
4307
|
})), void 0, !0)])) : C("", !0)]),
|
|
4266
|
-
n.$slots.watermark ? (D(), w("div", ei, [A(n.$slots, "watermark", ot(nt({ isPrinting: j(
|
|
4308
|
+
n.$slots.watermark ? (D(), w("div", ei, [A(n.$slots, "watermark", ot(nt({ isPrinting: j(no) || j(ro) || ya.value || ba.value })), void 0, !0)])) : C("", !0),
|
|
4267
4309
|
(D(!0), w(x, null, k($.value, (e, t) => (D(), w(x, { key: `tag_line_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `tag_line_${t}_${r}` }, [[
|
|
4268
4310
|
R.value,
|
|
4269
4311
|
B.value,
|
|
@@ -4271,7 +4313,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4271
4313
|
].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(), w("div", {
|
|
4272
4314
|
key: 0,
|
|
4273
4315
|
ref_for: !0,
|
|
4274
|
-
ref: (e) =>
|
|
4316
|
+
ref: (e) => Lo(t, r, e, "right", "line"),
|
|
4275
4317
|
class: "vue-ui-xy-tag",
|
|
4276
4318
|
"data-tag": "right",
|
|
4277
4319
|
style: E({
|
|
@@ -4316,7 +4358,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4316
4358
|
].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(), w("div", {
|
|
4317
4359
|
key: 1,
|
|
4318
4360
|
ref_for: !0,
|
|
4319
|
-
ref: (e) =>
|
|
4361
|
+
ref: (e) => Lo(t, r, e, "left", "line"),
|
|
4320
4362
|
class: "vue-ui-xy-tag",
|
|
4321
4363
|
"data-tag": "left",
|
|
4322
4364
|
style: E({
|
|
@@ -4355,14 +4397,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4355
4397
|
serieName: e.name
|
|
4356
4398
|
})
|
|
4357
4399
|
}, null, 8, oi)], 4)) : C("", !0)], 64))), 128))], 64))), 128)),
|
|
4358
|
-
(D(!0), w(x, null, k(
|
|
4400
|
+
(D(!0), w(x, null, k(Rc.value, (e, t) => (D(), w(x, { key: `tag_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `tag_plot_${t}_${r}` }, [[
|
|
4359
4401
|
R.value,
|
|
4360
4402
|
B.value,
|
|
4361
4403
|
oa.value
|
|
4362
4404
|
].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(), w("div", {
|
|
4363
4405
|
key: 0,
|
|
4364
4406
|
ref_for: !0,
|
|
4365
|
-
ref: (e) =>
|
|
4407
|
+
ref: (e) => Lo(t, r, e, "right", "plot"),
|
|
4366
4408
|
class: "vue-ui-xy-tag",
|
|
4367
4409
|
"data-tag": "right",
|
|
4368
4410
|
style: E({
|
|
@@ -4407,7 +4449,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4407
4449
|
].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(), w("div", {
|
|
4408
4450
|
key: 1,
|
|
4409
4451
|
ref_for: !0,
|
|
4410
|
-
ref: (e) =>
|
|
4452
|
+
ref: (e) => Lo(t, r, e, "left", "plot"),
|
|
4411
4453
|
class: "vue-ui-xy-tag",
|
|
4412
4454
|
"data-tag": "left",
|
|
4413
4455
|
style: E({
|
|
@@ -4446,12 +4488,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4446
4488
|
serieName: e.name
|
|
4447
4489
|
})
|
|
4448
4490
|
}, null, 8, fi)], 4)) : C("", !0)], 64))), 128))], 64))), 128)),
|
|
4449
|
-
H.value.chart.zoom.show &&
|
|
4491
|
+
H.value.chart.zoom.show && Xa.value > 6 && Ba.value && ts.value ? (D(), Xe(Ge, {
|
|
4450
4492
|
key: 6,
|
|
4451
4493
|
ref_key: "chartSlicer",
|
|
4452
4494
|
ref: zi,
|
|
4453
4495
|
uuid: L.value,
|
|
4454
|
-
allMinimaps:
|
|
4496
|
+
allMinimaps: Sc.value,
|
|
4455
4497
|
background: H.value.chart.zoom.color,
|
|
4456
4498
|
borderColor: H.value.chart.backgroundColor,
|
|
4457
4499
|
customFormat: H.value.chart.zoom.customFormat,
|
|
@@ -4465,14 +4507,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4465
4507
|
useResetSlot: H.value.chart.zoom.useResetSlot,
|
|
4466
4508
|
immediate: !H.value.chart.zoom.preview.enable,
|
|
4467
4509
|
inputColor: H.value.chart.zoom.color,
|
|
4468
|
-
isPreview:
|
|
4510
|
+
isPreview: Qa.value,
|
|
4469
4511
|
labelLeft: X.value[0] ? X.value[0].text : "",
|
|
4470
4512
|
labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
|
|
4471
|
-
max:
|
|
4472
|
-
min:
|
|
4513
|
+
max: Pc.value,
|
|
4514
|
+
min: Nc.value,
|
|
4473
4515
|
precision: q.value ? H.value.chart.grid.labels.xAxis.rounding : 0,
|
|
4474
4516
|
useValueRange: q.value,
|
|
4475
|
-
minimap:
|
|
4517
|
+
minimap: xc.value,
|
|
4476
4518
|
minimapCompact: H.value.chart.zoom.minimap.compact,
|
|
4477
4519
|
minimapFrameColor: H.value.chart.zoom.minimap.frameColor,
|
|
4478
4520
|
minimapIndicatorColor: H.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -4482,15 +4524,15 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4482
4524
|
minimapSelectedColorOpacity: H.value.chart.zoom.minimap.selectedColorOpacity,
|
|
4483
4525
|
minimapSelectedIndex: q.value ? xa.value : B.value ?? R.value,
|
|
4484
4526
|
minimapSelectionRadius: H.value.chart.zoom.minimap.selectionRadius,
|
|
4485
|
-
preciseLabels:
|
|
4486
|
-
refreshStartPoint: q.value ?
|
|
4487
|
-
refreshEndPoint: q.value ?
|
|
4527
|
+
preciseLabels: Gc.value.length ? Gc.value : Vo.value,
|
|
4528
|
+
refreshStartPoint: q.value ? Nc.value : H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
|
|
4529
|
+
refreshEndPoint: q.value ? Pc.value : H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ya(e.series).length)) : H.value.chart.zoom.endIndex + 1,
|
|
4488
4530
|
selectColor: H.value.chart.zoom.highlightColor,
|
|
4489
|
-
selectedSeries:
|
|
4531
|
+
selectedSeries: Cc.value,
|
|
4490
4532
|
smoothMinimap: H.value.chart.zoom.minimap.smooth,
|
|
4491
4533
|
start: G.value.start,
|
|
4492
4534
|
textColor: H.value.chart.color,
|
|
4493
|
-
timeLabels:
|
|
4535
|
+
timeLabels: Vo.value,
|
|
4494
4536
|
usePreciseLabels: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.zoom.useDefaultFormat,
|
|
4495
4537
|
valueEnd: G.value.end,
|
|
4496
4538
|
valueStart: G.value.start,
|
|
@@ -4505,14 +4547,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4505
4547
|
handleBorderColor: H.value.chart.zoom.minimap.handleBorderColor,
|
|
4506
4548
|
handleFill: H.value.chart.zoom.minimap.handleFill,
|
|
4507
4549
|
handleWidth: H.value.chart.zoom.minimap.handleWidth,
|
|
4508
|
-
isCursorPointer:
|
|
4509
|
-
onFutureEnd: r[1] ||= (e) =>
|
|
4510
|
-
onFutureStart: r[2] ||= (e) =>
|
|
4511
|
-
onReset:
|
|
4512
|
-
onTrapMouse:
|
|
4513
|
-
onTrapMouseValue:
|
|
4514
|
-
"onUpdate:end":
|
|
4515
|
-
"onUpdate:start":
|
|
4550
|
+
isCursorPointer: Va.value,
|
|
4551
|
+
onFutureEnd: r[1] ||= (e) => $a("end", e),
|
|
4552
|
+
onFutureStart: r[2] ||= (e) => $a("start", e),
|
|
4553
|
+
onReset: hs,
|
|
4554
|
+
onTrapMouse: Jo,
|
|
4555
|
+
onTrapMouseValue: Yo,
|
|
4556
|
+
"onUpdate:end": ms,
|
|
4557
|
+
"onUpdate:start": ps
|
|
4516
4558
|
}, {
|
|
4517
4559
|
"reset-action": M(({ reset: e }) => [A(n.$slots, "reset-action", ot(nt({ reset: e })), void 0, !0)]),
|
|
4518
4560
|
_: 3
|
|
@@ -4524,34 +4566,34 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4524
4566
|
}, [T("div", {
|
|
4525
4567
|
ref_key: "chartLegend",
|
|
4526
4568
|
ref: Bi
|
|
4527
|
-
}, [A(n.$slots, "legend", { legend:
|
|
4569
|
+
}, [A(n.$slots, "legend", { legend: bo.value }, () => [H.value.chart.legend.show ? (D(), w("div", {
|
|
4528
4570
|
key: 0,
|
|
4529
4571
|
class: "vue-ui-xy-legend",
|
|
4530
4572
|
style: E({ fontSize: `var(--legend-font-size, ${H.value.chart.legend.fontSize ?? 14}px)` })
|
|
4531
|
-
}, [H.value.chart.legend.selectAllToggle.show &&
|
|
4573
|
+
}, [H.value.chart.legend.selectAllToggle.show && bo.value.length > 2 && !j(Ka) ? (D(), Xe(qe, {
|
|
4532
4574
|
key: 0,
|
|
4533
4575
|
backgroundColor: H.value.chart.legend.selectAllToggle.backgroundColor,
|
|
4534
4576
|
color: H.value.chart.legend.selectAllToggle.color,
|
|
4535
4577
|
fontSize: H.value.chart.legend.fontSize,
|
|
4536
4578
|
checked: I.value.length > 0,
|
|
4537
|
-
onToggle:
|
|
4579
|
+
onToggle: qs
|
|
4538
4580
|
}, null, 8, [
|
|
4539
4581
|
"backgroundColor",
|
|
4540
4582
|
"color",
|
|
4541
4583
|
"fontSize",
|
|
4542
4584
|
"checked"
|
|
4543
|
-
])) : C("", !0), (D(!0), w(x, null, k(
|
|
4585
|
+
])) : C("", !0), (D(!0), w(x, null, k(bo.value, (e, t) => (D(), w("div", {
|
|
4544
4586
|
key: `div_legend_item_${t}`,
|
|
4545
|
-
onClick: (t) =>
|
|
4546
|
-
onKeydown: (t) =>
|
|
4587
|
+
onClick: (t) => Xs(e),
|
|
4588
|
+
onKeydown: (t) => Js(t, e),
|
|
4547
4589
|
role: "button",
|
|
4548
4590
|
tabindex: "0",
|
|
4549
4591
|
class: at({
|
|
4550
|
-
"vue-ui-xy-legend-item-alone":
|
|
4592
|
+
"vue-ui-xy-legend-item-alone": bo.value.length === 1,
|
|
4551
4593
|
"vue-ui-xy-legend-item": !0,
|
|
4552
4594
|
"vue-ui-xy-legend-item-segregated": I.value.includes(e.id)
|
|
4553
4595
|
}),
|
|
4554
|
-
style: E({ cursor:
|
|
4596
|
+
style: E({ cursor: Va.value ? "pointer" : "default" })
|
|
4555
4597
|
}, [na.value[e.type] === "line" ? (D(), w("svg", hi, [T("rect", {
|
|
4556
4598
|
x: "0",
|
|
4557
4599
|
y: "7.5",
|
|
@@ -4636,7 +4678,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4636
4678
|
offsetX: H.value.chart.tooltip.offsetX,
|
|
4637
4679
|
offsetY: H.value.chart.tooltip.offsetY,
|
|
4638
4680
|
parent: n.$refs.chart,
|
|
4639
|
-
content:
|
|
4681
|
+
content: Kc.value,
|
|
4640
4682
|
isFullscreen: ia.value,
|
|
4641
4683
|
isCustom: H.value.chart.tooltip.customFormat && typeof H.value.chart.tooltip.customFormat == "function",
|
|
4642
4684
|
smooth: H.value.chart.tooltip.smooth,
|
|
@@ -4646,9 +4688,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4646
4688
|
isA11yMode: Sa.value != null,
|
|
4647
4689
|
a11yPosition: Ca.value
|
|
4648
4690
|
}, {
|
|
4649
|
-
"tooltip-before": M(() => [A(n.$slots, "tooltip-before", ot(nt({ ...
|
|
4650
|
-
tooltip: M(() => [A(n.$slots, "tooltip", ot(nt({ ...
|
|
4651
|
-
"tooltip-after": M(() => [A(n.$slots, "tooltip-after", ot(nt({ ...
|
|
4691
|
+
"tooltip-before": M(() => [A(n.$slots, "tooltip-before", ot(nt({ ...Vc.value })), void 0, !0)]),
|
|
4692
|
+
tooltip: M(() => [A(n.$slots, "tooltip", ot(nt({ ...Vc.value })), void 0, !0)]),
|
|
4693
|
+
"tooltip-after": M(() => [A(n.$slots, "tooltip-after", ot(nt({ ...Vc.value })), void 0, !0)]),
|
|
4652
4694
|
_: 3
|
|
4653
4695
|
}, 8, [
|
|
4654
4696
|
"teleportTo",
|
|
@@ -4674,34 +4716,34 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4674
4716
|
"isA11yMode",
|
|
4675
4717
|
"a11yPosition"
|
|
4676
4718
|
]),
|
|
4677
|
-
|
|
4719
|
+
Ba.value && H.value.chart.userOptions.buttons.table ? (D(), Xe(lt(wl.value.component), rt({ key: 9 }, wl.value.props, {
|
|
4678
4720
|
ref_key: "tableUnit",
|
|
4679
4721
|
ref: va,
|
|
4680
|
-
onClose:
|
|
4722
|
+
onClose: Tl
|
|
4681
4723
|
}), Ze({
|
|
4682
|
-
content: M(() => [T("div", { style: E(`${j(
|
|
4724
|
+
content: M(() => [T("div", { style: E(`${j(no) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [T("div", xi, [_t(T("input", {
|
|
4683
4725
|
type: "checkbox",
|
|
4684
4726
|
"onUpdate:modelValue": r[4] ||= (e) => ua.value = e
|
|
4685
4727
|
}, null, 512), [[mt, ua.value]]), T("div", {
|
|
4686
4728
|
onClick: r[5] ||= (e) => ua.value = !ua.value,
|
|
4687
|
-
style: E({ cursor:
|
|
4729
|
+
style: E({ cursor: Va.value ? "pointer" : "default" })
|
|
4688
4730
|
}, [$e(j(Ei), {
|
|
4689
4731
|
name: "chartLine",
|
|
4690
4732
|
size: 20,
|
|
4691
4733
|
stroke: H.value.chart.color
|
|
4692
4734
|
}, null, 8, ["stroke"])], 4)]), ua.value ? (D(), Xe(j(Di), {
|
|
4693
4735
|
key: `sparkline_${da.value}`,
|
|
4694
|
-
dataset:
|
|
4695
|
-
config:
|
|
4736
|
+
dataset: ac.value,
|
|
4737
|
+
config: oc.value
|
|
4696
4738
|
}, null, 8, ["dataset", "config"])) : (D(), Xe(j(Ci), {
|
|
4697
4739
|
key: `table_${ca.value}`,
|
|
4698
|
-
colNames:
|
|
4699
|
-
head:
|
|
4700
|
-
body:
|
|
4701
|
-
config:
|
|
4702
|
-
title: H.value.table.useDialog ? "" :
|
|
4740
|
+
colNames: Jc.value.colNames,
|
|
4741
|
+
head: Jc.value.head,
|
|
4742
|
+
body: Jc.value.body,
|
|
4743
|
+
config: Jc.value.config,
|
|
4744
|
+
title: H.value.table.useDialog ? "" : wl.value.title,
|
|
4703
4745
|
withCloseButton: !H.value.table.useDialog,
|
|
4704
|
-
onClose:
|
|
4746
|
+
onClose: Tl
|
|
4705
4747
|
}, {
|
|
4706
4748
|
th: M(({ th: e }) => [T("div", { innerHTML: e }, null, 8, Si)]),
|
|
4707
4749
|
td: M(({ td: e }) => [Qe(dt(isNaN(Number(e)) ? e : j(o)({
|
|
@@ -4722,23 +4764,23 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
|
|
|
4722
4764
|
_: 2
|
|
4723
4765
|
}, [H.value.table.useDialog ? {
|
|
4724
4766
|
name: "title",
|
|
4725
|
-
fn: M(() => [Qe(dt(
|
|
4767
|
+
fn: M(() => [Qe(dt(wl.value.title), 1)]),
|
|
4726
4768
|
key: "0"
|
|
4727
4769
|
} : void 0, H.value.table.useDialog ? {
|
|
4728
4770
|
name: "actions",
|
|
4729
4771
|
fn: M(() => [T("button", {
|
|
4730
4772
|
tabindex: "0",
|
|
4731
4773
|
class: "vue-ui-user-options-button",
|
|
4732
|
-
onClick: r[3] ||= (e) =>
|
|
4774
|
+
onClick: r[3] ||= (e) => Yc(H.value.chart.userOptions.callbacks.csv)
|
|
4733
4775
|
}, [$e(j(Ei), {
|
|
4734
4776
|
name: "fileCsv",
|
|
4735
|
-
stroke:
|
|
4777
|
+
stroke: wl.value.props.color
|
|
4736
4778
|
}, null, 8, ["stroke"])])]),
|
|
4737
4779
|
key: "1"
|
|
4738
4780
|
} : void 0]), 1040)) : C("", !0),
|
|
4739
|
-
A(n.$slots, "skeleton", {}, () => [j(
|
|
4781
|
+
A(n.$slots, "skeleton", {}, () => [j(Ka) ? (D(), Xe(Pe, { key: 0 })) : C("", !0)], !0)
|
|
4740
4782
|
], 46, Ot));
|
|
4741
4783
|
}
|
|
4742
|
-
}, [["__scopeId", "data-v-
|
|
4784
|
+
}, [["__scopeId", "data-v-aec8831a"]]);
|
|
4743
4785
|
//#endregion
|
|
4744
4786
|
export { Dt as n, N as t };
|