vue-data-ui 3.23.8 → 3.23.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CF0VFcBH.js → Arrow-bwmME0jw.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-DBVHlhQZ.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-B4n7br_R.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-wRhcG_-q.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-BZjzzyQo.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-B9kUMLSz.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-DMsScfkx.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-IWPfuceW.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-DWEFXq9E.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-Crs4-xWz.js} +3 -3
- package/dist/{PackageVersion-C9lXG-wa.js → PackageVersion-DNTJUKh1.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-DJ607Hx6.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAhF1ToV.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-sXtk2ZZ2.js} +2 -2
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-BE50SZQH.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-BGLPsoA9.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-DO4-MVhc.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-HQyukyl2.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BYIvdTe8.js → dom-to-png-Cg_3vpOo.js} +1 -1
- package/dist/{exposedLib-C0DPCgFj.js → exposedLib-vfRiIvq_.js} +1 -1
- package/dist/{img-Bnokohej.js → img-tU9mMt9W.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-C_lMnQRs.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-AT2PUyyh.js} +1 -1
- package/dist/{package-BieOvFq9.js → package-enC-Nivt.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-ColHHJFH.js} +1 -1
- package/dist/{render-common-C5vqxC-e.js → render-common-CqcoYfCA.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -7
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CW0vJS1B.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-BFS7d6eb.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui--BufRcn0.js → vue-data-ui-DD7J3yor.js} +69 -69
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +1829 -0
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-DJNjilyy.js} +3 -3
- package/dist/{vue-ui-age-pyramid-j6nm1rbi.js → vue-ui-age-pyramid-DI8b5E2H.js} +6 -6
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-7ZVfFskI.js} +6 -6
- package/dist/{vue-ui-bullet-CKQ35-dP.js → vue-ui-bullet-Dyd5F1Wa.js} +7 -7
- package/dist/{vue-ui-bump-BXp-EozA.js → vue-ui-bump-DzB3WQnq.js} +166 -166
- package/dist/{vue-ui-candlestick-DvvyheWp.js → vue-ui-candlestick--YWEtek_.js} +7 -7
- package/dist/{vue-ui-carousel-table-D_dEXiNd.js → vue-ui-carousel-table-Dn3RZU0p.js} +4 -4
- package/dist/{vue-ui-chestnut-eCwEo5D9.js → vue-ui-chestnut-BIsXeXiU.js} +5 -5
- package/dist/{vue-ui-chord-C6O2lzrg.js → vue-ui-chord-BimXqVsF.js} +8 -8
- package/dist/{vue-ui-circle-pack-D_nwf-RO.js → vue-ui-circle-pack-DKQEhL-L.js} +13 -16
- package/dist/{vue-ui-cursor-Bu9PM_P_.js → vue-ui-cursor-C-P2D5i6.js} +3 -3
- package/dist/{vue-ui-dag-DSx4o3Rk.js → vue-ui-dag-CThnMMWA.js} +7 -7
- package/dist/{vue-ui-dashboard-BM747fZF.js → vue-ui-dashboard-D0NNTRO3.js} +69 -69
- package/dist/{vue-ui-digits-BtvY8wIB.js → vue-ui-digits-9tGjGzZh.js} +3 -3
- package/dist/{vue-ui-donut-DQHLJR8y.js → vue-ui-donut-DLN9uPOi.js} +2 -2
- package/dist/vue-ui-donut-EZu8p7HF.js +2413 -0
- package/dist/{vue-ui-donut-evolution-PSmZvtzE.js → vue-ui-donut-evolution-mu-iGTIn.js} +9 -9
- package/dist/{vue-ui-dumbbell-CGquzMdY.js → vue-ui-dumbbell-Dvldi3Oo.js} +13 -16
- package/dist/{vue-ui-flow-9el51M_Y.js → vue-ui-flow-DYZBT5Cb.js} +13 -16
- package/dist/{vue-ui-funnel-D7Gy--C2.js → vue-ui-funnel--NaxO0cZ.js} +13 -16
- package/dist/{vue-ui-galaxy-Dxj9UwDo.js → vue-ui-galaxy-D6eYN8Ut.js} +291 -293
- package/dist/{vue-ui-gauge-Cn9YVMXf.js → vue-ui-gauge-DTIEl2Xb.js} +6 -6
- package/dist/{vue-ui-geo-BPOiMgSG.js → vue-ui-geo-CQqNemR6.js} +7 -7
- package/dist/{vue-ui-gizmo-DWHHzGBD.js → vue-ui-gizmo-ClunTUxX.js} +3 -3
- package/dist/{vue-ui-heatmap-BE1K40ib.js → vue-ui-heatmap-B_pSQNzO.js} +7 -7
- package/dist/{vue-ui-hill-Dr4UkjNJ.js → vue-ui-hill-Byp0Tnny.js} +6 -6
- package/dist/{vue-ui-history-plot-CxCKkOf0.js → vue-ui-history-plot-CMu8ST1E.js} +14 -17
- package/dist/{vue-ui-horizontal-bar-BkmnLr-i.js → vue-ui-horizontal-bar-BQn7WxQ-.js} +10 -10
- package/dist/{vue-ui-kpi-BBWW791i.js → vue-ui-kpi-BKw5t-rX.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BNm0MQDw.js} +2 -2
- package/dist/{vue-ui-molecule-CxkcMjno.js → vue-ui-molecule-DRwQV5hN.js} +232 -238
- package/dist/{vue-ui-mood-radar-C4CzuVdT.js → vue-ui-mood-radar-Bj3KTWYj.js} +298 -300
- package/dist/{vue-ui-nested-donuts-DSDJQExL.js → vue-ui-nested-donuts-83Wh2w6z.js} +15 -18
- package/dist/{vue-ui-onion-Cu0dBdFS.js → vue-ui-onion-C27GpneA.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-D_EwS2Xg.js → vue-ui-parallel-coordinate-plot-BklOszr1.js} +212 -212
- package/dist/{vue-ui-quadrant-jyEV4UXd.js → vue-ui-quadrant-_J-Qr7-K.js} +9 -9
- package/dist/{vue-ui-quick-chart-DiWQ1MyR.js → vue-ui-quick-chart-DcOUq4ym.js} +7 -7
- package/dist/{vue-ui-radar-BmgJ961A.js → vue-ui-radar-FlRlsoAd.js} +8 -8
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-eCxEZD8C.js} +2 -2
- package/dist/{vue-ui-relation-circle-DV54YMDh.js → vue-ui-relation-circle-DnsxHv7t.js} +6 -6
- package/dist/{vue-ui-ridgeline-izSLMS2A.js → vue-ui-ridgeline-TopTLyaE.js} +485 -485
- package/dist/vue-ui-rings-obVfb09j.js +1250 -0
- package/dist/{vue-ui-scatter-D_qfVTjs.js → vue-ui-scatter-BHSuA506.js} +9 -9
- package/dist/{vue-ui-skeleton-ORnWxVcQ.js → vue-ui-skeleton-CNOam3kC.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-YdyidjBH.js} +2 -2
- package/dist/{vue-ui-spark-trend-CnWD2enH.js → vue-ui-spark-trend-CS5GLtYL.js} +3 -3
- package/dist/{vue-ui-sparkbar-Cgbnebde.js → vue-ui-sparkbar-DDHwgP4k.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cvlb65Sh.js → vue-ui-sparkgauge-BcQu9V3h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BiTJ8hLF.js → vue-ui-sparkhistogram-CPsA5P6c.js} +4 -4
- package/dist/{vue-ui-sparkline-D_lUtZ0M.js → vue-ui-sparkline-CnbO-GkM.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-44IKCY9x.js → vue-ui-sparkstackbar-4tsTxMe2.js} +4 -4
- package/dist/{vue-ui-stackbar-DF3p95Bo.js → vue-ui-stackbar-2_SrMFNT.js} +575 -571
- package/dist/{vue-ui-stackline-DhKuZEnZ.js → vue-ui-stackline-BNCWO_jG.js} +612 -608
- package/dist/{vue-ui-strip-plot-C-ulifjS.js → vue-ui-strip-plot-2Y1c02Ek.js} +13 -16
- package/dist/{vue-ui-table-CpnarLaC.js → vue-ui-table-DJZxHo5N.js} +5 -5
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-BacaEjQy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Du4MfWFg.js → vue-ui-table-sparkline-B8oAU5yr.js} +4 -4
- package/dist/{vue-ui-thermometer-CrbJmWkG.js → vue-ui-thermometer-BGtxNU9T.js} +6 -6
- package/dist/{vue-ui-timer-CG_cHMLa.js → vue-ui-timer-CWZgSpP8.js} +5 -5
- package/dist/{vue-ui-tiremarks-C9op3rMU.js → vue-ui-tiremarks-LLVCPyg9.js} +6 -6
- package/dist/{vue-ui-treemap-X6xvCAx5.js → vue-ui-treemap-ehBl9JMC.js} +16 -19
- package/dist/{vue-ui-waffle-CC8t5ghD.js → vue-ui-waffle-DpBAXbhh.js} +288 -290
- package/dist/{vue-ui-wheel-qsjBqrXG.js → vue-ui-wheel-C4OHPrtC.js} +6 -6
- package/dist/{vue-ui-word-cloud-PpZeiZUt.js → vue-ui-word-cloud-CDHn3Kwa.js} +13 -16
- package/dist/{vue-ui-world-CvLyEEZQ.js → vue-ui-world-ao1xf04I.js} +13 -16
- package/dist/{vue-ui-xy-eKIptvTV.js → vue-ui-xy-DmJDCl3c.js} +2 -2
- package/dist/{vue-ui-xy-BJ96qlGZ.js → vue-ui-xy-_U3wmtCf.js} +1502 -1496
- package/dist/{vue-ui-xy-canvas-B-KxaFGF.js → vue-ui-xy-canvas-Bx-9y53V.js} +334 -330
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Dspy8rjO.js +0 -1831
- package/dist/vue-ui-donut-DtmxMF94.js +0 -2415
- package/dist/vue-ui-rings-B-vqjj5N.js +0 -1252
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, Gt as i, Jt as a, Kt as o, M as s, Ot as c, P as l, Pt as u, S as d, St as f, V as p, Wt as m, X as h, _ as g, b as _, c as ee, ct as te, dt as ne, i as v, jt as re, ot as ie, pt as ae, q as oe, t as se, tt as ce, v as le, w as ue, xt as de, z as fe } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, Gt as i, Jt as a, Kt as o, M as s, Ot as c, P as l, Pt as u, S as d, St as f, V as p, Wt as m, X as h, _ as g, b as _, c as ee, ct as te, dt as ne, i as v, jt as re, ot as ie, pt as ae, q as oe, t as se, tt as ce, v as le, w as ue, xt as de, z as fe } from "./lib-AT2PUyyh.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { n as he, r as ge, t as _e } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
5
|
import { t as ve } from "./useConfig-DwdGsXTx.js";
|
|
6
|
-
import { t as ye } from "./usePrinter-
|
|
6
|
+
import { t as ye } from "./usePrinter-BFS7d6eb.js";
|
|
7
7
|
import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as Se } from "./useNestedProp-
|
|
8
|
+
import { t as Se } from "./useNestedProp-CW0vJS1B.js";
|
|
9
9
|
import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as we } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as Te } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as Ee } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as De } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as Oe } from "./img-
|
|
15
|
-
import { n as ke } from "./Title-
|
|
16
|
-
import { t as Ae } from "./Shape-
|
|
14
|
+
import { t as Oe } from "./img-tU9mMt9W.js";
|
|
15
|
+
import { n as ke } from "./Title-BGLPsoA9.js";
|
|
16
|
+
import { t as Ae } from "./Shape-BAhF1ToV.js";
|
|
17
17
|
import { t as je } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
18
18
|
import { l as Me, t as Ne } from "./useResponsive-ZtArZtUf.js";
|
|
19
19
|
import { t as Pe } from "./DefGrad-DVBqDjhO.js";
|
|
20
|
-
import { t as Fe } from "./SlicerPreview-
|
|
21
|
-
import { t as Ie } from "./BaseLegendToggle-
|
|
20
|
+
import { t as Fe } from "./SlicerPreview-sXtk2ZZ2.js";
|
|
21
|
+
import { t as Ie } from "./BaseLegendToggle-wRhcG_-q.js";
|
|
22
22
|
import { t as Le } from "./A11yDataTable-DdRsVULz.js";
|
|
23
23
|
import { t as Re } from "./useUserOptionState-DK-_1ddE.js";
|
|
24
24
|
import { t as ze } from "./useChartAccessibility-DYqac8yF.js";
|
|
25
|
-
import { t as Be } from "./Legend-
|
|
25
|
+
import { t as Be } from "./Legend-DWEFXq9E.js";
|
|
26
26
|
import { t as Ve } from "./vue_ui_stackline-DQqKPA9z.js";
|
|
27
|
-
import { Fragment as y, Teleport as He, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ue, createTextVNode as We, createVNode as Ge, defineAsyncComponent as Ke, guardReactiveProps as T, mergeProps as qe, nextTick as Je, normalizeClass as
|
|
27
|
+
import { Fragment as y, Teleport as He, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ue, createTextVNode as We, createVNode as Ge, defineAsyncComponent as Ke, guardReactiveProps as T, mergeProps as qe, nextTick as Je, normalizeClass as Ye, normalizeProps as E, normalizeStyle as Xe, onBeforeUnmount as Ze, onMounted as Qe, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as $e, shallowRef as et, toDisplayString as j, toRefs as tt, unref as M, useSlots as nt, watch as rt, watchEffect as it, withCtx as N } from "vue";
|
|
28
28
|
//#region src/components/vue-ui-stackline.vue
|
|
29
|
-
var
|
|
29
|
+
var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct = ["id"], lt = { style: { position: "relative" } }, ut = [
|
|
30
30
|
"aria-describedby",
|
|
31
31
|
"xmlns",
|
|
32
32
|
"viewBox"
|
|
33
|
-
],
|
|
33
|
+
], dt = { key: 0 }, ft = [
|
|
34
34
|
"x",
|
|
35
35
|
"y",
|
|
36
36
|
"width",
|
|
37
37
|
"height"
|
|
38
|
-
],
|
|
38
|
+
], pt = { key: 1 }, mt = [
|
|
39
39
|
"x1",
|
|
40
40
|
"x2",
|
|
41
41
|
"y1",
|
|
@@ -43,7 +43,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
43
43
|
"stroke",
|
|
44
44
|
"stroke-width",
|
|
45
45
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
46
|
+
], ht = [
|
|
47
47
|
"x1",
|
|
48
48
|
"x2",
|
|
49
49
|
"y1",
|
|
@@ -51,32 +51,32 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
51
51
|
"stroke",
|
|
52
52
|
"stroke-width",
|
|
53
53
|
"stroke-dasharray"
|
|
54
|
-
],
|
|
54
|
+
], gt = [
|
|
55
55
|
"x1",
|
|
56
56
|
"x2",
|
|
57
57
|
"y1",
|
|
58
58
|
"y2",
|
|
59
59
|
"stroke",
|
|
60
60
|
"stroke-width"
|
|
61
|
-
],
|
|
61
|
+
], _t = [
|
|
62
62
|
"x1",
|
|
63
63
|
"x2",
|
|
64
64
|
"y1",
|
|
65
65
|
"y2",
|
|
66
66
|
"stroke",
|
|
67
67
|
"stroke-width"
|
|
68
|
-
],
|
|
68
|
+
], vt = [
|
|
69
69
|
"x",
|
|
70
70
|
"y",
|
|
71
71
|
"font-size",
|
|
72
72
|
"fill",
|
|
73
73
|
"font-weight"
|
|
74
|
-
],
|
|
74
|
+
], yt = [
|
|
75
75
|
"transform",
|
|
76
76
|
"font-size",
|
|
77
77
|
"fill",
|
|
78
78
|
"font-weight"
|
|
79
|
-
],
|
|
79
|
+
], bt = [
|
|
80
80
|
"x",
|
|
81
81
|
"y",
|
|
82
82
|
"width",
|
|
@@ -86,47 +86,47 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
86
86
|
"stroke-linecap",
|
|
87
87
|
"stroke-linejoin",
|
|
88
88
|
"stroke-dasharray"
|
|
89
|
-
],
|
|
89
|
+
], xt = [
|
|
90
90
|
"d",
|
|
91
91
|
"fill",
|
|
92
92
|
"opacity"
|
|
93
|
-
],
|
|
93
|
+
], St = [
|
|
94
94
|
"d",
|
|
95
95
|
"stroke",
|
|
96
96
|
"stroke-width"
|
|
97
|
-
],
|
|
97
|
+
], Ct = [
|
|
98
98
|
"x1",
|
|
99
99
|
"x2",
|
|
100
100
|
"y1",
|
|
101
101
|
"y2",
|
|
102
102
|
"stroke"
|
|
103
|
-
],
|
|
103
|
+
], wt = [
|
|
104
104
|
"transform",
|
|
105
105
|
"font-size",
|
|
106
106
|
"font-weight",
|
|
107
107
|
"fill",
|
|
108
108
|
"text-anchor"
|
|
109
|
-
],
|
|
109
|
+
], Tt = { key: 0 }, Et = { key: 1 }, Dt = [
|
|
110
110
|
"text-anchor",
|
|
111
111
|
"font-size",
|
|
112
112
|
"font-weight",
|
|
113
113
|
"fill",
|
|
114
114
|
"transform",
|
|
115
115
|
"onClick"
|
|
116
|
-
],
|
|
116
|
+
], Ot = [
|
|
117
117
|
"text-anchor",
|
|
118
118
|
"font-size",
|
|
119
119
|
"fill",
|
|
120
120
|
"transform",
|
|
121
121
|
"innerHTML",
|
|
122
122
|
"onClick"
|
|
123
|
-
],
|
|
123
|
+
], kt = [
|
|
124
124
|
"x",
|
|
125
125
|
"y",
|
|
126
126
|
"height",
|
|
127
127
|
"width",
|
|
128
128
|
"fill"
|
|
129
|
-
],
|
|
129
|
+
], At = { key: 0 }, jt = [
|
|
130
130
|
"x1",
|
|
131
131
|
"x2",
|
|
132
132
|
"y1",
|
|
@@ -134,17 +134,17 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
134
134
|
"stroke",
|
|
135
135
|
"stroke-width",
|
|
136
136
|
"stroke-dasharray"
|
|
137
|
-
],
|
|
137
|
+
], Mt = { key: 0 }, Nt = [
|
|
138
138
|
"transform",
|
|
139
139
|
"font-size",
|
|
140
140
|
"fill",
|
|
141
141
|
"font-weight"
|
|
142
|
-
],
|
|
142
|
+
], Pt = [
|
|
143
143
|
"transform",
|
|
144
144
|
"font-size",
|
|
145
145
|
"font-weight",
|
|
146
146
|
"fill"
|
|
147
|
-
],
|
|
147
|
+
], Ft = ["data-start", "data-end"], It = {
|
|
148
148
|
key: 0,
|
|
149
149
|
style: {
|
|
150
150
|
position: "absolute",
|
|
@@ -154,10 +154,10 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
154
154
|
},
|
|
155
155
|
"data-dom-to-png-ignore": "",
|
|
156
156
|
"aria-hidden": "true"
|
|
157
|
-
},
|
|
157
|
+
}, Lt = {
|
|
158
158
|
key: 5,
|
|
159
159
|
class: "vue-data-ui-watermark"
|
|
160
|
-
},
|
|
160
|
+
}, Rt = ["onClick"], zt = { key: 0 }, Bt = { key: 1 }, Vt = ["innerHTML"], Ht = ["id"], Ut = /*#__PURE__*/ je({
|
|
161
161
|
__name: "vue-ui-stackline",
|
|
162
162
|
props: {
|
|
163
163
|
config: {
|
|
@@ -184,52 +184,52 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
184
184
|
"selectX",
|
|
185
185
|
"copyAlt"
|
|
186
186
|
],
|
|
187
|
-
setup(e, { expose: je, emit:
|
|
188
|
-
let
|
|
187
|
+
setup(e, { expose: je, emit: at }) {
|
|
188
|
+
let Ut = Ke(() => import("./Tooltip-DO4-MVhc.js")), Wt = Ke(() => import("./BaseIcon-B4n7br_R.js").then((e) => e.n)), Gt = Ke(() => import("./vue-ui-accordion-DJNjilyy.js").then((e) => e.n)), Kt = Ke(() => import("./DataTable-DMsScfkx.js")), qt = Ke(() => import("./PenAndPaper-DJ607Hx6.js").then((e) => e.t)), Jt = Ke(() => import("./UserOptions-HQyukyl2.js").then((e) => e.n)), Yt = Ke(() => import("./PackageVersion-DNTJUKh1.js").then((e) => e.t)), Xt = Ke(() => import("./BaseDraggableDialog-DBVHlhQZ.js").then((e) => e.n)), { vue_ui_stackline: Zt } = ve(), { isThemeValid: Qt, warnInvalidTheme: $t } = Ce(), en = nt(), P = e, tn = at, nn = b({
|
|
189
189
|
get() {
|
|
190
|
-
return !!
|
|
190
|
+
return !!P.dataset && P.dataset.length;
|
|
191
191
|
},
|
|
192
192
|
set(e) {
|
|
193
193
|
return e;
|
|
194
194
|
}
|
|
195
|
-
}),
|
|
195
|
+
}), F = O(null), I = O(oe()), rn = O(!1), L = O([]), an = O(0), on = O(null), sn = O(null), cn = O(null), ln = O(null), un = O(null), dn = O(!1), fn = O(!1), pn = O(0), mn = O(0), hn = O(0), gn = O(!1), _n = O(null), vn = O(null), yn = O(!1), bn = O(null), xn = O(null), Sn = O(null), Cn = O(null), wn = O(null), Tn = et(null), En = O(!1), Dn = O(0), On = O(0), R = O(null), kn = O({
|
|
196
196
|
x: 0,
|
|
197
197
|
y: 0
|
|
198
|
-
}),
|
|
199
|
-
elementRef:
|
|
198
|
+
}), An = O("pointer"), jn = Ee({
|
|
199
|
+
elementRef: Tn,
|
|
200
200
|
minimumWidth: 2,
|
|
201
201
|
minimumHeight: 2,
|
|
202
202
|
stableFramesRequired: 2,
|
|
203
203
|
once: !1,
|
|
204
204
|
onSizeAccepted: () => {
|
|
205
|
-
|
|
205
|
+
Pn();
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
function jn() {
|
|
209
|
-
wn.value = tn.value?.parentNode ?? null;
|
|
210
|
-
}
|
|
211
208
|
function Mn() {
|
|
209
|
+
Tn.value = F.value?.parentNode ?? null;
|
|
210
|
+
}
|
|
211
|
+
function Nn() {
|
|
212
212
|
return new Promise((e) => {
|
|
213
213
|
requestAnimationFrame(() => {
|
|
214
214
|
requestAnimationFrame(e);
|
|
215
215
|
});
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
async function
|
|
219
|
-
let e = ++
|
|
220
|
-
|
|
218
|
+
async function Pn() {
|
|
219
|
+
let e = ++On.value;
|
|
220
|
+
En.value = !1, await Je(), await Nn(), await Nn(), e === On.value && (Dn.value += 1, En.value = !0);
|
|
221
221
|
}
|
|
222
|
-
let
|
|
223
|
-
function
|
|
224
|
-
|
|
222
|
+
let Fn = O(null), In = O(!1);
|
|
223
|
+
function Ln() {
|
|
224
|
+
In.value = !In.value;
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
Qe(() => {
|
|
227
|
+
Mn(), jn.start(), gn.value = !0, sr(), Pn();
|
|
228
228
|
});
|
|
229
|
-
let z =
|
|
229
|
+
let z = O(Jn());
|
|
230
230
|
pe({
|
|
231
231
|
config: () => z.value,
|
|
232
|
-
dataset: () =>
|
|
232
|
+
dataset: () => P.dataset,
|
|
233
233
|
component: "VueUiStackline",
|
|
234
234
|
rules: [
|
|
235
235
|
me.emptyArray,
|
|
@@ -255,10 +255,10 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
255
255
|
}
|
|
256
256
|
]
|
|
257
257
|
});
|
|
258
|
-
let { transitionEnabled:
|
|
258
|
+
let { transitionEnabled: Rn } = Te({
|
|
259
259
|
config: () => z.value.transitions,
|
|
260
|
-
dataset: () =>
|
|
261
|
-
}), B = b(() => z.value.userOptions.useCursorPointer),
|
|
260
|
+
dataset: () => P.dataset
|
|
261
|
+
}), B = b(() => z.value.userOptions.useCursorPointer), zn = b(() => a({
|
|
262
262
|
defaultConfig: {
|
|
263
263
|
userOptions: { show: !1 },
|
|
264
264
|
useCssAnimation: !1,
|
|
@@ -304,16 +304,16 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
304
304
|
} }
|
|
305
305
|
},
|
|
306
306
|
userConfig: z.value.skeletonConfig ?? {}
|
|
307
|
-
})), { loading:
|
|
308
|
-
...
|
|
307
|
+
})), { loading: Bn, FINAL_DATASET: Vn, manualLoading: Hn } = be({
|
|
308
|
+
...tt(P),
|
|
309
309
|
FINAL_CONFIG: z,
|
|
310
|
-
prepareConfig:
|
|
310
|
+
prepareConfig: Jn,
|
|
311
311
|
callback: () => {
|
|
312
312
|
Promise.resolve().then(async () => {
|
|
313
|
-
(!z.value.style.chart.zoom.keepState ||
|
|
313
|
+
(!z.value.style.chart.zoom.keepState || !$r.value || q.value.start === 0 && q.value.end === 0) && await ti();
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
|
-
skeletonDataset:
|
|
316
|
+
skeletonDataset: P.config?.skeletonDataset ?? [{
|
|
317
317
|
name: "",
|
|
318
318
|
series: [
|
|
319
319
|
3,
|
|
@@ -346,33 +346,33 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
346
346
|
}],
|
|
347
347
|
skeletonConfig: a({
|
|
348
348
|
defaultConfig: z.value,
|
|
349
|
-
userConfig:
|
|
349
|
+
userConfig: zn.value
|
|
350
350
|
})
|
|
351
|
-
}), { userOptionsVisible:
|
|
352
|
-
function Gn() {
|
|
353
|
-
vn.value = !0, Un(!0);
|
|
354
|
-
}
|
|
351
|
+
}), { userOptionsVisible: Un, setUserOptionsVisibility: Wn, keepUserOptionState: Gn } = Re({ config: z.value }), { svgRef: V } = ze({ config: z.value.style.chart.title });
|
|
355
352
|
function Kn() {
|
|
356
|
-
|
|
353
|
+
yn.value = !0, Wn(!0);
|
|
354
|
+
}
|
|
355
|
+
function qn() {
|
|
356
|
+
Wn(!1), yn.value = !1, R.value = null, An.value = "pointer", rn.value = !1, $.value = null, tn("selectX", {
|
|
357
357
|
index: null,
|
|
358
358
|
indexLabel: null,
|
|
359
359
|
dataset: null
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Jn() {
|
|
363
363
|
let e = Se({
|
|
364
|
-
userConfig:
|
|
365
|
-
defaultConfig:
|
|
364
|
+
userConfig: P.config,
|
|
365
|
+
defaultConfig: Zt
|
|
366
366
|
}), t = {}, n = e.theme;
|
|
367
|
-
if (n) if (!
|
|
367
|
+
if (n) if (!Qt.value(e)) $t(e), t = e;
|
|
368
368
|
else {
|
|
369
369
|
let r = Se({
|
|
370
|
-
userConfig: Ve[n] ||
|
|
370
|
+
userConfig: Ve[n] || P.config,
|
|
371
371
|
defaultConfig: e
|
|
372
372
|
});
|
|
373
373
|
t = {
|
|
374
374
|
...Se({
|
|
375
|
-
userConfig:
|
|
375
|
+
userConfig: P.config,
|
|
376
376
|
defaultConfig: r
|
|
377
377
|
}),
|
|
378
378
|
customPalette: e.customPalette.length ? e.customPalette : o[n] || u
|
|
@@ -381,34 +381,34 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
381
381
|
else t = e;
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
|
-
let
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
let Yn = b(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Xn = b(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
385
|
+
rt(() => P.config, (e) => {
|
|
386
|
+
Bn.value || (z.value = Jn()), Un.value = !z.value.userOptions.showOnChartHover, sr({ resetSlicer: !z.value.style.chart.zoom.keepState }), pn.value += 1, mn.value += 1, hn.value += 1, H.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, U.value.width = z.value.style.chart.width, U.value.height = z.value.style.chart.height, U.value.paddingRatio = {
|
|
387
387
|
top: z.value.style.chart.padding.top / z.value.style.chart.height,
|
|
388
388
|
right: z.value.style.chart.padding.right / z.value.style.chart.width,
|
|
389
389
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
390
390
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
391
|
-
},
|
|
392
|
-
}, { deep: !0 }),
|
|
393
|
-
Array.isArray(e) && e.length > 0 && (
|
|
391
|
+
}, Mn(), Pn(), !z.value.style.chart.zoom.keepState || !$r.value || q.value.start === 0 && q.value.end === 0 ? ti() : Cr();
|
|
392
|
+
}, { deep: !0 }), rt(() => P.dataset, (e) => {
|
|
393
|
+
Array.isArray(e) && e.length > 0 && (Hn.value = !1), z.value.style.chart.zoom.keepState ? Cr() : Er(), Mn(), Pn();
|
|
394
394
|
}, { deep: !0 });
|
|
395
|
-
let H =
|
|
395
|
+
let H = O({
|
|
396
396
|
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
397
397
|
showTable: z.value.table.show,
|
|
398
398
|
showTooltip: z.value.style.chart.tooltip.show
|
|
399
399
|
});
|
|
400
|
-
|
|
400
|
+
rt(z, () => {
|
|
401
401
|
H.value = {
|
|
402
402
|
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
403
403
|
showTable: z.value.table.show,
|
|
404
404
|
showTooltip: z.value.style.chart.tooltip.show
|
|
405
405
|
};
|
|
406
406
|
}, { immediate: !0 });
|
|
407
|
-
let { isPrinting:
|
|
407
|
+
let { isPrinting: Zn, isImaging: Qn, generatePdf: $n, generateImage: er } = ye({
|
|
408
408
|
elementId: `stackline_${I.value}`,
|
|
409
409
|
fileName: z.value.style.chart.title.text || "vue-ui-stackline",
|
|
410
410
|
options: z.value.userOptions.print
|
|
411
|
-
}),
|
|
411
|
+
}), tr = b(() => z.value.userOptions.show && !z.value.style.chart.title.text), U = O({
|
|
412
412
|
width: z.value.style.chart.width,
|
|
413
413
|
height: z.value.style.chart.height,
|
|
414
414
|
paddingRatio: {
|
|
@@ -417,107 +417,107 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
417
417
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
418
418
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
419
419
|
}
|
|
420
|
-
}),
|
|
421
|
-
function
|
|
422
|
-
if (re(
|
|
420
|
+
}), nr = b(() => ue(z.value.customPalette)), rr = et(null), ir = et(null), ar = O(null), or = b(() => z.value.debug);
|
|
421
|
+
function sr({ resetSlicer: e = !0 } = {}) {
|
|
422
|
+
if (re(P.dataset) ? (ce({
|
|
423
423
|
componentName: "VueUiStackline",
|
|
424
424
|
type: "dataset",
|
|
425
|
-
debug:
|
|
426
|
-
}),
|
|
425
|
+
debug: or.value
|
|
426
|
+
}), Hn.value = !0) : P.dataset.forEach((e, t) => {
|
|
427
427
|
ae({
|
|
428
428
|
datasetObject: e,
|
|
429
429
|
requiredAttributes: ["name", "series"]
|
|
430
430
|
}).forEach((e) => {
|
|
431
|
-
|
|
431
|
+
nn.value = !1, ce({
|
|
432
432
|
componentName: "VueUiStackline",
|
|
433
433
|
type: "datasetSerieAttribute",
|
|
434
434
|
property: e,
|
|
435
435
|
index: t,
|
|
436
|
-
debug:
|
|
437
|
-
}),
|
|
436
|
+
debug: or.value
|
|
437
|
+
}), Hn.value = !0;
|
|
438
438
|
});
|
|
439
|
-
}), re(
|
|
440
|
-
|
|
439
|
+
}), re(P.dataset) || (Hn.value = z.value.loading), setTimeout(() => {
|
|
440
|
+
fn.value = !0;
|
|
441
441
|
}, 10), z.value.responsive) {
|
|
442
442
|
let e = Me(() => {
|
|
443
|
-
|
|
443
|
+
fn.value = !1;
|
|
444
444
|
let { width: e, height: t } = Ne({
|
|
445
|
-
chart:
|
|
446
|
-
noTitle:
|
|
447
|
-
title: z.value.style.chart.title.text ?
|
|
448
|
-
legend: z.value.style.chart.legend.show ?
|
|
449
|
-
slicer: z.value.style.chart.zoom.show && K.value > 6 ?
|
|
450
|
-
source:
|
|
445
|
+
chart: F.value,
|
|
446
|
+
noTitle: ln.value,
|
|
447
|
+
title: z.value.style.chart.title.text ? on.value : null,
|
|
448
|
+
legend: z.value.style.chart.legend.show ? sn.value : null,
|
|
449
|
+
slicer: z.value.style.chart.zoom.show && K.value > 6 ? cn.value.$el : null,
|
|
450
|
+
source: un.value
|
|
451
451
|
});
|
|
452
452
|
requestAnimationFrame(() => {
|
|
453
|
-
U.value.width = e, U.value.height = t - 12, clearTimeout(
|
|
454
|
-
|
|
453
|
+
U.value.width = e, U.value.height = t - 12, clearTimeout(ar.value), ar.value = setTimeout(() => {
|
|
454
|
+
fn.value = !0;
|
|
455
455
|
}, 10);
|
|
456
456
|
});
|
|
457
457
|
});
|
|
458
|
-
|
|
458
|
+
rr.value && (ir.value && rr.value.unobserve(ir.value), rr.value.disconnect()), rr.value = new ResizeObserver(e), ir.value = F.value.parentNode, rr.value.observe(ir.value);
|
|
459
459
|
}
|
|
460
|
-
e &&
|
|
460
|
+
e && ti();
|
|
461
461
|
}
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
Ze(() => {
|
|
463
|
+
jn.stop(), rr.value && (ir.value && rr.value.unobserve(ir.value), rr.value.disconnect());
|
|
464
464
|
});
|
|
465
|
-
let
|
|
466
|
-
function
|
|
465
|
+
let cr = b(() => z.value.style.chart.grid.y.position === "right");
|
|
466
|
+
function lr() {
|
|
467
467
|
let e = 0;
|
|
468
|
-
|
|
468
|
+
Sn.value && (e = Array.from(Sn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
469
469
|
let n = t.getComputedTextLength();
|
|
470
470
|
return n > e ? n : e;
|
|
471
471
|
}, 0));
|
|
472
|
-
let t =
|
|
472
|
+
let t = xn.value ? xn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
473
473
|
return {
|
|
474
|
-
left:
|
|
475
|
-
right:
|
|
474
|
+
left: cr.value ? 0 : e + t,
|
|
475
|
+
right: cr.value ? e + t : 0,
|
|
476
476
|
scaleLabelsWidth: e,
|
|
477
477
|
yAxisLabelWidth: t
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
let
|
|
481
|
-
function
|
|
482
|
-
let e =
|
|
480
|
+
let ur = O(0), dr = O(0), fr = O(0);
|
|
481
|
+
function pr() {
|
|
482
|
+
let e = Cn.value;
|
|
483
483
|
if (!e) {
|
|
484
|
-
|
|
484
|
+
dr.value = 0;
|
|
485
485
|
return;
|
|
486
486
|
}
|
|
487
487
|
try {
|
|
488
488
|
let t = e.getBBox();
|
|
489
|
-
|
|
489
|
+
dr.value = Number.isFinite(t?.height) ? t.height : 0;
|
|
490
490
|
} catch {
|
|
491
|
-
|
|
491
|
+
dr.value = 0;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
|
|
494
|
+
function mr() {
|
|
495
|
+
fr.value && cancelAnimationFrame(fr.value), fr.value = requestAnimationFrame(() => {
|
|
496
496
|
requestAnimationFrame(() => {
|
|
497
|
-
|
|
497
|
+
pr();
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
Ze(() => {
|
|
502
|
+
fr.value && cancelAnimationFrame(fr.value), dr.value = 0, ur.value = 0;
|
|
503
503
|
});
|
|
504
|
-
let
|
|
504
|
+
let hr = b(() => {
|
|
505
505
|
let e = 0;
|
|
506
|
-
if (
|
|
507
|
-
e =
|
|
506
|
+
if (bn.value) try {
|
|
507
|
+
e = bn.value.getBBox().height;
|
|
508
508
|
} catch {
|
|
509
509
|
e = 0;
|
|
510
510
|
}
|
|
511
|
-
let t = z.value.style.chart.grid.x.timeLabels.show ?
|
|
511
|
+
let t = z.value.style.chart.grid.x.timeLabels.show ? dr.value : 0;
|
|
512
512
|
return e + t;
|
|
513
513
|
}), W = b(() => {
|
|
514
|
-
|
|
515
|
-
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show &&
|
|
514
|
+
Dn.value;
|
|
515
|
+
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && P.dataset && P.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
|
|
516
516
|
if (z.value.style.chart.grid.y.axisLabels.show) {
|
|
517
|
-
let e =
|
|
517
|
+
let e = lr();
|
|
518
518
|
i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
|
|
519
519
|
}
|
|
520
|
-
let c = z.value.style.chart.padding.top + r, l = t - t * n -
|
|
520
|
+
let c = z.value.style.chart.padding.top + r, l = t - t * n - ur.value - a, u = e - z.value.style.chart.padding.bottom - hr.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - ur.value - a, p = e - c - z.value.style.chart.padding.bottom - hr.value - r;
|
|
521
521
|
return {
|
|
522
522
|
chartHeight: Math.max(0, e),
|
|
523
523
|
chartWidth: Math.max(0, t),
|
|
@@ -532,7 +532,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
532
532
|
scaleLabelsWidth: o,
|
|
533
533
|
yAxisLabelWidth: s
|
|
534
534
|
};
|
|
535
|
-
}),
|
|
535
|
+
}), gr = b(() => {
|
|
536
536
|
let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
|
|
537
537
|
fill: z.value.style.chart.zoom.preview.fill,
|
|
538
538
|
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
@@ -553,8 +553,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
553
553
|
height: r,
|
|
554
554
|
...u
|
|
555
555
|
};
|
|
556
|
-
}), G = b(() =>
|
|
557
|
-
let n = oe(), r = d(e.color) ||
|
|
556
|
+
}), G = b(() => Vn.value.map((e, t) => {
|
|
557
|
+
let n = oe(), r = d(e.color) || nr.value[t] || u[t] || u[t % u.length];
|
|
558
558
|
return {
|
|
559
559
|
...e,
|
|
560
560
|
shape: e.shape || "circle",
|
|
@@ -566,66 +566,66 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
566
566
|
id: n,
|
|
567
567
|
color: r
|
|
568
568
|
};
|
|
569
|
-
})),
|
|
569
|
+
})), _r = b(() => G.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), vr = b(() => G.value.filter((e) => !L.value.includes(e.id) && e.standalone)), K = b(() => {
|
|
570
570
|
let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
|
|
571
571
|
return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
|
|
572
572
|
});
|
|
573
|
-
function
|
|
574
|
-
|
|
573
|
+
function yr(e) {
|
|
574
|
+
Fn.value = e;
|
|
575
575
|
}
|
|
576
|
-
let q =
|
|
576
|
+
let q = O({
|
|
577
577
|
start: 0,
|
|
578
|
-
end: Math.max(...
|
|
579
|
-
}), J =
|
|
578
|
+
end: Math.max(...Vn.value.map((e) => e.series.length))
|
|
579
|
+
}), J = O({
|
|
580
580
|
start: 0,
|
|
581
|
-
end: Math.max(...
|
|
581
|
+
end: Math.max(...Vn.value.map((e) => e.series.length))
|
|
582
582
|
});
|
|
583
|
-
function
|
|
583
|
+
function br(e) {
|
|
584
584
|
return (q.value.start ?? 0) + (e ?? 0);
|
|
585
585
|
}
|
|
586
|
-
let
|
|
587
|
-
function
|
|
586
|
+
let xr = b(() => z.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
|
|
587
|
+
function Sr(e, t) {
|
|
588
588
|
J.value[e] = t;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Cr() {
|
|
591
591
|
let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
|
|
592
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n,
|
|
592
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, cn.value && (cn.value.setStartValue(t), cn.value.setEndValue(n));
|
|
593
593
|
}
|
|
594
|
-
let
|
|
595
|
-
function
|
|
594
|
+
let wr = O(null);
|
|
595
|
+
function Tr() {
|
|
596
596
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
597
597
|
}
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
Ze(() => {
|
|
599
|
+
wr.value && cancelAnimationFrame(wr.value);
|
|
600
600
|
});
|
|
601
|
-
async function
|
|
602
|
-
if (z.value.style.chart.zoom.keepState && !e &&
|
|
603
|
-
|
|
601
|
+
async function Er({ force: e = !1 } = {}) {
|
|
602
|
+
if (z.value.style.chart.zoom.keepState && !e && $r.value && (q.value.start !== 0 || q.value.end !== 0)) {
|
|
603
|
+
Cr();
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
|
|
607
|
-
await
|
|
606
|
+
ti(), await Je(), wr.value && cancelAnimationFrame(wr.value), wr.value = requestAnimationFrame(async () => {
|
|
607
|
+
await Tr(), ti();
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
let
|
|
610
|
+
let Dr = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Or = b(() => m(_r.value.map((e) => ({
|
|
611
611
|
...e,
|
|
612
612
|
series: e.series.map((e) => e ?? 0)
|
|
613
|
-
}))).slice(q.value.start, q.value.end)),
|
|
613
|
+
}))).slice(q.value.start, q.value.end)), kr = b(() => L.value.length === G.value.length), Ar = b(() => {
|
|
614
614
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
615
|
-
let e = G.value.filter((e) =>
|
|
615
|
+
let e = G.value.filter((e) => kr.value ? !0 : !L.value.includes(e.id) && !e.standalone);
|
|
616
616
|
if (e.length) return m(e.map((e) => ({
|
|
617
617
|
...e,
|
|
618
618
|
series: (e.series || []).map((e) => e ?? 0)
|
|
619
619
|
})));
|
|
620
|
-
let t =
|
|
620
|
+
let t = vr.value;
|
|
621
621
|
if (!t.length) return [];
|
|
622
622
|
let n = Math.max(...t.map((e) => e.series.length || 0));
|
|
623
623
|
return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
|
|
624
|
-
}),
|
|
624
|
+
}), jr = b(() => {
|
|
625
625
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
626
|
-
let e = G.value.filter((e) =>
|
|
626
|
+
let e = G.value.filter((e) => kr.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = vr.value, n = e.length ? [{
|
|
627
627
|
name: "",
|
|
628
|
-
series:
|
|
628
|
+
series: Ar.value,
|
|
629
629
|
color: "#000000",
|
|
630
630
|
isVisible: !0
|
|
631
631
|
}] : [], r = t.map((e) => ({
|
|
@@ -635,14 +635,14 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
635
635
|
isVisible: !0
|
|
636
636
|
}));
|
|
637
637
|
return n.concat(r);
|
|
638
|
-
}),
|
|
638
|
+
}), Mr = b(() => m(_r.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
|
|
639
639
|
...e,
|
|
640
640
|
series: e.series.map((t, n) => {
|
|
641
641
|
let r = t ?? 0;
|
|
642
642
|
return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
|
|
643
643
|
})
|
|
644
|
-
}))).slice(q.value.start, q.value.end)),
|
|
645
|
-
let e =
|
|
644
|
+
}))).slice(q.value.start, q.value.end)), Nr = b(() => {
|
|
645
|
+
let e = _r.value.filter((e) => !L.value.includes(e.id));
|
|
646
646
|
return {
|
|
647
647
|
positive: m(e.map((e) => ({
|
|
648
648
|
...e,
|
|
@@ -653,9 +653,9 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
653
653
|
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
654
654
|
})))
|
|
655
655
|
};
|
|
656
|
-
}),
|
|
656
|
+
}), Pr = b(() => {
|
|
657
657
|
let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
|
|
658
|
-
return
|
|
658
|
+
return vr.value.forEach((r) => {
|
|
659
659
|
for (let i = 0; i < e; i += 1) {
|
|
660
660
|
let e = r.series[q.value.start + i] ?? 0;
|
|
661
661
|
e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
|
|
@@ -664,16 +664,16 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
664
664
|
positive: t,
|
|
665
665
|
negative: n
|
|
666
666
|
};
|
|
667
|
-
}),
|
|
667
|
+
}), Fr = b(() => Mr.value.map((e, t) => ({
|
|
668
668
|
value: e,
|
|
669
669
|
sign: e >= 0 ? 1 : -1
|
|
670
670
|
})));
|
|
671
|
-
function
|
|
672
|
-
return { y0:
|
|
671
|
+
function Ir() {
|
|
672
|
+
return { y0: Rr.value?.[0]?.zero ?? W.value.bottom };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let { y0: t } =
|
|
676
|
-
if ((
|
|
674
|
+
function Lr(e) {
|
|
675
|
+
let { y0: t } = Ir(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
|
|
676
|
+
if ((Fr.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
|
|
677
677
|
let n = Infinity;
|
|
678
678
|
for (let t of Y.value || []) {
|
|
679
679
|
let r = t?.series?.[e], i = t?.topY?.[e];
|
|
@@ -690,8 +690,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
690
690
|
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + z.value.style.chart.lines.totalValues.offsetY);
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
let
|
|
694
|
-
let e = Math.max(...
|
|
693
|
+
let Rr = b(() => {
|
|
694
|
+
let e = Math.max(...Nr.value.positive, 0), t = Math.min(...Nr.value.negative, 0), n = Math.max(...Pr.value.positive, 0), r = Math.min(...Pr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
|
|
695
695
|
-Infinity,
|
|
696
696
|
Infinity,
|
|
697
697
|
NaN,
|
|
@@ -703,13 +703,13 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
703
703
|
return {
|
|
704
704
|
zero: ee,
|
|
705
705
|
y: n,
|
|
706
|
-
x:
|
|
706
|
+
x: cr.value ? X.value.right + 8 : X.value.left - 8,
|
|
707
707
|
value: t
|
|
708
708
|
};
|
|
709
709
|
});
|
|
710
|
-
}),
|
|
711
|
-
|
|
712
|
-
let e = ++
|
|
710
|
+
}), zr = O([]), Br = O([]), Vr = 0;
|
|
711
|
+
it(() => {
|
|
712
|
+
let e = ++Vr;
|
|
713
713
|
(async () => {
|
|
714
714
|
let t = await _e({
|
|
715
715
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -718,12 +718,12 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
718
718
|
start: q.value.start,
|
|
719
719
|
end: q.value.end
|
|
720
720
|
});
|
|
721
|
-
e ===
|
|
721
|
+
e === Vr && (zr.value = t);
|
|
722
722
|
})();
|
|
723
723
|
});
|
|
724
|
-
let
|
|
725
|
-
|
|
726
|
-
let e = ++
|
|
724
|
+
let Hr = 0;
|
|
725
|
+
it(() => {
|
|
726
|
+
let e = ++Hr;
|
|
727
727
|
(async () => {
|
|
728
728
|
let t = await _e({
|
|
729
729
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -732,55 +732,55 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
732
732
|
start: 0,
|
|
733
733
|
end: K.value
|
|
734
734
|
});
|
|
735
|
-
e ===
|
|
735
|
+
e === Hr && (Br.value = t);
|
|
736
736
|
})();
|
|
737
737
|
});
|
|
738
|
-
let
|
|
738
|
+
let Ur = b(() => {
|
|
739
739
|
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
740
|
-
return
|
|
741
|
-
}),
|
|
742
|
-
let e = z.value.style.chart.grid.x.timeLabels, t =
|
|
743
|
-
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
740
|
+
return zr.value.length ? Math.min(e, [...new Set(zr.value.map((e) => e.text))].length) : e;
|
|
741
|
+
}), Wr = b(() => {
|
|
742
|
+
let e = z.value.style.chart.grid.x.timeLabels, t = zr.value || [], n = Br.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
743
|
+
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Ur.value || 1), o, s, r, i, a);
|
|
744
744
|
});
|
|
745
|
-
|
|
746
|
-
z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (
|
|
745
|
+
it(() => {
|
|
746
|
+
z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Wr.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Cn.value, bn.value, mr();
|
|
747
747
|
}, { flush: "post" });
|
|
748
|
-
let
|
|
748
|
+
let Gr = O({
|
|
749
749
|
months: [],
|
|
750
750
|
shortMonths: [],
|
|
751
751
|
days: [],
|
|
752
752
|
shortDays: []
|
|
753
|
-
}),
|
|
754
|
-
|
|
755
|
-
let e = ++
|
|
753
|
+
}), Kr = 0;
|
|
754
|
+
it(() => {
|
|
755
|
+
let e = ++Kr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
756
756
|
(async () => {
|
|
757
757
|
let n = await ge(t.locale).catch(() => ge("en"));
|
|
758
|
-
e ===
|
|
758
|
+
e === Kr && (Gr.value = n.data);
|
|
759
759
|
})();
|
|
760
760
|
});
|
|
761
|
-
let
|
|
761
|
+
let qr = b(() => {
|
|
762
762
|
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = he({
|
|
763
763
|
useUTC: e.useUTC,
|
|
764
|
-
locale:
|
|
764
|
+
locale: Gr.value,
|
|
765
765
|
januaryAsYear: e.januaryAsYear
|
|
766
766
|
});
|
|
767
767
|
return (e, n) => {
|
|
768
768
|
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
769
769
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
770
770
|
};
|
|
771
|
-
}),
|
|
772
|
-
text:
|
|
771
|
+
}), Jr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
772
|
+
text: qr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
773
773
|
absoluteIndex: t
|
|
774
|
-
}))),
|
|
775
|
-
text:
|
|
774
|
+
}))), Yr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
775
|
+
text: qr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
776
776
|
absoluteIndex: t
|
|
777
|
-
}))),
|
|
778
|
-
if (!
|
|
779
|
-
let e = W.value.height, t =
|
|
777
|
+
}))), Xr = b(() => {
|
|
778
|
+
if (!nn.value && !Bn.value) return [];
|
|
779
|
+
let e = W.value.height, t = Rr.value[0] ? Rr.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Nr.value.positive, 0), o = Math.min(...Nr.value.negative, 0), s = Math.max(...Pr.value.positive, 0), c = Math.min(...Pr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), _ = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
|
|
780
780
|
return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
|
|
781
781
|
let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
|
|
782
782
|
for (let u = 0; u < i; u += 1) {
|
|
783
|
-
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (
|
|
783
|
+
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (Or.value[u] || 1) : g / p;
|
|
784
784
|
if (g >= 0) {
|
|
785
785
|
let n = e * Math.abs(_);
|
|
786
786
|
if (r.standalone) c[u] = t, l[u] = t - n;
|
|
@@ -803,7 +803,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
803
803
|
y: l[e]
|
|
804
804
|
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), g = f === 0 ? 1 : f, ee = o.map((e, t) => {
|
|
805
805
|
if (z.value.style.chart.lines.distributed && !r.standalone) {
|
|
806
|
-
let n = a[t], r =
|
|
806
|
+
let n = a[t], r = Or.value[n] || 1;
|
|
807
807
|
return (e || 0) / r;
|
|
808
808
|
}
|
|
809
809
|
return (e || 0) / g;
|
|
@@ -822,14 +822,14 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
822
822
|
};
|
|
823
823
|
});
|
|
824
824
|
}), Y = b(() => {
|
|
825
|
-
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...
|
|
825
|
+
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Nr.value.positive, 0), n = Math.min(...Nr.value.negative, 0), r = Math.max(...Pr.value.positive, 0), i = Math.min(...Pr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), s = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), c = Number(s.min) || 0, u = Number(s.max) || 0, d = Math.abs(c), f = u + d || 1, m = (e) => {
|
|
826
826
|
if (z.value.style.chart.lines.distributed) {
|
|
827
827
|
let t = Math.max(0, Math.min(1, e));
|
|
828
828
|
return minimapH - minimapH * t;
|
|
829
829
|
}
|
|
830
830
|
return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
|
|
831
831
|
};
|
|
832
|
-
return
|
|
832
|
+
return Xr.value.map((t) => {
|
|
833
833
|
let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
|
|
834
834
|
let n = r.length;
|
|
835
835
|
return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
|
|
@@ -872,67 +872,67 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
872
872
|
yMinimapBase: o
|
|
873
873
|
};
|
|
874
874
|
});
|
|
875
|
-
}),
|
|
876
|
-
timeLabel:
|
|
875
|
+
}), Zr = b(() => $.value === null || $.value === void 0 ? null : {
|
|
876
|
+
timeLabel: vi($.value),
|
|
877
877
|
absoluteIndex: $.value + q.value.start,
|
|
878
878
|
seriesIndex: $.value,
|
|
879
|
-
datapoint:
|
|
879
|
+
datapoint: _i.value,
|
|
880
880
|
series: Y.value,
|
|
881
881
|
config: z.value
|
|
882
|
-
}),
|
|
883
|
-
function
|
|
882
|
+
}), Qr = O(!1), $r = O(!1);
|
|
883
|
+
function ei(e) {
|
|
884
884
|
let t = K.value;
|
|
885
885
|
return e > t ? t : e < 0 || e < q.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
if (!
|
|
889
|
-
|
|
887
|
+
function ti() {
|
|
888
|
+
if (!Qr.value) {
|
|
889
|
+
Qr.value = !0;
|
|
890
890
|
try {
|
|
891
891
|
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
|
|
892
892
|
if (n && r <= 0) return;
|
|
893
|
-
let i = e ?? 0, a = t == null ? r : Math.min(
|
|
894
|
-
|
|
893
|
+
let i = e ?? 0, a = t == null ? r : Math.min(ei(t + 1), r);
|
|
894
|
+
ai.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Cr(), $r.value = !0;
|
|
895
895
|
} finally {
|
|
896
896
|
queueMicrotask(() => {
|
|
897
|
-
|
|
898
|
-
}),
|
|
897
|
+
ai.value = !1;
|
|
898
|
+
}), Qr.value = !1;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
function ti(e) {
|
|
903
|
-
Zr.value || ii.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Sr());
|
|
904
|
-
}
|
|
905
902
|
function ni(e) {
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
903
|
+
Qr.value || ai.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Cr());
|
|
904
|
+
}
|
|
905
|
+
function ri(e) {
|
|
906
|
+
if (Qr.value || ai.value) return;
|
|
907
|
+
let t = ei(e);
|
|
908
|
+
t !== q.value.end && (q.value.end = t, J.value.end = t, Cr());
|
|
909
909
|
}
|
|
910
910
|
let X = b(() => ({
|
|
911
911
|
left: W.value.left,
|
|
912
912
|
right: W.value.right,
|
|
913
913
|
width: W.value.width
|
|
914
|
-
})),
|
|
914
|
+
})), ii = b(() => {
|
|
915
915
|
let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.lines.dataLabels;
|
|
916
|
-
return
|
|
916
|
+
return Rr.value.map((r) => String(v(e.formatter, r.value, h({
|
|
917
917
|
p: t,
|
|
918
918
|
v: r.value,
|
|
919
919
|
s: n,
|
|
920
920
|
r: e.rounding
|
|
921
921
|
}), { datapoint: r }) ?? "")).join("|");
|
|
922
922
|
});
|
|
923
|
-
|
|
924
|
-
|
|
923
|
+
rt([
|
|
924
|
+
ii,
|
|
925
925
|
() => z.value.style.chart.grid.y.axisLabels.show,
|
|
926
926
|
() => z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
927
927
|
() => z.value.style.chart.grid.y.axisLabels.bold,
|
|
928
928
|
() => z.value.style.chart.grid.y.position
|
|
929
929
|
], () => {
|
|
930
|
-
z.value.style.chart.grid.y.axisLabels.show &&
|
|
930
|
+
z.value.style.chart.grid.y.axisLabels.show && Pn();
|
|
931
931
|
}, { flush: "post" });
|
|
932
|
-
let
|
|
932
|
+
let ai = O(!1), oi = b(() => U.value.width), si = b(() => U.value.height);
|
|
933
933
|
De({
|
|
934
|
-
timeLabelsEls:
|
|
935
|
-
timeLabels:
|
|
934
|
+
timeLabelsEls: Cn,
|
|
935
|
+
timeLabels: zr,
|
|
936
936
|
slicer: q,
|
|
937
937
|
configRef: z,
|
|
938
938
|
rotationPath: [
|
|
@@ -953,12 +953,12 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
953
953
|
"enable"
|
|
954
954
|
],
|
|
955
955
|
isAutoSize: !1,
|
|
956
|
-
width:
|
|
957
|
-
height:
|
|
956
|
+
width: oi,
|
|
957
|
+
height: si,
|
|
958
958
|
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
959
959
|
});
|
|
960
|
-
let
|
|
961
|
-
function
|
|
960
|
+
let ci = O(null);
|
|
961
|
+
function li(e) {
|
|
962
962
|
let t = V.value;
|
|
963
963
|
if (!t) return null;
|
|
964
964
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
@@ -986,11 +986,11 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
986
986
|
ok: !0
|
|
987
987
|
};
|
|
988
988
|
}
|
|
989
|
-
let
|
|
989
|
+
let ui = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), di = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
|
|
990
990
|
function Q(e) {
|
|
991
|
-
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e *
|
|
991
|
+
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * di.value;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function fi(e) {
|
|
994
994
|
if (Z.value <= 1) return {
|
|
995
995
|
x: W.value.left,
|
|
996
996
|
width: W.value.width
|
|
@@ -1001,43 +1001,43 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1001
1001
|
width: Math.max(0, n - t)
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
let t =
|
|
1004
|
+
function pi(e) {
|
|
1005
|
+
In.value || (ui && cancelAnimationFrame(ui), ui = requestAnimationFrame(() => {
|
|
1006
|
+
ui = 0;
|
|
1007
|
+
let t = li(e);
|
|
1008
1008
|
if (!t || !V.value) {
|
|
1009
|
-
|
|
1009
|
+
gi();
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
1012
|
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
1013
1013
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1014
|
-
|
|
1014
|
+
gi();
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
1017
|
let o = 0;
|
|
1018
1018
|
if (Z.value > 1) {
|
|
1019
|
-
let e = (t.x - n) /
|
|
1019
|
+
let e = (t.x - n) / di.value;
|
|
1020
1020
|
o = Math.round(e);
|
|
1021
1021
|
} else o = 0;
|
|
1022
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
1022
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ci.value !== o && (ci.value = o, bi(!0, o));
|
|
1023
1023
|
}));
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let t =
|
|
1025
|
+
function mi(e) {
|
|
1026
|
+
let t = li(e);
|
|
1027
1027
|
if (!t || !V.value) return;
|
|
1028
1028
|
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
1029
1029
|
if (t.x < n || t.x > r || t.y < i || t.y > a) return;
|
|
1030
1030
|
let o = 0;
|
|
1031
1031
|
if (Z.value > 1) {
|
|
1032
|
-
let e = (t.x - n) /
|
|
1032
|
+
let e = (t.x - n) / di.value;
|
|
1033
1033
|
o = Math.round(e);
|
|
1034
1034
|
} else o = 0;
|
|
1035
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
1035
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ta({
|
|
1036
1036
|
seriesIndex: o,
|
|
1037
|
-
datapoint:
|
|
1038
|
-
}),
|
|
1037
|
+
datapoint: qi(o)
|
|
1038
|
+
}), hi(o);
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function hi(e) {
|
|
1041
1041
|
let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
|
|
1042
1042
|
name: t.name,
|
|
1043
1043
|
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
@@ -1048,12 +1048,12 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1048
1048
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
1049
1049
|
datapoint: t,
|
|
1050
1050
|
seriesIndex: e + q.value.start
|
|
1051
|
-
}),
|
|
1051
|
+
}), tn("selectDatapoint", {
|
|
1052
1052
|
datapoint: t,
|
|
1053
|
-
period:
|
|
1053
|
+
period: zr.value[e]
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
|
-
|
|
1056
|
+
rt(() => [
|
|
1057
1057
|
q.value.start,
|
|
1058
1058
|
q.value.end,
|
|
1059
1059
|
Y.value.length
|
|
@@ -1067,11 +1067,11 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1067
1067
|
$.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
|
-
function
|
|
1071
|
-
|
|
1070
|
+
function gi() {
|
|
1071
|
+
ui &&= (cancelAnimationFrame(ui), 0), ci.value = null, bi(!1, null);
|
|
1072
1072
|
}
|
|
1073
|
-
let $ =
|
|
1074
|
-
let e = $.value, t = e == null ? null :
|
|
1073
|
+
let $ = O(null), _i = b(() => {
|
|
1074
|
+
let e = $.value, t = e == null ? null : br(e);
|
|
1075
1075
|
return Y.value.map((n) => ({
|
|
1076
1076
|
slotAbsoluteIndex: n.absoluteIndex,
|
|
1077
1077
|
shape: n.shape || "circle",
|
|
@@ -1084,23 +1084,23 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1084
1084
|
standalone: !!n.standalone
|
|
1085
1085
|
}));
|
|
1086
1086
|
});
|
|
1087
|
-
function
|
|
1087
|
+
function vi(e) {
|
|
1088
1088
|
if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1089
|
-
let t =
|
|
1089
|
+
let t = zr.value?.[e]?.text || null, n = Yr.value?.[e]?.text || null, r = Br.value?.[e]?.text || null;
|
|
1090
1090
|
return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1091
1091
|
}
|
|
1092
|
-
let
|
|
1093
|
-
let e = z.value.style.chart.tooltip.customFormat, t = [...
|
|
1092
|
+
let yi = b(() => {
|
|
1093
|
+
let e = z.value.style.chart.tooltip.customFormat, t = [..._i.value].reverse(), n = t.filter((e) => !e.standalone), r = t.filter((e) => e.standalone), i = n.map((e) => e.value).filter((e) => f(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1094
1094
|
if (de(e) && te(() => e({
|
|
1095
1095
|
absoluteIndex: $.value + q.value.start,
|
|
1096
1096
|
seriesIndex: $.value,
|
|
1097
|
-
datapoint:
|
|
1097
|
+
datapoint: _i.value,
|
|
1098
1098
|
series: G.value,
|
|
1099
1099
|
config: z.value
|
|
1100
1100
|
}))) return e({
|
|
1101
1101
|
absoluteIndex: $.value + q.value.start,
|
|
1102
1102
|
seriesIndex: $.value,
|
|
1103
|
-
datapoint:
|
|
1103
|
+
datapoint: _i.value,
|
|
1104
1104
|
series: G.value,
|
|
1105
1105
|
config: z.value
|
|
1106
1106
|
});
|
|
@@ -1175,7 +1175,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1175
1175
|
}, { datapoint: e })) : ""} ${r}${n}${o}
|
|
1176
1176
|
</div>
|
|
1177
1177
|
`;
|
|
1178
|
-
}, _ = "", ee =
|
|
1178
|
+
}, _ = "", ee = vi($.value);
|
|
1179
1179
|
return ee && (_ += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), o && n.length > 1 && (_ += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1180
1180
|
<span>${c}:</span>
|
|
1181
1181
|
<span>${v(z.value.style.chart.lines.dataLabels.formatter, ie(i), h({
|
|
@@ -1189,13 +1189,13 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1189
1189
|
} })}</span>
|
|
1190
1190
|
</div>`), n.forEach((e) => {
|
|
1191
1191
|
_ += g(e, l);
|
|
1192
|
-
}), r.length && (_ += `<div style="border-top:1px solid ${
|
|
1192
|
+
}), r.length && (_ += `<div style="border-top:1px solid ${_r.value.length ? u : "transparent"}; margin:${_r.value.length ? "6px 0" : "0"};"></div>`, r.forEach((e) => {
|
|
1193
1193
|
_ += g(e, !1);
|
|
1194
1194
|
})), `<div>${_}</div>`;
|
|
1195
1195
|
});
|
|
1196
|
-
function
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1196
|
+
function bi(e, t = null, n = "pointer") {
|
|
1197
|
+
if (kr.value) return;
|
|
1198
|
+
An.value = n, rn.value = e;
|
|
1199
1199
|
let r = Y.value.map((e) => ({
|
|
1200
1200
|
name: e.name,
|
|
1201
1201
|
value: [
|
|
@@ -1205,13 +1205,13 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1205
1205
|
].includes(e.series[t]) ? null : e.series[t],
|
|
1206
1206
|
color: e.color
|
|
1207
1207
|
}));
|
|
1208
|
-
e ? (R.value = t, $.value = t,
|
|
1208
|
+
e ? (R.value = t, $.value = t, ta({
|
|
1209
1209
|
seriesIndex: t,
|
|
1210
1210
|
datapoint: r
|
|
1211
1211
|
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1212
1212
|
datapoint: r,
|
|
1213
1213
|
seriesIndex: t + q.value.start
|
|
1214
|
-
})) : (R.value = null, $.value = null,
|
|
1214
|
+
})) : (R.value = null, $.value = null, tn("selectX", {
|
|
1215
1215
|
index: null,
|
|
1216
1216
|
indexLabel: null,
|
|
1217
1217
|
dataset: null
|
|
@@ -1220,7 +1220,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1220
1220
|
seriesIndex: t + q.value.start
|
|
1221
1221
|
}));
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function xi(e, t) {
|
|
1224
1224
|
let n = JSON.parse(JSON.stringify(Y.value)).map((e) => ({
|
|
1225
1225
|
name: e.name,
|
|
1226
1226
|
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
@@ -1228,31 +1228,31 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1228
1228
|
color: e.color,
|
|
1229
1229
|
id: e.id
|
|
1230
1230
|
}));
|
|
1231
|
-
|
|
1231
|
+
tn("selectTimeLabel", {
|
|
1232
1232
|
datapoint: n,
|
|
1233
1233
|
absoluteIndex: e.absoluteIndex,
|
|
1234
1234
|
label: e.text
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
L.value.length ? L.value = [] :
|
|
1237
|
+
function Si() {
|
|
1238
|
+
L.value.length ? L.value = [] : wi.value.forEach((e) => {
|
|
1239
1239
|
L.value.push(e.id);
|
|
1240
|
-
}),
|
|
1240
|
+
}), tn("selectLegend", Y.value);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Ci(e) {
|
|
1243
1243
|
if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
|
|
1244
1244
|
else {
|
|
1245
1245
|
if (L.value.length === G.value.length - 1) return;
|
|
1246
1246
|
L.value.push(e.id);
|
|
1247
1247
|
}
|
|
1248
|
-
|
|
1248
|
+
tn("selectLegend", Y.value);
|
|
1249
1249
|
}
|
|
1250
|
-
let
|
|
1250
|
+
let wi = b(() => G.value.map((e) => ({
|
|
1251
1251
|
...e,
|
|
1252
1252
|
opacity: L.value.includes(e.id) ? .5 : 1,
|
|
1253
|
-
segregate: () =>
|
|
1253
|
+
segregate: () => Ci(e),
|
|
1254
1254
|
isSegregated: L.value.includes(e.id)
|
|
1255
|
-
}))),
|
|
1255
|
+
}))), Ti = b(() => ({
|
|
1256
1256
|
cy: "stackline-legend",
|
|
1257
1257
|
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1258
1258
|
color: z.value.style.chart.legend.color,
|
|
@@ -1260,18 +1260,18 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1260
1260
|
paddingBottom: 12,
|
|
1261
1261
|
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1262
1262
|
}));
|
|
1263
|
-
function Ti(e) {
|
|
1264
|
-
return G.value.length ? G.value.find((t) => t.name === e) || (ar.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (ar.value && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1265
|
-
}
|
|
1266
1263
|
function Ei(e) {
|
|
1267
|
-
|
|
1268
|
-
t !== null && L.value.includes(t.id) && Si({ id: t.id });
|
|
1264
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (or.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (or.value && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1269
1265
|
}
|
|
1270
1266
|
function Di(e) {
|
|
1271
|
-
let t =
|
|
1272
|
-
t !== null &&
|
|
1267
|
+
let t = Ei(e);
|
|
1268
|
+
t !== null && L.value.includes(t.id) && Ci({ id: t.id });
|
|
1273
1269
|
}
|
|
1274
|
-
|
|
1270
|
+
function Oi(e) {
|
|
1271
|
+
let t = Ei(e);
|
|
1272
|
+
t !== null && (L.value.includes(t.id) || Ci({ id: t.id }));
|
|
1273
|
+
}
|
|
1274
|
+
let ki = b(() => {
|
|
1275
1275
|
if (Y.value.length === 0) return {
|
|
1276
1276
|
head: [],
|
|
1277
1277
|
body: [],
|
|
@@ -1282,7 +1282,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1282
1282
|
label: e,
|
|
1283
1283
|
color: t
|
|
1284
1284
|
})), t = [];
|
|
1285
|
-
return
|
|
1285
|
+
return Wr.value.forEach((e) => {
|
|
1286
1286
|
let n = e.absoluteIndex, r = [z.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
|
|
1287
1287
|
G.value.forEach((e) => {
|
|
1288
1288
|
let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
|
|
@@ -1293,21 +1293,21 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1293
1293
|
body: t
|
|
1294
1294
|
};
|
|
1295
1295
|
});
|
|
1296
|
-
function
|
|
1296
|
+
function Ai(e = null) {
|
|
1297
1297
|
let n = [
|
|
1298
1298
|
[z.value.style.chart.title.text],
|
|
1299
1299
|
[z.value.style.chart.title.subtitle.text],
|
|
1300
1300
|
[""]
|
|
1301
|
-
], i = ["", ...
|
|
1301
|
+
], i = ["", ...ki.value.head.map((e) => e.label)], a = ki.value.body, o = n.concat([i]).concat(a), s = r(o);
|
|
1302
1302
|
e ? e(s) : t({
|
|
1303
1303
|
csvContent: s,
|
|
1304
1304
|
title: z.value.style.chart.title.text || "vue-ui-stackline"
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
|
-
let
|
|
1308
|
-
let e = [""].concat(Y.value.map((e) => e.name), "
|
|
1307
|
+
let ji = b(() => {
|
|
1308
|
+
let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [], n = Math.max(0, q.value.end - q.value.start);
|
|
1309
1309
|
for (let e = 0; e < n; e += 1) {
|
|
1310
|
-
let n =
|
|
1310
|
+
let n = br(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? zr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
|
|
1311
1311
|
let n = t.series?.[e] ?? 0;
|
|
1312
1312
|
return Number(n.toFixed(z.value.table.td.roundingValue));
|
|
1313
1313
|
}), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1331,23 +1331,23 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1331
1331
|
},
|
|
1332
1332
|
colNames: [z.value.table.columnNames.period].concat(Y.value.map((e) => e.name), z.value.table.columnNames.total)
|
|
1333
1333
|
};
|
|
1334
|
-
}),
|
|
1334
|
+
}), Mi = b(() => z.value.style.chart.backgroundColor), Ni = b(() => z.value.style.chart.legend), Pi = b(() => z.value.style.chart.title), { isCallbackImaging: Fi, isCallbackSvg: Ii, generateSvg: Li, onGenerateImage: Ri } = we({
|
|
1335
1335
|
svg: V,
|
|
1336
|
-
title:
|
|
1337
|
-
legend:
|
|
1338
|
-
legendItems:
|
|
1339
|
-
backgroundColor:
|
|
1336
|
+
title: Pi,
|
|
1337
|
+
legend: Ni,
|
|
1338
|
+
legendItems: wi,
|
|
1339
|
+
backgroundColor: Mi,
|
|
1340
1340
|
getSvgCallback: () => z.value.userOptions.callbacks.svg,
|
|
1341
|
-
generateImage:
|
|
1341
|
+
generateImage: er
|
|
1342
1342
|
});
|
|
1343
|
-
async function
|
|
1344
|
-
if (!
|
|
1343
|
+
async function zi({ scale: e = 2 } = {}) {
|
|
1344
|
+
if (!F.value) return;
|
|
1345
1345
|
let { imageUri: t, base64: n } = await Oe({
|
|
1346
|
-
domElement:
|
|
1346
|
+
domElement: F.value,
|
|
1347
1347
|
base64: !0,
|
|
1348
1348
|
img: !0,
|
|
1349
1349
|
scale: e
|
|
1350
|
-
}), r =
|
|
1350
|
+
}), r = F.value.getBoundingClientRect(), i = {
|
|
1351
1351
|
width: r.width,
|
|
1352
1352
|
height: r.height,
|
|
1353
1353
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
@@ -1359,18 +1359,18 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1359
1359
|
...a
|
|
1360
1360
|
};
|
|
1361
1361
|
}
|
|
1362
|
-
let
|
|
1362
|
+
let Bi = b(() => {
|
|
1363
1363
|
let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
|
|
1364
1364
|
return {
|
|
1365
|
-
component: e ?
|
|
1365
|
+
component: e ? Xt : Gt,
|
|
1366
1366
|
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1367
1367
|
props: e ? {
|
|
1368
1368
|
backgroundColor: z.value.table.th.backgroundColor,
|
|
1369
1369
|
color: z.value.table.th.color,
|
|
1370
1370
|
headerColor: z.value.table.th.color,
|
|
1371
1371
|
headerBg: z.value.table.th.backgroundColor,
|
|
1372
|
-
isFullscreen:
|
|
1373
|
-
fullscreenParent:
|
|
1372
|
+
isFullscreen: dn.value,
|
|
1373
|
+
fullscreenParent: F.value,
|
|
1374
1374
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1375
1375
|
isCursorPointer: B.value
|
|
1376
1376
|
} : {
|
|
@@ -1390,29 +1390,29 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1390
1390
|
}
|
|
1391
1391
|
};
|
|
1392
1392
|
});
|
|
1393
|
-
|
|
1394
|
-
z.value.table.show || (e && z.value.table.useDialog &&
|
|
1393
|
+
rt(() => H.value.showTable, (e) => {
|
|
1394
|
+
z.value.table.show || (e && z.value.table.useDialog && _n.value ? _n.value.open() : "close" in _n.value && _n.value.close());
|
|
1395
1395
|
});
|
|
1396
|
-
function
|
|
1397
|
-
H.value.showTable = !1,
|
|
1396
|
+
function Vi() {
|
|
1397
|
+
H.value.showTable = !1, vn.value && vn.value.setTableIconState(!1);
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1399
|
+
function Hi(e) {
|
|
1400
|
+
dn.value = e, an.value += 1;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Ui() {
|
|
1403
1403
|
H.value.showTable = !H.value.showTable;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function Wi() {
|
|
1406
1406
|
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Gi() {
|
|
1409
1409
|
H.value.showTooltip = !H.value.showTooltip;
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Ki() {
|
|
1412
1412
|
return Y.value;
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1415
|
-
let t = e ?? 0, n =
|
|
1414
|
+
function qi(e) {
|
|
1415
|
+
let t = e ?? 0, n = br(t);
|
|
1416
1416
|
return JSON.parse(JSON.stringify(Y.value)).map((e) => {
|
|
1417
1417
|
let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
|
|
1418
1418
|
return {
|
|
@@ -1422,25 +1422,25 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1422
1422
|
proportion: e.proportions?.[t] || null,
|
|
1423
1423
|
color: e.color,
|
|
1424
1424
|
id: e.id,
|
|
1425
|
-
timeLabel:
|
|
1425
|
+
timeLabel: Br.value?.[n] || null
|
|
1426
1426
|
};
|
|
1427
1427
|
});
|
|
1428
1428
|
}
|
|
1429
|
-
let
|
|
1430
|
-
|
|
1431
|
-
if ([null, void 0].includes(
|
|
1429
|
+
let Ji = b(() => Array(K.value).fill(0).map((e, t) => qi(t)));
|
|
1430
|
+
rt(() => P.selectedXIndex, (e) => {
|
|
1431
|
+
if ([null, void 0].includes(P.selectedXIndex)) {
|
|
1432
1432
|
$.value = null;
|
|
1433
1433
|
return;
|
|
1434
1434
|
}
|
|
1435
1435
|
let t = e - q.value.start;
|
|
1436
1436
|
t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
|
|
1437
1437
|
}, { immediate: !0 });
|
|
1438
|
-
let
|
|
1438
|
+
let Yi = b(() => {
|
|
1439
1439
|
if (z.value.style.chart.lines.distributed) return {
|
|
1440
1440
|
min: -1,
|
|
1441
1441
|
max: 1
|
|
1442
1442
|
};
|
|
1443
|
-
let e =
|
|
1443
|
+
let e = _r.value, t = vr.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
|
|
1444
1444
|
e.forEach((e) => {
|
|
1445
1445
|
for (let t = 0; t < n; t += 1) {
|
|
1446
1446
|
let n = e.series[t] ?? 0;
|
|
@@ -1460,7 +1460,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1460
1460
|
max: Number(f.max) || 0
|
|
1461
1461
|
};
|
|
1462
1462
|
});
|
|
1463
|
-
function
|
|
1463
|
+
function Xi({ minimapH: e, unitW: t }) {
|
|
1464
1464
|
let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
|
|
1465
1465
|
if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
|
|
1466
1466
|
let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), a = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
|
|
@@ -1490,7 +1490,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1490
1490
|
if (z.value.style.chart.lines.useArea) {
|
|
1491
1491
|
let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${h[0].x},${h[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
|
|
1492
1492
|
c.push(`<path d="${t}"
|
|
1493
|
-
fill="${
|
|
1493
|
+
fill="${en.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
|
|
1494
1494
|
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1495
1495
|
stroke="none" />`);
|
|
1496
1496
|
}
|
|
@@ -1512,7 +1512,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1512
1512
|
stroke-linecap="round" />`);
|
|
1513
1513
|
}), c.join("");
|
|
1514
1514
|
}
|
|
1515
|
-
let s =
|
|
1515
|
+
let s = Yi.value.min, c = Yi.value.max, u = Math.abs(s), d = c + u || 1, f = (t) => Math.max(0, Math.min(e, t)), m = (t) => f(e - e * (((t ?? 0) + u) / d)), h = [];
|
|
1516
1516
|
if (r.length) {
|
|
1517
1517
|
let e = Array(a).fill(0), t = Array(a).fill(0);
|
|
1518
1518
|
r.forEach((r) => {
|
|
@@ -1531,7 +1531,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1531
1531
|
if (z.value.style.chart.lines.useArea) {
|
|
1532
1532
|
let e = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${f[0].x},${f[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
|
|
1533
1533
|
h.push(`<path d="${e}"
|
|
1534
|
-
fill="${
|
|
1534
|
+
fill="${en.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
|
|
1535
1535
|
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1536
1536
|
stroke="none" />`);
|
|
1537
1537
|
}
|
|
@@ -1555,12 +1555,12 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1555
1555
|
stroke-linecap="round" />`);
|
|
1556
1556
|
}), h.join("");
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Zi(e, t) {
|
|
1559
1559
|
let n = z.value.style.chart.lines, r = n.dataLabels;
|
|
1560
|
-
return n.showDistributedPercentage && n.distributed ?
|
|
1560
|
+
return n.showDistributedPercentage && n.distributed ? Xn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Xn.value ? (Yn.value && or.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(e) > Qi.value * r.hideUnderPercentage / 100) : Yn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
|
|
1561
1561
|
}
|
|
1562
|
-
let
|
|
1563
|
-
function
|
|
1562
|
+
let Qi = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
|
|
1563
|
+
function $i(e, t, n, r, i) {
|
|
1564
1564
|
let a = i === -1 && e >= 0 ? -e : e;
|
|
1565
1565
|
return v(z.value.style.chart.lines.dataLabels.formatter, a, h({
|
|
1566
1566
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
@@ -1573,7 +1573,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1573
1573
|
datapointIndex: r
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function ea(e, t, n, r) {
|
|
1577
1577
|
return v(z.value.style.chart.lines.dataLabels.formatter, e, h({
|
|
1578
1578
|
v: isNaN(e) ? 0 : e,
|
|
1579
1579
|
s: "%",
|
|
@@ -1584,16 +1584,16 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1584
1584
|
datapointIndex: r
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function ta({ seriesIndex: e, datapoint: t }) {
|
|
1588
1588
|
let n = q.value.start + e;
|
|
1589
|
-
|
|
1589
|
+
tn("selectX", {
|
|
1590
1590
|
dataset: t,
|
|
1591
1591
|
index: n,
|
|
1592
1592
|
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
1593
1593
|
});
|
|
1594
1594
|
}
|
|
1595
|
-
async function
|
|
1596
|
-
if (
|
|
1595
|
+
async function na() {
|
|
1596
|
+
if (tn("copyAlt", {
|
|
1597
1597
|
config: z.value,
|
|
1598
1598
|
dataset: Y.value
|
|
1599
1599
|
}), !z.value.userOptions.callbacks.altCopy) {
|
|
@@ -1605,23 +1605,23 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1605
1605
|
dataset: Y.value
|
|
1606
1606
|
}));
|
|
1607
1607
|
}
|
|
1608
|
-
let
|
|
1609
|
-
function ra() {
|
|
1610
|
-
R.value = null, na.value = !0;
|
|
1611
|
-
}
|
|
1608
|
+
let ra = O(!1);
|
|
1612
1609
|
function ia() {
|
|
1613
|
-
R.value = null,
|
|
1610
|
+
R.value = null, ra.value = !0;
|
|
1611
|
+
}
|
|
1612
|
+
function aa() {
|
|
1613
|
+
R.value = null, An.value = "pointer", rn.value = !1, $.value = null, tn("selectX", {
|
|
1614
1614
|
index: null,
|
|
1615
1615
|
indexLabel: null,
|
|
1616
1616
|
dataset: null
|
|
1617
|
-
}),
|
|
1617
|
+
}), ra.value = !1;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
if (!V.value ||
|
|
1619
|
+
function oa(e) {
|
|
1620
|
+
if (!V.value || In.value || document.activeElement !== V.value || kr.value || !Z.value) return;
|
|
1621
1621
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1622
1622
|
if (!t && !n && !r && !i) return;
|
|
1623
1623
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1624
|
-
R.value = null,
|
|
1624
|
+
R.value = null, An.value = "pointer", rn.value = !1, $.value = null, tn("selectX", {
|
|
1625
1625
|
index: null,
|
|
1626
1626
|
indexLabel: null,
|
|
1627
1627
|
dataset: null
|
|
@@ -1630,58 +1630,58 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1630
1630
|
}
|
|
1631
1631
|
if (r) {
|
|
1632
1632
|
if (R.value === null) return;
|
|
1633
|
-
|
|
1633
|
+
hi(R.value);
|
|
1634
1634
|
return;
|
|
1635
1635
|
}
|
|
1636
|
-
let a = R.value, o =
|
|
1637
|
-
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a,
|
|
1636
|
+
let a = R.value, o = ci.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
|
|
1637
|
+
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a, sa(a), bi(!0, a, "keyboard");
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function sa(e) {
|
|
1640
1640
|
if (!Number.isFinite(e) || !V.value) return;
|
|
1641
|
-
let t = W.value.left + e *
|
|
1642
|
-
r && (
|
|
1641
|
+
let t = W.value.left + e * di.value, n = W.value.top + W.value.height / 2, r = i(t, n, V.value);
|
|
1642
|
+
r && (kn.value = r);
|
|
1643
1643
|
}
|
|
1644
|
-
let
|
|
1645
|
-
headers:
|
|
1646
|
-
rows:
|
|
1644
|
+
let ca = b(() => ({
|
|
1645
|
+
headers: ji.value?.colNames ?? [],
|
|
1646
|
+
rows: ji.value?.body ?? []
|
|
1647
1647
|
}));
|
|
1648
1648
|
return je({
|
|
1649
|
-
getData:
|
|
1650
|
-
getImage:
|
|
1651
|
-
generatePdf:
|
|
1652
|
-
generateCsv:
|
|
1653
|
-
generateImage:
|
|
1654
|
-
generateSvg:
|
|
1655
|
-
hideSeries:
|
|
1656
|
-
showSeries:
|
|
1657
|
-
toggleTable:
|
|
1658
|
-
toggleLabels:
|
|
1659
|
-
toggleTooltip:
|
|
1660
|
-
toggleAnnotator:
|
|
1661
|
-
toggleFullscreen:
|
|
1662
|
-
copyAlt:
|
|
1663
|
-
}), (t, r) => (
|
|
1649
|
+
getData: Ki,
|
|
1650
|
+
getImage: zi,
|
|
1651
|
+
generatePdf: $n,
|
|
1652
|
+
generateCsv: Ai,
|
|
1653
|
+
generateImage: er,
|
|
1654
|
+
generateSvg: Li,
|
|
1655
|
+
hideSeries: Oi,
|
|
1656
|
+
showSeries: Di,
|
|
1657
|
+
toggleTable: Ui,
|
|
1658
|
+
toggleLabels: Wi,
|
|
1659
|
+
toggleTooltip: Gi,
|
|
1660
|
+
toggleAnnotator: Ln,
|
|
1661
|
+
toggleFullscreen: Hi,
|
|
1662
|
+
copyAlt: na
|
|
1663
|
+
}), (t, r) => (D(), C("div", {
|
|
1664
1664
|
id: `stackline_${I.value}`,
|
|
1665
1665
|
ref_key: "stacklineChart",
|
|
1666
|
-
ref:
|
|
1667
|
-
class:
|
|
1666
|
+
ref: F,
|
|
1667
|
+
class: Ye({
|
|
1668
1668
|
"vue-data-ui-component": !0,
|
|
1669
1669
|
"vue-ui-stackline": !0,
|
|
1670
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1670
|
+
"vue-data-ui-wrapper-fullscreen": dn.value
|
|
1671
1671
|
}),
|
|
1672
|
-
style:
|
|
1673
|
-
onMouseenter:
|
|
1674
|
-
onMouseleave:
|
|
1672
|
+
style: Xe(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1673
|
+
onMouseenter: Kn,
|
|
1674
|
+
onMouseleave: qn
|
|
1675
1675
|
}, [
|
|
1676
1676
|
w("div", {
|
|
1677
1677
|
id: `chart-instructions-${I.value}`,
|
|
1678
1678
|
class: "sr-only"
|
|
1679
|
-
}, [w("p", null,
|
|
1680
|
-
|
|
1679
|
+
}, [w("p", null, j(z.value.a11y.translations.keyboardNavigation), 1)], 8, st),
|
|
1680
|
+
ca.value?.rows?.length ? (D(), x(Le, {
|
|
1681
1681
|
key: 0,
|
|
1682
1682
|
uid: I.value,
|
|
1683
|
-
head:
|
|
1684
|
-
body:
|
|
1683
|
+
head: ca.value.headers,
|
|
1684
|
+
body: ca.value.rows,
|
|
1685
1685
|
notice: z.value.a11y.translations.tableAvailable,
|
|
1686
1686
|
caption: z.value.a11y.translations.tableCaption
|
|
1687
1687
|
}, null, 8, [
|
|
@@ -1691,21 +1691,21 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1691
1691
|
"notice",
|
|
1692
1692
|
"caption"
|
|
1693
1693
|
])) : S("", !0),
|
|
1694
|
-
z.value.userOptions.buttons.annotator ? (
|
|
1694
|
+
z.value.userOptions.buttons.annotator ? (D(), x(M(qt), {
|
|
1695
1695
|
key: 1,
|
|
1696
|
-
svgRef:
|
|
1696
|
+
svgRef: M(V),
|
|
1697
1697
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1698
1698
|
color: z.value.style.chart.color,
|
|
1699
|
-
active:
|
|
1699
|
+
active: In.value,
|
|
1700
1700
|
isCursorPointer: B.value,
|
|
1701
|
-
onClose:
|
|
1701
|
+
onClose: Ln
|
|
1702
1702
|
}, {
|
|
1703
|
-
"annotator-action-close":
|
|
1704
|
-
"annotator-action-color":
|
|
1705
|
-
"annotator-action-draw":
|
|
1706
|
-
"annotator-action-undo":
|
|
1707
|
-
"annotator-action-redo":
|
|
1708
|
-
"annotator-action-delete":
|
|
1703
|
+
"annotator-action-close": N(() => [A(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1704
|
+
"annotator-action-color": N(({ color: e }) => [A(t.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
|
|
1705
|
+
"annotator-action-draw": N(({ mode: e }) => [A(t.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
|
|
1706
|
+
"annotator-action-undo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
|
|
1707
|
+
"annotator-action-redo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
|
|
1708
|
+
"annotator-action-delete": N(({ disabled: e }) => [A(t.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
|
|
1709
1709
|
_: 3
|
|
1710
1710
|
}, 8, [
|
|
1711
1711
|
"svgRef",
|
|
@@ -1714,21 +1714,21 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1714
1714
|
"active",
|
|
1715
1715
|
"isCursorPointer"
|
|
1716
1716
|
])) : S("", !0),
|
|
1717
|
-
|
|
1718
|
-
|
|
1717
|
+
A(t.$slots, "userConfig", {}, void 0, !0),
|
|
1718
|
+
tr.value ? (D(), C("div", {
|
|
1719
1719
|
key: 2,
|
|
1720
1720
|
ref_key: "noTitle",
|
|
1721
|
-
ref:
|
|
1721
|
+
ref: ln,
|
|
1722
1722
|
class: "vue-data-ui-no-title-space",
|
|
1723
1723
|
style: "height:36px; width: 100%;background:transparent"
|
|
1724
1724
|
}, null, 512)) : S("", !0),
|
|
1725
|
-
z.value.style.chart.title.text ? (
|
|
1725
|
+
z.value.style.chart.title.text ? (D(), C("div", {
|
|
1726
1726
|
key: 3,
|
|
1727
1727
|
ref_key: "chartTitle",
|
|
1728
|
-
ref:
|
|
1728
|
+
ref: on,
|
|
1729
1729
|
style: "width:100%;background:transparent;"
|
|
1730
|
-
}, [(
|
|
1731
|
-
key: `title_${
|
|
1730
|
+
}, [(D(), x(ke, {
|
|
1731
|
+
key: `title_${pn.value}`,
|
|
1732
1732
|
config: {
|
|
1733
1733
|
title: {
|
|
1734
1734
|
cy: "stackline-title",
|
|
@@ -1740,15 +1740,15 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
1742
|
}, null, 8, ["config"]))], 512)) : S("", !0),
|
|
1743
|
-
w("div", { id: `legend-top-${I.value}` }, null, 8,
|
|
1744
|
-
z.value.userOptions.show &&
|
|
1743
|
+
w("div", { id: `legend-top-${I.value}` }, null, 8, ct),
|
|
1744
|
+
z.value.userOptions.show && nn.value && (M(Gn) || M(Un)) ? (D(), x(M(Jt), {
|
|
1745
1745
|
ref_key: "userOptionsRef",
|
|
1746
|
-
ref:
|
|
1747
|
-
key: `user_option_${
|
|
1746
|
+
ref: vn,
|
|
1747
|
+
key: `user_option_${an.value}`,
|
|
1748
1748
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1749
1749
|
color: z.value.style.chart.color,
|
|
1750
|
-
isPrinting:
|
|
1751
|
-
isImaging:
|
|
1750
|
+
isPrinting: M(Zn),
|
|
1751
|
+
isImaging: M(Qn),
|
|
1752
1752
|
uid: I.value,
|
|
1753
1753
|
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1754
1754
|
hasPdf: z.value.userOptions.buttons.pdf,
|
|
@@ -1759,32 +1759,32 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1759
1759
|
hasLabel: z.value.userOptions.buttons.labels,
|
|
1760
1760
|
hasFullscreen: z.value.userOptions.buttons.fullscreen,
|
|
1761
1761
|
hasAltCopy: z.value.userOptions.buttons.altCopy,
|
|
1762
|
-
isFullscreen:
|
|
1763
|
-
chartElement:
|
|
1762
|
+
isFullscreen: dn.value,
|
|
1763
|
+
chartElement: F.value,
|
|
1764
1764
|
position: z.value.userOptions.position,
|
|
1765
1765
|
isTooltip: H.value.showTooltip,
|
|
1766
1766
|
titles: { ...z.value.userOptions.buttonTitles },
|
|
1767
1767
|
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1768
|
-
isAnnotation:
|
|
1768
|
+
isAnnotation: In.value,
|
|
1769
1769
|
callbacks: z.value.userOptions.callbacks,
|
|
1770
1770
|
printScale: z.value.userOptions.print.scale,
|
|
1771
1771
|
tableDialog: z.value.table.useDialog,
|
|
1772
1772
|
isCursorPointer: B.value,
|
|
1773
|
-
onToggleFullscreen:
|
|
1774
|
-
onGeneratePdf:
|
|
1775
|
-
onGenerateCsv:
|
|
1776
|
-
onGenerateImage:
|
|
1777
|
-
onGenerateSvg:
|
|
1778
|
-
onToggleTable:
|
|
1779
|
-
onToggleLabels:
|
|
1780
|
-
onToggleTooltip:
|
|
1781
|
-
onToggleAnnotator:
|
|
1782
|
-
onCopyAlt:
|
|
1783
|
-
style:
|
|
1773
|
+
onToggleFullscreen: Hi,
|
|
1774
|
+
onGeneratePdf: M($n),
|
|
1775
|
+
onGenerateCsv: Ai,
|
|
1776
|
+
onGenerateImage: M(Ri),
|
|
1777
|
+
onGenerateSvg: M(Li),
|
|
1778
|
+
onToggleTable: Ui,
|
|
1779
|
+
onToggleLabels: Wi,
|
|
1780
|
+
onToggleTooltip: Gi,
|
|
1781
|
+
onToggleAnnotator: Ln,
|
|
1782
|
+
onCopyAlt: na,
|
|
1783
|
+
style: Xe({ visibility: M(Gn) ? M(Un) ? "visible" : "hidden" : "visible" })
|
|
1784
1784
|
}, Ue({ _: 2 }, [
|
|
1785
1785
|
t.$slots.menuIcon ? {
|
|
1786
1786
|
name: "menuIcon",
|
|
1787
|
-
fn:
|
|
1787
|
+
fn: N(({ isOpen: e, color: n }) => [A(t.$slots, "menuIcon", E(T({
|
|
1788
1788
|
isOpen: e,
|
|
1789
1789
|
color: n
|
|
1790
1790
|
})), void 0, !0)]),
|
|
@@ -1792,42 +1792,42 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1792
1792
|
} : void 0,
|
|
1793
1793
|
t.$slots.optionTooltip ? {
|
|
1794
1794
|
name: "optionTooltip",
|
|
1795
|
-
fn:
|
|
1795
|
+
fn: N(() => [A(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1796
1796
|
key: "1"
|
|
1797
1797
|
} : void 0,
|
|
1798
1798
|
t.$slots.optionPdf ? {
|
|
1799
1799
|
name: "optionPdf",
|
|
1800
|
-
fn:
|
|
1800
|
+
fn: N(() => [A(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1801
1801
|
key: "2"
|
|
1802
1802
|
} : void 0,
|
|
1803
1803
|
t.$slots.optionCsv ? {
|
|
1804
1804
|
name: "optionCsv",
|
|
1805
|
-
fn:
|
|
1805
|
+
fn: N(() => [A(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1806
1806
|
key: "3"
|
|
1807
1807
|
} : void 0,
|
|
1808
1808
|
t.$slots.optionImg ? {
|
|
1809
1809
|
name: "optionImg",
|
|
1810
|
-
fn:
|
|
1810
|
+
fn: N(() => [A(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1811
1811
|
key: "4"
|
|
1812
1812
|
} : void 0,
|
|
1813
1813
|
t.$slots.optionSvg ? {
|
|
1814
1814
|
name: "optionSvg",
|
|
1815
|
-
fn:
|
|
1815
|
+
fn: N(() => [A(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1816
1816
|
key: "5"
|
|
1817
1817
|
} : void 0,
|
|
1818
1818
|
t.$slots.optionTable ? {
|
|
1819
1819
|
name: "optionTable",
|
|
1820
|
-
fn:
|
|
1820
|
+
fn: N(() => [A(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1821
1821
|
key: "6"
|
|
1822
1822
|
} : void 0,
|
|
1823
1823
|
t.$slots.optionLabels ? {
|
|
1824
1824
|
name: "optionLabels",
|
|
1825
|
-
fn:
|
|
1825
|
+
fn: N(() => [A(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1826
1826
|
key: "7"
|
|
1827
1827
|
} : void 0,
|
|
1828
1828
|
t.$slots.optionFullscreen ? {
|
|
1829
1829
|
name: "optionFullscreen",
|
|
1830
|
-
fn:
|
|
1830
|
+
fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [A(t.$slots, "optionFullscreen", E(T({
|
|
1831
1831
|
toggleFullscreen: e,
|
|
1832
1832
|
isFullscreen: n
|
|
1833
1833
|
})), void 0, !0)]),
|
|
@@ -1835,7 +1835,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1835
1835
|
} : void 0,
|
|
1836
1836
|
t.$slots.optionAnnotator ? {
|
|
1837
1837
|
name: "optionAnnotator",
|
|
1838
|
-
fn:
|
|
1838
|
+
fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [A(t.$slots, "optionAnnotator", E(T({
|
|
1839
1839
|
toggleAnnotator: e,
|
|
1840
1840
|
isAnnotator: n
|
|
1841
1841
|
})), void 0, !0)]),
|
|
@@ -1843,58 +1843,58 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1843
1843
|
} : void 0,
|
|
1844
1844
|
t.$slots.optionAltCopy ? {
|
|
1845
1845
|
name: "optionAltCopy",
|
|
1846
|
-
fn:
|
|
1846
|
+
fn: N(({ altCopy: e }) => [A(t.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
|
|
1847
1847
|
key: "10"
|
|
1848
1848
|
} : void 0,
|
|
1849
1849
|
t.$slots["custom-menu-before"] ? {
|
|
1850
1850
|
name: "custom-menu-before",
|
|
1851
|
-
fn:
|
|
1851
|
+
fn: N(() => [A(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1852
1852
|
key: "11"
|
|
1853
1853
|
} : void 0,
|
|
1854
1854
|
t.$slots["custom-menu-after"] ? {
|
|
1855
1855
|
name: "custom-menu-after",
|
|
1856
|
-
fn:
|
|
1856
|
+
fn: N(() => [A(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1857
1857
|
key: "12"
|
|
1858
1858
|
} : void 0
|
|
1859
1859
|
]), 1032, /* @__PURE__ */ "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.onGenerateImage.onGenerateSvg.style".split("."))) : S("", !0),
|
|
1860
|
-
w("div",
|
|
1860
|
+
w("div", lt, [(D(), C("svg", {
|
|
1861
1861
|
ref_key: "svgRef",
|
|
1862
1862
|
ref: V,
|
|
1863
1863
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1864
|
-
xmlns:
|
|
1864
|
+
xmlns: M(se),
|
|
1865
1865
|
viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
|
|
1866
|
-
class:
|
|
1867
|
-
"vue-data-ui-loading":
|
|
1868
|
-
"vue-data-ui-fullscreen--on":
|
|
1869
|
-
"vue-data-ui-fulscreen--off": !
|
|
1870
|
-
"vue-data-ui-no-transition": !
|
|
1866
|
+
class: Ye({
|
|
1867
|
+
"vue-data-ui-loading": M(Bn),
|
|
1868
|
+
"vue-data-ui-fullscreen--on": dn.value,
|
|
1869
|
+
"vue-data-ui-fulscreen--off": !dn.value,
|
|
1870
|
+
"vue-data-ui-no-transition": !M(Rn)
|
|
1871
1871
|
}),
|
|
1872
|
-
style:
|
|
1872
|
+
style: Xe(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1873
1873
|
role: "img",
|
|
1874
1874
|
"aria-live": "polite",
|
|
1875
1875
|
tabindex: "0",
|
|
1876
1876
|
preserveAspectRatio: "xMidYMid",
|
|
1877
|
-
onMousemove:
|
|
1878
|
-
onMouseleave:
|
|
1879
|
-
onClick:
|
|
1880
|
-
onFocus:
|
|
1881
|
-
onBlur:
|
|
1882
|
-
onKeydown:
|
|
1877
|
+
onMousemove: pi,
|
|
1878
|
+
onMouseleave: gi,
|
|
1879
|
+
onClick: mi,
|
|
1880
|
+
onFocus: ia,
|
|
1881
|
+
onBlur: aa,
|
|
1882
|
+
onKeydown: oa
|
|
1883
1883
|
}, [
|
|
1884
|
-
Ge(
|
|
1885
|
-
(
|
|
1884
|
+
Ge(M(Yt)),
|
|
1885
|
+
(D(!0), C(y, null, k(_r.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs", dt, [A(t.$slots, "pattern", qe({ ref_for: !0 }, {
|
|
1886
1886
|
seriesIndex: e.absoluteIndex,
|
|
1887
1887
|
patternId: `pattern_${I.value}_${e.absoluteIndex}`
|
|
1888
1888
|
}), void 0, !0)])) : S("", !0)], 64))), 256)),
|
|
1889
|
-
t.$slots["chart-background"] ? (
|
|
1889
|
+
t.$slots["chart-background"] ? (D(), C("foreignObject", {
|
|
1890
1890
|
key: 0,
|
|
1891
1891
|
x: X.value.left,
|
|
1892
1892
|
y: W.value.top,
|
|
1893
1893
|
width: X.value.width,
|
|
1894
1894
|
height: W.value.height,
|
|
1895
1895
|
style: { pointerEvents: "none" }
|
|
1896
|
-
}, [
|
|
1897
|
-
z.value.style.chart.lines.gradient.show ? (
|
|
1896
|
+
}, [A(t.$slots, "chart-background", {}, void 0, !0)], 8, ft)) : S("", !0),
|
|
1897
|
+
z.value.style.chart.lines.gradient.show ? (D(), C("defs", pt, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), x(Pe, {
|
|
1898
1898
|
t: "linear",
|
|
1899
1899
|
id: `gradient_${e.id}`,
|
|
1900
1900
|
key: `gradient_${e.id}_${t}`,
|
|
@@ -1908,11 +1908,11 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1908
1908
|
1
|
|
1909
1909
|
], [
|
|
1910
1910
|
"100%",
|
|
1911
|
-
|
|
1911
|
+
M(c)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
|
|
1912
1912
|
1
|
|
1913
1913
|
]]
|
|
1914
1914
|
}, null, 8, ["id", "stops"]))), 128))])) : S("", !0),
|
|
1915
|
-
z.value.style.chart.grid.x.showHorizontalLines ? (
|
|
1915
|
+
z.value.style.chart.grid.x.showHorizontalLines ? (D(!0), C(y, { key: 2 }, k(Rr.value, (e, t) => (D(), C("line", {
|
|
1916
1916
|
x1: X.value.left,
|
|
1917
1917
|
x2: X.value.right,
|
|
1918
1918
|
y1: e.y,
|
|
@@ -1921,8 +1921,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1921
1921
|
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1922
1922
|
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1923
1923
|
"stroke-linecap": "round"
|
|
1924
|
-
}, null, 8,
|
|
1925
|
-
z.value.style.chart.grid.y.showVerticalLines ? (
|
|
1924
|
+
}, null, 8, mt))), 256)) : S("", !0),
|
|
1925
|
+
z.value.style.chart.grid.y.showVerticalLines ? (D(!0), C(y, { key: 3 }, k(q.value.end - q.value.start, (e, t) => (D(), C("line", {
|
|
1926
1926
|
x1: Q(t),
|
|
1927
1927
|
x2: Q(t),
|
|
1928
1928
|
y1: W.value.top,
|
|
@@ -1931,8 +1931,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1931
1931
|
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1932
1932
|
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1933
1933
|
"stroke-linecap": "round"
|
|
1934
|
-
}, null, 8,
|
|
1935
|
-
z.value.style.chart.grid.x.showAxis ? (
|
|
1934
|
+
}, null, 8, ht))), 256)) : S("", !0),
|
|
1935
|
+
z.value.style.chart.grid.x.showAxis ? (D(), C("line", {
|
|
1936
1936
|
key: 4,
|
|
1937
1937
|
x1: X.value.left,
|
|
1938
1938
|
x2: X.value.right,
|
|
@@ -1942,40 +1942,40 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1942
1942
|
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1943
1943
|
"stroke-linecap": "round",
|
|
1944
1944
|
"stroke-linejoin": "round"
|
|
1945
|
-
}, null, 8,
|
|
1946
|
-
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (
|
|
1945
|
+
}, null, 8, gt)) : S("", !0),
|
|
1946
|
+
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (D(), C("line", {
|
|
1947
1947
|
key: 5,
|
|
1948
|
-
x1:
|
|
1949
|
-
x2:
|
|
1948
|
+
x1: cr.value ? X.value.right : X.value.left,
|
|
1949
|
+
x2: cr.value ? X.value.right : X.value.left,
|
|
1950
1950
|
y1: W.value.top,
|
|
1951
1951
|
y2: W.value.bottom,
|
|
1952
1952
|
stroke: z.value.style.chart.grid.y.axisColor,
|
|
1953
1953
|
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1954
1954
|
"stroke-linecap": "round",
|
|
1955
1955
|
"stroke-linejoin": "round"
|
|
1956
|
-
}, null, 8,
|
|
1957
|
-
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (
|
|
1956
|
+
}, null, 8, _t)) : S("", !0),
|
|
1957
|
+
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (D(), C("text", {
|
|
1958
1958
|
key: 6,
|
|
1959
1959
|
ref_key: "xAxisLabel",
|
|
1960
|
-
ref:
|
|
1960
|
+
ref: bn,
|
|
1961
1961
|
x: W.value.left + W.value.width / 2,
|
|
1962
1962
|
y: W.value.chartHeight - 3,
|
|
1963
1963
|
"font-size": z.value.style.chart.grid.x.axisName.fontSize,
|
|
1964
1964
|
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1965
1965
|
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1966
1966
|
"text-anchor": "middle"
|
|
1967
|
-
},
|
|
1968
|
-
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (
|
|
1967
|
+
}, j(z.value.style.chart.grid.x.axisName.text), 9, vt)) : S("", !0),
|
|
1968
|
+
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (D(), C("text", {
|
|
1969
1969
|
key: 7,
|
|
1970
1970
|
ref_key: "yAxisLabel",
|
|
1971
|
-
ref:
|
|
1972
|
-
transform: `translate(${
|
|
1971
|
+
ref: xn,
|
|
1972
|
+
transform: `translate(${cr.value ? W.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1973
1973
|
"font-size": z.value.style.chart.grid.y.axisName.fontSize,
|
|
1974
1974
|
fill: z.value.style.chart.grid.y.axisName.color,
|
|
1975
1975
|
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1976
1976
|
"text-anchor": "middle"
|
|
1977
|
-
},
|
|
1978
|
-
z.value.style.chart.grid.frame.show ? (
|
|
1977
|
+
}, j(z.value.style.chart.grid.y.axisName.text), 9, yt)) : S("", !0),
|
|
1978
|
+
z.value.style.chart.grid.frame.show ? (D(), C("rect", {
|
|
1979
1979
|
key: 8,
|
|
1980
1980
|
style: {
|
|
1981
1981
|
pointerEvents: "none",
|
|
@@ -1992,63 +1992,63 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
1992
1992
|
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
1993
1993
|
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
1994
1994
|
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
1995
|
-
}, null, 8,
|
|
1996
|
-
(
|
|
1995
|
+
}, null, 8, bt)) : S("", !0),
|
|
1996
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [z.value.style.chart.lines.useArea && !e.standalone ? (D(), C("path", {
|
|
1997
1997
|
key: 0,
|
|
1998
1998
|
d: z.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
|
|
1999
1999
|
fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : z.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
2000
2000
|
opacity: z.value.style.chart.lines.areaOpacity,
|
|
2001
|
-
class:
|
|
2002
|
-
}, null, 10,
|
|
2003
|
-
(
|
|
2001
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) })
|
|
2002
|
+
}, null, 10, xt)) : S("", !0)], 64))), 256)),
|
|
2003
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C("path", {
|
|
2004
2004
|
d: z.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
|
|
2005
2005
|
stroke: z.value.style.chart.lines.path.useSerieColor ? e.color : z.value.style.chart.lines.path.stroke,
|
|
2006
2006
|
"stroke-width": z.value.style.chart.lines.strokeWidth,
|
|
2007
2007
|
fill: "none",
|
|
2008
2008
|
"stroke-linecap": "round",
|
|
2009
|
-
class:
|
|
2010
|
-
}, null, 10,
|
|
2011
|
-
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (
|
|
2009
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) })
|
|
2010
|
+
}, null, 10, St))), 256)),
|
|
2011
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (D(), C("g", {
|
|
2012
2012
|
key: 9,
|
|
2013
2013
|
ref_key: "scaleLabels",
|
|
2014
|
-
ref:
|
|
2015
|
-
}, [(
|
|
2014
|
+
ref: Sn
|
|
2015
|
+
}, [(D(!0), C(y, null, k(Rr.value, (e, t) => (D(), C("line", {
|
|
2016
2016
|
key: `ytick_${t}`,
|
|
2017
|
-
class:
|
|
2018
|
-
x1:
|
|
2019
|
-
x2:
|
|
2017
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) }),
|
|
2018
|
+
x1: cr.value ? X.value.right : X.value.left,
|
|
2019
|
+
x2: cr.value ? X.value.right + 6 : X.value.left - 6,
|
|
2020
2020
|
y1: e.y,
|
|
2021
2021
|
y2: e.y,
|
|
2022
2022
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
2023
2023
|
"stroke-width": 1
|
|
2024
|
-
}, null, 10,
|
|
2025
|
-
class:
|
|
2024
|
+
}, null, 10, Ct))), 128)), (D(!0), C(y, null, k(Rr.value, (e, t) => (D(), C("text", {
|
|
2025
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) }),
|
|
2026
2026
|
transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
2027
2027
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2028
2028
|
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
2029
2029
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2030
|
-
"text-anchor":
|
|
2031
|
-
}, M(
|
|
2030
|
+
"text-anchor": cr.value ? "start" : "end"
|
|
2031
|
+
}, j(M(v)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, M(h)({
|
|
2032
2032
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2033
2033
|
v: e.value,
|
|
2034
2034
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
2035
2035
|
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
2036
|
-
}), { datapoint: e })), 11,
|
|
2037
|
-
z.value.style.chart.grid.x.timeLabels.show ? (
|
|
2036
|
+
}), { datapoint: e })), 11, wt))), 256))], 512)) : S("", !0),
|
|
2037
|
+
z.value.style.chart.grid.x.timeLabels.show ? (D(), C("g", {
|
|
2038
2038
|
key: 10,
|
|
2039
2039
|
ref_key: "timeLabelsEls",
|
|
2040
|
-
ref:
|
|
2041
|
-
}, [t.$slots["time-label"] ? (
|
|
2042
|
-
x: W.value.left +
|
|
2040
|
+
ref: Cn
|
|
2041
|
+
}, [t.$slots["time-label"] ? (D(), C("g", Tt, [(D(!0), C(y, null, k(Wr.value, (e, n) => (D(), C("g", null, [A(t.$slots, "time-label", qe({ ref_for: !0 }, {
|
|
2042
|
+
x: W.value.left + Dr.value * n + Dr.value / 2,
|
|
2043
2043
|
y: W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
2044
2044
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2045
2045
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2046
|
-
transform: `translate(${W.value.left +
|
|
2046
|
+
transform: `translate(${W.value.left + Dr.value * n + Dr.value / 2}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2047
2047
|
absoluteIndex: e.absoluteIndex,
|
|
2048
2048
|
content: e.text,
|
|
2049
2049
|
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2050
2050
|
show: !0
|
|
2051
|
-
}), void 0, !0)]))), 256))])) : (
|
|
2051
|
+
}), void 0, !0)]))), 256))])) : (D(), C("g", Et, [(D(!0), C(y, null, k(Wr.value, (e, n) => (D(), C("g", null, [String(e.text).includes("\n") ? (D(), C("text", {
|
|
2052
2052
|
key: n + "-multi",
|
|
2053
2053
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2054
2054
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2060,7 +2060,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2060
2060
|
),
|
|
2061
2061
|
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
2062
2062
|
`,
|
|
2063
|
-
style:
|
|
2063
|
+
style: Xe({ cursor: B.value ? "pointer" : "default" }),
|
|
2064
2064
|
innerHTML: t.createTSpansFromLineBreaksOnX({
|
|
2065
2065
|
content: String(e.text),
|
|
2066
2066
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2068,8 +2068,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2068
2068
|
x: 0,
|
|
2069
2069
|
y: 0
|
|
2070
2070
|
}),
|
|
2071
|
-
onClick: () =>
|
|
2072
|
-
}, null, 12,
|
|
2071
|
+
onClick: () => xi(e, n)
|
|
2072
|
+
}, null, 12, Ot)) : (D(), C("text", {
|
|
2073
2073
|
class: "vue-data-ui-time-label",
|
|
2074
2074
|
key: n,
|
|
2075
2075
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2077,25 +2077,25 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2077
2077
|
"font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
2078
2078
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2079
2079
|
transform: `translate(${Q(n)}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2080
|
-
style:
|
|
2081
|
-
onClick: () =>
|
|
2082
|
-
},
|
|
2083
|
-
(
|
|
2084
|
-
x:
|
|
2080
|
+
style: Xe({ cursor: B.value ? "pointer" : "default" }),
|
|
2081
|
+
onClick: () => xi(e, n)
|
|
2082
|
+
}, j(e.text), 13, Dt))]))), 256))]))], 512)) : S("", !0),
|
|
2083
|
+
(yn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (D(!0), C(y, { key: 11 }, k(q.value.end - q.value.start, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
|
|
2084
|
+
x: fi(t).x,
|
|
2085
2085
|
y: W.value.top,
|
|
2086
2086
|
height: W.value.height,
|
|
2087
|
-
width:
|
|
2088
|
-
fill: [
|
|
2087
|
+
width: fi(t).width,
|
|
2088
|
+
fill: [Fn.value, $.value].includes(t) ? M(n)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
|
|
2089
2089
|
style: {
|
|
2090
2090
|
transition: "none !important",
|
|
2091
2091
|
animation: "none !important"
|
|
2092
2092
|
}
|
|
2093
|
-
}, null, 8,
|
|
2094
|
-
(
|
|
2095
|
-
x1: Q(($.value ??
|
|
2096
|
-
x2: Q(($.value ??
|
|
2097
|
-
y1:
|
|
2098
|
-
y2:
|
|
2093
|
+
}, null, 8, kt)]))), 128)) : S("", !0),
|
|
2094
|
+
(yn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (D(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Fn.value) ? (D(), C("g", At, [w("line", {
|
|
2095
|
+
x1: Q(($.value ?? Fn.value) || 0),
|
|
2096
|
+
x2: Q(($.value ?? Fn.value) || 0),
|
|
2097
|
+
y1: M(ie)(W.value.top),
|
|
2098
|
+
y2: M(ie)(W.value.bottom),
|
|
2099
2099
|
stroke: z.value.style.chart.highlighter.color,
|
|
2100
2100
|
"stroke-width": z.value.style.chart.highlighter.lineWidth,
|
|
2101
2101
|
"stroke-dasharray": z.value.style.chart.highlighter.lineDasharray,
|
|
@@ -2105,8 +2105,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2105
2105
|
animation: "none !important",
|
|
2106
2106
|
"pointer-events": "none"
|
|
2107
2107
|
}
|
|
2108
|
-
}, null, 8,
|
|
2109
|
-
(
|
|
2108
|
+
}, null, 8, jt)])) : S("", !0)], 64)) : S("", !0),
|
|
2109
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, { key: `shp_sel_${e.id}` }, [yn.value && q.value.end - q.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(), C("g", Mt, [$.value == null ? S("", !0) : (D(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (D(), x(Ae, {
|
|
2110
2110
|
key: 0,
|
|
2111
2111
|
shape: [
|
|
2112
2112
|
"triangle",
|
|
@@ -2118,14 +2118,14 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2118
2118
|
].includes(e.shape) ? e.shape : "circle",
|
|
2119
2119
|
color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
|
|
2120
2120
|
plot: {
|
|
2121
|
-
x:
|
|
2122
|
-
y:
|
|
2121
|
+
x: M(_)(e.points[e.rel.indexOf($.value)].x),
|
|
2122
|
+
y: M(_)(e.points[e.rel.indexOf($.value)].y)
|
|
2123
2123
|
},
|
|
2124
2124
|
radius: z.value.style.chart.lines.dot.radius * 1.3,
|
|
2125
2125
|
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2126
2126
|
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2127
|
-
still:
|
|
2128
|
-
class:
|
|
2127
|
+
still: M(Bn),
|
|
2128
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) })
|
|
2129
2129
|
}, null, 8, [
|
|
2130
2130
|
"shape",
|
|
2131
2131
|
"color",
|
|
@@ -2136,7 +2136,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2136
2136
|
"still",
|
|
2137
2137
|
"class"
|
|
2138
2138
|
])) : S("", !0)], 64))])) : S("", !0)], 64))), 128)),
|
|
2139
|
-
(
|
|
2139
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, { key: `shp_${e.id}` }, [q.value.end - q.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(!0), C(y, { key: 0 }, k(e.points, (t, n) => (D(), C("g", { key: `shp_${e.id}_${q.value.start + n}` }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (D(), x(Ae, {
|
|
2140
2140
|
key: 0,
|
|
2141
2141
|
shape: [
|
|
2142
2142
|
"triangle",
|
|
@@ -2151,11 +2151,11 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2151
2151
|
x: t.x,
|
|
2152
2152
|
y: t.y
|
|
2153
2153
|
},
|
|
2154
|
-
radius:
|
|
2154
|
+
radius: yn.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
|
|
2155
2155
|
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2156
2156
|
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2157
|
-
still:
|
|
2158
|
-
class:
|
|
2157
|
+
still: M(Bn),
|
|
2158
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) })
|
|
2159
2159
|
}, null, 8, [
|
|
2160
2160
|
"shape",
|
|
2161
2161
|
"color",
|
|
@@ -2166,68 +2166,68 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2166
2166
|
"still",
|
|
2167
2167
|
"class"
|
|
2168
2168
|
])) : S("", !0)]))), 128)) : S("", !0)], 64))), 128)),
|
|
2169
|
-
H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (
|
|
2169
|
+
H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (D(), C(y, { key: 13 }, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("g", { key: `dl_${e.id}` }, [(D(!0), C(y, null, k(e.points, (n, r) => (D(), C(y, { key: `dp_${e.id}_${q.value.start + r}` }, [Zi(e.series[r], e.proportions[r]) ? (D(), C("text", {
|
|
2170
2170
|
key: 0,
|
|
2171
|
-
class:
|
|
2171
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) }),
|
|
2172
2172
|
transform: `translate(${n.x}, ${n.y + (e.series[r] >= 0 ? -z.value.style.chart.lines.dataLabels.fontSize / 2 + z.value.style.chart.lines.dataLabels.offsetY : z.value.style.chart.lines.dataLabels.fontSize * 1.2 - z.value.style.chart.lines.dataLabels.offsetY)})`,
|
|
2173
2173
|
"font-size": z.value.style.chart.lines.dataLabels.fontSize,
|
|
2174
2174
|
fill: z.value.style.chart.lines.dataLabels.color,
|
|
2175
2175
|
"font-weight": z.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
2176
2176
|
"text-anchor": "middle"
|
|
2177
|
-
},
|
|
2177
|
+
}, j(z.value.style.chart.lines.showDistributedPercentage && z.value.style.chart.lines.distributed ? ea(e.proportions[r] * 100, e, t, e.rel[r]) : $i(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Nt)) : S("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (D(), C("g", {
|
|
2178
2178
|
key: 0,
|
|
2179
2179
|
ref_key: "sumTop",
|
|
2180
|
-
ref:
|
|
2181
|
-
}, [(
|
|
2180
|
+
ref: wn
|
|
2181
|
+
}, [(D(!0), C(y, null, k(Fr.value, (e, t) => (D(), C(y, { key: `total_l_${t + q.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (D(), C("text", {
|
|
2182
2182
|
key: 0,
|
|
2183
|
-
class:
|
|
2184
|
-
transform: `translate(${Q(t)}, ${
|
|
2183
|
+
class: Ye({ "vue-data-ui-transition": M(Rn) }),
|
|
2184
|
+
transform: `translate(${Q(t)}, ${Lr(t)})`,
|
|
2185
2185
|
"text-anchor": "middle",
|
|
2186
2186
|
"font-size": z.value.style.chart.lines.totalValues.fontSize,
|
|
2187
2187
|
"font-weight": z.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
2188
2188
|
fill: z.value.style.chart.lines.totalValues.color
|
|
2189
|
-
},
|
|
2190
|
-
|
|
2189
|
+
}, j($i(e.value, e, t, t, e.sign)), 11, Pt)) : S("", !0)], 64))), 128))], 512)) : S("", !0)], 64)) : S("", !0),
|
|
2190
|
+
xr.value ? (D(), C("rect", qe({ key: 14 }, gr.value, {
|
|
2191
2191
|
"data-start": q.value.start,
|
|
2192
2192
|
"data-end": q.value.end
|
|
2193
|
-
}), null, 16,
|
|
2194
|
-
|
|
2193
|
+
}), null, 16, Ft)) : S("", !0),
|
|
2194
|
+
A(t.$slots, "svg", { svg: {
|
|
2195
2195
|
drawingArea: W.value,
|
|
2196
2196
|
data: Y.value,
|
|
2197
|
-
isPrintingImg:
|
|
2198
|
-
isPrintingSvg:
|
|
2197
|
+
isPrintingImg: M(Zn) || M(Qn) || M(Fi),
|
|
2198
|
+
isPrintingSvg: M(Ii)
|
|
2199
2199
|
} }, void 0, !0)
|
|
2200
|
-
], 46,
|
|
2200
|
+
], 46, ut)), t.$slots.hint ? (D(), C("div", It, [A(t.$slots, "hint", E(T({
|
|
2201
2201
|
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2202
|
-
isVisible:
|
|
2202
|
+
isVisible: ra.value
|
|
2203
2203
|
})), void 0, !0)])) : S("", !0)]),
|
|
2204
|
-
t.$slots.watermark ? (
|
|
2205
|
-
|
|
2204
|
+
t.$slots.watermark ? (D(), C("div", Lt, [A(t.$slots, "watermark", E(T({ isPrinting: M(Zn) || M(Qn) || M(Fi) || M(Ii) })), void 0, !0)])) : S("", !0),
|
|
2205
|
+
gn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (D(), x(He, {
|
|
2206
2206
|
key: 6,
|
|
2207
2207
|
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
2208
2208
|
}, [w("div", {
|
|
2209
2209
|
ref_key: "chartLegend",
|
|
2210
|
-
ref:
|
|
2211
|
-
}, [
|
|
2210
|
+
ref: sn
|
|
2211
|
+
}, [A(t.$slots, "legend", { legend: wi.value }, () => [z.value.style.chart.legend.show ? (D(), x(Be, {
|
|
2212
2212
|
key: 0,
|
|
2213
|
-
legendSet:
|
|
2214
|
-
config:
|
|
2213
|
+
legendSet: wi.value,
|
|
2214
|
+
config: Ti.value,
|
|
2215
2215
|
isCursorPointer: B.value,
|
|
2216
2216
|
onClickMarker: r[0] ||= ({ legend: e }) => e.segregate()
|
|
2217
2217
|
}, Ue({
|
|
2218
|
-
item:
|
|
2218
|
+
item: N(({ legend: e }) => [M(Bn) ? S("", !0) : (D(), C("div", {
|
|
2219
2219
|
key: 0,
|
|
2220
2220
|
onClick: (t) => e.segregate(),
|
|
2221
|
-
style:
|
|
2222
|
-
},
|
|
2223
|
-
legendToggle:
|
|
2221
|
+
style: Xe(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2222
|
+
}, j(e.name), 13, Rt))]),
|
|
2223
|
+
legendToggle: N(() => [wi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !M(Bn) ? (D(), x(Ie, {
|
|
2224
2224
|
key: 0,
|
|
2225
2225
|
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2226
2226
|
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
2227
2227
|
fontSize: z.value.style.chart.legend.fontSize,
|
|
2228
2228
|
checked: L.value.length > 0,
|
|
2229
2229
|
isCursorPointer: B.value,
|
|
2230
|
-
onToggle:
|
|
2230
|
+
onToggle: Si
|
|
2231
2231
|
}, null, 8, [
|
|
2232
2232
|
"backgroundColor",
|
|
2233
2233
|
"color",
|
|
@@ -2238,7 +2238,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2238
2238
|
_: 2
|
|
2239
2239
|
}, [t.$slots.pattern ? {
|
|
2240
2240
|
name: "legend-pattern",
|
|
2241
|
-
fn:
|
|
2241
|
+
fn: N(({ legend: e, index: t }) => [Ge(Ae, {
|
|
2242
2242
|
shape: e.shape,
|
|
2243
2243
|
radius: 30,
|
|
2244
2244
|
stroke: "none",
|
|
@@ -2254,23 +2254,27 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2254
2254
|
"config",
|
|
2255
2255
|
"isCursorPointer"
|
|
2256
2256
|
])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
2257
|
-
|
|
2257
|
+
nn.value && z.value.userOptions.buttons.table ? (D(), x($e(Bi.value.component), qe({ key: 7 }, Bi.value.props, {
|
|
2258
2258
|
ref_key: "tableUnit",
|
|
2259
|
-
ref:
|
|
2260
|
-
onClose:
|
|
2259
|
+
ref: _n,
|
|
2260
|
+
onClose: Vi
|
|
2261
2261
|
}), Ue({
|
|
2262
|
-
content:
|
|
2263
|
-
colNames:
|
|
2264
|
-
head:
|
|
2265
|
-
body:
|
|
2266
|
-
config:
|
|
2267
|
-
title: z.value.table.useDialog ? "" :
|
|
2262
|
+
content: N(() => [Ge(M(Kt), {
|
|
2263
|
+
colNames: ji.value.colNames,
|
|
2264
|
+
head: ji.value.head,
|
|
2265
|
+
body: ji.value.body,
|
|
2266
|
+
config: ji.value.config,
|
|
2267
|
+
title: z.value.table.useDialog ? "" : Bi.value.title,
|
|
2268
2268
|
withCloseButton: !z.value.table.useDialog,
|
|
2269
2269
|
isCursorPointer: B.value,
|
|
2270
|
-
onClose:
|
|
2270
|
+
onClose: Vi
|
|
2271
2271
|
}, {
|
|
2272
|
-
th:
|
|
2273
|
-
|
|
2272
|
+
th: N(({ th: e }) => [e === "__SUM__" ? (D(), C("div", zt, [Ge(M(Wt), {
|
|
2273
|
+
name: "sigma",
|
|
2274
|
+
stroke: ji.value.config.th.color,
|
|
2275
|
+
size: 16
|
|
2276
|
+
}, null, 8, ["stroke"])])) : (D(), C("div", Bt, j(e), 1))]),
|
|
2277
|
+
td: N(({ td: e }) => [We(j(isNaN(Number(e)) ? e : M(h)({
|
|
2274
2278
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2275
2279
|
v: e,
|
|
2276
2280
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -2289,27 +2293,27 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2289
2293
|
_: 2
|
|
2290
2294
|
}, [z.value.table.useDialog ? {
|
|
2291
2295
|
name: "title",
|
|
2292
|
-
fn:
|
|
2296
|
+
fn: N(() => [We(j(Bi.value.title), 1)]),
|
|
2293
2297
|
key: "0"
|
|
2294
2298
|
} : void 0, z.value.table.useDialog ? {
|
|
2295
2299
|
name: "actions",
|
|
2296
|
-
fn:
|
|
2300
|
+
fn: N(() => [w("button", {
|
|
2297
2301
|
tabindex: "0",
|
|
2298
2302
|
class: "vue-ui-user-options-button",
|
|
2299
|
-
onClick: r[1] ||= (e) =>
|
|
2300
|
-
style:
|
|
2301
|
-
}, [Ge(
|
|
2303
|
+
onClick: r[1] ||= (e) => Ai(z.value.userOptions.callbacks.csv),
|
|
2304
|
+
style: Xe({ cursor: B.value ? "pointer" : "default" })
|
|
2305
|
+
}, [Ge(M(Wt), {
|
|
2302
2306
|
name: "fileCsv",
|
|
2303
|
-
stroke:
|
|
2307
|
+
stroke: Bi.value.props.color
|
|
2304
2308
|
}, null, 8, ["stroke"])], 4)]),
|
|
2305
2309
|
key: "1"
|
|
2306
2310
|
} : void 0]), 1040)) : S("", !0),
|
|
2307
|
-
z.value.style.chart.zoom.show &&
|
|
2311
|
+
z.value.style.chart.zoom.show && nn.value && $r.value && K.value > 6 ? (D(), x(Fe, {
|
|
2308
2312
|
key: 8,
|
|
2309
2313
|
ref_key: "chartSlicer",
|
|
2310
|
-
ref:
|
|
2314
|
+
ref: cn,
|
|
2311
2315
|
"data-dom-to-png-ignore-layout": "",
|
|
2312
|
-
allMinimaps:
|
|
2316
|
+
allMinimaps: jr.value,
|
|
2313
2317
|
background: z.value.style.chart.zoom.color,
|
|
2314
2318
|
borderColor: z.value.style.chart.backgroundColor,
|
|
2315
2319
|
customFormat: z.value.style.chart.zoom.customFormat,
|
|
@@ -2322,12 +2326,12 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2322
2326
|
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2323
2327
|
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2324
2328
|
inputColor: z.value.style.chart.zoom.color,
|
|
2325
|
-
isPreview:
|
|
2326
|
-
labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ?
|
|
2327
|
-
labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ?
|
|
2329
|
+
isPreview: xr.value,
|
|
2330
|
+
labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ? zr.value?.[0]?.text ?? "" : "",
|
|
2331
|
+
labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? zr.value?.at(-1)?.text ?? "" : "",
|
|
2328
2332
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2329
2333
|
min: 0,
|
|
2330
|
-
minimap:
|
|
2334
|
+
minimap: Ar.value,
|
|
2331
2335
|
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2332
2336
|
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2333
2337
|
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -2336,15 +2340,15 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2336
2340
|
minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2337
2341
|
minimapSelectedIndex: $.value,
|
|
2338
2342
|
minimapSelectionRadius: 1,
|
|
2339
|
-
preciseLabels:
|
|
2343
|
+
preciseLabels: Jr.value.length ? Jr.value : Br.value,
|
|
2340
2344
|
refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
|
|
2341
2345
|
refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
|
|
2342
2346
|
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2343
|
-
selectedSeries:
|
|
2347
|
+
selectedSeries: Ji.value,
|
|
2344
2348
|
smoothMinimap: !1,
|
|
2345
2349
|
start: q.value.start,
|
|
2346
2350
|
textColor: z.value.style.chart.color,
|
|
2347
|
-
timeLabels:
|
|
2351
|
+
timeLabels: Br.value,
|
|
2348
2352
|
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2349
2353
|
valueEnd: q.value.end,
|
|
2350
2354
|
valueStart: q.value.start,
|
|
@@ -2360,25 +2364,25 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2360
2364
|
handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2361
2365
|
handleFill: z.value.style.chart.zoom.minimap.handleFill,
|
|
2362
2366
|
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2363
|
-
"onUpdate:end":
|
|
2364
|
-
"onUpdate:start":
|
|
2365
|
-
onTrapMouse:
|
|
2366
|
-
onReset: r[2] ||= () =>
|
|
2367
|
-
onFutureEnd: r[3] ||= (e) =>
|
|
2368
|
-
onFutureStart: r[4] ||= (e) =>
|
|
2367
|
+
"onUpdate:end": ri,
|
|
2368
|
+
"onUpdate:start": ni,
|
|
2369
|
+
onTrapMouse: yr,
|
|
2370
|
+
onReset: r[2] ||= () => Er({ force: !0 }),
|
|
2371
|
+
onFutureEnd: r[3] ||= (e) => Sr("end", e),
|
|
2372
|
+
onFutureStart: r[4] ||= (e) => Sr("start", e)
|
|
2369
2373
|
}, {
|
|
2370
|
-
"reset-action":
|
|
2371
|
-
slotMap:
|
|
2374
|
+
"reset-action": N(({ reset: e }) => [A(t.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
|
|
2375
|
+
slotMap: N(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Xi({
|
|
2372
2376
|
minimapW: e,
|
|
2373
2377
|
minimapH: t,
|
|
2374
2378
|
unitW: n
|
|
2375
|
-
}) }, null, 8,
|
|
2379
|
+
}) }, null, 8, Vt)]),
|
|
2376
2380
|
_: 3
|
|
2377
2381
|
}, 8, /* @__PURE__ */ "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.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
|
|
2378
|
-
w("div", { id: `legend-bottom-${I.value}` }, null, 8,
|
|
2379
|
-
Ge(
|
|
2382
|
+
w("div", { id: `legend-bottom-${I.value}` }, null, 8, Ht),
|
|
2383
|
+
Ge(M(Ut), {
|
|
2380
2384
|
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2381
|
-
show: H.value.showTooltip &&
|
|
2385
|
+
show: H.value.showTooltip && rn.value,
|
|
2382
2386
|
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
2383
2387
|
color: z.value.style.chart.tooltip.color,
|
|
2384
2388
|
fontSize: z.value.style.chart.tooltip.fontSize,
|
|
@@ -2389,20 +2393,20 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2389
2393
|
position: z.value.style.chart.tooltip.position,
|
|
2390
2394
|
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2391
2395
|
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2392
|
-
parent:
|
|
2393
|
-
content:
|
|
2394
|
-
isFullscreen:
|
|
2396
|
+
parent: F.value,
|
|
2397
|
+
content: yi.value,
|
|
2398
|
+
isFullscreen: dn.value,
|
|
2395
2399
|
isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
|
|
2396
2400
|
smooth: z.value.style.chart.tooltip.smooth,
|
|
2397
2401
|
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2398
2402
|
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
2399
2403
|
smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2400
|
-
isA11yMode:
|
|
2401
|
-
a11yPosition:
|
|
2404
|
+
isA11yMode: An.value === "keyboard",
|
|
2405
|
+
a11yPosition: kn.value
|
|
2402
2406
|
}, {
|
|
2403
|
-
"tooltip-before":
|
|
2404
|
-
tooltip:
|
|
2405
|
-
"tooltip-after":
|
|
2407
|
+
"tooltip-before": N(() => [A(t.$slots, "tooltip-before", E(T({ ...Zr.value })), void 0, !0)]),
|
|
2408
|
+
tooltip: N(() => [A(t.$slots, "tooltip", E(T({ ...Zr.value })), void 0, !0)]),
|
|
2409
|
+
"tooltip-after": N(() => [A(t.$slots, "tooltip-after", E(T({ ...Zr.value })), void 0, !0)]),
|
|
2406
2410
|
_: 3
|
|
2407
2411
|
}, 8, [
|
|
2408
2412
|
"teleportTo",
|
|
@@ -2428,15 +2432,15 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
|
|
|
2428
2432
|
"isA11yMode",
|
|
2429
2433
|
"a11yPosition"
|
|
2430
2434
|
]),
|
|
2431
|
-
t.$slots.source ? (
|
|
2435
|
+
t.$slots.source ? (D(), C("div", {
|
|
2432
2436
|
key: 9,
|
|
2433
2437
|
ref_key: "source",
|
|
2434
|
-
ref:
|
|
2438
|
+
ref: un,
|
|
2435
2439
|
dir: "auto"
|
|
2436
|
-
}, [
|
|
2437
|
-
|
|
2438
|
-
], 46,
|
|
2440
|
+
}, [A(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
2441
|
+
A(t.$slots, "skeleton", {}, () => [M(Bn) ? (D(), x(xe, { key: 0 })) : S("", !0)], !0)
|
|
2442
|
+
], 46, ot));
|
|
2439
2443
|
}
|
|
2440
|
-
}, [["__scopeId", "data-v-
|
|
2444
|
+
}, [["__scopeId", "data-v-682d61ea"]]);
|
|
2441
2445
|
//#endregion
|
|
2442
|
-
export {
|
|
2446
|
+
export { at as n, Ut as t };
|