vue-data-ui 3.22.6 → 3.22.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.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-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-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/exposedLib-Be0ifkti.js +19 -0
- package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
- package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
- package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
- package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
- package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
- package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
- package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
- package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
- package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
- package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
- package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
- package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
- package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
- package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
- package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
- package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
- package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
- package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
- package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
- package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
- package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
- package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
- package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
- package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { c as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t 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 { Fragment as
|
|
2
|
+
import { Gt as t, Ht as n, I as r, Lt as i, Ot as a, Q as o, R as s, S as c, Tt as l, Ut as u, Vt as d, W as f, X as p, at as m, b as h, ct as g, g as _, h as ee, i as te, j as ne, jt as v, k as re, q as ie, rt as ae, s as oe, t as se, ut as ce, v as le, vt as ue, w as de, yt as fe } from "./lib-EAmk-PgA.js";
|
|
3
|
+
import { n as pe, r as me, t as he } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as ge } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as _e } from "./usePrinter-DnGzpp6Q.js";
|
|
6
|
+
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as be } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as xe } from "./useNestedProp-D8XqxgOU.js";
|
|
9
|
+
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Ce } from "./useStableElementSize-C7KADDKj.js";
|
|
11
|
+
import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as Te } from "./img-B_abIg0o.js";
|
|
13
|
+
import { n as Ee } from "./Title-PiTKr6sp.js";
|
|
14
|
+
import { t as De } from "./Shape-CiQIxyyT.js";
|
|
15
|
+
import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { c as ke } from "./canvas-lib-BOP_HS11.js";
|
|
17
|
+
import { t as Ae } from "./useResponsive-BfnK0KxU.js";
|
|
18
|
+
import { t as je } from "./SlicerPreview-DUywypFu.js";
|
|
19
|
+
import { t as Me } from "./BaseLegendToggle-CHnlKalt.js";
|
|
20
|
+
import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
|
|
21
|
+
import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
22
|
+
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
23
|
+
import { t as Ie } from "./Legend-kAr7Vqqu.js";
|
|
24
|
+
import { t as Le } from "./vue_ui_stackline-DQqKPA9z.js";
|
|
25
|
+
import { Fragment as y, Teleport as Re, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as He, guardReactiveProps as T, mergeProps as Ue, nextTick as We, normalizeClass as Ge, normalizeProps as E, normalizeStyle as Ke, onBeforeUnmount as qe, onMounted as Je, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as j, toRefs as Ze, unref as M, useSlots as Qe, watch as $e, watchEffect as et, withCtx as N } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-stackline.vue
|
|
27
|
-
var
|
|
27
|
+
var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it = ["id"], at = { style: { position: "relative" } }, ot = [
|
|
28
28
|
"aria-describedby",
|
|
29
29
|
"xmlns",
|
|
30
30
|
"viewBox"
|
|
31
|
-
],
|
|
31
|
+
], st = { key: 0 }, ct = [
|
|
32
32
|
"x",
|
|
33
33
|
"y",
|
|
34
34
|
"width",
|
|
35
35
|
"height"
|
|
36
|
-
],
|
|
36
|
+
], lt = { key: 1 }, ut = ["id"], dt = ["stop-color"], ft = ["stop-color"], pt = [
|
|
37
37
|
"x1",
|
|
38
38
|
"x2",
|
|
39
39
|
"y1",
|
|
@@ -41,7 +41,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
41
41
|
"stroke",
|
|
42
42
|
"stroke-width",
|
|
43
43
|
"stroke-dasharray"
|
|
44
|
-
],
|
|
44
|
+
], mt = [
|
|
45
45
|
"x1",
|
|
46
46
|
"x2",
|
|
47
47
|
"y1",
|
|
@@ -49,32 +49,32 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
49
49
|
"stroke",
|
|
50
50
|
"stroke-width",
|
|
51
51
|
"stroke-dasharray"
|
|
52
|
-
],
|
|
52
|
+
], ht = [
|
|
53
53
|
"x1",
|
|
54
54
|
"x2",
|
|
55
55
|
"y1",
|
|
56
56
|
"y2",
|
|
57
57
|
"stroke",
|
|
58
58
|
"stroke-width"
|
|
59
|
-
],
|
|
59
|
+
], gt = [
|
|
60
60
|
"x1",
|
|
61
61
|
"x2",
|
|
62
62
|
"y1",
|
|
63
63
|
"y2",
|
|
64
64
|
"stroke",
|
|
65
65
|
"stroke-width"
|
|
66
|
-
],
|
|
66
|
+
], _t = [
|
|
67
67
|
"x",
|
|
68
68
|
"y",
|
|
69
69
|
"font-size",
|
|
70
70
|
"fill",
|
|
71
71
|
"font-weight"
|
|
72
|
-
],
|
|
72
|
+
], vt = [
|
|
73
73
|
"transform",
|
|
74
74
|
"font-size",
|
|
75
75
|
"fill",
|
|
76
76
|
"font-weight"
|
|
77
|
-
],
|
|
77
|
+
], yt = [
|
|
78
78
|
"x",
|
|
79
79
|
"y",
|
|
80
80
|
"width",
|
|
@@ -84,48 +84,48 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
84
84
|
"stroke-linecap",
|
|
85
85
|
"stroke-linejoin",
|
|
86
86
|
"stroke-dasharray"
|
|
87
|
-
],
|
|
87
|
+
], bt = [
|
|
88
88
|
"d",
|
|
89
89
|
"fill",
|
|
90
90
|
"opacity"
|
|
91
|
-
],
|
|
91
|
+
], xt = [
|
|
92
92
|
"d",
|
|
93
93
|
"stroke",
|
|
94
94
|
"stroke-width"
|
|
95
|
-
],
|
|
95
|
+
], St = [
|
|
96
96
|
"x1",
|
|
97
97
|
"x2",
|
|
98
98
|
"y1",
|
|
99
99
|
"y2",
|
|
100
100
|
"stroke"
|
|
101
|
-
],
|
|
101
|
+
], Ct = [
|
|
102
102
|
"x",
|
|
103
103
|
"y",
|
|
104
104
|
"font-size",
|
|
105
105
|
"font-weight",
|
|
106
106
|
"fill",
|
|
107
107
|
"text-anchor"
|
|
108
|
-
],
|
|
108
|
+
], wt = { key: 0 }, Tt = { key: 1 }, Et = [
|
|
109
109
|
"text-anchor",
|
|
110
110
|
"font-size",
|
|
111
111
|
"font-weight",
|
|
112
112
|
"fill",
|
|
113
113
|
"transform",
|
|
114
114
|
"onClick"
|
|
115
|
-
],
|
|
115
|
+
], Dt = [
|
|
116
116
|
"text-anchor",
|
|
117
117
|
"font-size",
|
|
118
118
|
"fill",
|
|
119
119
|
"transform",
|
|
120
120
|
"innerHTML",
|
|
121
121
|
"onClick"
|
|
122
|
-
],
|
|
122
|
+
], Ot = [
|
|
123
123
|
"x",
|
|
124
124
|
"y",
|
|
125
125
|
"height",
|
|
126
126
|
"width",
|
|
127
127
|
"fill"
|
|
128
|
-
],
|
|
128
|
+
], kt = { key: 0 }, At = [
|
|
129
129
|
"x1",
|
|
130
130
|
"x2",
|
|
131
131
|
"y1",
|
|
@@ -133,19 +133,19 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
133
133
|
"stroke",
|
|
134
134
|
"stroke-width",
|
|
135
135
|
"stroke-dasharray"
|
|
136
|
-
],
|
|
136
|
+
], jt = { key: 0 }, Mt = [
|
|
137
137
|
"x",
|
|
138
138
|
"y",
|
|
139
139
|
"font-size",
|
|
140
140
|
"fill",
|
|
141
141
|
"font-weight"
|
|
142
|
-
],
|
|
142
|
+
], Nt = [
|
|
143
143
|
"x",
|
|
144
144
|
"y",
|
|
145
145
|
"font-size",
|
|
146
146
|
"font-weight",
|
|
147
147
|
"fill"
|
|
148
|
-
],
|
|
148
|
+
], Pt = ["data-start", "data-end"], Ft = {
|
|
149
149
|
key: 0,
|
|
150
150
|
style: {
|
|
151
151
|
position: "absolute",
|
|
@@ -155,10 +155,10 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
155
155
|
},
|
|
156
156
|
"data-dom-to-png-ignore": "",
|
|
157
157
|
"aria-hidden": "true"
|
|
158
|
-
},
|
|
158
|
+
}, It = {
|
|
159
159
|
key: 5,
|
|
160
160
|
class: "vue-data-ui-watermark"
|
|
161
|
-
},
|
|
161
|
+
}, Lt = ["onClick"], Rt = ["innerHTML"], zt = ["innerHTML"], Bt = ["id"], Vt = /*#__PURE__*/ Oe({
|
|
162
162
|
__name: "vue-ui-stackline",
|
|
163
163
|
props: {
|
|
164
164
|
config: {
|
|
@@ -185,49 +185,49 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
185
185
|
"selectX",
|
|
186
186
|
"copyAlt"
|
|
187
187
|
],
|
|
188
|
-
setup(e, { expose:
|
|
189
|
-
let
|
|
188
|
+
setup(e, { expose: Oe, emit: tt }) {
|
|
189
|
+
let Vt = He(() => import("./Tooltip-B8yYfISA.js")), Ht = He(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), Ut = He(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), Wt = He(() => import("./DataTable-CVF7DoZn.js")), Gt = He(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Kt = He(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), qt = He(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), Jt = He(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_stackline: Yt } = ge(), { isThemeValid: Xt, warnInvalidTheme: Zt } = Se(), Qt = Qe(), P = e, F = tt, $t = b({
|
|
190
190
|
get() {
|
|
191
191
|
return !!P.dataset && P.dataset.length;
|
|
192
192
|
},
|
|
193
193
|
set(e) {
|
|
194
194
|
return e;
|
|
195
195
|
}
|
|
196
|
-
}), en =
|
|
196
|
+
}), en = O(null), I = O(f()), tn = O(!1), L = O([]), nn = O(0), rn = O(null), an = O(null), on = O(null), sn = O(null), cn = O(null), ln = O(!1), un = O(!1), dn = O(0), fn = O(0), pn = O(0), mn = O(!1), hn = O(null), gn = O(null), _n = O(!1), vn = O(!1), yn = O(!1), bn = O(null), xn = O(null), Sn = O(null), Cn = O(null), wn = O(null), Tn = Xe(null), En = O(!1), Dn = O(0), On = O(0), kn = O(null), An = O({
|
|
197
197
|
x: 0,
|
|
198
198
|
y: 0
|
|
199
|
-
}),
|
|
199
|
+
}), jn = O("pointer"), Mn = Ce({
|
|
200
200
|
elementRef: Tn,
|
|
201
201
|
minimumWidth: 2,
|
|
202
202
|
minimumHeight: 2,
|
|
203
203
|
stableFramesRequired: 2,
|
|
204
204
|
once: !1,
|
|
205
205
|
onSizeAccepted: () => {
|
|
206
|
-
|
|
206
|
+
Fn();
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
function
|
|
209
|
+
function Nn() {
|
|
210
210
|
Tn.value = en.value?.parentNode ?? null;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Pn() {
|
|
213
213
|
return new Promise((e) => {
|
|
214
214
|
requestAnimationFrame(() => {
|
|
215
215
|
requestAnimationFrame(e);
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
async function
|
|
219
|
+
async function Fn() {
|
|
220
220
|
let e = ++On.value;
|
|
221
|
-
En.value = !1, await
|
|
221
|
+
En.value = !1, await We(), await Pn(), await Pn(), e === On.value && (Dn.value += 1, En.value = !0);
|
|
222
222
|
}
|
|
223
|
-
let
|
|
224
|
-
function
|
|
225
|
-
|
|
223
|
+
let In = O(null), Ln = O(!1);
|
|
224
|
+
function Rn() {
|
|
225
|
+
Ln.value = !Ln.value;
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
Je(() => {
|
|
228
|
+
Nn(), Mn.start(), mn.value = !0, or(), Fn();
|
|
229
229
|
});
|
|
230
|
-
let R =
|
|
230
|
+
let R = O(qn()), z = b(() => R.value.userOptions.useCursorPointer), zn = b(() => t({
|
|
231
231
|
defaultConfig: {
|
|
232
232
|
userOptions: { show: !1 },
|
|
233
233
|
useCssAnimation: !1,
|
|
@@ -273,13 +273,13 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
273
273
|
} }
|
|
274
274
|
},
|
|
275
275
|
userConfig: R.value.skeletonConfig ?? {}
|
|
276
|
-
})), { loading: B, FINAL_DATASET:
|
|
277
|
-
...
|
|
276
|
+
})), { loading: B, FINAL_DATASET: Bn, manualLoading: Vn } = ve({
|
|
277
|
+
...Ze(P),
|
|
278
278
|
FINAL_CONFIG: R,
|
|
279
279
|
prepareConfig: qn,
|
|
280
280
|
callback: () => {
|
|
281
281
|
Promise.resolve().then(async () => {
|
|
282
|
-
(!R.value.style.chart.zoom.keepState || !
|
|
282
|
+
(!R.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0) && await ei();
|
|
283
283
|
});
|
|
284
284
|
},
|
|
285
285
|
skeletonDataset: P.config?.skeletonDataset ?? [{
|
|
@@ -313,71 +313,71 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
313
313
|
],
|
|
314
314
|
color: "#CACACA"
|
|
315
315
|
}],
|
|
316
|
-
skeletonConfig:
|
|
316
|
+
skeletonConfig: t({
|
|
317
317
|
defaultConfig: R.value,
|
|
318
|
-
userConfig:
|
|
318
|
+
userConfig: zn.value
|
|
319
319
|
})
|
|
320
|
-
}), { userOptionsVisible:
|
|
320
|
+
}), { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } = Pe({ config: R.value }), { svgRef: V } = Fe({ config: R.value.style.chart.title });
|
|
321
321
|
function Gn() {
|
|
322
|
-
_n.value = !0,
|
|
322
|
+
_n.value = !0, Un(!0);
|
|
323
323
|
}
|
|
324
324
|
function Kn() {
|
|
325
|
-
|
|
325
|
+
Un(!1), _n.value = !1, kn.value = null, jn.value = "pointer", tn.value = !1, $.value = null, F("selectX", {
|
|
326
326
|
index: null,
|
|
327
327
|
indexLabel: null,
|
|
328
328
|
dataset: null
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
function qn() {
|
|
332
|
-
let e =
|
|
332
|
+
let e = xe({
|
|
333
333
|
userConfig: P.config,
|
|
334
|
-
defaultConfig:
|
|
335
|
-
}),
|
|
336
|
-
if (
|
|
334
|
+
defaultConfig: Yt
|
|
335
|
+
}), t = {}, n = e.theme;
|
|
336
|
+
if (n) if (!Xt.value(e)) Zt(e), t = e;
|
|
337
337
|
else {
|
|
338
|
-
let
|
|
339
|
-
userConfig:
|
|
338
|
+
let r = xe({
|
|
339
|
+
userConfig: Le[n] || P.config,
|
|
340
340
|
defaultConfig: e
|
|
341
341
|
});
|
|
342
|
-
|
|
343
|
-
...
|
|
342
|
+
t = {
|
|
343
|
+
...xe({
|
|
344
344
|
userConfig: P.config,
|
|
345
|
-
defaultConfig:
|
|
345
|
+
defaultConfig: r
|
|
346
346
|
}),
|
|
347
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
347
|
+
customPalette: e.customPalette.length ? e.customPalette : u[n] || v
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
|
-
else
|
|
351
|
-
return
|
|
350
|
+
else t = e;
|
|
351
|
+
return t;
|
|
352
352
|
}
|
|
353
|
-
let Jn =
|
|
354
|
-
|
|
355
|
-
B.value || (R.value = qn()),
|
|
353
|
+
let Jn = b(() => R.value.style.chart.lines.dataLabels.hideUnderValue !== null), Yn = b(() => R.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
354
|
+
$e(() => P.config, (e) => {
|
|
355
|
+
B.value || (R.value = qn()), Hn.value = !R.value.userOptions.showOnChartHover, or({ resetSlicer: !R.value.style.chart.zoom.keepState }), dn.value += 1, fn.value += 1, pn.value += 1, H.value.dataLabels.show = R.value.style.chart.lines.dataLabels.show, H.value.showTable = R.value.table.show, H.value.showTooltip = R.value.style.chart.tooltip.show, U.value.width = R.value.style.chart.width, U.value.height = R.value.style.chart.height, U.value.paddingRatio = {
|
|
356
356
|
top: R.value.style.chart.padding.top / R.value.style.chart.height,
|
|
357
357
|
right: R.value.style.chart.padding.right / R.value.style.chart.width,
|
|
358
358
|
bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
|
|
359
359
|
left: R.value.style.chart.padding.left / R.value.style.chart.width
|
|
360
|
-
},
|
|
361
|
-
}, { deep: !0 }),
|
|
362
|
-
Array.isArray(e) && e.length > 0 && (
|
|
360
|
+
}, Nn(), Fn(), !R.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0 ? ei() : Sr();
|
|
361
|
+
}, { deep: !0 }), $e(() => P.dataset, (e) => {
|
|
362
|
+
Array.isArray(e) && e.length > 0 && (Vn.value = !1), R.value.style.chart.zoom.keepState ? Sr() : Tr(), Nn(), Fn();
|
|
363
363
|
}, { deep: !0 });
|
|
364
|
-
let
|
|
364
|
+
let H = O({
|
|
365
365
|
dataLabels: { show: R.value.style.chart.lines.dataLabels.show },
|
|
366
366
|
showTable: R.value.table.show,
|
|
367
367
|
showTooltip: R.value.style.chart.tooltip.show
|
|
368
368
|
});
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
$e(R, () => {
|
|
370
|
+
H.value = {
|
|
371
371
|
dataLabels: { show: R.value.style.chart.lines.dataLabels.show },
|
|
372
372
|
showTable: R.value.table.show,
|
|
373
373
|
showTooltip: R.value.style.chart.tooltip.show
|
|
374
374
|
};
|
|
375
375
|
}, { immediate: !0 });
|
|
376
|
-
let { isPrinting: Xn, isImaging: Zn, generatePdf: Qn, generateImage: $n } =
|
|
377
|
-
elementId: `stackline_${
|
|
376
|
+
let { isPrinting: Xn, isImaging: Zn, generatePdf: Qn, generateImage: $n } = _e({
|
|
377
|
+
elementId: `stackline_${I.value}`,
|
|
378
378
|
fileName: R.value.style.chart.title.text || "vue-ui-stackline",
|
|
379
379
|
options: R.value.userOptions.print
|
|
380
|
-
}), er =
|
|
380
|
+
}), er = b(() => R.value.userOptions.show && !R.value.style.chart.title.text), U = O({
|
|
381
381
|
width: R.value.style.chart.width,
|
|
382
382
|
height: R.value.style.chart.height,
|
|
383
383
|
paddingRatio: {
|
|
@@ -386,52 +386,52 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
386
386
|
bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
|
|
387
387
|
left: R.value.style.chart.padding.left / R.value.style.chart.width
|
|
388
388
|
}
|
|
389
|
-
}), tr =
|
|
389
|
+
}), tr = b(() => c(R.value.customPalette)), nr = Xe(null), rr = Xe(null), ir = O(null), ar = b(() => !!R.value.debug);
|
|
390
390
|
function or({ resetSlicer: e = !0 } = {}) {
|
|
391
|
-
if (
|
|
391
|
+
if (a(P.dataset) ? (o({
|
|
392
392
|
componentName: "VueUiStackline",
|
|
393
393
|
type: "dataset",
|
|
394
394
|
debug: ar.value
|
|
395
|
-
}),
|
|
396
|
-
|
|
395
|
+
}), Vn.value = !0) : P.dataset.forEach((e, t) => {
|
|
396
|
+
ce({
|
|
397
397
|
datasetObject: e,
|
|
398
398
|
requiredAttributes: ["name", "series"]
|
|
399
399
|
}).forEach((e) => {
|
|
400
|
-
$t.value = !1,
|
|
400
|
+
$t.value = !1, o({
|
|
401
401
|
componentName: "VueUiStackline",
|
|
402
402
|
type: "datasetSerieAttribute",
|
|
403
403
|
property: e,
|
|
404
404
|
index: t,
|
|
405
405
|
debug: ar.value
|
|
406
|
-
}),
|
|
406
|
+
}), Vn.value = !0;
|
|
407
407
|
});
|
|
408
|
-
}),
|
|
408
|
+
}), a(P.dataset) || (Vn.value = R.value.loading), setTimeout(() => {
|
|
409
409
|
un.value = !0;
|
|
410
410
|
}, 10), R.value.responsive) {
|
|
411
|
-
let e =
|
|
411
|
+
let e = ke(() => {
|
|
412
412
|
un.value = !1;
|
|
413
|
-
let { width: e, height: t } =
|
|
413
|
+
let { width: e, height: t } = Ae({
|
|
414
414
|
chart: en.value,
|
|
415
415
|
noTitle: sn.value,
|
|
416
416
|
title: R.value.style.chart.title.text ? rn.value : null,
|
|
417
417
|
legend: R.value.style.chart.legend.show ? an.value : null,
|
|
418
|
-
slicer: R.value.style.chart.zoom.show &&
|
|
418
|
+
slicer: R.value.style.chart.zoom.show && K.value > 6 ? on.value.$el : null,
|
|
419
419
|
source: cn.value
|
|
420
420
|
});
|
|
421
421
|
requestAnimationFrame(() => {
|
|
422
|
-
|
|
422
|
+
U.value.width = e, U.value.height = t - 12, clearTimeout(ir.value), ir.value = setTimeout(() => {
|
|
423
423
|
un.value = !0;
|
|
424
424
|
}, 10);
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
427
|
nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect()), nr.value = new ResizeObserver(e), rr.value = en.value.parentNode, nr.value.observe(rr.value);
|
|
428
428
|
}
|
|
429
|
-
e &&
|
|
429
|
+
e && ei();
|
|
430
430
|
}
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
qe(() => {
|
|
432
|
+
Mn.stop(), nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect());
|
|
433
433
|
});
|
|
434
|
-
let sr =
|
|
434
|
+
let sr = b(() => R.value.style.chart.grid.y.position === "right");
|
|
435
435
|
function cr() {
|
|
436
436
|
let e = 0;
|
|
437
437
|
Sn.value && (e = Array.from(Sn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -446,7 +446,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
446
446
|
yAxisLabelWidth: t
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
let lr =
|
|
449
|
+
let lr = O(0), ur = O(0), dr = O(0);
|
|
450
450
|
function fr() {
|
|
451
451
|
let e = Cn.value;
|
|
452
452
|
if (!e) {
|
|
@@ -467,10 +467,10 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
467
467
|
});
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
qe(() => {
|
|
471
471
|
dr.value && cancelAnimationFrame(dr.value), ur.value = 0, lr.value = 0;
|
|
472
472
|
});
|
|
473
|
-
let mr =
|
|
473
|
+
let mr = b(() => {
|
|
474
474
|
let e = 0;
|
|
475
475
|
if (bn.value) try {
|
|
476
476
|
e = bn.value.getBBox().height;
|
|
@@ -479,9 +479,9 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
479
479
|
}
|
|
480
480
|
let t = R.value.style.chart.grid.x.timeLabels.show ? ur.value : 0;
|
|
481
481
|
return e + t;
|
|
482
|
-
}),
|
|
482
|
+
}), W = b(() => {
|
|
483
483
|
Dn.value;
|
|
484
|
-
let { height: e, width: t } =
|
|
484
|
+
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = R.value.style.chart.lines.totalValues.show && P.dataset && P.dataset.length > 1 ? R.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
|
|
485
485
|
if (R.value.style.chart.grid.y.axisLabels.show) {
|
|
486
486
|
let e = cr();
|
|
487
487
|
i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
|
|
@@ -501,8 +501,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
501
501
|
scaleLabelsWidth: o,
|
|
502
502
|
yAxisLabelWidth: s
|
|
503
503
|
};
|
|
504
|
-
}), hr =
|
|
505
|
-
let { left: e, top: t, width: n, height: r } =
|
|
504
|
+
}), hr = b(() => {
|
|
505
|
+
let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
|
|
506
506
|
fill: R.value.style.chart.zoom.preview.fill,
|
|
507
507
|
stroke: R.value.style.chart.zoom.preview.stroke,
|
|
508
508
|
"stroke-width": R.value.style.chart.zoom.preview.strokeWidth,
|
|
@@ -522,8 +522,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
522
522
|
height: r,
|
|
523
523
|
...u
|
|
524
524
|
};
|
|
525
|
-
}),
|
|
526
|
-
let
|
|
525
|
+
}), G = b(() => Bn.value.map((e, t) => {
|
|
526
|
+
let n = `stackline_serie_${t}`, r = h(e.color) || tr.value[t] || v[t] || v[t % v.length];
|
|
527
527
|
return {
|
|
528
528
|
...e,
|
|
529
529
|
shape: e.shape || "circle",
|
|
@@ -531,68 +531,68 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
531
531
|
series: JSON.parse(JSON.stringify(e.series)).map((e) => R.value.style.chart.lines.distributed ? Math.abs(e) : e),
|
|
532
532
|
seriesSource: e.series,
|
|
533
533
|
signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
|
|
534
|
-
absoluteIndex:
|
|
535
|
-
id:
|
|
536
|
-
color:
|
|
534
|
+
absoluteIndex: t,
|
|
535
|
+
id: n,
|
|
536
|
+
color: r
|
|
537
537
|
};
|
|
538
|
-
})), gr =
|
|
539
|
-
let e = Math.max(...
|
|
540
|
-
return isFinite(e) ? e : Math.max(...
|
|
538
|
+
})), gr = b(() => G.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), _r = b(() => G.value.filter((e) => !L.value.includes(e.id) && e.standalone)), K = b(() => {
|
|
539
|
+
let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
|
|
540
|
+
return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
|
|
541
541
|
});
|
|
542
542
|
function vr(e) {
|
|
543
|
-
|
|
543
|
+
In.value = e;
|
|
544
544
|
}
|
|
545
|
-
let
|
|
545
|
+
let q = O({
|
|
546
546
|
start: 0,
|
|
547
|
-
end: Math.max(...
|
|
548
|
-
}),
|
|
547
|
+
end: Math.max(...Bn.value.map((e) => e.series.length))
|
|
548
|
+
}), J = O({
|
|
549
549
|
start: 0,
|
|
550
|
-
end: Math.max(...
|
|
550
|
+
end: Math.max(...Bn.value.map((e) => e.series.length))
|
|
551
551
|
});
|
|
552
552
|
function yr(e) {
|
|
553
|
-
return (
|
|
553
|
+
return (q.value.start ?? 0) + (e ?? 0);
|
|
554
554
|
}
|
|
555
|
-
let br =
|
|
555
|
+
let br = b(() => R.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
|
|
556
556
|
function xr(e, t) {
|
|
557
|
-
|
|
557
|
+
J.value[e] = t;
|
|
558
558
|
}
|
|
559
559
|
function Sr() {
|
|
560
|
-
let e =
|
|
561
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e),
|
|
560
|
+
let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
|
|
561
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, on.value && (on.value.setStartValue(t), on.value.setEndValue(n));
|
|
562
562
|
}
|
|
563
|
-
let Cr =
|
|
563
|
+
let Cr = O(null);
|
|
564
564
|
function wr() {
|
|
565
565
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
qe(() => {
|
|
568
568
|
Cr.value && cancelAnimationFrame(Cr.value);
|
|
569
569
|
});
|
|
570
570
|
async function Tr({ force: e = !1 } = {}) {
|
|
571
|
-
if (R.value.style.chart.zoom.keepState && !e &&
|
|
571
|
+
if (R.value.style.chart.zoom.keepState && !e && Qr.value && !(q.value.start === 0 && q.value.end === 0)) {
|
|
572
572
|
Sr();
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
|
|
576
|
-
await wr(),
|
|
575
|
+
ei(), await We(), Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(async () => {
|
|
576
|
+
await wr(), ei();
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
let Er =
|
|
579
|
+
let Er = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Dr = b(() => d(gr.value.map((e) => ({
|
|
580
580
|
...e,
|
|
581
581
|
series: e.series.map((e) => e ?? 0)
|
|
582
|
-
}))).slice(
|
|
582
|
+
}))).slice(q.value.start, q.value.end)), Or = b(() => L.value.length === G.value.length), kr = b(() => {
|
|
583
583
|
if (!R.value.style.chart.zoom.minimap.show) return [];
|
|
584
|
-
let e =
|
|
585
|
-
if (e.length) return
|
|
584
|
+
let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone);
|
|
585
|
+
if (e.length) return d(e.map((e) => ({
|
|
586
586
|
...e,
|
|
587
587
|
series: (e.series || []).map((e) => e ?? 0)
|
|
588
588
|
})));
|
|
589
589
|
let t = _r.value;
|
|
590
590
|
if (!t.length) return [];
|
|
591
|
-
let
|
|
592
|
-
return Array.from({ length:
|
|
593
|
-
}), Ar =
|
|
591
|
+
let n = Math.max(...t.map((e) => e.series.length || 0));
|
|
592
|
+
return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
|
|
593
|
+
}), Ar = b(() => {
|
|
594
594
|
if (!R.value.style.chart.zoom.minimap.show) return [];
|
|
595
|
-
let e =
|
|
595
|
+
let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = _r.value, n = e.length ? [{
|
|
596
596
|
name: "",
|
|
597
597
|
series: kr.value,
|
|
598
598
|
color: "#000000",
|
|
@@ -604,44 +604,44 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
604
604
|
isVisible: !0
|
|
605
605
|
}));
|
|
606
606
|
return n.concat(r);
|
|
607
|
-
}), jr =
|
|
607
|
+
}), jr = b(() => d(gr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
|
|
608
608
|
...e,
|
|
609
609
|
series: e.series.map((t, n) => {
|
|
610
610
|
let r = t ?? 0;
|
|
611
611
|
return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
|
|
612
612
|
})
|
|
613
|
-
}))).slice(
|
|
614
|
-
let e = gr.value.filter((e) => !
|
|
613
|
+
}))).slice(q.value.start, q.value.end)), Mr = b(() => {
|
|
614
|
+
let e = gr.value.filter((e) => !L.value.includes(e.id));
|
|
615
615
|
return {
|
|
616
|
-
positive:
|
|
616
|
+
positive: d(e.map((e) => ({
|
|
617
617
|
...e,
|
|
618
|
-
series: e.series.slice(
|
|
618
|
+
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
|
|
619
619
|
}))),
|
|
620
|
-
negative:
|
|
620
|
+
negative: d(e.map((e) => ({
|
|
621
621
|
...e,
|
|
622
|
-
series: e.series.slice(
|
|
622
|
+
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
623
623
|
})))
|
|
624
624
|
};
|
|
625
|
-
}), Nr =
|
|
626
|
-
let e = Math.max(0,
|
|
625
|
+
}), Nr = b(() => {
|
|
626
|
+
let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
|
|
627
627
|
return _r.value.forEach((r) => {
|
|
628
628
|
for (let i = 0; i < e; i += 1) {
|
|
629
|
-
let e = r.series[
|
|
629
|
+
let e = r.series[q.value.start + i] ?? 0;
|
|
630
630
|
e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
|
|
631
631
|
}
|
|
632
632
|
}), {
|
|
633
633
|
positive: t,
|
|
634
634
|
negative: n
|
|
635
635
|
};
|
|
636
|
-
}), Pr =
|
|
636
|
+
}), Pr = b(() => jr.value.map((e, t) => ({
|
|
637
637
|
value: e,
|
|
638
638
|
sign: e >= 0 ? 1 : -1
|
|
639
639
|
})));
|
|
640
640
|
function Fr() {
|
|
641
|
-
return { y0: Lr.value?.[0]?.zero ??
|
|
641
|
+
return { y0: Lr.value?.[0]?.zero ?? W.value.bottom };
|
|
642
642
|
}
|
|
643
643
|
function Ir(e) {
|
|
644
|
-
let { y0: t } = Fr(), n = R.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e,
|
|
644
|
+
let { y0: t } = Fr(), n = R.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - R.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + R.value.style.chart.lines.totalValues.fontSize * 2);
|
|
645
645
|
if ((Pr.value?.[e]?.value ?? 0) >= 0 || R.value.style.chart.lines.distributed) {
|
|
646
646
|
let n = Infinity;
|
|
647
647
|
for (let t of Y.value || []) {
|
|
@@ -658,94 +658,94 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
658
658
|
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + R.value.style.chart.lines.totalValues.offsetY);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
let Lr =
|
|
661
|
+
let Lr = b(() => {
|
|
662
662
|
let e = Math.max(...Mr.value.positive, 0), t = Math.min(...Mr.value.negative, 0), n = Math.max(...Nr.value.positive, 0), r = Math.min(...Nr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
|
|
663
663
|
-Infinity,
|
|
664
664
|
Infinity,
|
|
665
665
|
NaN,
|
|
666
666
|
void 0,
|
|
667
667
|
null
|
|
668
|
-
].includes(a) ? 0 : a, s = R.value.style.chart.grid.scale.scaleMin, c = R.value.style.chart.grid.scale.scaleMax, l = !R.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !R.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !R.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? _(u, d, R.value.style.chart.grid.scale.ticks) :
|
|
668
|
+
].includes(a) ? 0 : a, s = R.value.style.chart.grid.scale.scaleMin, c = R.value.style.chart.grid.scale.scaleMax, l = !R.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !R.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !R.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? _(u, d, R.value.style.chart.grid.scale.ticks) : ee(u, d, R.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], te = W.value.bottom - W.value.height * (p / h);
|
|
669
669
|
return g.map((e) => {
|
|
670
670
|
let t = Number(e) || 0;
|
|
671
671
|
return {
|
|
672
|
-
zero:
|
|
673
|
-
y:
|
|
672
|
+
zero: te,
|
|
673
|
+
y: W.value.bottom - W.value.height * ((t + p) / h),
|
|
674
674
|
x: sr.value ? X.value.right + 8 : X.value.left - 8,
|
|
675
675
|
value: t
|
|
676
676
|
};
|
|
677
677
|
});
|
|
678
|
-
}),
|
|
679
|
-
|
|
680
|
-
let e = ++
|
|
678
|
+
}), Rr = O([]), zr = O([]), Br = 0;
|
|
679
|
+
et(() => {
|
|
680
|
+
let e = ++Br;
|
|
681
681
|
(async () => {
|
|
682
|
-
let t = await
|
|
682
|
+
let t = await he({
|
|
683
683
|
values: R.value.style.chart.grid.x.timeLabels.values,
|
|
684
|
-
maxDatapoints:
|
|
684
|
+
maxDatapoints: K.value,
|
|
685
685
|
formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
686
|
-
start:
|
|
687
|
-
end:
|
|
686
|
+
start: q.value.start,
|
|
687
|
+
end: q.value.end
|
|
688
688
|
});
|
|
689
|
-
e ===
|
|
689
|
+
e === Br && (Rr.value = t);
|
|
690
690
|
})();
|
|
691
691
|
});
|
|
692
|
-
let
|
|
693
|
-
|
|
694
|
-
let e = ++
|
|
692
|
+
let Vr = 0;
|
|
693
|
+
et(() => {
|
|
694
|
+
let e = ++Vr;
|
|
695
695
|
(async () => {
|
|
696
|
-
let t = await
|
|
696
|
+
let t = await he({
|
|
697
697
|
values: R.value.style.chart.grid.x.timeLabels.values,
|
|
698
|
-
maxDatapoints:
|
|
698
|
+
maxDatapoints: K.value,
|
|
699
699
|
formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
700
700
|
start: 0,
|
|
701
|
-
end:
|
|
701
|
+
end: K.value
|
|
702
702
|
});
|
|
703
|
-
e ===
|
|
703
|
+
e === Vr && (zr.value = t);
|
|
704
704
|
})();
|
|
705
705
|
});
|
|
706
|
-
let
|
|
706
|
+
let Hr = b(() => {
|
|
707
707
|
let e = R.value.style.chart.grid.x.timeLabels.modulo;
|
|
708
|
-
return
|
|
709
|
-
}),
|
|
710
|
-
let e = R.value.style.chart.grid.x.timeLabels, t =
|
|
711
|
-
return
|
|
708
|
+
return Rr.value.length ? Math.min(e, [...new Set(Rr.value.map((e) => e.text))].length) : e;
|
|
709
|
+
}), Ur = b(() => {
|
|
710
|
+
let e = R.value.style.chart.grid.x.timeLabels, t = Rr.value || [], n = zr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
711
|
+
return oe(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), o, s, r, i, a);
|
|
712
712
|
});
|
|
713
|
-
|
|
714
|
-
R.value.style.chart.grid.x.timeLabels.show, R.value.style.chart.grid.x.timeLabels.fontSize, R.value.style.chart.grid.x.timeLabels.rotation, R.value.style.chart.grid.x.timeLabels.offsetY, (
|
|
713
|
+
et(() => {
|
|
714
|
+
R.value.style.chart.grid.x.timeLabels.show, R.value.style.chart.grid.x.timeLabels.fontSize, R.value.style.chart.grid.x.timeLabels.rotation, R.value.style.chart.grid.x.timeLabels.offsetY, (Ur.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Cn.value, bn.value, pr();
|
|
715
715
|
}, { flush: "post" });
|
|
716
|
-
let
|
|
716
|
+
let Wr = O({
|
|
717
717
|
months: [],
|
|
718
718
|
shortMonths: [],
|
|
719
719
|
days: [],
|
|
720
720
|
shortDays: []
|
|
721
|
-
}),
|
|
722
|
-
|
|
723
|
-
let e = ++
|
|
721
|
+
}), Gr = 0;
|
|
722
|
+
et(() => {
|
|
723
|
+
let e = ++Gr, t = R.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
724
724
|
(async () => {
|
|
725
|
-
let n = await
|
|
726
|
-
e ===
|
|
725
|
+
let n = await me(t.locale).catch(() => me("en"));
|
|
726
|
+
e === Gr && (Wr.value = n.data);
|
|
727
727
|
})();
|
|
728
728
|
});
|
|
729
|
-
let
|
|
730
|
-
let e = R.value.style.chart.grid.x.timeLabels.datetimeFormatter, t =
|
|
729
|
+
let Kr = b(() => {
|
|
730
|
+
let e = R.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
|
|
731
731
|
useUTC: e.useUTC,
|
|
732
|
-
locale:
|
|
732
|
+
locale: Wr.value,
|
|
733
733
|
januaryAsYear: e.januaryAsYear
|
|
734
734
|
});
|
|
735
735
|
return (e, n) => {
|
|
736
736
|
let r = R.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
737
737
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
738
738
|
};
|
|
739
|
-
}),
|
|
740
|
-
text:
|
|
739
|
+
}), qr = b(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
740
|
+
text: Kr.value(t, R.value.style.chart.zoom.timeFormat),
|
|
741
741
|
absoluteIndex: t
|
|
742
|
-
}))),
|
|
743
|
-
text:
|
|
742
|
+
}))), Jr = b(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
743
|
+
text: Kr.value(t, R.value.style.chart.tooltip.timeFormat),
|
|
744
744
|
absoluteIndex: t
|
|
745
|
-
}))),
|
|
745
|
+
}))), Yr = b(() => {
|
|
746
746
|
if (!$t.value && !B.value) return [];
|
|
747
|
-
let e =
|
|
748
|
-
return
|
|
747
|
+
let e = W.value.height, t = Lr.value[0] ? Lr.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Mr.value.positive, 0), o = Math.min(...Mr.value.negative, 0), s = Math.max(...Nr.value.positive, 0), c = Math.min(...Nr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !R.value.style.chart.lines.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? _(R.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : ee(R.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : R.value.style.chart.grid.scale.scaleMax, R.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 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
|
|
748
|
+
return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
|
|
749
749
|
let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
|
|
750
750
|
for (let u = 0; u < i; u += 1) {
|
|
751
751
|
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : R.value.style.chart.lines.distributed ? g / (Dr.value[u] || 1) : g / p;
|
|
@@ -769,7 +769,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
769
769
|
let u = a.map((e) => ({
|
|
770
770
|
x: g(e),
|
|
771
771
|
y: l[e]
|
|
772
|
-
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), _ = f === 0 ? 1 : f,
|
|
772
|
+
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), _ = f === 0 ? 1 : f, ee = o.map((e, t) => {
|
|
773
773
|
if (R.value.style.chart.lines.distributed && !r.standalone) {
|
|
774
774
|
let n = a[t], r = Dr.value[n] || 1;
|
|
775
775
|
return (e || 0) / r;
|
|
@@ -784,20 +784,20 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
784
784
|
topY: a.map((e) => l[e]),
|
|
785
785
|
series: o,
|
|
786
786
|
signedSeries: s,
|
|
787
|
-
proportions:
|
|
787
|
+
proportions: ee,
|
|
788
788
|
rel: a,
|
|
789
789
|
fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
|
|
790
790
|
};
|
|
791
791
|
});
|
|
792
|
-
}), Y =
|
|
793
|
-
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Mr.value.positive, 0), n = Math.min(...Mr.value.negative, 0), r = Math.max(...Nr.value.positive, 0), i = Math.min(...Nr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i),
|
|
792
|
+
}), Y = b(() => {
|
|
793
|
+
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Mr.value.positive, 0), n = Math.min(...Mr.value.negative, 0), r = Math.max(...Nr.value.positive, 0), i = Math.min(...Nr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), c = !R.value.style.chart.lines.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? _(R.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : ee(R.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks), l = Number(c.min) || 0, u = Number(c.max) || 0, d = Math.abs(l), f = u + d || 1, p = (e) => {
|
|
794
794
|
if (R.value.style.chart.lines.distributed) {
|
|
795
795
|
let t = Math.max(0, Math.min(1, e));
|
|
796
796
|
return minimapH - minimapH * t;
|
|
797
797
|
}
|
|
798
798
|
return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
|
|
799
799
|
};
|
|
800
|
-
return
|
|
800
|
+
return Yr.value.map((t) => {
|
|
801
801
|
let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
|
|
802
802
|
let n = r.length;
|
|
803
803
|
return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
|
|
@@ -817,20 +817,20 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
817
817
|
yMinimap: a,
|
|
818
818
|
yMinimapBase: o
|
|
819
819
|
};
|
|
820
|
-
let
|
|
820
|
+
let c = t.x.map((e, n) => ({
|
|
821
821
|
x: e,
|
|
822
822
|
y: t.topY[n]
|
|
823
823
|
})), l = t.x.map((e, n) => ({
|
|
824
824
|
x: e,
|
|
825
825
|
y: t.baseY[n]
|
|
826
|
-
})), u = n >= 2 ?
|
|
826
|
+
})), u = n >= 2 ? ne(c) : `M${c[0].x},${c[0].y}`, d = n >= 2 ? s(c) : `M${c[0].x},${c[0].y}`, f = n >= 2 ? `M${e(u)}` : u, m = n >= 2 ? `M${e(d)}` : d, h = "", g = "";
|
|
827
827
|
if (R.value.style.chart.lines.useArea && n >= 2) {
|
|
828
|
-
let t =
|
|
829
|
-
h = `M${
|
|
828
|
+
let t = ne([...l].reverse()), n = s([...l].reverse()), r = l[l.length - 1];
|
|
829
|
+
h = `M${c[0].x},${c[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, g = `M${c[0].x},${c[0].y} ${e(d)} L${r.x},${r.y} ${e(n)} Z`;
|
|
830
830
|
}
|
|
831
831
|
return {
|
|
832
832
|
...t,
|
|
833
|
-
points:
|
|
833
|
+
points: c,
|
|
834
834
|
smoothPath: f,
|
|
835
835
|
straightPath: m,
|
|
836
836
|
smoothArea: h,
|
|
@@ -840,50 +840,50 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
840
840
|
yMinimapBase: o
|
|
841
841
|
};
|
|
842
842
|
});
|
|
843
|
-
}),
|
|
844
|
-
timeLabel:
|
|
845
|
-
absoluteIndex: $.value +
|
|
843
|
+
}), Xr = b(() => $.value === null || $.value === void 0 ? null : {
|
|
844
|
+
timeLabel: mi($.value),
|
|
845
|
+
absoluteIndex: $.value + q.value.start,
|
|
846
846
|
seriesIndex: $.value,
|
|
847
|
-
datapoint:
|
|
847
|
+
datapoint: pi.value,
|
|
848
848
|
series: Y.value,
|
|
849
849
|
config: R.value
|
|
850
|
-
}),
|
|
851
|
-
function
|
|
852
|
-
let t =
|
|
853
|
-
return e > t ? t : e < 0 || e <
|
|
850
|
+
}), Zr = O(!1), Qr = O(!1);
|
|
851
|
+
function $r(e) {
|
|
852
|
+
let t = K.value;
|
|
853
|
+
return e > t ? t : e < 0 || e < q.value.start ? R.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
856
|
-
if (!
|
|
857
|
-
|
|
855
|
+
function ei() {
|
|
856
|
+
if (!Zr.value) {
|
|
857
|
+
Zr.value = !0;
|
|
858
858
|
try {
|
|
859
|
-
let { startIndex: e, endIndex: t, keepState: n } = R.value.style.chart.zoom, r = n ? Math.max(0,
|
|
859
|
+
let { startIndex: e, endIndex: t, keepState: n } = R.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
|
|
860
860
|
if (n && r <= 0) return;
|
|
861
|
-
let i = e ?? 0, a = t == null ? r : Math.min(
|
|
862
|
-
|
|
861
|
+
let i = e ?? 0, a = t == null ? r : Math.min($r(t + 1), r);
|
|
862
|
+
ri.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Sr(), Qr.value = !0;
|
|
863
863
|
} finally {
|
|
864
864
|
queueMicrotask(() => {
|
|
865
|
-
|
|
866
|
-
}),
|
|
865
|
+
ri.value = !1;
|
|
866
|
+
}), Zr.value = !1;
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
|
-
function ei(e) {
|
|
871
|
-
Xr.value || ni.value || e !== K.value.start && (K.value.start = e, q.value.start = e, Sr());
|
|
872
|
-
}
|
|
873
870
|
function ti(e) {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
871
|
+
Zr.value || ri.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Sr());
|
|
872
|
+
}
|
|
873
|
+
function ni(e) {
|
|
874
|
+
if (Zr.value || ri.value) return;
|
|
875
|
+
let t = $r(e);
|
|
876
|
+
t !== q.value.end && (q.value.end = t, J.value.end = t, Sr());
|
|
877
877
|
}
|
|
878
|
-
let X =
|
|
879
|
-
left:
|
|
880
|
-
right:
|
|
881
|
-
width:
|
|
878
|
+
let X = b(() => ({
|
|
879
|
+
left: W.value.left,
|
|
880
|
+
right: W.value.right,
|
|
881
|
+
width: W.value.width
|
|
882
882
|
}));
|
|
883
|
-
|
|
884
|
-
|
|
883
|
+
$e([
|
|
884
|
+
b(() => {
|
|
885
885
|
let e = R.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = R.value.style.chart.lines.dataLabels;
|
|
886
|
-
return Lr.value.map((r) => String(
|
|
886
|
+
return Lr.value.map((r) => String(te(e.formatter, r.value, ie({
|
|
887
887
|
p: t,
|
|
888
888
|
v: r.value,
|
|
889
889
|
s: n,
|
|
@@ -895,13 +895,13 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
895
895
|
() => R.value.style.chart.grid.y.axisLabels.bold,
|
|
896
896
|
() => R.value.style.chart.grid.y.position
|
|
897
897
|
], () => {
|
|
898
|
-
R.value.style.chart.grid.y.axisLabels.show &&
|
|
898
|
+
R.value.style.chart.grid.y.axisLabels.show && Fn();
|
|
899
899
|
}, { flush: "post" });
|
|
900
|
-
let
|
|
901
|
-
|
|
900
|
+
let ri = O(!1);
|
|
901
|
+
we({
|
|
902
902
|
timeLabelsEls: Cn,
|
|
903
|
-
timeLabels:
|
|
904
|
-
slicer:
|
|
903
|
+
timeLabels: Rr,
|
|
904
|
+
slicer: q,
|
|
905
905
|
configRef: R,
|
|
906
906
|
rotationPath: [
|
|
907
907
|
"style",
|
|
@@ -921,13 +921,13 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
921
921
|
"enable"
|
|
922
922
|
],
|
|
923
923
|
isAutoSize: !1,
|
|
924
|
-
width:
|
|
925
|
-
height:
|
|
924
|
+
width: b(() => U.value.width),
|
|
925
|
+
height: b(() => U.value.height),
|
|
926
926
|
rotation: R.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
927
927
|
});
|
|
928
|
-
let
|
|
929
|
-
function
|
|
930
|
-
let t =
|
|
928
|
+
let ii = O(null);
|
|
929
|
+
function ai(e) {
|
|
930
|
+
let t = V.value;
|
|
931
931
|
if (!t) return null;
|
|
932
932
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
933
933
|
let n = t.createSVGPoint();
|
|
@@ -954,58 +954,58 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
954
954
|
ok: !0
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
|
-
let
|
|
957
|
+
let oi = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), si = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
|
|
958
958
|
function Q(e) {
|
|
959
|
-
return Z.value <= 1 ?
|
|
959
|
+
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * si.value;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function ci(e) {
|
|
962
962
|
if (Z.value <= 1) return {
|
|
963
|
-
x:
|
|
964
|
-
width:
|
|
963
|
+
x: W.value.left,
|
|
964
|
+
width: W.value.width
|
|
965
965
|
};
|
|
966
|
-
let t = e === 0 ?
|
|
966
|
+
let t = e === 0 ? W.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? W.value.left + W.value.width : (Q(e) + Q(e + 1)) / 2;
|
|
967
967
|
return {
|
|
968
968
|
x: t,
|
|
969
969
|
width: Math.max(0, n - t)
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
function
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
let t =
|
|
976
|
-
if (!t || !
|
|
977
|
-
|
|
972
|
+
function li(e) {
|
|
973
|
+
Ln.value || (oi && cancelAnimationFrame(oi), oi = requestAnimationFrame(() => {
|
|
974
|
+
oi = 0;
|
|
975
|
+
let t = ai(e);
|
|
976
|
+
if (!t || !V.value) {
|
|
977
|
+
fi();
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
let { left: n, right: r, top: i, bottom: a } =
|
|
980
|
+
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
981
981
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
982
|
-
|
|
982
|
+
fi();
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
985
|
let o = 0;
|
|
986
986
|
if (Z.value > 1) {
|
|
987
|
-
let e = (t.x - n) /
|
|
987
|
+
let e = (t.x - n) / si.value;
|
|
988
988
|
o = Math.round(e);
|
|
989
989
|
} else o = 0;
|
|
990
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
990
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ii.value !== o && (ii.value = o, gi(!0, o));
|
|
991
991
|
}));
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
let t =
|
|
995
|
-
if (!t || !
|
|
996
|
-
let { left: n, right: r, top: i, bottom: a } =
|
|
993
|
+
function ui(e) {
|
|
994
|
+
let t = ai(e);
|
|
995
|
+
if (!t || !V.value) return;
|
|
996
|
+
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
997
997
|
if (t.x < n || t.x > r || t.y < i || t.y > a) return;
|
|
998
998
|
let o = 0;
|
|
999
999
|
if (Z.value > 1) {
|
|
1000
|
-
let e = (t.x - n) /
|
|
1000
|
+
let e = (t.x - n) / si.value;
|
|
1001
1001
|
o = Math.round(e);
|
|
1002
1002
|
} else o = 0;
|
|
1003
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
1003
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), Yi({
|
|
1004
1004
|
seriesIndex: o,
|
|
1005
|
-
datapoint:
|
|
1006
|
-
}),
|
|
1005
|
+
datapoint: Vi(o)
|
|
1006
|
+
}), di(o);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function di(e) {
|
|
1009
1009
|
let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
|
|
1010
1010
|
name: t.name,
|
|
1011
1011
|
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
@@ -1015,15 +1015,15 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1015
1015
|
}));
|
|
1016
1016
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
1017
1017
|
datapoint: t,
|
|
1018
|
-
seriesIndex: e +
|
|
1019
|
-
}),
|
|
1018
|
+
seriesIndex: e + q.value.start
|
|
1019
|
+
}), F("selectDatapoint", {
|
|
1020
1020
|
datapoint: t,
|
|
1021
|
-
period:
|
|
1021
|
+
period: Rr.value[e]
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1024
|
+
$e(() => [
|
|
1025
|
+
q.value.start,
|
|
1026
|
+
q.value.end,
|
|
1027
1027
|
Y.value.length
|
|
1028
1028
|
], () => {
|
|
1029
1029
|
let e = Z.value;
|
|
@@ -1035,10 +1035,10 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1035
1035
|
$.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
|
|
1036
1036
|
}
|
|
1037
1037
|
});
|
|
1038
|
-
function
|
|
1039
|
-
|
|
1038
|
+
function fi() {
|
|
1039
|
+
oi &&= (cancelAnimationFrame(oi), 0), ii.value = null, gi(!1, null);
|
|
1040
1040
|
}
|
|
1041
|
-
let $ =
|
|
1041
|
+
let $ = O(null), pi = b(() => {
|
|
1042
1042
|
let e = $.value, t = e == null ? null : yr(e);
|
|
1043
1043
|
return Y.value.map((n) => ({
|
|
1044
1044
|
slotAbsoluteIndex: n.absoluteIndex,
|
|
@@ -1052,24 +1052,24 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1052
1052
|
standalone: !!n.standalone
|
|
1053
1053
|
}));
|
|
1054
1054
|
});
|
|
1055
|
-
function
|
|
1055
|
+
function mi(e) {
|
|
1056
1056
|
if (e == null || !R.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1057
|
-
let t =
|
|
1057
|
+
let t = Rr.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
|
|
1058
1058
|
return R.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1059
1059
|
}
|
|
1060
|
-
let
|
|
1061
|
-
let e = R.value.style.chart.tooltip.customFormat, t = [...
|
|
1062
|
-
if (
|
|
1063
|
-
absoluteIndex: $.value +
|
|
1060
|
+
let hi = b(() => {
|
|
1061
|
+
let e = R.value.style.chart.tooltip.customFormat, t = [...pi.value].reverse(), n = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = n.map((e) => e.value).filter((e) => fe(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1062
|
+
if (ue(e) && m(() => e({
|
|
1063
|
+
absoluteIndex: $.value + q.value.start,
|
|
1064
1064
|
seriesIndex: $.value,
|
|
1065
|
-
datapoint:
|
|
1066
|
-
series:
|
|
1065
|
+
datapoint: pi.value,
|
|
1066
|
+
series: G.value,
|
|
1067
1067
|
config: R.value
|
|
1068
1068
|
}))) return e({
|
|
1069
|
-
absoluteIndex: $.value +
|
|
1069
|
+
absoluteIndex: $.value + q.value.start,
|
|
1070
1070
|
seriesIndex: $.value,
|
|
1071
|
-
datapoint:
|
|
1072
|
-
series:
|
|
1071
|
+
datapoint: pi.value,
|
|
1072
|
+
series: G.value,
|
|
1073
1073
|
config: R.value
|
|
1074
1074
|
});
|
|
1075
1075
|
let { showValue: o, showTotal: s, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage: f } = R.value.style.chart.tooltip, p = (e) => !e.shape || ![
|
|
@@ -1079,13 +1079,13 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1079
1079
|
"diamond",
|
|
1080
1080
|
"pentagon",
|
|
1081
1081
|
"hexagon"
|
|
1082
|
-
].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${R.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="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${
|
|
1082
|
+
].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${R.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="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${r({
|
|
1083
1083
|
plot: {
|
|
1084
1084
|
x: 6,
|
|
1085
1085
|
y: 6
|
|
1086
1086
|
},
|
|
1087
1087
|
radius: 5
|
|
1088
|
-
})}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${
|
|
1088
|
+
})}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${re({
|
|
1089
1089
|
plot: {
|
|
1090
1090
|
x: 6,
|
|
1091
1091
|
y: 6
|
|
@@ -1093,7 +1093,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1093
1093
|
radius: 6,
|
|
1094
1094
|
sides: 3,
|
|
1095
1095
|
rotation: .52
|
|
1096
|
-
}).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1096
|
+
}).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${re({
|
|
1097
1097
|
plot: {
|
|
1098
1098
|
x: 6,
|
|
1099
1099
|
y: 6
|
|
@@ -1101,7 +1101,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1101
1101
|
radius: 6,
|
|
1102
1102
|
sides: 4,
|
|
1103
1103
|
rotation: .8
|
|
1104
|
-
}).path}" fill="${e.color}" stroke="${R.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="${
|
|
1104
|
+
}).path}" fill="${e.color}" stroke="${R.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="${re({
|
|
1105
1105
|
plot: {
|
|
1106
1106
|
x: 6,
|
|
1107
1107
|
y: 6
|
|
@@ -1109,7 +1109,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1109
1109
|
radius: 5,
|
|
1110
1110
|
sides: 4,
|
|
1111
1111
|
rotation: 0
|
|
1112
|
-
}).path}" fill="${e.color}" stroke="${R.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="${
|
|
1112
|
+
}).path}" fill="${e.color}" stroke="${R.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="${re({
|
|
1113
1113
|
plot: {
|
|
1114
1114
|
x: 6,
|
|
1115
1115
|
y: 6
|
|
@@ -1117,7 +1117,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1117
1117
|
radius: 5,
|
|
1118
1118
|
sides: 5,
|
|
1119
1119
|
rotation: .95
|
|
1120
|
-
}).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${
|
|
1120
|
+
}).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${re({
|
|
1121
1121
|
plot: {
|
|
1122
1122
|
x: 6,
|
|
1123
1123
|
y: 6
|
|
@@ -1125,45 +1125,45 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1125
1125
|
radius: 5,
|
|
1126
1126
|
sides: 6,
|
|
1127
1127
|
rotation: 0
|
|
1128
|
-
}).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`,
|
|
1129
|
-
let n = t ?
|
|
1130
|
-
v: isNaN((e.value ?? 0) / (
|
|
1128
|
+
}).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, h = (e, t) => {
|
|
1129
|
+
let n = t ? ie({
|
|
1130
|
+
v: isNaN((e.value ?? 0) / (a || 1)) ? 0 : Math.abs(e.value ?? 0) / (a || 1) * 100,
|
|
1131
1131
|
s: "%",
|
|
1132
1132
|
r: f
|
|
1133
|
-
}) : "", r = o && t ? "(" : "",
|
|
1133
|
+
}) : "", r = o && t ? "(" : "", i = o && t ? ")" : "";
|
|
1134
1134
|
return `
|
|
1135
1135
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1136
1136
|
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${p(e)}</div>
|
|
1137
1137
|
${e.name}${o || t ? ":" : ""}
|
|
1138
|
-
${o ?
|
|
1138
|
+
${o ? te(R.value.style.chart.lines.dataLabels.formatter, e.sourceValue, ie({
|
|
1139
1139
|
p: R.value.style.chart.lines.dataLabels.prefix,
|
|
1140
1140
|
v: e.sourceValue,
|
|
1141
1141
|
s: R.value.style.chart.lines.dataLabels.suffix,
|
|
1142
1142
|
r: d
|
|
1143
|
-
}, { datapoint: e })) : ""} ${r}${n}${
|
|
1143
|
+
}, { datapoint: e })) : ""} ${r}${n}${i}
|
|
1144
1144
|
</div>
|
|
1145
1145
|
`;
|
|
1146
|
-
},
|
|
1147
|
-
return
|
|
1146
|
+
}, g = "", _ = mi($.value);
|
|
1147
|
+
return _ && (g += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${_}</div>`), s && n.length > 1 && (g += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1148
1148
|
<span>${c}:</span>
|
|
1149
|
-
<span>${
|
|
1149
|
+
<span>${te(R.value.style.chart.lines.dataLabels.formatter, ae(a), ie({
|
|
1150
1150
|
p: R.value.style.chart.lines.dataLabels.prefix,
|
|
1151
|
-
v:
|
|
1151
|
+
v: ae(a),
|
|
1152
1152
|
s: R.value.style.chart.lines.dataLabels.suffix,
|
|
1153
1153
|
r: d
|
|
1154
1154
|
}), { datapoint: {
|
|
1155
1155
|
name: c,
|
|
1156
|
-
value:
|
|
1156
|
+
value: ae(a)
|
|
1157
1157
|
} })}</span>
|
|
1158
1158
|
</div>`), n.forEach((e) => {
|
|
1159
|
-
|
|
1160
|
-
}),
|
|
1161
|
-
|
|
1162
|
-
})), `<div>${
|
|
1159
|
+
g += h(e, l);
|
|
1160
|
+
}), i.length && (g += `<div style="border-top:1px solid ${gr.value.length ? u : "transparent"}; margin:${gr.value.length ? "6px 0" : "0"};"></div>`, i.forEach((e) => {
|
|
1161
|
+
g += h(e, !1);
|
|
1162
|
+
})), `<div>${g}</div>`;
|
|
1163
1163
|
});
|
|
1164
|
-
function
|
|
1164
|
+
function gi(e, t = null, n = "pointer") {
|
|
1165
1165
|
if (Or.value) return;
|
|
1166
|
-
|
|
1166
|
+
jn.value = n, tn.value = e;
|
|
1167
1167
|
let r = Y.value.map((e) => ({
|
|
1168
1168
|
name: e.name,
|
|
1169
1169
|
value: [
|
|
@@ -1173,23 +1173,23 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1173
1173
|
].includes(e.series[t]) ? null : e.series[t],
|
|
1174
1174
|
color: e.color
|
|
1175
1175
|
}));
|
|
1176
|
-
e ? (
|
|
1176
|
+
e ? (kn.value = t, $.value = t, Yi({
|
|
1177
1177
|
seriesIndex: t,
|
|
1178
1178
|
datapoint: r
|
|
1179
1179
|
}), R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
1180
1180
|
datapoint: r,
|
|
1181
|
-
seriesIndex: t +
|
|
1182
|
-
})) : (
|
|
1181
|
+
seriesIndex: t + q.value.start
|
|
1182
|
+
})) : (kn.value = null, $.value = null, F("selectX", {
|
|
1183
1183
|
index: null,
|
|
1184
1184
|
indexLabel: null,
|
|
1185
1185
|
dataset: null
|
|
1186
1186
|
}), R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
1187
1187
|
datapoint: r,
|
|
1188
|
-
seriesIndex: t +
|
|
1188
|
+
seriesIndex: t + q.value.start
|
|
1189
1189
|
}));
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
|
|
1191
|
+
function _i(e, t) {
|
|
1192
|
+
F("selectTimeLabel", {
|
|
1193
1193
|
datapoint: JSON.parse(JSON.stringify(Y.value)).map((e) => ({
|
|
1194
1194
|
name: e.name,
|
|
1195
1195
|
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
@@ -1201,25 +1201,25 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1201
1201
|
label: e.text
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
}),
|
|
1204
|
+
function vi() {
|
|
1205
|
+
L.value.length ? L.value = [] : bi.value.forEach((e) => {
|
|
1206
|
+
L.value.push(e.id);
|
|
1207
|
+
}), F("selectLegend", Y.value);
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1210
|
-
if (
|
|
1209
|
+
function yi(e) {
|
|
1210
|
+
if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
|
|
1211
1211
|
else {
|
|
1212
|
-
if (
|
|
1213
|
-
|
|
1212
|
+
if (L.value.length === G.value.length - 1) return;
|
|
1213
|
+
L.value.push(e.id);
|
|
1214
1214
|
}
|
|
1215
|
-
|
|
1215
|
+
F("selectLegend", Y.value);
|
|
1216
1216
|
}
|
|
1217
|
-
let
|
|
1217
|
+
let bi = b(() => G.value.map((e) => ({
|
|
1218
1218
|
...e,
|
|
1219
|
-
opacity:
|
|
1220
|
-
segregate: () =>
|
|
1221
|
-
isSegregated:
|
|
1222
|
-
}))),
|
|
1219
|
+
opacity: L.value.includes(e.id) ? .5 : 1,
|
|
1220
|
+
segregate: () => yi(e),
|
|
1221
|
+
isSegregated: L.value.includes(e.id)
|
|
1222
|
+
}))), xi = b(() => ({
|
|
1223
1223
|
cy: "stackline-legend",
|
|
1224
1224
|
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
1225
1225
|
color: R.value.style.chart.legend.color,
|
|
@@ -1227,18 +1227,18 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1227
1227
|
paddingBottom: 12,
|
|
1228
1228
|
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
1229
1229
|
}));
|
|
1230
|
-
function xi(e) {
|
|
1231
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1232
|
-
}
|
|
1233
1230
|
function Si(e) {
|
|
1234
|
-
|
|
1235
|
-
t !== null && I.value.includes(t.id) && vi({ id: t.id });
|
|
1231
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1236
1232
|
}
|
|
1237
1233
|
function Ci(e) {
|
|
1238
|
-
let t =
|
|
1239
|
-
t !== null &&
|
|
1234
|
+
let t = Si(e);
|
|
1235
|
+
t !== null && L.value.includes(t.id) && yi({ id: t.id });
|
|
1236
|
+
}
|
|
1237
|
+
function wi(e) {
|
|
1238
|
+
let t = Si(e);
|
|
1239
|
+
t !== null && (L.value.includes(t.id) || yi({ id: t.id }));
|
|
1240
1240
|
}
|
|
1241
|
-
let
|
|
1241
|
+
let Ti = b(() => {
|
|
1242
1242
|
if (Y.value.length === 0) return {
|
|
1243
1243
|
head: [],
|
|
1244
1244
|
body: [],
|
|
@@ -1249,9 +1249,9 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1249
1249
|
label: e,
|
|
1250
1250
|
color: t
|
|
1251
1251
|
})), t = [];
|
|
1252
|
-
return
|
|
1252
|
+
return Ur.value.forEach((e) => {
|
|
1253
1253
|
let n = e.absoluteIndex, r = [R.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
|
|
1254
|
-
|
|
1254
|
+
G.value.forEach((e) => {
|
|
1255
1255
|
let t = e.series?.[n], i = Number((t ?? 0).toFixed(R.value.table.td.roundingValue));
|
|
1256
1256
|
r.push(i);
|
|
1257
1257
|
}), t.push(r);
|
|
@@ -1260,21 +1260,21 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1260
1260
|
body: t
|
|
1261
1261
|
};
|
|
1262
1262
|
});
|
|
1263
|
-
function
|
|
1263
|
+
function Ei(e = null) {
|
|
1264
1264
|
let t = [
|
|
1265
1265
|
[R.value.style.chart.title.text],
|
|
1266
1266
|
[R.value.style.chart.title.subtitle.text],
|
|
1267
1267
|
[""]
|
|
1268
|
-
], n = ["", ...
|
|
1268
|
+
], n = ["", ...Ti.value.head.map((e) => e.label)], r = Ti.value.body, i = de(t.concat([n]).concat(r));
|
|
1269
1269
|
e ? e(i) : p({
|
|
1270
1270
|
csvContent: i,
|
|
1271
1271
|
title: R.value.style.chart.title.text || "vue-ui-stackline"
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
|
-
let
|
|
1275
|
-
let e = [""].concat(Y.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = Math.max(0,
|
|
1274
|
+
let Di = b(() => {
|
|
1275
|
+
let e = [""].concat(Y.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = Math.max(0, q.value.end - q.value.start);
|
|
1276
1276
|
for (let e = 0; e < n; e += 1) {
|
|
1277
|
-
let n = yr(e), r = R.value.style.chart.grid.x.timeLabels.values?.[n] ?
|
|
1277
|
+
let n = yr(e), r = R.value.style.chart.grid.x.timeLabels.values?.[n] ? Rr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
|
|
1278
1278
|
let n = t.series?.[e] ?? 0;
|
|
1279
1279
|
return Number(n.toFixed(R.value.table.td.roundingValue));
|
|
1280
1280
|
}), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1298,50 +1298,52 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1298
1298
|
},
|
|
1299
1299
|
colNames: [R.value.table.columnNames.period].concat(Y.value.map((e) => e.name), R.value.table.columnNames.total)
|
|
1300
1300
|
};
|
|
1301
|
-
}),
|
|
1302
|
-
svg:
|
|
1303
|
-
title:
|
|
1304
|
-
legend:
|
|
1305
|
-
legendItems:
|
|
1306
|
-
backgroundColor:
|
|
1301
|
+
}), Oi = b(() => R.value.style.chart.backgroundColor), ki = b(() => R.value.style.chart.legend), { exportSvg: Ai, getSvg: ji } = be({
|
|
1302
|
+
svg: V,
|
|
1303
|
+
title: b(() => R.value.style.chart.title),
|
|
1304
|
+
legend: ki,
|
|
1305
|
+
legendItems: bi,
|
|
1306
|
+
backgroundColor: Oi
|
|
1307
1307
|
});
|
|
1308
|
-
async function
|
|
1309
|
-
yn.value = !0, await
|
|
1308
|
+
async function Mi({ isCb: e }) {
|
|
1309
|
+
yn.value = !0, await We();
|
|
1310
1310
|
try {
|
|
1311
1311
|
if (e) {
|
|
1312
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1312
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ji();
|
|
1313
1313
|
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
1314
1314
|
blob: e,
|
|
1315
1315
|
url: t,
|
|
1316
1316
|
text: n,
|
|
1317
1317
|
dataUrl: r
|
|
1318
1318
|
}));
|
|
1319
|
-
} else await Promise.resolve(
|
|
1319
|
+
} else await Promise.resolve(Ai());
|
|
1320
1320
|
} finally {
|
|
1321
1321
|
yn.value = !1;
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
async function
|
|
1324
|
+
async function Ni({ scale: e = 2 } = {}) {
|
|
1325
1325
|
if (!en.value) return;
|
|
1326
|
-
let {
|
|
1326
|
+
let { imageUri: t, base64: n } = await Te({
|
|
1327
1327
|
domElement: en.value,
|
|
1328
1328
|
base64: !0,
|
|
1329
1329
|
img: !0,
|
|
1330
1330
|
scale: e
|
|
1331
|
-
})
|
|
1331
|
+
}), r = en.value.getBoundingClientRect(), i = {
|
|
1332
|
+
width: r.width,
|
|
1333
|
+
height: r.height,
|
|
1334
|
+
aspectRatio: r.height ? r.width / r.height : 0
|
|
1335
|
+
}, a = await g(t, e) ?? i;
|
|
1332
1336
|
return {
|
|
1333
|
-
imageUri:
|
|
1334
|
-
base64:
|
|
1337
|
+
imageUri: t,
|
|
1338
|
+
base64: n,
|
|
1335
1339
|
title: R.value.style.chart.title.text,
|
|
1336
|
-
|
|
1337
|
-
height: n,
|
|
1338
|
-
aspectRatio: r
|
|
1340
|
+
...a
|
|
1339
1341
|
};
|
|
1340
1342
|
}
|
|
1341
|
-
let
|
|
1342
|
-
let e = R.value.table.useDialog && !R.value.table.show, t =
|
|
1343
|
+
let Pi = b(() => {
|
|
1344
|
+
let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
|
|
1343
1345
|
return {
|
|
1344
|
-
component: e ?
|
|
1346
|
+
component: e ? Jt : Ut,
|
|
1345
1347
|
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1346
1348
|
props: e ? {
|
|
1347
1349
|
backgroundColor: R.value.table.th.backgroundColor,
|
|
@@ -1369,28 +1371,28 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1369
1371
|
}
|
|
1370
1372
|
};
|
|
1371
1373
|
});
|
|
1372
|
-
|
|
1374
|
+
$e(() => H.value.showTable, (e) => {
|
|
1373
1375
|
R.value.table.show || (e && R.value.table.useDialog && hn.value ? hn.value.open() : "close" in hn.value && hn.value.close());
|
|
1374
1376
|
});
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1377
|
+
function Fi() {
|
|
1378
|
+
H.value.showTable = !1, gn.value && gn.value.setTableIconState(!1);
|
|
1377
1379
|
}
|
|
1378
|
-
function
|
|
1380
|
+
function Ii(e) {
|
|
1379
1381
|
ln.value = e, nn.value += 1;
|
|
1380
1382
|
}
|
|
1381
|
-
function Ii() {
|
|
1382
|
-
V.value.showTable = !V.value.showTable;
|
|
1383
|
-
}
|
|
1384
1383
|
function Li() {
|
|
1385
|
-
|
|
1384
|
+
H.value.showTable = !H.value.showTable;
|
|
1386
1385
|
}
|
|
1387
1386
|
function Ri() {
|
|
1388
|
-
|
|
1387
|
+
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
1389
1388
|
}
|
|
1390
1389
|
function zi() {
|
|
1390
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
1391
|
+
}
|
|
1392
|
+
function Bi() {
|
|
1391
1393
|
return Y.value;
|
|
1392
1394
|
}
|
|
1393
|
-
function
|
|
1395
|
+
function Vi(e) {
|
|
1394
1396
|
let t = e ?? 0, n = yr(t);
|
|
1395
1397
|
return JSON.parse(JSON.stringify(Y.value)).map((e) => {
|
|
1396
1398
|
let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
|
|
@@ -1401,20 +1403,20 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1401
1403
|
proportion: e.proportions?.[t] || null,
|
|
1402
1404
|
color: e.color,
|
|
1403
1405
|
id: e.id,
|
|
1404
|
-
timeLabel:
|
|
1406
|
+
timeLabel: zr.value?.[n] || null
|
|
1405
1407
|
};
|
|
1406
1408
|
});
|
|
1407
1409
|
}
|
|
1408
|
-
let
|
|
1409
|
-
|
|
1410
|
+
let Hi = b(() => Array(K.value).fill(0).map((e, t) => Vi(t)));
|
|
1411
|
+
$e(() => P.selectedXIndex, (e) => {
|
|
1410
1412
|
if ([null, void 0].includes(P.selectedXIndex)) {
|
|
1411
1413
|
$.value = null;
|
|
1412
1414
|
return;
|
|
1413
1415
|
}
|
|
1414
|
-
let t = e -
|
|
1415
|
-
t < 0 || e >=
|
|
1416
|
+
let t = e - q.value.start;
|
|
1417
|
+
t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
|
|
1416
1418
|
}, { immediate: !0 });
|
|
1417
|
-
let
|
|
1419
|
+
let Ui = b(() => {
|
|
1418
1420
|
if (R.value.style.chart.lines.distributed) return {
|
|
1419
1421
|
min: -1,
|
|
1420
1422
|
max: 1
|
|
@@ -1433,13 +1435,13 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1433
1435
|
n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
|
|
1434
1436
|
}
|
|
1435
1437
|
});
|
|
1436
|
-
let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = R.value.style.chart.grid.scale.scaleMin, u = R.value.style.chart.grid.scale.scaleMax, d = R.value.style.chart.grid.scale.ticks, f = !R.value.style.chart.lines.distributed && (l !== null || u !== null) ? _(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) :
|
|
1438
|
+
let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = R.value.style.chart.grid.scale.scaleMin, u = R.value.style.chart.grid.scale.scaleMax, d = R.value.style.chart.grid.scale.ticks, f = !R.value.style.chart.lines.distributed && (l !== null || u !== null) ? _(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : ee(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
|
|
1437
1439
|
return {
|
|
1438
1440
|
min: Number(f.min) || 0,
|
|
1439
1441
|
max: Number(f.max) || 0
|
|
1440
1442
|
};
|
|
1441
1443
|
});
|
|
1442
|
-
function
|
|
1444
|
+
function Wi({ minimapH: e, unitW: t }) {
|
|
1443
1445
|
let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
|
|
1444
1446
|
if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
|
|
1445
1447
|
let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), a = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
|
|
@@ -1452,38 +1454,38 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1452
1454
|
let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
|
|
1453
1455
|
r != null && !Number.isNaN(r) && (n += Math.abs(r));
|
|
1454
1456
|
}), n || 1;
|
|
1455
|
-
}),
|
|
1457
|
+
}), c = (t) => e - e * Math.max(0, Math.min(1, t || 0)), l = [], u = Array(a).fill(0);
|
|
1456
1458
|
return r.forEach((e) => {
|
|
1457
1459
|
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), d = Array(a);
|
|
1458
1460
|
for (let e = 0; e < a; e += 1) {
|
|
1459
1461
|
let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
|
|
1460
1462
|
d[e] = u[e], u[e] += a, i[e] = u[e];
|
|
1461
1463
|
}
|
|
1462
|
-
let f = i.map(
|
|
1464
|
+
let f = i.map(c), p = d.map(c), m = o.map((e, t) => ({
|
|
1463
1465
|
x: e,
|
|
1464
1466
|
y: f[t]
|
|
1465
1467
|
})), h = o.map((e, t) => ({
|
|
1466
1468
|
x: e,
|
|
1467
1469
|
y: p[t]
|
|
1468
|
-
})), g =
|
|
1470
|
+
})), g = ne(m), _ = ne([...h].reverse()), ee = s(m), te = s([...h].reverse()), v = h[h.length - 1];
|
|
1469
1471
|
if (R.value.style.chart.lines.useArea) {
|
|
1470
|
-
let t = R.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)} L${
|
|
1472
|
+
let t = R.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)} L${v.x},${v.y} ${n(_)} Z` : `M${m[0].x},${m[0].y} ${n(ee)} L${v.x},${v.y} ${n(te)} Z`;
|
|
1471
1473
|
l.push(`<path d="${t}"
|
|
1472
|
-
fill="${
|
|
1474
|
+
fill="${Qt.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (R.value.style.chart.lines.gradient.show, e.color)}"
|
|
1473
1475
|
opacity="${R.value.style.chart.lines.areaOpacity}"
|
|
1474
1476
|
stroke="none" />`);
|
|
1475
1477
|
}
|
|
1476
|
-
let
|
|
1477
|
-
l.push(`<path d="${
|
|
1478
|
+
let re = R.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)}` : `M${m[0].x},${m[0].y} ${n(ee)}`;
|
|
1479
|
+
l.push(`<path d="${re}"
|
|
1478
1480
|
fill="none"
|
|
1479
1481
|
stroke="${e.color}"
|
|
1480
1482
|
stroke-width="${R.value.style.chart.lines.strokeWidth}"
|
|
1481
1483
|
stroke-linecap="round" />`);
|
|
1482
1484
|
}), i.length && i.forEach((e) => {
|
|
1483
|
-
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) =>
|
|
1485
|
+
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => c(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
|
|
1484
1486
|
x: e,
|
|
1485
1487
|
y: i[t]
|
|
1486
|
-
})), d =
|
|
1488
|
+
})), d = ne(u), f = s(u), p = R.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(d)}` : `M${u[0].x},${u[0].y} ${n(f)}`;
|
|
1487
1489
|
l.push(`<path d="${p}"
|
|
1488
1490
|
fill="none"
|
|
1489
1491
|
stroke="${e.color}"
|
|
@@ -1491,31 +1493,31 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1491
1493
|
stroke-linecap="round" />`);
|
|
1492
1494
|
}), l.join("");
|
|
1493
1495
|
}
|
|
1494
|
-
let
|
|
1496
|
+
let c = Ui.value.min, l = Ui.value.max, u = Math.abs(c), d = l + u || 1, f = (t) => Math.max(0, Math.min(e, t)), p = (t) => f(e - e * (((t ?? 0) + u) / d)), m = [];
|
|
1495
1497
|
if (r.length) {
|
|
1496
1498
|
let e = Array(a).fill(0), t = Array(a).fill(0);
|
|
1497
1499
|
r.forEach((r) => {
|
|
1498
|
-
let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series,
|
|
1500
|
+
let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series, c = Array(a), l = Array(a);
|
|
1499
1501
|
for (let n = 0; n < a; n += 1) {
|
|
1500
1502
|
let r = i?.[n] ?? 0;
|
|
1501
|
-
r >= 0 ? (l[n] = e[n], e[n] += r,
|
|
1503
|
+
r >= 0 ? (l[n] = e[n], e[n] += r, c[n] = e[n]) : (l[n] = t[n], t[n] += r, c[n] = t[n]);
|
|
1502
1504
|
}
|
|
1503
|
-
let u =
|
|
1505
|
+
let u = c.map(p), d = l.map(p), f = o.map((e, t) => ({
|
|
1504
1506
|
x: e,
|
|
1505
1507
|
y: u[t]
|
|
1506
1508
|
})), h = o.map((e, t) => ({
|
|
1507
1509
|
x: e,
|
|
1508
1510
|
y: d[t]
|
|
1509
|
-
})), g =
|
|
1511
|
+
})), g = ne(f), _ = ne([...h].reverse()), ee = s(f), te = s([...h].reverse()), v = h[h.length - 1];
|
|
1510
1512
|
if (R.value.style.chart.lines.useArea) {
|
|
1511
|
-
let e = R.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)} L${
|
|
1513
|
+
let e = R.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)} L${v.x},${v.y} ${n(_)} Z` : `M${f[0].x},${f[0].y} ${n(ee)} L${v.x},${v.y} ${n(te)} Z`;
|
|
1512
1514
|
m.push(`<path d="${e}"
|
|
1513
|
-
fill="${
|
|
1515
|
+
fill="${Qt.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (R.value.style.chart.lines.gradient.show, r.color)}"
|
|
1514
1516
|
opacity="${R.value.style.chart.lines.areaOpacity}"
|
|
1515
1517
|
stroke="none" />`);
|
|
1516
1518
|
}
|
|
1517
|
-
let
|
|
1518
|
-
m.push(`<path d="${
|
|
1519
|
+
let re = R.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)}` : `M${f[0].x},${f[0].y} ${n(ee)}`;
|
|
1520
|
+
m.push(`<path d="${re}"
|
|
1519
1521
|
fill="none"
|
|
1520
1522
|
stroke="${r.color}"
|
|
1521
1523
|
stroke-width="${R.value.style.chart.lines.strokeWidth}"
|
|
@@ -1526,22 +1528,22 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1526
1528
|
let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = o.map((e, n) => ({
|
|
1527
1529
|
x: e,
|
|
1528
1530
|
y: t[n]
|
|
1529
|
-
})), i =
|
|
1530
|
-
m.push(`<path d="${
|
|
1531
|
+
})), i = ne(r), a = s(r), c = R.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
|
|
1532
|
+
m.push(`<path d="${c}"
|
|
1531
1533
|
fill="none"
|
|
1532
1534
|
stroke="${e.color}"
|
|
1533
1535
|
stroke-width="${R.value.style.chart.lines.strokeWidth}"
|
|
1534
1536
|
stroke-linecap="round" />`);
|
|
1535
1537
|
}), m.join("");
|
|
1536
1538
|
}
|
|
1537
|
-
function
|
|
1539
|
+
function Gi(e, t) {
|
|
1538
1540
|
let n = R.value.style.chart.lines, r = n.dataLabels;
|
|
1539
|
-
return n.showDistributedPercentage && n.distributed ? Yn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : r.hideEmptyPercentages ? Math.abs(t) > 0 : !0 : Yn.value ? (Jn.value && ar.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) >
|
|
1541
|
+
return n.showDistributedPercentage && n.distributed ? Yn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : r.hideEmptyPercentages ? Math.abs(t) > 0 : !0 : Yn.value ? (Jn.value && ar.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) > Ki.value * r.hideUnderPercentage / 100) : Jn.value ? Math.abs(e) >= r.hideUnderValue : r.hideEmptyValues ? e !== 0 : !0;
|
|
1540
1542
|
}
|
|
1541
|
-
let
|
|
1542
|
-
function
|
|
1543
|
+
let Ki = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
|
|
1544
|
+
function qi(e, t, n, r, i) {
|
|
1543
1545
|
let a = i === -1 && e >= 0 ? -e : e;
|
|
1544
|
-
return
|
|
1546
|
+
return te(R.value.style.chart.lines.dataLabels.formatter, a, ie({
|
|
1545
1547
|
p: R.value.style.chart.lines.dataLabels.prefix,
|
|
1546
1548
|
v: a,
|
|
1547
1549
|
s: R.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -1552,8 +1554,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1552
1554
|
datapointIndex: r
|
|
1553
1555
|
});
|
|
1554
1556
|
}
|
|
1555
|
-
function
|
|
1556
|
-
return
|
|
1557
|
+
function Ji(e, t, n, r) {
|
|
1558
|
+
return te(R.value.style.chart.lines.dataLabels.formatter, e, ie({
|
|
1557
1559
|
v: isNaN(e) ? 0 : e,
|
|
1558
1560
|
s: "%",
|
|
1559
1561
|
r: R.value.style.chart.lines.dataLabels.rounding
|
|
@@ -1563,15 +1565,15 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1563
1565
|
datapointIndex: r
|
|
1564
1566
|
});
|
|
1565
1567
|
}
|
|
1566
|
-
function
|
|
1567
|
-
let n =
|
|
1568
|
-
|
|
1568
|
+
function Yi({ seriesIndex: e, datapoint: t }) {
|
|
1569
|
+
let n = q.value.start + e;
|
|
1570
|
+
F("selectX", {
|
|
1569
1571
|
dataset: t,
|
|
1570
1572
|
index: n,
|
|
1571
1573
|
indexLabel: R.value.style.chart.grid.x.timeLabels.values[n]
|
|
1572
1574
|
});
|
|
1573
1575
|
}
|
|
1574
|
-
function
|
|
1576
|
+
function Xi(e) {
|
|
1575
1577
|
if (e?.stage === "start") {
|
|
1576
1578
|
vn.value = !0;
|
|
1577
1579
|
return;
|
|
@@ -1582,8 +1584,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1582
1584
|
}
|
|
1583
1585
|
$n();
|
|
1584
1586
|
}
|
|
1585
|
-
async function
|
|
1586
|
-
if (
|
|
1587
|
+
async function Zi() {
|
|
1588
|
+
if (F("copyAlt", {
|
|
1587
1589
|
config: R.value,
|
|
1588
1590
|
dataset: Y.value
|
|
1589
1591
|
}), !R.value.userOptions.callbacks.altCopy) {
|
|
@@ -1595,23 +1597,23 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1595
1597
|
dataset: Y.value
|
|
1596
1598
|
}));
|
|
1597
1599
|
}
|
|
1598
|
-
let
|
|
1599
|
-
function Qi() {
|
|
1600
|
-
L.value = null, Zi.value = !0;
|
|
1601
|
-
}
|
|
1600
|
+
let Qi = O(!1);
|
|
1602
1601
|
function $i() {
|
|
1603
|
-
|
|
1602
|
+
kn.value = null, Qi.value = !0;
|
|
1603
|
+
}
|
|
1604
|
+
function ea() {
|
|
1605
|
+
kn.value = null, jn.value = "pointer", tn.value = !1, $.value = null, F("selectX", {
|
|
1604
1606
|
index: null,
|
|
1605
1607
|
indexLabel: null,
|
|
1606
1608
|
dataset: null
|
|
1607
|
-
}),
|
|
1609
|
+
}), Qi.value = !1;
|
|
1608
1610
|
}
|
|
1609
|
-
function
|
|
1610
|
-
if (!
|
|
1611
|
+
function ta(e) {
|
|
1612
|
+
if (!V.value || Ln.value || document.activeElement !== V.value || Or.value || !Z.value) return;
|
|
1611
1613
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1612
1614
|
if (!t && !n && !r && !i) return;
|
|
1613
1615
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1614
|
-
|
|
1616
|
+
kn.value = null, jn.value = "pointer", tn.value = !1, $.value = null, F("selectX", {
|
|
1615
1617
|
index: null,
|
|
1616
1618
|
indexLabel: null,
|
|
1617
1619
|
dataset: null
|
|
@@ -1619,59 +1621,59 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1619
1621
|
return;
|
|
1620
1622
|
}
|
|
1621
1623
|
if (r) {
|
|
1622
|
-
if (
|
|
1623
|
-
|
|
1624
|
+
if (kn.value === null) return;
|
|
1625
|
+
di(kn.value);
|
|
1624
1626
|
return;
|
|
1625
1627
|
}
|
|
1626
|
-
let a =
|
|
1627
|
-
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,
|
|
1628
|
+
let a = kn.value, o = ii.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
|
|
1629
|
+
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, kn.value = a, na(a), gi(!0, a, "keyboard");
|
|
1628
1630
|
}
|
|
1629
|
-
function
|
|
1630
|
-
if (!Number.isFinite(e) || !
|
|
1631
|
-
let t =
|
|
1632
|
-
t && (
|
|
1631
|
+
function na(e) {
|
|
1632
|
+
if (!Number.isFinite(e) || !V.value) return;
|
|
1633
|
+
let t = n(W.value.left + e * si.value, W.value.top + W.value.height / 2, V.value);
|
|
1634
|
+
t && (An.value = t);
|
|
1633
1635
|
}
|
|
1634
|
-
let
|
|
1635
|
-
headers:
|
|
1636
|
-
rows:
|
|
1636
|
+
let ra = b(() => ({
|
|
1637
|
+
headers: Di.value?.colNames ?? [],
|
|
1638
|
+
rows: Di.value?.body ?? []
|
|
1637
1639
|
}));
|
|
1638
|
-
return
|
|
1639
|
-
getData:
|
|
1640
|
-
getImage:
|
|
1640
|
+
return Oe({
|
|
1641
|
+
getData: Bi,
|
|
1642
|
+
getImage: Ni,
|
|
1641
1643
|
generatePdf: Qn,
|
|
1642
|
-
generateCsv:
|
|
1644
|
+
generateCsv: Ei,
|
|
1643
1645
|
generateImage: $n,
|
|
1644
|
-
generateSvg:
|
|
1645
|
-
hideSeries:
|
|
1646
|
-
showSeries:
|
|
1647
|
-
toggleTable:
|
|
1648
|
-
toggleLabels:
|
|
1649
|
-
toggleTooltip:
|
|
1650
|
-
toggleAnnotator:
|
|
1651
|
-
toggleFullscreen:
|
|
1652
|
-
copyAlt:
|
|
1653
|
-
}), (t, n) => (
|
|
1654
|
-
id: `stackline_${
|
|
1646
|
+
generateSvg: Mi,
|
|
1647
|
+
hideSeries: wi,
|
|
1648
|
+
showSeries: Ci,
|
|
1649
|
+
toggleTable: Li,
|
|
1650
|
+
toggleLabels: Ri,
|
|
1651
|
+
toggleTooltip: zi,
|
|
1652
|
+
toggleAnnotator: Rn,
|
|
1653
|
+
toggleFullscreen: Ii,
|
|
1654
|
+
copyAlt: Zi
|
|
1655
|
+
}), (t, n) => (D(), C("div", {
|
|
1656
|
+
id: `stackline_${I.value}`,
|
|
1655
1657
|
ref_key: "stacklineChart",
|
|
1656
1658
|
ref: en,
|
|
1657
|
-
class:
|
|
1659
|
+
class: Ge({
|
|
1658
1660
|
"vue-data-ui-component": !0,
|
|
1659
1661
|
"vue-ui-stackline": !0,
|
|
1660
1662
|
"vue-data-ui-wrapper-fullscreen": ln.value
|
|
1661
1663
|
}),
|
|
1662
|
-
style:
|
|
1664
|
+
style: Ke(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
|
|
1663
1665
|
onMouseenter: Gn,
|
|
1664
1666
|
onMouseleave: Kn
|
|
1665
1667
|
}, [
|
|
1666
|
-
|
|
1667
|
-
id: `chart-instructions-${
|
|
1668
|
+
w("div", {
|
|
1669
|
+
id: `chart-instructions-${I.value}`,
|
|
1668
1670
|
class: "sr-only"
|
|
1669
|
-
}, [
|
|
1670
|
-
|
|
1671
|
+
}, [w("p", null, j(R.value.a11y.translations.keyboardNavigation), 1)], 8, rt),
|
|
1672
|
+
ra.value?.rows?.length ? (D(), x(Ne, {
|
|
1671
1673
|
key: 0,
|
|
1672
|
-
uid:
|
|
1673
|
-
head:
|
|
1674
|
-
body:
|
|
1674
|
+
uid: I.value,
|
|
1675
|
+
head: ra.value.headers,
|
|
1676
|
+
body: ra.value.rows,
|
|
1675
1677
|
notice: R.value.a11y.translations.tableAvailable,
|
|
1676
1678
|
caption: R.value.a11y.translations.tableCaption
|
|
1677
1679
|
}, null, 8, [
|
|
@@ -1680,22 +1682,22 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1680
1682
|
"body",
|
|
1681
1683
|
"notice",
|
|
1682
1684
|
"caption"
|
|
1683
|
-
])) :
|
|
1684
|
-
R.value.userOptions.buttons.annotator ? (
|
|
1685
|
+
])) : S("", !0),
|
|
1686
|
+
R.value.userOptions.buttons.annotator ? (D(), x(M(Gt), {
|
|
1685
1687
|
key: 1,
|
|
1686
|
-
svgRef: M(
|
|
1688
|
+
svgRef: M(V),
|
|
1687
1689
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1688
1690
|
color: R.value.style.chart.color,
|
|
1689
|
-
active:
|
|
1691
|
+
active: Ln.value,
|
|
1690
1692
|
isCursorPointer: z.value,
|
|
1691
|
-
onClose:
|
|
1693
|
+
onClose: Rn
|
|
1692
1694
|
}, {
|
|
1693
|
-
"annotator-action-close": N(() => [
|
|
1694
|
-
"annotator-action-color": N(({ color: e }) => [
|
|
1695
|
-
"annotator-action-draw": N(({ mode: e }) => [
|
|
1696
|
-
"annotator-action-undo": N(({ disabled: e }) => [
|
|
1697
|
-
"annotator-action-redo": N(({ disabled: e }) => [
|
|
1698
|
-
"annotator-action-delete": N(({ disabled: e }) => [
|
|
1695
|
+
"annotator-action-close": N(() => [A(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1696
|
+
"annotator-action-color": N(({ color: e }) => [A(t.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
|
|
1697
|
+
"annotator-action-draw": N(({ mode: e }) => [A(t.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
|
|
1698
|
+
"annotator-action-undo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
|
|
1699
|
+
"annotator-action-redo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
|
|
1700
|
+
"annotator-action-delete": N(({ disabled: e }) => [A(t.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
|
|
1699
1701
|
_: 3
|
|
1700
1702
|
}, 8, [
|
|
1701
1703
|
"svgRef",
|
|
@@ -1703,21 +1705,21 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1703
1705
|
"color",
|
|
1704
1706
|
"active",
|
|
1705
1707
|
"isCursorPointer"
|
|
1706
|
-
])) :
|
|
1707
|
-
|
|
1708
|
-
er.value ? (
|
|
1708
|
+
])) : S("", !0),
|
|
1709
|
+
A(t.$slots, "userConfig", {}, void 0, !0),
|
|
1710
|
+
er.value ? (D(), C("div", {
|
|
1709
1711
|
key: 2,
|
|
1710
1712
|
ref_key: "noTitle",
|
|
1711
1713
|
ref: sn,
|
|
1712
1714
|
class: "vue-data-ui-no-title-space",
|
|
1713
1715
|
style: "height:36px; width: 100%;background:transparent"
|
|
1714
|
-
}, null, 512)) :
|
|
1715
|
-
R.value.style.chart.title.text ? (
|
|
1716
|
+
}, null, 512)) : S("", !0),
|
|
1717
|
+
R.value.style.chart.title.text ? (D(), C("div", {
|
|
1716
1718
|
key: 3,
|
|
1717
1719
|
ref_key: "chartTitle",
|
|
1718
1720
|
ref: rn,
|
|
1719
1721
|
style: "width:100%;background:transparent;"
|
|
1720
|
-
}, [(
|
|
1722
|
+
}, [(D(), x(Ee, {
|
|
1721
1723
|
key: `title_${dn.value}`,
|
|
1722
1724
|
config: {
|
|
1723
1725
|
title: {
|
|
@@ -1729,9 +1731,9 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1729
1731
|
...R.value.style.chart.title.subtitle
|
|
1730
1732
|
}
|
|
1731
1733
|
}
|
|
1732
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1733
|
-
|
|
1734
|
-
R.value.userOptions.show && $t.value && (M(
|
|
1734
|
+
}, null, 8, ["config"]))], 512)) : S("", !0),
|
|
1735
|
+
w("div", { id: `legend-top-${I.value}` }, null, 8, it),
|
|
1736
|
+
R.value.userOptions.show && $t.value && (M(Wn) || M(Hn)) ? (D(), x(M(Kt), {
|
|
1735
1737
|
ref_key: "userOptionsRef",
|
|
1736
1738
|
ref: gn,
|
|
1737
1739
|
key: `user_option_${nn.value}`,
|
|
@@ -1739,7 +1741,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1739
1741
|
color: R.value.style.chart.color,
|
|
1740
1742
|
isPrinting: M(Xn),
|
|
1741
1743
|
isImaging: M(Zn),
|
|
1742
|
-
uid:
|
|
1744
|
+
uid: I.value,
|
|
1743
1745
|
hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
|
|
1744
1746
|
hasPdf: R.value.userOptions.buttons.pdf,
|
|
1745
1747
|
hasImg: R.value.userOptions.buttons.img,
|
|
@@ -1752,29 +1754,29 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1752
1754
|
isFullscreen: ln.value,
|
|
1753
1755
|
chartElement: en.value,
|
|
1754
1756
|
position: R.value.userOptions.position,
|
|
1755
|
-
isTooltip:
|
|
1757
|
+
isTooltip: H.value.showTooltip,
|
|
1756
1758
|
titles: { ...R.value.userOptions.buttonTitles },
|
|
1757
1759
|
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
1758
|
-
isAnnotation:
|
|
1760
|
+
isAnnotation: Ln.value,
|
|
1759
1761
|
callbacks: R.value.userOptions.callbacks,
|
|
1760
1762
|
printScale: R.value.userOptions.print.scale,
|
|
1761
1763
|
tableDialog: R.value.table.useDialog,
|
|
1762
1764
|
isCursorPointer: z.value,
|
|
1763
|
-
onToggleFullscreen:
|
|
1765
|
+
onToggleFullscreen: Ii,
|
|
1764
1766
|
onGeneratePdf: M(Qn),
|
|
1765
|
-
onGenerateCsv:
|
|
1766
|
-
onGenerateImage:
|
|
1767
|
-
onGenerateSvg:
|
|
1768
|
-
onToggleTable:
|
|
1769
|
-
onToggleLabels:
|
|
1770
|
-
onToggleTooltip:
|
|
1771
|
-
onToggleAnnotator:
|
|
1772
|
-
onCopyAlt:
|
|
1773
|
-
style:
|
|
1774
|
-
},
|
|
1767
|
+
onGenerateCsv: Ei,
|
|
1768
|
+
onGenerateImage: Xi,
|
|
1769
|
+
onGenerateSvg: Mi,
|
|
1770
|
+
onToggleTable: Li,
|
|
1771
|
+
onToggleLabels: Ri,
|
|
1772
|
+
onToggleTooltip: zi,
|
|
1773
|
+
onToggleAnnotator: Rn,
|
|
1774
|
+
onCopyAlt: Zi,
|
|
1775
|
+
style: Ke({ visibility: M(Wn) ? M(Hn) ? "visible" : "hidden" : "visible" })
|
|
1776
|
+
}, ze({ _: 2 }, [
|
|
1775
1777
|
t.$slots.menuIcon ? {
|
|
1776
1778
|
name: "menuIcon",
|
|
1777
|
-
fn: N(({ isOpen: e, color: n }) => [
|
|
1779
|
+
fn: N(({ isOpen: e, color: n }) => [A(t.$slots, "menuIcon", E(T({
|
|
1778
1780
|
isOpen: e,
|
|
1779
1781
|
color: n
|
|
1780
1782
|
})), void 0, !0)]),
|
|
@@ -1782,42 +1784,42 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1782
1784
|
} : void 0,
|
|
1783
1785
|
t.$slots.optionTooltip ? {
|
|
1784
1786
|
name: "optionTooltip",
|
|
1785
|
-
fn: N(() => [
|
|
1787
|
+
fn: N(() => [A(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1786
1788
|
key: "1"
|
|
1787
1789
|
} : void 0,
|
|
1788
1790
|
t.$slots.optionPdf ? {
|
|
1789
1791
|
name: "optionPdf",
|
|
1790
|
-
fn: N(() => [
|
|
1792
|
+
fn: N(() => [A(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1791
1793
|
key: "2"
|
|
1792
1794
|
} : void 0,
|
|
1793
1795
|
t.$slots.optionCsv ? {
|
|
1794
1796
|
name: "optionCsv",
|
|
1795
|
-
fn: N(() => [
|
|
1797
|
+
fn: N(() => [A(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1796
1798
|
key: "3"
|
|
1797
1799
|
} : void 0,
|
|
1798
1800
|
t.$slots.optionImg ? {
|
|
1799
1801
|
name: "optionImg",
|
|
1800
|
-
fn: N(() => [
|
|
1802
|
+
fn: N(() => [A(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1801
1803
|
key: "4"
|
|
1802
1804
|
} : void 0,
|
|
1803
1805
|
t.$slots.optionSvg ? {
|
|
1804
1806
|
name: "optionSvg",
|
|
1805
|
-
fn: N(() => [
|
|
1807
|
+
fn: N(() => [A(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1806
1808
|
key: "5"
|
|
1807
1809
|
} : void 0,
|
|
1808
1810
|
t.$slots.optionTable ? {
|
|
1809
1811
|
name: "optionTable",
|
|
1810
|
-
fn: N(() => [
|
|
1812
|
+
fn: N(() => [A(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1811
1813
|
key: "6"
|
|
1812
1814
|
} : void 0,
|
|
1813
1815
|
t.$slots.optionLabels ? {
|
|
1814
1816
|
name: "optionLabels",
|
|
1815
|
-
fn: N(() => [
|
|
1817
|
+
fn: N(() => [A(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1816
1818
|
key: "7"
|
|
1817
1819
|
} : void 0,
|
|
1818
1820
|
t.$slots.optionFullscreen ? {
|
|
1819
1821
|
name: "optionFullscreen",
|
|
1820
|
-
fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [
|
|
1822
|
+
fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [A(t.$slots, "optionFullscreen", E(T({
|
|
1821
1823
|
toggleFullscreen: e,
|
|
1822
1824
|
isFullscreen: n
|
|
1823
1825
|
})), void 0, !0)]),
|
|
@@ -1825,7 +1827,7 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1825
1827
|
} : void 0,
|
|
1826
1828
|
t.$slots.optionAnnotator ? {
|
|
1827
1829
|
name: "optionAnnotator",
|
|
1828
|
-
fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [
|
|
1830
|
+
fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [A(t.$slots, "optionAnnotator", E(T({
|
|
1829
1831
|
toggleAnnotator: e,
|
|
1830
1832
|
isAnnotator: n
|
|
1831
1833
|
})), void 0, !0)]),
|
|
@@ -1833,69 +1835,69 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1833
1835
|
} : void 0,
|
|
1834
1836
|
t.$slots.optionAltCopy ? {
|
|
1835
1837
|
name: "optionAltCopy",
|
|
1836
|
-
fn: N(({ altCopy: e }) => [
|
|
1838
|
+
fn: N(({ altCopy: e }) => [A(t.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
|
|
1837
1839
|
key: "10"
|
|
1838
1840
|
} : void 0,
|
|
1839
1841
|
t.$slots["custom-menu-before"] ? {
|
|
1840
1842
|
name: "custom-menu-before",
|
|
1841
|
-
fn: N(() => [
|
|
1843
|
+
fn: N(() => [A(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1842
1844
|
key: "11"
|
|
1843
1845
|
} : void 0,
|
|
1844
1846
|
t.$slots["custom-menu-after"] ? {
|
|
1845
1847
|
name: "custom-menu-after",
|
|
1846
|
-
fn: N(() => [
|
|
1848
|
+
fn: N(() => [A(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1847
1849
|
key: "12"
|
|
1848
1850
|
} : void 0
|
|
1849
|
-
]), 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.style".split("."))) :
|
|
1850
|
-
|
|
1851
|
+
]), 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.style".split("."))) : S("", !0),
|
|
1852
|
+
w("div", at, [(D(), C("svg", {
|
|
1851
1853
|
ref_key: "svgRef",
|
|
1852
|
-
ref:
|
|
1853
|
-
"aria-describedby": `chart-instructions-${
|
|
1854
|
-
xmlns: M(
|
|
1855
|
-
viewBox: `0 0 ${
|
|
1856
|
-
class:
|
|
1854
|
+
ref: V,
|
|
1855
|
+
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1856
|
+
xmlns: M(se),
|
|
1857
|
+
viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
|
|
1858
|
+
class: Ge({
|
|
1857
1859
|
"vue-data-ui-loading": M(B),
|
|
1858
1860
|
"no-transition": !R.value.useCssAnimation
|
|
1859
1861
|
}),
|
|
1860
|
-
style:
|
|
1862
|
+
style: Ke(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
|
|
1861
1863
|
role: "img",
|
|
1862
1864
|
"aria-live": "polite",
|
|
1863
1865
|
tabindex: "0",
|
|
1864
1866
|
preserveAspectRatio: "xMidYMid",
|
|
1865
|
-
onMousemove:
|
|
1866
|
-
onMouseleave:
|
|
1867
|
-
onClick:
|
|
1868
|
-
onFocus:
|
|
1869
|
-
onBlur:
|
|
1870
|
-
onKeydown:
|
|
1867
|
+
onMousemove: li,
|
|
1868
|
+
onMouseleave: fi,
|
|
1869
|
+
onClick: ui,
|
|
1870
|
+
onFocus: $i,
|
|
1871
|
+
onBlur: ea,
|
|
1872
|
+
onKeydown: ta
|
|
1871
1873
|
}, [
|
|
1872
|
-
|
|
1873
|
-
(
|
|
1874
|
+
Ve(M(qt)),
|
|
1875
|
+
(D(!0), C(y, null, k(gr.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs", st, [A(t.$slots, "pattern", Ue({ ref_for: !0 }, {
|
|
1874
1876
|
seriesIndex: e.absoluteIndex,
|
|
1875
|
-
patternId: `pattern_${
|
|
1876
|
-
}), void 0, !0)])) :
|
|
1877
|
-
t.$slots["chart-background"] ? (
|
|
1877
|
+
patternId: `pattern_${I.value}_${e.absoluteIndex}`
|
|
1878
|
+
}), void 0, !0)])) : S("", !0)], 64))), 256)),
|
|
1879
|
+
t.$slots["chart-background"] ? (D(), C("foreignObject", {
|
|
1878
1880
|
key: 0,
|
|
1879
1881
|
x: X.value.left,
|
|
1880
|
-
y:
|
|
1882
|
+
y: W.value.top,
|
|
1881
1883
|
width: X.value.width,
|
|
1882
|
-
height:
|
|
1884
|
+
height: W.value.height,
|
|
1883
1885
|
style: { pointerEvents: "none" }
|
|
1884
|
-
}, [
|
|
1885
|
-
R.value.style.chart.lines.gradient.show ? (
|
|
1886
|
+
}, [A(t.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : S("", !0),
|
|
1887
|
+
R.value.style.chart.lines.gradient.show ? (D(), C("defs", lt, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("linearGradient", {
|
|
1886
1888
|
id: `gradient_${e.id}`,
|
|
1887
1889
|
x1: "0%",
|
|
1888
1890
|
y1: "0%",
|
|
1889
1891
|
x2: "0%",
|
|
1890
1892
|
y2: "100%"
|
|
1891
|
-
}, [
|
|
1893
|
+
}, [w("stop", {
|
|
1892
1894
|
offset: "0%",
|
|
1893
1895
|
"stop-color": e.color
|
|
1894
|
-
}, null, 8,
|
|
1896
|
+
}, null, 8, dt), w("stop", {
|
|
1895
1897
|
offset: "100%",
|
|
1896
|
-
"stop-color": M(
|
|
1897
|
-
}, null, 8,
|
|
1898
|
-
R.value.style.chart.grid.x.showHorizontalLines ? (
|
|
1898
|
+
"stop-color": M(l)(e.color, R.value.style.chart.lines.gradient.intensity / 100)
|
|
1899
|
+
}, null, 8, ft)], 8, ut))), 256))])) : S("", !0),
|
|
1900
|
+
R.value.style.chart.grid.x.showHorizontalLines ? (D(!0), C(y, { key: 2 }, k(Lr.value, (e, t) => (D(), C("line", {
|
|
1899
1901
|
x1: X.value.left,
|
|
1900
1902
|
x2: X.value.right,
|
|
1901
1903
|
y1: e.y,
|
|
@@ -1904,61 +1906,61 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1904
1906
|
"stroke-width": R.value.style.chart.grid.x.linesThickness,
|
|
1905
1907
|
"stroke-dasharray": R.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1906
1908
|
"stroke-linecap": "round"
|
|
1907
|
-
}, null, 8,
|
|
1908
|
-
R.value.style.chart.grid.y.showVerticalLines ? (
|
|
1909
|
+
}, null, 8, pt))), 256)) : S("", !0),
|
|
1910
|
+
R.value.style.chart.grid.y.showVerticalLines ? (D(!0), C(y, { key: 3 }, k(q.value.end - q.value.start, (e, t) => (D(), C("line", {
|
|
1909
1911
|
x1: Q(t),
|
|
1910
1912
|
x2: Q(t),
|
|
1911
|
-
y1:
|
|
1912
|
-
y2:
|
|
1913
|
+
y1: W.value.top,
|
|
1914
|
+
y2: W.value.bottom,
|
|
1913
1915
|
stroke: R.value.style.chart.grid.y.linesColor,
|
|
1914
1916
|
"stroke-width": R.value.style.chart.grid.y.linesThickness,
|
|
1915
1917
|
"stroke-dasharray": R.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1916
1918
|
"stroke-linecap": "round"
|
|
1917
|
-
}, null, 8,
|
|
1918
|
-
R.value.style.chart.grid.x.showAxis ? (
|
|
1919
|
+
}, null, 8, mt))), 256)) : S("", !0),
|
|
1920
|
+
R.value.style.chart.grid.x.showAxis ? (D(), C("line", {
|
|
1919
1921
|
key: 4,
|
|
1920
1922
|
x1: X.value.left,
|
|
1921
1923
|
x2: X.value.right,
|
|
1922
|
-
y1:
|
|
1923
|
-
y2:
|
|
1924
|
+
y1: W.value.bottom,
|
|
1925
|
+
y2: W.value.bottom,
|
|
1924
1926
|
stroke: R.value.style.chart.grid.x.axisColor,
|
|
1925
1927
|
"stroke-width": R.value.style.chart.grid.x.axisThickness,
|
|
1926
1928
|
"stroke-linecap": "round",
|
|
1927
1929
|
"stroke-linejoin": "round"
|
|
1928
|
-
}, null, 8,
|
|
1929
|
-
R.value.style.chart.grid.y.showAxis && !R.value.style.chart.lines.distributed ? (
|
|
1930
|
+
}, null, 8, ht)) : S("", !0),
|
|
1931
|
+
R.value.style.chart.grid.y.showAxis && !R.value.style.chart.lines.distributed ? (D(), C("line", {
|
|
1930
1932
|
key: 5,
|
|
1931
1933
|
x1: sr.value ? X.value.right : X.value.left,
|
|
1932
1934
|
x2: sr.value ? X.value.right : X.value.left,
|
|
1933
|
-
y1:
|
|
1934
|
-
y2:
|
|
1935
|
+
y1: W.value.top,
|
|
1936
|
+
y2: W.value.bottom,
|
|
1935
1937
|
stroke: R.value.style.chart.grid.y.axisColor,
|
|
1936
1938
|
"stroke-width": R.value.style.chart.grid.y.axisThickness,
|
|
1937
1939
|
"stroke-linecap": "round",
|
|
1938
1940
|
"stroke-linejoin": "round"
|
|
1939
|
-
}, null, 8,
|
|
1940
|
-
R.value.style.chart.grid.x.axisName.show && R.value.style.chart.grid.x.axisName.text ? (
|
|
1941
|
+
}, null, 8, gt)) : S("", !0),
|
|
1942
|
+
R.value.style.chart.grid.x.axisName.show && R.value.style.chart.grid.x.axisName.text ? (D(), C("text", {
|
|
1941
1943
|
key: 6,
|
|
1942
1944
|
ref_key: "xAxisLabel",
|
|
1943
1945
|
ref: bn,
|
|
1944
|
-
x:
|
|
1945
|
-
y:
|
|
1946
|
+
x: W.value.left + W.value.width / 2,
|
|
1947
|
+
y: W.value.chartHeight - 3,
|
|
1946
1948
|
"font-size": R.value.style.chart.grid.x.axisName.fontSize,
|
|
1947
1949
|
fill: R.value.style.chart.grid.x.axisName.color,
|
|
1948
1950
|
"font-weight": R.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1949
1951
|
"text-anchor": "middle"
|
|
1950
|
-
},
|
|
1951
|
-
R.value.style.chart.grid.y.axisName.show && R.value.style.chart.grid.y.axisName.text ? (
|
|
1952
|
+
}, j(R.value.style.chart.grid.x.axisName.text), 9, _t)) : S("", !0),
|
|
1953
|
+
R.value.style.chart.grid.y.axisName.show && R.value.style.chart.grid.y.axisName.text ? (D(), C("text", {
|
|
1952
1954
|
key: 7,
|
|
1953
1955
|
ref_key: "yAxisLabel",
|
|
1954
1956
|
ref: xn,
|
|
1955
|
-
transform: `translate(${sr.value ?
|
|
1957
|
+
transform: `translate(${sr.value ? W.value.chartWidth - R.value.style.chart.grid.y.axisName.fontSize / 2 - R.value.style.chart.grid.y.axisName.offsetX : R.value.style.chart.grid.y.axisName.fontSize + R.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1956
1958
|
"font-size": R.value.style.chart.grid.y.axisName.fontSize,
|
|
1957
1959
|
fill: R.value.style.chart.grid.y.axisName.color,
|
|
1958
1960
|
"font-weight": R.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1959
1961
|
"text-anchor": "middle"
|
|
1960
|
-
},
|
|
1961
|
-
R.value.style.chart.grid.frame.show ? (
|
|
1962
|
+
}, j(R.value.style.chart.grid.y.axisName.text), 9, vt)) : S("", !0),
|
|
1963
|
+
R.value.style.chart.grid.frame.show ? (D(), C("rect", {
|
|
1962
1964
|
key: 8,
|
|
1963
1965
|
style: {
|
|
1964
1966
|
pointerEvents: "none",
|
|
@@ -1966,70 +1968,70 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1966
1968
|
animation: "none !important"
|
|
1967
1969
|
},
|
|
1968
1970
|
x: X.value.left,
|
|
1969
|
-
y:
|
|
1971
|
+
y: W.value.top,
|
|
1970
1972
|
width: X.value.width,
|
|
1971
|
-
height:
|
|
1973
|
+
height: W.value.height,
|
|
1972
1974
|
fill: "transparent",
|
|
1973
1975
|
stroke: R.value.style.chart.grid.frame.stroke,
|
|
1974
1976
|
"stroke-width": R.value.style.chart.grid.frame.strokeWidth,
|
|
1975
1977
|
"stroke-linecap": R.value.style.chart.grid.frame.strokeLinecap,
|
|
1976
1978
|
"stroke-linejoin": R.value.style.chart.grid.frame.strokeLinejoin,
|
|
1977
1979
|
"stroke-dasharray": R.value.style.chart.grid.frame.strokeDasharray
|
|
1978
|
-
}, null, 8,
|
|
1979
|
-
(
|
|
1980
|
+
}, null, 8, yt)) : S("", !0),
|
|
1981
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [R.value.style.chart.lines.useArea && !e.standalone ? (D(), C("path", {
|
|
1980
1982
|
key: 0,
|
|
1981
1983
|
d: R.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
|
|
1982
|
-
fill: t.$slots.pattern ? `url(#pattern_${
|
|
1984
|
+
fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : R.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
1983
1985
|
opacity: R.value.style.chart.lines.areaOpacity,
|
|
1984
|
-
style:
|
|
1985
|
-
}, null, 12,
|
|
1986
|
-
(
|
|
1986
|
+
style: Ke({ transition: M(B) || !R.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
|
|
1987
|
+
}, null, 12, bt)) : S("", !0)], 64))), 256)),
|
|
1988
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C("path", {
|
|
1987
1989
|
d: R.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
|
|
1988
1990
|
stroke: R.value.style.chart.lines.path.useSerieColor ? e.color : R.value.style.chart.lines.path.stroke,
|
|
1989
1991
|
"stroke-width": R.value.style.chart.lines.strokeWidth,
|
|
1990
1992
|
fill: "none",
|
|
1991
1993
|
"stroke-linecap": "round",
|
|
1992
|
-
style:
|
|
1993
|
-
}, null, 12,
|
|
1994
|
-
R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.lines.distributed ? (
|
|
1994
|
+
style: Ke({ transition: M(B) || !R.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
|
|
1995
|
+
}, null, 12, xt))), 256)),
|
|
1996
|
+
R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.lines.distributed ? (D(), C("g", {
|
|
1995
1997
|
key: 9,
|
|
1996
1998
|
ref_key: "scaleLabels",
|
|
1997
1999
|
ref: Sn
|
|
1998
|
-
}, [(
|
|
2000
|
+
}, [(D(!0), C(y, null, k(Lr.value, (e, t) => (D(), C("line", {
|
|
1999
2001
|
x1: sr.value ? X.value.right : X.value.left,
|
|
2000
2002
|
x2: sr.value ? X.value.right + 6 : X.value.left - 6,
|
|
2001
2003
|
y1: e.y,
|
|
2002
2004
|
y2: e.y,
|
|
2003
2005
|
stroke: R.value.style.chart.grid.x.axisColor,
|
|
2004
2006
|
"stroke-width": 1
|
|
2005
|
-
}, null, 8,
|
|
2007
|
+
}, null, 8, St))), 256)), (D(!0), C(y, null, k(Lr.value, (e, t) => (D(), C("text", {
|
|
2006
2008
|
x: e.x,
|
|
2007
2009
|
y: e.y + R.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
2008
2010
|
"font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2009
2011
|
"font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
2010
2012
|
fill: R.value.style.chart.grid.y.axisLabels.color,
|
|
2011
2013
|
"text-anchor": sr.value ? "start" : "end"
|
|
2012
|
-
},
|
|
2014
|
+
}, j(M(te)(R.value.style.chart.grid.y.axisLabels.formatter, e.value, M(ie)({
|
|
2013
2015
|
p: R.value.style.chart.lines.dataLabels.prefix,
|
|
2014
2016
|
v: e.value,
|
|
2015
2017
|
s: R.value.style.chart.lines.dataLabels.suffix,
|
|
2016
2018
|
r: R.value.style.chart.grid.y.axisLabels.rounding
|
|
2017
|
-
}), { datapoint: e })), 9,
|
|
2018
|
-
R.value.style.chart.grid.x.timeLabels.show ? (
|
|
2019
|
+
}), { datapoint: e })), 9, Ct))), 256))], 512)) : S("", !0),
|
|
2020
|
+
R.value.style.chart.grid.x.timeLabels.show ? (D(), C("g", {
|
|
2019
2021
|
key: 10,
|
|
2020
2022
|
ref_key: "timeLabelsEls",
|
|
2021
2023
|
ref: Cn
|
|
2022
|
-
}, [t.$slots["time-label"] ? (
|
|
2023
|
-
x:
|
|
2024
|
-
y:
|
|
2024
|
+
}, [t.$slots["time-label"] ? (D(), C("g", wt, [(D(!0), C(y, null, k(Ur.value, (e, n) => (D(), C("g", null, [A(t.$slots, "time-label", Ue({ ref_for: !0 }, {
|
|
2025
|
+
x: W.value.left + Er.value * n + Er.value / 2,
|
|
2026
|
+
y: W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY,
|
|
2025
2027
|
fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2026
2028
|
fill: R.value.style.chart.grid.x.timeLabels.color,
|
|
2027
|
-
transform: `translate(${
|
|
2029
|
+
transform: `translate(${W.value.left + Er.value * n + Er.value / 2}, ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2028
2030
|
absoluteIndex: e.absoluteIndex,
|
|
2029
2031
|
content: e.text,
|
|
2030
2032
|
textAnchor: R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2031
2033
|
show: !0
|
|
2032
|
-
}), void 0, !0)]))), 256))])) : (
|
|
2034
|
+
}), void 0, !0)]))), 256))])) : (D(), C("g", Tt, [(D(!0), C(y, null, k(Ur.value, (e, n) => (D(), C("g", null, [String(e.text).includes("\n") ? (D(), C("text", {
|
|
2033
2035
|
key: n + "-multi",
|
|
2034
2036
|
"text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2035
2037
|
"font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2037,11 +2039,11 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2037
2039
|
transform: `
|
|
2038
2040
|
translate(
|
|
2039
2041
|
${Q(n)},
|
|
2040
|
-
${
|
|
2042
|
+
${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}
|
|
2041
2043
|
),
|
|
2042
2044
|
rotate(${R.value.style.chart.grid.x.timeLabels.rotation})
|
|
2043
2045
|
`,
|
|
2044
|
-
style:
|
|
2046
|
+
style: Ke({ cursor: z.value ? "pointer" : "default" }),
|
|
2045
2047
|
innerHTML: t.createTSpansFromLineBreaksOnX({
|
|
2046
2048
|
content: String(e.text),
|
|
2047
2049
|
fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2049,34 +2051,34 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2049
2051
|
x: 0,
|
|
2050
2052
|
y: 0
|
|
2051
2053
|
}),
|
|
2052
|
-
onClick: () =>
|
|
2053
|
-
}, null, 12,
|
|
2054
|
+
onClick: () => _i(e, n)
|
|
2055
|
+
}, null, 12, Dt)) : (D(), C("text", {
|
|
2054
2056
|
class: "vue-data-ui-time-label",
|
|
2055
2057
|
key: n,
|
|
2056
2058
|
"text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2057
2059
|
"font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2058
2060
|
"font-weight": R.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
2059
2061
|
fill: R.value.style.chart.grid.x.timeLabels.color,
|
|
2060
|
-
transform: `translate(${Q(n)}, ${
|
|
2061
|
-
style:
|
|
2062
|
-
onClick: () =>
|
|
2063
|
-
},
|
|
2064
|
-
(_n.value || ![null, void 0].includes($.value)) && !R.value.style.chart.highlighter.useLine ? (
|
|
2065
|
-
x:
|
|
2066
|
-
y:
|
|
2067
|
-
height:
|
|
2068
|
-
width:
|
|
2069
|
-
fill: [
|
|
2062
|
+
transform: `translate(${Q(n)}, ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2063
|
+
style: Ke({ cursor: z.value ? "pointer" : "default" }),
|
|
2064
|
+
onClick: () => _i(e, n)
|
|
2065
|
+
}, j(e.text), 13, Et))]))), 256))]))], 512)) : S("", !0),
|
|
2066
|
+
(_n.value || ![null, void 0].includes($.value)) && !R.value.style.chart.highlighter.useLine ? (D(!0), C(y, { key: 11 }, k(q.value.end - q.value.start, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
|
|
2067
|
+
x: ci(t).x,
|
|
2068
|
+
y: W.value.top,
|
|
2069
|
+
height: W.value.height,
|
|
2070
|
+
width: ci(t).width,
|
|
2071
|
+
fill: [In.value, $.value].includes(t) ? M(i)(R.value.style.chart.highlighter.color, R.value.style.chart.highlighter.opacity) : "transparent",
|
|
2070
2072
|
style: {
|
|
2071
2073
|
transition: "none !important",
|
|
2072
2074
|
animation: "none !important"
|
|
2073
2075
|
}
|
|
2074
|
-
}, null, 8,
|
|
2075
|
-
(_n.value || ![null, void 0].includes($.value)) && R.value.style.chart.highlighter.useLine ? (
|
|
2076
|
-
x1: Q(($.value ??
|
|
2077
|
-
x2: Q(($.value ??
|
|
2078
|
-
y1: M(
|
|
2079
|
-
y2: M(
|
|
2076
|
+
}, null, 8, Ot)]))), 128)) : S("", !0),
|
|
2077
|
+
(_n.value || ![null, void 0].includes($.value)) && R.value.style.chart.highlighter.useLine ? (D(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(In.value) ? (D(), C("g", kt, [w("line", {
|
|
2078
|
+
x1: Q(($.value ?? In.value) || 0),
|
|
2079
|
+
x2: Q(($.value ?? In.value) || 0),
|
|
2080
|
+
y1: M(ae)(W.value.top),
|
|
2081
|
+
y2: M(ae)(W.value.bottom),
|
|
2080
2082
|
stroke: R.value.style.chart.highlighter.color,
|
|
2081
2083
|
"stroke-width": R.value.style.chart.highlighter.lineWidth,
|
|
2082
2084
|
"stroke-dasharray": R.value.style.chart.highlighter.lineDasharray,
|
|
@@ -2086,8 +2088,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2086
2088
|
animation: "none !important",
|
|
2087
2089
|
"pointer-events": "none"
|
|
2088
2090
|
}
|
|
2089
|
-
}, null, 8,
|
|
2090
|
-
(
|
|
2091
|
+
}, null, 8, At)])) : S("", !0)], 64)) : S("", !0),
|
|
2092
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [_n.value && q.value.end - q.value.start > R.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(), C("g", jt, [$.value == null ? S("", !0) : (D(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (D(), x(De, {
|
|
2091
2093
|
key: 0,
|
|
2092
2094
|
shape: [
|
|
2093
2095
|
"triangle",
|
|
@@ -2099,8 +2101,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2099
2101
|
].includes(e.shape) ? e.shape : "circle",
|
|
2100
2102
|
color: R.value.style.chart.lines.dot.useSerieColor ? e.color : R.value.style.chart.lines.dot.fill,
|
|
2101
2103
|
plot: {
|
|
2102
|
-
x: M(
|
|
2103
|
-
y: M(
|
|
2104
|
+
x: M(le)(e.points[e.rel.indexOf($.value)].x),
|
|
2105
|
+
y: M(le)(e.points[e.rel.indexOf($.value)].y)
|
|
2104
2106
|
},
|
|
2105
2107
|
radius: R.value.style.chart.lines.dot.radius * 1.3,
|
|
2106
2108
|
stroke: R.value.style.chart.lines.dot.useSerieColor ? R.value.style.chart.lines.dot.stroke : e.color,
|
|
@@ -2114,8 +2116,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2114
2116
|
"stroke",
|
|
2115
2117
|
"strokeWidth",
|
|
2116
2118
|
"transition"
|
|
2117
|
-
])) :
|
|
2118
|
-
(
|
|
2119
|
+
])) : S("", !0)], 64))])) : S("", !0)], 64))), 256)),
|
|
2120
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [q.value.end - q.value.start < R.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(!0), C(y, { key: 0 }, k(e.points, (t, n) => (D(), C("g", { key: n }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (D(), x(De, {
|
|
2119
2121
|
key: 0,
|
|
2120
2122
|
shape: [
|
|
2121
2123
|
"triangle",
|
|
@@ -2142,8 +2144,8 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2142
2144
|
"stroke",
|
|
2143
2145
|
"strokeWidth",
|
|
2144
2146
|
"transition"
|
|
2145
|
-
])) :
|
|
2146
|
-
|
|
2147
|
+
])) : S("", !0)]))), 128)) : S("", !0)], 64))), 256)),
|
|
2148
|
+
H.value.dataLabels.show && R.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (D(), C(y, { key: 13 }, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("g", { key: t }, [(D(!0), C(y, null, k(e.points, (n, r) => (D(), C(y, { key: r }, [Gi(e.series[r], e.proportions[r]) ? (D(), C("text", {
|
|
2147
2149
|
key: 0,
|
|
2148
2150
|
x: n.x,
|
|
2149
2151
|
y: n.y + (e.series[r] >= 0 ? -R.value.style.chart.lines.dataLabels.fontSize / 2 + R.value.style.chart.lines.dataLabels.offsetY : R.value.style.chart.lines.dataLabels.fontSize * 1.2 - R.value.style.chart.lines.dataLabels.offsetY),
|
|
@@ -2151,11 +2153,11 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2151
2153
|
fill: R.value.style.chart.lines.dataLabels.color,
|
|
2152
2154
|
"font-weight": R.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
2153
2155
|
"text-anchor": "middle"
|
|
2154
|
-
},
|
|
2156
|
+
}, j(R.value.style.chart.lines.showDistributedPercentage && R.value.style.chart.lines.distributed ? Ji(e.proportions[r] * 100, e, t, e.rel[r]) : qi(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 9, Mt)) : S("", !0)], 64))), 128))]))), 128)), R.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (D(), C("g", {
|
|
2155
2157
|
key: 0,
|
|
2156
2158
|
ref_key: "sumTop",
|
|
2157
2159
|
ref: wn
|
|
2158
|
-
}, [(
|
|
2160
|
+
}, [(D(!0), C(y, null, k(Pr.value, (e, t) => (D(), C(y, null, [!R.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (D(), C("text", {
|
|
2159
2161
|
key: 0,
|
|
2160
2162
|
x: Q(t),
|
|
2161
2163
|
y: Ir(t),
|
|
@@ -2163,59 +2165,59 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2163
2165
|
"font-size": R.value.style.chart.lines.totalValues.fontSize,
|
|
2164
2166
|
"font-weight": R.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
2165
2167
|
fill: R.value.style.chart.lines.totalValues.color
|
|
2166
|
-
},
|
|
2167
|
-
br.value ? (
|
|
2168
|
-
"data-start":
|
|
2169
|
-
"data-end":
|
|
2170
|
-
}), null, 16,
|
|
2171
|
-
|
|
2172
|
-
drawingArea:
|
|
2168
|
+
}, j(qi(e.value, e, t, t, e.sign)), 9, Nt)) : S("", !0)], 64))), 256))], 512)) : S("", !0)], 64)) : S("", !0),
|
|
2169
|
+
br.value ? (D(), C("rect", Ue({ key: 14 }, hr.value, {
|
|
2170
|
+
"data-start": q.value.start,
|
|
2171
|
+
"data-end": q.value.end
|
|
2172
|
+
}), null, 16, Pt)) : S("", !0),
|
|
2173
|
+
A(t.$slots, "svg", { svg: {
|
|
2174
|
+
drawingArea: W.value,
|
|
2173
2175
|
data: Y.value,
|
|
2174
2176
|
isPrintingImg: M(Xn) || M(Zn) || vn.value,
|
|
2175
2177
|
isPrintingSvg: yn.value
|
|
2176
2178
|
} }, void 0, !0)
|
|
2177
|
-
], 46,
|
|
2179
|
+
], 46, ot)), t.$slots.hint ? (D(), C("div", Ft, [A(t.$slots, "hint", E(T({
|
|
2178
2180
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
2179
|
-
isVisible:
|
|
2180
|
-
})), void 0, !0)])) :
|
|
2181
|
-
t.$slots.watermark ? (
|
|
2182
|
-
mn.value && (R.value.style.chart.legend.show || t.$slots.legend) ? (
|
|
2181
|
+
isVisible: Qi.value
|
|
2182
|
+
})), void 0, !0)])) : S("", !0)]),
|
|
2183
|
+
t.$slots.watermark ? (D(), C("div", It, [A(t.$slots, "watermark", E(T({ isPrinting: M(Xn) || M(Zn) || vn.value || yn.value })), void 0, !0)])) : S("", !0),
|
|
2184
|
+
mn.value && (R.value.style.chart.legend.show || t.$slots.legend) ? (D(), x(Re, {
|
|
2183
2185
|
key: 6,
|
|
2184
|
-
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
2185
|
-
}, [
|
|
2186
|
+
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
2187
|
+
}, [w("div", {
|
|
2186
2188
|
ref_key: "chartLegend",
|
|
2187
2189
|
ref: an
|
|
2188
|
-
}, [
|
|
2190
|
+
}, [A(t.$slots, "legend", { legend: bi.value }, () => [R.value.style.chart.legend.show ? (D(), x(Ie, {
|
|
2189
2191
|
key: 0,
|
|
2190
|
-
legendSet:
|
|
2191
|
-
config:
|
|
2192
|
+
legendSet: bi.value,
|
|
2193
|
+
config: xi.value,
|
|
2192
2194
|
isCursorPointer: z.value,
|
|
2193
2195
|
onClickMarker: n[0] ||= ({ legend: e }) => e.segregate()
|
|
2194
|
-
},
|
|
2195
|
-
item: N(({ legend: e }) => [M(B) ?
|
|
2196
|
+
}, ze({
|
|
2197
|
+
item: N(({ legend: e }) => [M(B) ? S("", !0) : (D(), C("div", {
|
|
2196
2198
|
key: 0,
|
|
2197
2199
|
onClick: (t) => e.segregate(),
|
|
2198
|
-
style:
|
|
2199
|
-
},
|
|
2200
|
-
legendToggle: N(() => [
|
|
2200
|
+
style: Ke(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2201
|
+
}, j(e.name), 13, Lt))]),
|
|
2202
|
+
legendToggle: N(() => [bi.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !M(B) ? (D(), x(Me, {
|
|
2201
2203
|
key: 0,
|
|
2202
2204
|
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2203
2205
|
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
2204
2206
|
fontSize: R.value.style.chart.legend.fontSize,
|
|
2205
|
-
checked:
|
|
2207
|
+
checked: L.value.length > 0,
|
|
2206
2208
|
isCursorPointer: z.value,
|
|
2207
|
-
onToggle:
|
|
2209
|
+
onToggle: vi
|
|
2208
2210
|
}, null, 8, [
|
|
2209
2211
|
"backgroundColor",
|
|
2210
2212
|
"color",
|
|
2211
2213
|
"fontSize",
|
|
2212
2214
|
"checked",
|
|
2213
2215
|
"isCursorPointer"
|
|
2214
|
-
])) :
|
|
2216
|
+
])) : S("", !0)]),
|
|
2215
2217
|
_: 2
|
|
2216
2218
|
}, [t.$slots.pattern ? {
|
|
2217
2219
|
name: "legend-pattern",
|
|
2218
|
-
fn: N(({ legend: e, index: t }) => [
|
|
2220
|
+
fn: N(({ legend: e, index: t }) => [Ve(De, {
|
|
2219
2221
|
shape: e.shape,
|
|
2220
2222
|
radius: 30,
|
|
2221
2223
|
stroke: "none",
|
|
@@ -2223,31 +2225,31 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2223
2225
|
x: 30,
|
|
2224
2226
|
y: 30
|
|
2225
2227
|
},
|
|
2226
|
-
fill: `url(#pattern_${
|
|
2228
|
+
fill: `url(#pattern_${I.value}_${t})`
|
|
2227
2229
|
}, null, 8, ["shape", "fill"])]),
|
|
2228
2230
|
key: "0"
|
|
2229
2231
|
} : void 0]), 1032, [
|
|
2230
2232
|
"legendSet",
|
|
2231
2233
|
"config",
|
|
2232
2234
|
"isCursorPointer"
|
|
2233
|
-
])) :
|
|
2234
|
-
$t.value && R.value.userOptions.buttons.table ? (
|
|
2235
|
+
])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
2236
|
+
$t.value && R.value.userOptions.buttons.table ? (D(), x(Ye(Pi.value.component), Ue({ key: 7 }, Pi.value.props, {
|
|
2235
2237
|
ref_key: "tableUnit",
|
|
2236
2238
|
ref: hn,
|
|
2237
|
-
onClose:
|
|
2238
|
-
}),
|
|
2239
|
-
content: N(() => [
|
|
2240
|
-
colNames:
|
|
2241
|
-
head:
|
|
2242
|
-
body:
|
|
2243
|
-
config:
|
|
2244
|
-
title: R.value.table.useDialog ? "" :
|
|
2239
|
+
onClose: Fi
|
|
2240
|
+
}), ze({
|
|
2241
|
+
content: N(() => [Ve(M(Wt), {
|
|
2242
|
+
colNames: Di.value.colNames,
|
|
2243
|
+
head: Di.value.head,
|
|
2244
|
+
body: Di.value.body,
|
|
2245
|
+
config: Di.value.config,
|
|
2246
|
+
title: R.value.table.useDialog ? "" : Pi.value.title,
|
|
2245
2247
|
withCloseButton: !R.value.table.useDialog,
|
|
2246
2248
|
isCursorPointer: z.value,
|
|
2247
|
-
onClose:
|
|
2249
|
+
onClose: Fi
|
|
2248
2250
|
}, {
|
|
2249
|
-
th: N(({ th: e }) => [
|
|
2250
|
-
td: N(({ td: e }) => [
|
|
2251
|
+
th: N(({ th: e }) => [w("div", { innerHTML: e }, null, 8, Rt)]),
|
|
2252
|
+
td: N(({ td: e }) => [Be(j(isNaN(Number(e)) ? e : M(ie)({
|
|
2251
2253
|
p: R.value.style.chart.lines.dataLabels.prefix,
|
|
2252
2254
|
v: e,
|
|
2253
2255
|
s: R.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -2266,25 +2268,26 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2266
2268
|
_: 2
|
|
2267
2269
|
}, [R.value.table.useDialog ? {
|
|
2268
2270
|
name: "title",
|
|
2269
|
-
fn: N(() => [
|
|
2271
|
+
fn: N(() => [Be(j(Pi.value.title), 1)]),
|
|
2270
2272
|
key: "0"
|
|
2271
2273
|
} : void 0, R.value.table.useDialog ? {
|
|
2272
2274
|
name: "actions",
|
|
2273
|
-
fn: N(() => [
|
|
2275
|
+
fn: N(() => [w("button", {
|
|
2274
2276
|
tabindex: "0",
|
|
2275
2277
|
class: "vue-ui-user-options-button",
|
|
2276
|
-
onClick: n[1] ||= (e) =>
|
|
2277
|
-
style:
|
|
2278
|
-
}, [
|
|
2278
|
+
onClick: n[1] ||= (e) => Ei(R.value.userOptions.callbacks.csv),
|
|
2279
|
+
style: Ke({ cursor: z.value ? "pointer" : "default" })
|
|
2280
|
+
}, [Ve(M(Ht), {
|
|
2279
2281
|
name: "fileCsv",
|
|
2280
|
-
stroke:
|
|
2282
|
+
stroke: Pi.value.props.color
|
|
2281
2283
|
}, null, 8, ["stroke"])], 4)]),
|
|
2282
2284
|
key: "1"
|
|
2283
|
-
} : void 0]), 1040)) :
|
|
2284
|
-
R.value.style.chart.zoom.show && $t.value &&
|
|
2285
|
+
} : void 0]), 1040)) : S("", !0),
|
|
2286
|
+
R.value.style.chart.zoom.show && $t.value && Qr.value && K.value > 6 ? (D(), x(je, {
|
|
2285
2287
|
key: 8,
|
|
2286
2288
|
ref_key: "chartSlicer",
|
|
2287
2289
|
ref: on,
|
|
2290
|
+
"data-dom-to-png-ignore-layout": "",
|
|
2288
2291
|
allMinimaps: Ar.value,
|
|
2289
2292
|
background: R.value.style.chart.zoom.color,
|
|
2290
2293
|
borderColor: R.value.style.chart.backgroundColor,
|
|
@@ -2292,15 +2295,15 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2292
2295
|
cutNullValues: !1,
|
|
2293
2296
|
enableRangeHandles: R.value.style.chart.zoom.enableRangeHandles,
|
|
2294
2297
|
enableSelectionDrag: R.value.style.chart.zoom.enableSelectionDrag,
|
|
2295
|
-
end:
|
|
2298
|
+
end: q.value.end,
|
|
2296
2299
|
focusOnDrag: R.value.style.chart.zoom.focusOnDrag,
|
|
2297
2300
|
focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
|
|
2298
2301
|
fontSize: R.value.style.chart.zoom.fontSize,
|
|
2299
2302
|
immediate: !R.value.style.chart.zoom.preview.enable,
|
|
2300
2303
|
inputColor: R.value.style.chart.zoom.color,
|
|
2301
2304
|
isPreview: br.value,
|
|
2302
|
-
labelLeft: R.value.style.chart.grid.x.timeLabels.values[
|
|
2303
|
-
labelRight: R.value.style.chart.grid.x.timeLabels.values[
|
|
2305
|
+
labelLeft: R.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Rr.value?.[0]?.text ?? "" : "",
|
|
2306
|
+
labelRight: R.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Rr.value?.at(-1)?.text ?? "" : "",
|
|
2304
2307
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2305
2308
|
min: 0,
|
|
2306
2309
|
minimap: kr.value,
|
|
@@ -2312,18 +2315,18 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2312
2315
|
minimapSelectedColorOpacity: R.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2313
2316
|
minimapSelectedIndex: $.value,
|
|
2314
2317
|
minimapSelectionRadius: 1,
|
|
2315
|
-
preciseLabels:
|
|
2318
|
+
preciseLabels: qr.value.length ? qr.value : zr.value,
|
|
2316
2319
|
refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : R.value.style.chart.zoom.endIndex + 1,
|
|
2317
2320
|
refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
|
|
2318
2321
|
selectColor: R.value.style.chart.zoom.highlightColor,
|
|
2319
|
-
selectedSeries:
|
|
2322
|
+
selectedSeries: Hi.value,
|
|
2320
2323
|
smoothMinimap: !1,
|
|
2321
|
-
start:
|
|
2324
|
+
start: q.value.start,
|
|
2322
2325
|
textColor: R.value.style.chart.color,
|
|
2323
|
-
timeLabels:
|
|
2326
|
+
timeLabels: zr.value,
|
|
2324
2327
|
usePreciseLabels: R.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !R.value.style.chart.zoom.useDefaultFormat,
|
|
2325
|
-
valueEnd:
|
|
2326
|
-
valueStart:
|
|
2328
|
+
valueEnd: q.value.end,
|
|
2329
|
+
valueStart: q.value.start,
|
|
2327
2330
|
verticalHandles: R.value.style.chart.zoom.minimap.verticalHandles,
|
|
2328
2331
|
maxWidth: R.value.style.chart.zoom.maxWidth,
|
|
2329
2332
|
isCursorPointer: z.value,
|
|
@@ -2334,25 +2337,25 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2334
2337
|
handleBorderColor: R.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2335
2338
|
handleFill: R.value.style.chart.zoom.minimap.handleFill,
|
|
2336
2339
|
handleWidth: R.value.style.chart.zoom.minimap.handleWidth,
|
|
2337
|
-
"onUpdate:end":
|
|
2338
|
-
"onUpdate:start":
|
|
2340
|
+
"onUpdate:end": ni,
|
|
2341
|
+
"onUpdate:start": ti,
|
|
2339
2342
|
onTrapMouse: vr,
|
|
2340
2343
|
onReset: n[2] ||= () => Tr({ force: !0 }),
|
|
2341
2344
|
onFutureEnd: n[3] ||= (e) => xr("end", e),
|
|
2342
2345
|
onFutureStart: n[4] ||= (e) => xr("start", e)
|
|
2343
2346
|
}, {
|
|
2344
|
-
"reset-action": N(({ reset: e }) => [
|
|
2345
|
-
slotMap: N(({ width: e, height: t, unitW: n }) => [
|
|
2347
|
+
"reset-action": N(({ reset: e }) => [A(t.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
|
|
2348
|
+
slotMap: N(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Wi({
|
|
2346
2349
|
minimapW: e,
|
|
2347
2350
|
minimapH: t,
|
|
2348
2351
|
unitW: n
|
|
2349
|
-
}) }, null, 8,
|
|
2352
|
+
}) }, null, 8, zt)]),
|
|
2350
2353
|
_: 3
|
|
2351
|
-
}, 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.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) :
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
+
}, 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.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
|
|
2355
|
+
w("div", { id: `legend-bottom-${I.value}` }, null, 8, Bt),
|
|
2356
|
+
Ve(M(Vt), {
|
|
2354
2357
|
teleportTo: R.value.style.chart.tooltip.teleportTo,
|
|
2355
|
-
show:
|
|
2358
|
+
show: H.value.showTooltip && tn.value,
|
|
2356
2359
|
backgroundColor: R.value.style.chart.tooltip.backgroundColor,
|
|
2357
2360
|
color: R.value.style.chart.tooltip.color,
|
|
2358
2361
|
fontSize: R.value.style.chart.tooltip.fontSize,
|
|
@@ -2364,19 +2367,19 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2364
2367
|
offsetX: R.value.style.chart.tooltip.offsetX,
|
|
2365
2368
|
offsetY: R.value.style.chart.tooltip.offsetY,
|
|
2366
2369
|
parent: en.value,
|
|
2367
|
-
content:
|
|
2370
|
+
content: hi.value,
|
|
2368
2371
|
isFullscreen: ln.value,
|
|
2369
2372
|
isCustom: R.value.style.chart.tooltip.customFormat && typeof R.value.style.chart.tooltip.customFormat == "function",
|
|
2370
2373
|
smooth: R.value.style.chart.tooltip.smooth,
|
|
2371
2374
|
backdropFilter: R.value.style.chart.tooltip.backdropFilter,
|
|
2372
2375
|
smoothForce: R.value.style.chart.tooltip.smoothForce,
|
|
2373
2376
|
smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2374
|
-
isA11yMode:
|
|
2375
|
-
a11yPosition:
|
|
2377
|
+
isA11yMode: jn.value === "keyboard",
|
|
2378
|
+
a11yPosition: An.value
|
|
2376
2379
|
}, {
|
|
2377
|
-
"tooltip-before": N(() => [
|
|
2378
|
-
tooltip: N(() => [
|
|
2379
|
-
"tooltip-after": N(() => [
|
|
2380
|
+
"tooltip-before": N(() => [A(t.$slots, "tooltip-before", E(T({ ...Xr.value })), void 0, !0)]),
|
|
2381
|
+
tooltip: N(() => [A(t.$slots, "tooltip", E(T({ ...Xr.value })), void 0, !0)]),
|
|
2382
|
+
"tooltip-after": N(() => [A(t.$slots, "tooltip-after", E(T({ ...Xr.value })), void 0, !0)]),
|
|
2380
2383
|
_: 3
|
|
2381
2384
|
}, 8, [
|
|
2382
2385
|
"teleportTo",
|
|
@@ -2402,15 +2405,15 @@ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt
|
|
|
2402
2405
|
"isA11yMode",
|
|
2403
2406
|
"a11yPosition"
|
|
2404
2407
|
]),
|
|
2405
|
-
t.$slots.source ? (
|
|
2408
|
+
t.$slots.source ? (D(), C("div", {
|
|
2406
2409
|
key: 9,
|
|
2407
2410
|
ref_key: "source",
|
|
2408
2411
|
ref: cn,
|
|
2409
2412
|
dir: "auto"
|
|
2410
|
-
}, [
|
|
2411
|
-
|
|
2412
|
-
], 46,
|
|
2413
|
+
}, [A(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
2414
|
+
A(t.$slots, "skeleton", {}, () => [M(B) ? (D(), x(ye, { key: 0 })) : S("", !0)], !0)
|
|
2415
|
+
], 46, nt));
|
|
2413
2416
|
}
|
|
2414
|
-
}, [["__scopeId", "data-v-
|
|
2417
|
+
}, [["__scopeId", "data-v-016aa3b5"]]);
|
|
2415
2418
|
//#endregion
|
|
2416
|
-
export {
|
|
2419
|
+
export { tt as n, Vt as t };
|