vue-data-ui 3.23.10 → 3.23.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -40
- package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.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-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
- package/dist/{package-enC-Nivt.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-CqcoYfCA.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CtT2BovY.js +1829 -0
- package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-BCQ97z1G.js} +237 -237
- package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-DZTtuFAG.js} +85 -85
- package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-BZywCpHd.js} +229 -229
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-BuGd-Ojm.js} +64 -64
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-ERAB4YzZ.js} +176 -176
- package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-BPp7L6OP.js} +20 -20
- package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-CX5ut2yp.js} +104 -104
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-MSs0pdhE.js} +605 -605
- package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-Df-TomML.js} +57 -57
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-90_Clj0e.js} +44 -44
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-AgMvmPlI.js} +32 -32
- package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-D0Z9B6M2.js} +116 -116
- package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-5Te2TfRK.js} +304 -304
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-vfRiIvq_.js +0 -28
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
- package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
- package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
- package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
- package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
- package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
- package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
- package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
- package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
- package/dist/vue-ui-onion-C27GpneA.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
- package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
- package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
- package/dist/vue-ui-rings-obVfb09j.js +0 -1250
- package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
- package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
- package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
- package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
- package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
- package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
- package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { n as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { l as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, At as n, Ct as r, D as i, Ht as a, It as o, Jt as s, Kt as c, M as l, Nt as u, P as d, S as f, St as p, V as m, X as h, Xt as g, _, b as v, c as ee, ft as te, i as y, lt as ne, mt as re, nt as ie, q as ae, qt as oe, st as se, t as ce, v as le, w as ue, z as de } from "./lib-Dqr_-I6Y.js";
|
|
3
|
+
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { n as me, r as he, t as ge } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as _e } from "./useConfig-DwdGsXTx.js";
|
|
6
|
+
import { t as ve } from "./usePrinter-CEiH1b6R.js";
|
|
7
|
+
import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as xe } from "./useNestedProp-CulPqtou.js";
|
|
9
|
+
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Ce } from "./useChartExport-DNiwdPmb.js";
|
|
11
|
+
import { t as we } from "./useTransitions-g_zBREk2.js";
|
|
12
|
+
import { t as Te } from "./useStableElementSize-C7KADDKj.js";
|
|
13
|
+
import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
+
import { t as De } from "./img-Bkzj3lDD.js";
|
|
15
|
+
import { n as Oe } from "./Title-CaVA8EIw.js";
|
|
16
|
+
import { t as ke } from "./Shape-BAL5bQmA.js";
|
|
17
|
+
import { t as Ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
18
|
+
import { l as je, t as Me } from "./useResponsive-ZtArZtUf.js";
|
|
19
|
+
import { t as Ne } from "./DefGrad-DVBqDjhO.js";
|
|
20
|
+
import { t as Pe } from "./SlicerPreview-BRRyc1p7.js";
|
|
21
|
+
import { t as Fe } from "./BaseLegendToggle-CtEdLr4R.js";
|
|
22
|
+
import { t as Ie } from "./A11yDataTable-DdRsVULz.js";
|
|
23
|
+
import { t as Le } from "./useUserOptionState-DK-_1ddE.js";
|
|
24
|
+
import { t as Re } from "./useChartAccessibility-DYqac8yF.js";
|
|
25
|
+
import { t as ze } from "./Legend-BJtY2RA9.js";
|
|
26
|
+
import { t as Be } from "./vue_ui_stackline-DQqKPA9z.js";
|
|
27
|
+
import { Fragment as b, Teleport as Ve, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as He, createTextVNode as Ue, createVNode as We, defineAsyncComponent as Ge, guardReactiveProps as E, mergeProps as Ke, nextTick as qe, normalizeClass as Je, normalizeProps as D, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as M, toRefs as et, unref as N, useSlots as tt, watch as nt, watchEffect as rt, withCtx as P } from "vue";
|
|
28
28
|
//#region src/components/vue-ui-stackline.vue
|
|
29
|
-
var
|
|
29
|
+
var it = /* @__PURE__ */ e({ default: () => Ht }), at = ["id"], ot = ["id"], st = ["id"], ct = { style: { position: "relative" } }, lt = [
|
|
30
30
|
"aria-describedby",
|
|
31
31
|
"xmlns",
|
|
32
32
|
"viewBox"
|
|
33
|
-
],
|
|
33
|
+
], ut = { key: 0 }, dt = [
|
|
34
34
|
"x",
|
|
35
35
|
"y",
|
|
36
36
|
"width",
|
|
37
37
|
"height"
|
|
38
|
-
],
|
|
38
|
+
], ft = { key: 1 }, pt = [
|
|
39
39
|
"x1",
|
|
40
40
|
"x2",
|
|
41
41
|
"y1",
|
|
@@ -43,7 +43,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
43
43
|
"stroke",
|
|
44
44
|
"stroke-width",
|
|
45
45
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
46
|
+
], mt = [
|
|
47
47
|
"x1",
|
|
48
48
|
"x2",
|
|
49
49
|
"y1",
|
|
@@ -51,32 +51,32 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
51
51
|
"stroke",
|
|
52
52
|
"stroke-width",
|
|
53
53
|
"stroke-dasharray"
|
|
54
|
-
],
|
|
54
|
+
], ht = [
|
|
55
55
|
"x1",
|
|
56
56
|
"x2",
|
|
57
57
|
"y1",
|
|
58
58
|
"y2",
|
|
59
59
|
"stroke",
|
|
60
60
|
"stroke-width"
|
|
61
|
-
],
|
|
61
|
+
], gt = [
|
|
62
62
|
"x1",
|
|
63
63
|
"x2",
|
|
64
64
|
"y1",
|
|
65
65
|
"y2",
|
|
66
66
|
"stroke",
|
|
67
67
|
"stroke-width"
|
|
68
|
-
],
|
|
68
|
+
], _t = [
|
|
69
69
|
"x",
|
|
70
70
|
"y",
|
|
71
71
|
"font-size",
|
|
72
72
|
"fill",
|
|
73
73
|
"font-weight"
|
|
74
|
-
],
|
|
74
|
+
], vt = [
|
|
75
75
|
"transform",
|
|
76
76
|
"font-size",
|
|
77
77
|
"fill",
|
|
78
78
|
"font-weight"
|
|
79
|
-
],
|
|
79
|
+
], yt = [
|
|
80
80
|
"x",
|
|
81
81
|
"y",
|
|
82
82
|
"width",
|
|
@@ -86,47 +86,47 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
86
86
|
"stroke-linecap",
|
|
87
87
|
"stroke-linejoin",
|
|
88
88
|
"stroke-dasharray"
|
|
89
|
-
],
|
|
89
|
+
], bt = [
|
|
90
90
|
"d",
|
|
91
91
|
"fill",
|
|
92
92
|
"opacity"
|
|
93
|
-
],
|
|
93
|
+
], xt = [
|
|
94
94
|
"d",
|
|
95
95
|
"stroke",
|
|
96
96
|
"stroke-width"
|
|
97
|
-
],
|
|
97
|
+
], St = [
|
|
98
98
|
"x1",
|
|
99
99
|
"x2",
|
|
100
100
|
"y1",
|
|
101
101
|
"y2",
|
|
102
102
|
"stroke"
|
|
103
|
-
],
|
|
103
|
+
], Ct = [
|
|
104
104
|
"transform",
|
|
105
105
|
"font-size",
|
|
106
106
|
"font-weight",
|
|
107
107
|
"fill",
|
|
108
108
|
"text-anchor"
|
|
109
|
-
],
|
|
109
|
+
], wt = { key: 0 }, Tt = { key: 1 }, Et = [
|
|
110
110
|
"text-anchor",
|
|
111
111
|
"font-size",
|
|
112
112
|
"font-weight",
|
|
113
113
|
"fill",
|
|
114
114
|
"transform",
|
|
115
115
|
"onClick"
|
|
116
|
-
],
|
|
116
|
+
], Dt = [
|
|
117
117
|
"text-anchor",
|
|
118
118
|
"font-size",
|
|
119
119
|
"fill",
|
|
120
120
|
"transform",
|
|
121
121
|
"innerHTML",
|
|
122
122
|
"onClick"
|
|
123
|
-
],
|
|
123
|
+
], Ot = [
|
|
124
124
|
"x",
|
|
125
125
|
"y",
|
|
126
126
|
"height",
|
|
127
127
|
"width",
|
|
128
128
|
"fill"
|
|
129
|
-
],
|
|
129
|
+
], kt = { key: 0 }, At = [
|
|
130
130
|
"x1",
|
|
131
131
|
"x2",
|
|
132
132
|
"y1",
|
|
@@ -134,17 +134,17 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
134
134
|
"stroke",
|
|
135
135
|
"stroke-width",
|
|
136
136
|
"stroke-dasharray"
|
|
137
|
-
],
|
|
137
|
+
], jt = { key: 0 }, Mt = [
|
|
138
138
|
"transform",
|
|
139
139
|
"font-size",
|
|
140
140
|
"fill",
|
|
141
141
|
"font-weight"
|
|
142
|
-
],
|
|
142
|
+
], Nt = [
|
|
143
143
|
"transform",
|
|
144
144
|
"font-size",
|
|
145
145
|
"font-weight",
|
|
146
146
|
"fill"
|
|
147
|
-
],
|
|
147
|
+
], Pt = ["data-start", "data-end"], Ft = {
|
|
148
148
|
key: 0,
|
|
149
149
|
style: {
|
|
150
150
|
position: "absolute",
|
|
@@ -154,10 +154,10 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
154
154
|
},
|
|
155
155
|
"data-dom-to-png-ignore": "",
|
|
156
156
|
"aria-hidden": "true"
|
|
157
|
-
},
|
|
157
|
+
}, It = {
|
|
158
158
|
key: 5,
|
|
159
159
|
class: "vue-data-ui-watermark"
|
|
160
|
-
},
|
|
160
|
+
}, Lt = ["onClick"], Rt = { key: 0 }, zt = { key: 1 }, Bt = ["innerHTML"], Vt = ["id"], Ht = /*#__PURE__*/ Ae({
|
|
161
161
|
__name: "vue-ui-stackline",
|
|
162
162
|
props: {
|
|
163
163
|
config: {
|
|
@@ -184,18 +184,18 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
184
184
|
"selectX",
|
|
185
185
|
"copyAlt"
|
|
186
186
|
],
|
|
187
|
-
setup(e, { expose:
|
|
188
|
-
let
|
|
187
|
+
setup(e, { expose: Ae, emit: it }) {
|
|
188
|
+
let Ht = Ge(() => import("./Tooltip-CVxJe3UW.js")), Ut = Ge(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Wt = Ge(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Gt = Ge(() => import("./DataTable-CmyEubtT.js")), Kt = Ge(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), qt = Ge(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Jt = Ge(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), Yt = Ge(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_stackline: Xt } = _e(), { isThemeValid: Zt, warnInvalidTheme: Qt } = Se(), $t = tt(), F = e, en = it, tn = x({
|
|
189
189
|
get() {
|
|
190
|
-
return !!
|
|
190
|
+
return !!F.dataset && F.dataset.length;
|
|
191
191
|
},
|
|
192
192
|
set(e) {
|
|
193
193
|
return e;
|
|
194
194
|
}
|
|
195
|
-
}),
|
|
195
|
+
}), nn = k(null), I = k(ae()), rn = k(!1), L = k([]), an = k(0), on = k(null), sn = k(null), cn = k(null), ln = k(null), un = k(null), dn = k(!1), fn = k(!1), pn = k(0), mn = k(0), hn = k(0), gn = k(!1), _n = k(null), vn = k(null), yn = k(!1), bn = k(null), xn = k(null), Sn = k(null), Cn = k(null), wn = k(null), Tn = $e(null), En = k(!1), Dn = k(0), On = k(0), R = k(null), kn = k({
|
|
196
196
|
x: 0,
|
|
197
197
|
y: 0
|
|
198
|
-
}), An =
|
|
198
|
+
}), An = k("pointer"), jn = Te({
|
|
199
199
|
elementRef: Tn,
|
|
200
200
|
minimumWidth: 2,
|
|
201
201
|
minimumHeight: 2,
|
|
@@ -206,7 +206,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
function Mn() {
|
|
209
|
-
Tn.value =
|
|
209
|
+
Tn.value = nn.value?.parentNode ?? null;
|
|
210
210
|
}
|
|
211
211
|
function Nn() {
|
|
212
212
|
return new Promise((e) => {
|
|
@@ -217,22 +217,22 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
217
217
|
}
|
|
218
218
|
async function Pn() {
|
|
219
219
|
let e = ++On.value;
|
|
220
|
-
En.value = !1, await
|
|
220
|
+
En.value = !1, await qe(), await Nn(), await Nn(), e === On.value && (Dn.value += 1, En.value = !0);
|
|
221
221
|
}
|
|
222
|
-
let Fn =
|
|
222
|
+
let Fn = k(null), In = k(!1);
|
|
223
223
|
function Ln() {
|
|
224
224
|
In.value = !In.value;
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
Mn(), jn.start(), gn.value = !0,
|
|
226
|
+
Ze(() => {
|
|
227
|
+
Mn(), jn.start(), gn.value = !0, cr(), Pn();
|
|
228
228
|
});
|
|
229
|
-
let z =
|
|
230
|
-
|
|
229
|
+
let z = k(Yn());
|
|
230
|
+
fe({
|
|
231
231
|
config: () => z.value,
|
|
232
|
-
dataset: () =>
|
|
232
|
+
dataset: () => F.dataset,
|
|
233
233
|
component: "VueUiStackline",
|
|
234
234
|
rules: [
|
|
235
|
-
|
|
235
|
+
pe.emptyArray,
|
|
236
236
|
{
|
|
237
237
|
test: (e) => e.some((e) => e.series.length > 200),
|
|
238
238
|
message: [
|
|
@@ -255,10 +255,10 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
255
255
|
}
|
|
256
256
|
]
|
|
257
257
|
});
|
|
258
|
-
let { transitionEnabled: Rn } =
|
|
258
|
+
let { transitionEnabled: Rn } = we({
|
|
259
259
|
config: () => z.value.transitions,
|
|
260
|
-
dataset: () =>
|
|
261
|
-
}), B =
|
|
260
|
+
dataset: () => F.dataset
|
|
261
|
+
}), B = x(() => z.value.userOptions.useCursorPointer), zn = x(() => g({
|
|
262
262
|
defaultConfig: {
|
|
263
263
|
userOptions: { show: !1 },
|
|
264
264
|
useCssAnimation: !1,
|
|
@@ -304,16 +304,16 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
304
304
|
} }
|
|
305
305
|
},
|
|
306
306
|
userConfig: z.value.skeletonConfig ?? {}
|
|
307
|
-
})), { loading: Bn, FINAL_DATASET: Vn, manualLoading: Hn } =
|
|
308
|
-
...
|
|
307
|
+
})), { loading: Bn, FINAL_DATASET: Vn, manualLoading: Hn } = ye({
|
|
308
|
+
...et(F),
|
|
309
309
|
FINAL_CONFIG: z,
|
|
310
|
-
prepareConfig:
|
|
310
|
+
prepareConfig: Yn,
|
|
311
311
|
callback: () => {
|
|
312
312
|
Promise.resolve().then(async () => {
|
|
313
|
-
(!z.value.style.chart.zoom.keepState || !$r.value ||
|
|
313
|
+
(!z.value.style.chart.zoom.keepState || !$r.value || K.value.start === 0 && K.value.end === 0) && await ti();
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
|
-
skeletonDataset:
|
|
316
|
+
skeletonDataset: F.config?.skeletonDataset ?? [{
|
|
317
317
|
name: "",
|
|
318
318
|
series: [
|
|
319
319
|
3,
|
|
@@ -344,71 +344,71 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
344
344
|
],
|
|
345
345
|
color: "#CACACA"
|
|
346
346
|
}],
|
|
347
|
-
skeletonConfig:
|
|
347
|
+
skeletonConfig: g({
|
|
348
348
|
defaultConfig: z.value,
|
|
349
349
|
userConfig: zn.value
|
|
350
350
|
})
|
|
351
|
-
}), { userOptionsVisible: Un, setUserOptionsVisibility: Wn, keepUserOptionState: Gn } =
|
|
352
|
-
function
|
|
351
|
+
}), { userOptionsVisible: Un, setUserOptionsVisibility: Wn, keepUserOptionState: Gn } = Le({ config: z.value }), { svgRef: Kn } = Re({ config: z.value.style.chart.title });
|
|
352
|
+
function qn() {
|
|
353
353
|
yn.value = !0, Wn(!0);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
Wn(!1), yn.value = !1, R.value = null, An.value = "pointer", rn.value = !1, $.value = null,
|
|
355
|
+
function Jn() {
|
|
356
|
+
Wn(!1), yn.value = !1, R.value = null, An.value = "pointer", rn.value = !1, $.value = null, en("selectX", {
|
|
357
357
|
index: null,
|
|
358
358
|
indexLabel: null,
|
|
359
359
|
dataset: null
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
let e =
|
|
364
|
-
userConfig:
|
|
365
|
-
defaultConfig:
|
|
362
|
+
function Yn() {
|
|
363
|
+
let e = xe({
|
|
364
|
+
userConfig: F.config,
|
|
365
|
+
defaultConfig: Xt
|
|
366
366
|
}), t = {}, n = e.theme;
|
|
367
|
-
if (n) if (!
|
|
367
|
+
if (n) if (!Zt.value(e)) Qt(e), t = e;
|
|
368
368
|
else {
|
|
369
|
-
let r =
|
|
370
|
-
userConfig:
|
|
369
|
+
let r = xe({
|
|
370
|
+
userConfig: Be[n] || F.config,
|
|
371
371
|
defaultConfig: e
|
|
372
372
|
});
|
|
373
373
|
t = {
|
|
374
|
-
...
|
|
375
|
-
userConfig:
|
|
374
|
+
...xe({
|
|
375
|
+
userConfig: F.config,
|
|
376
376
|
defaultConfig: r
|
|
377
377
|
}),
|
|
378
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
378
|
+
customPalette: e.customPalette.length ? e.customPalette : s[n] || o
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
else t = e;
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
|
-
let
|
|
385
|
-
|
|
386
|
-
Bn.value || (z.value =
|
|
384
|
+
let Xn = x(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Zn = x(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
385
|
+
nt(() => F.config, (e) => {
|
|
386
|
+
Bn.value || (z.value = Yn()), Un.value = !z.value.userOptions.showOnChartHover, cr({ resetSlicer: !z.value.style.chart.zoom.keepState }), pn.value += 1, mn.value += 1, hn.value += 1, V.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, V.value.showTable = z.value.table.show, V.value.showTooltip = z.value.style.chart.tooltip.show, H.value.width = z.value.style.chart.width, H.value.height = z.value.style.chart.height, H.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
|
-
}, Mn(), Pn(), !z.value.style.chart.zoom.keepState || !$r.value ||
|
|
392
|
-
}, { deep: !0 }),
|
|
393
|
-
Array.isArray(e) && e.length > 0 && (Hn.value = !1), z.value.style.chart.zoom.keepState ?
|
|
391
|
+
}, Mn(), Pn(), !z.value.style.chart.zoom.keepState || !$r.value || K.value.start === 0 && K.value.end === 0 ? ti() : wr();
|
|
392
|
+
}, { deep: !0 }), nt(() => F.dataset, (e) => {
|
|
393
|
+
Array.isArray(e) && e.length > 0 && (Hn.value = !1), z.value.style.chart.zoom.keepState ? wr() : Dr(), Mn(), Pn();
|
|
394
394
|
}, { deep: !0 });
|
|
395
|
-
let
|
|
395
|
+
let V = k({
|
|
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
|
-
|
|
401
|
-
|
|
400
|
+
nt(z, () => {
|
|
401
|
+
V.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: Qn, isImaging: $n, generatePdf: er, generateImage: tr } = ve({
|
|
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
|
+
}), nr = x(() => z.value.userOptions.show && !z.value.style.chart.title.text), H = k({
|
|
412
412
|
width: z.value.style.chart.width,
|
|
413
413
|
height: z.value.style.chart.height,
|
|
414
414
|
paddingRatio: {
|
|
@@ -417,53 +417,53 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
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 (
|
|
420
|
+
}), rr = x(() => ue(z.value.customPalette)), ir = $e(null), ar = $e(null), or = k(null), sr = x(() => z.value.debug);
|
|
421
|
+
function cr({ resetSlicer: e = !0 } = {}) {
|
|
422
|
+
if (u(F.dataset) ? (ie({
|
|
423
423
|
componentName: "VueUiStackline",
|
|
424
424
|
type: "dataset",
|
|
425
|
-
debug:
|
|
426
|
-
}), Hn.value = !0) :
|
|
427
|
-
|
|
425
|
+
debug: sr.value
|
|
426
|
+
}), Hn.value = !0) : F.dataset.forEach((e, t) => {
|
|
427
|
+
re({
|
|
428
428
|
datasetObject: e,
|
|
429
429
|
requiredAttributes: ["name", "series"]
|
|
430
430
|
}).forEach((e) => {
|
|
431
|
-
|
|
431
|
+
tn.value = !1, ie({
|
|
432
432
|
componentName: "VueUiStackline",
|
|
433
433
|
type: "datasetSerieAttribute",
|
|
434
434
|
property: e,
|
|
435
435
|
index: t,
|
|
436
|
-
debug:
|
|
436
|
+
debug: sr.value
|
|
437
437
|
}), Hn.value = !0;
|
|
438
438
|
});
|
|
439
|
-
}),
|
|
439
|
+
}), u(F.dataset) || (Hn.value = z.value.loading), setTimeout(() => {
|
|
440
440
|
fn.value = !0;
|
|
441
441
|
}, 10), z.value.responsive) {
|
|
442
|
-
let e =
|
|
442
|
+
let e = je(() => {
|
|
443
443
|
fn.value = !1;
|
|
444
|
-
let { width: e, height: t } =
|
|
445
|
-
chart:
|
|
444
|
+
let { width: e, height: t } = Me({
|
|
445
|
+
chart: nn.value,
|
|
446
446
|
noTitle: ln.value,
|
|
447
447
|
title: z.value.style.chart.title.text ? on.value : null,
|
|
448
448
|
legend: z.value.style.chart.legend.show ? sn.value : null,
|
|
449
|
-
slicer: z.value.style.chart.zoom.show &&
|
|
449
|
+
slicer: z.value.style.chart.zoom.show && G.value > 6 ? cn.value.$el : null,
|
|
450
450
|
source: un.value
|
|
451
451
|
});
|
|
452
452
|
requestAnimationFrame(() => {
|
|
453
|
-
|
|
453
|
+
H.value.width = e, H.value.height = t - 12, clearTimeout(or.value), or.value = setTimeout(() => {
|
|
454
454
|
fn.value = !0;
|
|
455
455
|
}, 10);
|
|
456
456
|
});
|
|
457
457
|
});
|
|
458
|
-
|
|
458
|
+
ir.value && (ar.value && ir.value.unobserve(ar.value), ir.value.disconnect()), ir.value = new ResizeObserver(e), ar.value = nn.value.parentNode, ir.value.observe(ar.value);
|
|
459
459
|
}
|
|
460
460
|
e && ti();
|
|
461
461
|
}
|
|
462
|
-
|
|
463
|
-
jn.stop(),
|
|
462
|
+
Xe(() => {
|
|
463
|
+
jn.stop(), ir.value && (ar.value && ir.value.unobserve(ar.value), ir.value.disconnect());
|
|
464
464
|
});
|
|
465
|
-
let
|
|
466
|
-
function
|
|
465
|
+
let lr = x(() => z.value.style.chart.grid.y.position === "right");
|
|
466
|
+
function ur() {
|
|
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();
|
|
@@ -471,53 +471,53 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
471
471
|
}, 0));
|
|
472
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: lr.value ? 0 : e + t,
|
|
475
|
+
right: lr.value ? e + t : 0,
|
|
476
476
|
scaleLabelsWidth: e,
|
|
477
477
|
yAxisLabelWidth: t
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
let
|
|
481
|
-
function
|
|
480
|
+
let dr = k(0), fr = k(0), pr = k(0);
|
|
481
|
+
function mr() {
|
|
482
482
|
let e = Cn.value;
|
|
483
483
|
if (!e) {
|
|
484
|
-
|
|
484
|
+
fr.value = 0;
|
|
485
485
|
return;
|
|
486
486
|
}
|
|
487
487
|
try {
|
|
488
488
|
let t = e.getBBox();
|
|
489
|
-
|
|
489
|
+
fr.value = Number.isFinite(t?.height) ? t.height : 0;
|
|
490
490
|
} catch {
|
|
491
|
-
|
|
491
|
+
fr.value = 0;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
|
|
494
|
+
function hr() {
|
|
495
|
+
pr.value && cancelAnimationFrame(pr.value), pr.value = requestAnimationFrame(() => {
|
|
496
496
|
requestAnimationFrame(() => {
|
|
497
|
-
|
|
497
|
+
mr();
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
Xe(() => {
|
|
502
|
+
pr.value && cancelAnimationFrame(pr.value), fr.value = 0, dr.value = 0;
|
|
503
503
|
});
|
|
504
|
-
let
|
|
504
|
+
let gr = x(() => {
|
|
505
505
|
let e = 0;
|
|
506
506
|
if (bn.value) try {
|
|
507
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 ? fr.value : 0;
|
|
512
512
|
return e + t;
|
|
513
|
-
}),
|
|
513
|
+
}), U = x(() => {
|
|
514
514
|
Dn.value;
|
|
515
|
-
let { height: e, width: t } =
|
|
515
|
+
let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && F.dataset && F.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 = ur();
|
|
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 - dr.value - a, u = e - z.value.style.chart.padding.bottom - gr.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - dr.value - a, p = e - c - z.value.style.chart.padding.bottom - gr.value - r;
|
|
521
521
|
return {
|
|
522
522
|
chartHeight: Math.max(0, e),
|
|
523
523
|
chartWidth: Math.max(0, t),
|
|
@@ -532,8 +532,8 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
532
532
|
scaleLabelsWidth: o,
|
|
533
533
|
yAxisLabelWidth: s
|
|
534
534
|
};
|
|
535
|
-
}),
|
|
536
|
-
let { left: e, top: t, width: n, height: r } =
|
|
535
|
+
}), _r = x(() => {
|
|
536
|
+
let { left: e, top: t, width: n, height: r } = U.value, i = K.value.start, a = K.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (q.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (q.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,
|
|
539
539
|
"stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
|
|
@@ -553,8 +553,8 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
553
553
|
height: r,
|
|
554
554
|
...u
|
|
555
555
|
};
|
|
556
|
-
}),
|
|
557
|
-
let n =
|
|
556
|
+
}), W = x(() => Vn.value.map((e, t) => {
|
|
557
|
+
let n = ae(), r = f(e.color) || rr.value[t] || o[t] || o[t % o.length];
|
|
558
558
|
return {
|
|
559
559
|
...e,
|
|
560
560
|
shape: e.shape || "circle",
|
|
@@ -566,66 +566,66 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
566
566
|
id: n,
|
|
567
567
|
color: r
|
|
568
568
|
};
|
|
569
|
-
})),
|
|
570
|
-
let e = Math.max(...
|
|
571
|
-
return isFinite(e) ? e : Math.max(...
|
|
569
|
+
})), vr = x(() => W.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), yr = x(() => W.value.filter((e) => !L.value.includes(e.id) && e.standalone)), G = x(() => {
|
|
570
|
+
let e = Math.max(...W.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
|
|
571
|
+
return isFinite(e) ? e : Math.max(...W.value.map((e) => e.series.length));
|
|
572
572
|
});
|
|
573
|
-
function
|
|
573
|
+
function br(e) {
|
|
574
574
|
Fn.value = e;
|
|
575
575
|
}
|
|
576
|
-
let
|
|
576
|
+
let K = k({
|
|
577
577
|
start: 0,
|
|
578
578
|
end: Math.max(...Vn.value.map((e) => e.series.length))
|
|
579
|
-
}),
|
|
579
|
+
}), q = k({
|
|
580
580
|
start: 0,
|
|
581
581
|
end: Math.max(...Vn.value.map((e) => e.series.length))
|
|
582
582
|
});
|
|
583
|
-
function
|
|
584
|
-
return (
|
|
583
|
+
function xr(e) {
|
|
584
|
+
return (K.value.start ?? 0) + (e ?? 0);
|
|
585
585
|
}
|
|
586
|
-
let
|
|
587
|
-
function
|
|
588
|
-
|
|
586
|
+
let Sr = x(() => z.value.style.chart.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
|
|
587
|
+
function Cr(e, t) {
|
|
588
|
+
q.value[e] = t;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
let e =
|
|
592
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e),
|
|
590
|
+
function wr() {
|
|
591
|
+
let e = G.value, t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
|
|
592
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value.start = t, K.value.end = n, q.value.start = t, q.value.end = n, cn.value && (cn.value.setStartValue(t), cn.value.setEndValue(n));
|
|
593
593
|
}
|
|
594
|
-
let
|
|
595
|
-
function
|
|
594
|
+
let Tr = k(null);
|
|
595
|
+
function Er() {
|
|
596
596
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
597
597
|
}
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
Xe(() => {
|
|
599
|
+
Tr.value && cancelAnimationFrame(Tr.value);
|
|
600
600
|
});
|
|
601
|
-
async function
|
|
602
|
-
if (z.value.style.chart.zoom.keepState && !e && $r.value && (
|
|
603
|
-
|
|
601
|
+
async function Dr({ force: e = !1 } = {}) {
|
|
602
|
+
if (z.value.style.chart.zoom.keepState && !e && $r.value && (K.value.start !== 0 || K.value.end !== 0)) {
|
|
603
|
+
wr();
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
ti(), await
|
|
607
|
-
await
|
|
606
|
+
ti(), await qe(), Tr.value && cancelAnimationFrame(Tr.value), Tr.value = requestAnimationFrame(async () => {
|
|
607
|
+
await Er(), ti();
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
let
|
|
610
|
+
let Or = x(() => Math.max(0, U.value.width / (K.value.end - K.value.start))), kr = x(() => c(vr.value.map((e) => ({
|
|
611
611
|
...e,
|
|
612
612
|
series: e.series.map((e) => e ?? 0)
|
|
613
|
-
}))).slice(
|
|
613
|
+
}))).slice(K.value.start, K.value.end)), Ar = x(() => L.value.length === W.value.length), jr = x(() => {
|
|
614
614
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
615
|
-
let e =
|
|
616
|
-
if (e.length) return
|
|
615
|
+
let e = W.value.filter((e) => Ar.value ? !0 : !L.value.includes(e.id) && !e.standalone);
|
|
616
|
+
if (e.length) return c(e.map((e) => ({
|
|
617
617
|
...e,
|
|
618
618
|
series: (e.series || []).map((e) => e ?? 0)
|
|
619
619
|
})));
|
|
620
|
-
let t =
|
|
620
|
+
let t = yr.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
|
+
}), Mr = x(() => {
|
|
625
625
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
626
|
-
let e =
|
|
626
|
+
let e = W.value.filter((e) => Ar.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = yr.value, n = e.length ? [{
|
|
627
627
|
name: "",
|
|
628
|
-
series:
|
|
628
|
+
series: jr.value,
|
|
629
629
|
color: "#000000",
|
|
630
630
|
isVisible: !0
|
|
631
631
|
}] : [], r = t.map((e) => ({
|
|
@@ -635,45 +635,45 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
635
635
|
isVisible: !0
|
|
636
636
|
}));
|
|
637
637
|
return n.concat(r);
|
|
638
|
-
}),
|
|
638
|
+
}), Nr = x(() => c(vr.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(
|
|
645
|
-
let e =
|
|
644
|
+
}))).slice(K.value.start, K.value.end)), Pr = x(() => {
|
|
645
|
+
let e = vr.value.filter((e) => !L.value.includes(e.id));
|
|
646
646
|
return {
|
|
647
|
-
positive:
|
|
647
|
+
positive: c(e.map((e) => ({
|
|
648
648
|
...e,
|
|
649
|
-
series: e.series.slice(
|
|
649
|
+
series: e.series.slice(K.value.start, K.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
|
|
650
650
|
}))),
|
|
651
|
-
negative:
|
|
651
|
+
negative: c(e.map((e) => ({
|
|
652
652
|
...e,
|
|
653
|
-
series: e.series.slice(
|
|
653
|
+
series: e.series.slice(K.value.start, K.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
654
654
|
})))
|
|
655
655
|
};
|
|
656
|
-
}),
|
|
657
|
-
let e = Math.max(0,
|
|
658
|
-
return
|
|
656
|
+
}), Fr = x(() => {
|
|
657
|
+
let e = Math.max(0, K.value.end - K.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
|
|
658
|
+
return yr.value.forEach((r) => {
|
|
659
659
|
for (let i = 0; i < e; i += 1) {
|
|
660
|
-
let e = r.series[
|
|
660
|
+
let e = r.series[K.value.start + i] ?? 0;
|
|
661
661
|
e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
|
|
662
662
|
}
|
|
663
663
|
}), {
|
|
664
664
|
positive: t,
|
|
665
665
|
negative: n
|
|
666
666
|
};
|
|
667
|
-
}),
|
|
667
|
+
}), Ir = x(() => Nr.value.map((e, t) => ({
|
|
668
668
|
value: e,
|
|
669
669
|
sign: e >= 0 ? 1 : -1
|
|
670
670
|
})));
|
|
671
|
-
function
|
|
672
|
-
return { y0:
|
|
671
|
+
function Lr() {
|
|
672
|
+
return { y0: zr.value?.[0]?.zero ?? U.value.bottom };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let { y0: t } =
|
|
676
|
-
if ((
|
|
674
|
+
function Rr(e) {
|
|
675
|
+
let { y0: t } = Lr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, U.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), U.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
|
|
676
|
+
if ((Ir.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,76 +690,76 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
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 zr = x(() => {
|
|
694
|
+
let e = Math.max(...Pr.value.positive, 0), t = Math.min(...Pr.value.negative, 0), n = Math.max(...Fr.value.positive, 0), r = Math.min(...Fr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
|
|
695
695
|
-Infinity,
|
|
696
696
|
Infinity,
|
|
697
697
|
NaN,
|
|
698
698
|
void 0,
|
|
699
699
|
null
|
|
700
|
-
].includes(a) ? 0 : a, s = z.value.style.chart.grid.scale.scaleMin, c = z.value.style.chart.grid.scale.scaleMax, l = !z.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !z.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !z.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? le(u, d, z.value.style.chart.grid.scale.ticks) :
|
|
701
|
-
return
|
|
702
|
-
let t = Number(e) || 0, n =
|
|
700
|
+
].includes(a) ? 0 : a, s = z.value.style.chart.grid.scale.scaleMin, c = z.value.style.chart.grid.scale.scaleMax, l = !z.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !z.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !z.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? le(u, d, z.value.style.chart.grid.scale.ticks) : _(u, d, z.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, h = m === 0 || !Number.isFinite(m) ? 1 : m, g = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], v = U.value.bottom - U.value.height * (p / h);
|
|
701
|
+
return g.map((e) => {
|
|
702
|
+
let t = Number(e) || 0, n = U.value.bottom - U.value.height * ((t + p) / h);
|
|
703
703
|
return {
|
|
704
|
-
zero:
|
|
704
|
+
zero: v,
|
|
705
705
|
y: n,
|
|
706
|
-
x:
|
|
706
|
+
x: lr.value ? X.value.right + 8 : X.value.left - 8,
|
|
707
707
|
value: t
|
|
708
708
|
};
|
|
709
709
|
});
|
|
710
|
-
}),
|
|
711
|
-
|
|
710
|
+
}), J = k([]), Br = k([]), Vr = 0;
|
|
711
|
+
rt(() => {
|
|
712
712
|
let e = ++Vr;
|
|
713
713
|
(async () => {
|
|
714
|
-
let t = await
|
|
714
|
+
let t = await ge({
|
|
715
715
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
716
|
-
maxDatapoints:
|
|
716
|
+
maxDatapoints: G.value,
|
|
717
717
|
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
718
|
-
start:
|
|
719
|
-
end:
|
|
718
|
+
start: K.value.start,
|
|
719
|
+
end: K.value.end
|
|
720
720
|
});
|
|
721
|
-
e === Vr && (
|
|
721
|
+
e === Vr && (J.value = t);
|
|
722
722
|
})();
|
|
723
723
|
});
|
|
724
724
|
let Hr = 0;
|
|
725
|
-
|
|
725
|
+
rt(() => {
|
|
726
726
|
let e = ++Hr;
|
|
727
727
|
(async () => {
|
|
728
|
-
let t = await
|
|
728
|
+
let t = await ge({
|
|
729
729
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
730
|
-
maxDatapoints:
|
|
730
|
+
maxDatapoints: G.value,
|
|
731
731
|
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
732
732
|
start: 0,
|
|
733
|
-
end:
|
|
733
|
+
end: G.value
|
|
734
734
|
});
|
|
735
735
|
e === Hr && (Br.value = t);
|
|
736
736
|
})();
|
|
737
737
|
});
|
|
738
|
-
let Ur =
|
|
738
|
+
let Ur = x(() => {
|
|
739
739
|
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
740
|
-
return
|
|
741
|
-
}), Wr =
|
|
742
|
-
let e = z.value.style.chart.grid.x.timeLabels, t =
|
|
740
|
+
return J.value.length ? Math.min(e, [...new Set(J.value.map((e) => e.text))].length) : e;
|
|
741
|
+
}), Wr = x(() => {
|
|
742
|
+
let e = z.value.style.chart.grid.x.timeLabels, t = J.value || [], n = Br.value || [], r = K.value.start ?? 0, i = $.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
743
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, (Wr.value || []).map((e) => e?.text ?? "").join("|"),
|
|
745
|
+
rt(() => {
|
|
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("|"), H.value.width, H.value.height, Cn.value, bn.value, hr();
|
|
747
747
|
}, { flush: "post" });
|
|
748
|
-
let Gr =
|
|
748
|
+
let Gr = k({
|
|
749
749
|
months: [],
|
|
750
750
|
shortMonths: [],
|
|
751
751
|
days: [],
|
|
752
752
|
shortDays: []
|
|
753
753
|
}), Kr = 0;
|
|
754
|
-
|
|
754
|
+
rt(() => {
|
|
755
755
|
let e = ++Kr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
756
756
|
(async () => {
|
|
757
|
-
let n = await
|
|
757
|
+
let n = await he(t.locale).catch(() => he("en"));
|
|
758
758
|
e === Kr && (Gr.value = n.data);
|
|
759
759
|
})();
|
|
760
760
|
});
|
|
761
|
-
let qr =
|
|
762
|
-
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t =
|
|
761
|
+
let qr = x(() => {
|
|
762
|
+
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = me({
|
|
763
763
|
useUTC: e.useUTC,
|
|
764
764
|
locale: Gr.value,
|
|
765
765
|
januaryAsYear: e.januaryAsYear
|
|
@@ -768,19 +768,19 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
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
|
-
}), Jr =
|
|
771
|
+
}), Jr = x(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
772
772
|
text: qr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
773
773
|
absoluteIndex: t
|
|
774
|
-
}))), Yr =
|
|
774
|
+
}))), Yr = x(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
775
775
|
text: qr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
776
776
|
absoluteIndex: t
|
|
777
|
-
}))), Xr =
|
|
778
|
-
if (!
|
|
779
|
-
let e =
|
|
780
|
-
return
|
|
777
|
+
}))), Xr = x(() => {
|
|
778
|
+
if (!tn.value && !Bn.value) return [];
|
|
779
|
+
let e = U.value.height, t = zr.value[0] ? zr.value[0].zero : U.value.bottom, n = K.value.start ?? 0, r = K.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Pr.value.positive, 0), o = Math.min(...Pr.value.negative, 0), s = Math.max(...Fr.value.positive, 0), c = Math.min(...Fr.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) : _(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), g = (e) => i <= 1 ? U.value.left + U.value.width / 2 : U.value.left + e / (i - 1) * U.value.width;
|
|
780
|
+
return W.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 / (kr.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;
|
|
@@ -799,14 +799,14 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
799
799
|
a.push(u), o.push(g), s.push(f ?? (g >= 0 ? 1 : -1));
|
|
800
800
|
}
|
|
801
801
|
let u = a.map((e) => ({
|
|
802
|
-
x:
|
|
802
|
+
x: g(e),
|
|
803
803
|
y: l[e]
|
|
804
|
-
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0),
|
|
804
|
+
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), _ = f === 0 ? 1 : f, v = 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 = kr.value[n] || 1;
|
|
807
807
|
return (e || 0) / r;
|
|
808
808
|
}
|
|
809
|
-
return (e || 0) /
|
|
809
|
+
return (e || 0) / _;
|
|
810
810
|
});
|
|
811
811
|
return {
|
|
812
812
|
...r,
|
|
@@ -816,26 +816,26 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
816
816
|
topY: a.map((e) => l[e]),
|
|
817
817
|
series: o,
|
|
818
818
|
signedSeries: s,
|
|
819
|
-
proportions:
|
|
819
|
+
proportions: v,
|
|
820
820
|
rel: a,
|
|
821
821
|
fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
|
|
822
822
|
};
|
|
823
823
|
});
|
|
824
|
-
}), Y =
|
|
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(...
|
|
824
|
+
}), Y = x(() => {
|
|
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(...Pr.value.positive, 0), n = Math.min(...Pr.value.negative, 0), r = Math.max(...Fr.value.positive, 0), i = Math.min(...Fr.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) : _(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, l = Number(s.max) || 0, u = Math.abs(c), f = l + u || 1, p = (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
|
-
return clampY(minimapH - minimapH * (((e ?? 0) +
|
|
830
|
+
return clampY(minimapH - minimapH * (((e ?? 0) + u) / f));
|
|
831
831
|
};
|
|
832
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);
|
|
836
|
-
}, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) =>
|
|
836
|
+
}, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => p(t || 0, e)), o = ({ minimapH: e }) => {
|
|
837
837
|
if (!Number.isFinite(e) || e <= 0) return [];
|
|
838
|
-
let t =
|
|
838
|
+
let t = p(0, e);
|
|
839
839
|
return r.map(() => t);
|
|
840
840
|
};
|
|
841
841
|
if (n === 0) return {
|
|
@@ -855,10 +855,10 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
855
855
|
})), c = t.x.map((e, n) => ({
|
|
856
856
|
x: e,
|
|
857
857
|
y: t.baseY[n]
|
|
858
|
-
})),
|
|
858
|
+
})), l = n >= 2 ? d(s) : `M${s[0].x},${s[0].y}`, u = n >= 2 ? m(s) : `M${s[0].x},${s[0].y}`, f = n >= 2 ? `M${e(l)}` : l, h = n >= 2 ? `M${e(u)}` : u, g = "", _ = "";
|
|
859
859
|
if (z.value.style.chart.lines.useArea && n >= 2) {
|
|
860
|
-
let t =
|
|
861
|
-
g = `M${s[0].x},${s[0].y} ${e(
|
|
860
|
+
let t = d([...c].reverse()), n = m([...c].reverse()), r = c[c.length - 1];
|
|
861
|
+
g = `M${s[0].x},${s[0].y} ${e(l)} L${r.x},${r.y} ${e(t)} Z`, _ = `M${s[0].x},${s[0].y} ${e(u)} L${r.x},${r.y} ${e(n)} Z`;
|
|
862
862
|
}
|
|
863
863
|
return {
|
|
864
864
|
...t,
|
|
@@ -872,26 +872,26 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
872
872
|
yMinimapBase: o
|
|
873
873
|
};
|
|
874
874
|
});
|
|
875
|
-
}), Zr =
|
|
875
|
+
}), Zr = x(() => $.value === null || $.value === void 0 ? null : {
|
|
876
876
|
timeLabel: vi($.value),
|
|
877
|
-
absoluteIndex: $.value +
|
|
877
|
+
absoluteIndex: $.value + K.value.start,
|
|
878
878
|
seriesIndex: $.value,
|
|
879
879
|
datapoint: _i.value,
|
|
880
880
|
series: Y.value,
|
|
881
881
|
config: z.value
|
|
882
|
-
}), Qr =
|
|
882
|
+
}), Qr = k(!1), $r = k(!1);
|
|
883
883
|
function ei(e) {
|
|
884
|
-
let t =
|
|
885
|
-
return e > t ? t : e < 0 || e <
|
|
884
|
+
let t = G.value;
|
|
885
|
+
return e > t ? t : e < 0 || e < K.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : K.value.start + 1 : e;
|
|
886
886
|
}
|
|
887
887
|
function ti() {
|
|
888
888
|
if (!Qr.value) {
|
|
889
889
|
Qr.value = !0;
|
|
890
890
|
try {
|
|
891
|
-
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0,
|
|
891
|
+
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, G.value) : G.value;
|
|
892
892
|
if (n && r <= 0) return;
|
|
893
893
|
let i = e ?? 0, a = t == null ? r : Math.min(ei(t + 1), r);
|
|
894
|
-
ai.value = !0,
|
|
894
|
+
ai.value = !0, K.value.start = i, K.value.end = a, q.value.start = i, q.value.end = a, wr(), $r.value = !0;
|
|
895
895
|
} finally {
|
|
896
896
|
queueMicrotask(() => {
|
|
897
897
|
ai.value = !1;
|
|
@@ -900,27 +900,27 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
function ni(e) {
|
|
903
|
-
Qr.value || ai.value || e !==
|
|
903
|
+
Qr.value || ai.value || e !== K.value.start && (K.value.start = e, q.value.start = e, wr());
|
|
904
904
|
}
|
|
905
905
|
function ri(e) {
|
|
906
906
|
if (Qr.value || ai.value) return;
|
|
907
907
|
let t = ei(e);
|
|
908
|
-
t !==
|
|
908
|
+
t !== K.value.end && (K.value.end = t, q.value.end = t, wr());
|
|
909
909
|
}
|
|
910
|
-
let X =
|
|
911
|
-
left:
|
|
912
|
-
right:
|
|
913
|
-
width:
|
|
914
|
-
})), ii =
|
|
910
|
+
let X = x(() => ({
|
|
911
|
+
left: U.value.left,
|
|
912
|
+
right: U.value.right,
|
|
913
|
+
width: U.value.width
|
|
914
|
+
})), ii = x(() => {
|
|
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 zr.value.map((r) => String(y(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
|
-
|
|
923
|
+
nt([
|
|
924
924
|
ii,
|
|
925
925
|
() => z.value.style.chart.grid.y.axisLabels.show,
|
|
926
926
|
() => z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -929,11 +929,11 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
929
929
|
], () => {
|
|
930
930
|
z.value.style.chart.grid.y.axisLabels.show && Pn();
|
|
931
931
|
}, { flush: "post" });
|
|
932
|
-
let ai =
|
|
933
|
-
|
|
932
|
+
let ai = k(!1), oi = x(() => H.value.width), si = x(() => H.value.height);
|
|
933
|
+
Ee({
|
|
934
934
|
timeLabelsEls: Cn,
|
|
935
|
-
timeLabels:
|
|
936
|
-
slicer:
|
|
935
|
+
timeLabels: J,
|
|
936
|
+
slicer: K,
|
|
937
937
|
configRef: z,
|
|
938
938
|
rotationPath: [
|
|
939
939
|
"style",
|
|
@@ -957,9 +957,9 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
957
957
|
height: si,
|
|
958
958
|
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
959
959
|
});
|
|
960
|
-
let ci =
|
|
960
|
+
let ci = k(null);
|
|
961
961
|
function li(e) {
|
|
962
|
-
let t =
|
|
962
|
+
let t = Kn.value;
|
|
963
963
|
if (!t) return null;
|
|
964
964
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
965
965
|
let n = t.createSVGPoint();
|
|
@@ -986,16 +986,16 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
986
986
|
ok: !0
|
|
987
987
|
};
|
|
988
988
|
}
|
|
989
|
-
let ui = 0, Z =
|
|
989
|
+
let ui = 0, Z = x(() => Math.max(1, K.value.end - K.value.start)), di = x(() => Z.value > 1 ? U.value.width / (Z.value - 1) : 0);
|
|
990
990
|
function Q(e) {
|
|
991
|
-
return Z.value <= 1 ?
|
|
991
|
+
return Z.value <= 1 ? U.value.left + U.value.width / 2 : U.value.left + e * di.value;
|
|
992
992
|
}
|
|
993
993
|
function fi(e) {
|
|
994
994
|
if (Z.value <= 1) return {
|
|
995
|
-
x:
|
|
996
|
-
width:
|
|
995
|
+
x: U.value.left,
|
|
996
|
+
width: U.value.width
|
|
997
997
|
};
|
|
998
|
-
let t = e === 0 ?
|
|
998
|
+
let t = e === 0 ? U.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? U.value.left + U.value.width : (Q(e) + Q(e + 1)) / 2;
|
|
999
999
|
return {
|
|
1000
1000
|
x: t,
|
|
1001
1001
|
width: Math.max(0, n - t)
|
|
@@ -1005,11 +1005,11 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1005
1005
|
In.value || (ui && cancelAnimationFrame(ui), ui = requestAnimationFrame(() => {
|
|
1006
1006
|
ui = 0;
|
|
1007
1007
|
let t = li(e);
|
|
1008
|
-
if (!t || !
|
|
1008
|
+
if (!t || !Kn.value) {
|
|
1009
1009
|
gi();
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
|
-
let { left: n, right: r, top: i, bottom: a } =
|
|
1012
|
+
let { left: n, right: r, top: i, bottom: a } = U.value;
|
|
1013
1013
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1014
1014
|
gi();
|
|
1015
1015
|
return;
|
|
@@ -1024,8 +1024,8 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1024
1024
|
}
|
|
1025
1025
|
function mi(e) {
|
|
1026
1026
|
let t = li(e);
|
|
1027
|
-
if (!t || !
|
|
1028
|
-
let { left: n, right: r, top: i, bottom: a } =
|
|
1027
|
+
if (!t || !Kn.value) return;
|
|
1028
|
+
let { left: n, right: r, top: i, bottom: a } = U.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) {
|
|
@@ -1047,15 +1047,15 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1047
1047
|
}));
|
|
1048
1048
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
1049
1049
|
datapoint: t,
|
|
1050
|
-
seriesIndex: e +
|
|
1051
|
-
}),
|
|
1050
|
+
seriesIndex: e + K.value.start
|
|
1051
|
+
}), en("selectDatapoint", {
|
|
1052
1052
|
datapoint: t,
|
|
1053
|
-
period:
|
|
1053
|
+
period: J.value[e]
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1056
|
+
nt(() => [
|
|
1057
|
+
K.value.start,
|
|
1058
|
+
K.value.end,
|
|
1059
1059
|
Y.value.length
|
|
1060
1060
|
], () => {
|
|
1061
1061
|
let e = Z.value;
|
|
@@ -1070,8 +1070,8 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1070
1070
|
function gi() {
|
|
1071
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 $ = k(null), _i = x(() => {
|
|
1074
|
+
let e = $.value, t = e == null ? null : xr(e);
|
|
1075
1075
|
return Y.value.map((n) => ({
|
|
1076
1076
|
slotAbsoluteIndex: n.absoluteIndex,
|
|
1077
1077
|
shape: n.shape || "circle",
|
|
@@ -1086,38 +1086,38 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1086
1086
|
});
|
|
1087
1087
|
function vi(e) {
|
|
1088
1088
|
if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1089
|
-
let t =
|
|
1089
|
+
let t = J.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 yi =
|
|
1093
|
-
let e = z.value.style.chart.tooltip.customFormat, t = [..._i.value].reverse(), n = t.filter((e) => !e.standalone),
|
|
1094
|
-
if (
|
|
1095
|
-
absoluteIndex: $.value +
|
|
1092
|
+
let yi = x(() => {
|
|
1093
|
+
let e = z.value.style.chart.tooltip.customFormat, t = [..._i.value].reverse(), n = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = n.map((e) => e.value).filter((e) => r(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1094
|
+
if (p(e) && ne(() => e({
|
|
1095
|
+
absoluteIndex: $.value + K.value.start,
|
|
1096
1096
|
seriesIndex: $.value,
|
|
1097
1097
|
datapoint: _i.value,
|
|
1098
|
-
series:
|
|
1098
|
+
series: W.value,
|
|
1099
1099
|
config: z.value
|
|
1100
1100
|
}))) return e({
|
|
1101
|
-
absoluteIndex: $.value +
|
|
1101
|
+
absoluteIndex: $.value + K.value.start,
|
|
1102
1102
|
seriesIndex: $.value,
|
|
1103
1103
|
datapoint: _i.value,
|
|
1104
|
-
series:
|
|
1104
|
+
series: W.value,
|
|
1105
1105
|
config: z.value
|
|
1106
1106
|
});
|
|
1107
|
-
let { showValue:
|
|
1107
|
+
let { showValue: o, showTotal: s, totalTranslation: c, showPercentage: u, borderColor: d, roundingValue: f, roundingPercentage: m } = z.value.style.chart.tooltip, g = (e) => !e.shape || ![
|
|
1108
1108
|
"star",
|
|
1109
1109
|
"triangle",
|
|
1110
1110
|
"square",
|
|
1111
1111
|
"diamond",
|
|
1112
1112
|
"pentagon",
|
|
1113
1113
|
"hexagon"
|
|
1114
|
-
].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${
|
|
1114
|
+
].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${de({
|
|
1115
1115
|
plot: {
|
|
1116
1116
|
x: 6,
|
|
1117
1117
|
y: 6
|
|
1118
1118
|
},
|
|
1119
1119
|
radius: 5
|
|
1120
|
-
})}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${
|
|
1120
|
+
})}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
|
|
1121
1121
|
plot: {
|
|
1122
1122
|
x: 6,
|
|
1123
1123
|
y: 6
|
|
@@ -1125,7 +1125,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1125
1125
|
radius: 6,
|
|
1126
1126
|
sides: 3,
|
|
1127
1127
|
rotation: .52
|
|
1128
|
-
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1128
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${l({
|
|
1129
1129
|
plot: {
|
|
1130
1130
|
x: 6,
|
|
1131
1131
|
y: 6
|
|
@@ -1133,7 +1133,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1133
1133
|
radius: 6,
|
|
1134
1134
|
sides: 4,
|
|
1135
1135
|
rotation: .8
|
|
1136
|
-
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${
|
|
1136
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
|
|
1137
1137
|
plot: {
|
|
1138
1138
|
x: 6,
|
|
1139
1139
|
y: 6
|
|
@@ -1141,7 +1141,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1141
1141
|
radius: 5,
|
|
1142
1142
|
sides: 4,
|
|
1143
1143
|
rotation: 0
|
|
1144
|
-
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${
|
|
1144
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
|
|
1145
1145
|
plot: {
|
|
1146
1146
|
x: 6,
|
|
1147
1147
|
y: 6
|
|
@@ -1149,7 +1149,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1149
1149
|
radius: 5,
|
|
1150
1150
|
sides: 5,
|
|
1151
1151
|
rotation: .95
|
|
1152
|
-
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${
|
|
1152
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
|
|
1153
1153
|
plot: {
|
|
1154
1154
|
x: 6,
|
|
1155
1155
|
y: 6
|
|
@@ -1157,44 +1157,44 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1157
1157
|
radius: 5,
|
|
1158
1158
|
sides: 6,
|
|
1159
1159
|
rotation: 0
|
|
1160
|
-
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`,
|
|
1160
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, _ = (e, t) => {
|
|
1161
1161
|
let n = t ? h({
|
|
1162
|
-
v: isNaN((e.value ?? 0) / (
|
|
1162
|
+
v: isNaN((e.value ?? 0) / (a || 1)) ? 0 : Math.abs(e.value ?? 0) / (a || 1) * 100,
|
|
1163
1163
|
s: "%",
|
|
1164
|
-
r:
|
|
1165
|
-
}) : "", r =
|
|
1164
|
+
r: m
|
|
1165
|
+
}) : "", r = o && t ? "(" : "", i = o && t ? ")" : "";
|
|
1166
1166
|
return `
|
|
1167
1167
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1168
|
-
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${
|
|
1169
|
-
${e.name}${
|
|
1170
|
-
${
|
|
1168
|
+
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${g(e)}</div>
|
|
1169
|
+
${e.name}${o || t ? ":" : ""}
|
|
1170
|
+
${o ? y(z.value.style.chart.lines.dataLabels.formatter, e.sourceValue, h({
|
|
1171
1171
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
1172
1172
|
v: e.sourceValue,
|
|
1173
1173
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
1174
|
-
r:
|
|
1175
|
-
}, { datapoint: e })) : ""} ${r}${n}${
|
|
1174
|
+
r: f
|
|
1175
|
+
}, { datapoint: e })) : ""} ${r}${n}${i}
|
|
1176
1176
|
</div>
|
|
1177
1177
|
`;
|
|
1178
|
-
},
|
|
1179
|
-
return ee && (
|
|
1178
|
+
}, v = "", ee = vi($.value);
|
|
1179
|
+
return ee && (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${d};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), s && n.length > 1 && (v += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1180
1180
|
<span>${c}:</span>
|
|
1181
|
-
<span>${
|
|
1181
|
+
<span>${y(z.value.style.chart.lines.dataLabels.formatter, se(a), h({
|
|
1182
1182
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
1183
|
-
v:
|
|
1183
|
+
v: se(a),
|
|
1184
1184
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
1185
|
-
r:
|
|
1185
|
+
r: f
|
|
1186
1186
|
}), { datapoint: {
|
|
1187
1187
|
name: c,
|
|
1188
|
-
value:
|
|
1188
|
+
value: se(a)
|
|
1189
1189
|
} })}</span>
|
|
1190
1190
|
</div>`), n.forEach((e) => {
|
|
1191
|
-
|
|
1192
|
-
}),
|
|
1193
|
-
|
|
1194
|
-
})), `<div>${
|
|
1191
|
+
v += _(e, u);
|
|
1192
|
+
}), i.length && (v += `<div style="border-top:1px solid ${vr.value.length ? d : "transparent"}; margin:${vr.value.length ? "6px 0" : "0"};"></div>`, i.forEach((e) => {
|
|
1193
|
+
v += _(e, !1);
|
|
1194
|
+
})), `<div>${v}</div>`;
|
|
1195
1195
|
});
|
|
1196
1196
|
function bi(e, t = null, n = "pointer") {
|
|
1197
|
-
if (
|
|
1197
|
+
if (Ar.value) return;
|
|
1198
1198
|
An.value = n, rn.value = e;
|
|
1199
1199
|
let r = Y.value.map((e) => ({
|
|
1200
1200
|
name: e.name,
|
|
@@ -1210,14 +1210,14 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1210
1210
|
datapoint: r
|
|
1211
1211
|
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1212
1212
|
datapoint: r,
|
|
1213
|
-
seriesIndex: t +
|
|
1214
|
-
})) : (R.value = null, $.value = null,
|
|
1213
|
+
seriesIndex: t + K.value.start
|
|
1214
|
+
})) : (R.value = null, $.value = null, en("selectX", {
|
|
1215
1215
|
index: null,
|
|
1216
1216
|
indexLabel: null,
|
|
1217
1217
|
dataset: null
|
|
1218
1218
|
}), z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
1219
1219
|
datapoint: r,
|
|
1220
|
-
seriesIndex: t +
|
|
1220
|
+
seriesIndex: t + K.value.start
|
|
1221
1221
|
}));
|
|
1222
1222
|
}
|
|
1223
1223
|
function xi(e, t) {
|
|
@@ -1228,7 +1228,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1228
1228
|
color: e.color,
|
|
1229
1229
|
id: e.id
|
|
1230
1230
|
}));
|
|
1231
|
-
|
|
1231
|
+
en("selectTimeLabel", {
|
|
1232
1232
|
datapoint: n,
|
|
1233
1233
|
absoluteIndex: e.absoluteIndex,
|
|
1234
1234
|
label: e.text
|
|
@@ -1237,22 +1237,22 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1237
1237
|
function Si() {
|
|
1238
1238
|
L.value.length ? L.value = [] : wi.value.forEach((e) => {
|
|
1239
1239
|
L.value.push(e.id);
|
|
1240
|
-
}),
|
|
1240
|
+
}), en("selectLegend", Y.value);
|
|
1241
1241
|
}
|
|
1242
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
|
-
if (L.value.length ===
|
|
1245
|
+
if (L.value.length === W.value.length - 1) return;
|
|
1246
1246
|
L.value.push(e.id);
|
|
1247
1247
|
}
|
|
1248
|
-
|
|
1248
|
+
en("selectLegend", Y.value);
|
|
1249
1249
|
}
|
|
1250
|
-
let wi =
|
|
1250
|
+
let wi = x(() => W.value.map((e) => ({
|
|
1251
1251
|
...e,
|
|
1252
1252
|
opacity: L.value.includes(e.id) ? .5 : 1,
|
|
1253
1253
|
segregate: () => Ci(e),
|
|
1254
1254
|
isSegregated: L.value.includes(e.id)
|
|
1255
|
-
}))), Ti =
|
|
1255
|
+
}))), Ti = x(() => ({
|
|
1256
1256
|
cy: "stackline-legend",
|
|
1257
1257
|
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1258
1258
|
color: z.value.style.chart.legend.color,
|
|
@@ -1261,7 +1261,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1261
1261
|
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1262
1262
|
}));
|
|
1263
1263
|
function Ei(e) {
|
|
1264
|
-
return
|
|
1264
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (sr.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (sr.value && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1265
1265
|
}
|
|
1266
1266
|
function Di(e) {
|
|
1267
1267
|
let t = Ei(e);
|
|
@@ -1271,7 +1271,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1271
1271
|
let t = Ei(e);
|
|
1272
1272
|
t !== null && (L.value.includes(t.id) || Ci({ id: t.id }));
|
|
1273
1273
|
}
|
|
1274
|
-
let ki =
|
|
1274
|
+
let ki = x(() => {
|
|
1275
1275
|
if (Y.value.length === 0) return {
|
|
1276
1276
|
head: [],
|
|
1277
1277
|
body: [],
|
|
@@ -1284,7 +1284,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1284
1284
|
})), t = [];
|
|
1285
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
|
+
W.value.forEach((e) => {
|
|
1288
1288
|
let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
|
|
1289
1289
|
r.push(i);
|
|
1290
1290
|
}), t.push(r);
|
|
@@ -1298,16 +1298,16 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1298
1298
|
[z.value.style.chart.title.text],
|
|
1299
1299
|
[z.value.style.chart.title.subtitle.text],
|
|
1300
1300
|
[""]
|
|
1301
|
-
],
|
|
1301
|
+
], r = ["", ...ki.value.head.map((e) => e.label)], a = ki.value.body, o = n.concat([r]).concat(a), s = i(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 ji =
|
|
1308
|
-
let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [], n = Math.max(0,
|
|
1307
|
+
let ji = x(() => {
|
|
1308
|
+
let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [], n = Math.max(0, K.value.end - K.value.start);
|
|
1309
1309
|
for (let e = 0; e < n; e += 1) {
|
|
1310
|
-
let n =
|
|
1310
|
+
let n = xr(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? J.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,27 +1331,27 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
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
|
-
}), Mi =
|
|
1335
|
-
svg:
|
|
1334
|
+
}), Mi = x(() => z.value.style.chart.backgroundColor), Ni = x(() => z.value.style.chart.legend), Pi = x(() => z.value.style.chart.title), { isCallbackImaging: Fi, isCallbackSvg: Ii, generateSvg: Li, onGenerateImage: Ri } = Ce({
|
|
1335
|
+
svg: Kn,
|
|
1336
1336
|
title: Pi,
|
|
1337
1337
|
legend: Ni,
|
|
1338
1338
|
legendItems: wi,
|
|
1339
1339
|
backgroundColor: Mi,
|
|
1340
1340
|
getSvgCallback: () => z.value.userOptions.callbacks.svg,
|
|
1341
|
-
generateImage:
|
|
1341
|
+
generateImage: tr
|
|
1342
1342
|
});
|
|
1343
1343
|
async function zi({ scale: e = 2 } = {}) {
|
|
1344
|
-
if (!
|
|
1345
|
-
let { imageUri: t, base64: n } = await
|
|
1346
|
-
domElement:
|
|
1344
|
+
if (!nn.value) return;
|
|
1345
|
+
let { imageUri: t, base64: n } = await De({
|
|
1346
|
+
domElement: nn.value,
|
|
1347
1347
|
base64: !0,
|
|
1348
1348
|
img: !0,
|
|
1349
1349
|
scale: e
|
|
1350
|
-
}), r =
|
|
1350
|
+
}), r = nn.value.getBoundingClientRect(), i = {
|
|
1351
1351
|
width: r.width,
|
|
1352
1352
|
height: r.height,
|
|
1353
1353
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1354
|
-
}, a = await
|
|
1354
|
+
}, a = await te(t, e) ?? i;
|
|
1355
1355
|
return {
|
|
1356
1356
|
imageUri: t,
|
|
1357
1357
|
base64: n,
|
|
@@ -1359,10 +1359,10 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1359
1359
|
...a
|
|
1360
1360
|
};
|
|
1361
1361
|
}
|
|
1362
|
-
let Bi =
|
|
1363
|
-
let e = z.value.table.useDialog && !z.value.table.show, t =
|
|
1362
|
+
let Bi = x(() => {
|
|
1363
|
+
let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
|
|
1364
1364
|
return {
|
|
1365
|
-
component: e ?
|
|
1365
|
+
component: e ? Yt : Wt,
|
|
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,
|
|
@@ -1370,7 +1370,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1370
1370
|
headerColor: z.value.table.th.color,
|
|
1371
1371
|
headerBg: z.value.table.th.backgroundColor,
|
|
1372
1372
|
isFullscreen: dn.value,
|
|
1373
|
-
fullscreenParent:
|
|
1373
|
+
fullscreenParent: nn.value,
|
|
1374
1374
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1375
1375
|
isCursorPointer: B.value
|
|
1376
1376
|
} : {
|
|
@@ -1390,29 +1390,29 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1390
1390
|
}
|
|
1391
1391
|
};
|
|
1392
1392
|
});
|
|
1393
|
-
|
|
1393
|
+
nt(() => V.value.showTable, (e) => {
|
|
1394
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
1396
|
function Vi() {
|
|
1397
|
-
|
|
1397
|
+
V.value.showTable = !1, vn.value && vn.value.setTableIconState(!1);
|
|
1398
1398
|
}
|
|
1399
1399
|
function Hi(e) {
|
|
1400
1400
|
dn.value = e, an.value += 1;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ui() {
|
|
1403
|
-
|
|
1403
|
+
V.value.showTable = !V.value.showTable;
|
|
1404
1404
|
}
|
|
1405
1405
|
function Wi() {
|
|
1406
|
-
|
|
1406
|
+
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
1407
1407
|
}
|
|
1408
1408
|
function Gi() {
|
|
1409
|
-
|
|
1409
|
+
V.value.showTooltip = !V.value.showTooltip;
|
|
1410
1410
|
}
|
|
1411
1411
|
function Ki() {
|
|
1412
1412
|
return Y.value;
|
|
1413
1413
|
}
|
|
1414
1414
|
function qi(e) {
|
|
1415
|
-
let t = e ?? 0, n =
|
|
1415
|
+
let t = e ?? 0, n = xr(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 {
|
|
@@ -1426,21 +1426,21 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1426
1426
|
};
|
|
1427
1427
|
});
|
|
1428
1428
|
}
|
|
1429
|
-
let Ji =
|
|
1430
|
-
|
|
1431
|
-
if ([null, void 0].includes(
|
|
1429
|
+
let Ji = x(() => Array(G.value).fill(0).map((e, t) => qi(t)));
|
|
1430
|
+
nt(() => F.selectedXIndex, (e) => {
|
|
1431
|
+
if ([null, void 0].includes(F.selectedXIndex)) {
|
|
1432
1432
|
$.value = null;
|
|
1433
1433
|
return;
|
|
1434
1434
|
}
|
|
1435
|
-
let t = e -
|
|
1436
|
-
t < 0 || e >=
|
|
1435
|
+
let t = e - K.value.start;
|
|
1436
|
+
t < 0 || e >= K.value.end ? $.value = null : $.value = t ?? null;
|
|
1437
1437
|
}, { immediate: !0 });
|
|
1438
|
-
let Yi =
|
|
1438
|
+
let Yi = x(() => {
|
|
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 = vr.value, t = yr.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;
|
|
@@ -1454,7 +1454,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1454
1454
|
n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
|
|
1455
1455
|
}
|
|
1456
1456
|
});
|
|
1457
|
-
let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.style.chart.grid.scale.scaleMin, u = z.value.style.chart.grid.scale.scaleMax, d = z.value.style.chart.grid.scale.ticks, f = !z.value.style.chart.lines.distributed && (l !== null || u !== null) ? le(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) :
|
|
1457
|
+
let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.style.chart.grid.scale.scaleMin, u = z.value.style.chart.grid.scale.scaleMax, d = z.value.style.chart.grid.scale.ticks, f = !z.value.style.chart.lines.distributed && (l !== null || u !== null) ? le(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : _(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
|
|
1458
1458
|
return {
|
|
1459
1459
|
min: Number(f.min) || 0,
|
|
1460
1460
|
max: Number(f.max) || 0
|
|
@@ -1473,46 +1473,46 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1473
1473
|
let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
|
|
1474
1474
|
r != null && !Number.isNaN(r) && (n += Math.abs(r));
|
|
1475
1475
|
}), n || 1;
|
|
1476
|
-
}), s = (t) => e - e * Math.max(0, Math.min(1, t || 0)), c = [],
|
|
1476
|
+
}), s = (t) => e - e * Math.max(0, Math.min(1, t || 0)), c = [], l = Array(a).fill(0);
|
|
1477
1477
|
return r.forEach((e) => {
|
|
1478
|
-
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a),
|
|
1478
|
+
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), u = Array(a);
|
|
1479
1479
|
for (let e = 0; e < a; e += 1) {
|
|
1480
1480
|
let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
|
|
1481
|
-
|
|
1481
|
+
u[e] = l[e], l[e] += a, i[e] = l[e];
|
|
1482
1482
|
}
|
|
1483
|
-
let f = i.map(s),
|
|
1483
|
+
let f = i.map(s), p = u.map(s), h = o.map((e, t) => ({
|
|
1484
1484
|
x: e,
|
|
1485
1485
|
y: f[t]
|
|
1486
1486
|
})), g = o.map((e, t) => ({
|
|
1487
1487
|
x: e,
|
|
1488
|
-
y:
|
|
1489
|
-
})), _ =
|
|
1488
|
+
y: p[t]
|
|
1489
|
+
})), _ = d(h), v = d([...g].reverse()), ee = m(h), te = m([...g].reverse()), y = g[g.length - 1];
|
|
1490
1490
|
if (z.value.style.chart.lines.useArea) {
|
|
1491
|
-
let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${
|
|
1491
|
+
let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${y.x},${y.y} ${n(v)} Z` : `M${h[0].x},${h[0].y} ${n(ee)} L${y.x},${y.y} ${n(te)} Z`;
|
|
1492
1492
|
c.push(`<path d="${t}"
|
|
1493
|
-
fill="${
|
|
1493
|
+
fill="${$t.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
|
}
|
|
1497
|
-
let
|
|
1498
|
-
c.push(`<path d="${
|
|
1497
|
+
let ne = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)}` : `M${h[0].x},${h[0].y} ${n(ee)}`;
|
|
1498
|
+
c.push(`<path d="${ne}"
|
|
1499
1499
|
fill="none"
|
|
1500
1500
|
stroke="${e.color}"
|
|
1501
1501
|
stroke-width="${z.value.style.chart.lines.strokeWidth}"
|
|
1502
1502
|
stroke-linecap="round" />`);
|
|
1503
1503
|
}), i.length && i.forEach((e) => {
|
|
1504
|
-
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => s(Math.abs(r?.[n] ?? 0) / t[n])),
|
|
1504
|
+
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => s(Math.abs(r?.[n] ?? 0) / t[n])), l = o.map((e, t) => ({
|
|
1505
1505
|
x: e,
|
|
1506
1506
|
y: i[t]
|
|
1507
|
-
})),
|
|
1508
|
-
c.push(`<path d="${
|
|
1507
|
+
})), u = d(l), f = m(l), p = z.value.style.chart.lines.smooth ? `M${l[0].x},${l[0].y} ${n(u)}` : `M${l[0].x},${l[0].y} ${n(f)}`;
|
|
1508
|
+
c.push(`<path d="${p}"
|
|
1509
1509
|
fill="none"
|
|
1510
1510
|
stroke="${e.color}"
|
|
1511
1511
|
stroke-width="${z.value.style.chart.lines.strokeWidth}"
|
|
1512
1512
|
stroke-linecap="round" />`);
|
|
1513
1513
|
}), c.join("");
|
|
1514
1514
|
}
|
|
1515
|
-
let s = Yi.value.min, c = Yi.value.max,
|
|
1515
|
+
let s = Yi.value.min, c = Yi.value.max, l = Math.abs(s), u = c + l || 1, f = (t) => Math.max(0, Math.min(e, t)), p = (t) => f(e - e * (((t ?? 0) + l) / u)), h = [];
|
|
1516
1516
|
if (r.length) {
|
|
1517
1517
|
let e = Array(a).fill(0), t = Array(a).fill(0);
|
|
1518
1518
|
r.forEach((r) => {
|
|
@@ -1521,22 +1521,22 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1521
1521
|
let r = i?.[n] ?? 0;
|
|
1522
1522
|
r >= 0 ? (c[n] = e[n], e[n] += r, s[n] = e[n]) : (c[n] = t[n], t[n] += r, s[n] = t[n]);
|
|
1523
1523
|
}
|
|
1524
|
-
let
|
|
1524
|
+
let l = s.map(p), u = c.map(p), f = o.map((e, t) => ({
|
|
1525
1525
|
x: e,
|
|
1526
|
-
y:
|
|
1526
|
+
y: l[t]
|
|
1527
1527
|
})), g = o.map((e, t) => ({
|
|
1528
1528
|
x: e,
|
|
1529
|
-
y:
|
|
1530
|
-
})), _ =
|
|
1529
|
+
y: u[t]
|
|
1530
|
+
})), _ = d(f), v = d([...g].reverse()), ee = m(f), te = m([...g].reverse()), y = g[g.length - 1];
|
|
1531
1531
|
if (z.value.style.chart.lines.useArea) {
|
|
1532
|
-
let e = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${
|
|
1532
|
+
let e = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${y.x},${y.y} ${n(v)} Z` : `M${f[0].x},${f[0].y} ${n(ee)} L${y.x},${y.y} ${n(te)} Z`;
|
|
1533
1533
|
h.push(`<path d="${e}"
|
|
1534
|
-
fill="${
|
|
1534
|
+
fill="${$t.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
|
}
|
|
1538
|
-
let
|
|
1539
|
-
h.push(`<path d="${
|
|
1538
|
+
let ne = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)}` : `M${f[0].x},${f[0].y} ${n(ee)}`;
|
|
1539
|
+
h.push(`<path d="${ne}"
|
|
1540
1540
|
fill="none"
|
|
1541
1541
|
stroke="${r.color}"
|
|
1542
1542
|
stroke-width="${z.value.style.chart.lines.strokeWidth}"
|
|
@@ -1544,10 +1544,10 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
1546
|
return i.length && i.forEach((e) => {
|
|
1547
|
-
let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(
|
|
1547
|
+
let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = o.map((e, n) => ({
|
|
1548
1548
|
x: e,
|
|
1549
1549
|
y: t[n]
|
|
1550
|
-
})), i =
|
|
1550
|
+
})), i = d(r), a = m(r), s = z.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
|
|
1551
1551
|
h.push(`<path d="${s}"
|
|
1552
1552
|
fill="none"
|
|
1553
1553
|
stroke="${e.color}"
|
|
@@ -1557,12 +1557,12 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1557
1557
|
}
|
|
1558
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 ? Zn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Zn.value ? (Xn.value && sr.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) : Xn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
|
|
1561
1561
|
}
|
|
1562
|
-
let Qi =
|
|
1562
|
+
let Qi = x(() => Math.max(...Y.value.flatMap((e) => e.series)));
|
|
1563
1563
|
function $i(e, t, n, r, i) {
|
|
1564
1564
|
let a = i === -1 && e >= 0 ? -e : e;
|
|
1565
|
-
return
|
|
1565
|
+
return y(z.value.style.chart.lines.dataLabels.formatter, a, h({
|
|
1566
1566
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
1567
1567
|
v: a,
|
|
1568
1568
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -1574,7 +1574,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
1576
|
function ea(e, t, n, r) {
|
|
1577
|
-
return
|
|
1577
|
+
return y(z.value.style.chart.lines.dataLabels.formatter, e, h({
|
|
1578
1578
|
v: isNaN(e) ? 0 : e,
|
|
1579
1579
|
s: "%",
|
|
1580
1580
|
r: z.value.style.chart.lines.dataLabels.rounding
|
|
@@ -1585,15 +1585,15 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
1587
|
function ta({ seriesIndex: e, datapoint: t }) {
|
|
1588
|
-
let n =
|
|
1589
|
-
|
|
1588
|
+
let n = K.value.start + e;
|
|
1589
|
+
en("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
1595
|
async function na() {
|
|
1596
|
-
if (
|
|
1596
|
+
if (en("copyAlt", {
|
|
1597
1597
|
config: z.value,
|
|
1598
1598
|
dataset: Y.value
|
|
1599
1599
|
}), !z.value.userOptions.callbacks.altCopy) {
|
|
@@ -1605,23 +1605,23 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1605
1605
|
dataset: Y.value
|
|
1606
1606
|
}));
|
|
1607
1607
|
}
|
|
1608
|
-
let ra =
|
|
1608
|
+
let ra = k(!1);
|
|
1609
1609
|
function ia() {
|
|
1610
1610
|
R.value = null, ra.value = !0;
|
|
1611
1611
|
}
|
|
1612
1612
|
function aa() {
|
|
1613
|
-
R.value = null, An.value = "pointer", rn.value = !1, $.value = null,
|
|
1613
|
+
R.value = null, An.value = "pointer", rn.value = !1, $.value = null, en("selectX", {
|
|
1614
1614
|
index: null,
|
|
1615
1615
|
indexLabel: null,
|
|
1616
1616
|
dataset: null
|
|
1617
1617
|
}), ra.value = !1;
|
|
1618
1618
|
}
|
|
1619
1619
|
function oa(e) {
|
|
1620
|
-
if (!
|
|
1620
|
+
if (!Kn.value || In.value || document.activeElement !== Kn.value || Ar.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, An.value = "pointer", rn.value = !1, $.value = null,
|
|
1624
|
+
R.value = null, An.value = "pointer", rn.value = !1, $.value = null, en("selectX", {
|
|
1625
1625
|
index: null,
|
|
1626
1626
|
indexLabel: null,
|
|
1627
1627
|
dataset: null
|
|
@@ -1637,20 +1637,20 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1637
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
1639
|
function sa(e) {
|
|
1640
|
-
if (!Number.isFinite(e) || !
|
|
1641
|
-
let t =
|
|
1640
|
+
if (!Number.isFinite(e) || !Kn.value) return;
|
|
1641
|
+
let t = U.value.left + e * di.value, n = U.value.top + U.value.height / 2, r = oe(t, n, Kn.value);
|
|
1642
1642
|
r && (kn.value = r);
|
|
1643
1643
|
}
|
|
1644
|
-
let ca =
|
|
1644
|
+
let ca = x(() => ({
|
|
1645
1645
|
headers: ji.value?.colNames ?? [],
|
|
1646
1646
|
rows: ji.value?.body ?? []
|
|
1647
1647
|
}));
|
|
1648
|
-
return
|
|
1648
|
+
return Ae({
|
|
1649
1649
|
getData: Ki,
|
|
1650
1650
|
getImage: zi,
|
|
1651
|
-
generatePdf:
|
|
1651
|
+
generatePdf: er,
|
|
1652
1652
|
generateCsv: Ai,
|
|
1653
|
-
generateImage:
|
|
1653
|
+
generateImage: tr,
|
|
1654
1654
|
generateSvg: Li,
|
|
1655
1655
|
hideSeries: Oi,
|
|
1656
1656
|
showSeries: Di,
|
|
@@ -1660,24 +1660,24 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1660
1660
|
toggleAnnotator: Ln,
|
|
1661
1661
|
toggleFullscreen: Hi,
|
|
1662
1662
|
copyAlt: na
|
|
1663
|
-
}), (t, r) => (
|
|
1663
|
+
}), (t, r) => (O(), w("div", {
|
|
1664
1664
|
id: `stackline_${I.value}`,
|
|
1665
1665
|
ref_key: "stacklineChart",
|
|
1666
|
-
ref:
|
|
1667
|
-
class:
|
|
1666
|
+
ref: nn,
|
|
1667
|
+
class: Je({
|
|
1668
1668
|
"vue-data-ui-component": !0,
|
|
1669
1669
|
"vue-ui-stackline": !0,
|
|
1670
1670
|
"vue-data-ui-wrapper-fullscreen": dn.value
|
|
1671
1671
|
}),
|
|
1672
|
-
style:
|
|
1673
|
-
onMouseenter:
|
|
1674
|
-
onMouseleave:
|
|
1672
|
+
style: Ye(`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: qn,
|
|
1674
|
+
onMouseleave: Jn
|
|
1675
1675
|
}, [
|
|
1676
|
-
|
|
1676
|
+
T("div", {
|
|
1677
1677
|
id: `chart-instructions-${I.value}`,
|
|
1678
1678
|
class: "sr-only"
|
|
1679
|
-
}, [
|
|
1680
|
-
ca.value?.rows?.length ? (
|
|
1679
|
+
}, [T("p", null, M(z.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
|
|
1680
|
+
ca.value?.rows?.length ? (O(), S(Ie, {
|
|
1681
1681
|
key: 0,
|
|
1682
1682
|
uid: I.value,
|
|
1683
1683
|
head: ca.value.headers,
|
|
@@ -1690,22 +1690,22 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1690
1690
|
"body",
|
|
1691
1691
|
"notice",
|
|
1692
1692
|
"caption"
|
|
1693
|
-
])) :
|
|
1694
|
-
z.value.userOptions.buttons.annotator ? (
|
|
1693
|
+
])) : C("", !0),
|
|
1694
|
+
z.value.userOptions.buttons.annotator ? (O(), S(N(Kt), {
|
|
1695
1695
|
key: 1,
|
|
1696
|
-
svgRef:
|
|
1696
|
+
svgRef: N(Kn),
|
|
1697
1697
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1698
1698
|
color: z.value.style.chart.color,
|
|
1699
1699
|
active: In.value,
|
|
1700
1700
|
isCursorPointer: B.value,
|
|
1701
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": P(() => [j(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1704
|
+
"annotator-action-color": P(({ color: e }) => [j(t.$slots, "annotator-action-color", D(E({ color: e })), void 0, !0)]),
|
|
1705
|
+
"annotator-action-draw": P(({ mode: e }) => [j(t.$slots, "annotator-action-draw", D(E({ mode: e })), void 0, !0)]),
|
|
1706
|
+
"annotator-action-undo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-undo", D(E({ disabled: e })), void 0, !0)]),
|
|
1707
|
+
"annotator-action-redo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-redo", D(E({ disabled: e })), void 0, !0)]),
|
|
1708
|
+
"annotator-action-delete": P(({ disabled: e }) => [j(t.$slots, "annotator-action-delete", D(E({ disabled: e })), void 0, !0)]),
|
|
1709
1709
|
_: 3
|
|
1710
1710
|
}, 8, [
|
|
1711
1711
|
"svgRef",
|
|
@@ -1713,21 +1713,21 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1713
1713
|
"color",
|
|
1714
1714
|
"active",
|
|
1715
1715
|
"isCursorPointer"
|
|
1716
|
-
])) :
|
|
1717
|
-
|
|
1718
|
-
|
|
1716
|
+
])) : C("", !0),
|
|
1717
|
+
j(t.$slots, "userConfig", {}, void 0, !0),
|
|
1718
|
+
nr.value ? (O(), w("div", {
|
|
1719
1719
|
key: 2,
|
|
1720
1720
|
ref_key: "noTitle",
|
|
1721
1721
|
ref: ln,
|
|
1722
1722
|
class: "vue-data-ui-no-title-space",
|
|
1723
1723
|
style: "height:36px; width: 100%;background:transparent"
|
|
1724
|
-
}, null, 512)) :
|
|
1725
|
-
z.value.style.chart.title.text ? (
|
|
1724
|
+
}, null, 512)) : C("", !0),
|
|
1725
|
+
z.value.style.chart.title.text ? (O(), w("div", {
|
|
1726
1726
|
key: 3,
|
|
1727
1727
|
ref_key: "chartTitle",
|
|
1728
1728
|
ref: on,
|
|
1729
1729
|
style: "width:100%;background:transparent;"
|
|
1730
|
-
}, [(
|
|
1730
|
+
}, [(O(), S(Oe, {
|
|
1731
1731
|
key: `title_${pn.value}`,
|
|
1732
1732
|
config: {
|
|
1733
1733
|
title: {
|
|
@@ -1739,16 +1739,16 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1739
1739
|
...z.value.style.chart.title.subtitle
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1743
|
-
|
|
1744
|
-
z.value.userOptions.show &&
|
|
1742
|
+
}, null, 8, ["config"]))], 512)) : C("", !0),
|
|
1743
|
+
T("div", { id: `legend-top-${I.value}` }, null, 8, st),
|
|
1744
|
+
z.value.userOptions.show && tn.value && (N(Gn) || N(Un)) ? (O(), S(N(qt), {
|
|
1745
1745
|
ref_key: "userOptionsRef",
|
|
1746
1746
|
ref: vn,
|
|
1747
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: N(Qn),
|
|
1751
|
+
isImaging: N($n),
|
|
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,
|
|
@@ -1760,9 +1760,9 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1760
1760
|
hasFullscreen: z.value.userOptions.buttons.fullscreen,
|
|
1761
1761
|
hasAltCopy: z.value.userOptions.buttons.altCopy,
|
|
1762
1762
|
isFullscreen: dn.value,
|
|
1763
|
-
chartElement:
|
|
1763
|
+
chartElement: nn.value,
|
|
1764
1764
|
position: z.value.userOptions.position,
|
|
1765
|
-
isTooltip:
|
|
1765
|
+
isTooltip: V.value.showTooltip,
|
|
1766
1766
|
titles: { ...z.value.userOptions.buttonTitles },
|
|
1767
1767
|
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1768
1768
|
isAnnotation: In.value,
|
|
@@ -1771,20 +1771,20 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1771
1771
|
tableDialog: z.value.table.useDialog,
|
|
1772
1772
|
isCursorPointer: B.value,
|
|
1773
1773
|
onToggleFullscreen: Hi,
|
|
1774
|
-
onGeneratePdf:
|
|
1774
|
+
onGeneratePdf: N(er),
|
|
1775
1775
|
onGenerateCsv: Ai,
|
|
1776
|
-
onGenerateImage:
|
|
1777
|
-
onGenerateSvg:
|
|
1776
|
+
onGenerateImage: N(Ri),
|
|
1777
|
+
onGenerateSvg: N(Li),
|
|
1778
1778
|
onToggleTable: Ui,
|
|
1779
1779
|
onToggleLabels: Wi,
|
|
1780
1780
|
onToggleTooltip: Gi,
|
|
1781
1781
|
onToggleAnnotator: Ln,
|
|
1782
1782
|
onCopyAlt: na,
|
|
1783
|
-
style:
|
|
1784
|
-
},
|
|
1783
|
+
style: Ye({ visibility: N(Gn) ? N(Un) ? "visible" : "hidden" : "visible" })
|
|
1784
|
+
}, He({ _: 2 }, [
|
|
1785
1785
|
t.$slots.menuIcon ? {
|
|
1786
1786
|
name: "menuIcon",
|
|
1787
|
-
fn:
|
|
1787
|
+
fn: P(({ isOpen: e, color: n }) => [j(t.$slots, "menuIcon", D(E({
|
|
1788
1788
|
isOpen: e,
|
|
1789
1789
|
color: n
|
|
1790
1790
|
})), void 0, !0)]),
|
|
@@ -1792,42 +1792,42 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1792
1792
|
} : void 0,
|
|
1793
1793
|
t.$slots.optionTooltip ? {
|
|
1794
1794
|
name: "optionTooltip",
|
|
1795
|
-
fn:
|
|
1795
|
+
fn: P(() => [j(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: P(() => [j(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: P(() => [j(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: P(() => [j(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: P(() => [j(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: P(() => [j(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: P(() => [j(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: P(({ toggleFullscreen: e, isFullscreen: n }) => [j(t.$slots, "optionFullscreen", D(E({
|
|
1831
1831
|
toggleFullscreen: e,
|
|
1832
1832
|
isFullscreen: n
|
|
1833
1833
|
})), void 0, !0)]),
|
|
@@ -1835,7 +1835,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1835
1835
|
} : void 0,
|
|
1836
1836
|
t.$slots.optionAnnotator ? {
|
|
1837
1837
|
name: "optionAnnotator",
|
|
1838
|
-
fn:
|
|
1838
|
+
fn: P(({ toggleAnnotator: e, isAnnotator: n }) => [j(t.$slots, "optionAnnotator", D(E({
|
|
1839
1839
|
toggleAnnotator: e,
|
|
1840
1840
|
isAnnotator: n
|
|
1841
1841
|
})), void 0, !0)]),
|
|
@@ -1843,33 +1843,33 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1843
1843
|
} : void 0,
|
|
1844
1844
|
t.$slots.optionAltCopy ? {
|
|
1845
1845
|
name: "optionAltCopy",
|
|
1846
|
-
fn:
|
|
1846
|
+
fn: P(({ altCopy: e }) => [j(t.$slots, "optionAltCopy", D(E({ 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: P(() => [j(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: P(() => [j(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1857
1857
|
key: "12"
|
|
1858
1858
|
} : void 0
|
|
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("."))) :
|
|
1860
|
-
|
|
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("."))) : C("", !0),
|
|
1860
|
+
T("div", ct, [(O(), w("svg", {
|
|
1861
1861
|
ref_key: "svgRef",
|
|
1862
|
-
ref:
|
|
1862
|
+
ref: Kn,
|
|
1863
1863
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1864
|
-
xmlns:
|
|
1865
|
-
viewBox: `0 0 ${
|
|
1866
|
-
class:
|
|
1867
|
-
"vue-data-ui-loading":
|
|
1864
|
+
xmlns: N(ce),
|
|
1865
|
+
viewBox: `0 0 ${U.value.chartWidth <= 0 ? 10 : U.value.chartWidth} ${U.value.chartHeight <= 0 ? 10 : U.value.chartHeight}`,
|
|
1866
|
+
class: Je({
|
|
1867
|
+
"vue-data-ui-loading": N(Bn),
|
|
1868
1868
|
"vue-data-ui-fullscreen--on": dn.value,
|
|
1869
1869
|
"vue-data-ui-fulscreen--off": !dn.value,
|
|
1870
|
-
"vue-data-ui-no-transition": !
|
|
1870
|
+
"vue-data-ui-no-transition": !N(Rn)
|
|
1871
1871
|
}),
|
|
1872
|
-
style:
|
|
1872
|
+
style: Ye(`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",
|
|
@@ -1881,20 +1881,20 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1881
1881
|
onBlur: aa,
|
|
1882
1882
|
onKeydown: oa
|
|
1883
1883
|
}, [
|
|
1884
|
-
|
|
1885
|
-
(
|
|
1884
|
+
We(N(Jt)),
|
|
1885
|
+
(O(!0), w(b, null, A(vr.value, (e) => (O(), w(b, null, [t.$slots.pattern ? (O(), w("defs", ut, [j(t.$slots, "pattern", Ke({ ref_for: !0 }, {
|
|
1886
1886
|
seriesIndex: e.absoluteIndex,
|
|
1887
1887
|
patternId: `pattern_${I.value}_${e.absoluteIndex}`
|
|
1888
|
-
}), void 0, !0)])) :
|
|
1889
|
-
t.$slots["chart-background"] ? (
|
|
1888
|
+
}), void 0, !0)])) : C("", !0)], 64))), 256)),
|
|
1889
|
+
t.$slots["chart-background"] ? (O(), w("foreignObject", {
|
|
1890
1890
|
key: 0,
|
|
1891
1891
|
x: X.value.left,
|
|
1892
|
-
y:
|
|
1892
|
+
y: U.value.top,
|
|
1893
1893
|
width: X.value.width,
|
|
1894
|
-
height:
|
|
1894
|
+
height: U.value.height,
|
|
1895
1895
|
style: { pointerEvents: "none" }
|
|
1896
|
-
}, [
|
|
1897
|
-
z.value.style.chart.lines.gradient.show ? (
|
|
1896
|
+
}, [j(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : C("", !0),
|
|
1897
|
+
z.value.style.chart.lines.gradient.show ? (O(), w("defs", ft, [(O(!0), w(b, null, A(Y.value, (e, t) => (O(), S(Ne, {
|
|
1898
1898
|
t: "linear",
|
|
1899
1899
|
id: `gradient_${e.id}`,
|
|
1900
1900
|
key: `gradient_${e.id}_${t}`,
|
|
@@ -1908,11 +1908,11 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1908
1908
|
1
|
|
1909
1909
|
], [
|
|
1910
1910
|
"100%",
|
|
1911
|
-
|
|
1911
|
+
N(n)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
|
|
1912
1912
|
1
|
|
1913
1913
|
]]
|
|
1914
|
-
}, null, 8, ["id", "stops"]))), 128))])) :
|
|
1915
|
-
z.value.style.chart.grid.x.showHorizontalLines ? (
|
|
1914
|
+
}, null, 8, ["id", "stops"]))), 128))])) : C("", !0),
|
|
1915
|
+
z.value.style.chart.grid.x.showHorizontalLines ? (O(!0), w(b, { key: 2 }, A(zr.value, (e, t) => (O(), w("line", {
|
|
1916
1916
|
x1: X.value.left,
|
|
1917
1917
|
x2: X.value.right,
|
|
1918
1918
|
y1: e.y,
|
|
@@ -1921,61 +1921,61 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
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, pt))), 256)) : C("", !0),
|
|
1925
|
+
z.value.style.chart.grid.y.showVerticalLines ? (O(!0), w(b, { key: 3 }, A(K.value.end - K.value.start, (e, t) => (O(), w("line", {
|
|
1926
1926
|
x1: Q(t),
|
|
1927
1927
|
x2: Q(t),
|
|
1928
|
-
y1:
|
|
1929
|
-
y2:
|
|
1928
|
+
y1: U.value.top,
|
|
1929
|
+
y2: U.value.bottom,
|
|
1930
1930
|
stroke: z.value.style.chart.grid.y.linesColor,
|
|
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, mt))), 256)) : C("", !0),
|
|
1935
|
+
z.value.style.chart.grid.x.showAxis ? (O(), w("line", {
|
|
1936
1936
|
key: 4,
|
|
1937
1937
|
x1: X.value.left,
|
|
1938
1938
|
x2: X.value.right,
|
|
1939
|
-
y1:
|
|
1940
|
-
y2:
|
|
1939
|
+
y1: U.value.bottom,
|
|
1940
|
+
y2: U.value.bottom,
|
|
1941
1941
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
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, ht)) : C("", !0),
|
|
1946
|
+
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (O(), w("line", {
|
|
1947
1947
|
key: 5,
|
|
1948
|
-
x1:
|
|
1949
|
-
x2:
|
|
1950
|
-
y1:
|
|
1951
|
-
y2:
|
|
1948
|
+
x1: lr.value ? X.value.right : X.value.left,
|
|
1949
|
+
x2: lr.value ? X.value.right : X.value.left,
|
|
1950
|
+
y1: U.value.top,
|
|
1951
|
+
y2: U.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, gt)) : C("", !0),
|
|
1957
|
+
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (O(), w("text", {
|
|
1958
1958
|
key: 6,
|
|
1959
1959
|
ref_key: "xAxisLabel",
|
|
1960
1960
|
ref: bn,
|
|
1961
|
-
x:
|
|
1962
|
-
y:
|
|
1961
|
+
x: U.value.left + U.value.width / 2,
|
|
1962
|
+
y: U.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
|
+
}, M(z.value.style.chart.grid.x.axisName.text), 9, _t)) : C("", !0),
|
|
1968
|
+
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (O(), w("text", {
|
|
1969
1969
|
key: 7,
|
|
1970
1970
|
ref_key: "yAxisLabel",
|
|
1971
1971
|
ref: xn,
|
|
1972
|
-
transform: `translate(${
|
|
1972
|
+
transform: `translate(${lr.value ? U.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}, ${U.value.top + U.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
|
+
}, M(z.value.style.chart.grid.y.axisName.text), 9, vt)) : C("", !0),
|
|
1978
|
+
z.value.style.chart.grid.frame.show ? (O(), w("rect", {
|
|
1979
1979
|
key: 8,
|
|
1980
1980
|
style: {
|
|
1981
1981
|
pointerEvents: "none",
|
|
@@ -1983,72 +1983,72 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
1983
1983
|
animation: "none !important"
|
|
1984
1984
|
},
|
|
1985
1985
|
x: X.value.left,
|
|
1986
|
-
y:
|
|
1986
|
+
y: U.value.top,
|
|
1987
1987
|
width: X.value.width,
|
|
1988
|
-
height:
|
|
1988
|
+
height: U.value.height,
|
|
1989
1989
|
fill: "transparent",
|
|
1990
1990
|
stroke: z.value.style.chart.grid.frame.stroke,
|
|
1991
1991
|
"stroke-width": z.value.style.chart.grid.frame.strokeWidth,
|
|
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, yt)) : C("", !0),
|
|
1996
|
+
(O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, null, [z.value.style.chart.lines.useArea && !e.standalone ? (O(), w("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: Je({ "vue-data-ui-transition": N(Rn) })
|
|
2002
|
+
}, null, 10, bt)) : C("", !0)], 64))), 256)),
|
|
2003
|
+
(O(!0), w(b, null, A(Y.value, (e) => (O(), w("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: Je({ "vue-data-ui-transition": N(Rn) })
|
|
2010
|
+
}, null, 10, xt))), 256)),
|
|
2011
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (O(), w("g", {
|
|
2012
2012
|
key: 9,
|
|
2013
2013
|
ref_key: "scaleLabels",
|
|
2014
2014
|
ref: Sn
|
|
2015
|
-
}, [(
|
|
2015
|
+
}, [(O(!0), w(b, null, A(zr.value, (e, t) => (O(), w("line", {
|
|
2016
2016
|
key: `ytick_${t}`,
|
|
2017
|
-
class:
|
|
2018
|
-
x1:
|
|
2019
|
-
x2:
|
|
2017
|
+
class: Je({ "vue-data-ui-transition": N(Rn) }),
|
|
2018
|
+
x1: lr.value ? X.value.right : X.value.left,
|
|
2019
|
+
x2: lr.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, St))), 128)), (O(!0), w(b, null, A(zr.value, (e, t) => (O(), w("text", {
|
|
2025
|
+
class: Je({ "vue-data-ui-transition": N(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
|
-
},
|
|
2030
|
+
"text-anchor": lr.value ? "start" : "end"
|
|
2031
|
+
}, M(N(y)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, N(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, Ct))), 256))], 512)) : C("", !0),
|
|
2037
|
+
z.value.style.chart.grid.x.timeLabels.show ? (O(), w("g", {
|
|
2038
2038
|
key: 10,
|
|
2039
2039
|
ref_key: "timeLabelsEls",
|
|
2040
2040
|
ref: Cn
|
|
2041
|
-
}, [t.$slots["time-label"] ? (
|
|
2042
|
-
x:
|
|
2043
|
-
y:
|
|
2041
|
+
}, [t.$slots["time-label"] ? (O(), w("g", wt, [(O(!0), w(b, null, A(Wr.value, (e, n) => (O(), w("g", null, [j(t.$slots, "time-label", Ke({ ref_for: !0 }, {
|
|
2042
|
+
x: U.value.left + Or.value * n + Or.value / 2,
|
|
2043
|
+
y: U.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(${
|
|
2046
|
+
transform: `translate(${U.value.left + Or.value * n + Or.value / 2}, ${U.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))])) : (O(), w("g", Tt, [(O(!0), w(b, null, A(Wr.value, (e, n) => (O(), w("g", null, [String(e.text).includes("\n") ? (O(), w("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,
|
|
@@ -2056,11 +2056,11 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2056
2056
|
transform: `
|
|
2057
2057
|
translate(
|
|
2058
2058
|
${Q(n)},
|
|
2059
|
-
${
|
|
2059
|
+
${U.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
|
|
2060
2060
|
),
|
|
2061
2061
|
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
2062
2062
|
`,
|
|
2063
|
-
style:
|
|
2063
|
+
style: Ye({ 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,
|
|
@@ -2069,33 +2069,33 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2069
2069
|
y: 0
|
|
2070
2070
|
}),
|
|
2071
2071
|
onClick: () => xi(e, n)
|
|
2072
|
-
}, null, 12,
|
|
2072
|
+
}, null, 12, Dt)) : (O(), w("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",
|
|
2076
2076
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
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
|
-
transform: `translate(${Q(n)}, ${
|
|
2080
|
-
style:
|
|
2079
|
+
transform: `translate(${Q(n)}, ${U.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: Ye({ cursor: B.value ? "pointer" : "default" }),
|
|
2081
2081
|
onClick: () => xi(e, n)
|
|
2082
|
-
},
|
|
2083
|
-
(yn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (
|
|
2082
|
+
}, M(e.text), 13, Et))]))), 256))]))], 512)) : C("", !0),
|
|
2083
|
+
(yn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (O(!0), w(b, { key: 11 }, A(K.value.end - K.value.start, (e, t) => (O(), w("g", { key: `tooltip_trap_highlighter_${t}` }, [T("rect", {
|
|
2084
2084
|
x: fi(t).x,
|
|
2085
|
-
y:
|
|
2086
|
-
height:
|
|
2085
|
+
y: U.value.top,
|
|
2086
|
+
height: U.value.height,
|
|
2087
2087
|
width: fi(t).width,
|
|
2088
|
-
fill: [Fn.value, $.value].includes(t) ?
|
|
2088
|
+
fill: [Fn.value, $.value].includes(t) ? N(a)(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
|
-
(yn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (
|
|
2093
|
+
}, null, 8, Ot)]))), 128)) : C("", !0),
|
|
2094
|
+
(yn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (O(), w(b, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Fn.value) ? (O(), w("g", kt, [T("line", {
|
|
2095
2095
|
x1: Q(($.value ?? Fn.value) || 0),
|
|
2096
2096
|
x2: Q(($.value ?? Fn.value) || 0),
|
|
2097
|
-
y1:
|
|
2098
|
-
y2:
|
|
2097
|
+
y1: N(se)(U.value.top),
|
|
2098
|
+
y2: N(se)(U.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 at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2105
2105
|
animation: "none !important",
|
|
2106
2106
|
"pointer-events": "none"
|
|
2107
2107
|
}
|
|
2108
|
-
}, null, 8,
|
|
2109
|
-
(
|
|
2108
|
+
}, null, 8, At)])) : C("", !0)], 64)) : C("", !0),
|
|
2109
|
+
(O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, { key: `shp_sel_${e.id}` }, [yn.value && K.value.end - K.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(), w("g", jt, [$.value == null ? C("", !0) : (O(), w(b, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[K.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[K.value.start + $.value]) ? (O(), S(ke, {
|
|
2110
2110
|
key: 0,
|
|
2111
2111
|
shape: [
|
|
2112
2112
|
"triangle",
|
|
@@ -2118,14 +2118,14 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
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: N(v)(e.points[e.rel.indexOf($.value)].x),
|
|
2122
|
+
y: N(v)(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: N(Bn),
|
|
2128
|
+
class: Je({ "vue-data-ui-transition": N(Rn) })
|
|
2129
2129
|
}, null, 8, [
|
|
2130
2130
|
"shape",
|
|
2131
2131
|
"color",
|
|
@@ -2135,8 +2135,8 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2135
2135
|
"strokeWidth",
|
|
2136
2136
|
"still",
|
|
2137
2137
|
"class"
|
|
2138
|
-
])) :
|
|
2139
|
-
(
|
|
2138
|
+
])) : C("", !0)], 64))])) : C("", !0)], 64))), 128)),
|
|
2139
|
+
(O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, { key: `shp_${e.id}` }, [K.value.end - K.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(!0), w(b, { key: 0 }, A(e.points, (t, n) => (O(), w("g", { key: `shp_${e.id}_${K.value.start + n}` }, [e.fullSeries?.[K.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[K.value.start + e.rel[n]]) ? (O(), S(ke, {
|
|
2140
2140
|
key: 0,
|
|
2141
2141
|
shape: [
|
|
2142
2142
|
"triangle",
|
|
@@ -2154,8 +2154,8 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2154
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: N(Bn),
|
|
2158
|
+
class: Je({ "vue-data-ui-transition": N(Rn) })
|
|
2159
2159
|
}, null, 8, [
|
|
2160
2160
|
"shape",
|
|
2161
2161
|
"color",
|
|
@@ -2165,62 +2165,62 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2165
2165
|
"strokeWidth",
|
|
2166
2166
|
"still",
|
|
2167
2167
|
"class"
|
|
2168
|
-
])) :
|
|
2169
|
-
|
|
2168
|
+
])) : C("", !0)]))), 128)) : C("", !0)], 64))), 128)),
|
|
2169
|
+
V.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > K.value.end - K.value.start ? (O(), w(b, { key: 13 }, [(O(!0), w(b, null, A(Y.value, (e, t) => (O(), w("g", { key: `dl_${e.id}` }, [(O(!0), w(b, null, A(e.points, (n, r) => (O(), w(b, { key: `dp_${e.id}_${K.value.start + r}` }, [Zi(e.series[r], e.proportions[r]) ? (O(), w("text", {
|
|
2170
2170
|
key: 0,
|
|
2171
|
-
class:
|
|
2171
|
+
class: Je({ "vue-data-ui-transition": N(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
|
+
}, M(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, Mt)) : C("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (O(), w("g", {
|
|
2178
2178
|
key: 0,
|
|
2179
2179
|
ref_key: "sumTop",
|
|
2180
2180
|
ref: wn
|
|
2181
|
-
}, [(
|
|
2181
|
+
}, [(O(!0), w(b, null, A(Ir.value, (e, t) => (O(), w(b, { key: `total_l_${t + K.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (O(), w("text", {
|
|
2182
2182
|
key: 0,
|
|
2183
|
-
class:
|
|
2184
|
-
transform: `translate(${Q(t)}, ${
|
|
2183
|
+
class: Je({ "vue-data-ui-transition": N(Rn) }),
|
|
2184
|
+
transform: `translate(${Q(t)}, ${Rr(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
|
-
|
|
2191
|
-
"data-start":
|
|
2192
|
-
"data-end":
|
|
2193
|
-
}), null, 16,
|
|
2194
|
-
|
|
2195
|
-
drawingArea:
|
|
2189
|
+
}, M($i(e.value, e, t, t, e.sign)), 11, Nt)) : C("", !0)], 64))), 128))], 512)) : C("", !0)], 64)) : C("", !0),
|
|
2190
|
+
Sr.value ? (O(), w("rect", Ke({ key: 14 }, _r.value, {
|
|
2191
|
+
"data-start": K.value.start,
|
|
2192
|
+
"data-end": K.value.end
|
|
2193
|
+
}), null, 16, Pt)) : C("", !0),
|
|
2194
|
+
j(t.$slots, "svg", { svg: {
|
|
2195
|
+
drawingArea: U.value,
|
|
2196
2196
|
data: Y.value,
|
|
2197
|
-
isPrintingImg:
|
|
2198
|
-
isPrintingSvg:
|
|
2197
|
+
isPrintingImg: N(Qn) || N($n) || N(Fi),
|
|
2198
|
+
isPrintingSvg: N(Ii)
|
|
2199
2199
|
} }, void 0, !0)
|
|
2200
|
-
], 46,
|
|
2200
|
+
], 46, lt)), t.$slots.hint ? (O(), w("div", Ft, [j(t.$slots, "hint", D(E({
|
|
2201
2201
|
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2202
2202
|
isVisible: ra.value
|
|
2203
|
-
})), void 0, !0)])) :
|
|
2204
|
-
t.$slots.watermark ? (
|
|
2205
|
-
gn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (
|
|
2203
|
+
})), void 0, !0)])) : C("", !0)]),
|
|
2204
|
+
t.$slots.watermark ? (O(), w("div", It, [j(t.$slots, "watermark", D(E({ isPrinting: N(Qn) || N($n) || N(Fi) || N(Ii) })), void 0, !0)])) : C("", !0),
|
|
2205
|
+
gn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (O(), S(Ve, {
|
|
2206
2206
|
key: 6,
|
|
2207
2207
|
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
2208
|
-
}, [
|
|
2208
|
+
}, [T("div", {
|
|
2209
2209
|
ref_key: "chartLegend",
|
|
2210
2210
|
ref: sn
|
|
2211
|
-
}, [
|
|
2211
|
+
}, [j(t.$slots, "legend", { legend: wi.value }, () => [z.value.style.chart.legend.show ? (O(), S(ze, {
|
|
2212
2212
|
key: 0,
|
|
2213
2213
|
legendSet: wi.value,
|
|
2214
2214
|
config: Ti.value,
|
|
2215
2215
|
isCursorPointer: B.value,
|
|
2216
2216
|
onClickMarker: r[0] ||= ({ legend: e }) => e.segregate()
|
|
2217
|
-
},
|
|
2218
|
-
item:
|
|
2217
|
+
}, He({
|
|
2218
|
+
item: P(({ legend: e }) => [N(Bn) ? C("", !0) : (O(), w("div", {
|
|
2219
2219
|
key: 0,
|
|
2220
2220
|
onClick: (t) => e.segregate(),
|
|
2221
|
-
style:
|
|
2222
|
-
},
|
|
2223
|
-
legendToggle:
|
|
2221
|
+
style: Ye(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2222
|
+
}, M(e.name), 13, Lt))]),
|
|
2223
|
+
legendToggle: P(() => [wi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !N(Bn) ? (O(), S(Fe, {
|
|
2224
2224
|
key: 0,
|
|
2225
2225
|
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2226
2226
|
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -2234,11 +2234,11 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2234
2234
|
"fontSize",
|
|
2235
2235
|
"checked",
|
|
2236
2236
|
"isCursorPointer"
|
|
2237
|
-
])) :
|
|
2237
|
+
])) : C("", !0)]),
|
|
2238
2238
|
_: 2
|
|
2239
2239
|
}, [t.$slots.pattern ? {
|
|
2240
2240
|
name: "legend-pattern",
|
|
2241
|
-
fn:
|
|
2241
|
+
fn: P(({ legend: e, index: t }) => [We(ke, {
|
|
2242
2242
|
shape: e.shape,
|
|
2243
2243
|
radius: 30,
|
|
2244
2244
|
stroke: "none",
|
|
@@ -2253,13 +2253,13 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2253
2253
|
"legendSet",
|
|
2254
2254
|
"config",
|
|
2255
2255
|
"isCursorPointer"
|
|
2256
|
-
])) :
|
|
2257
|
-
|
|
2256
|
+
])) : C("", !0)], !0)], 512)], 8, ["to"])) : C("", !0),
|
|
2257
|
+
tn.value && z.value.userOptions.buttons.table ? (O(), S(Qe(Bi.value.component), Ke({ key: 7 }, Bi.value.props, {
|
|
2258
2258
|
ref_key: "tableUnit",
|
|
2259
2259
|
ref: _n,
|
|
2260
2260
|
onClose: Vi
|
|
2261
|
-
}),
|
|
2262
|
-
content:
|
|
2261
|
+
}), He({
|
|
2262
|
+
content: P(() => [We(N(Gt), {
|
|
2263
2263
|
colNames: ji.value.colNames,
|
|
2264
2264
|
head: ji.value.head,
|
|
2265
2265
|
body: ji.value.body,
|
|
@@ -2269,12 +2269,12 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2269
2269
|
isCursorPointer: B.value,
|
|
2270
2270
|
onClose: Vi
|
|
2271
2271
|
}, {
|
|
2272
|
-
th:
|
|
2272
|
+
th: P(({ th: e }) => [e === "__SUM__" ? (O(), w("div", Rt, [We(N(Ut), {
|
|
2273
2273
|
name: "sigma",
|
|
2274
2274
|
stroke: ji.value.config.th.color,
|
|
2275
2275
|
size: 16
|
|
2276
|
-
}, null, 8, ["stroke"])])) : (
|
|
2277
|
-
td:
|
|
2276
|
+
}, null, 8, ["stroke"])])) : (O(), w("div", zt, M(e), 1))]),
|
|
2277
|
+
td: P(({ td: e }) => [Ue(M(isNaN(Number(e)) ? e : N(h)({
|
|
2278
2278
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2279
2279
|
v: e,
|
|
2280
2280
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -2293,45 +2293,45 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2293
2293
|
_: 2
|
|
2294
2294
|
}, [z.value.table.useDialog ? {
|
|
2295
2295
|
name: "title",
|
|
2296
|
-
fn:
|
|
2296
|
+
fn: P(() => [Ue(M(Bi.value.title), 1)]),
|
|
2297
2297
|
key: "0"
|
|
2298
2298
|
} : void 0, z.value.table.useDialog ? {
|
|
2299
2299
|
name: "actions",
|
|
2300
|
-
fn:
|
|
2300
|
+
fn: P(() => [T("button", {
|
|
2301
2301
|
tabindex: "0",
|
|
2302
2302
|
class: "vue-ui-user-options-button",
|
|
2303
2303
|
onClick: r[1] ||= (e) => Ai(z.value.userOptions.callbacks.csv),
|
|
2304
|
-
style:
|
|
2305
|
-
}, [
|
|
2304
|
+
style: Ye({ cursor: B.value ? "pointer" : "default" })
|
|
2305
|
+
}, [We(N(Ut), {
|
|
2306
2306
|
name: "fileCsv",
|
|
2307
2307
|
stroke: Bi.value.props.color
|
|
2308
2308
|
}, null, 8, ["stroke"])], 4)]),
|
|
2309
2309
|
key: "1"
|
|
2310
|
-
} : void 0]), 1040)) :
|
|
2311
|
-
z.value.style.chart.zoom.show &&
|
|
2310
|
+
} : void 0]), 1040)) : C("", !0),
|
|
2311
|
+
z.value.style.chart.zoom.show && tn.value && $r.value && G.value > 6 ? (O(), S(Pe, {
|
|
2312
2312
|
key: 8,
|
|
2313
2313
|
ref_key: "chartSlicer",
|
|
2314
2314
|
ref: cn,
|
|
2315
2315
|
"data-dom-to-png-ignore-layout": "",
|
|
2316
|
-
allMinimaps:
|
|
2316
|
+
allMinimaps: Mr.value,
|
|
2317
2317
|
background: z.value.style.chart.zoom.color,
|
|
2318
2318
|
borderColor: z.value.style.chart.backgroundColor,
|
|
2319
2319
|
customFormat: z.value.style.chart.zoom.customFormat,
|
|
2320
2320
|
cutNullValues: !1,
|
|
2321
2321
|
enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
|
|
2322
2322
|
enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
|
|
2323
|
-
end:
|
|
2323
|
+
end: K.value.end,
|
|
2324
2324
|
focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
|
|
2325
2325
|
focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
|
|
2326
2326
|
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2327
2327
|
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2328
2328
|
inputColor: z.value.style.chart.zoom.color,
|
|
2329
|
-
isPreview:
|
|
2330
|
-
labelLeft: z.value.style.chart.grid.x.timeLabels.values[
|
|
2331
|
-
labelRight: z.value.style.chart.grid.x.timeLabels.values[
|
|
2329
|
+
isPreview: Sr.value,
|
|
2330
|
+
labelLeft: z.value.style.chart.grid.x.timeLabels.values[K.value.start] ? J.value?.[0]?.text ?? "" : "",
|
|
2331
|
+
labelRight: z.value.style.chart.grid.x.timeLabels.values[K.value.end - 1] ? J.value?.at(-1)?.text ?? "" : "",
|
|
2332
2332
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2333
2333
|
min: 0,
|
|
2334
|
-
minimap:
|
|
2334
|
+
minimap: jr.value,
|
|
2335
2335
|
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2336
2336
|
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2337
2337
|
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -2346,16 +2346,16 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2346
2346
|
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2347
2347
|
selectedSeries: Ji.value,
|
|
2348
2348
|
smoothMinimap: !1,
|
|
2349
|
-
start:
|
|
2349
|
+
start: K.value.start,
|
|
2350
2350
|
textColor: z.value.style.chart.color,
|
|
2351
2351
|
timeLabels: Br.value,
|
|
2352
2352
|
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2353
|
-
valueEnd:
|
|
2354
|
-
valueStart:
|
|
2353
|
+
valueEnd: K.value.end,
|
|
2354
|
+
valueStart: K.value.start,
|
|
2355
2355
|
verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
|
|
2356
2356
|
maxWidth: z.value.style.chart.zoom.maxWidth,
|
|
2357
|
-
minimapLeftInsetRatio:
|
|
2358
|
-
minimapRightInsetRatio:
|
|
2357
|
+
minimapLeftInsetRatio: U.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? U.value.left / U.value.chartWidth : null,
|
|
2358
|
+
minimapRightInsetRatio: U.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? (U.value.chartWidth - U.value.right) / U.value.chartWidth : null,
|
|
2359
2359
|
isCursorPointer: B.value,
|
|
2360
2360
|
additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
|
|
2361
2361
|
handleType: z.value.style.chart.zoom.minimap.handleType,
|
|
@@ -2366,23 +2366,23 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2366
2366
|
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2367
2367
|
"onUpdate:end": ri,
|
|
2368
2368
|
"onUpdate:start": ni,
|
|
2369
|
-
onTrapMouse:
|
|
2370
|
-
onReset: r[2] ||= () =>
|
|
2371
|
-
onFutureEnd: r[3] ||= (e) =>
|
|
2372
|
-
onFutureStart: r[4] ||= (e) =>
|
|
2369
|
+
onTrapMouse: br,
|
|
2370
|
+
onReset: r[2] ||= () => Dr({ force: !0 }),
|
|
2371
|
+
onFutureEnd: r[3] ||= (e) => Cr("end", e),
|
|
2372
|
+
onFutureStart: r[4] ||= (e) => Cr("start", e)
|
|
2373
2373
|
}, {
|
|
2374
|
-
"reset-action":
|
|
2375
|
-
slotMap:
|
|
2374
|
+
"reset-action": P(({ reset: e }) => [j(t.$slots, "reset-action", D(E({ reset: e })), void 0, !0)]),
|
|
2375
|
+
slotMap: P(({ width: e, height: t, unitW: n }) => [T("g", { innerHTML: Xi({
|
|
2376
2376
|
minimapW: e,
|
|
2377
2377
|
minimapH: t,
|
|
2378
2378
|
unitW: n
|
|
2379
|
-
}) }, null, 8,
|
|
2379
|
+
}) }, null, 8, Bt)]),
|
|
2380
2380
|
_: 3
|
|
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("."))) :
|
|
2382
|
-
|
|
2383
|
-
|
|
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("."))) : C("", !0),
|
|
2382
|
+
T("div", { id: `legend-bottom-${I.value}` }, null, 8, Vt),
|
|
2383
|
+
We(N(Ht), {
|
|
2384
2384
|
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2385
|
-
show:
|
|
2385
|
+
show: V.value.showTooltip && rn.value,
|
|
2386
2386
|
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
2387
2387
|
color: z.value.style.chart.tooltip.color,
|
|
2388
2388
|
fontSize: z.value.style.chart.tooltip.fontSize,
|
|
@@ -2393,7 +2393,7 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2393
2393
|
position: z.value.style.chart.tooltip.position,
|
|
2394
2394
|
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2395
2395
|
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2396
|
-
parent:
|
|
2396
|
+
parent: nn.value,
|
|
2397
2397
|
content: yi.value,
|
|
2398
2398
|
isFullscreen: dn.value,
|
|
2399
2399
|
isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
|
|
@@ -2404,9 +2404,9 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2404
2404
|
isA11yMode: An.value === "keyboard",
|
|
2405
2405
|
a11yPosition: kn.value
|
|
2406
2406
|
}, {
|
|
2407
|
-
"tooltip-before":
|
|
2408
|
-
tooltip:
|
|
2409
|
-
"tooltip-after":
|
|
2407
|
+
"tooltip-before": P(() => [j(t.$slots, "tooltip-before", D(E({ ...Zr.value })), void 0, !0)]),
|
|
2408
|
+
tooltip: P(() => [j(t.$slots, "tooltip", D(E({ ...Zr.value })), void 0, !0)]),
|
|
2409
|
+
"tooltip-after": P(() => [j(t.$slots, "tooltip-after", D(E({ ...Zr.value })), void 0, !0)]),
|
|
2410
2410
|
_: 3
|
|
2411
2411
|
}, 8, [
|
|
2412
2412
|
"teleportTo",
|
|
@@ -2432,15 +2432,15 @@ var at = /* @__PURE__ */ e({ default: () => Ut }), ot = ["id"], st = ["id"], ct
|
|
|
2432
2432
|
"isA11yMode",
|
|
2433
2433
|
"a11yPosition"
|
|
2434
2434
|
]),
|
|
2435
|
-
t.$slots.source ? (
|
|
2435
|
+
t.$slots.source ? (O(), w("div", {
|
|
2436
2436
|
key: 9,
|
|
2437
2437
|
ref_key: "source",
|
|
2438
2438
|
ref: un,
|
|
2439
2439
|
dir: "auto"
|
|
2440
|
-
}, [
|
|
2441
|
-
|
|
2442
|
-
], 46,
|
|
2440
|
+
}, [j(t.$slots, "source", {}, void 0, !0)], 512)) : C("", !0),
|
|
2441
|
+
j(t.$slots, "skeleton", {}, () => [N(Bn) ? (O(), S(be, { key: 0 })) : C("", !0)], !0)
|
|
2442
|
+
], 46, at));
|
|
2443
2443
|
}
|
|
2444
2444
|
}, [["__scopeId", "data-v-682d61ea"]]);
|
|
2445
2445
|
//#endregion
|
|
2446
|
-
export {
|
|
2446
|
+
export { it as n, Ht as t };
|