vue-data-ui 3.16.4 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
- package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineAsyncComponent as ke, useSlots as
|
|
2
|
-
import { j as ll, t as sl, m as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as il, a as ul, b as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as ke, useSlots as ps, computed as m, ref as f, shallowRef as qt, onMounted as bs, toRefs as xs, watch as Fe, onBeforeUnmount as Xt, nextTick as Gt, watchEffect as bt, openBlock as i, createElementBlock as v, normalizeStyle as ge, normalizeClass as tl, createElementVNode as le, toDisplayString as fe, createBlock as se, createCommentVNode as x, unref as C, withCtx as P, renderSlot as N, normalizeProps as Q, guardReactiveProps as ee, createSlots as jt, createVNode as Ze, Fragment as R, renderList as X, mergeProps as xt, Teleport as ks, resolveDynamicComponent as ws, createTextVNode as al } from "vue";
|
|
2
|
+
import { j as ll, t as sl, m as Ss, p as kt, n as Ms, o as ol, q as nl, r as $s, s as Cs, ar as Qe, E as wt, D as St, I as Ls, c as we, b as Se, F as As, T as Ts, U as Ns, k as et, l as Ce, G as tt, X as Ps, x as zs, u as Is, K as rl, a0 as _s, a1 as Fs, z as Es, A as at, a3 as Rs } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as Os, u as Ds } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as il, a as ul, b as Vs } from "./useTimeLabels-C-A2uZKi.js";
|
|
5
|
+
import { u as Bs } from "./useConfig-ChRble71.js";
|
|
6
|
+
import { u as Ys, B as Hs } from "./BaseScanner-BhhkKVoj.js";
|
|
7
|
+
import { u as Ws } from "./usePrinter-CEpYU3r5.js";
|
|
8
|
+
import { u as Us } from "./useSvgExport-ByUukOZt.js";
|
|
9
9
|
import { u as Jt } from "./useNestedProp-Bf5XFbs8.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import
|
|
10
|
+
import { u as qs } from "./useThemeCheck-D1ZYXUwG.js";
|
|
11
|
+
import { u as Xs } from "./useStableElementSize-DCNs0Tx7.js";
|
|
12
|
+
import { u as Gs } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
+
import { u as js } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
14
|
+
import { u as Js } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import Ks from "./img-LXxMLmCg.js";
|
|
16
16
|
import { _ as Kt } from "./Shape-BKRUOeKk.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { A as
|
|
21
|
-
import { S as
|
|
22
|
-
import { B as
|
|
23
|
-
import { _ as
|
|
24
|
-
const
|
|
17
|
+
import Zs from "./Title-BeMKE1cj.js";
|
|
18
|
+
import Qs from "./vue_ui_stackline-QTh-nuxE.js";
|
|
19
|
+
import eo from "./Legend-CS7Xo5LK.js";
|
|
20
|
+
import { A as to } from "./A11yDataTable-KcVAX2cP.js";
|
|
21
|
+
import { S as ao } from "./SlicerPreview-BIvxyb5W.js";
|
|
22
|
+
import { B as lo } from "./BaseLegendToggle-BQVIawmA.js";
|
|
23
|
+
import { _ as so } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
24
|
+
const oo = ["id"], no = ["id"], ro = ["id"], io = { style: { position: "relative" } }, uo = ["aria-describedby", "xmlns", "viewBox"], co = { key: 0 }, vo = ["x", "y", "width", "height"], ho = { key: 1 }, mo = ["id"], fo = ["stop-color"], yo = ["stop-color"], go = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], po = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ko = ["x", "y", "font-size", "fill", "font-weight"], wo = ["transform", "font-size", "fill", "font-weight"], So = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Mo = ["d", "fill", "opacity"], $o = ["d", "stroke", "stroke-width"], Co = ["x1", "x2", "y1", "y2", "stroke"], Lo = ["x", "y", "font-size", "font-weight", "fill"], Ao = { key: 0 }, To = { key: 1 }, No = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Po = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], zo = ["x", "y", "height", "width", "fill"], Io = { key: 0 }, _o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fo = { key: 0 }, Eo = ["x", "y", "font-size", "fill", "font-weight"], Ro = ["x", "y", "font-size", "font-weight", "fill"], Oo = ["data-start", "data-end"], Do = {
|
|
25
25
|
key: 0,
|
|
26
26
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
27
27
|
"data-dom-to-png-ignore": "",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
},
|
|
29
|
+
}, Vo = {
|
|
30
30
|
key: 5,
|
|
31
31
|
class: "vue-data-ui-watermark"
|
|
32
|
-
},
|
|
32
|
+
}, Bo = ["onClick"], Yo = ["innerHTML"], Ho = ["innerHTML"], Wo = ["id"], Uo = {
|
|
33
33
|
__name: "vue-ui-stackline",
|
|
34
34
|
props: {
|
|
35
35
|
config: {
|
|
@@ -50,16 +50,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX", "copyAlt"],
|
|
53
|
-
setup(
|
|
54
|
-
const dl = ke(() => import("./Tooltip-
|
|
53
|
+
setup(Mt, { expose: cl, emit: vl }) {
|
|
54
|
+
const dl = ke(() => import("./Tooltip-C8KGyqQk.js")), hl = ke(() => import("./BaseIcon-Cb3zzG6s.js")), ml = ke(() => import("./vue-ui-accordion-CnDW2UQL.js")), fl = ke(() => import("./DataTable-DT2kIdQ6.js")), yl = ke(() => import("./PenAndPaper-Ct3qJ4lA.js")), gl = ke(() => import("./UserOptions-rW2fRf3V.js")), pl = ke(() => import("./PackageVersion-B3kmPxTR.js")), bl = ke(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackline: xl } = Bs(), { isThemeValid: kl, warnInvalidTheme: wl } = qs(), Zt = ps(), G = Mt, ye = vl, Ee = m({
|
|
55
55
|
get() {
|
|
56
56
|
return !!G.dataset && G.dataset.length;
|
|
57
57
|
},
|
|
58
58
|
set(t) {
|
|
59
59
|
return t;
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
62
|
-
elementRef:
|
|
61
|
+
}), ie = f(null), K = f(ll()), Re = f(!1), V = f([]), Qt = f(0), ea = f(null), ta = f(null), Oe = f(null), aa = f(null), la = f(null), De = f(!1), $t = f(!1), sa = f(0), Sl = f(0), Ml = f(0), oa = f(!1), Ve = f(null), Ct = f(null), Le = f(!1), lt = f(!1), st = f(!1), ot = f(null), Lt = f(null), At = f(null), nt = f(null), $l = f(null), na = qt(null), ra = f(!1), ia = f(0), ua = f(0), ue = f(null), ca = f({ x: 0, y: 0 }), Be = f("pointer"), va = Xs({
|
|
62
|
+
elementRef: na,
|
|
63
63
|
minimumWidth: 2,
|
|
64
64
|
minimumHeight: 2,
|
|
65
65
|
stableFramesRequired: 2,
|
|
@@ -68,10 +68,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
68
68
|
rt();
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
function Tt() {
|
|
72
|
+
na.value = ie.value?.parentNode ?? null;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function da() {
|
|
75
75
|
return new Promise((t) => {
|
|
76
76
|
requestAnimationFrame(() => {
|
|
77
77
|
requestAnimationFrame(t);
|
|
@@ -79,17 +79,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
async function rt() {
|
|
82
|
-
const t = ++
|
|
83
|
-
|
|
82
|
+
const t = ++ua.value;
|
|
83
|
+
ra.value = !1, await Gt(), await da(), await da(), t === ua.value && (ia.value += 1, ra.value = !0);
|
|
84
84
|
}
|
|
85
|
-
const Ye =
|
|
86
|
-
function
|
|
85
|
+
const Ye = f(null), Ae = f(!1);
|
|
86
|
+
function Nt() {
|
|
87
87
|
Ae.value = !Ae.value;
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
bs(() => {
|
|
90
|
+
Tt(), va.start(), oa.value = !0, xa(), rt();
|
|
91
91
|
});
|
|
92
|
-
const e =
|
|
92
|
+
const e = f(It()), ce = m(() => e.value.userOptions.useCursorPointer), Cl = m(() => sl({
|
|
93
93
|
defaultConfig: {
|
|
94
94
|
userOptions: { show: !1 },
|
|
95
95
|
useCssAnimation: !1,
|
|
@@ -140,8 +140,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
userConfig: e.value.skeletonConfig ?? {}
|
|
143
|
-
})), { loading:
|
|
144
|
-
...
|
|
143
|
+
})), { loading: ve, FINAL_DATASET: Pt, manualLoading: it } = Ys({
|
|
144
|
+
...xs(G),
|
|
145
145
|
FINAL_CONFIG: e,
|
|
146
146
|
prepareConfig: It,
|
|
147
147
|
callback: () => {
|
|
@@ -165,12 +165,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
165
165
|
defaultConfig: e.value,
|
|
166
166
|
userConfig: Cl.value
|
|
167
167
|
})
|
|
168
|
-
}), { userOptionsVisible:
|
|
168
|
+
}), { userOptionsVisible: zt, setUserOptionsVisibility: ha, keepUserOptionState: ma } = Js({ config: e.value }), { svgRef: de } = Gs({ config: e.value.style.chart.title });
|
|
169
169
|
function Ll() {
|
|
170
|
-
Le.value = !0,
|
|
170
|
+
Le.value = !0, ha(!0);
|
|
171
171
|
}
|
|
172
172
|
function Al() {
|
|
173
|
-
|
|
173
|
+
ha(!1), Le.value = !1, ue.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
|
|
174
174
|
}
|
|
175
175
|
function It() {
|
|
176
176
|
const t = Jt({
|
|
@@ -184,7 +184,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
184
184
|
wl(t), l = t;
|
|
185
185
|
else {
|
|
186
186
|
const s = Jt({
|
|
187
|
-
userConfig:
|
|
187
|
+
userConfig: Qs[a] || G.config,
|
|
188
188
|
defaultConfig: t
|
|
189
189
|
});
|
|
190
190
|
l = {
|
|
@@ -192,25 +192,25 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
192
192
|
userConfig: G.config,
|
|
193
193
|
defaultConfig: s
|
|
194
194
|
}),
|
|
195
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
195
|
+
customPalette: t.customPalette.length ? t.customPalette : Ss[a] || kt
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
else
|
|
199
199
|
l = t;
|
|
200
200
|
return l;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const fa = m(() => e.value.style.chart.lines.dataLabels.hideUnderValue !== null), ya = m(() => e.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
203
203
|
Fe(() => G.config, (t) => {
|
|
204
|
-
|
|
204
|
+
ve.value || (e.value = It()), zt.value = !e.value.userOptions.showOnChartHover, xa(), sa.value += 1, Sl.value += 1, Ml.value += 1, j.value.dataLabels.show = e.value.style.chart.lines.dataLabels.show, j.value.showTable = e.value.table.show, j.value.showTooltip = e.value.style.chart.tooltip.show, oe.value.width = e.value.style.chart.width, oe.value.height = e.value.style.chart.height, oe.value.paddingRatio = {
|
|
205
205
|
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
206
206
|
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
207
207
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
208
208
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
209
|
-
},
|
|
209
|
+
}, Tt(), rt(), ct();
|
|
210
210
|
}, { deep: !0 }), Fe(() => G.dataset, (t) => {
|
|
211
|
-
Array.isArray(t) && t.length > 0 && (it.value = !1),
|
|
211
|
+
Array.isArray(t) && t.length > 0 && (it.value = !1), Ma(), Tt(), rt();
|
|
212
212
|
}, { deep: !0 });
|
|
213
|
-
const j =
|
|
213
|
+
const j = f({
|
|
214
214
|
dataLabels: {
|
|
215
215
|
show: e.value.style.chart.lines.dataLabels.show
|
|
216
216
|
},
|
|
@@ -226,11 +226,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
226
226
|
showTooltip: e.value.style.chart.tooltip.show
|
|
227
227
|
};
|
|
228
228
|
}, { immediate: !0 });
|
|
229
|
-
const { isPrinting:
|
|
229
|
+
const { isPrinting: _t, isImaging: Ft, generatePdf: ga, generateImage: pa } = Ws({
|
|
230
230
|
elementId: `stackline_${K.value}`,
|
|
231
231
|
fileName: e.value.style.chart.title.text || "vue-ui-stackline",
|
|
232
232
|
options: e.value.userOptions.print
|
|
233
|
-
}), Tl =
|
|
233
|
+
}), Tl = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), oe = f({
|
|
234
234
|
width: e.value.style.chart.width,
|
|
235
235
|
height: e.value.style.chart.height,
|
|
236
236
|
paddingRatio: {
|
|
@@ -239,14 +239,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
239
239
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
240
240
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
241
241
|
}
|
|
242
|
-
}), Nl =
|
|
243
|
-
function
|
|
242
|
+
}), Nl = m(() => Ms(e.value.customPalette)), pe = qt(null), Te = qt(null), ba = f(null), Et = m(() => !!e.value.debug);
|
|
243
|
+
function xa() {
|
|
244
244
|
if (ol(G.dataset) ? (nl({
|
|
245
245
|
componentName: "VueUiStackline",
|
|
246
246
|
type: "dataset",
|
|
247
|
-
debug:
|
|
247
|
+
debug: Et.value
|
|
248
248
|
}), it.value = !0) : G.dataset.forEach((t, l) => {
|
|
249
|
-
|
|
249
|
+
$s({
|
|
250
250
|
datasetObject: t,
|
|
251
251
|
requiredAttributes: ["name", "series"]
|
|
252
252
|
}).forEach((a) => {
|
|
@@ -255,46 +255,46 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
255
255
|
type: "datasetSerieAttribute",
|
|
256
256
|
property: a,
|
|
257
257
|
index: l,
|
|
258
|
-
debug:
|
|
258
|
+
debug: Et.value
|
|
259
259
|
}), it.value = !0;
|
|
260
260
|
});
|
|
261
261
|
}), ol(G.dataset) || (it.value = e.value.loading), setTimeout(() => {
|
|
262
|
-
|
|
262
|
+
$t.value = !0;
|
|
263
263
|
}, 10), e.value.responsive) {
|
|
264
|
-
const t =
|
|
265
|
-
|
|
266
|
-
const { width: l, height: a } =
|
|
267
|
-
chart:
|
|
268
|
-
noTitle:
|
|
269
|
-
title: e.value.style.chart.title.text ?
|
|
270
|
-
legend: e.value.style.chart.legend.show ?
|
|
271
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
272
|
-
source:
|
|
264
|
+
const t = Os(() => {
|
|
265
|
+
$t.value = !1;
|
|
266
|
+
const { width: l, height: a } = Ds({
|
|
267
|
+
chart: ie.value,
|
|
268
|
+
noTitle: aa.value,
|
|
269
|
+
title: e.value.style.chart.title.text ? ea.value : null,
|
|
270
|
+
legend: e.value.style.chart.legend.show ? ta.value : null,
|
|
271
|
+
slicer: e.value.style.chart.zoom.show && he.value > 6 ? Oe.value.$el : null,
|
|
272
|
+
source: la.value
|
|
273
273
|
});
|
|
274
274
|
requestAnimationFrame(() => {
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
oe.value.width = l, oe.value.height = a - 12, clearTimeout(ba.value), ba.value = setTimeout(() => {
|
|
276
|
+
$t.value = !0;
|
|
277
277
|
}, 10);
|
|
278
278
|
});
|
|
279
279
|
});
|
|
280
|
-
pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect()), pe.value = new ResizeObserver(t), Te.value =
|
|
280
|
+
pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect()), pe.value = new ResizeObserver(t), Te.value = ie.value.parentNode, pe.value.observe(Te.value);
|
|
281
281
|
}
|
|
282
282
|
mt();
|
|
283
283
|
}
|
|
284
284
|
Xt(() => {
|
|
285
|
-
|
|
285
|
+
va.stop(), pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect());
|
|
286
286
|
});
|
|
287
287
|
function Pl() {
|
|
288
288
|
let t = 0;
|
|
289
|
-
|
|
289
|
+
At.value && (t = Array.from(At.value.querySelectorAll("text")).reduce((s, n) => {
|
|
290
290
|
const o = n.getComputedTextLength();
|
|
291
291
|
return o > s ? o : s;
|
|
292
292
|
}, 0));
|
|
293
|
-
const l =
|
|
293
|
+
const l = Lt.value ? Lt.value.getBoundingClientRect().width : 0;
|
|
294
294
|
return t + l + (l ? 24 : 0);
|
|
295
295
|
}
|
|
296
|
-
const
|
|
297
|
-
function
|
|
296
|
+
const Rt = f(0), He = f(0), We = f(0);
|
|
297
|
+
function zl() {
|
|
298
298
|
const t = nt.value;
|
|
299
299
|
if (!t) {
|
|
300
300
|
He.value = 0;
|
|
@@ -307,17 +307,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
307
307
|
He.value = 0;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Il() {
|
|
311
311
|
We.value && cancelAnimationFrame(We.value), We.value = requestAnimationFrame(() => {
|
|
312
312
|
requestAnimationFrame(() => {
|
|
313
|
-
|
|
313
|
+
zl();
|
|
314
314
|
});
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
Xt(() => {
|
|
318
|
-
We.value && cancelAnimationFrame(We.value), He.value = 0,
|
|
318
|
+
We.value && cancelAnimationFrame(We.value), He.value = 0, Rt.value = 0;
|
|
319
319
|
});
|
|
320
|
-
const
|
|
320
|
+
const ka = m(() => {
|
|
321
321
|
let t = 0;
|
|
322
322
|
if (ot.value)
|
|
323
323
|
try {
|
|
@@ -327,12 +327,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
327
327
|
}
|
|
328
328
|
const l = e.value.style.chart.grid.x.timeLabels.show ? He.value : 0;
|
|
329
329
|
return t + l;
|
|
330
|
-
}), d =
|
|
331
|
-
|
|
332
|
-
const { height: t, width: l } =
|
|
330
|
+
}), d = m(() => {
|
|
331
|
+
ia.value;
|
|
332
|
+
const { height: t, width: l } = oe.value, { right: a } = oe.value.paddingRatio;
|
|
333
333
|
let s = e.value.style.chart.lines.totalValues.show && G.dataset && G.dataset.length > 1 ? e.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, n = 0;
|
|
334
334
|
e.value.style.chart.grid.y.axisLabels.show && (n = Pl());
|
|
335
|
-
const o = e.value.style.chart.padding.top + s, r = l - l * a -
|
|
335
|
+
const o = e.value.style.chart.padding.top + s, r = l - l * a - Rt.value, y = t - e.value.style.chart.padding.bottom - ka.value - s, k = e.value.style.chart.padding.left + n, T = l - k - l * a - Rt.value, S = t - o - e.value.style.chart.padding.bottom - ka.value - s;
|
|
336
336
|
return {
|
|
337
337
|
chartHeight: Math.max(0, t),
|
|
338
338
|
chartWidth: Math.max(0, l),
|
|
@@ -340,11 +340,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
340
340
|
right: Math.max(0, r),
|
|
341
341
|
bottom: Math.max(0, y),
|
|
342
342
|
left: Math.max(0, k),
|
|
343
|
-
width: Math.max(0,
|
|
343
|
+
width: Math.max(0, T),
|
|
344
344
|
height: Math.max(0, S)
|
|
345
345
|
};
|
|
346
|
-
}), _l =
|
|
347
|
-
const { left: t, top: l, width: a, height: s } = d.value, n =
|
|
346
|
+
}), _l = m(() => {
|
|
347
|
+
const { left: t, top: l, width: a, height: s } = d.value, n = u.value.start, o = u.value.end, r = Math.max(1, o - n), y = Math.max(0, Math.min(r, (ne.value.start ?? n) - n)), k = Math.max(0, Math.min(r, (ne.value.end ?? o) - n)), T = Math.max(0, k - y), S = {
|
|
348
348
|
fill: e.value.style.chart.zoom.preview.fill,
|
|
349
349
|
stroke: e.value.style.chart.zoom.preview.stroke,
|
|
350
350
|
"stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
|
|
@@ -356,16 +356,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
356
356
|
transition: "none !important",
|
|
357
357
|
animation: "none !important"
|
|
358
358
|
}
|
|
359
|
-
},
|
|
359
|
+
}, z = a / r;
|
|
360
360
|
return {
|
|
361
|
-
x: t + y *
|
|
361
|
+
x: t + y * z,
|
|
362
362
|
y: l,
|
|
363
|
-
width:
|
|
363
|
+
width: T * z,
|
|
364
364
|
height: s,
|
|
365
365
|
...S
|
|
366
366
|
};
|
|
367
|
-
}), Z =
|
|
368
|
-
const a =
|
|
367
|
+
}), Z = m(() => Pt.value.map((t, l) => {
|
|
368
|
+
const a = Cs(t.color) || Nl.value[l] || kt[l] || kt[l % kt.length];
|
|
369
369
|
return {
|
|
370
370
|
...t,
|
|
371
371
|
shape: t.shape || "circle",
|
|
@@ -379,34 +379,34 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
379
379
|
id: ll(),
|
|
380
380
|
color: a
|
|
381
381
|
};
|
|
382
|
-
})), Me =
|
|
383
|
-
() => Z.value.filter((t) => !
|
|
384
|
-
), ut =
|
|
385
|
-
() => Z.value.filter((t) => !
|
|
386
|
-
),
|
|
387
|
-
const t = Math.max(...Z.value.filter((l) => !
|
|
382
|
+
})), Me = m(
|
|
383
|
+
() => Z.value.filter((t) => !V.value.includes(t.id) && !t.standalone)
|
|
384
|
+
), ut = m(
|
|
385
|
+
() => Z.value.filter((t) => !V.value.includes(t.id) && t.standalone)
|
|
386
|
+
), he = m(() => {
|
|
387
|
+
const t = Math.max(...Z.value.filter((l) => !V.value.includes(l.id)).map((l) => l.series.length));
|
|
388
388
|
return isFinite(t) ? t : Math.max(...Z.value.map((l) => l.series.length));
|
|
389
389
|
});
|
|
390
390
|
function Fl(t) {
|
|
391
391
|
Ye.value = t;
|
|
392
392
|
}
|
|
393
|
-
const
|
|
393
|
+
const u = f({
|
|
394
394
|
start: 0,
|
|
395
|
-
end: Math.max(...
|
|
396
|
-
}),
|
|
397
|
-
function
|
|
398
|
-
return (
|
|
395
|
+
end: Math.max(...Pt.value.map((t) => t.series.length))
|
|
396
|
+
}), ne = f({ start: 0, end: Math.max(...Pt.value.map((t) => t.series.length)) });
|
|
397
|
+
function Ot(t) {
|
|
398
|
+
return (u.value.start ?? 0) + (t ?? 0);
|
|
399
399
|
}
|
|
400
|
-
const
|
|
401
|
-
function
|
|
402
|
-
|
|
400
|
+
const wa = m(() => e.value.style.chart.zoom.preview.enable && (ne.value.start !== u.value.start || ne.value.end !== u.value.end));
|
|
401
|
+
function Sa(t, l) {
|
|
402
|
+
ne.value[t] = l;
|
|
403
403
|
}
|
|
404
404
|
function ct() {
|
|
405
|
-
const t =
|
|
406
|
-
let l = Math.max(0, Math.min(
|
|
407
|
-
(!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t),
|
|
405
|
+
const t = he.value;
|
|
406
|
+
let l = Math.max(0, Math.min(u.value.start ?? 0, t - 1)), a = Math.max(l + 1, Math.min(u.value.end ?? t, t));
|
|
407
|
+
(!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), u.value.start = l, u.value.end = a, ne.value.start = l, ne.value.end = a, Oe.value && (Oe.value.setStartValue(l), Oe.value.setEndValue(a));
|
|
408
408
|
}
|
|
409
|
-
const Ue =
|
|
409
|
+
const Ue = f(null);
|
|
410
410
|
function El() {
|
|
411
411
|
return new Promise((t) => requestAnimationFrame(
|
|
412
412
|
() => requestAnimationFrame(() => t())
|
|
@@ -415,16 +415,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
415
415
|
Xt(() => {
|
|
416
416
|
Ue.value && cancelAnimationFrame(Ue.value);
|
|
417
417
|
});
|
|
418
|
-
async function
|
|
418
|
+
async function Ma() {
|
|
419
419
|
mt(), await Gt(), Ue.value && cancelAnimationFrame(Ue.value), Ue.value = requestAnimationFrame(async () => {
|
|
420
420
|
await El(), mt();
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
|
-
const vt =
|
|
423
|
+
const vt = m(() => Math.max(0, d.value.width / (u.value.end - u.value.start))), $a = m(() => Qe(
|
|
424
424
|
Me.value.map((t) => ({ ...t, series: t.series.map((l) => l ?? 0) }))
|
|
425
|
-
).slice(
|
|
425
|
+
).slice(u.value.start, u.value.end)), dt = m(() => V.value.length === Z.value.length), Ca = m(() => {
|
|
426
426
|
if (!e.value.style.chart.zoom.minimap.show) return [];
|
|
427
|
-
const t = Z.value.filter((n) => dt.value ? !0 : !
|
|
427
|
+
const t = Z.value.filter((n) => dt.value ? !0 : !V.value.includes(n.id) && !n.standalone);
|
|
428
428
|
if (t.length)
|
|
429
429
|
return Qe(
|
|
430
430
|
t.map((n) => ({
|
|
@@ -439,11 +439,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
439
439
|
{ length: a },
|
|
440
440
|
(n, o) => l.reduce((r, y) => r + Math.abs(y.series[o] ?? 0), 0)
|
|
441
441
|
);
|
|
442
|
-
}), Rl =
|
|
442
|
+
}), Rl = m(() => {
|
|
443
443
|
if (!e.value.style.chart.zoom.minimap.show) return [];
|
|
444
|
-
const l = Z.value.filter((o) => dt.value ? !0 : !
|
|
444
|
+
const l = Z.value.filter((o) => dt.value ? !0 : !V.value.includes(o.id) && !o.standalone), a = ut.value, s = l.length ? [{
|
|
445
445
|
name: "",
|
|
446
|
-
series:
|
|
446
|
+
series: Ca.value,
|
|
447
447
|
color: "#000000",
|
|
448
448
|
isVisible: !0
|
|
449
449
|
}] : [], n = a.map((o) => ({
|
|
@@ -453,110 +453,110 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
453
453
|
isVisible: !0
|
|
454
454
|
}));
|
|
455
455
|
return s.concat(n);
|
|
456
|
-
}), Ol =
|
|
457
|
-
Me.value.filter((t) => !
|
|
456
|
+
}), Ol = m(() => Qe(
|
|
457
|
+
Me.value.filter((t) => !V.value.includes(t.id)).map((t) => ({
|
|
458
458
|
...t,
|
|
459
459
|
series: t.series.map((l, a) => {
|
|
460
460
|
const s = l ?? 0;
|
|
461
461
|
return t.signedSeries[a] === -1 && s >= 0 ? -s : s;
|
|
462
462
|
})
|
|
463
463
|
}))
|
|
464
|
-
).slice(
|
|
465
|
-
const t = Me.value.filter((l) => !
|
|
464
|
+
).slice(u.value.start, u.value.end)), Ne = m(() => {
|
|
465
|
+
const t = Me.value.filter((l) => !V.value.includes(l.id));
|
|
466
466
|
return {
|
|
467
467
|
positive: Qe(t.map((l) => ({
|
|
468
468
|
...l,
|
|
469
|
-
series: l.series.slice(
|
|
469
|
+
series: l.series.slice(u.value.start, u.value.end).map((a) => (a ?? 0) >= 0 ? a ?? 0 : 0)
|
|
470
470
|
}))),
|
|
471
471
|
negative: Qe(t.map((l) => ({
|
|
472
472
|
...l,
|
|
473
|
-
series: l.series.slice(
|
|
473
|
+
series: l.series.slice(u.value.start, u.value.end).map((a) => (a ?? 0) < 0 ? a ?? 0 : 0)
|
|
474
474
|
})))
|
|
475
475
|
};
|
|
476
|
-
}), Pe =
|
|
477
|
-
const t = Math.max(0,
|
|
476
|
+
}), Pe = m(() => {
|
|
477
|
+
const t = Math.max(0, u.value.end - u.value.start), l = Array(t).fill(0), a = Array(t).fill(0);
|
|
478
478
|
return ut.value.forEach((s) => {
|
|
479
479
|
for (let n = 0; n < t; n += 1) {
|
|
480
|
-
const o = s.series[
|
|
480
|
+
const o = s.series[u.value.start + n] ?? 0;
|
|
481
481
|
o > 0 && (l[n] = Math.max(l[n], o)), o < 0 && (a[n] = Math.min(a[n], o));
|
|
482
482
|
}
|
|
483
483
|
}), {
|
|
484
484
|
positive: l,
|
|
485
485
|
negative: a
|
|
486
486
|
};
|
|
487
|
-
}),
|
|
487
|
+
}), La = m(() => Ol.value.map((t, l) => ({
|
|
488
488
|
value: t,
|
|
489
489
|
sign: t >= 0 ? 1 : -1
|
|
490
490
|
})));
|
|
491
491
|
function Dl() {
|
|
492
|
-
return { y0:
|
|
492
|
+
return { y0: ze.value?.[0]?.zero ?? d.value.bottom };
|
|
493
493
|
}
|
|
494
494
|
function Vl(t) {
|
|
495
495
|
const { y0: l } = Dl(), a = e.value.style.chart.lines.totalValues, s = Math.max(2, a.fontSize * 1.3 + a.offsetY), n = (r) => Math.min(Math.max(r, d.value.top - e.value.style.chart.lines.totalValues.fontSize * 1.3), d.value.bottom + e.value.style.chart.lines.totalValues.fontSize * 2);
|
|
496
|
-
if ((
|
|
496
|
+
if ((La.value?.[t]?.value ?? 0) >= 0 || e.value.style.chart.lines.distributed) {
|
|
497
497
|
let r = 1 / 0;
|
|
498
|
-
for (const k of
|
|
499
|
-
const
|
|
500
|
-
(
|
|
498
|
+
for (const k of A.value || []) {
|
|
499
|
+
const T = k?.series?.[t], S = k?.topY?.[t];
|
|
500
|
+
(T ?? 0) > 0 && Number.isFinite(S) && S < r && (r = S);
|
|
501
501
|
}
|
|
502
502
|
const y = Number.isFinite(r) ? r : l;
|
|
503
503
|
return n(y - s - e.value.style.chart.lines.totalValues.offsetY);
|
|
504
504
|
} else {
|
|
505
505
|
let r = -1 / 0;
|
|
506
|
-
for (const k of
|
|
507
|
-
const
|
|
508
|
-
(
|
|
506
|
+
for (const k of A.value || []) {
|
|
507
|
+
const T = k?.series?.[t], S = k?.topY?.[t];
|
|
508
|
+
(T ?? 0) < 0 && Number.isFinite(S) && S > r && (r = S);
|
|
509
509
|
}
|
|
510
510
|
const y = Number.isFinite(r) ? r : l;
|
|
511
511
|
return n(y + s + a.fontSize * 0.7 + e.value.style.chart.lines.totalValues.offsetY);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
const
|
|
515
|
-
const t = Math.max(...Ne.value.positive, 0), l = Math.min(...Ne.value.negative, 0), a = Math.max(...Pe.value.positive, 0), s = Math.min(...Pe.value.negative, 0), n = Math.max(t, a), o = Math.min(l, s), r = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, y = e.value.style.chart.grid.scale.scaleMin, k = e.value.style.chart.grid.scale.scaleMax,
|
|
516
|
-
return
|
|
517
|
-
const
|
|
514
|
+
const ze = m(() => {
|
|
515
|
+
const t = Math.max(...Ne.value.positive, 0), l = Math.min(...Ne.value.negative, 0), a = Math.max(...Pe.value.positive, 0), s = Math.min(...Pe.value.negative, 0), n = Math.max(t, a), o = Math.min(l, s), r = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, y = e.value.style.chart.grid.scale.scaleMin, k = e.value.style.chart.grid.scale.scaleMax, T = !e.value.style.chart.lines.distributed && (y !== null || k !== null), S = y !== null && !e.value.style.chart.lines.distributed ? y : r > 0 ? 0 : r, z = k !== null && !e.value.style.chart.lines.distributed ? k : n < 0 ? 0 : n, O = T ? wt(S, z, e.value.style.chart.grid.scale.ticks) : St(S, z, e.value.style.chart.grid.scale.ticks), M = Math.abs(Number(O.min) || 0), w = (Number(O.max) || 0) + M, c = w === 0 || !Number.isFinite(w) ? 1 : w, _ = Array.isArray(O.ticks) && O.ticks.length ? O.ticks : [0], g = d.value.bottom - d.value.height * (M / c);
|
|
516
|
+
return _.map(($) => {
|
|
517
|
+
const F = Number($) || 0, E = d.value.bottom - d.value.height * ((F + M) / c);
|
|
518
518
|
return {
|
|
519
519
|
zero: g,
|
|
520
|
-
y:
|
|
520
|
+
y: E,
|
|
521
521
|
x: ae.value.left - 8,
|
|
522
|
-
value:
|
|
522
|
+
value: F
|
|
523
523
|
};
|
|
524
524
|
});
|
|
525
|
-
}),
|
|
526
|
-
let
|
|
527
|
-
|
|
528
|
-
const t = ++
|
|
525
|
+
}), me = f([]), Ie = f([]);
|
|
526
|
+
let Aa = 0;
|
|
527
|
+
bt(() => {
|
|
528
|
+
const t = ++Aa;
|
|
529
529
|
(async () => {
|
|
530
530
|
const l = await il({
|
|
531
531
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
532
|
-
maxDatapoints:
|
|
532
|
+
maxDatapoints: he.value,
|
|
533
533
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
534
|
-
start:
|
|
535
|
-
end:
|
|
534
|
+
start: u.value.start,
|
|
535
|
+
end: u.value.end
|
|
536
536
|
});
|
|
537
|
-
t ===
|
|
537
|
+
t === Aa && (me.value = l);
|
|
538
538
|
})();
|
|
539
539
|
});
|
|
540
|
-
let
|
|
541
|
-
|
|
542
|
-
const t = ++
|
|
540
|
+
let Ta = 0;
|
|
541
|
+
bt(() => {
|
|
542
|
+
const t = ++Ta;
|
|
543
543
|
(async () => {
|
|
544
544
|
const l = await il({
|
|
545
545
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
546
|
-
maxDatapoints:
|
|
546
|
+
maxDatapoints: he.value,
|
|
547
547
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
548
548
|
start: 0,
|
|
549
|
-
end:
|
|
549
|
+
end: he.value
|
|
550
550
|
});
|
|
551
|
-
t ===
|
|
551
|
+
t === Ta && (Ie.value = l);
|
|
552
552
|
})();
|
|
553
553
|
});
|
|
554
|
-
const Bl =
|
|
554
|
+
const Bl = m(() => {
|
|
555
555
|
const t = e.value.style.chart.grid.x.timeLabels.modulo;
|
|
556
|
-
return
|
|
557
|
-
}), ht =
|
|
558
|
-
const t = e.value.style.chart.grid.x.timeLabels, l =
|
|
559
|
-
return
|
|
556
|
+
return me.value.length ? Math.min(t, [...new Set(me.value.map((l) => l.text))].length) : t;
|
|
557
|
+
}), ht = m(() => {
|
|
558
|
+
const t = e.value.style.chart.grid.x.timeLabels, l = me.value || [], a = Ie.value || [], s = u.value.start ?? 0, n = b.value, o = he.value, r = l.map((k) => k?.text ?? ""), y = a.map((k) => k?.text ?? "");
|
|
559
|
+
return Ls(
|
|
560
560
|
!!t.showOnlyFirstAndLast,
|
|
561
561
|
!!t.showOnlyAtModulo,
|
|
562
562
|
Math.max(1, Bl.value || 1),
|
|
@@ -567,117 +567,117 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
567
567
|
o
|
|
568
568
|
);
|
|
569
569
|
});
|
|
570
|
-
|
|
571
|
-
e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY, (ht.value || []).map((t) => t?.text ?? "").join("|"),
|
|
570
|
+
bt(() => {
|
|
571
|
+
e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY, (ht.value || []).map((t) => t?.text ?? "").join("|"), oe.value.width, oe.value.height, nt.value, ot.value, Il();
|
|
572
572
|
}, { flush: "post" });
|
|
573
|
-
const
|
|
574
|
-
let
|
|
575
|
-
|
|
576
|
-
const t = ++
|
|
573
|
+
const Na = f({ months: [], shortMonths: [], days: [], shortDays: [] });
|
|
574
|
+
let Pa = 0;
|
|
575
|
+
bt(() => {
|
|
576
|
+
const t = ++Pa, l = e.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
577
577
|
(async () => {
|
|
578
578
|
const a = await ul(l.locale).catch(() => ul("en"));
|
|
579
|
-
t ===
|
|
579
|
+
t === Pa && (Na.value = a.data);
|
|
580
580
|
})();
|
|
581
581
|
});
|
|
582
|
-
const za =
|
|
583
|
-
const t = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l =
|
|
582
|
+
const za = m(() => {
|
|
583
|
+
const t = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = Vs({
|
|
584
584
|
useUTC: t.useUTC,
|
|
585
|
-
locale:
|
|
585
|
+
locale: Na.value,
|
|
586
586
|
januaryAsYear: t.januaryAsYear
|
|
587
587
|
});
|
|
588
588
|
return (a, s) => {
|
|
589
589
|
const o = e.value.style.chart.grid.x.timeLabels.values?.[a];
|
|
590
590
|
return o == null ? "" : l.formatDate(new Date(o), s);
|
|
591
591
|
};
|
|
592
|
-
}),
|
|
592
|
+
}), Ia = m(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
|
|
593
593
|
text: za.value(a, e.value.style.chart.zoom.timeFormat),
|
|
594
594
|
absoluteIndex: a
|
|
595
|
-
}))),
|
|
595
|
+
}))), Yl = m(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
|
|
596
596
|
text: za.value(a, e.value.style.chart.tooltip.timeFormat),
|
|
597
597
|
absoluteIndex: a
|
|
598
|
-
}))),
|
|
599
|
-
if (!Ee.value && !
|
|
600
|
-
const t = d.value.height, l =
|
|
598
|
+
}))), Hl = m(() => {
|
|
599
|
+
if (!Ee.value && !ve.value) return [];
|
|
600
|
+
const t = d.value.height, l = ze.value[0] ? ze.value[0].zero : d.value.bottom, a = u.value.start ?? 0, s = u.value.end ?? 0, n = Math.max(1, s - a), o = Math.max(...Ne.value.positive, 0), r = Math.min(...Ne.value.negative, 0), y = Math.max(...Pe.value.positive, 0), k = Math.min(...Pe.value.negative, 0), T = Math.max(o, y), S = Math.min(r, k), z = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? wt(
|
|
601
601
|
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S,
|
|
602
|
-
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax :
|
|
602
|
+
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : T < 0 ? 0 : T,
|
|
603
603
|
e.value.style.chart.grid.scale.ticks
|
|
604
|
-
) :
|
|
604
|
+
) : St(
|
|
605
605
|
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S,
|
|
606
|
-
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax :
|
|
606
|
+
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : T < 0 ? 0 : T,
|
|
607
607
|
e.value.style.chart.grid.scale.ticks
|
|
608
|
-
), { min:
|
|
609
|
-
return Z.value.filter((g) => !
|
|
610
|
-
const $ = [],
|
|
608
|
+
), { min: O, max: M } = z, h = M + (O >= 0 ? 0 : Math.abs(O)) || 1, w = Array(n).fill(0), c = Array(n).fill(0), _ = (g) => n <= 1 ? d.value.left + d.value.width / 2 : d.value.left + g / (n - 1) * d.value.width;
|
|
609
|
+
return Z.value.filter((g) => !V.value.includes(g.id)).map((g) => {
|
|
610
|
+
const $ = [], F = [], E = [], I = new Array(n).fill(null), B = new Array(n).fill(null);
|
|
611
611
|
for (let p = 0; p < n; p += 1) {
|
|
612
|
-
const L = a + p, q = g.series?.[L], U = g.signedSeries?.[L], xe = q == null || Number.isNaN(q) ? 0 : q, el = g.standalone ? xe /
|
|
612
|
+
const L = a + p, q = g.series?.[L], U = g.signedSeries?.[L], xe = q == null || Number.isNaN(q) ? 0 : q, el = g.standalone ? xe / h : e.value.style.chart.lines.distributed ? xe / ($a.value[p] || 1) : xe / h;
|
|
613
613
|
if (xe >= 0) {
|
|
614
614
|
const je = t * Math.abs(el);
|
|
615
615
|
if (g.standalone)
|
|
616
|
-
|
|
616
|
+
I[p] = l, B[p] = l - je;
|
|
617
617
|
else {
|
|
618
|
-
const Je =
|
|
619
|
-
|
|
618
|
+
const Je = w[p], Ke = Je + je;
|
|
619
|
+
I[p] = l - Je, B[p] = l - Ke, w[p] = Ke;
|
|
620
620
|
}
|
|
621
621
|
} else {
|
|
622
622
|
const je = t * Math.abs(el);
|
|
623
623
|
if (g.standalone)
|
|
624
|
-
|
|
624
|
+
I[p] = l, B[p] = l + je;
|
|
625
625
|
else {
|
|
626
|
-
const Je =
|
|
627
|
-
|
|
626
|
+
const Je = c[p], Ke = Je + je;
|
|
627
|
+
I[p] = l + Je, B[p] = l + Ke, c[p] = Ke;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
$.push(p),
|
|
630
|
+
$.push(p), F.push(xe), E.push(U ?? (xe >= 0 ? 1 : -1));
|
|
631
631
|
}
|
|
632
|
-
const H = $.map((p) => ({ x:
|
|
632
|
+
const H = $.map((p) => ({ x: _(p), y: B[p] })), te = H.map((p) => p.x), J = F.reduce((p, L) => p + Math.abs(L || 0), 0), W = J === 0 ? 1 : J, D = F.map((p, L) => {
|
|
633
633
|
if (e.value.style.chart.lines.distributed && !g.standalone) {
|
|
634
|
-
const q = $[L], U =
|
|
634
|
+
const q = $[L], U = $a.value[q] || 1;
|
|
635
635
|
return (p || 0) / U;
|
|
636
636
|
}
|
|
637
637
|
return (p || 0) / W;
|
|
638
638
|
});
|
|
639
639
|
return {
|
|
640
640
|
...g,
|
|
641
|
-
x:
|
|
641
|
+
x: te,
|
|
642
642
|
points: H,
|
|
643
|
-
baseY: $.map((p) =>
|
|
643
|
+
baseY: $.map((p) => I[p]),
|
|
644
644
|
topY: $.map((p) => B[p]),
|
|
645
|
-
series:
|
|
646
|
-
signedSeries:
|
|
647
|
-
proportions:
|
|
645
|
+
series: F,
|
|
646
|
+
signedSeries: E,
|
|
647
|
+
proportions: D,
|
|
648
648
|
rel: $,
|
|
649
649
|
fullSeries: Array.isArray(g.fullSeries) ? g.fullSeries : g.series
|
|
650
650
|
};
|
|
651
651
|
});
|
|
652
|
-
}),
|
|
652
|
+
}), A = m(() => {
|
|
653
653
|
const t = (M) => typeof M == "string" ? M.replace(
|
|
654
654
|
/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i,
|
|
655
655
|
""
|
|
656
|
-
).trim() : "", l = Math.max(...Ne.value.positive, 0), a = Math.min(...Ne.value.negative, 0), s = Math.max(...Pe.value.positive, 0), n = Math.min(...Pe.value.negative, 0), o = Math.max(l, s), r = Math.min(a, n), y = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
656
|
+
).trim() : "", l = Math.max(...Ne.value.positive, 0), a = Math.min(...Ne.value.negative, 0), s = Math.max(...Pe.value.positive, 0), n = Math.min(...Pe.value.negative, 0), o = Math.max(l, s), r = Math.min(a, n), y = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? wt(
|
|
657
657
|
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : r > 0 ? 0 : r,
|
|
658
658
|
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : o < 0 ? 0 : o,
|
|
659
659
|
e.value.style.chart.grid.scale.ticks
|
|
660
|
-
) :
|
|
660
|
+
) : St(
|
|
661
661
|
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : r > 0 ? 0 : r,
|
|
662
662
|
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : o < 0 ? 0 : o,
|
|
663
663
|
e.value.style.chart.grid.scale.ticks
|
|
664
|
-
), k = Number(y.min) || 0,
|
|
664
|
+
), k = Number(y.min) || 0, T = Number(y.max) || 0, S = Math.abs(k), z = T + S || 1, O = (M) => {
|
|
665
665
|
if (e.value.style.chart.lines.distributed) {
|
|
666
|
-
const
|
|
667
|
-
return minimapH - minimapH *
|
|
666
|
+
const h = Math.max(0, Math.min(1, M));
|
|
667
|
+
return minimapH - minimapH * h;
|
|
668
668
|
}
|
|
669
|
-
return clampY(minimapH - minimapH * (((M ?? 0) + S) /
|
|
669
|
+
return clampY(minimapH - minimapH * (((M ?? 0) + S) / z));
|
|
670
670
|
};
|
|
671
|
-
return
|
|
672
|
-
const
|
|
673
|
-
const p =
|
|
674
|
-
return !Number.isFinite(
|
|
675
|
-
},
|
|
671
|
+
return Hl.value.map((M) => {
|
|
672
|
+
const h = M.x.length, w = Array.isArray(M.fullSeries) ? M.fullSeries : M.series, c = ({ left: W = 0, unitW: D }) => {
|
|
673
|
+
const p = w.length;
|
|
674
|
+
return !Number.isFinite(D) || D <= 0 || p <= 0 ? [] : p === 1 ? [W + D * 0.5] : w.map((L, q) => W + q * D);
|
|
675
|
+
}, _ = ({ minimapH: W }) => !Number.isFinite(W) || W <= 0 ? [] : w.map((D) => O(D || 0)), g = ({ minimapH: W }) => {
|
|
676
676
|
if (!Number.isFinite(W) || W <= 0) return [];
|
|
677
|
-
const
|
|
678
|
-
return
|
|
677
|
+
const D = O(0);
|
|
678
|
+
return w.map(() => D);
|
|
679
679
|
};
|
|
680
|
-
if (
|
|
680
|
+
if (h === 0)
|
|
681
681
|
return {
|
|
682
682
|
...M,
|
|
683
683
|
points: [],
|
|
@@ -685,39 +685,46 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
685
685
|
straightPath: "",
|
|
686
686
|
smoothArea: "",
|
|
687
687
|
straightArea: "",
|
|
688
|
-
xMinimap:
|
|
689
|
-
yMinimap:
|
|
688
|
+
xMinimap: c,
|
|
689
|
+
yMinimap: _,
|
|
690
690
|
yMinimapBase: g
|
|
691
691
|
};
|
|
692
|
-
const $ = M.x.map((W,
|
|
693
|
-
let
|
|
694
|
-
if (e.value.style.chart.lines.useArea &&
|
|
695
|
-
const W = we([...
|
|
696
|
-
|
|
692
|
+
const $ = M.x.map((W, D) => ({ x: W, y: M.topY[D] })), F = M.x.map((W, D) => ({ x: W, y: M.baseY[D] })), E = h >= 2 ? we($) : `M${$[0].x},${$[0].y}`, I = h >= 2 ? Se($) : `M${$[0].x},${$[0].y}`, B = h >= 2 ? `M${t(E)}` : E, H = h >= 2 ? `M${t(I)}` : I;
|
|
693
|
+
let te = "", J = "";
|
|
694
|
+
if (e.value.style.chart.lines.useArea && h >= 2) {
|
|
695
|
+
const W = we([...F].reverse()), D = Se([...F].reverse()), p = F[F.length - 1];
|
|
696
|
+
te = `M${$[0].x},${$[0].y} ${t(E)} L${p.x},${p.y} ${t(W)} Z`, J = `M${$[0].x},${$[0].y} ${t(I)} L${p.x},${p.y} ${t(D)} Z`;
|
|
697
697
|
}
|
|
698
698
|
return {
|
|
699
699
|
...M,
|
|
700
700
|
points: $,
|
|
701
701
|
smoothPath: B,
|
|
702
702
|
straightPath: H,
|
|
703
|
-
smoothArea:
|
|
703
|
+
smoothArea: te,
|
|
704
704
|
straightArea: J,
|
|
705
|
-
xMinimap:
|
|
706
|
-
yMinimap:
|
|
705
|
+
xMinimap: c,
|
|
706
|
+
yMinimap: _,
|
|
707
707
|
yMinimapBase: g
|
|
708
708
|
};
|
|
709
709
|
});
|
|
710
|
-
}),
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
710
|
+
}), Dt = m(() => b.value === null || b.value === void 0 ? null : {
|
|
711
|
+
timeLabel: Da(b.value),
|
|
712
|
+
absoluteIndex: b.value + u.value.start,
|
|
713
|
+
seriesIndex: b.value,
|
|
714
|
+
datapoint: pt.value,
|
|
715
|
+
series: A.value,
|
|
716
|
+
config: e.value
|
|
717
|
+
}), qe = f(!1), _a = f(!1);
|
|
718
|
+
function Fa(t) {
|
|
719
|
+
const l = he.value;
|
|
720
|
+
return t > l ? l : t < 0 || t < u.value.start ? e.value.style.chart.zoom.startIndex !== null ? u.value.start + 1 : 1 : t;
|
|
714
721
|
}
|
|
715
722
|
function mt() {
|
|
716
723
|
if (!qe.value) {
|
|
717
724
|
qe.value = !0;
|
|
718
725
|
try {
|
|
719
|
-
const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a =
|
|
720
|
-
ft.value = !0,
|
|
726
|
+
const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a = he.value, s = t ?? 0, n = l != null ? Math.min(Fa(l + 1), a) : a;
|
|
727
|
+
ft.value = !0, u.value.start = s, u.value.end = n, ne.value.start = s, ne.value.end = n, ct(), _a.value = !0;
|
|
721
728
|
} finally {
|
|
722
729
|
queueMicrotask(() => {
|
|
723
730
|
ft.value = !1;
|
|
@@ -725,71 +732,71 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
725
732
|
}
|
|
726
733
|
}
|
|
727
734
|
}
|
|
728
|
-
function Hl(t) {
|
|
729
|
-
qe.value || ft.value || t !== c.value.start && (c.value.start = t, re.value.start = t, ct());
|
|
730
|
-
}
|
|
731
735
|
function Wl(t) {
|
|
736
|
+
qe.value || ft.value || t !== u.value.start && (u.value.start = t, ne.value.start = t, ct());
|
|
737
|
+
}
|
|
738
|
+
function Ul(t) {
|
|
732
739
|
if (qe.value || ft.value) return;
|
|
733
|
-
const l =
|
|
734
|
-
l !==
|
|
740
|
+
const l = Fa(t);
|
|
741
|
+
l !== u.value.end && (u.value.end = l, ne.value.end = l, ct());
|
|
735
742
|
}
|
|
736
|
-
const ae =
|
|
743
|
+
const ae = m(() => ({
|
|
737
744
|
left: d.value.left,
|
|
738
745
|
right: d.value.right,
|
|
739
746
|
width: d.value.width
|
|
740
|
-
})), ft =
|
|
741
|
-
|
|
747
|
+
})), ft = f(!1), ql = m(() => oe.value.width), Xl = m(() => oe.value.height);
|
|
748
|
+
js({
|
|
742
749
|
timeLabelsEls: nt,
|
|
743
|
-
timeLabels:
|
|
744
|
-
slicer:
|
|
750
|
+
timeLabels: me,
|
|
751
|
+
slicer: u,
|
|
745
752
|
configRef: e,
|
|
746
753
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
747
754
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
748
755
|
isAutoSize: !1,
|
|
749
|
-
width:
|
|
750
|
-
height:
|
|
756
|
+
width: ql,
|
|
757
|
+
height: Xl,
|
|
751
758
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
752
759
|
});
|
|
753
|
-
const yt =
|
|
754
|
-
function
|
|
755
|
-
const l =
|
|
760
|
+
const yt = f(null);
|
|
761
|
+
function Ea(t) {
|
|
762
|
+
const l = de.value;
|
|
756
763
|
if (!l) return null;
|
|
757
764
|
if (l.createSVGPoint && l.getScreenCTM) {
|
|
758
|
-
const
|
|
759
|
-
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
762
|
-
const M =
|
|
765
|
+
const z = l.createSVGPoint();
|
|
766
|
+
z.x = t.clientX, z.y = t.clientY;
|
|
767
|
+
const O = l.getScreenCTM();
|
|
768
|
+
if (O) {
|
|
769
|
+
const M = z.matrixTransform(O.inverse());
|
|
763
770
|
return { x: M.x, y: M.y, ok: !0 };
|
|
764
771
|
}
|
|
765
772
|
}
|
|
766
|
-
const a = l.getBoundingClientRect(), s = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, n = Math.min(a.width / s.width, a.height / s.height), o = s.width * n, r = s.height * n, y = (a.width - o) / 2, k = (a.height - r) / 2,
|
|
767
|
-
return { x:
|
|
773
|
+
const a = l.getBoundingClientRect(), s = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, n = Math.min(a.width / s.width, a.height / s.height), o = s.width * n, r = s.height * n, y = (a.width - o) / 2, k = (a.height - r) / 2, T = (t.clientX - a.left - y) / n + s.x, S = (t.clientY - a.top - k) / n + s.y;
|
|
774
|
+
return { x: T, y: S, ok: !0 };
|
|
768
775
|
}
|
|
769
776
|
let $e = 0;
|
|
770
|
-
const Y =
|
|
777
|
+
const Y = m(() => Math.max(1, u.value.end - u.value.start)), gt = m(
|
|
771
778
|
() => Y.value > 1 ? d.value.width / (Y.value - 1) : 0
|
|
772
779
|
);
|
|
773
|
-
function
|
|
780
|
+
function re(t) {
|
|
774
781
|
return Y.value <= 1 ? d.value.left + d.value.width / 2 : d.value.left + t * gt.value;
|
|
775
782
|
}
|
|
776
|
-
function
|
|
783
|
+
function Ra(t) {
|
|
777
784
|
if (Y.value <= 1)
|
|
778
785
|
return { x: d.value.left, width: d.value.width };
|
|
779
|
-
const l = t === 0 ? d.value.left : (
|
|
786
|
+
const l = t === 0 ? d.value.left : (re(t - 1) + re(t)) / 2, a = t === Y.value - 1 ? d.value.left + d.value.width : (re(t) + re(t + 1)) / 2;
|
|
780
787
|
return { x: l, width: Math.max(0, a - l) };
|
|
781
788
|
}
|
|
782
|
-
function
|
|
789
|
+
function Gl(t) {
|
|
783
790
|
Ae.value || ($e && cancelAnimationFrame($e), $e = requestAnimationFrame(() => {
|
|
784
791
|
$e = 0;
|
|
785
|
-
const l =
|
|
786
|
-
if (!l || !
|
|
787
|
-
|
|
792
|
+
const l = Ea(t);
|
|
793
|
+
if (!l || !de.value) {
|
|
794
|
+
Vt();
|
|
788
795
|
return;
|
|
789
796
|
}
|
|
790
797
|
const { left: a, right: s, top: n, bottom: o } = d.value;
|
|
791
798
|
if (l.x < a || l.x > s || l.y < n || l.y > o) {
|
|
792
|
-
|
|
799
|
+
Vt();
|
|
793
800
|
return;
|
|
794
801
|
}
|
|
795
802
|
let r = 0;
|
|
@@ -801,9 +808,9 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
801
808
|
r < 0 && (r = 0), r > Y.value - 1 && (r = Y.value - 1), yt.value !== r && (yt.value = r, Bt(!0, r));
|
|
802
809
|
}));
|
|
803
810
|
}
|
|
804
|
-
function
|
|
805
|
-
const l =
|
|
806
|
-
if (!l || !
|
|
811
|
+
function jl(t) {
|
|
812
|
+
const l = Ea(t);
|
|
813
|
+
if (!l || !de.value) return;
|
|
807
814
|
const { left: a, right: s, top: n, bottom: o } = d.value;
|
|
808
815
|
if (l.x < a || l.x > s || l.y < n || l.y > o) return;
|
|
809
816
|
let r = 0;
|
|
@@ -815,20 +822,20 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
815
822
|
r < 0 && (r = 0), r > Y.value - 1 && (r = Y.value - 1), Za({
|
|
816
823
|
seriesIndex: r,
|
|
817
824
|
datapoint: ja(r)
|
|
818
|
-
}),
|
|
825
|
+
}), Oa(r);
|
|
819
826
|
}
|
|
820
|
-
function
|
|
821
|
-
const l = JSON.parse(JSON.stringify(
|
|
827
|
+
function Oa(t) {
|
|
828
|
+
const l = JSON.parse(JSON.stringify(A.value)).map((a) => ({
|
|
822
829
|
name: a.name,
|
|
823
830
|
value: a.series[t] === 0 ? 0 : a.series[t] || null,
|
|
824
831
|
proportion: a.proportions[t] || null,
|
|
825
832
|
color: a.color,
|
|
826
833
|
id: a.id
|
|
827
834
|
}));
|
|
828
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t +
|
|
835
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t + u.value.start }), ye("selectDatapoint", { datapoint: l, period: me.value[t] });
|
|
829
836
|
}
|
|
830
837
|
Fe(
|
|
831
|
-
() => [
|
|
838
|
+
() => [u.value.start, u.value.end, A.value.length],
|
|
832
839
|
() => {
|
|
833
840
|
const t = Y.value;
|
|
834
841
|
if (b.value != null) {
|
|
@@ -840,12 +847,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
840
847
|
}
|
|
841
848
|
}
|
|
842
849
|
);
|
|
843
|
-
function
|
|
850
|
+
function Vt() {
|
|
844
851
|
$e && (cancelAnimationFrame($e), $e = 0), yt.value = null, Bt(!1, null);
|
|
845
852
|
}
|
|
846
|
-
const b =
|
|
847
|
-
const t = b.value, l = t == null ? null :
|
|
848
|
-
return
|
|
853
|
+
const b = f(null), pt = m(() => {
|
|
854
|
+
const t = b.value, l = t == null ? null : Ot(t);
|
|
855
|
+
return A.value.map((a) => ({
|
|
849
856
|
slotAbsoluteIndex: a.absoluteIndex,
|
|
850
857
|
shape: a.shape || "circle",
|
|
851
858
|
name: a.name,
|
|
@@ -856,21 +863,28 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
856
863
|
id: a.id,
|
|
857
864
|
standalone: !!a.standalone
|
|
858
865
|
}));
|
|
859
|
-
})
|
|
860
|
-
|
|
861
|
-
if (
|
|
866
|
+
});
|
|
867
|
+
function Da(t) {
|
|
868
|
+
if (t == null || !e.value.style.chart.tooltip.showTimeLabel)
|
|
869
|
+
return null;
|
|
870
|
+
const l = me.value?.[t]?.text || null, a = Yl.value?.[t]?.text || null, s = Ie.value?.[t]?.text || null;
|
|
871
|
+
return e.value.style.chart.tooltip.useDefaultTimeFormat ? l : a || s;
|
|
872
|
+
}
|
|
873
|
+
const Jl = m(() => {
|
|
874
|
+
const t = e.value.style.chart.tooltip.customFormat, l = [...pt.value].reverse(), a = l.filter((c) => !c.standalone), s = l.filter((c) => c.standalone), n = a.map((c) => c.value).filter((c) => As(c) && c !== null).reduce((c, _) => Math.abs(c) + Math.abs(_), 0);
|
|
875
|
+
if (Ts(t) && Ns(
|
|
862
876
|
() => t({
|
|
863
|
-
absoluteIndex: b.value +
|
|
877
|
+
absoluteIndex: b.value + u.value.start,
|
|
864
878
|
seriesIndex: b.value,
|
|
865
|
-
datapoint:
|
|
879
|
+
datapoint: pt.value,
|
|
866
880
|
series: Z.value,
|
|
867
881
|
config: e.value
|
|
868
882
|
})
|
|
869
883
|
))
|
|
870
884
|
return t({
|
|
871
|
-
absoluteIndex: b.value +
|
|
885
|
+
absoluteIndex: b.value + u.value.start,
|
|
872
886
|
seriesIndex: b.value,
|
|
873
|
-
datapoint:
|
|
887
|
+
datapoint: pt.value,
|
|
874
888
|
series: Z.value,
|
|
875
889
|
config: e.value
|
|
876
890
|
});
|
|
@@ -879,34 +893,35 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
879
893
|
showTotal: r,
|
|
880
894
|
totalTranslation: y,
|
|
881
895
|
showPercentage: k,
|
|
882
|
-
borderColor:
|
|
896
|
+
borderColor: T,
|
|
883
897
|
roundingValue: S,
|
|
884
|
-
roundingPercentage:
|
|
885
|
-
} = e.value.style.chart.tooltip,
|
|
886
|
-
const
|
|
887
|
-
v: isNaN((
|
|
898
|
+
roundingPercentage: z
|
|
899
|
+
} = e.value.style.chart.tooltip, O = (c) => !c.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(c.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${c.color}" /></svg>` : c.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${c.color}" points="${Es({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>` : c.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : c.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : c.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : c.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, M = (c, _) => {
|
|
900
|
+
const g = _ ? Ce({
|
|
901
|
+
v: isNaN((c.value ?? 0) / (n || 1)) ? 0 : Math.abs(c.value ?? 0) / (n || 1) * 100,
|
|
888
902
|
s: "%",
|
|
889
|
-
r:
|
|
890
|
-
}) : "",
|
|
903
|
+
r: z
|
|
904
|
+
}) : "", $ = o && _ ? "(" : "", F = o && _ ? ")" : "";
|
|
891
905
|
return `
|
|
892
906
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
893
|
-
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${
|
|
894
|
-
${
|
|
907
|
+
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${O(c)}</div>
|
|
908
|
+
${c.name}${o || _ ? ":" : ""}
|
|
895
909
|
${o ? et(
|
|
896
910
|
e.value.style.chart.lines.dataLabels.formatter,
|
|
897
|
-
|
|
911
|
+
c.sourceValue,
|
|
898
912
|
Ce({
|
|
899
913
|
p: e.value.style.chart.lines.dataLabels.prefix,
|
|
900
|
-
v:
|
|
914
|
+
v: c.sourceValue,
|
|
901
915
|
s: e.value.style.chart.lines.dataLabels.suffix,
|
|
902
916
|
r: S
|
|
903
917
|
})
|
|
904
|
-
) : ""} ${
|
|
918
|
+
) : ""} ${$}${g}${F}
|
|
905
919
|
</div>
|
|
906
920
|
`;
|
|
907
921
|
};
|
|
908
|
-
let
|
|
909
|
-
|
|
922
|
+
let h = "";
|
|
923
|
+
const w = Da(b.value);
|
|
924
|
+
return w && (h += `<div style="width:100%;text-align:center;border-bottom:1px solid ${T};padding-bottom:6px;margin-bottom:3px;">${w}</div>`), r && a.length > 1 && (h += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
910
925
|
<span>${y}:</span>
|
|
911
926
|
<span>${et(
|
|
912
927
|
e.value.style.chart.lines.dataLabels.formatter,
|
|
@@ -919,24 +934,24 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
919
934
|
}),
|
|
920
935
|
{ datapoint: { name: y, value: tt(n) } }
|
|
921
936
|
)}</span>
|
|
922
|
-
</div>`), a.forEach((
|
|
923
|
-
|
|
924
|
-
}), s.length && (
|
|
925
|
-
|
|
926
|
-
})), `<div>${
|
|
937
|
+
</div>`), a.forEach((c) => {
|
|
938
|
+
h += M(c, k);
|
|
939
|
+
}), s.length && (h += `<div style="border-top:1px solid ${Me.value.length ? T : "transparent"}; margin:${Me.value.length ? "6px 0" : "0"};"></div>`, s.forEach((c) => {
|
|
940
|
+
h += M(c, !1);
|
|
941
|
+
})), `<div>${h}</div>`;
|
|
927
942
|
});
|
|
928
943
|
function Bt(t, l = null, a = "pointer") {
|
|
929
944
|
if (dt.value) return;
|
|
930
945
|
Be.value = a, Re.value = t;
|
|
931
|
-
const s =
|
|
946
|
+
const s = A.value.map((n) => ({
|
|
932
947
|
name: n.name,
|
|
933
948
|
value: [null, void 0, NaN].includes(n.series[l]) ? null : n.series[l],
|
|
934
949
|
color: n.color
|
|
935
950
|
}));
|
|
936
|
-
t ? (
|
|
951
|
+
t ? (ue.value = l, b.value = l, Za({ seriesIndex: l, datapoint: s }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: s, seriesIndex: l + u.value.start })) : (ue.value = null, b.value = null, ye("selectX", { seriesIndex: null, dataset: null, indexLabel: null }), e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: s, seriesIndex: l + u.value.start }));
|
|
937
952
|
}
|
|
938
953
|
function Va(t, l) {
|
|
939
|
-
const a = JSON.parse(JSON.stringify(
|
|
954
|
+
const a = JSON.parse(JSON.stringify(A.value)).map((s) => ({
|
|
940
955
|
name: s.name,
|
|
941
956
|
value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
|
|
942
957
|
proportion: s.proportions[l] || null,
|
|
@@ -949,26 +964,26 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
949
964
|
label: t.text
|
|
950
965
|
});
|
|
951
966
|
}
|
|
952
|
-
function
|
|
953
|
-
|
|
954
|
-
|
|
967
|
+
function Kl() {
|
|
968
|
+
V.value.length ? V.value = [] : Xe.value.forEach((t) => {
|
|
969
|
+
V.value.push(t.id);
|
|
955
970
|
});
|
|
956
971
|
}
|
|
957
972
|
function Yt(t) {
|
|
958
|
-
if (
|
|
959
|
-
|
|
973
|
+
if (V.value.includes(t.id))
|
|
974
|
+
V.value = V.value.filter((l) => l !== t.id);
|
|
960
975
|
else {
|
|
961
|
-
if (
|
|
962
|
-
|
|
976
|
+
if (V.value.length === Z.value.length - 1) return;
|
|
977
|
+
V.value.push(t.id);
|
|
963
978
|
}
|
|
964
|
-
ye("selectLegend",
|
|
979
|
+
ye("selectLegend", A.value);
|
|
965
980
|
}
|
|
966
|
-
const Xe =
|
|
981
|
+
const Xe = m(() => Z.value.map((t) => ({
|
|
967
982
|
...t,
|
|
968
|
-
opacity:
|
|
983
|
+
opacity: V.value.includes(t.id) ? 0.5 : 1,
|
|
969
984
|
segregate: () => Yt(t),
|
|
970
|
-
isSegregated:
|
|
971
|
-
}))),
|
|
985
|
+
isSegregated: V.value.includes(t.id)
|
|
986
|
+
}))), Zl = m(() => ({
|
|
972
987
|
cy: "stackline-legend",
|
|
973
988
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
974
989
|
color: e.value.style.chart.legend.color,
|
|
@@ -982,18 +997,18 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
982
997
|
const l = Z.value.find((a) => a.name === t);
|
|
983
998
|
return l || (e.value.debug && console.warn(`VueUiStackline - Series name not found "${t}"`), null);
|
|
984
999
|
}
|
|
985
|
-
function
|
|
1000
|
+
function Ql(t) {
|
|
986
1001
|
const l = Ba(t);
|
|
987
|
-
l !== null &&
|
|
1002
|
+
l !== null && V.value.includes(l.id) && Yt({ id: l.id });
|
|
988
1003
|
}
|
|
989
|
-
function
|
|
1004
|
+
function es(t) {
|
|
990
1005
|
const l = Ba(t);
|
|
991
|
-
l !== null && (
|
|
1006
|
+
l !== null && (V.value.includes(l.id) || Yt({ id: l.id }));
|
|
992
1007
|
}
|
|
993
|
-
const Ya =
|
|
994
|
-
if (
|
|
1008
|
+
const Ya = m(() => {
|
|
1009
|
+
if (A.value.length === 0)
|
|
995
1010
|
return { head: [], body: [], config: {}, columnNames: [] };
|
|
996
|
-
const t =
|
|
1011
|
+
const t = A.value.map(({ name: a, color: s }) => ({ label: a, color: s })), l = [];
|
|
997
1012
|
return ht.value.forEach((a) => {
|
|
998
1013
|
const s = a.absoluteIndex, o = [e.value.style.chart.grid.x.timeLabels.values?.[s] ? a.text : s + 1];
|
|
999
1014
|
Z.value.forEach((r) => {
|
|
@@ -1003,16 +1018,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1003
1018
|
}), { head: t, body: l };
|
|
1004
1019
|
});
|
|
1005
1020
|
function Ht(t = null) {
|
|
1006
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...Ya.value.head.map((r) => r.label)], s = Ya.value.body, n = l.concat([a]).concat(s), o =
|
|
1007
|
-
t ? t(o) :
|
|
1021
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...Ya.value.head.map((r) => r.label)], s = Ya.value.body, n = l.concat([a]).concat(s), o = _s(n);
|
|
1022
|
+
t ? t(o) : Fs({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-stackline" });
|
|
1008
1023
|
}
|
|
1009
|
-
const _e =
|
|
1010
|
-
const t = [""].concat(
|
|
1024
|
+
const _e = m(() => {
|
|
1025
|
+
const t = [""].concat(A.value.map((o) => o.name)).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>'), l = [], a = Math.max(0, u.value.end - u.value.start);
|
|
1011
1026
|
for (let o = 0; o < a; o += 1) {
|
|
1012
|
-
const r =
|
|
1013
|
-
const
|
|
1014
|
-
return Number(
|
|
1015
|
-
}), S =
|
|
1027
|
+
const r = Ot(o), y = e.value.style.chart.grid.x.timeLabels.values?.[r] ? me.value?.[o]?.text ?? r + 1 : r + 1, k = A.value.map((z) => {
|
|
1028
|
+
const O = z.series?.[o] ?? 0;
|
|
1029
|
+
return Number(O.toFixed(e.value.table.td.roundingValue));
|
|
1030
|
+
}), S = A.value.filter((z) => !z.standalone).map((z) => z.series?.[o] ?? 0).reduce((z, O) => z + O, 0);
|
|
1016
1031
|
l.push([y].concat(k).concat(Number(S.toFixed(e.value.table.td.roundingValue))));
|
|
1017
1032
|
}
|
|
1018
1033
|
const s = {
|
|
@@ -1027,30 +1042,30 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1027
1042
|
outline: e.value.table.td.outline
|
|
1028
1043
|
},
|
|
1029
1044
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
1030
|
-
}, n = [e.value.table.columnNames.period].concat(
|
|
1045
|
+
}, n = [e.value.table.columnNames.period].concat(A.value.map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
1031
1046
|
return { head: t, body: l, config: s, colNames: n };
|
|
1032
|
-
}),
|
|
1033
|
-
svg:
|
|
1034
|
-
title:
|
|
1035
|
-
legend:
|
|
1047
|
+
}), ts = m(() => e.value.style.chart.backgroundColor), as = m(() => e.value.style.chart.legend), ls = m(() => e.value.style.chart.title), { exportSvg: ss, getSvg: os } = Us({
|
|
1048
|
+
svg: de,
|
|
1049
|
+
title: ls,
|
|
1050
|
+
legend: as,
|
|
1036
1051
|
legendItems: Xe,
|
|
1037
|
-
backgroundColor:
|
|
1052
|
+
backgroundColor: ts
|
|
1038
1053
|
});
|
|
1039
1054
|
async function Ha({ isCb: t }) {
|
|
1040
1055
|
st.value = !0, await Gt();
|
|
1041
1056
|
try {
|
|
1042
1057
|
if (t) {
|
|
1043
|
-
const { blob: l, url: a, text: s, dataUrl: n } = await
|
|
1058
|
+
const { blob: l, url: a, text: s, dataUrl: n } = await os();
|
|
1044
1059
|
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: n }));
|
|
1045
1060
|
} else
|
|
1046
|
-
await Promise.resolve(
|
|
1061
|
+
await Promise.resolve(ss());
|
|
1047
1062
|
} finally {
|
|
1048
1063
|
st.value = !1;
|
|
1049
1064
|
}
|
|
1050
1065
|
}
|
|
1051
|
-
async function
|
|
1052
|
-
if (!
|
|
1053
|
-
const { width: l, height: a } =
|
|
1066
|
+
async function ns({ scale: t = 2 } = {}) {
|
|
1067
|
+
if (!ie.value) return;
|
|
1068
|
+
const { width: l, height: a } = ie.value.getBoundingClientRect(), s = l / a, { imageUri: n, base64: o } = await Ks({ domElement: ie.value, base64: !0, img: !0, scale: t });
|
|
1054
1069
|
return {
|
|
1055
1070
|
imageUri: n,
|
|
1056
1071
|
base64: o,
|
|
@@ -1060,7 +1075,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1060
1075
|
aspectRatio: s
|
|
1061
1076
|
};
|
|
1062
1077
|
}
|
|
1063
|
-
const Ge =
|
|
1078
|
+
const Ge = m(() => {
|
|
1064
1079
|
const t = e.value.table.useDialog && !e.value.table.show, l = j.value.showTable;
|
|
1065
1080
|
return {
|
|
1066
1081
|
component: t ? bl : ml,
|
|
@@ -1071,9 +1086,9 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1071
1086
|
headerColor: e.value.table.th.color,
|
|
1072
1087
|
headerBg: e.value.table.th.backgroundColor,
|
|
1073
1088
|
isFullscreen: De.value,
|
|
1074
|
-
fullscreenParent:
|
|
1089
|
+
fullscreenParent: ie.value,
|
|
1075
1090
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
1076
|
-
isCursorPointer:
|
|
1091
|
+
isCursorPointer: ce.value
|
|
1077
1092
|
} : {
|
|
1078
1093
|
hideDetails: !0,
|
|
1079
1094
|
config: {
|
|
@@ -1095,10 +1110,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1095
1110
|
e.value.table.show || (t && e.value.table.useDialog && Ve.value ? Ve.value.open() : "close" in Ve.value && Ve.value.close());
|
|
1096
1111
|
});
|
|
1097
1112
|
function Wa() {
|
|
1098
|
-
j.value.showTable = !1,
|
|
1113
|
+
j.value.showTable = !1, Ct.value && Ct.value.setTableIconState(!1);
|
|
1099
1114
|
}
|
|
1100
1115
|
function Ua(t) {
|
|
1101
|
-
De.value = t,
|
|
1116
|
+
De.value = t, Qt.value += 1;
|
|
1102
1117
|
}
|
|
1103
1118
|
function qa() {
|
|
1104
1119
|
j.value.showTable = !j.value.showTable;
|
|
@@ -1109,12 +1124,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1109
1124
|
function Ga() {
|
|
1110
1125
|
j.value.showTooltip = !j.value.showTooltip;
|
|
1111
1126
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1127
|
+
function rs() {
|
|
1128
|
+
return A.value;
|
|
1114
1129
|
}
|
|
1115
1130
|
function ja(t) {
|
|
1116
|
-
const l = t ?? 0, a =
|
|
1117
|
-
return JSON.parse(JSON.stringify(
|
|
1131
|
+
const l = t ?? 0, a = Ot(l);
|
|
1132
|
+
return JSON.parse(JSON.stringify(A.value)).map((s) => {
|
|
1118
1133
|
const n = s.series[l], o = s.signedSeries?.[l], r = n === 0 ? 0 : (o === -1 && n >= 0 ? -n : n) || null;
|
|
1119
1134
|
return {
|
|
1120
1135
|
name: s.name,
|
|
@@ -1123,86 +1138,86 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1123
1138
|
proportion: s.proportions?.[l] || null,
|
|
1124
1139
|
color: s.color,
|
|
1125
1140
|
id: s.id,
|
|
1126
|
-
timeLabel:
|
|
1141
|
+
timeLabel: Ie.value?.[a] || null
|
|
1127
1142
|
};
|
|
1128
1143
|
});
|
|
1129
1144
|
}
|
|
1130
|
-
const
|
|
1145
|
+
const is = m(() => Array(he.value).fill(0).map((t, l) => ja(l)));
|
|
1131
1146
|
Fe(() => G.selectedXIndex, (t) => {
|
|
1132
1147
|
if ([null, void 0].includes(G.selectedXIndex)) {
|
|
1133
1148
|
b.value = null;
|
|
1134
1149
|
return;
|
|
1135
1150
|
}
|
|
1136
|
-
const l = t -
|
|
1137
|
-
l < 0 || t >=
|
|
1151
|
+
const l = t - u.value.start;
|
|
1152
|
+
l < 0 || t >= u.value.end ? b.value = null : b.value = l ?? null;
|
|
1138
1153
|
}, { immediate: !0 });
|
|
1139
|
-
const Ja =
|
|
1154
|
+
const Ja = m(() => {
|
|
1140
1155
|
if (e.value.style.chart.lines.distributed)
|
|
1141
1156
|
return { min: -1, max: 1 };
|
|
1142
1157
|
const t = Me.value, l = ut.value, a = Math.max(
|
|
1143
1158
|
1,
|
|
1144
|
-
...[...t, ...l].map((
|
|
1159
|
+
...[...t, ...l].map((h) => h.series?.length || 0)
|
|
1145
1160
|
), s = Array(a).fill(0), n = Array(a).fill(0);
|
|
1146
|
-
t.forEach((
|
|
1147
|
-
for (let
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1161
|
+
t.forEach((h) => {
|
|
1162
|
+
for (let w = 0; w < a; w += 1) {
|
|
1163
|
+
const c = h.series[w] ?? 0;
|
|
1164
|
+
c >= 0 ? s[w] += c : n[w] += c;
|
|
1150
1165
|
}
|
|
1151
1166
|
});
|
|
1152
1167
|
const o = Array(a).fill(0), r = Array(a).fill(0);
|
|
1153
|
-
l.forEach((
|
|
1154
|
-
for (let
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1168
|
+
l.forEach((h) => {
|
|
1169
|
+
for (let w = 0; w < a; w += 1) {
|
|
1170
|
+
const c = h.series[w] ?? 0;
|
|
1171
|
+
c > 0 && (o[w] = Math.max(o[w], c)), c < 0 && (r[w] = Math.min(r[w], c));
|
|
1157
1172
|
}
|
|
1158
1173
|
});
|
|
1159
|
-
const y = Math.max(0, ...s, ...o), k = Math.min(0, ...n, ...r),
|
|
1160
|
-
|
|
1174
|
+
const y = Math.max(0, ...s, ...o), k = Math.min(0, ...n, ...r), T = e.value.style.chart.grid.scale.scaleMin, S = e.value.style.chart.grid.scale.scaleMax, z = e.value.style.chart.grid.scale.ticks, M = !e.value.style.chart.lines.distributed && (T !== null || S !== null) ? wt(
|
|
1175
|
+
T !== null ? T : k > 0 ? 0 : k,
|
|
1161
1176
|
S !== null ? S : y < 0 ? 0 : y,
|
|
1162
|
-
|
|
1163
|
-
) :
|
|
1164
|
-
|
|
1177
|
+
z
|
|
1178
|
+
) : St(
|
|
1179
|
+
T !== null ? T : k > 0 ? 0 : k,
|
|
1165
1180
|
S !== null ? S : y < 0 ? 0 : y,
|
|
1166
|
-
|
|
1181
|
+
z
|
|
1167
1182
|
);
|
|
1168
1183
|
return { min: Number(M.min) || 0, max: Number(M.max) || 0 };
|
|
1169
1184
|
});
|
|
1170
|
-
function
|
|
1171
|
-
const a = (
|
|
1185
|
+
function us({ minimapH: t, unitW: l }) {
|
|
1186
|
+
const a = (h) => typeof h == "string" ? h.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
|
|
1172
1187
|
if (!Number.isFinite(t) || t <= 0 || !Number.isFinite(l) || l <= 0)
|
|
1173
1188
|
return "";
|
|
1174
|
-
const s =
|
|
1189
|
+
const s = A.value.filter((h) => !h.standalone), n = A.value.filter((h) => h.standalone), o = Math.max(0, ...A.value.map((h) => Array.isArray(h.fullSeries) ? h.fullSeries.length : h.series.length));
|
|
1175
1190
|
if (o <= 0) return "";
|
|
1176
|
-
const r = o === 1 ? [l * 0.5] : Array.from({ length: o }, (
|
|
1191
|
+
const r = o === 1 ? [l * 0.5] : Array.from({ length: o }, (h, w) => w * l);
|
|
1177
1192
|
if (e.value.style.chart.lines.distributed) {
|
|
1178
|
-
const
|
|
1179
|
-
let
|
|
1180
|
-
return s.forEach((
|
|
1181
|
-
const B = (Array.isArray(
|
|
1182
|
-
B != null && !Number.isNaN(B) && (
|
|
1183
|
-
}),
|
|
1184
|
-
}),
|
|
1193
|
+
const h = Array.from({ length: o }, (g, $) => {
|
|
1194
|
+
let F = 0;
|
|
1195
|
+
return s.forEach((E) => {
|
|
1196
|
+
const B = (Array.isArray(E.fullSeries) ? E.fullSeries : E.series)?.[$];
|
|
1197
|
+
B != null && !Number.isNaN(B) && (F += Math.abs(B));
|
|
1198
|
+
}), F || 1;
|
|
1199
|
+
}), w = (g) => {
|
|
1185
1200
|
const $ = Math.max(0, Math.min(1, g || 0));
|
|
1186
1201
|
return t - t * $;
|
|
1187
|
-
},
|
|
1202
|
+
}, c = [], _ = Array(o).fill(0);
|
|
1188
1203
|
return s.forEach((g) => {
|
|
1189
|
-
const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series,
|
|
1204
|
+
const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, F = new Array(o), E = new Array(o);
|
|
1190
1205
|
for (let U = 0; U < o; U += 1) {
|
|
1191
|
-
const be = $?.[U], xe = be == null || Number.isNaN(be) ? 0 : Math.abs(be) /
|
|
1192
|
-
|
|
1206
|
+
const be = $?.[U], xe = be == null || Number.isNaN(be) ? 0 : Math.abs(be) / h[U];
|
|
1207
|
+
E[U] = _[U], _[U] += xe, F[U] = _[U];
|
|
1193
1208
|
}
|
|
1194
|
-
const
|
|
1209
|
+
const I = F.map(w), B = E.map(w), H = r.map((U, be) => ({ x: U, y: I[be] })), te = r.map((U, be) => ({ x: U, y: B[be] })), J = we(H), W = we([...te].reverse()), D = Se(H), p = Se([...te].reverse()), L = te[te.length - 1];
|
|
1195
1210
|
if (e.value.style.chart.lines.useArea) {
|
|
1196
|
-
const U = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)} L${L.x},${L.y} ${a(W)} Z` : `M${H[0].x},${H[0].y} ${a(
|
|
1197
|
-
|
|
1211
|
+
const U = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)} L${L.x},${L.y} ${a(W)} Z` : `M${H[0].x},${H[0].y} ${a(D)} L${L.x},${L.y} ${a(p)} Z`;
|
|
1212
|
+
c.push(
|
|
1198
1213
|
`<path d="${U}"
|
|
1199
1214
|
fill="${Zt.pattern ? `url(#pattern_${K.value}_${g.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, g.color)}"
|
|
1200
1215
|
opacity="${e.value.style.chart.lines.areaOpacity}"
|
|
1201
1216
|
stroke="none" />`
|
|
1202
1217
|
);
|
|
1203
1218
|
}
|
|
1204
|
-
const q = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)}` : `M${H[0].x},${H[0].y} ${a(
|
|
1205
|
-
|
|
1219
|
+
const q = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)}` : `M${H[0].x},${H[0].y} ${a(D)}`;
|
|
1220
|
+
c.push(
|
|
1206
1221
|
`<path d="${q}"
|
|
1207
1222
|
fill="none"
|
|
1208
1223
|
stroke="${g.color}"
|
|
@@ -1210,61 +1225,61 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1210
1225
|
stroke-linecap="round" />`
|
|
1211
1226
|
);
|
|
1212
1227
|
}), n.length && n.forEach((g) => {
|
|
1213
|
-
const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series,
|
|
1214
|
-
|
|
1228
|
+
const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, F = Array.from({ length: o }, (te, J) => w(Math.abs($?.[J] ?? 0) / h[J])), E = r.map((te, J) => ({ x: te, y: F[J] })), I = we(E), B = Se(E), H = e.value.style.chart.lines.smooth ? `M${E[0].x},${E[0].y} ${a(I)}` : `M${E[0].x},${E[0].y} ${a(B)}`;
|
|
1229
|
+
c.push(
|
|
1215
1230
|
`<path d="${H}"
|
|
1216
1231
|
fill="none"
|
|
1217
1232
|
stroke="${g.color}"
|
|
1218
1233
|
stroke-width="${e.value.style.chart.lines.strokeWidth}"
|
|
1219
1234
|
stroke-linecap="round" />`
|
|
1220
1235
|
);
|
|
1221
|
-
}),
|
|
1236
|
+
}), c.join("");
|
|
1222
1237
|
}
|
|
1223
|
-
const y = Ja.value.min, k = Ja.value.max,
|
|
1238
|
+
const y = Ja.value.min, k = Ja.value.max, T = Math.abs(y), S = k + T || 1, z = (h) => Math.max(0, Math.min(t, h)), O = (h) => z(t - t * (((h ?? 0) + T) / S)), M = [];
|
|
1224
1239
|
if (s.length) {
|
|
1225
|
-
const
|
|
1226
|
-
s.forEach((
|
|
1227
|
-
const
|
|
1240
|
+
const h = Array(o).fill(0), w = Array(o).fill(0);
|
|
1241
|
+
s.forEach((c) => {
|
|
1242
|
+
const _ = Array.isArray(c.fullSeries) ? c.fullSeries : c.series, g = new Array(o), $ = new Array(o);
|
|
1228
1243
|
for (let L = 0; L < o; L += 1) {
|
|
1229
|
-
const q =
|
|
1230
|
-
q >= 0 ? ($[L] =
|
|
1244
|
+
const q = _?.[L] ?? 0;
|
|
1245
|
+
q >= 0 ? ($[L] = h[L], h[L] += q, g[L] = h[L]) : ($[L] = w[L], w[L] += q, g[L] = w[L]);
|
|
1231
1246
|
}
|
|
1232
|
-
const
|
|
1247
|
+
const F = g.map(O), E = $.map(O), I = r.map((L, q) => ({ x: L, y: F[q] })), B = r.map((L, q) => ({ x: L, y: E[q] })), H = we(I), te = we([...B].reverse()), J = Se(I), W = Se([...B].reverse()), D = B[B.length - 1];
|
|
1233
1248
|
if (e.value.style.chart.lines.useArea) {
|
|
1234
|
-
const L = e.value.style.chart.lines.smooth ? `M${
|
|
1249
|
+
const L = e.value.style.chart.lines.smooth ? `M${I[0].x},${I[0].y} ${a(H)} L${D.x},${D.y} ${a(te)} Z` : `M${I[0].x},${I[0].y} ${a(J)} L${D.x},${D.y} ${a(W)} Z`;
|
|
1235
1250
|
M.push(
|
|
1236
1251
|
`<path d="${L}"
|
|
1237
|
-
fill="${Zt.pattern ? `url(#pattern_${K.value}_${
|
|
1252
|
+
fill="${Zt.pattern ? `url(#pattern_${K.value}_${c.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, c.color)}"
|
|
1238
1253
|
opacity="${e.value.style.chart.lines.areaOpacity}"
|
|
1239
1254
|
stroke="none" />`
|
|
1240
1255
|
);
|
|
1241
1256
|
}
|
|
1242
|
-
const p = e.value.style.chart.lines.smooth ? `M${
|
|
1257
|
+
const p = e.value.style.chart.lines.smooth ? `M${I[0].x},${I[0].y} ${a(H)}` : `M${I[0].x},${I[0].y} ${a(J)}`;
|
|
1243
1258
|
M.push(
|
|
1244
1259
|
`<path d="${p}"
|
|
1245
1260
|
fill="none"
|
|
1246
|
-
stroke="${
|
|
1261
|
+
stroke="${c.color}"
|
|
1247
1262
|
stroke-width="${e.value.style.chart.lines.strokeWidth}"
|
|
1248
1263
|
stroke-linecap="round" />`
|
|
1249
1264
|
);
|
|
1250
1265
|
});
|
|
1251
1266
|
}
|
|
1252
|
-
return n.length && n.forEach((
|
|
1253
|
-
const
|
|
1267
|
+
return n.length && n.forEach((h) => {
|
|
1268
|
+
const c = (Array.isArray(h.fullSeries) ? h.fullSeries : h.series).map(O), _ = r.map((E, I) => ({ x: E, y: c[I] })), g = we(_), $ = Se(_), F = e.value.style.chart.lines.smooth ? `M${_[0].x},${_[0].y} ${a(g)}` : `M${_[0].x},${_[0].y} ${a($)}`;
|
|
1254
1269
|
M.push(
|
|
1255
|
-
`<path d="${
|
|
1270
|
+
`<path d="${F}"
|
|
1256
1271
|
fill="none"
|
|
1257
|
-
stroke="${
|
|
1272
|
+
stroke="${h.color}"
|
|
1258
1273
|
stroke-width="${e.value.style.chart.lines.strokeWidth}"
|
|
1259
1274
|
stroke-linecap="round" />`
|
|
1260
1275
|
);
|
|
1261
1276
|
}), M.join("");
|
|
1262
1277
|
}
|
|
1263
|
-
function
|
|
1278
|
+
function cs(t, l) {
|
|
1264
1279
|
const a = e.value.style.chart.lines, s = a.dataLabels;
|
|
1265
|
-
return a.showDistributedPercentage && a.distributed ?
|
|
1280
|
+
return a.showDistributedPercentage && a.distributed ? ya.value ? l === 0 ? !s.hideEmptyPercentages : Math.abs(l) * 100 >= s.hideUnderPercentage : s.hideEmptyPercentages ? Math.abs(l) > 0 : !0 : ya.value ? (fa.value && Et.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(t) > vs.value * s.hideUnderPercentage / 100) : fa.value ? Math.abs(t) >= s.hideUnderValue : s.hideEmptyValues ? t !== 0 : !0;
|
|
1266
1281
|
}
|
|
1267
|
-
const
|
|
1282
|
+
const vs = m(() => Math.max(...A.value.flatMap((t) => t.series)));
|
|
1268
1283
|
function Ka(t, l, a, s, n) {
|
|
1269
1284
|
const o = n === -1 && t >= 0 ? -t : t;
|
|
1270
1285
|
return et(
|
|
@@ -1279,7 +1294,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1279
1294
|
{ datapoint: l, seriesIndex: a, datapointIndex: s }
|
|
1280
1295
|
);
|
|
1281
1296
|
}
|
|
1282
|
-
function
|
|
1297
|
+
function ds(t, l, a, s) {
|
|
1283
1298
|
return et(
|
|
1284
1299
|
e.value.style.chart.lines.dataLabels.formatter,
|
|
1285
1300
|
t,
|
|
@@ -1292,14 +1307,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1292
1307
|
);
|
|
1293
1308
|
}
|
|
1294
1309
|
function Za({ seriesIndex: t, datapoint: l }) {
|
|
1295
|
-
const a =
|
|
1310
|
+
const a = u.value.start + t;
|
|
1296
1311
|
ye("selectX", {
|
|
1297
1312
|
dataset: l,
|
|
1298
1313
|
index: a,
|
|
1299
1314
|
indexLabel: e.value.style.chart.grid.x.timeLabels.values[a]
|
|
1300
1315
|
});
|
|
1301
1316
|
}
|
|
1302
|
-
function
|
|
1317
|
+
function hs(t) {
|
|
1303
1318
|
if (t?.stage === "start") {
|
|
1304
1319
|
lt.value = !0;
|
|
1305
1320
|
return;
|
|
@@ -1308,73 +1323,73 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1308
1323
|
lt.value = !1;
|
|
1309
1324
|
return;
|
|
1310
1325
|
}
|
|
1311
|
-
|
|
1326
|
+
pa();
|
|
1312
1327
|
}
|
|
1313
1328
|
async function Qa() {
|
|
1314
1329
|
if (ye("copyAlt", {
|
|
1315
1330
|
config: e.value,
|
|
1316
|
-
dataset:
|
|
1331
|
+
dataset: A.value
|
|
1317
1332
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
1318
1333
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1319
1334
|
return;
|
|
1320
1335
|
}
|
|
1321
1336
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
1322
1337
|
config: e.value,
|
|
1323
|
-
dataset:
|
|
1338
|
+
dataset: A.value
|
|
1324
1339
|
}));
|
|
1325
1340
|
}
|
|
1326
|
-
const Wt =
|
|
1327
|
-
function hs() {
|
|
1328
|
-
ce.value = null, Wt.value = !0;
|
|
1329
|
-
}
|
|
1341
|
+
const Wt = f(!1);
|
|
1330
1342
|
function ms() {
|
|
1331
|
-
|
|
1343
|
+
ue.value = null, Wt.value = !0;
|
|
1332
1344
|
}
|
|
1333
|
-
function fs(
|
|
1334
|
-
|
|
1345
|
+
function fs() {
|
|
1346
|
+
ue.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null }), Wt.value = !1;
|
|
1347
|
+
}
|
|
1348
|
+
function ys(t) {
|
|
1349
|
+
if (!de.value || Ae.value || document.activeElement !== de.value || dt.value || !Y.value) return;
|
|
1335
1350
|
const l = t.key === "ArrowLeft", a = t.key === "ArrowRight", s = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
|
|
1336
1351
|
if (!l && !a && !s && !n) return;
|
|
1337
1352
|
if (t.preventDefault(), t.stopPropagation(), n) {
|
|
1338
|
-
|
|
1353
|
+
ue.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
|
|
1339
1354
|
return;
|
|
1340
1355
|
}
|
|
1341
1356
|
if (s) {
|
|
1342
|
-
if (
|
|
1343
|
-
|
|
1357
|
+
if (ue.value === null) return;
|
|
1358
|
+
Oa(ue.value);
|
|
1344
1359
|
return;
|
|
1345
1360
|
}
|
|
1346
|
-
let o =
|
|
1361
|
+
let o = ue.value;
|
|
1347
1362
|
const r = yt.value, y = o !== null && o >= 0 && o < Y.value, k = r !== null && r >= 0 && r < Y.value;
|
|
1348
|
-
y ? a ? (o += 1, o >= Y.value && (o = 0)) : l && (o -= 1, o < 0 && (o = Y.value - 1)) : k ? (o = a ? r + 1 : r - 1, o >= Y.value && (o = 0), o < 0 && (o = Y.value - 1)) : a ? o = 0 : o = Y.value - 1,
|
|
1363
|
+
y ? a ? (o += 1, o >= Y.value && (o = 0)) : l && (o -= 1, o < 0 && (o = Y.value - 1)) : k ? (o = a ? r + 1 : r - 1, o >= Y.value && (o = 0), o < 0 && (o = Y.value - 1)) : a ? o = 0 : o = Y.value - 1, ue.value = o, gs(o), Bt(!0, o, "keyboard");
|
|
1349
1364
|
}
|
|
1350
|
-
function
|
|
1351
|
-
if (!Number.isFinite(t) || !
|
|
1352
|
-
const l = d.value.left + t * gt.value, a = d.value.top + d.value.height / 2, s =
|
|
1353
|
-
s && (
|
|
1365
|
+
function gs(t) {
|
|
1366
|
+
if (!Number.isFinite(t) || !de.value) return;
|
|
1367
|
+
const l = d.value.left + t * gt.value, a = d.value.top + d.value.height / 2, s = Rs(l, a, de.value);
|
|
1368
|
+
s && (ca.value = s);
|
|
1354
1369
|
}
|
|
1355
|
-
const Ut =
|
|
1370
|
+
const Ut = m(() => {
|
|
1356
1371
|
const t = _e.value?.colNames ?? [], l = _e.value?.body ?? [];
|
|
1357
1372
|
return { headers: t, rows: l };
|
|
1358
1373
|
});
|
|
1359
1374
|
return cl({
|
|
1360
|
-
getData:
|
|
1361
|
-
getImage:
|
|
1362
|
-
generatePdf:
|
|
1375
|
+
getData: rs,
|
|
1376
|
+
getImage: ns,
|
|
1377
|
+
generatePdf: ga,
|
|
1363
1378
|
generateCsv: Ht,
|
|
1364
|
-
generateImage:
|
|
1379
|
+
generateImage: pa,
|
|
1365
1380
|
generateSvg: Ha,
|
|
1366
|
-
hideSeries:
|
|
1367
|
-
showSeries:
|
|
1381
|
+
hideSeries: es,
|
|
1382
|
+
showSeries: Ql,
|
|
1368
1383
|
toggleTable: qa,
|
|
1369
1384
|
toggleLabels: Xa,
|
|
1370
1385
|
toggleTooltip: Ga,
|
|
1371
|
-
toggleAnnotator:
|
|
1386
|
+
toggleAnnotator: Nt,
|
|
1372
1387
|
toggleFullscreen: Ua,
|
|
1373
1388
|
copyAlt: Qa
|
|
1374
1389
|
}), (t, l) => (i(), v("div", {
|
|
1375
1390
|
id: `stackline_${K.value}`,
|
|
1376
1391
|
ref_key: "stacklineChart",
|
|
1377
|
-
ref:
|
|
1392
|
+
ref: ie,
|
|
1378
1393
|
class: tl({ "vue-data-ui-component": !0, "vue-ui-stackline": !0, "vue-data-ui-wrapper-fullscreen": De.value }),
|
|
1379
1394
|
style: ge(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
1380
1395
|
onMouseenter: Ll,
|
|
@@ -1385,8 +1400,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1385
1400
|
class: "sr-only"
|
|
1386
1401
|
}, [
|
|
1387
1402
|
le("p", null, fe(e.value.a11y.translations.keyboardNavigation), 1)
|
|
1388
|
-
], 8,
|
|
1389
|
-
Ut.value?.rows?.length ? (i(),
|
|
1403
|
+
], 8, no),
|
|
1404
|
+
Ut.value?.rows?.length ? (i(), se(to, {
|
|
1390
1405
|
key: 0,
|
|
1391
1406
|
uid: K.value,
|
|
1392
1407
|
head: Ut.value.headers,
|
|
@@ -1394,32 +1409,32 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1394
1409
|
notice: e.value.a11y.translations.tableAvailable,
|
|
1395
1410
|
caption: e.value.a11y.translations.tableCaption
|
|
1396
1411
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : x("", !0),
|
|
1397
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
1412
|
+
e.value.userOptions.buttons.annotator ? (i(), se(C(yl), {
|
|
1398
1413
|
key: 1,
|
|
1399
|
-
svgRef: C(
|
|
1414
|
+
svgRef: C(de),
|
|
1400
1415
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1401
1416
|
color: e.value.style.chart.color,
|
|
1402
1417
|
active: Ae.value,
|
|
1403
|
-
isCursorPointer:
|
|
1404
|
-
onClose:
|
|
1418
|
+
isCursorPointer: ce.value,
|
|
1419
|
+
onClose: Nt
|
|
1405
1420
|
}, {
|
|
1406
1421
|
"annotator-action-close": P(() => [
|
|
1407
1422
|
N(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1408
1423
|
]),
|
|
1409
1424
|
"annotator-action-color": P(({ color: a }) => [
|
|
1410
|
-
N(t.$slots, "annotator-action-color", ee(
|
|
1425
|
+
N(t.$slots, "annotator-action-color", Q(ee({ color: a })), void 0, !0)
|
|
1411
1426
|
]),
|
|
1412
1427
|
"annotator-action-draw": P(({ mode: a }) => [
|
|
1413
|
-
N(t.$slots, "annotator-action-draw", ee(
|
|
1428
|
+
N(t.$slots, "annotator-action-draw", Q(ee({ mode: a })), void 0, !0)
|
|
1414
1429
|
]),
|
|
1415
1430
|
"annotator-action-undo": P(({ disabled: a }) => [
|
|
1416
|
-
N(t.$slots, "annotator-action-undo", ee(
|
|
1431
|
+
N(t.$slots, "annotator-action-undo", Q(ee({ disabled: a })), void 0, !0)
|
|
1417
1432
|
]),
|
|
1418
1433
|
"annotator-action-redo": P(({ disabled: a }) => [
|
|
1419
|
-
N(t.$slots, "annotator-action-redo", ee(
|
|
1434
|
+
N(t.$slots, "annotator-action-redo", Q(ee({ disabled: a })), void 0, !0)
|
|
1420
1435
|
]),
|
|
1421
1436
|
"annotator-action-delete": P(({ disabled: a }) => [
|
|
1422
|
-
N(t.$slots, "annotator-action-delete", ee(
|
|
1437
|
+
N(t.$slots, "annotator-action-delete", Q(ee({ disabled: a })), void 0, !0)
|
|
1423
1438
|
]),
|
|
1424
1439
|
_: 3
|
|
1425
1440
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : x("", !0),
|
|
@@ -1427,18 +1442,18 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1427
1442
|
Tl.value ? (i(), v("div", {
|
|
1428
1443
|
key: 2,
|
|
1429
1444
|
ref_key: "noTitle",
|
|
1430
|
-
ref:
|
|
1445
|
+
ref: aa,
|
|
1431
1446
|
class: "vue-data-ui-no-title-space",
|
|
1432
1447
|
style: "height:36px; width: 100%;background:transparent"
|
|
1433
1448
|
}, null, 512)) : x("", !0),
|
|
1434
1449
|
e.value.style.chart.title.text ? (i(), v("div", {
|
|
1435
1450
|
key: 3,
|
|
1436
1451
|
ref_key: "chartTitle",
|
|
1437
|
-
ref:
|
|
1452
|
+
ref: ea,
|
|
1438
1453
|
style: "width:100%;background:transparent;"
|
|
1439
1454
|
}, [
|
|
1440
|
-
(i(),
|
|
1441
|
-
key: `title_${
|
|
1455
|
+
(i(), se(Zs, {
|
|
1456
|
+
key: `title_${sa.value}`,
|
|
1442
1457
|
config: {
|
|
1443
1458
|
title: {
|
|
1444
1459
|
cy: "stackline-title",
|
|
@@ -1453,15 +1468,15 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1453
1468
|
], 512)) : x("", !0),
|
|
1454
1469
|
le("div", {
|
|
1455
1470
|
id: `legend-top-${K.value}`
|
|
1456
|
-
}, null, 8,
|
|
1457
|
-
e.value.userOptions.show && Ee.value && (C(
|
|
1471
|
+
}, null, 8, ro),
|
|
1472
|
+
e.value.userOptions.show && Ee.value && (C(ma) || C(zt)) ? (i(), se(C(gl), {
|
|
1458
1473
|
ref_key: "userOptionsRef",
|
|
1459
|
-
ref:
|
|
1460
|
-
key: `user_option_${
|
|
1474
|
+
ref: Ct,
|
|
1475
|
+
key: `user_option_${Qt.value}`,
|
|
1461
1476
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1462
1477
|
color: e.value.style.chart.color,
|
|
1463
|
-
isPrinting: C(
|
|
1464
|
-
isImaging: C(
|
|
1478
|
+
isPrinting: C(_t),
|
|
1479
|
+
isImaging: C(Ft),
|
|
1465
1480
|
uid: K.value,
|
|
1466
1481
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
1467
1482
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -1473,7 +1488,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1473
1488
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
1474
1489
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
1475
1490
|
isFullscreen: De.value,
|
|
1476
|
-
chartElement:
|
|
1491
|
+
chartElement: ie.value,
|
|
1477
1492
|
position: e.value.userOptions.position,
|
|
1478
1493
|
isTooltip: j.value.showTooltip,
|
|
1479
1494
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -1482,25 +1497,25 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1482
1497
|
callbacks: e.value.userOptions.callbacks,
|
|
1483
1498
|
printScale: e.value.userOptions.print.scale,
|
|
1484
1499
|
tableDialog: e.value.table.useDialog,
|
|
1485
|
-
isCursorPointer:
|
|
1500
|
+
isCursorPointer: ce.value,
|
|
1486
1501
|
onToggleFullscreen: Ua,
|
|
1487
|
-
onGeneratePdf: C(
|
|
1502
|
+
onGeneratePdf: C(ga),
|
|
1488
1503
|
onGenerateCsv: Ht,
|
|
1489
|
-
onGenerateImage:
|
|
1504
|
+
onGenerateImage: hs,
|
|
1490
1505
|
onGenerateSvg: Ha,
|
|
1491
1506
|
onToggleTable: qa,
|
|
1492
1507
|
onToggleLabels: Xa,
|
|
1493
1508
|
onToggleTooltip: Ga,
|
|
1494
|
-
onToggleAnnotator:
|
|
1509
|
+
onToggleAnnotator: Nt,
|
|
1495
1510
|
onCopyAlt: Qa,
|
|
1496
1511
|
style: ge({
|
|
1497
|
-
visibility: C(
|
|
1512
|
+
visibility: C(ma) ? C(zt) ? "visible" : "hidden" : "visible"
|
|
1498
1513
|
})
|
|
1499
1514
|
}, jt({ _: 2 }, [
|
|
1500
1515
|
t.$slots.menuIcon ? {
|
|
1501
1516
|
name: "menuIcon",
|
|
1502
1517
|
fn: P(({ isOpen: a, color: s }) => [
|
|
1503
|
-
N(t.$slots, "menuIcon", ee(
|
|
1518
|
+
N(t.$slots, "menuIcon", Q(ee({ isOpen: a, color: s })), void 0, !0)
|
|
1504
1519
|
]),
|
|
1505
1520
|
key: "0"
|
|
1506
1521
|
} : void 0,
|
|
@@ -1556,49 +1571,49 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1556
1571
|
t.$slots.optionFullscreen ? {
|
|
1557
1572
|
name: "optionFullscreen",
|
|
1558
1573
|
fn: P(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
1559
|
-
N(t.$slots, "optionFullscreen", ee(
|
|
1574
|
+
N(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
1560
1575
|
]),
|
|
1561
1576
|
key: "8"
|
|
1562
1577
|
} : void 0,
|
|
1563
1578
|
t.$slots.optionAnnotator ? {
|
|
1564
1579
|
name: "optionAnnotator",
|
|
1565
1580
|
fn: P(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
1566
|
-
N(t.$slots, "optionAnnotator", ee(
|
|
1581
|
+
N(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
1567
1582
|
]),
|
|
1568
1583
|
key: "9"
|
|
1569
1584
|
} : void 0,
|
|
1570
1585
|
t.$slots.optionAltCopy ? {
|
|
1571
1586
|
name: "optionAltCopy",
|
|
1572
1587
|
fn: P(({ altCopy: a }) => [
|
|
1573
|
-
N(t.$slots, "optionAltCopy", ee(
|
|
1588
|
+
N(t.$slots, "optionAltCopy", Q(ee({ altCopy: a })), void 0, !0)
|
|
1574
1589
|
]),
|
|
1575
1590
|
key: "10"
|
|
1576
1591
|
} : void 0
|
|
1577
1592
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : x("", !0),
|
|
1578
|
-
le("div",
|
|
1593
|
+
le("div", io, [
|
|
1579
1594
|
(i(), v("svg", {
|
|
1580
1595
|
ref_key: "svgRef",
|
|
1581
|
-
ref:
|
|
1596
|
+
ref: de,
|
|
1582
1597
|
"aria-describedby": `chart-instructions-${K.value}`,
|
|
1583
|
-
xmlns: C(
|
|
1598
|
+
xmlns: C(Ps),
|
|
1584
1599
|
viewBox: `0 0 ${d.value.chartWidth <= 0 ? 10 : d.value.chartWidth} ${d.value.chartHeight <= 0 ? 10 : d.value.chartHeight}`,
|
|
1585
|
-
class: tl({ "vue-data-ui-loading": C(
|
|
1600
|
+
class: tl({ "vue-data-ui-loading": C(ve), "no-transition": !e.value.useCssAnimation }),
|
|
1586
1601
|
style: ge(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
1587
1602
|
role: "img",
|
|
1588
1603
|
"aria-live": "polite",
|
|
1589
1604
|
tabindex: "0",
|
|
1590
1605
|
preserveAspectRatio: "xMidYMid",
|
|
1591
|
-
onMousemove:
|
|
1592
|
-
onMouseleave:
|
|
1593
|
-
onClick:
|
|
1594
|
-
onFocus:
|
|
1595
|
-
onBlur:
|
|
1596
|
-
onKeydown:
|
|
1606
|
+
onMousemove: Gl,
|
|
1607
|
+
onMouseleave: Vt,
|
|
1608
|
+
onClick: jl,
|
|
1609
|
+
onFocus: ms,
|
|
1610
|
+
onBlur: fs,
|
|
1611
|
+
onKeydown: ys
|
|
1597
1612
|
}, [
|
|
1598
1613
|
Ze(C(pl)),
|
|
1599
|
-
(i(!0), v(
|
|
1600
|
-
t.$slots.pattern ? (i(), v("defs",
|
|
1601
|
-
N(t.$slots, "pattern",
|
|
1614
|
+
(i(!0), v(R, null, X(Me.value, (a) => (i(), v(R, null, [
|
|
1615
|
+
t.$slots.pattern ? (i(), v("defs", co, [
|
|
1616
|
+
N(t.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${K.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
1602
1617
|
])) : x("", !0)
|
|
1603
1618
|
], 64))), 256)),
|
|
1604
1619
|
t.$slots["chart-background"] ? (i(), v("foreignObject", {
|
|
@@ -1612,9 +1627,9 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1612
1627
|
}
|
|
1613
1628
|
}, [
|
|
1614
1629
|
N(t.$slots, "chart-background", {}, void 0, !0)
|
|
1615
|
-
], 8,
|
|
1616
|
-
e.value.style.chart.lines.gradient.show ? (i(), v("defs",
|
|
1617
|
-
(i(!0), v(
|
|
1630
|
+
], 8, vo)) : x("", !0),
|
|
1631
|
+
e.value.style.chart.lines.gradient.show ? (i(), v("defs", ho, [
|
|
1632
|
+
(i(!0), v(R, null, X(A.value, (a, s) => (i(), v("linearGradient", {
|
|
1618
1633
|
id: `gradient_${a.id}`,
|
|
1619
1634
|
x1: "0%",
|
|
1620
1635
|
y1: "0%",
|
|
@@ -1624,14 +1639,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1624
1639
|
le("stop", {
|
|
1625
1640
|
offset: "0%",
|
|
1626
1641
|
"stop-color": a.color
|
|
1627
|
-
}, null, 8,
|
|
1642
|
+
}, null, 8, fo),
|
|
1628
1643
|
le("stop", {
|
|
1629
1644
|
offset: "100%",
|
|
1630
|
-
"stop-color": C(
|
|
1631
|
-
}, null, 8,
|
|
1632
|
-
], 8,
|
|
1645
|
+
"stop-color": C(zs)(a.color, e.value.style.chart.lines.gradient.intensity / 100)
|
|
1646
|
+
}, null, 8, yo)
|
|
1647
|
+
], 8, mo))), 256))
|
|
1633
1648
|
])) : x("", !0),
|
|
1634
|
-
e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), v(
|
|
1649
|
+
e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), v(R, { key: 2 }, X(ze.value, (a, s) => (i(), v("line", {
|
|
1635
1650
|
x1: ae.value.left,
|
|
1636
1651
|
x2: ae.value.right,
|
|
1637
1652
|
y1: a.y,
|
|
@@ -1640,17 +1655,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1640
1655
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1641
1656
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1642
1657
|
"stroke-linecap": "round"
|
|
1643
|
-
}, null, 8,
|
|
1644
|
-
e.value.style.chart.grid.y.showVerticalLines ? (i(!0), v(
|
|
1645
|
-
x1:
|
|
1646
|
-
x2:
|
|
1658
|
+
}, null, 8, go))), 256)) : x("", !0),
|
|
1659
|
+
e.value.style.chart.grid.y.showVerticalLines ? (i(!0), v(R, { key: 3 }, X(u.value.end - u.value.start, (a, s) => (i(), v("line", {
|
|
1660
|
+
x1: re(s),
|
|
1661
|
+
x2: re(s),
|
|
1647
1662
|
y1: d.value.top,
|
|
1648
1663
|
y2: d.value.bottom,
|
|
1649
1664
|
stroke: e.value.style.chart.grid.y.linesColor,
|
|
1650
1665
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1651
1666
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1652
1667
|
"stroke-linecap": "round"
|
|
1653
|
-
}, null, 8,
|
|
1668
|
+
}, null, 8, po))), 256)) : x("", !0),
|
|
1654
1669
|
e.value.style.chart.grid.x.showAxis ? (i(), v("line", {
|
|
1655
1670
|
key: 4,
|
|
1656
1671
|
x1: ae.value.left,
|
|
@@ -1661,7 +1676,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1661
1676
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
1662
1677
|
"stroke-linecap": "round",
|
|
1663
1678
|
"stroke-linejoin": "round"
|
|
1664
|
-
}, null, 8,
|
|
1679
|
+
}, null, 8, bo)) : x("", !0),
|
|
1665
1680
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.lines.distributed ? (i(), v("line", {
|
|
1666
1681
|
key: 5,
|
|
1667
1682
|
x1: ae.value.left,
|
|
@@ -1672,7 +1687,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1672
1687
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
1673
1688
|
"stroke-linecap": "round",
|
|
1674
1689
|
"stroke-linejoin": "round"
|
|
1675
|
-
}, null, 8,
|
|
1690
|
+
}, null, 8, xo)) : x("", !0),
|
|
1676
1691
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (i(), v("text", {
|
|
1677
1692
|
key: 6,
|
|
1678
1693
|
ref_key: "xAxisLabel",
|
|
@@ -1683,17 +1698,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1683
1698
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
1684
1699
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1685
1700
|
"text-anchor": "middle"
|
|
1686
|
-
}, fe(e.value.style.chart.grid.x.axisName.text), 9,
|
|
1701
|
+
}, fe(e.value.style.chart.grid.x.axisName.text), 9, ko)) : x("", !0),
|
|
1687
1702
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (i(), v("text", {
|
|
1688
1703
|
key: 7,
|
|
1689
1704
|
ref_key: "yAxisLabel",
|
|
1690
|
-
ref:
|
|
1705
|
+
ref: Lt,
|
|
1691
1706
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${d.value.top + d.value.height / 2}) rotate(-90)`,
|
|
1692
1707
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
1693
1708
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
1694
1709
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1695
1710
|
"text-anchor": "middle"
|
|
1696
|
-
}, fe(e.value.style.chart.grid.y.axisName.text), 9,
|
|
1711
|
+
}, fe(e.value.style.chart.grid.y.axisName.text), 9, wo)) : x("", !0),
|
|
1697
1712
|
e.value.style.chart.grid.frame.show ? (i(), v("rect", {
|
|
1698
1713
|
key: 8,
|
|
1699
1714
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
@@ -1707,42 +1722,42 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1707
1722
|
"stroke-linecap": e.value.style.chart.grid.frame.strokeLinecap,
|
|
1708
1723
|
"stroke-linejoin": e.value.style.chart.grid.frame.strokeLinejoin,
|
|
1709
1724
|
"stroke-dasharray": e.value.style.chart.grid.frame.strokeDasharray
|
|
1710
|
-
}, null, 8,
|
|
1711
|
-
(i(!0), v(
|
|
1725
|
+
}, null, 8, So)) : x("", !0),
|
|
1726
|
+
(i(!0), v(R, null, X(A.value, (a) => (i(), v(R, null, [
|
|
1712
1727
|
e.value.style.chart.lines.useArea && !a.standalone ? (i(), v("path", {
|
|
1713
1728
|
key: 0,
|
|
1714
1729
|
d: e.value.style.chart.lines.smooth ? a.smoothArea : a.straightArea,
|
|
1715
1730
|
fill: t.$slots.pattern ? `url(#pattern_${K.value}_${a.absoluteIndex})` : e.value.style.chart.lines.gradient.show ? `url(#gradient_${a.id})` : a.color,
|
|
1716
1731
|
opacity: e.value.style.chart.lines.areaOpacity,
|
|
1717
1732
|
style: ge({
|
|
1718
|
-
transition: C(
|
|
1733
|
+
transition: C(ve) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
|
|
1719
1734
|
})
|
|
1720
|
-
}, null, 12,
|
|
1735
|
+
}, null, 12, Mo)) : x("", !0)
|
|
1721
1736
|
], 64))), 256)),
|
|
1722
|
-
(i(!0), v(
|
|
1737
|
+
(i(!0), v(R, null, X(A.value, (a) => (i(), v("path", {
|
|
1723
1738
|
d: e.value.style.chart.lines.smooth ? a.smoothPath : a.straightPath,
|
|
1724
1739
|
stroke: a.color,
|
|
1725
1740
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
1726
1741
|
fill: "none",
|
|
1727
1742
|
"stroke-linecap": "round",
|
|
1728
1743
|
style: ge({
|
|
1729
|
-
transition: C(
|
|
1744
|
+
transition: C(ve) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
|
|
1730
1745
|
})
|
|
1731
|
-
}, null, 12,
|
|
1746
|
+
}, null, 12, $o))), 256)),
|
|
1732
1747
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.lines.distributed ? (i(), v("g", {
|
|
1733
1748
|
key: 9,
|
|
1734
1749
|
ref_key: "scaleLabels",
|
|
1735
|
-
ref:
|
|
1750
|
+
ref: At
|
|
1736
1751
|
}, [
|
|
1737
|
-
(i(!0), v(
|
|
1752
|
+
(i(!0), v(R, null, X(ze.value, (a, s) => (i(), v("line", {
|
|
1738
1753
|
x1: ae.value.left,
|
|
1739
1754
|
x2: ae.value.left - 6,
|
|
1740
1755
|
y1: a.y,
|
|
1741
1756
|
y2: a.y,
|
|
1742
1757
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1743
1758
|
"stroke-width": 1
|
|
1744
|
-
}, null, 8,
|
|
1745
|
-
(i(!0), v(
|
|
1759
|
+
}, null, 8, Co))), 256)),
|
|
1760
|
+
(i(!0), v(R, null, X(ze.value, (a, s) => (i(), v("text", {
|
|
1746
1761
|
x: a.x,
|
|
1747
1762
|
y: a.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1748
1763
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1759,16 +1774,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1759
1774
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1760
1775
|
}),
|
|
1761
1776
|
{ datapoint: a }
|
|
1762
|
-
)), 9,
|
|
1777
|
+
)), 9, Lo))), 256))
|
|
1763
1778
|
], 512)) : x("", !0),
|
|
1764
1779
|
e.value.style.chart.grid.x.timeLabels.show ? (i(), v("g", {
|
|
1765
1780
|
key: 10,
|
|
1766
1781
|
ref_key: "timeLabelsEls",
|
|
1767
1782
|
ref: nt
|
|
1768
1783
|
}, [
|
|
1769
|
-
t.$slots["time-label"] ? (i(), v("g",
|
|
1770
|
-
(i(!0), v(
|
|
1771
|
-
N(t.$slots, "time-label",
|
|
1784
|
+
t.$slots["time-label"] ? (i(), v("g", Ao, [
|
|
1785
|
+
(i(!0), v(R, null, X(ht.value, (a, s) => (i(), v("g", null, [
|
|
1786
|
+
N(t.$slots, "time-label", xt({ ref_for: !0 }, {
|
|
1772
1787
|
x: d.value.left + vt.value * s + vt.value / 2,
|
|
1773
1788
|
y: d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1774
1789
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1780,8 +1795,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1780
1795
|
show: !0
|
|
1781
1796
|
}), void 0, !0)
|
|
1782
1797
|
]))), 256))
|
|
1783
|
-
])) : (i(), v("g",
|
|
1784
|
-
(i(!0), v(
|
|
1798
|
+
])) : (i(), v("g", To, [
|
|
1799
|
+
(i(!0), v(R, null, X(ht.value, (a, s) => (i(), v("g", null, [
|
|
1785
1800
|
String(a.text).includes(`
|
|
1786
1801
|
`) ? (i(), v("text", {
|
|
1787
1802
|
key: s + "-multi",
|
|
@@ -1790,12 +1805,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1790
1805
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1791
1806
|
transform: `
|
|
1792
1807
|
translate(
|
|
1793
|
-
${
|
|
1808
|
+
${re(s)},
|
|
1794
1809
|
${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1795
1810
|
),
|
|
1796
1811
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1797
1812
|
`,
|
|
1798
|
-
style: ge({ cursor:
|
|
1813
|
+
style: ge({ cursor: ce.value ? "pointer" : "default" }),
|
|
1799
1814
|
innerHTML: t.createTSpansFromLineBreaksOnX({
|
|
1800
1815
|
content: String(a.text),
|
|
1801
1816
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1804,37 +1819,37 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1804
1819
|
y: 0
|
|
1805
1820
|
}),
|
|
1806
1821
|
onClick: () => Va(a, s)
|
|
1807
|
-
}, null, 12,
|
|
1822
|
+
}, null, 12, Po)) : (i(), v("text", {
|
|
1808
1823
|
class: "vue-data-ui-time-label",
|
|
1809
1824
|
key: s,
|
|
1810
1825
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1811
1826
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1812
1827
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1813
1828
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1814
|
-
transform: `translate(${
|
|
1815
|
-
style: ge({ cursor:
|
|
1829
|
+
transform: `translate(${re(s)}, ${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1830
|
+
style: ge({ cursor: ce.value ? "pointer" : "default" }),
|
|
1816
1831
|
onClick: () => Va(a, s)
|
|
1817
|
-
}, fe(a.text), 13,
|
|
1832
|
+
}, fe(a.text), 13, No))
|
|
1818
1833
|
]))), 256))
|
|
1819
1834
|
]))
|
|
1820
1835
|
], 512)) : x("", !0),
|
|
1821
|
-
(Le.value || ![null, void 0].includes(b.value)) && !e.value.style.chart.highlighter.useLine ? (i(!0), v(
|
|
1836
|
+
(Le.value || ![null, void 0].includes(b.value)) && !e.value.style.chart.highlighter.useLine ? (i(!0), v(R, { key: 11 }, X(u.value.end - u.value.start, (a, s) => (i(), v("g", {
|
|
1822
1837
|
key: `tooltip_trap_highlighter_${s}`
|
|
1823
1838
|
}, [
|
|
1824
1839
|
le("rect", {
|
|
1825
|
-
x:
|
|
1840
|
+
x: Ra(s).x,
|
|
1826
1841
|
y: d.value.top,
|
|
1827
1842
|
height: d.value.height,
|
|
1828
|
-
width:
|
|
1843
|
+
width: Ra(s).width,
|
|
1829
1844
|
fill: [Ye.value, b.value].includes(s) ? C(Is)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
|
|
1830
1845
|
style: { transition: "none !important", animation: "none !important" }
|
|
1831
|
-
}, null, 8,
|
|
1846
|
+
}, null, 8, zo)
|
|
1832
1847
|
]))), 128)) : x("", !0),
|
|
1833
|
-
(Le.value || ![null, void 0].includes(b.value)) && e.value.style.chart.highlighter.useLine ? (i(), v(
|
|
1848
|
+
(Le.value || ![null, void 0].includes(b.value)) && e.value.style.chart.highlighter.useLine ? (i(), v(R, { key: 12 }, [
|
|
1834
1849
|
![null, void 0].includes(b.value) || ![null, void 0].includes(Ye.value) ? (i(), v("g", Io, [
|
|
1835
1850
|
le("line", {
|
|
1836
|
-
x1:
|
|
1837
|
-
x2:
|
|
1851
|
+
x1: re((b.value ?? Ye.value) || 0),
|
|
1852
|
+
x2: re((b.value ?? Ye.value) || 0),
|
|
1838
1853
|
y1: C(tt)(d.value.top),
|
|
1839
1854
|
y2: C(tt)(d.value.bottom),
|
|
1840
1855
|
stroke: e.value.style.chart.highlighter.color,
|
|
@@ -1842,13 +1857,13 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1842
1857
|
"stroke-dasharray": e.value.style.chart.highlighter.lineDasharray,
|
|
1843
1858
|
"stroke-linecap": "round",
|
|
1844
1859
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1845
|
-
}, null, 8,
|
|
1860
|
+
}, null, 8, _o)
|
|
1846
1861
|
])) : x("", !0)
|
|
1847
1862
|
], 64)) : x("", !0),
|
|
1848
|
-
(i(!0), v(
|
|
1849
|
-
Le.value &&
|
|
1850
|
-
b.value != null ? (i(), v(
|
|
1851
|
-
a.rel.includes(b.value) && a.fullSeries?.[
|
|
1863
|
+
(i(!0), v(R, null, X(A.value, (a) => (i(), v(R, null, [
|
|
1864
|
+
Le.value && u.value.end - u.value.start > e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(), v("g", Fo, [
|
|
1865
|
+
b.value != null ? (i(), v(R, { key: 0 }, [
|
|
1866
|
+
a.rel.includes(b.value) && a.fullSeries?.[u.value.start + b.value] != null && !Number.isNaN(a.fullSeries?.[u.value.start + b.value]) ? (i(), se(Kt, {
|
|
1852
1867
|
key: 0,
|
|
1853
1868
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1854
1869
|
color: e.value.style.chart.lines.dot.useSerieColor ? a.color : e.value.style.chart.lines.dot.fill,
|
|
@@ -1859,14 +1874,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1859
1874
|
radius: e.value.style.chart.lines.dot.radius * 1.3,
|
|
1860
1875
|
stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
|
|
1861
1876
|
strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
|
|
1862
|
-
transition: C(
|
|
1877
|
+
transition: C(ve) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
1863
1878
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : x("", !0)
|
|
1864
1879
|
], 64)) : x("", !0)
|
|
1865
1880
|
])) : x("", !0)
|
|
1866
1881
|
], 64))), 256)),
|
|
1867
|
-
(i(!0), v(
|
|
1868
|
-
|
|
1869
|
-
a.fullSeries?.[
|
|
1882
|
+
(i(!0), v(R, null, X(A.value, (a) => (i(), v(R, null, [
|
|
1883
|
+
u.value.end - u.value.start < e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(!0), v(R, { key: 0 }, X(a.points, (s, n) => (i(), v("g", { key: n }, [
|
|
1884
|
+
a.fullSeries?.[u.value.start + a.rel[n]] != null && !Number.isNaN(a.fullSeries?.[u.value.start + a.rel[n]]) ? (i(), se(Kt, {
|
|
1870
1885
|
key: 0,
|
|
1871
1886
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1872
1887
|
color: e.value.style.chart.lines.dot.useSerieColor ? a.color : e.value.style.chart.lines.dot.fill,
|
|
@@ -1874,14 +1889,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1874
1889
|
radius: Le.value && b.value === a.rel[n] ? e.value.style.chart.lines.dot.radius * 1.3 : e.value.style.chart.lines.dot.radius,
|
|
1875
1890
|
stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
|
|
1876
1891
|
strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
|
|
1877
|
-
transition: C(
|
|
1892
|
+
transition: C(ve) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
1878
1893
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : x("", !0)
|
|
1879
1894
|
]))), 128)) : x("", !0)
|
|
1880
1895
|
], 64))), 256)),
|
|
1881
|
-
j.value.dataLabels.show && e.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength >
|
|
1882
|
-
(i(!0), v(
|
|
1883
|
-
(i(!0), v(
|
|
1884
|
-
|
|
1896
|
+
j.value.dataLabels.show && e.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > u.value.end - u.value.start ? (i(), v(R, { key: 13 }, [
|
|
1897
|
+
(i(!0), v(R, null, X(A.value, (a, s) => (i(), v("g", { key: s }, [
|
|
1898
|
+
(i(!0), v(R, null, X(a.points, (n, o) => (i(), v(R, { key: o }, [
|
|
1899
|
+
cs(a.series[o], a.proportions[o]) ? (i(), v("text", {
|
|
1885
1900
|
key: 0,
|
|
1886
1901
|
x: n.x,
|
|
1887
1902
|
y: n.y + (a.series[o] >= 0 ? -e.value.style.chart.lines.dataLabels.fontSize / 2 + e.value.style.chart.lines.dataLabels.offsetY : e.value.style.chart.lines.dataLabels.fontSize * 1.2 - e.value.style.chart.lines.dataLabels.offsetY),
|
|
@@ -1889,78 +1904,78 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1889
1904
|
fill: e.value.style.chart.lines.dataLabels.color,
|
|
1890
1905
|
"font-weight": e.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
1891
1906
|
"text-anchor": "middle"
|
|
1892
|
-
}, fe(e.value.style.chart.lines.showDistributedPercentage && e.value.style.chart.lines.distributed ?
|
|
1907
|
+
}, fe(e.value.style.chart.lines.showDistributedPercentage && e.value.style.chart.lines.distributed ? ds(a.proportions[o] * 100, a, s, a.rel[o]) : Ka(a.series[o], a, s, a.rel[o], a.signedSeries[o])), 9, Eo)) : x("", !0)
|
|
1893
1908
|
], 64))), 128))
|
|
1894
1909
|
]))), 128)),
|
|
1895
|
-
e.value.style.chart.lines.totalValues.show &&
|
|
1910
|
+
e.value.style.chart.lines.totalValues.show && A.value.length > 1 ? (i(), v("g", {
|
|
1896
1911
|
key: 0,
|
|
1897
1912
|
ref_key: "sumTop",
|
|
1898
1913
|
ref: $l
|
|
1899
1914
|
}, [
|
|
1900
|
-
(i(!0), v(
|
|
1915
|
+
(i(!0), v(R, null, X(La.value, (a, s) => (i(), v(R, null, [
|
|
1901
1916
|
!e.value.style.chart.lines.dataLabels.hideEmptyValues || a.value !== 0 ? (i(), v("text", {
|
|
1902
1917
|
key: 0,
|
|
1903
|
-
x:
|
|
1918
|
+
x: re(s),
|
|
1904
1919
|
y: Vl(s),
|
|
1905
1920
|
"text-anchor": "middle",
|
|
1906
1921
|
"font-size": e.value.style.chart.lines.totalValues.fontSize,
|
|
1907
1922
|
"font-weight": e.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
1908
1923
|
fill: e.value.style.chart.lines.totalValues.color
|
|
1909
|
-
}, fe(Ka(a.value, a, s, s, a.sign)), 9,
|
|
1924
|
+
}, fe(Ka(a.value, a, s, s, a.sign)), 9, Ro)) : x("", !0)
|
|
1910
1925
|
], 64))), 256))
|
|
1911
1926
|
], 512)) : x("", !0)
|
|
1912
1927
|
], 64)) : x("", !0),
|
|
1913
|
-
|
|
1914
|
-
"data-start":
|
|
1915
|
-
"data-end":
|
|
1916
|
-
}), null, 16,
|
|
1928
|
+
wa.value ? (i(), v("rect", xt({ key: 14 }, _l.value, {
|
|
1929
|
+
"data-start": u.value.start,
|
|
1930
|
+
"data-end": u.value.end
|
|
1931
|
+
}), null, 16, Oo)) : x("", !0),
|
|
1917
1932
|
N(t.$slots, "svg", {
|
|
1918
1933
|
svg: {
|
|
1919
1934
|
drawingArea: d.value,
|
|
1920
|
-
data:
|
|
1921
|
-
isPrintingImg: C(
|
|
1935
|
+
data: A.value,
|
|
1936
|
+
isPrintingImg: C(_t) | C(Ft) | lt.value,
|
|
1922
1937
|
isPrintingSvg: st.value
|
|
1923
1938
|
}
|
|
1924
1939
|
}, void 0, !0)
|
|
1925
|
-
], 46,
|
|
1926
|
-
t.$slots.hint ? (i(), v("div",
|
|
1927
|
-
N(t.$slots, "hint", ee(
|
|
1940
|
+
], 46, uo)),
|
|
1941
|
+
t.$slots.hint ? (i(), v("div", Do, [
|
|
1942
|
+
N(t.$slots, "hint", Q(ee({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Wt.value })), void 0, !0)
|
|
1928
1943
|
])) : x("", !0)
|
|
1929
1944
|
]),
|
|
1930
|
-
t.$slots.watermark ? (i(), v("div",
|
|
1931
|
-
N(t.$slots, "watermark", ee(
|
|
1945
|
+
t.$slots.watermark ? (i(), v("div", Vo, [
|
|
1946
|
+
N(t.$slots, "watermark", Q(ee({ isPrinting: C(_t) || C(Ft) || lt.value || st.value })), void 0, !0)
|
|
1932
1947
|
])) : x("", !0),
|
|
1933
|
-
|
|
1948
|
+
oa.value ? (i(), se(ks, {
|
|
1934
1949
|
key: 6,
|
|
1935
1950
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${K.value}` : `#legend-bottom-${K.value}`
|
|
1936
1951
|
}, [
|
|
1937
1952
|
le("div", {
|
|
1938
1953
|
ref_key: "chartLegend",
|
|
1939
|
-
ref:
|
|
1954
|
+
ref: ta
|
|
1940
1955
|
}, [
|
|
1941
|
-
e.value.style.chart.legend.show ? (i(),
|
|
1956
|
+
e.value.style.chart.legend.show ? (i(), se(eo, {
|
|
1942
1957
|
key: 0,
|
|
1943
1958
|
legendSet: Xe.value,
|
|
1944
|
-
config:
|
|
1945
|
-
isCursorPointer:
|
|
1959
|
+
config: Zl.value,
|
|
1960
|
+
isCursorPointer: ce.value,
|
|
1946
1961
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => a.segregate())
|
|
1947
1962
|
}, jt({
|
|
1948
1963
|
item: P(({ legend: a }) => [
|
|
1949
|
-
C(
|
|
1964
|
+
C(ve) ? x("", !0) : (i(), v("div", {
|
|
1950
1965
|
key: 0,
|
|
1951
1966
|
onClick: (s) => a.segregate(),
|
|
1952
|
-
style: ge(`opacity:${
|
|
1953
|
-
}, fe(a.name), 13,
|
|
1967
|
+
style: ge(`opacity:${V.value.includes(a.id) ? 0.5 : 1}`)
|
|
1968
|
+
}, fe(a.name), 13, Bo))
|
|
1954
1969
|
]),
|
|
1955
1970
|
legendToggle: P(() => [
|
|
1956
|
-
Xe.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !C(
|
|
1971
|
+
Xe.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !C(ve) ? (i(), se(lo, {
|
|
1957
1972
|
key: 0,
|
|
1958
1973
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1959
1974
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1960
1975
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
1961
|
-
checked:
|
|
1962
|
-
isCursorPointer:
|
|
1963
|
-
onToggle:
|
|
1976
|
+
checked: V.value.length > 0,
|
|
1977
|
+
isCursorPointer: ce.value,
|
|
1978
|
+
onToggle: Kl
|
|
1964
1979
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : x("", !0)
|
|
1965
1980
|
]),
|
|
1966
1981
|
_: 2
|
|
@@ -1984,7 +1999,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1984
1999
|
}, void 0, !0)
|
|
1985
2000
|
], 512)
|
|
1986
2001
|
], 8, ["to"])) : x("", !0),
|
|
1987
|
-
Ee.value && e.value.userOptions.buttons.table ? (i(),
|
|
2002
|
+
Ee.value && e.value.userOptions.buttons.table ? (i(), se(ws(Ge.value.component), xt({ key: 7 }, Ge.value.props, {
|
|
1988
2003
|
ref_key: "tableUnit",
|
|
1989
2004
|
ref: Ve,
|
|
1990
2005
|
onClose: Wa
|
|
@@ -1997,11 +2012,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
1997
2012
|
config: _e.value.config,
|
|
1998
2013
|
title: e.value.table.useDialog ? "" : Ge.value.title,
|
|
1999
2014
|
withCloseButton: !e.value.table.useDialog,
|
|
2000
|
-
isCursorPointer:
|
|
2015
|
+
isCursorPointer: ce.value,
|
|
2001
2016
|
onClose: Wa
|
|
2002
2017
|
}, {
|
|
2003
2018
|
th: P(({ th: a }) => [
|
|
2004
|
-
le("div", { innerHTML: a }, null, 8,
|
|
2019
|
+
le("div", { innerHTML: a }, null, 8, Yo)
|
|
2005
2020
|
]),
|
|
2006
2021
|
td: P(({ td: a }) => [
|
|
2007
2022
|
al(fe(isNaN(Number(a)) ? a : C(Ce)({
|
|
@@ -2030,7 +2045,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
2030
2045
|
tabindex: "0",
|
|
2031
2046
|
class: "vue-ui-user-options-button",
|
|
2032
2047
|
onClick: l[1] || (l[1] = (a) => Ht(e.value.userOptions.callbacks.csv)),
|
|
2033
|
-
style: ge({ cursor:
|
|
2048
|
+
style: ge({ cursor: ce.value ? "pointer" : "default" })
|
|
2034
2049
|
}, [
|
|
2035
2050
|
Ze(C(hl), {
|
|
2036
2051
|
name: "fileCsv",
|
|
@@ -2041,7 +2056,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
2041
2056
|
key: "1"
|
|
2042
2057
|
} : void 0
|
|
2043
2058
|
]), 1040)) : x("", !0),
|
|
2044
|
-
e.value.style.chart.zoom.show && Ee.value &&
|
|
2059
|
+
e.value.style.chart.zoom.show && Ee.value && _a.value && he.value > 6 ? (i(), se(ao, {
|
|
2045
2060
|
key: 8,
|
|
2046
2061
|
ref_key: "chartSlicer",
|
|
2047
2062
|
ref: Oe,
|
|
@@ -2052,18 +2067,18 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
2052
2067
|
cutNullValues: !1,
|
|
2053
2068
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
2054
2069
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
2055
|
-
end:
|
|
2070
|
+
end: u.value.end,
|
|
2056
2071
|
focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
|
|
2057
2072
|
focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
|
|
2058
2073
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
2059
2074
|
immediate: !e.value.style.chart.zoom.preview.enable,
|
|
2060
2075
|
inputColor: e.value.style.chart.zoom.color,
|
|
2061
|
-
isPreview:
|
|
2062
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[
|
|
2063
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[
|
|
2064
|
-
max: Math.max(...
|
|
2076
|
+
isPreview: wa.value,
|
|
2077
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[u.value.start] ? me.value?.[0]?.text ?? "" : "",
|
|
2078
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[u.value.end - 1] ? me.value?.at(-1)?.text ?? "" : "",
|
|
2079
|
+
max: Math.max(...Mt.dataset.map((a) => a.series.length)),
|
|
2065
2080
|
min: 0,
|
|
2066
|
-
minimap:
|
|
2081
|
+
minimap: Ca.value,
|
|
2067
2082
|
minimapCompact: e.value.style.chart.zoom.minimap.compact,
|
|
2068
2083
|
minimapFrameColor: e.value.style.chart.zoom.minimap.frameColor,
|
|
2069
2084
|
minimapIndicatorColor: e.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -2072,21 +2087,21 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
2072
2087
|
minimapSelectedColorOpacity: e.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2073
2088
|
minimapSelectedIndex: b.value,
|
|
2074
2089
|
minimapSelectionRadius: 1,
|
|
2075
|
-
preciseLabels:
|
|
2076
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...
|
|
2090
|
+
preciseLabels: Ia.value.length ? Ia.value : Ie.value,
|
|
2091
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Mt.dataset.map((a) => a.series.length)),
|
|
2077
2092
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
2078
2093
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
2079
|
-
selectedSeries:
|
|
2094
|
+
selectedSeries: is.value,
|
|
2080
2095
|
smoothMinimap: !1,
|
|
2081
|
-
start:
|
|
2096
|
+
start: u.value.start,
|
|
2082
2097
|
textColor: e.value.style.chart.color,
|
|
2083
|
-
timeLabels:
|
|
2098
|
+
timeLabels: Ie.value,
|
|
2084
2099
|
usePreciseLabels: e.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !e.value.style.chart.zoom.useDefaultFormat,
|
|
2085
|
-
valueEnd:
|
|
2086
|
-
valueStart:
|
|
2100
|
+
valueEnd: u.value.end,
|
|
2101
|
+
valueStart: u.value.start,
|
|
2087
2102
|
verticalHandles: e.value.style.chart.zoom.minimap.verticalHandles,
|
|
2088
2103
|
maxWidth: e.value.style.chart.zoom.maxWidth,
|
|
2089
|
-
isCursorPointer:
|
|
2104
|
+
isCursorPointer: ce.value,
|
|
2090
2105
|
additionalMinimapHeight: e.value.style.chart.zoom.minimap.additionalHeight,
|
|
2091
2106
|
handleType: e.value.style.chart.zoom.minimap.handleType,
|
|
2092
2107
|
handleIconColor: e.value.style.chart.zoom.minimap.handleIconColor,
|
|
@@ -2094,26 +2109,26 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
2094
2109
|
handleBorderColor: e.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2095
2110
|
handleFill: e.value.style.chart.zoom.minimap.handleFill,
|
|
2096
2111
|
handleWidth: e.value.style.chart.zoom.minimap.handleWidth,
|
|
2097
|
-
"onUpdate:end":
|
|
2098
|
-
"onUpdate:start":
|
|
2112
|
+
"onUpdate:end": Ul,
|
|
2113
|
+
"onUpdate:start": Wl,
|
|
2099
2114
|
onTrapMouse: Fl,
|
|
2100
|
-
onReset:
|
|
2101
|
-
onFutureEnd: l[2] || (l[2] = (a) =>
|
|
2102
|
-
onFutureStart: l[3] || (l[3] = (a) =>
|
|
2115
|
+
onReset: Ma,
|
|
2116
|
+
onFutureEnd: l[2] || (l[2] = (a) => Sa("end", a)),
|
|
2117
|
+
onFutureStart: l[3] || (l[3] = (a) => Sa("start", a))
|
|
2103
2118
|
}, {
|
|
2104
2119
|
"reset-action": P(({ reset: a }) => [
|
|
2105
|
-
N(t.$slots, "reset-action", ee(
|
|
2120
|
+
N(t.$slots, "reset-action", Q(ee({ reset: a })), void 0, !0)
|
|
2106
2121
|
]),
|
|
2107
2122
|
slotMap: P(({ width: a, height: s, unitW: n }) => [
|
|
2108
2123
|
le("g", {
|
|
2109
|
-
innerHTML:
|
|
2110
|
-
}, null, 8,
|
|
2124
|
+
innerHTML: us({ minimapH: s, unitW: n })
|
|
2125
|
+
}, null, 8, Ho)
|
|
2111
2126
|
]),
|
|
2112
2127
|
_: 3
|
|
2113
2128
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "maxWidth", "isCursorPointer", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : x("", !0),
|
|
2114
2129
|
le("div", {
|
|
2115
2130
|
id: `legend-bottom-${K.value}`
|
|
2116
|
-
}, null, 8,
|
|
2131
|
+
}, null, 8, Wo),
|
|
2117
2132
|
Ze(C(dl), {
|
|
2118
2133
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
2119
2134
|
show: j.value.showTooltip && Re.value,
|
|
@@ -2126,8 +2141,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
2126
2141
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
2127
2142
|
position: e.value.style.chart.tooltip.position,
|
|
2128
2143
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
2129
|
-
parent:
|
|
2130
|
-
content:
|
|
2144
|
+
parent: ie.value,
|
|
2145
|
+
content: Jl.value,
|
|
2131
2146
|
isFullscreen: De.value,
|
|
2132
2147
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
2133
2148
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -2135,30 +2150,33 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
|
|
|
2135
2150
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
2136
2151
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2137
2152
|
isA11yMode: Be.value === "keyboard",
|
|
2138
|
-
a11yPosition:
|
|
2153
|
+
a11yPosition: ca.value
|
|
2139
2154
|
}, {
|
|
2140
2155
|
"tooltip-before": P(() => [
|
|
2141
|
-
N(t.$slots, "tooltip-before", ee(
|
|
2156
|
+
N(t.$slots, "tooltip-before", Q(ee({ ...Dt.value })), void 0, !0)
|
|
2157
|
+
]),
|
|
2158
|
+
tooltip: P(() => [
|
|
2159
|
+
N(t.$slots, "tooltip", Q(ee({ ...Dt.value })), void 0, !0)
|
|
2142
2160
|
]),
|
|
2143
2161
|
"tooltip-after": P(() => [
|
|
2144
|
-
N(t.$slots, "tooltip-after", ee(
|
|
2162
|
+
N(t.$slots, "tooltip-after", Q(ee({ ...Dt.value })), void 0, !0)
|
|
2145
2163
|
]),
|
|
2146
2164
|
_: 3
|
|
2147
2165
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
2148
2166
|
t.$slots.source ? (i(), v("div", {
|
|
2149
2167
|
key: 9,
|
|
2150
2168
|
ref_key: "source",
|
|
2151
|
-
ref:
|
|
2169
|
+
ref: la,
|
|
2152
2170
|
dir: "auto"
|
|
2153
2171
|
}, [
|
|
2154
2172
|
N(t.$slots, "source", {}, void 0, !0)
|
|
2155
2173
|
], 512)) : x("", !0),
|
|
2156
2174
|
N(t.$slots, "skeleton", {}, () => [
|
|
2157
|
-
C(
|
|
2175
|
+
C(ve) ? (i(), se(Hs, { key: 0 })) : x("", !0)
|
|
2158
2176
|
], !0)
|
|
2159
|
-
], 46,
|
|
2177
|
+
], 46, oo));
|
|
2160
2178
|
}
|
|
2161
|
-
},
|
|
2179
|
+
}, yn = /* @__PURE__ */ so(Uo, [["__scopeId", "data-v-92ca460b"]]);
|
|
2162
2180
|
export {
|
|
2163
|
-
|
|
2181
|
+
yn as default
|
|
2164
2182
|
};
|