vue-data-ui 3.22.7 → 3.22.8
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, A as n, Et as r, G as i, Ht as a, J as o, Kt as s, L as c, M as l, Mt as u, Rt as d, S as f, T as p, Ut as m, Wt as h, Z as g, b as _, bt as ee, dt as te, g as v, h as ne, i as re, it as ie, kt as ae, lt as oe, ot as se, s as ce, t as le, v as ue, yt as de, z as fe } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { n as pe, r as me, t as he } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
4
|
import { t as ge } from "./useConfig-DYM3f6EI.js";
|
|
5
|
-
import { t as _e } from "./usePrinter-
|
|
5
|
+
import { t as _e } from "./usePrinter-CqqHmnBI.js";
|
|
6
6
|
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as be } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as xe } from "./useNestedProp-
|
|
8
|
+
import { t as xe } from "./useNestedProp-DIuuzG1r.js";
|
|
9
9
|
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as Ce } from "./useStableElementSize-C7KADDKj.js";
|
|
11
11
|
import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
-
import { t as Te } from "./img-
|
|
13
|
-
import { n as Ee } from "./Title-
|
|
14
|
-
import { t as De } from "./Shape-
|
|
12
|
+
import { t as Te } from "./img-DnP3eXuv.js";
|
|
13
|
+
import { n as Ee } from "./Title-CcNiYzEo.js";
|
|
14
|
+
import { t as De } from "./Shape-UpH0a4Ur.js";
|
|
15
15
|
import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { c as ke } from "./canvas-lib-BOP_HS11.js";
|
|
17
17
|
import { t as Ae } from "./useResponsive-BfnK0KxU.js";
|
|
18
|
-
import { t as je } from "./SlicerPreview-
|
|
19
|
-
import { t as Me } from "./BaseLegendToggle-
|
|
18
|
+
import { t as je } from "./SlicerPreview-BQFeCw0m.js";
|
|
19
|
+
import { t as Me } from "./BaseLegendToggle-DtQ8vyfr.js";
|
|
20
20
|
import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
|
|
21
21
|
import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
22
22
|
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
23
|
-
import { t as Ie } from "./Legend-
|
|
23
|
+
import { t as Ie } from "./Legend-ROt6ugzW.js";
|
|
24
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
|
|
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 Ze, toRefs as Qe, unref as j, useSlots as $e, watch as et, watchEffect as tt, withCtx as M } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-stackline.vue
|
|
27
|
-
var
|
|
27
|
+
var nt = /* @__PURE__ */ e({ default: () => Ht }), rt = ["id"], it = ["id"], at = ["id"], ot = { style: { position: "relative" } }, st = [
|
|
28
28
|
"aria-describedby",
|
|
29
29
|
"xmlns",
|
|
30
30
|
"viewBox"
|
|
31
|
-
],
|
|
31
|
+
], ct = { key: 0 }, lt = [
|
|
32
32
|
"x",
|
|
33
33
|
"y",
|
|
34
34
|
"width",
|
|
35
35
|
"height"
|
|
36
|
-
],
|
|
36
|
+
], ut = { key: 1 }, dt = ["id"], ft = ["stop-color"], pt = ["stop-color"], mt = [
|
|
37
37
|
"x1",
|
|
38
38
|
"x2",
|
|
39
39
|
"y1",
|
|
@@ -41,7 +41,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
41
41
|
"stroke",
|
|
42
42
|
"stroke-width",
|
|
43
43
|
"stroke-dasharray"
|
|
44
|
-
],
|
|
44
|
+
], ht = [
|
|
45
45
|
"x1",
|
|
46
46
|
"x2",
|
|
47
47
|
"y1",
|
|
@@ -49,32 +49,32 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
49
49
|
"stroke",
|
|
50
50
|
"stroke-width",
|
|
51
51
|
"stroke-dasharray"
|
|
52
|
-
],
|
|
52
|
+
], gt = [
|
|
53
53
|
"x1",
|
|
54
54
|
"x2",
|
|
55
55
|
"y1",
|
|
56
56
|
"y2",
|
|
57
57
|
"stroke",
|
|
58
58
|
"stroke-width"
|
|
59
|
-
],
|
|
59
|
+
], _t = [
|
|
60
60
|
"x1",
|
|
61
61
|
"x2",
|
|
62
62
|
"y1",
|
|
63
63
|
"y2",
|
|
64
64
|
"stroke",
|
|
65
65
|
"stroke-width"
|
|
66
|
-
],
|
|
66
|
+
], vt = [
|
|
67
67
|
"x",
|
|
68
68
|
"y",
|
|
69
69
|
"font-size",
|
|
70
70
|
"fill",
|
|
71
71
|
"font-weight"
|
|
72
|
-
],
|
|
72
|
+
], yt = [
|
|
73
73
|
"transform",
|
|
74
74
|
"font-size",
|
|
75
75
|
"fill",
|
|
76
76
|
"font-weight"
|
|
77
|
-
],
|
|
77
|
+
], bt = [
|
|
78
78
|
"x",
|
|
79
79
|
"y",
|
|
80
80
|
"width",
|
|
@@ -84,48 +84,48 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
84
84
|
"stroke-linecap",
|
|
85
85
|
"stroke-linejoin",
|
|
86
86
|
"stroke-dasharray"
|
|
87
|
-
],
|
|
87
|
+
], xt = [
|
|
88
88
|
"d",
|
|
89
89
|
"fill",
|
|
90
90
|
"opacity"
|
|
91
|
-
],
|
|
91
|
+
], St = [
|
|
92
92
|
"d",
|
|
93
93
|
"stroke",
|
|
94
94
|
"stroke-width"
|
|
95
|
-
],
|
|
95
|
+
], Ct = [
|
|
96
96
|
"x1",
|
|
97
97
|
"x2",
|
|
98
98
|
"y1",
|
|
99
99
|
"y2",
|
|
100
100
|
"stroke"
|
|
101
|
-
],
|
|
101
|
+
], wt = [
|
|
102
102
|
"x",
|
|
103
103
|
"y",
|
|
104
104
|
"font-size",
|
|
105
105
|
"font-weight",
|
|
106
106
|
"fill",
|
|
107
107
|
"text-anchor"
|
|
108
|
-
],
|
|
108
|
+
], Tt = { key: 0 }, Et = { key: 1 }, Dt = [
|
|
109
109
|
"text-anchor",
|
|
110
110
|
"font-size",
|
|
111
111
|
"font-weight",
|
|
112
112
|
"fill",
|
|
113
113
|
"transform",
|
|
114
114
|
"onClick"
|
|
115
|
-
],
|
|
115
|
+
], Ot = [
|
|
116
116
|
"text-anchor",
|
|
117
117
|
"font-size",
|
|
118
118
|
"fill",
|
|
119
119
|
"transform",
|
|
120
120
|
"innerHTML",
|
|
121
121
|
"onClick"
|
|
122
|
-
],
|
|
122
|
+
], kt = [
|
|
123
123
|
"x",
|
|
124
124
|
"y",
|
|
125
125
|
"height",
|
|
126
126
|
"width",
|
|
127
127
|
"fill"
|
|
128
|
-
],
|
|
128
|
+
], At = { key: 0 }, jt = [
|
|
129
129
|
"x1",
|
|
130
130
|
"x2",
|
|
131
131
|
"y1",
|
|
@@ -133,19 +133,19 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
133
133
|
"stroke",
|
|
134
134
|
"stroke-width",
|
|
135
135
|
"stroke-dasharray"
|
|
136
|
-
],
|
|
136
|
+
], Mt = { key: 0 }, Nt = [
|
|
137
137
|
"x",
|
|
138
138
|
"y",
|
|
139
139
|
"font-size",
|
|
140
140
|
"fill",
|
|
141
141
|
"font-weight"
|
|
142
|
-
],
|
|
142
|
+
], Pt = [
|
|
143
143
|
"x",
|
|
144
144
|
"y",
|
|
145
145
|
"font-size",
|
|
146
146
|
"font-weight",
|
|
147
147
|
"fill"
|
|
148
|
-
],
|
|
148
|
+
], Ft = ["data-start", "data-end"], It = {
|
|
149
149
|
key: 0,
|
|
150
150
|
style: {
|
|
151
151
|
position: "absolute",
|
|
@@ -155,10 +155,10 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
155
155
|
},
|
|
156
156
|
"data-dom-to-png-ignore": "",
|
|
157
157
|
"aria-hidden": "true"
|
|
158
|
-
},
|
|
158
|
+
}, Lt = {
|
|
159
159
|
key: 5,
|
|
160
160
|
class: "vue-data-ui-watermark"
|
|
161
|
-
},
|
|
161
|
+
}, Rt = ["onClick"], zt = ["innerHTML"], Bt = ["innerHTML"], Vt = ["id"], Ht = /*#__PURE__*/ Oe({
|
|
162
162
|
__name: "vue-ui-stackline",
|
|
163
163
|
props: {
|
|
164
164
|
config: {
|
|
@@ -185,49 +185,49 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
185
185
|
"selectX",
|
|
186
186
|
"copyAlt"
|
|
187
187
|
],
|
|
188
|
-
setup(e, { expose: Oe, emit:
|
|
189
|
-
let
|
|
188
|
+
setup(e, { expose: Oe, emit: nt }) {
|
|
189
|
+
let Ht = He(() => import("./Tooltip-CxOrWlFy.js")), Ut = He(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), Wt = He(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), Gt = He(() => import("./DataTable-D9NvewTT.js")), Kt = He(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), qt = He(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Jt = He(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), Yt = He(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_stackline: Xt } = ge(), { isThemeValid: Zt, warnInvalidTheme: Qt } = Se(), $t = $e(), N = e, P = nt, en = b({
|
|
190
190
|
get() {
|
|
191
|
-
return !!
|
|
191
|
+
return !!N.dataset && N.dataset.length;
|
|
192
192
|
},
|
|
193
193
|
set(e) {
|
|
194
194
|
return e;
|
|
195
195
|
}
|
|
196
|
-
}),
|
|
196
|
+
}), F = O(null), I = O(i()), 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), R = O(null), kn = O({
|
|
197
197
|
x: 0,
|
|
198
198
|
y: 0
|
|
199
|
-
}),
|
|
199
|
+
}), An = O("pointer"), jn = 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
|
+
Pn();
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
function
|
|
210
|
-
Tn.value =
|
|
209
|
+
function Mn() {
|
|
210
|
+
Tn.value = F.value?.parentNode ?? null;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Nn() {
|
|
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 Pn() {
|
|
220
220
|
let e = ++On.value;
|
|
221
|
-
En.value = !1, await We(), await
|
|
221
|
+
En.value = !1, await We(), await Nn(), await Nn(), e === On.value && (Dn.value += 1, En.value = !0);
|
|
222
222
|
}
|
|
223
|
-
let
|
|
224
|
-
function
|
|
225
|
-
|
|
223
|
+
let Fn = O(null), In = O(!1);
|
|
224
|
+
function Ln() {
|
|
225
|
+
In.value = !In.value;
|
|
226
226
|
}
|
|
227
227
|
Je(() => {
|
|
228
|
-
|
|
228
|
+
Mn(), jn.start(), mn.value = !0, or(), Pn();
|
|
229
229
|
});
|
|
230
|
-
let
|
|
230
|
+
let z = O(qn()), B = b(() => z.value.userOptions.useCursorPointer), Rn = b(() => s({
|
|
231
231
|
defaultConfig: {
|
|
232
232
|
userOptions: { show: !1 },
|
|
233
233
|
useCssAnimation: !1,
|
|
@@ -272,17 +272,17 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
272
272
|
}
|
|
273
273
|
} }
|
|
274
274
|
},
|
|
275
|
-
userConfig:
|
|
276
|
-
})), { loading:
|
|
277
|
-
...
|
|
278
|
-
FINAL_CONFIG:
|
|
275
|
+
userConfig: z.value.skeletonConfig ?? {}
|
|
276
|
+
})), { loading: V, FINAL_DATASET: zn, manualLoading: Bn } = ve({
|
|
277
|
+
...Qe(N),
|
|
278
|
+
FINAL_CONFIG: z,
|
|
279
279
|
prepareConfig: qn,
|
|
280
280
|
callback: () => {
|
|
281
281
|
Promise.resolve().then(async () => {
|
|
282
|
-
(!
|
|
282
|
+
(!z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0) && await ei();
|
|
283
283
|
});
|
|
284
284
|
},
|
|
285
|
-
skeletonDataset:
|
|
285
|
+
skeletonDataset: N.config?.skeletonDataset ?? [{
|
|
286
286
|
name: "",
|
|
287
287
|
series: [
|
|
288
288
|
3,
|
|
@@ -313,16 +313,16 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
313
313
|
],
|
|
314
314
|
color: "#CACACA"
|
|
315
315
|
}],
|
|
316
|
-
skeletonConfig:
|
|
317
|
-
defaultConfig:
|
|
318
|
-
userConfig:
|
|
316
|
+
skeletonConfig: s({
|
|
317
|
+
defaultConfig: z.value,
|
|
318
|
+
userConfig: Rn.value
|
|
319
319
|
})
|
|
320
|
-
}), { userOptionsVisible:
|
|
320
|
+
}), { userOptionsVisible: Vn, setUserOptionsVisibility: Hn, keepUserOptionState: Un } = Pe({ config: z.value }), { svgRef: Wn } = Fe({ config: z.value.style.chart.title });
|
|
321
321
|
function Gn() {
|
|
322
|
-
_n.value = !0,
|
|
322
|
+
_n.value = !0, Hn(!0);
|
|
323
323
|
}
|
|
324
324
|
function Kn() {
|
|
325
|
-
|
|
325
|
+
Hn(!1), _n.value = !1, R.value = null, An.value = "pointer", tn.value = !1, $.value = null, P("selectX", {
|
|
326
326
|
index: null,
|
|
327
327
|
indexLabel: null,
|
|
328
328
|
dataset: null
|
|
@@ -330,92 +330,92 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
330
330
|
}
|
|
331
331
|
function qn() {
|
|
332
332
|
let e = xe({
|
|
333
|
-
userConfig:
|
|
334
|
-
defaultConfig:
|
|
333
|
+
userConfig: N.config,
|
|
334
|
+
defaultConfig: Xt
|
|
335
335
|
}), t = {}, n = e.theme;
|
|
336
|
-
if (n) if (!
|
|
336
|
+
if (n) if (!Zt.value(e)) Qt(e), t = e;
|
|
337
337
|
else {
|
|
338
338
|
let r = xe({
|
|
339
|
-
userConfig: Le[n] ||
|
|
339
|
+
userConfig: Le[n] || N.config,
|
|
340
340
|
defaultConfig: e
|
|
341
341
|
});
|
|
342
342
|
t = {
|
|
343
343
|
...xe({
|
|
344
|
-
userConfig:
|
|
344
|
+
userConfig: N.config,
|
|
345
345
|
defaultConfig: r
|
|
346
346
|
}),
|
|
347
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
347
|
+
customPalette: e.customPalette.length ? e.customPalette : h[n] || u
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
350
|
else t = e;
|
|
351
351
|
return t;
|
|
352
352
|
}
|
|
353
|
-
let Jn = b(() =>
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
top:
|
|
357
|
-
right:
|
|
358
|
-
bottom:
|
|
359
|
-
left:
|
|
360
|
-
},
|
|
361
|
-
}, { deep: !0 }),
|
|
362
|
-
Array.isArray(e) && e.length > 0 && (
|
|
353
|
+
let Jn = b(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Yn = b(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
354
|
+
et(() => N.config, (e) => {
|
|
355
|
+
V.value || (z.value = qn()), Vn.value = !z.value.userOptions.showOnChartHover, or({ resetSlicer: !z.value.style.chart.zoom.keepState }), dn.value += 1, fn.value += 1, pn.value += 1, H.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, U.value.width = z.value.style.chart.width, U.value.height = z.value.style.chart.height, U.value.paddingRatio = {
|
|
356
|
+
top: z.value.style.chart.padding.top / z.value.style.chart.height,
|
|
357
|
+
right: z.value.style.chart.padding.right / z.value.style.chart.width,
|
|
358
|
+
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
359
|
+
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
360
|
+
}, Mn(), Pn(), !z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0 ? ei() : Sr();
|
|
361
|
+
}, { deep: !0 }), et(() => N.dataset, (e) => {
|
|
362
|
+
Array.isArray(e) && e.length > 0 && (Bn.value = !1), z.value.style.chart.zoom.keepState ? Sr() : Tr(), Mn(), Pn();
|
|
363
363
|
}, { deep: !0 });
|
|
364
364
|
let H = O({
|
|
365
|
-
dataLabels: { show:
|
|
366
|
-
showTable:
|
|
367
|
-
showTooltip:
|
|
365
|
+
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
366
|
+
showTable: z.value.table.show,
|
|
367
|
+
showTooltip: z.value.style.chart.tooltip.show
|
|
368
368
|
});
|
|
369
|
-
|
|
369
|
+
et(z, () => {
|
|
370
370
|
H.value = {
|
|
371
|
-
dataLabels: { show:
|
|
372
|
-
showTable:
|
|
373
|
-
showTooltip:
|
|
371
|
+
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
372
|
+
showTable: z.value.table.show,
|
|
373
|
+
showTooltip: z.value.style.chart.tooltip.show
|
|
374
374
|
};
|
|
375
375
|
}, { immediate: !0 });
|
|
376
376
|
let { isPrinting: Xn, isImaging: Zn, generatePdf: Qn, generateImage: $n } = _e({
|
|
377
377
|
elementId: `stackline_${I.value}`,
|
|
378
|
-
fileName:
|
|
379
|
-
options:
|
|
380
|
-
}), er = b(() =>
|
|
381
|
-
width:
|
|
382
|
-
height:
|
|
378
|
+
fileName: z.value.style.chart.title.text || "vue-ui-stackline",
|
|
379
|
+
options: z.value.userOptions.print
|
|
380
|
+
}), er = b(() => z.value.userOptions.show && !z.value.style.chart.title.text), U = O({
|
|
381
|
+
width: z.value.style.chart.width,
|
|
382
|
+
height: z.value.style.chart.height,
|
|
383
383
|
paddingRatio: {
|
|
384
|
-
top:
|
|
385
|
-
right:
|
|
386
|
-
bottom:
|
|
387
|
-
left:
|
|
384
|
+
top: z.value.style.chart.padding.top / z.value.style.chart.height,
|
|
385
|
+
right: z.value.style.chart.padding.right / z.value.style.chart.width,
|
|
386
|
+
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
387
|
+
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
388
388
|
}
|
|
389
|
-
}), tr = b(() =>
|
|
389
|
+
}), tr = b(() => f(z.value.customPalette)), nr = Xe(null), rr = Xe(null), ir = O(null), ar = b(() => !!z.value.debug);
|
|
390
390
|
function or({ resetSlicer: e = !0 } = {}) {
|
|
391
|
-
if (
|
|
391
|
+
if (ae(N.dataset) ? (t({
|
|
392
392
|
componentName: "VueUiStackline",
|
|
393
393
|
type: "dataset",
|
|
394
394
|
debug: ar.value
|
|
395
|
-
}),
|
|
396
|
-
|
|
395
|
+
}), Bn.value = !0) : N.dataset.forEach((e, n) => {
|
|
396
|
+
te({
|
|
397
397
|
datasetObject: e,
|
|
398
398
|
requiredAttributes: ["name", "series"]
|
|
399
399
|
}).forEach((e) => {
|
|
400
|
-
|
|
400
|
+
en.value = !1, t({
|
|
401
401
|
componentName: "VueUiStackline",
|
|
402
402
|
type: "datasetSerieAttribute",
|
|
403
403
|
property: e,
|
|
404
|
-
index:
|
|
404
|
+
index: n,
|
|
405
405
|
debug: ar.value
|
|
406
|
-
}),
|
|
406
|
+
}), Bn.value = !0;
|
|
407
407
|
});
|
|
408
|
-
}),
|
|
408
|
+
}), ae(N.dataset) || (Bn.value = z.value.loading), setTimeout(() => {
|
|
409
409
|
un.value = !0;
|
|
410
|
-
}, 10),
|
|
410
|
+
}, 10), z.value.responsive) {
|
|
411
411
|
let e = ke(() => {
|
|
412
412
|
un.value = !1;
|
|
413
413
|
let { width: e, height: t } = Ae({
|
|
414
|
-
chart:
|
|
414
|
+
chart: F.value,
|
|
415
415
|
noTitle: sn.value,
|
|
416
|
-
title:
|
|
417
|
-
legend:
|
|
418
|
-
slicer:
|
|
416
|
+
title: z.value.style.chart.title.text ? rn.value : null,
|
|
417
|
+
legend: z.value.style.chart.legend.show ? an.value : null,
|
|
418
|
+
slicer: z.value.style.chart.zoom.show && K.value > 6 ? on.value.$el : null,
|
|
419
419
|
source: cn.value
|
|
420
420
|
});
|
|
421
421
|
requestAnimationFrame(() => {
|
|
@@ -424,21 +424,21 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
424
424
|
}, 10);
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
|
-
nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect()), nr.value = new ResizeObserver(e), rr.value =
|
|
427
|
+
nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect()), nr.value = new ResizeObserver(e), rr.value = F.value.parentNode, nr.value.observe(rr.value);
|
|
428
428
|
}
|
|
429
429
|
e && ei();
|
|
430
430
|
}
|
|
431
431
|
qe(() => {
|
|
432
|
-
|
|
432
|
+
jn.stop(), nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect());
|
|
433
433
|
});
|
|
434
|
-
let sr = b(() =>
|
|
434
|
+
let sr = b(() => z.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) => {
|
|
438
438
|
let n = t.getComputedTextLength();
|
|
439
439
|
return n > e ? n : e;
|
|
440
440
|
}, 0));
|
|
441
|
-
let t = xn.value ? xn.value.getBoundingClientRect().width +
|
|
441
|
+
let t = xn.value ? xn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
442
442
|
return {
|
|
443
443
|
left: sr.value ? 0 : e + t,
|
|
444
444
|
right: sr.value ? e + t : 0,
|
|
@@ -477,16 +477,16 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
477
477
|
} catch {
|
|
478
478
|
e = 0;
|
|
479
479
|
}
|
|
480
|
-
let t =
|
|
480
|
+
let t = z.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 } = U.value, { right: n } = U.value.paddingRatio, r =
|
|
485
|
-
if (
|
|
484
|
+
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && N.dataset && N.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
|
|
485
|
+
if (z.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;
|
|
488
488
|
}
|
|
489
|
-
let c =
|
|
489
|
+
let c = z.value.style.chart.padding.top + r, l = t - t * n - lr.value - a, u = e - z.value.style.chart.padding.bottom - mr.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - lr.value - a, p = e - c - z.value.style.chart.padding.bottom - mr.value - r;
|
|
490
490
|
return {
|
|
491
491
|
chartHeight: Math.max(0, e),
|
|
492
492
|
chartWidth: Math.max(0, t),
|
|
@@ -503,10 +503,10 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
503
503
|
};
|
|
504
504
|
}), hr = b(() => {
|
|
505
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
|
-
fill:
|
|
507
|
-
stroke:
|
|
508
|
-
"stroke-width":
|
|
509
|
-
"stroke-dasharray":
|
|
506
|
+
fill: z.value.style.chart.zoom.preview.fill,
|
|
507
|
+
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
508
|
+
"stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
|
|
509
|
+
"stroke-dasharray": z.value.style.chart.zoom.preview.strokeDasharray,
|
|
510
510
|
"stroke-linecap": "round",
|
|
511
511
|
"stroke-linejoin": "round",
|
|
512
512
|
style: {
|
|
@@ -522,13 +522,13 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
522
522
|
height: r,
|
|
523
523
|
...u
|
|
524
524
|
};
|
|
525
|
-
}), G = b(() =>
|
|
526
|
-
let n = `stackline_serie_${t}`, r =
|
|
525
|
+
}), G = b(() => zn.value.map((e, t) => {
|
|
526
|
+
let n = `stackline_serie_${t}`, r = _(e.color) || tr.value[t] || u[t] || u[t % u.length];
|
|
527
527
|
return {
|
|
528
528
|
...e,
|
|
529
529
|
shape: e.shape || "circle",
|
|
530
530
|
standalone: !!e.standalone,
|
|
531
|
-
series: JSON.parse(JSON.stringify(e.series)).map((e) =>
|
|
531
|
+
series: JSON.parse(JSON.stringify(e.series)).map((e) => z.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
534
|
absoluteIndex: t,
|
|
@@ -540,19 +540,19 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
540
540
|
return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
|
|
541
541
|
});
|
|
542
542
|
function vr(e) {
|
|
543
|
-
|
|
543
|
+
Fn.value = e;
|
|
544
544
|
}
|
|
545
545
|
let q = O({
|
|
546
546
|
start: 0,
|
|
547
|
-
end: Math.max(...
|
|
547
|
+
end: Math.max(...zn.value.map((e) => e.series.length))
|
|
548
548
|
}), J = O({
|
|
549
549
|
start: 0,
|
|
550
|
-
end: Math.max(...
|
|
550
|
+
end: Math.max(...zn.value.map((e) => e.series.length))
|
|
551
551
|
});
|
|
552
552
|
function yr(e) {
|
|
553
553
|
return (q.value.start ?? 0) + (e ?? 0);
|
|
554
554
|
}
|
|
555
|
-
let br = b(() =>
|
|
555
|
+
let br = b(() => z.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
|
}
|
|
@@ -568,7 +568,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
568
568
|
Cr.value && cancelAnimationFrame(Cr.value);
|
|
569
569
|
});
|
|
570
570
|
async function Tr({ force: e = !1 } = {}) {
|
|
571
|
-
if (
|
|
571
|
+
if (z.value.style.chart.zoom.keepState && !e && Qr.value && !(q.value.start === 0 && q.value.end === 0)) {
|
|
572
572
|
Sr();
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
@@ -576,13 +576,13 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
576
576
|
await wr(), ei();
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
let Er = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Dr = b(() =>
|
|
579
|
+
let Er = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Dr = b(() => a(gr.value.map((e) => ({
|
|
580
580
|
...e,
|
|
581
581
|
series: e.series.map((e) => e ?? 0)
|
|
582
582
|
}))).slice(q.value.start, q.value.end)), Or = b(() => L.value.length === G.value.length), kr = b(() => {
|
|
583
|
-
if (!
|
|
583
|
+
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
584
584
|
let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone);
|
|
585
|
-
if (e.length) return
|
|
585
|
+
if (e.length) return a(e.map((e) => ({
|
|
586
586
|
...e,
|
|
587
587
|
series: (e.series || []).map((e) => e ?? 0)
|
|
588
588
|
})));
|
|
@@ -591,7 +591,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
591
591
|
let n = Math.max(...t.map((e) => e.series.length || 0));
|
|
592
592
|
return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
|
|
593
593
|
}), Ar = b(() => {
|
|
594
|
-
if (!
|
|
594
|
+
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
595
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,
|
|
@@ -604,7 +604,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
604
604
|
isVisible: !0
|
|
605
605
|
}));
|
|
606
606
|
return n.concat(r);
|
|
607
|
-
}), jr = b(() =>
|
|
607
|
+
}), jr = b(() => a(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;
|
|
@@ -613,11 +613,11 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
613
613
|
}))).slice(q.value.start, q.value.end)), Mr = b(() => {
|
|
614
614
|
let e = gr.value.filter((e) => !L.value.includes(e.id));
|
|
615
615
|
return {
|
|
616
|
-
positive:
|
|
616
|
+
positive: a(e.map((e) => ({
|
|
617
617
|
...e,
|
|
618
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: a(e.map((e) => ({
|
|
621
621
|
...e,
|
|
622
622
|
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
623
623
|
})))
|
|
@@ -641,21 +641,21 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
641
641
|
return { y0: Lr.value?.[0]?.zero ?? W.value.bottom };
|
|
642
642
|
}
|
|
643
643
|
function Ir(e) {
|
|
644
|
-
let { y0: t } = Fr(), n =
|
|
645
|
-
if ((Pr.value?.[e]?.value ?? 0) >= 0 ||
|
|
644
|
+
let { y0: t } = Fr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
|
|
645
|
+
if ((Pr.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
|
|
646
646
|
let n = Infinity;
|
|
647
647
|
for (let t of Y.value || []) {
|
|
648
648
|
let r = t?.series?.[e], i = t?.topY?.[e];
|
|
649
649
|
(r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
|
|
650
650
|
}
|
|
651
|
-
return i((Number.isFinite(n) ? n : t) - r -
|
|
651
|
+
return i((Number.isFinite(n) ? n : t) - r - z.value.style.chart.lines.totalValues.offsetY);
|
|
652
652
|
} else {
|
|
653
653
|
let a = -Infinity;
|
|
654
654
|
for (let t of Y.value || []) {
|
|
655
655
|
let n = t?.series?.[e], r = t?.topY?.[e];
|
|
656
656
|
(n ?? 0) < 0 && Number.isFinite(r) && r > a && (a = r);
|
|
657
657
|
}
|
|
658
|
-
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 +
|
|
658
|
+
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + z.value.style.chart.lines.totalValues.offsetY);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
let Lr = b(() => {
|
|
@@ -665,24 +665,24 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
665
665
|
NaN,
|
|
666
666
|
void 0,
|
|
667
667
|
null
|
|
668
|
-
].includes(a) ? 0 : a, s =
|
|
668
|
+
].includes(a) ? 0 : a, s = z.value.style.chart.grid.scale.scaleMin, c = z.value.style.chart.grid.scale.scaleMax, l = !z.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !z.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !z.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? v(u, d, z.value.style.chart.grid.scale.ticks) : ne(u, d, z.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, h = m === 0 || !Number.isFinite(m) ? 1 : m, g = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], _ = 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:
|
|
672
|
+
zero: _,
|
|
673
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
678
|
}), Rr = O([]), zr = O([]), Br = 0;
|
|
679
|
-
|
|
679
|
+
tt(() => {
|
|
680
680
|
let e = ++Br;
|
|
681
681
|
(async () => {
|
|
682
682
|
let t = await he({
|
|
683
|
-
values:
|
|
683
|
+
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
684
684
|
maxDatapoints: K.value,
|
|
685
|
-
formatter:
|
|
685
|
+
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
686
686
|
start: q.value.start,
|
|
687
687
|
end: q.value.end
|
|
688
688
|
});
|
|
@@ -690,13 +690,13 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
690
690
|
})();
|
|
691
691
|
});
|
|
692
692
|
let Vr = 0;
|
|
693
|
-
|
|
693
|
+
tt(() => {
|
|
694
694
|
let e = ++Vr;
|
|
695
695
|
(async () => {
|
|
696
696
|
let t = await he({
|
|
697
|
-
values:
|
|
697
|
+
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
698
698
|
maxDatapoints: K.value,
|
|
699
|
-
formatter:
|
|
699
|
+
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
700
700
|
start: 0,
|
|
701
701
|
end: K.value
|
|
702
702
|
});
|
|
@@ -704,14 +704,14 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
704
704
|
})();
|
|
705
705
|
});
|
|
706
706
|
let Hr = b(() => {
|
|
707
|
-
let e =
|
|
707
|
+
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
708
708
|
return Rr.value.length ? Math.min(e, [...new Set(Rr.value.map((e) => e.text))].length) : e;
|
|
709
709
|
}), Ur = b(() => {
|
|
710
|
-
let e =
|
|
711
|
-
return
|
|
710
|
+
let e = z.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 ce(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), o, s, r, i, a);
|
|
712
712
|
});
|
|
713
|
-
|
|
714
|
-
|
|
713
|
+
tt(() => {
|
|
714
|
+
z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Ur.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Cn.value, bn.value, pr();
|
|
715
715
|
}, { flush: "post" });
|
|
716
716
|
let Wr = O({
|
|
717
717
|
months: [],
|
|
@@ -719,36 +719,36 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
719
719
|
days: [],
|
|
720
720
|
shortDays: []
|
|
721
721
|
}), Gr = 0;
|
|
722
|
-
|
|
723
|
-
let e = ++Gr, t =
|
|
722
|
+
tt(() => {
|
|
723
|
+
let e = ++Gr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
724
724
|
(async () => {
|
|
725
725
|
let n = await me(t.locale).catch(() => me("en"));
|
|
726
726
|
e === Gr && (Wr.value = n.data);
|
|
727
727
|
})();
|
|
728
728
|
});
|
|
729
729
|
let Kr = b(() => {
|
|
730
|
-
let e =
|
|
730
|
+
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
|
|
731
731
|
useUTC: e.useUTC,
|
|
732
732
|
locale: Wr.value,
|
|
733
733
|
januaryAsYear: e.januaryAsYear
|
|
734
734
|
});
|
|
735
735
|
return (e, n) => {
|
|
736
|
-
let r =
|
|
736
|
+
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
737
737
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
738
738
|
};
|
|
739
|
-
}), qr = b(() => (
|
|
740
|
-
text: Kr.value(t,
|
|
739
|
+
}), qr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
740
|
+
text: Kr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
741
741
|
absoluteIndex: t
|
|
742
|
-
}))), Jr = b(() => (
|
|
743
|
-
text: Kr.value(t,
|
|
742
|
+
}))), Jr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
743
|
+
text: Kr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
744
744
|
absoluteIndex: t
|
|
745
745
|
}))), Yr = b(() => {
|
|
746
|
-
if (
|
|
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 } = !
|
|
746
|
+
if (!en.value && !V.value) 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 } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? v(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : ne(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), g = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
|
|
748
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
|
-
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p :
|
|
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 : z.value.style.chart.lines.distributed ? g / (Dr.value[u] || 1) : g / p;
|
|
752
752
|
if (g >= 0) {
|
|
753
753
|
let n = e * Math.abs(_);
|
|
754
754
|
if (r.standalone) c[u] = t, l[u] = t - n;
|
|
@@ -770,7 +770,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
770
770
|
x: g(e),
|
|
771
771
|
y: l[e]
|
|
772
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
|
-
if (
|
|
773
|
+
if (z.value.style.chart.lines.distributed && !r.standalone) {
|
|
774
774
|
let n = a[t], r = Dr.value[n] || 1;
|
|
775
775
|
return (e || 0) / r;
|
|
776
776
|
}
|
|
@@ -790,8 +790,8 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
790
790
|
};
|
|
791
791
|
});
|
|
792
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),
|
|
794
|
-
if (
|
|
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), s = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? v(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : ne(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), c = Number(s.min) || 0, u = Number(s.max) || 0, d = Math.abs(c), f = u + d || 1, p = (e) => {
|
|
794
|
+
if (z.value.style.chart.lines.distributed) {
|
|
795
795
|
let t = Math.max(0, Math.min(1, e));
|
|
796
796
|
return minimapH - minimapH * t;
|
|
797
797
|
}
|
|
@@ -817,20 +817,20 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
817
817
|
yMinimap: a,
|
|
818
818
|
yMinimapBase: o
|
|
819
819
|
};
|
|
820
|
-
let
|
|
820
|
+
let s = t.x.map((e, n) => ({
|
|
821
821
|
x: e,
|
|
822
822
|
y: t.topY[n]
|
|
823
|
-
})),
|
|
823
|
+
})), c = t.x.map((e, n) => ({
|
|
824
824
|
x: e,
|
|
825
825
|
y: t.baseY[n]
|
|
826
|
-
})), u = n >= 2 ?
|
|
827
|
-
if (
|
|
828
|
-
let t =
|
|
829
|
-
h = `M${
|
|
826
|
+
})), u = n >= 2 ? l(s) : `M${s[0].x},${s[0].y}`, d = n >= 2 ? fe(s) : `M${s[0].x},${s[0].y}`, f = n >= 2 ? `M${e(u)}` : u, m = n >= 2 ? `M${e(d)}` : d, h = "", g = "";
|
|
827
|
+
if (z.value.style.chart.lines.useArea && n >= 2) {
|
|
828
|
+
let t = l([...c].reverse()), n = fe([...c].reverse()), r = c[c.length - 1];
|
|
829
|
+
h = `M${s[0].x},${s[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, g = `M${s[0].x},${s[0].y} ${e(d)} L${r.x},${r.y} ${e(n)} Z`;
|
|
830
830
|
}
|
|
831
831
|
return {
|
|
832
832
|
...t,
|
|
833
|
-
points:
|
|
833
|
+
points: s,
|
|
834
834
|
smoothPath: f,
|
|
835
835
|
straightPath: m,
|
|
836
836
|
smoothArea: h,
|
|
@@ -846,17 +846,17 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
846
846
|
seriesIndex: $.value,
|
|
847
847
|
datapoint: pi.value,
|
|
848
848
|
series: Y.value,
|
|
849
|
-
config:
|
|
849
|
+
config: z.value
|
|
850
850
|
}), Zr = O(!1), Qr = O(!1);
|
|
851
851
|
function $r(e) {
|
|
852
852
|
let t = K.value;
|
|
853
|
-
return e > t ? t : e < 0 || e < q.value.start ?
|
|
853
|
+
return e > t ? t : e < 0 || e < q.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
|
|
854
854
|
}
|
|
855
855
|
function ei() {
|
|
856
856
|
if (!Zr.value) {
|
|
857
857
|
Zr.value = !0;
|
|
858
858
|
try {
|
|
859
|
-
let { startIndex: e, endIndex: t, keepState: n } =
|
|
859
|
+
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
|
|
860
860
|
if (n && r <= 0) return;
|
|
861
861
|
let i = e ?? 0, a = t == null ? r : Math.min($r(t + 1), r);
|
|
862
862
|
ri.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Sr(), Qr.value = !0;
|
|
@@ -880,29 +880,29 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
880
880
|
right: W.value.right,
|
|
881
881
|
width: W.value.width
|
|
882
882
|
}));
|
|
883
|
-
|
|
883
|
+
et([
|
|
884
884
|
b(() => {
|
|
885
|
-
let e =
|
|
886
|
-
return Lr.value.map((r) => String(
|
|
885
|
+
let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.lines.dataLabels;
|
|
886
|
+
return Lr.value.map((r) => String(re(e.formatter, r.value, o({
|
|
887
887
|
p: t,
|
|
888
888
|
v: r.value,
|
|
889
889
|
s: n,
|
|
890
890
|
r: e.rounding
|
|
891
891
|
}), { datapoint: r }) ?? "")).join("|");
|
|
892
892
|
}),
|
|
893
|
-
() =>
|
|
894
|
-
() =>
|
|
895
|
-
() =>
|
|
896
|
-
() =>
|
|
893
|
+
() => z.value.style.chart.grid.y.axisLabels.show,
|
|
894
|
+
() => z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
895
|
+
() => z.value.style.chart.grid.y.axisLabels.bold,
|
|
896
|
+
() => z.value.style.chart.grid.y.position
|
|
897
897
|
], () => {
|
|
898
|
-
|
|
898
|
+
z.value.style.chart.grid.y.axisLabels.show && Pn();
|
|
899
899
|
}, { flush: "post" });
|
|
900
900
|
let ri = O(!1);
|
|
901
901
|
we({
|
|
902
902
|
timeLabelsEls: Cn,
|
|
903
903
|
timeLabels: Rr,
|
|
904
904
|
slicer: q,
|
|
905
|
-
configRef:
|
|
905
|
+
configRef: z,
|
|
906
906
|
rotationPath: [
|
|
907
907
|
"style",
|
|
908
908
|
"chart",
|
|
@@ -923,11 +923,11 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
923
923
|
isAutoSize: !1,
|
|
924
924
|
width: b(() => U.value.width),
|
|
925
925
|
height: b(() => U.value.height),
|
|
926
|
-
rotation:
|
|
926
|
+
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
927
927
|
});
|
|
928
928
|
let ii = O(null);
|
|
929
929
|
function ai(e) {
|
|
930
|
-
let t =
|
|
930
|
+
let t = Wn.value;
|
|
931
931
|
if (!t) return null;
|
|
932
932
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
933
933
|
let n = t.createSVGPoint();
|
|
@@ -970,10 +970,10 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
972
|
function li(e) {
|
|
973
|
-
|
|
973
|
+
In.value || (oi && cancelAnimationFrame(oi), oi = requestAnimationFrame(() => {
|
|
974
974
|
oi = 0;
|
|
975
975
|
let t = ai(e);
|
|
976
|
-
if (!t || !
|
|
976
|
+
if (!t || !Wn.value) {
|
|
977
977
|
fi();
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
@@ -992,7 +992,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
992
992
|
}
|
|
993
993
|
function ui(e) {
|
|
994
994
|
let t = ai(e);
|
|
995
|
-
if (!t || !
|
|
995
|
+
if (!t || !Wn.value) return;
|
|
996
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;
|
|
@@ -1013,15 +1013,15 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1013
1013
|
color: t.color,
|
|
1014
1014
|
id: t.id
|
|
1015
1015
|
}));
|
|
1016
|
-
|
|
1016
|
+
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
1017
1017
|
datapoint: t,
|
|
1018
1018
|
seriesIndex: e + q.value.start
|
|
1019
|
-
}),
|
|
1019
|
+
}), P("selectDatapoint", {
|
|
1020
1020
|
datapoint: t,
|
|
1021
1021
|
period: Rr.value[e]
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
|
|
1024
|
+
et(() => [
|
|
1025
1025
|
q.value.start,
|
|
1026
1026
|
q.value.end,
|
|
1027
1027
|
Y.value.length
|
|
@@ -1053,39 +1053,39 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1053
1053
|
}));
|
|
1054
1054
|
});
|
|
1055
1055
|
function mi(e) {
|
|
1056
|
-
if (e == null || !
|
|
1056
|
+
if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1057
1057
|
let t = Rr.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
|
|
1058
|
-
return
|
|
1058
|
+
return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1059
1059
|
}
|
|
1060
1060
|
let hi = b(() => {
|
|
1061
|
-
let e =
|
|
1062
|
-
if (
|
|
1061
|
+
let e = z.value.style.chart.tooltip.customFormat, t = [...pi.value].reverse(), r = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = r.map((e) => e.value).filter((e) => ee(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1062
|
+
if (de(e) && se(() => e({
|
|
1063
1063
|
absoluteIndex: $.value + q.value.start,
|
|
1064
1064
|
seriesIndex: $.value,
|
|
1065
1065
|
datapoint: pi.value,
|
|
1066
1066
|
series: G.value,
|
|
1067
|
-
config:
|
|
1067
|
+
config: z.value
|
|
1068
1068
|
}))) return e({
|
|
1069
1069
|
absoluteIndex: $.value + q.value.start,
|
|
1070
1070
|
seriesIndex: $.value,
|
|
1071
1071
|
datapoint: pi.value,
|
|
1072
1072
|
series: G.value,
|
|
1073
|
-
config:
|
|
1073
|
+
config: z.value
|
|
1074
1074
|
});
|
|
1075
|
-
let { showValue:
|
|
1075
|
+
let { showValue: s, showTotal: l, totalTranslation: u, showPercentage: d, borderColor: f, roundingValue: p, roundingPercentage: m } = z.value.style.chart.tooltip, h = (e) => !e.shape || ![
|
|
1076
1076
|
"star",
|
|
1077
1077
|
"triangle",
|
|
1078
1078
|
"square",
|
|
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="${
|
|
1082
|
+
].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${c({
|
|
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="${n({
|
|
1089
1089
|
plot: {
|
|
1090
1090
|
x: 6,
|
|
1091
1091
|
y: 6
|
|
@@ -1093,7 +1093,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1093
1093
|
radius: 6,
|
|
1094
1094
|
sides: 3,
|
|
1095
1095
|
rotation: .52
|
|
1096
|
-
}).path}" fill="${e.color}" stroke="${
|
|
1096
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${n({
|
|
1097
1097
|
plot: {
|
|
1098
1098
|
x: 6,
|
|
1099
1099
|
y: 6
|
|
@@ -1101,7 +1101,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1101
1101
|
radius: 6,
|
|
1102
1102
|
sides: 4,
|
|
1103
1103
|
rotation: .8
|
|
1104
|
-
}).path}" fill="${e.color}" stroke="${
|
|
1104
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${n({
|
|
1105
1105
|
plot: {
|
|
1106
1106
|
x: 6,
|
|
1107
1107
|
y: 6
|
|
@@ -1109,7 +1109,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1109
1109
|
radius: 5,
|
|
1110
1110
|
sides: 4,
|
|
1111
1111
|
rotation: 0
|
|
1112
|
-
}).path}" fill="${e.color}" stroke="${
|
|
1112
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${n({
|
|
1113
1113
|
plot: {
|
|
1114
1114
|
x: 6,
|
|
1115
1115
|
y: 6
|
|
@@ -1117,7 +1117,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1117
1117
|
radius: 5,
|
|
1118
1118
|
sides: 5,
|
|
1119
1119
|
rotation: .95
|
|
1120
|
-
}).path}" fill="${e.color}" stroke="${
|
|
1120
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${n({
|
|
1121
1121
|
plot: {
|
|
1122
1122
|
x: 6,
|
|
1123
1123
|
y: 6
|
|
@@ -1125,45 +1125,45 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1125
1125
|
radius: 5,
|
|
1126
1126
|
sides: 6,
|
|
1127
1127
|
rotation: 0
|
|
1128
|
-
}).path}" fill="${e.color}" stroke="${
|
|
1129
|
-
let n = t ?
|
|
1128
|
+
}).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, g = (e, t) => {
|
|
1129
|
+
let n = t ? o({
|
|
1130
1130
|
v: isNaN((e.value ?? 0) / (a || 1)) ? 0 : Math.abs(e.value ?? 0) / (a || 1) * 100,
|
|
1131
1131
|
s: "%",
|
|
1132
|
-
r:
|
|
1133
|
-
}) : "", r =
|
|
1132
|
+
r: m
|
|
1133
|
+
}) : "", r = s && t ? "(" : "", i = s && t ? ")" : "";
|
|
1134
1134
|
return `
|
|
1135
1135
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1136
|
-
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${
|
|
1137
|
-
${e.name}${
|
|
1138
|
-
${
|
|
1139
|
-
p:
|
|
1136
|
+
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${h(e)}</div>
|
|
1137
|
+
${e.name}${s || t ? ":" : ""}
|
|
1138
|
+
${s ? re(z.value.style.chart.lines.dataLabels.formatter, e.sourceValue, o({
|
|
1139
|
+
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
1140
1140
|
v: e.sourceValue,
|
|
1141
|
-
s:
|
|
1142
|
-
r:
|
|
1141
|
+
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
1142
|
+
r: p
|
|
1143
1143
|
}, { datapoint: e })) : ""} ${r}${n}${i}
|
|
1144
1144
|
</div>
|
|
1145
1145
|
`;
|
|
1146
|
-
},
|
|
1147
|
-
return
|
|
1148
|
-
<span>${
|
|
1149
|
-
<span>${
|
|
1150
|
-
p:
|
|
1151
|
-
v:
|
|
1152
|
-
s:
|
|
1153
|
-
r:
|
|
1146
|
+
}, _ = "", te = mi($.value);
|
|
1147
|
+
return te && (_ += `<div style="width:100%;text-align:center;border-bottom:1px solid ${f};padding-bottom:6px;margin-bottom:3px;">${te}</div>`), l && r.length > 1 && (_ += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1148
|
+
<span>${u}:</span>
|
|
1149
|
+
<span>${re(z.value.style.chart.lines.dataLabels.formatter, ie(a), o({
|
|
1150
|
+
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
1151
|
+
v: ie(a),
|
|
1152
|
+
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
1153
|
+
r: p
|
|
1154
1154
|
}), { datapoint: {
|
|
1155
|
-
name:
|
|
1156
|
-
value:
|
|
1155
|
+
name: u,
|
|
1156
|
+
value: ie(a)
|
|
1157
1157
|
} })}</span>
|
|
1158
|
-
</div>`),
|
|
1159
|
-
|
|
1160
|
-
}), i.length && (
|
|
1161
|
-
|
|
1162
|
-
})), `<div>${
|
|
1158
|
+
</div>`), r.forEach((e) => {
|
|
1159
|
+
_ += g(e, d);
|
|
1160
|
+
}), i.length && (_ += `<div style="border-top:1px solid ${gr.value.length ? f : "transparent"}; margin:${gr.value.length ? "6px 0" : "0"};"></div>`, i.forEach((e) => {
|
|
1161
|
+
_ += g(e, !1);
|
|
1162
|
+
})), `<div>${_}</div>`;
|
|
1163
1163
|
});
|
|
1164
1164
|
function gi(e, t = null, n = "pointer") {
|
|
1165
1165
|
if (Or.value) return;
|
|
1166
|
-
|
|
1166
|
+
An.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 tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1173
1173
|
].includes(e.series[t]) ? null : e.series[t],
|
|
1174
1174
|
color: e.color
|
|
1175
1175
|
}));
|
|
1176
|
-
e ? (
|
|
1176
|
+
e ? (R.value = t, $.value = t, Yi({
|
|
1177
1177
|
seriesIndex: t,
|
|
1178
1178
|
datapoint: r
|
|
1179
|
-
}),
|
|
1179
|
+
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1180
1180
|
datapoint: r,
|
|
1181
1181
|
seriesIndex: t + q.value.start
|
|
1182
|
-
})) : (
|
|
1182
|
+
})) : (R.value = null, $.value = null, P("selectX", {
|
|
1183
1183
|
index: null,
|
|
1184
1184
|
indexLabel: null,
|
|
1185
1185
|
dataset: null
|
|
1186
|
-
}),
|
|
1186
|
+
}), z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
1187
1187
|
datapoint: r,
|
|
1188
1188
|
seriesIndex: t + q.value.start
|
|
1189
1189
|
}));
|
|
1190
1190
|
}
|
|
1191
1191
|
function _i(e, t) {
|
|
1192
|
-
|
|
1192
|
+
P("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,
|
|
@@ -1204,7 +1204,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1204
1204
|
function vi() {
|
|
1205
1205
|
L.value.length ? L.value = [] : bi.value.forEach((e) => {
|
|
1206
1206
|
L.value.push(e.id);
|
|
1207
|
-
}),
|
|
1207
|
+
}), P("selectLegend", Y.value);
|
|
1208
1208
|
}
|
|
1209
1209
|
function yi(e) {
|
|
1210
1210
|
if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
|
|
@@ -1212,7 +1212,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1212
1212
|
if (L.value.length === G.value.length - 1) return;
|
|
1213
1213
|
L.value.push(e.id);
|
|
1214
1214
|
}
|
|
1215
|
-
|
|
1215
|
+
P("selectLegend", Y.value);
|
|
1216
1216
|
}
|
|
1217
1217
|
let bi = b(() => G.value.map((e) => ({
|
|
1218
1218
|
...e,
|
|
@@ -1221,14 +1221,14 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1221
1221
|
isSegregated: L.value.includes(e.id)
|
|
1222
1222
|
}))), xi = b(() => ({
|
|
1223
1223
|
cy: "stackline-legend",
|
|
1224
|
-
backgroundColor:
|
|
1225
|
-
color:
|
|
1226
|
-
fontSize:
|
|
1224
|
+
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1225
|
+
color: z.value.style.chart.legend.color,
|
|
1226
|
+
fontSize: z.value.style.chart.legend.fontSize,
|
|
1227
1227
|
paddingBottom: 12,
|
|
1228
|
-
fontWeight:
|
|
1228
|
+
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1229
1229
|
}));
|
|
1230
1230
|
function Si(e) {
|
|
1231
|
-
return G.value.length ? G.value.find((t) => t.name === e) || (
|
|
1231
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1232
1232
|
}
|
|
1233
1233
|
function Ci(e) {
|
|
1234
1234
|
let t = Si(e);
|
|
@@ -1250,9 +1250,9 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1250
1250
|
color: t
|
|
1251
1251
|
})), t = [];
|
|
1252
1252
|
return Ur.value.forEach((e) => {
|
|
1253
|
-
let n = e.absoluteIndex, r = [
|
|
1253
|
+
let n = e.absoluteIndex, r = [z.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
|
|
1254
1254
|
G.value.forEach((e) => {
|
|
1255
|
-
let t = e.series?.[n], i = Number((t ?? 0).toFixed(
|
|
1255
|
+
let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
|
|
1256
1256
|
r.push(i);
|
|
1257
1257
|
}), t.push(r);
|
|
1258
1258
|
}), {
|
|
@@ -1262,45 +1262,45 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1262
1262
|
});
|
|
1263
1263
|
function Ei(e = null) {
|
|
1264
1264
|
let t = [
|
|
1265
|
-
[
|
|
1266
|
-
[
|
|
1265
|
+
[z.value.style.chart.title.text],
|
|
1266
|
+
[z.value.style.chart.title.subtitle.text],
|
|
1267
1267
|
[""]
|
|
1268
|
-
], n = ["", ...Ti.value.head.map((e) => e.label)], r = Ti.value.body, i =
|
|
1269
|
-
e ? e(i) :
|
|
1268
|
+
], n = ["", ...Ti.value.head.map((e) => e.label)], r = Ti.value.body, i = p(t.concat([n]).concat(r));
|
|
1269
|
+
e ? e(i) : g({
|
|
1270
1270
|
csvContent: i,
|
|
1271
|
-
title:
|
|
1271
|
+
title: z.value.style.chart.title.text || "vue-ui-stackline"
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
1274
|
let Di = b(() => {
|
|
1275
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 =
|
|
1277
|
+
let n = yr(e), r = z.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
|
-
return Number(n.toFixed(
|
|
1279
|
+
return Number(n.toFixed(z.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);
|
|
1281
|
-
t.push([r].concat(i, Number(a.toFixed(
|
|
1281
|
+
t.push([r].concat(i, Number(a.toFixed(z.value.table.td.roundingValue))));
|
|
1282
1282
|
}
|
|
1283
1283
|
return {
|
|
1284
1284
|
head: e,
|
|
1285
1285
|
body: t,
|
|
1286
1286
|
config: {
|
|
1287
1287
|
th: {
|
|
1288
|
-
backgroundColor:
|
|
1289
|
-
color:
|
|
1290
|
-
outline:
|
|
1288
|
+
backgroundColor: z.value.table.th.backgroundColor,
|
|
1289
|
+
color: z.value.table.th.color,
|
|
1290
|
+
outline: z.value.table.th.outline
|
|
1291
1291
|
},
|
|
1292
1292
|
td: {
|
|
1293
|
-
backgroundColor:
|
|
1294
|
-
color:
|
|
1295
|
-
outline:
|
|
1293
|
+
backgroundColor: z.value.table.td.backgroundColor,
|
|
1294
|
+
color: z.value.table.td.color,
|
|
1295
|
+
outline: z.value.table.td.outline
|
|
1296
1296
|
},
|
|
1297
|
-
breakpoint:
|
|
1297
|
+
breakpoint: z.value.table.responsiveBreakpoint
|
|
1298
1298
|
},
|
|
1299
|
-
colNames: [
|
|
1299
|
+
colNames: [z.value.table.columnNames.period].concat(Y.value.map((e) => e.name), z.value.table.columnNames.total)
|
|
1300
1300
|
};
|
|
1301
|
-
}), Oi = b(() =>
|
|
1302
|
-
svg:
|
|
1303
|
-
title: b(() =>
|
|
1301
|
+
}), Oi = b(() => z.value.style.chart.backgroundColor), ki = b(() => z.value.style.chart.legend), { exportSvg: Ai, getSvg: ji } = be({
|
|
1302
|
+
svg: Wn,
|
|
1303
|
+
title: b(() => z.value.style.chart.title),
|
|
1304
1304
|
legend: ki,
|
|
1305
1305
|
legendItems: bi,
|
|
1306
1306
|
backgroundColor: Oi
|
|
@@ -1310,7 +1310,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1310
1310
|
try {
|
|
1311
1311
|
if (e) {
|
|
1312
1312
|
let { blob: e, url: t, text: n, dataUrl: r } = await ji();
|
|
1313
|
-
await Promise.resolve(
|
|
1313
|
+
await Promise.resolve(z.value.userOptions.callbacks.svg({
|
|
1314
1314
|
blob: e,
|
|
1315
1315
|
url: t,
|
|
1316
1316
|
text: n,
|
|
@@ -1322,57 +1322,57 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
1324
|
async function Ni({ scale: e = 2 } = {}) {
|
|
1325
|
-
if (!
|
|
1325
|
+
if (!F.value) return;
|
|
1326
1326
|
let { imageUri: t, base64: n } = await Te({
|
|
1327
|
-
domElement:
|
|
1327
|
+
domElement: F.value,
|
|
1328
1328
|
base64: !0,
|
|
1329
1329
|
img: !0,
|
|
1330
1330
|
scale: e
|
|
1331
|
-
}), r =
|
|
1331
|
+
}), r = F.value.getBoundingClientRect(), i = {
|
|
1332
1332
|
width: r.width,
|
|
1333
1333
|
height: r.height,
|
|
1334
1334
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1335
|
-
}, a = await
|
|
1335
|
+
}, a = await oe(t, e) ?? i;
|
|
1336
1336
|
return {
|
|
1337
1337
|
imageUri: t,
|
|
1338
1338
|
base64: n,
|
|
1339
|
-
title:
|
|
1339
|
+
title: z.value.style.chart.title.text,
|
|
1340
1340
|
...a
|
|
1341
1341
|
};
|
|
1342
1342
|
}
|
|
1343
1343
|
let Pi = b(() => {
|
|
1344
|
-
let e =
|
|
1344
|
+
let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
|
|
1345
1345
|
return {
|
|
1346
|
-
component: e ?
|
|
1347
|
-
title: `${
|
|
1346
|
+
component: e ? Yt : Wt,
|
|
1347
|
+
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1348
1348
|
props: e ? {
|
|
1349
|
-
backgroundColor:
|
|
1350
|
-
color:
|
|
1351
|
-
headerColor:
|
|
1352
|
-
headerBg:
|
|
1349
|
+
backgroundColor: z.value.table.th.backgroundColor,
|
|
1350
|
+
color: z.value.table.th.color,
|
|
1351
|
+
headerColor: z.value.table.th.color,
|
|
1352
|
+
headerBg: z.value.table.th.backgroundColor,
|
|
1353
1353
|
isFullscreen: ln.value,
|
|
1354
|
-
fullscreenParent:
|
|
1354
|
+
fullscreenParent: F.value,
|
|
1355
1355
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1356
|
-
isCursorPointer:
|
|
1356
|
+
isCursorPointer: B.value
|
|
1357
1357
|
} : {
|
|
1358
1358
|
hideDetails: !0,
|
|
1359
1359
|
config: {
|
|
1360
1360
|
open: t,
|
|
1361
1361
|
maxHeight: 1e4,
|
|
1362
1362
|
body: {
|
|
1363
|
-
backgroundColor:
|
|
1364
|
-
color:
|
|
1363
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1364
|
+
color: z.value.style.chart.color
|
|
1365
1365
|
},
|
|
1366
1366
|
head: {
|
|
1367
|
-
backgroundColor:
|
|
1368
|
-
color:
|
|
1367
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1368
|
+
color: z.value.style.chart.color
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
};
|
|
1373
1373
|
});
|
|
1374
|
-
|
|
1375
|
-
|
|
1374
|
+
et(() => H.value.showTable, (e) => {
|
|
1375
|
+
z.value.table.show || (e && z.value.table.useDialog && hn.value ? hn.value.open() : "close" in hn.value && hn.value.close());
|
|
1376
1376
|
});
|
|
1377
1377
|
function Fi() {
|
|
1378
1378
|
H.value.showTable = !1, gn.value && gn.value.setTableIconState(!1);
|
|
@@ -1408,8 +1408,8 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
let Hi = b(() => Array(K.value).fill(0).map((e, t) => Vi(t)));
|
|
1411
|
-
|
|
1412
|
-
if ([null, void 0].includes(
|
|
1411
|
+
et(() => N.selectedXIndex, (e) => {
|
|
1412
|
+
if ([null, void 0].includes(N.selectedXIndex)) {
|
|
1413
1413
|
$.value = null;
|
|
1414
1414
|
return;
|
|
1415
1415
|
}
|
|
@@ -1417,7 +1417,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1417
1417
|
t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
|
|
1418
1418
|
}, { immediate: !0 });
|
|
1419
1419
|
let Ui = b(() => {
|
|
1420
|
-
if (
|
|
1420
|
+
if (z.value.style.chart.lines.distributed) return {
|
|
1421
1421
|
min: -1,
|
|
1422
1422
|
max: 1
|
|
1423
1423
|
};
|
|
@@ -1435,7 +1435,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1435
1435
|
n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
|
|
1436
1436
|
}
|
|
1437
1437
|
});
|
|
1438
|
-
let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l =
|
|
1438
|
+
let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.style.chart.grid.scale.scaleMin, u = z.value.style.chart.grid.scale.scaleMax, d = z.value.style.chart.grid.scale.ticks, f = !z.value.style.chart.lines.distributed && (l !== null || u !== null) ? v(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : ne(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
|
|
1439
1439
|
return {
|
|
1440
1440
|
min: Number(f.min) || 0,
|
|
1441
1441
|
max: Number(f.max) || 0
|
|
@@ -1447,80 +1447,80 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1447
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));
|
|
1448
1448
|
if (a <= 0) return "";
|
|
1449
1449
|
let o = a === 1 ? [t * .5] : Array.from({ length: a }, (e, n) => n * t);
|
|
1450
|
-
if (
|
|
1450
|
+
if (z.value.style.chart.lines.distributed) {
|
|
1451
1451
|
let t = Array.from({ length: a }, (e, t) => {
|
|
1452
1452
|
let n = 0;
|
|
1453
1453
|
return r.forEach((e) => {
|
|
1454
1454
|
let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
|
|
1455
1455
|
r != null && !Number.isNaN(r) && (n += Math.abs(r));
|
|
1456
1456
|
}), n || 1;
|
|
1457
|
-
}),
|
|
1457
|
+
}), s = (t) => e - e * Math.max(0, Math.min(1, t || 0)), c = [], u = Array(a).fill(0);
|
|
1458
1458
|
return r.forEach((e) => {
|
|
1459
1459
|
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), d = Array(a);
|
|
1460
1460
|
for (let e = 0; e < a; e += 1) {
|
|
1461
1461
|
let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
|
|
1462
1462
|
d[e] = u[e], u[e] += a, i[e] = u[e];
|
|
1463
1463
|
}
|
|
1464
|
-
let f = i.map(
|
|
1464
|
+
let f = i.map(s), p = d.map(s), m = o.map((e, t) => ({
|
|
1465
1465
|
x: e,
|
|
1466
1466
|
y: f[t]
|
|
1467
1467
|
})), h = o.map((e, t) => ({
|
|
1468
1468
|
x: e,
|
|
1469
1469
|
y: p[t]
|
|
1470
|
-
})), g =
|
|
1471
|
-
if (
|
|
1472
|
-
let t =
|
|
1473
|
-
|
|
1474
|
-
fill="${
|
|
1475
|
-
opacity="${
|
|
1470
|
+
})), g = l(m), _ = l([...h].reverse()), ee = fe(m), te = fe([...h].reverse()), v = h[h.length - 1];
|
|
1471
|
+
if (z.value.style.chart.lines.useArea) {
|
|
1472
|
+
let t = z.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`;
|
|
1473
|
+
c.push(`<path d="${t}"
|
|
1474
|
+
fill="${$t.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
|
|
1475
|
+
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1476
1476
|
stroke="none" />`);
|
|
1477
1477
|
}
|
|
1478
|
-
let
|
|
1479
|
-
|
|
1478
|
+
let ne = z.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)}` : `M${m[0].x},${m[0].y} ${n(ee)}`;
|
|
1479
|
+
c.push(`<path d="${ne}"
|
|
1480
1480
|
fill="none"
|
|
1481
1481
|
stroke="${e.color}"
|
|
1482
|
-
stroke-width="${
|
|
1482
|
+
stroke-width="${z.value.style.chart.lines.strokeWidth}"
|
|
1483
1483
|
stroke-linecap="round" />`);
|
|
1484
1484
|
}), i.length && i.forEach((e) => {
|
|
1485
|
-
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) => s(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
|
|
1486
1486
|
x: e,
|
|
1487
1487
|
y: i[t]
|
|
1488
|
-
})), d =
|
|
1489
|
-
|
|
1488
|
+
})), d = l(u), f = fe(u), p = z.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(d)}` : `M${u[0].x},${u[0].y} ${n(f)}`;
|
|
1489
|
+
c.push(`<path d="${p}"
|
|
1490
1490
|
fill="none"
|
|
1491
1491
|
stroke="${e.color}"
|
|
1492
|
-
stroke-width="${
|
|
1492
|
+
stroke-width="${z.value.style.chart.lines.strokeWidth}"
|
|
1493
1493
|
stroke-linecap="round" />`);
|
|
1494
|
-
}),
|
|
1494
|
+
}), c.join("");
|
|
1495
1495
|
}
|
|
1496
|
-
let
|
|
1496
|
+
let s = Ui.value.min, c = Ui.value.max, u = Math.abs(s), d = c + u || 1, f = (t) => Math.max(0, Math.min(e, t)), p = (t) => f(e - e * (((t ?? 0) + u) / d)), m = [];
|
|
1497
1497
|
if (r.length) {
|
|
1498
1498
|
let e = Array(a).fill(0), t = Array(a).fill(0);
|
|
1499
1499
|
r.forEach((r) => {
|
|
1500
|
-
let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series,
|
|
1500
|
+
let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series, s = Array(a), c = Array(a);
|
|
1501
1501
|
for (let n = 0; n < a; n += 1) {
|
|
1502
1502
|
let r = i?.[n] ?? 0;
|
|
1503
|
-
r >= 0 ? (
|
|
1503
|
+
r >= 0 ? (c[n] = e[n], e[n] += r, s[n] = e[n]) : (c[n] = t[n], t[n] += r, s[n] = t[n]);
|
|
1504
1504
|
}
|
|
1505
|
-
let u =
|
|
1505
|
+
let u = s.map(p), d = c.map(p), f = o.map((e, t) => ({
|
|
1506
1506
|
x: e,
|
|
1507
1507
|
y: u[t]
|
|
1508
1508
|
})), h = o.map((e, t) => ({
|
|
1509
1509
|
x: e,
|
|
1510
1510
|
y: d[t]
|
|
1511
|
-
})), g =
|
|
1512
|
-
if (
|
|
1513
|
-
let e =
|
|
1511
|
+
})), g = l(f), _ = l([...h].reverse()), ee = fe(f), te = fe([...h].reverse()), v = h[h.length - 1];
|
|
1512
|
+
if (z.value.style.chart.lines.useArea) {
|
|
1513
|
+
let e = z.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`;
|
|
1514
1514
|
m.push(`<path d="${e}"
|
|
1515
|
-
fill="${
|
|
1516
|
-
opacity="${
|
|
1515
|
+
fill="${$t.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
|
|
1516
|
+
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1517
1517
|
stroke="none" />`);
|
|
1518
1518
|
}
|
|
1519
|
-
let
|
|
1520
|
-
m.push(`<path d="${
|
|
1519
|
+
let ne = z.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="${ne}"
|
|
1521
1521
|
fill="none"
|
|
1522
1522
|
stroke="${r.color}"
|
|
1523
|
-
stroke-width="${
|
|
1523
|
+
stroke-width="${z.value.style.chart.lines.strokeWidth}"
|
|
1524
1524
|
stroke-linecap="round" />`);
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
@@ -1528,26 +1528,26 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1528
1528
|
let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = o.map((e, n) => ({
|
|
1529
1529
|
x: e,
|
|
1530
1530
|
y: t[n]
|
|
1531
|
-
})), i =
|
|
1532
|
-
m.push(`<path d="${
|
|
1531
|
+
})), i = l(r), a = fe(r), s = z.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
|
|
1532
|
+
m.push(`<path d="${s}"
|
|
1533
1533
|
fill="none"
|
|
1534
1534
|
stroke="${e.color}"
|
|
1535
|
-
stroke-width="${
|
|
1535
|
+
stroke-width="${z.value.style.chart.lines.strokeWidth}"
|
|
1536
1536
|
stroke-linecap="round" />`);
|
|
1537
1537
|
}), m.join("");
|
|
1538
1538
|
}
|
|
1539
1539
|
function Gi(e, t) {
|
|
1540
|
-
let n =
|
|
1540
|
+
let n = z.value.style.chart.lines, r = n.dataLabels;
|
|
1541
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;
|
|
1542
1542
|
}
|
|
1543
1543
|
let Ki = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
|
|
1544
1544
|
function qi(e, t, n, r, i) {
|
|
1545
1545
|
let a = i === -1 && e >= 0 ? -e : e;
|
|
1546
|
-
return
|
|
1547
|
-
p:
|
|
1546
|
+
return re(z.value.style.chart.lines.dataLabels.formatter, a, o({
|
|
1547
|
+
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
1548
1548
|
v: a,
|
|
1549
|
-
s:
|
|
1550
|
-
r:
|
|
1549
|
+
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
1550
|
+
r: z.value.style.chart.lines.dataLabels.rounding
|
|
1551
1551
|
}), {
|
|
1552
1552
|
datapoint: t,
|
|
1553
1553
|
seriesIndex: n,
|
|
@@ -1555,10 +1555,10 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1555
1555
|
});
|
|
1556
1556
|
}
|
|
1557
1557
|
function Ji(e, t, n, r) {
|
|
1558
|
-
return
|
|
1558
|
+
return re(z.value.style.chart.lines.dataLabels.formatter, e, o({
|
|
1559
1559
|
v: isNaN(e) ? 0 : e,
|
|
1560
1560
|
s: "%",
|
|
1561
|
-
r:
|
|
1561
|
+
r: z.value.style.chart.lines.dataLabels.rounding
|
|
1562
1562
|
}), {
|
|
1563
1563
|
datapoint: t,
|
|
1564
1564
|
seriesIndex: n,
|
|
@@ -1567,10 +1567,10 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1567
1567
|
}
|
|
1568
1568
|
function Yi({ seriesIndex: e, datapoint: t }) {
|
|
1569
1569
|
let n = q.value.start + e;
|
|
1570
|
-
|
|
1570
|
+
P("selectX", {
|
|
1571
1571
|
dataset: t,
|
|
1572
1572
|
index: n,
|
|
1573
|
-
indexLabel:
|
|
1573
|
+
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
1576
|
function Xi(e) {
|
|
@@ -1585,35 +1585,35 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1585
1585
|
$n();
|
|
1586
1586
|
}
|
|
1587
1587
|
async function Zi() {
|
|
1588
|
-
if (
|
|
1589
|
-
config:
|
|
1588
|
+
if (P("copyAlt", {
|
|
1589
|
+
config: z.value,
|
|
1590
1590
|
dataset: Y.value
|
|
1591
|
-
}), !
|
|
1591
|
+
}), !z.value.userOptions.callbacks.altCopy) {
|
|
1592
1592
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1593
1593
|
return;
|
|
1594
1594
|
}
|
|
1595
|
-
await Promise.resolve(
|
|
1596
|
-
config:
|
|
1595
|
+
await Promise.resolve(z.value.userOptions.callbacks.altCopy({
|
|
1596
|
+
config: z.value,
|
|
1597
1597
|
dataset: Y.value
|
|
1598
1598
|
}));
|
|
1599
1599
|
}
|
|
1600
1600
|
let Qi = O(!1);
|
|
1601
1601
|
function $i() {
|
|
1602
|
-
|
|
1602
|
+
R.value = null, Qi.value = !0;
|
|
1603
1603
|
}
|
|
1604
1604
|
function ea() {
|
|
1605
|
-
|
|
1605
|
+
R.value = null, An.value = "pointer", tn.value = !1, $.value = null, P("selectX", {
|
|
1606
1606
|
index: null,
|
|
1607
1607
|
indexLabel: null,
|
|
1608
1608
|
dataset: null
|
|
1609
1609
|
}), Qi.value = !1;
|
|
1610
1610
|
}
|
|
1611
1611
|
function ta(e) {
|
|
1612
|
-
if (!
|
|
1612
|
+
if (!Wn.value || In.value || document.activeElement !== Wn.value || Or.value || !Z.value) return;
|
|
1613
1613
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1614
1614
|
if (!t && !n && !r && !i) return;
|
|
1615
1615
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1616
|
-
|
|
1616
|
+
R.value = null, An.value = "pointer", tn.value = !1, $.value = null, P("selectX", {
|
|
1617
1617
|
index: null,
|
|
1618
1618
|
indexLabel: null,
|
|
1619
1619
|
dataset: null
|
|
@@ -1621,17 +1621,17 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1621
1621
|
return;
|
|
1622
1622
|
}
|
|
1623
1623
|
if (r) {
|
|
1624
|
-
if (
|
|
1625
|
-
di(
|
|
1624
|
+
if (R.value === null) return;
|
|
1625
|
+
di(R.value);
|
|
1626
1626
|
return;
|
|
1627
1627
|
}
|
|
1628
|
-
let a =
|
|
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,
|
|
1628
|
+
let a = R.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, R.value = a, na(a), gi(!0, a, "keyboard");
|
|
1630
1630
|
}
|
|
1631
1631
|
function na(e) {
|
|
1632
|
-
if (!Number.isFinite(e) || !
|
|
1633
|
-
let t =
|
|
1634
|
-
t && (
|
|
1632
|
+
if (!Number.isFinite(e) || !Wn.value) return;
|
|
1633
|
+
let t = m(W.value.left + e * si.value, W.value.top + W.value.height / 2, Wn.value);
|
|
1634
|
+
t && (kn.value = t);
|
|
1635
1635
|
}
|
|
1636
1636
|
let ra = b(() => ({
|
|
1637
1637
|
headers: Di.value?.colNames ?? [],
|
|
@@ -1649,33 +1649,33 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1649
1649
|
toggleTable: Li,
|
|
1650
1650
|
toggleLabels: Ri,
|
|
1651
1651
|
toggleTooltip: zi,
|
|
1652
|
-
toggleAnnotator:
|
|
1652
|
+
toggleAnnotator: Ln,
|
|
1653
1653
|
toggleFullscreen: Ii,
|
|
1654
1654
|
copyAlt: Zi
|
|
1655
1655
|
}), (t, n) => (D(), C("div", {
|
|
1656
1656
|
id: `stackline_${I.value}`,
|
|
1657
1657
|
ref_key: "stacklineChart",
|
|
1658
|
-
ref:
|
|
1658
|
+
ref: F,
|
|
1659
1659
|
class: Ge({
|
|
1660
1660
|
"vue-data-ui-component": !0,
|
|
1661
1661
|
"vue-ui-stackline": !0,
|
|
1662
1662
|
"vue-data-ui-wrapper-fullscreen": ln.value
|
|
1663
1663
|
}),
|
|
1664
|
-
style: Ke(`background:${
|
|
1664
|
+
style: Ke(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1665
1665
|
onMouseenter: Gn,
|
|
1666
1666
|
onMouseleave: Kn
|
|
1667
1667
|
}, [
|
|
1668
1668
|
w("div", {
|
|
1669
1669
|
id: `chart-instructions-${I.value}`,
|
|
1670
1670
|
class: "sr-only"
|
|
1671
|
-
}, [w("p", null,
|
|
1671
|
+
}, [w("p", null, Ze(z.value.a11y.translations.keyboardNavigation), 1)], 8, it),
|
|
1672
1672
|
ra.value?.rows?.length ? (D(), x(Ne, {
|
|
1673
1673
|
key: 0,
|
|
1674
1674
|
uid: I.value,
|
|
1675
1675
|
head: ra.value.headers,
|
|
1676
1676
|
body: ra.value.rows,
|
|
1677
|
-
notice:
|
|
1678
|
-
caption:
|
|
1677
|
+
notice: z.value.a11y.translations.tableAvailable,
|
|
1678
|
+
caption: z.value.a11y.translations.tableCaption
|
|
1679
1679
|
}, null, 8, [
|
|
1680
1680
|
"uid",
|
|
1681
1681
|
"head",
|
|
@@ -1683,21 +1683,21 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1683
1683
|
"notice",
|
|
1684
1684
|
"caption"
|
|
1685
1685
|
])) : S("", !0),
|
|
1686
|
-
|
|
1686
|
+
z.value.userOptions.buttons.annotator ? (D(), x(j(Kt), {
|
|
1687
1687
|
key: 1,
|
|
1688
|
-
svgRef:
|
|
1689
|
-
backgroundColor:
|
|
1690
|
-
color:
|
|
1691
|
-
active:
|
|
1692
|
-
isCursorPointer:
|
|
1693
|
-
onClose:
|
|
1688
|
+
svgRef: j(Wn),
|
|
1689
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1690
|
+
color: z.value.style.chart.color,
|
|
1691
|
+
active: In.value,
|
|
1692
|
+
isCursorPointer: B.value,
|
|
1693
|
+
onClose: Ln
|
|
1694
1694
|
}, {
|
|
1695
|
-
"annotator-action-close":
|
|
1696
|
-
"annotator-action-color":
|
|
1697
|
-
"annotator-action-draw":
|
|
1698
|
-
"annotator-action-undo":
|
|
1699
|
-
"annotator-action-redo":
|
|
1700
|
-
"annotator-action-delete":
|
|
1695
|
+
"annotator-action-close": M(() => [A(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1696
|
+
"annotator-action-color": M(({ color: e }) => [A(t.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
|
|
1697
|
+
"annotator-action-draw": M(({ mode: e }) => [A(t.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
|
|
1698
|
+
"annotator-action-undo": M(({ disabled: e }) => [A(t.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
|
|
1699
|
+
"annotator-action-redo": M(({ disabled: e }) => [A(t.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
|
|
1700
|
+
"annotator-action-delete": M(({ disabled: e }) => [A(t.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
|
|
1701
1701
|
_: 3
|
|
1702
1702
|
}, 8, [
|
|
1703
1703
|
"svgRef",
|
|
@@ -1714,7 +1714,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1714
1714
|
class: "vue-data-ui-no-title-space",
|
|
1715
1715
|
style: "height:36px; width: 100%;background:transparent"
|
|
1716
1716
|
}, null, 512)) : S("", !0),
|
|
1717
|
-
|
|
1717
|
+
z.value.style.chart.title.text ? (D(), C("div", {
|
|
1718
1718
|
key: 3,
|
|
1719
1719
|
ref_key: "chartTitle",
|
|
1720
1720
|
ref: rn,
|
|
@@ -1724,59 +1724,59 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1724
1724
|
config: {
|
|
1725
1725
|
title: {
|
|
1726
1726
|
cy: "stackline-title",
|
|
1727
|
-
...
|
|
1727
|
+
...z.value.style.chart.title
|
|
1728
1728
|
},
|
|
1729
1729
|
subtitle: {
|
|
1730
1730
|
cy: "stackline-subtitle",
|
|
1731
|
-
...
|
|
1731
|
+
...z.value.style.chart.title.subtitle
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
1734
|
}, null, 8, ["config"]))], 512)) : S("", !0),
|
|
1735
|
-
w("div", { id: `legend-top-${I.value}` }, null, 8,
|
|
1736
|
-
|
|
1735
|
+
w("div", { id: `legend-top-${I.value}` }, null, 8, at),
|
|
1736
|
+
z.value.userOptions.show && en.value && (j(Un) || j(Vn)) ? (D(), x(j(qt), {
|
|
1737
1737
|
ref_key: "userOptionsRef",
|
|
1738
1738
|
ref: gn,
|
|
1739
1739
|
key: `user_option_${nn.value}`,
|
|
1740
|
-
backgroundColor:
|
|
1741
|
-
color:
|
|
1742
|
-
isPrinting:
|
|
1743
|
-
isImaging:
|
|
1740
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1741
|
+
color: z.value.style.chart.color,
|
|
1742
|
+
isPrinting: j(Xn),
|
|
1743
|
+
isImaging: j(Zn),
|
|
1744
1744
|
uid: I.value,
|
|
1745
|
-
hasTooltip:
|
|
1746
|
-
hasPdf:
|
|
1747
|
-
hasImg:
|
|
1748
|
-
hasSvg:
|
|
1749
|
-
hasXls:
|
|
1750
|
-
hasTable:
|
|
1751
|
-
hasLabel:
|
|
1752
|
-
hasFullscreen:
|
|
1753
|
-
hasAltCopy:
|
|
1745
|
+
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1746
|
+
hasPdf: z.value.userOptions.buttons.pdf,
|
|
1747
|
+
hasImg: z.value.userOptions.buttons.img,
|
|
1748
|
+
hasSvg: z.value.userOptions.buttons.svg,
|
|
1749
|
+
hasXls: z.value.userOptions.buttons.csv,
|
|
1750
|
+
hasTable: z.value.userOptions.buttons.table,
|
|
1751
|
+
hasLabel: z.value.userOptions.buttons.labels,
|
|
1752
|
+
hasFullscreen: z.value.userOptions.buttons.fullscreen,
|
|
1753
|
+
hasAltCopy: z.value.userOptions.buttons.altCopy,
|
|
1754
1754
|
isFullscreen: ln.value,
|
|
1755
|
-
chartElement:
|
|
1756
|
-
position:
|
|
1755
|
+
chartElement: F.value,
|
|
1756
|
+
position: z.value.userOptions.position,
|
|
1757
1757
|
isTooltip: H.value.showTooltip,
|
|
1758
|
-
titles: { ...
|
|
1759
|
-
hasAnnotator:
|
|
1760
|
-
isAnnotation:
|
|
1761
|
-
callbacks:
|
|
1762
|
-
printScale:
|
|
1763
|
-
tableDialog:
|
|
1764
|
-
isCursorPointer:
|
|
1758
|
+
titles: { ...z.value.userOptions.buttonTitles },
|
|
1759
|
+
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1760
|
+
isAnnotation: In.value,
|
|
1761
|
+
callbacks: z.value.userOptions.callbacks,
|
|
1762
|
+
printScale: z.value.userOptions.print.scale,
|
|
1763
|
+
tableDialog: z.value.table.useDialog,
|
|
1764
|
+
isCursorPointer: B.value,
|
|
1765
1765
|
onToggleFullscreen: Ii,
|
|
1766
|
-
onGeneratePdf:
|
|
1766
|
+
onGeneratePdf: j(Qn),
|
|
1767
1767
|
onGenerateCsv: Ei,
|
|
1768
1768
|
onGenerateImage: Xi,
|
|
1769
1769
|
onGenerateSvg: Mi,
|
|
1770
1770
|
onToggleTable: Li,
|
|
1771
1771
|
onToggleLabels: Ri,
|
|
1772
1772
|
onToggleTooltip: zi,
|
|
1773
|
-
onToggleAnnotator:
|
|
1773
|
+
onToggleAnnotator: Ln,
|
|
1774
1774
|
onCopyAlt: Zi,
|
|
1775
|
-
style: Ke({ visibility:
|
|
1775
|
+
style: Ke({ visibility: j(Un) ? j(Vn) ? "visible" : "hidden" : "visible" })
|
|
1776
1776
|
}, ze({ _: 2 }, [
|
|
1777
1777
|
t.$slots.menuIcon ? {
|
|
1778
1778
|
name: "menuIcon",
|
|
1779
|
-
fn:
|
|
1779
|
+
fn: M(({ isOpen: e, color: n }) => [A(t.$slots, "menuIcon", E(T({
|
|
1780
1780
|
isOpen: e,
|
|
1781
1781
|
color: n
|
|
1782
1782
|
})), void 0, !0)]),
|
|
@@ -1784,42 +1784,42 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1784
1784
|
} : void 0,
|
|
1785
1785
|
t.$slots.optionTooltip ? {
|
|
1786
1786
|
name: "optionTooltip",
|
|
1787
|
-
fn:
|
|
1787
|
+
fn: M(() => [A(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1788
1788
|
key: "1"
|
|
1789
1789
|
} : void 0,
|
|
1790
1790
|
t.$slots.optionPdf ? {
|
|
1791
1791
|
name: "optionPdf",
|
|
1792
|
-
fn:
|
|
1792
|
+
fn: M(() => [A(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1793
1793
|
key: "2"
|
|
1794
1794
|
} : void 0,
|
|
1795
1795
|
t.$slots.optionCsv ? {
|
|
1796
1796
|
name: "optionCsv",
|
|
1797
|
-
fn:
|
|
1797
|
+
fn: M(() => [A(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1798
1798
|
key: "3"
|
|
1799
1799
|
} : void 0,
|
|
1800
1800
|
t.$slots.optionImg ? {
|
|
1801
1801
|
name: "optionImg",
|
|
1802
|
-
fn:
|
|
1802
|
+
fn: M(() => [A(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1803
1803
|
key: "4"
|
|
1804
1804
|
} : void 0,
|
|
1805
1805
|
t.$slots.optionSvg ? {
|
|
1806
1806
|
name: "optionSvg",
|
|
1807
|
-
fn:
|
|
1807
|
+
fn: M(() => [A(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1808
1808
|
key: "5"
|
|
1809
1809
|
} : void 0,
|
|
1810
1810
|
t.$slots.optionTable ? {
|
|
1811
1811
|
name: "optionTable",
|
|
1812
|
-
fn:
|
|
1812
|
+
fn: M(() => [A(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1813
1813
|
key: "6"
|
|
1814
1814
|
} : void 0,
|
|
1815
1815
|
t.$slots.optionLabels ? {
|
|
1816
1816
|
name: "optionLabels",
|
|
1817
|
-
fn:
|
|
1817
|
+
fn: M(() => [A(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1818
1818
|
key: "7"
|
|
1819
1819
|
} : void 0,
|
|
1820
1820
|
t.$slots.optionFullscreen ? {
|
|
1821
1821
|
name: "optionFullscreen",
|
|
1822
|
-
fn:
|
|
1822
|
+
fn: M(({ toggleFullscreen: e, isFullscreen: n }) => [A(t.$slots, "optionFullscreen", E(T({
|
|
1823
1823
|
toggleFullscreen: e,
|
|
1824
1824
|
isFullscreen: n
|
|
1825
1825
|
})), void 0, !0)]),
|
|
@@ -1827,7 +1827,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1827
1827
|
} : void 0,
|
|
1828
1828
|
t.$slots.optionAnnotator ? {
|
|
1829
1829
|
name: "optionAnnotator",
|
|
1830
|
-
fn:
|
|
1830
|
+
fn: M(({ toggleAnnotator: e, isAnnotator: n }) => [A(t.$slots, "optionAnnotator", E(T({
|
|
1831
1831
|
toggleAnnotator: e,
|
|
1832
1832
|
isAnnotator: n
|
|
1833
1833
|
})), void 0, !0)]),
|
|
@@ -1835,31 +1835,31 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1835
1835
|
} : void 0,
|
|
1836
1836
|
t.$slots.optionAltCopy ? {
|
|
1837
1837
|
name: "optionAltCopy",
|
|
1838
|
-
fn:
|
|
1838
|
+
fn: M(({ altCopy: e }) => [A(t.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
|
|
1839
1839
|
key: "10"
|
|
1840
1840
|
} : void 0,
|
|
1841
1841
|
t.$slots["custom-menu-before"] ? {
|
|
1842
1842
|
name: "custom-menu-before",
|
|
1843
|
-
fn:
|
|
1843
|
+
fn: M(() => [A(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1844
1844
|
key: "11"
|
|
1845
1845
|
} : void 0,
|
|
1846
1846
|
t.$slots["custom-menu-after"] ? {
|
|
1847
1847
|
name: "custom-menu-after",
|
|
1848
|
-
fn:
|
|
1848
|
+
fn: M(() => [A(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1849
1849
|
key: "12"
|
|
1850
1850
|
} : void 0
|
|
1851
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",
|
|
1852
|
+
w("div", ot, [(D(), C("svg", {
|
|
1853
1853
|
ref_key: "svgRef",
|
|
1854
|
-
ref:
|
|
1854
|
+
ref: Wn,
|
|
1855
1855
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1856
|
-
xmlns:
|
|
1856
|
+
xmlns: j(le),
|
|
1857
1857
|
viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
|
|
1858
1858
|
class: Ge({
|
|
1859
|
-
"vue-data-ui-loading":
|
|
1860
|
-
"no-transition": !
|
|
1859
|
+
"vue-data-ui-loading": j(V),
|
|
1860
|
+
"no-transition": !z.value.useCssAnimation
|
|
1861
1861
|
}),
|
|
1862
|
-
style: Ke(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
1862
|
+
style: Ke(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1863
1863
|
role: "img",
|
|
1864
1864
|
"aria-live": "polite",
|
|
1865
1865
|
tabindex: "0",
|
|
@@ -1871,8 +1871,8 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1871
1871
|
onBlur: ea,
|
|
1872
1872
|
onKeydown: ta
|
|
1873
1873
|
}, [
|
|
1874
|
-
Ve(
|
|
1875
|
-
(D(!0), C(y, null, k(gr.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs",
|
|
1874
|
+
Ve(j(Jt)),
|
|
1875
|
+
(D(!0), C(y, null, k(gr.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs", ct, [A(t.$slots, "pattern", Ue({ ref_for: !0 }, {
|
|
1876
1876
|
seriesIndex: e.absoluteIndex,
|
|
1877
1877
|
patternId: `pattern_${I.value}_${e.absoluteIndex}`
|
|
1878
1878
|
}), void 0, !0)])) : S("", !0)], 64))), 256)),
|
|
@@ -1883,8 +1883,8 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1883
1883
|
width: X.value.width,
|
|
1884
1884
|
height: W.value.height,
|
|
1885
1885
|
style: { pointerEvents: "none" }
|
|
1886
|
-
}, [A(t.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1887
|
-
|
|
1886
|
+
}, [A(t.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : S("", !0),
|
|
1887
|
+
z.value.style.chart.lines.gradient.show ? (D(), C("defs", ut, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("linearGradient", {
|
|
1888
1888
|
id: `gradient_${e.id}`,
|
|
1889
1889
|
x1: "0%",
|
|
1890
1890
|
y1: "0%",
|
|
@@ -1893,74 +1893,74 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1893
1893
|
}, [w("stop", {
|
|
1894
1894
|
offset: "0%",
|
|
1895
1895
|
"stop-color": e.color
|
|
1896
|
-
}, null, 8,
|
|
1896
|
+
}, null, 8, ft), w("stop", {
|
|
1897
1897
|
offset: "100%",
|
|
1898
|
-
"stop-color":
|
|
1899
|
-
}, null, 8,
|
|
1900
|
-
|
|
1898
|
+
"stop-color": j(r)(e.color, z.value.style.chart.lines.gradient.intensity / 100)
|
|
1899
|
+
}, null, 8, pt)], 8, dt))), 256))])) : S("", !0),
|
|
1900
|
+
z.value.style.chart.grid.x.showHorizontalLines ? (D(!0), C(y, { key: 2 }, k(Lr.value, (e, t) => (D(), C("line", {
|
|
1901
1901
|
x1: X.value.left,
|
|
1902
1902
|
x2: X.value.right,
|
|
1903
1903
|
y1: e.y,
|
|
1904
1904
|
y2: e.y,
|
|
1905
|
-
stroke:
|
|
1906
|
-
"stroke-width":
|
|
1907
|
-
"stroke-dasharray":
|
|
1905
|
+
stroke: z.value.style.chart.grid.x.linesColor,
|
|
1906
|
+
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1907
|
+
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1908
1908
|
"stroke-linecap": "round"
|
|
1909
|
-
}, null, 8,
|
|
1910
|
-
|
|
1909
|
+
}, null, 8, mt))), 256)) : S("", !0),
|
|
1910
|
+
z.value.style.chart.grid.y.showVerticalLines ? (D(!0), C(y, { key: 3 }, k(q.value.end - q.value.start, (e, t) => (D(), C("line", {
|
|
1911
1911
|
x1: Q(t),
|
|
1912
1912
|
x2: Q(t),
|
|
1913
1913
|
y1: W.value.top,
|
|
1914
1914
|
y2: W.value.bottom,
|
|
1915
|
-
stroke:
|
|
1916
|
-
"stroke-width":
|
|
1917
|
-
"stroke-dasharray":
|
|
1915
|
+
stroke: z.value.style.chart.grid.y.linesColor,
|
|
1916
|
+
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1917
|
+
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1918
1918
|
"stroke-linecap": "round"
|
|
1919
|
-
}, null, 8,
|
|
1920
|
-
|
|
1919
|
+
}, null, 8, ht))), 256)) : S("", !0),
|
|
1920
|
+
z.value.style.chart.grid.x.showAxis ? (D(), C("line", {
|
|
1921
1921
|
key: 4,
|
|
1922
1922
|
x1: X.value.left,
|
|
1923
1923
|
x2: X.value.right,
|
|
1924
1924
|
y1: W.value.bottom,
|
|
1925
1925
|
y2: W.value.bottom,
|
|
1926
|
-
stroke:
|
|
1927
|
-
"stroke-width":
|
|
1926
|
+
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1927
|
+
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1928
1928
|
"stroke-linecap": "round",
|
|
1929
1929
|
"stroke-linejoin": "round"
|
|
1930
|
-
}, null, 8,
|
|
1931
|
-
|
|
1930
|
+
}, null, 8, gt)) : S("", !0),
|
|
1931
|
+
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (D(), C("line", {
|
|
1932
1932
|
key: 5,
|
|
1933
1933
|
x1: sr.value ? X.value.right : X.value.left,
|
|
1934
1934
|
x2: sr.value ? X.value.right : X.value.left,
|
|
1935
1935
|
y1: W.value.top,
|
|
1936
1936
|
y2: W.value.bottom,
|
|
1937
|
-
stroke:
|
|
1938
|
-
"stroke-width":
|
|
1937
|
+
stroke: z.value.style.chart.grid.y.axisColor,
|
|
1938
|
+
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1939
1939
|
"stroke-linecap": "round",
|
|
1940
1940
|
"stroke-linejoin": "round"
|
|
1941
|
-
}, null, 8,
|
|
1942
|
-
|
|
1941
|
+
}, null, 8, _t)) : S("", !0),
|
|
1942
|
+
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (D(), C("text", {
|
|
1943
1943
|
key: 6,
|
|
1944
1944
|
ref_key: "xAxisLabel",
|
|
1945
1945
|
ref: bn,
|
|
1946
1946
|
x: W.value.left + W.value.width / 2,
|
|
1947
1947
|
y: W.value.chartHeight - 3,
|
|
1948
|
-
"font-size":
|
|
1949
|
-
fill:
|
|
1950
|
-
"font-weight":
|
|
1948
|
+
"font-size": z.value.style.chart.grid.x.axisName.fontSize,
|
|
1949
|
+
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1950
|
+
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1951
1951
|
"text-anchor": "middle"
|
|
1952
|
-
},
|
|
1953
|
-
|
|
1952
|
+
}, Ze(z.value.style.chart.grid.x.axisName.text), 9, vt)) : S("", !0),
|
|
1953
|
+
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (D(), C("text", {
|
|
1954
1954
|
key: 7,
|
|
1955
1955
|
ref_key: "yAxisLabel",
|
|
1956
1956
|
ref: xn,
|
|
1957
|
-
transform: `translate(${sr.value ? W.value.chartWidth -
|
|
1958
|
-
"font-size":
|
|
1959
|
-
fill:
|
|
1960
|
-
"font-weight":
|
|
1957
|
+
transform: `translate(${sr.value ? W.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1958
|
+
"font-size": z.value.style.chart.grid.y.axisName.fontSize,
|
|
1959
|
+
fill: z.value.style.chart.grid.y.axisName.color,
|
|
1960
|
+
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1961
1961
|
"text-anchor": "middle"
|
|
1962
|
-
},
|
|
1963
|
-
|
|
1962
|
+
}, Ze(z.value.style.chart.grid.y.axisName.text), 9, yt)) : S("", !0),
|
|
1963
|
+
z.value.style.chart.grid.frame.show ? (D(), C("rect", {
|
|
1964
1964
|
key: 8,
|
|
1965
1965
|
style: {
|
|
1966
1966
|
pointerEvents: "none",
|
|
@@ -1972,28 +1972,28 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
1972
1972
|
width: X.value.width,
|
|
1973
1973
|
height: W.value.height,
|
|
1974
1974
|
fill: "transparent",
|
|
1975
|
-
stroke:
|
|
1976
|
-
"stroke-width":
|
|
1977
|
-
"stroke-linecap":
|
|
1978
|
-
"stroke-linejoin":
|
|
1979
|
-
"stroke-dasharray":
|
|
1980
|
-
}, null, 8,
|
|
1981
|
-
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [
|
|
1975
|
+
stroke: z.value.style.chart.grid.frame.stroke,
|
|
1976
|
+
"stroke-width": z.value.style.chart.grid.frame.strokeWidth,
|
|
1977
|
+
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
1978
|
+
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
1979
|
+
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
1980
|
+
}, null, 8, bt)) : S("", !0),
|
|
1981
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [z.value.style.chart.lines.useArea && !e.standalone ? (D(), C("path", {
|
|
1982
1982
|
key: 0,
|
|
1983
|
-
d:
|
|
1984
|
-
fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` :
|
|
1985
|
-
opacity:
|
|
1986
|
-
style: Ke({ transition:
|
|
1987
|
-
}, null, 12,
|
|
1983
|
+
d: z.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
|
|
1984
|
+
fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : z.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
1985
|
+
opacity: z.value.style.chart.lines.areaOpacity,
|
|
1986
|
+
style: Ke({ transition: j(V) || !z.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
|
|
1987
|
+
}, null, 12, xt)) : S("", !0)], 64))), 256)),
|
|
1988
1988
|
(D(!0), C(y, null, k(Y.value, (e) => (D(), C("path", {
|
|
1989
|
-
d:
|
|
1990
|
-
stroke:
|
|
1991
|
-
"stroke-width":
|
|
1989
|
+
d: z.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
|
|
1990
|
+
stroke: z.value.style.chart.lines.path.useSerieColor ? e.color : z.value.style.chart.lines.path.stroke,
|
|
1991
|
+
"stroke-width": z.value.style.chart.lines.strokeWidth,
|
|
1992
1992
|
fill: "none",
|
|
1993
1993
|
"stroke-linecap": "round",
|
|
1994
|
-
style: Ke({ transition:
|
|
1995
|
-
}, null, 12,
|
|
1996
|
-
|
|
1994
|
+
style: Ke({ transition: j(V) || !z.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
|
|
1995
|
+
}, null, 12, St))), 256)),
|
|
1996
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (D(), C("g", {
|
|
1997
1997
|
key: 9,
|
|
1998
1998
|
ref_key: "scaleLabels",
|
|
1999
1999
|
ref: Sn
|
|
@@ -2002,94 +2002,94 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2002
2002
|
x2: sr.value ? X.value.right + 6 : X.value.left - 6,
|
|
2003
2003
|
y1: e.y,
|
|
2004
2004
|
y2: e.y,
|
|
2005
|
-
stroke:
|
|
2005
|
+
stroke: z.value.style.chart.grid.x.axisColor,
|
|
2006
2006
|
"stroke-width": 1
|
|
2007
|
-
}, null, 8,
|
|
2007
|
+
}, null, 8, Ct))), 256)), (D(!0), C(y, null, k(Lr.value, (e, t) => (D(), C("text", {
|
|
2008
2008
|
x: e.x,
|
|
2009
|
-
y: e.y +
|
|
2010
|
-
"font-size":
|
|
2011
|
-
"font-weight":
|
|
2012
|
-
fill:
|
|
2009
|
+
y: e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
2010
|
+
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2011
|
+
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
2012
|
+
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2013
2013
|
"text-anchor": sr.value ? "start" : "end"
|
|
2014
|
-
}, j(
|
|
2015
|
-
p:
|
|
2014
|
+
}, Ze(j(re)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, j(o)({
|
|
2015
|
+
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2016
2016
|
v: e.value,
|
|
2017
|
-
s:
|
|
2018
|
-
r:
|
|
2019
|
-
}), { datapoint: e })), 9,
|
|
2020
|
-
|
|
2017
|
+
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
2018
|
+
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
2019
|
+
}), { datapoint: e })), 9, wt))), 256))], 512)) : S("", !0),
|
|
2020
|
+
z.value.style.chart.grid.x.timeLabels.show ? (D(), C("g", {
|
|
2021
2021
|
key: 10,
|
|
2022
2022
|
ref_key: "timeLabelsEls",
|
|
2023
2023
|
ref: Cn
|
|
2024
|
-
}, [t.$slots["time-label"] ? (D(), C("g",
|
|
2024
|
+
}, [t.$slots["time-label"] ? (D(), C("g", Tt, [(D(!0), C(y, null, k(Ur.value, (e, n) => (D(), C("g", null, [A(t.$slots, "time-label", Ue({ ref_for: !0 }, {
|
|
2025
2025
|
x: W.value.left + Er.value * n + Er.value / 2,
|
|
2026
|
-
y: W.value.bottom +
|
|
2027
|
-
fontSize:
|
|
2028
|
-
fill:
|
|
2029
|
-
transform: `translate(${W.value.left + Er.value * n + Er.value / 2}, ${W.value.bottom +
|
|
2026
|
+
y: W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
2027
|
+
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2028
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2029
|
+
transform: `translate(${W.value.left + Er.value * n + Er.value / 2}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2030
2030
|
absoluteIndex: e.absoluteIndex,
|
|
2031
2031
|
content: e.text,
|
|
2032
|
-
textAnchor:
|
|
2032
|
+
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2033
2033
|
show: !0
|
|
2034
|
-
}), void 0, !0)]))), 256))])) : (D(), C("g",
|
|
2034
|
+
}), void 0, !0)]))), 256))])) : (D(), C("g", Et, [(D(!0), C(y, null, k(Ur.value, (e, n) => (D(), C("g", null, [String(e.text).includes("\n") ? (D(), C("text", {
|
|
2035
2035
|
key: n + "-multi",
|
|
2036
|
-
"text-anchor":
|
|
2037
|
-
"font-size":
|
|
2038
|
-
fill:
|
|
2036
|
+
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2037
|
+
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2038
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2039
2039
|
transform: `
|
|
2040
2040
|
translate(
|
|
2041
2041
|
${Q(n)},
|
|
2042
|
-
${W.value.bottom +
|
|
2042
|
+
${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
|
|
2043
2043
|
),
|
|
2044
|
-
rotate(${
|
|
2044
|
+
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
2045
2045
|
`,
|
|
2046
|
-
style: Ke({ cursor:
|
|
2046
|
+
style: Ke({ cursor: B.value ? "pointer" : "default" }),
|
|
2047
2047
|
innerHTML: t.createTSpansFromLineBreaksOnX({
|
|
2048
2048
|
content: String(e.text),
|
|
2049
|
-
fontSize:
|
|
2050
|
-
fill:
|
|
2049
|
+
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2050
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2051
2051
|
x: 0,
|
|
2052
2052
|
y: 0
|
|
2053
2053
|
}),
|
|
2054
2054
|
onClick: () => _i(e, n)
|
|
2055
|
-
}, null, 12,
|
|
2055
|
+
}, null, 12, Ot)) : (D(), C("text", {
|
|
2056
2056
|
class: "vue-data-ui-time-label",
|
|
2057
2057
|
key: n,
|
|
2058
|
-
"text-anchor":
|
|
2059
|
-
"font-size":
|
|
2060
|
-
"font-weight":
|
|
2061
|
-
fill:
|
|
2062
|
-
transform: `translate(${Q(n)}, ${W.value.bottom +
|
|
2063
|
-
style: Ke({ cursor:
|
|
2058
|
+
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2059
|
+
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2060
|
+
"font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
2061
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2062
|
+
transform: `translate(${Q(n)}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2063
|
+
style: Ke({ cursor: B.value ? "pointer" : "default" }),
|
|
2064
2064
|
onClick: () => _i(e, n)
|
|
2065
|
-
},
|
|
2066
|
-
(_n.value || ![null, void 0].includes($.value)) && !
|
|
2065
|
+
}, Ze(e.text), 13, Dt))]))), 256))]))], 512)) : S("", !0),
|
|
2066
|
+
(_n.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (D(!0), C(y, { key: 11 }, k(q.value.end - q.value.start, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
|
|
2067
2067
|
x: ci(t).x,
|
|
2068
2068
|
y: W.value.top,
|
|
2069
2069
|
height: W.value.height,
|
|
2070
2070
|
width: ci(t).width,
|
|
2071
|
-
fill: [
|
|
2071
|
+
fill: [Fn.value, $.value].includes(t) ? j(d)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
|
|
2072
2072
|
style: {
|
|
2073
2073
|
transition: "none !important",
|
|
2074
2074
|
animation: "none !important"
|
|
2075
2075
|
}
|
|
2076
|
-
}, null, 8,
|
|
2077
|
-
(_n.value || ![null, void 0].includes($.value)) &&
|
|
2078
|
-
x1: Q(($.value ??
|
|
2079
|
-
x2: Q(($.value ??
|
|
2080
|
-
y1:
|
|
2081
|
-
y2:
|
|
2082
|
-
stroke:
|
|
2083
|
-
"stroke-width":
|
|
2084
|
-
"stroke-dasharray":
|
|
2076
|
+
}, null, 8, kt)]))), 128)) : S("", !0),
|
|
2077
|
+
(_n.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (D(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Fn.value) ? (D(), C("g", At, [w("line", {
|
|
2078
|
+
x1: Q(($.value ?? Fn.value) || 0),
|
|
2079
|
+
x2: Q(($.value ?? Fn.value) || 0),
|
|
2080
|
+
y1: j(ie)(W.value.top),
|
|
2081
|
+
y2: j(ie)(W.value.bottom),
|
|
2082
|
+
stroke: z.value.style.chart.highlighter.color,
|
|
2083
|
+
"stroke-width": z.value.style.chart.highlighter.lineWidth,
|
|
2084
|
+
"stroke-dasharray": z.value.style.chart.highlighter.lineDasharray,
|
|
2085
2085
|
"stroke-linecap": "round",
|
|
2086
2086
|
style: {
|
|
2087
2087
|
transition: "none !important",
|
|
2088
2088
|
animation: "none !important",
|
|
2089
2089
|
"pointer-events": "none"
|
|
2090
2090
|
}
|
|
2091
|
-
}, null, 8,
|
|
2092
|
-
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [_n.value && q.value.end - q.value.start >
|
|
2091
|
+
}, null, 8, jt)])) : 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 > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(), C("g", Mt, [$.value == null ? S("", !0) : (D(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (D(), x(De, {
|
|
2093
2093
|
key: 0,
|
|
2094
2094
|
shape: [
|
|
2095
2095
|
"triangle",
|
|
@@ -2099,15 +2099,15 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2099
2099
|
"hexagon",
|
|
2100
2100
|
"star"
|
|
2101
2101
|
].includes(e.shape) ? e.shape : "circle",
|
|
2102
|
-
color:
|
|
2102
|
+
color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
|
|
2103
2103
|
plot: {
|
|
2104
|
-
x:
|
|
2105
|
-
y:
|
|
2104
|
+
x: j(ue)(e.points[e.rel.indexOf($.value)].x),
|
|
2105
|
+
y: j(ue)(e.points[e.rel.indexOf($.value)].y)
|
|
2106
2106
|
},
|
|
2107
|
-
radius:
|
|
2108
|
-
stroke:
|
|
2109
|
-
strokeWidth:
|
|
2110
|
-
transition:
|
|
2107
|
+
radius: z.value.style.chart.lines.dot.radius * 1.3,
|
|
2108
|
+
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2109
|
+
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2110
|
+
transition: j(V) ? void 0 : `all ${z.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
2111
2111
|
}, null, 8, [
|
|
2112
2112
|
"shape",
|
|
2113
2113
|
"color",
|
|
@@ -2117,7 +2117,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2117
2117
|
"strokeWidth",
|
|
2118
2118
|
"transition"
|
|
2119
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 <
|
|
2120
|
+
(D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [q.value.end - q.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(!0), C(y, { key: 0 }, k(e.points, (t, n) => (D(), C("g", { key: n }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (D(), x(De, {
|
|
2121
2121
|
key: 0,
|
|
2122
2122
|
shape: [
|
|
2123
2123
|
"triangle",
|
|
@@ -2127,15 +2127,15 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2127
2127
|
"hexagon",
|
|
2128
2128
|
"star"
|
|
2129
2129
|
].includes(e.shape) ? e.shape : "circle",
|
|
2130
|
-
color:
|
|
2130
|
+
color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
|
|
2131
2131
|
plot: {
|
|
2132
2132
|
x: t.x,
|
|
2133
2133
|
y: t.y
|
|
2134
2134
|
},
|
|
2135
|
-
radius: _n.value && $.value === e.rel[n] ?
|
|
2136
|
-
stroke:
|
|
2137
|
-
strokeWidth:
|
|
2138
|
-
transition:
|
|
2135
|
+
radius: _n.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
|
|
2136
|
+
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2137
|
+
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2138
|
+
transition: j(V) ? void 0 : `all ${z.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
2139
2139
|
}, null, 8, [
|
|
2140
2140
|
"shape",
|
|
2141
2141
|
"color",
|
|
@@ -2145,67 +2145,67 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2145
2145
|
"strokeWidth",
|
|
2146
2146
|
"transition"
|
|
2147
2147
|
])) : S("", !0)]))), 128)) : S("", !0)], 64))), 256)),
|
|
2148
|
-
H.value.dataLabels.show &&
|
|
2148
|
+
H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (D(), C(y, { key: 13 }, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("g", { key: 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", {
|
|
2149
2149
|
key: 0,
|
|
2150
2150
|
x: n.x,
|
|
2151
|
-
y: n.y + (e.series[r] >= 0 ? -
|
|
2152
|
-
"font-size":
|
|
2153
|
-
fill:
|
|
2154
|
-
"font-weight":
|
|
2151
|
+
y: n.y + (e.series[r] >= 0 ? -z.value.style.chart.lines.dataLabels.fontSize / 2 + z.value.style.chart.lines.dataLabels.offsetY : z.value.style.chart.lines.dataLabels.fontSize * 1.2 - z.value.style.chart.lines.dataLabels.offsetY),
|
|
2152
|
+
"font-size": z.value.style.chart.lines.dataLabels.fontSize,
|
|
2153
|
+
fill: z.value.style.chart.lines.dataLabels.color,
|
|
2154
|
+
"font-weight": z.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
2155
2155
|
"text-anchor": "middle"
|
|
2156
|
-
},
|
|
2156
|
+
}, Ze(z.value.style.chart.lines.showDistributedPercentage && z.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, Nt)) : S("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (D(), C("g", {
|
|
2157
2157
|
key: 0,
|
|
2158
2158
|
ref_key: "sumTop",
|
|
2159
2159
|
ref: wn
|
|
2160
|
-
}, [(D(!0), C(y, null, k(Pr.value, (e, t) => (D(), C(y, null, [!
|
|
2160
|
+
}, [(D(!0), C(y, null, k(Pr.value, (e, t) => (D(), C(y, null, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (D(), C("text", {
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
x: Q(t),
|
|
2163
2163
|
y: Ir(t),
|
|
2164
2164
|
"text-anchor": "middle",
|
|
2165
|
-
"font-size":
|
|
2166
|
-
"font-weight":
|
|
2167
|
-
fill:
|
|
2168
|
-
},
|
|
2165
|
+
"font-size": z.value.style.chart.lines.totalValues.fontSize,
|
|
2166
|
+
"font-weight": z.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
2167
|
+
fill: z.value.style.chart.lines.totalValues.color
|
|
2168
|
+
}, Ze(qi(e.value, e, t, t, e.sign)), 9, Pt)) : S("", !0)], 64))), 256))], 512)) : S("", !0)], 64)) : S("", !0),
|
|
2169
2169
|
br.value ? (D(), C("rect", Ue({ key: 14 }, hr.value, {
|
|
2170
2170
|
"data-start": q.value.start,
|
|
2171
2171
|
"data-end": q.value.end
|
|
2172
|
-
}), null, 16,
|
|
2172
|
+
}), null, 16, Ft)) : S("", !0),
|
|
2173
2173
|
A(t.$slots, "svg", { svg: {
|
|
2174
2174
|
drawingArea: W.value,
|
|
2175
2175
|
data: Y.value,
|
|
2176
|
-
isPrintingImg:
|
|
2176
|
+
isPrintingImg: j(Xn) || j(Zn) || vn.value,
|
|
2177
2177
|
isPrintingSvg: yn.value
|
|
2178
2178
|
} }, void 0, !0)
|
|
2179
|
-
], 46,
|
|
2180
|
-
hint:
|
|
2179
|
+
], 46, st)), t.$slots.hint ? (D(), C("div", It, [A(t.$slots, "hint", E(T({
|
|
2180
|
+
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2181
2181
|
isVisible: Qi.value
|
|
2182
2182
|
})), void 0, !0)])) : S("", !0)]),
|
|
2183
|
-
t.$slots.watermark ? (D(), C("div",
|
|
2184
|
-
mn.value && (
|
|
2183
|
+
t.$slots.watermark ? (D(), C("div", Lt, [A(t.$slots, "watermark", E(T({ isPrinting: j(Xn) || j(Zn) || vn.value || yn.value })), void 0, !0)])) : S("", !0),
|
|
2184
|
+
mn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (D(), x(Re, {
|
|
2185
2185
|
key: 6,
|
|
2186
|
-
to:
|
|
2186
|
+
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
2187
2187
|
}, [w("div", {
|
|
2188
2188
|
ref_key: "chartLegend",
|
|
2189
2189
|
ref: an
|
|
2190
|
-
}, [A(t.$slots, "legend", { legend: bi.value }, () => [
|
|
2190
|
+
}, [A(t.$slots, "legend", { legend: bi.value }, () => [z.value.style.chart.legend.show ? (D(), x(Ie, {
|
|
2191
2191
|
key: 0,
|
|
2192
2192
|
legendSet: bi.value,
|
|
2193
2193
|
config: xi.value,
|
|
2194
|
-
isCursorPointer:
|
|
2194
|
+
isCursorPointer: B.value,
|
|
2195
2195
|
onClickMarker: n[0] ||= ({ legend: e }) => e.segregate()
|
|
2196
2196
|
}, ze({
|
|
2197
|
-
item:
|
|
2197
|
+
item: M(({ legend: e }) => [j(V) ? S("", !0) : (D(), C("div", {
|
|
2198
2198
|
key: 0,
|
|
2199
2199
|
onClick: (t) => e.segregate(),
|
|
2200
2200
|
style: Ke(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2201
|
-
},
|
|
2202
|
-
legendToggle:
|
|
2201
|
+
}, Ze(e.name), 13, Rt))]),
|
|
2202
|
+
legendToggle: M(() => [bi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !j(V) ? (D(), x(Me, {
|
|
2203
2203
|
key: 0,
|
|
2204
|
-
backgroundColor:
|
|
2205
|
-
color:
|
|
2206
|
-
fontSize:
|
|
2204
|
+
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2205
|
+
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
2206
|
+
fontSize: z.value.style.chart.legend.fontSize,
|
|
2207
2207
|
checked: L.value.length > 0,
|
|
2208
|
-
isCursorPointer:
|
|
2208
|
+
isCursorPointer: B.value,
|
|
2209
2209
|
onToggle: vi
|
|
2210
2210
|
}, null, 8, [
|
|
2211
2211
|
"backgroundColor",
|
|
@@ -2217,7 +2217,7 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2217
2217
|
_: 2
|
|
2218
2218
|
}, [t.$slots.pattern ? {
|
|
2219
2219
|
name: "legend-pattern",
|
|
2220
|
-
fn:
|
|
2220
|
+
fn: M(({ legend: e, index: t }) => [Ve(De, {
|
|
2221
2221
|
shape: e.shape,
|
|
2222
2222
|
radius: 30,
|
|
2223
2223
|
stroke: "none",
|
|
@@ -2233,27 +2233,27 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2233
2233
|
"config",
|
|
2234
2234
|
"isCursorPointer"
|
|
2235
2235
|
])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
2236
|
-
|
|
2236
|
+
en.value && z.value.userOptions.buttons.table ? (D(), x(Ye(Pi.value.component), Ue({ key: 7 }, Pi.value.props, {
|
|
2237
2237
|
ref_key: "tableUnit",
|
|
2238
2238
|
ref: hn,
|
|
2239
2239
|
onClose: Fi
|
|
2240
2240
|
}), ze({
|
|
2241
|
-
content:
|
|
2241
|
+
content: M(() => [Ve(j(Gt), {
|
|
2242
2242
|
colNames: Di.value.colNames,
|
|
2243
2243
|
head: Di.value.head,
|
|
2244
2244
|
body: Di.value.body,
|
|
2245
2245
|
config: Di.value.config,
|
|
2246
|
-
title:
|
|
2247
|
-
withCloseButton: !
|
|
2248
|
-
isCursorPointer:
|
|
2246
|
+
title: z.value.table.useDialog ? "" : Pi.value.title,
|
|
2247
|
+
withCloseButton: !z.value.table.useDialog,
|
|
2248
|
+
isCursorPointer: B.value,
|
|
2249
2249
|
onClose: Fi
|
|
2250
2250
|
}, {
|
|
2251
|
-
th:
|
|
2252
|
-
td:
|
|
2253
|
-
p:
|
|
2251
|
+
th: M(({ th: e }) => [w("div", { innerHTML: e }, null, 8, zt)]),
|
|
2252
|
+
td: M(({ td: e }) => [Be(Ze(isNaN(Number(e)) ? e : j(o)({
|
|
2253
|
+
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2254
2254
|
v: e,
|
|
2255
|
-
s:
|
|
2256
|
-
r:
|
|
2255
|
+
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
2256
|
+
r: z.value.table.td.roundingValue
|
|
2257
2257
|
})), 1)]),
|
|
2258
2258
|
_: 1
|
|
2259
2259
|
}, 8, [
|
|
@@ -2266,77 +2266,77 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2266
2266
|
"isCursorPointer"
|
|
2267
2267
|
])]),
|
|
2268
2268
|
_: 2
|
|
2269
|
-
}, [
|
|
2269
|
+
}, [z.value.table.useDialog ? {
|
|
2270
2270
|
name: "title",
|
|
2271
|
-
fn:
|
|
2271
|
+
fn: M(() => [Be(Ze(Pi.value.title), 1)]),
|
|
2272
2272
|
key: "0"
|
|
2273
|
-
} : void 0,
|
|
2273
|
+
} : void 0, z.value.table.useDialog ? {
|
|
2274
2274
|
name: "actions",
|
|
2275
|
-
fn:
|
|
2275
|
+
fn: M(() => [w("button", {
|
|
2276
2276
|
tabindex: "0",
|
|
2277
2277
|
class: "vue-ui-user-options-button",
|
|
2278
|
-
onClick: n[1] ||= (e) => Ei(
|
|
2279
|
-
style: Ke({ cursor:
|
|
2280
|
-
}, [Ve(
|
|
2278
|
+
onClick: n[1] ||= (e) => Ei(z.value.userOptions.callbacks.csv),
|
|
2279
|
+
style: Ke({ cursor: B.value ? "pointer" : "default" })
|
|
2280
|
+
}, [Ve(j(Ut), {
|
|
2281
2281
|
name: "fileCsv",
|
|
2282
2282
|
stroke: Pi.value.props.color
|
|
2283
2283
|
}, null, 8, ["stroke"])], 4)]),
|
|
2284
2284
|
key: "1"
|
|
2285
2285
|
} : void 0]), 1040)) : S("", !0),
|
|
2286
|
-
|
|
2286
|
+
z.value.style.chart.zoom.show && en.value && Qr.value && K.value > 6 ? (D(), x(je, {
|
|
2287
2287
|
key: 8,
|
|
2288
2288
|
ref_key: "chartSlicer",
|
|
2289
2289
|
ref: on,
|
|
2290
2290
|
"data-dom-to-png-ignore-layout": "",
|
|
2291
2291
|
allMinimaps: Ar.value,
|
|
2292
|
-
background:
|
|
2293
|
-
borderColor:
|
|
2294
|
-
customFormat:
|
|
2292
|
+
background: z.value.style.chart.zoom.color,
|
|
2293
|
+
borderColor: z.value.style.chart.backgroundColor,
|
|
2294
|
+
customFormat: z.value.style.chart.zoom.customFormat,
|
|
2295
2295
|
cutNullValues: !1,
|
|
2296
|
-
enableRangeHandles:
|
|
2297
|
-
enableSelectionDrag:
|
|
2296
|
+
enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
|
|
2297
|
+
enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
|
|
2298
2298
|
end: q.value.end,
|
|
2299
|
-
focusOnDrag:
|
|
2300
|
-
focusRangeRatio:
|
|
2301
|
-
fontSize:
|
|
2302
|
-
immediate: !
|
|
2303
|
-
inputColor:
|
|
2299
|
+
focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
|
|
2300
|
+
focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
|
|
2301
|
+
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2302
|
+
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2303
|
+
inputColor: z.value.style.chart.zoom.color,
|
|
2304
2304
|
isPreview: br.value,
|
|
2305
|
-
labelLeft:
|
|
2306
|
-
labelRight:
|
|
2305
|
+
labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Rr.value?.[0]?.text ?? "" : "",
|
|
2306
|
+
labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Rr.value?.at(-1)?.text ?? "" : "",
|
|
2307
2307
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2308
2308
|
min: 0,
|
|
2309
2309
|
minimap: kr.value,
|
|
2310
|
-
minimapCompact:
|
|
2311
|
-
minimapFrameColor:
|
|
2312
|
-
minimapIndicatorColor:
|
|
2310
|
+
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2311
|
+
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2312
|
+
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
2313
2313
|
minimapMerged: !1,
|
|
2314
|
-
minimapSelectedColor:
|
|
2315
|
-
minimapSelectedColorOpacity:
|
|
2314
|
+
minimapSelectedColor: z.value.style.chart.zoom.minimap.selectedColor,
|
|
2315
|
+
minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2316
2316
|
minimapSelectedIndex: $.value,
|
|
2317
2317
|
minimapSelectionRadius: 1,
|
|
2318
2318
|
preciseLabels: qr.value.length ? qr.value : zr.value,
|
|
2319
|
-
refreshEndPoint:
|
|
2320
|
-
refreshStartPoint:
|
|
2321
|
-
selectColor:
|
|
2319
|
+
refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
|
|
2320
|
+
refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
|
|
2321
|
+
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2322
2322
|
selectedSeries: Hi.value,
|
|
2323
2323
|
smoothMinimap: !1,
|
|
2324
2324
|
start: q.value.start,
|
|
2325
|
-
textColor:
|
|
2325
|
+
textColor: z.value.style.chart.color,
|
|
2326
2326
|
timeLabels: zr.value,
|
|
2327
|
-
usePreciseLabels:
|
|
2327
|
+
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2328
2328
|
valueEnd: q.value.end,
|
|
2329
2329
|
valueStart: q.value.start,
|
|
2330
|
-
verticalHandles:
|
|
2331
|
-
maxWidth:
|
|
2332
|
-
isCursorPointer:
|
|
2333
|
-
additionalMinimapHeight:
|
|
2334
|
-
handleType:
|
|
2335
|
-
handleIconColor:
|
|
2336
|
-
handleBorderWidth:
|
|
2337
|
-
handleBorderColor:
|
|
2338
|
-
handleFill:
|
|
2339
|
-
handleWidth:
|
|
2330
|
+
verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
|
|
2331
|
+
maxWidth: z.value.style.chart.zoom.maxWidth,
|
|
2332
|
+
isCursorPointer: B.value,
|
|
2333
|
+
additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
|
|
2334
|
+
handleType: z.value.style.chart.zoom.minimap.handleType,
|
|
2335
|
+
handleIconColor: z.value.style.chart.zoom.minimap.handleIconColor,
|
|
2336
|
+
handleBorderWidth: z.value.style.chart.zoom.minimap.handleBorderWidth,
|
|
2337
|
+
handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2338
|
+
handleFill: z.value.style.chart.zoom.minimap.handleFill,
|
|
2339
|
+
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2340
2340
|
"onUpdate:end": ni,
|
|
2341
2341
|
"onUpdate:start": ti,
|
|
2342
2342
|
onTrapMouse: vr,
|
|
@@ -2344,42 +2344,42 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2344
2344
|
onFutureEnd: n[3] ||= (e) => xr("end", e),
|
|
2345
2345
|
onFutureStart: n[4] ||= (e) => xr("start", e)
|
|
2346
2346
|
}, {
|
|
2347
|
-
"reset-action":
|
|
2348
|
-
slotMap:
|
|
2347
|
+
"reset-action": M(({ reset: e }) => [A(t.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
|
|
2348
|
+
slotMap: M(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Wi({
|
|
2349
2349
|
minimapW: e,
|
|
2350
2350
|
minimapH: t,
|
|
2351
2351
|
unitW: n
|
|
2352
|
-
}) }, null, 8,
|
|
2352
|
+
}) }, null, 8, Bt)]),
|
|
2353
2353
|
_: 3
|
|
2354
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,
|
|
2356
|
-
Ve(
|
|
2357
|
-
teleportTo:
|
|
2355
|
+
w("div", { id: `legend-bottom-${I.value}` }, null, 8, Vt),
|
|
2356
|
+
Ve(j(Ht), {
|
|
2357
|
+
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2358
2358
|
show: H.value.showTooltip && tn.value,
|
|
2359
|
-
backgroundColor:
|
|
2360
|
-
color:
|
|
2361
|
-
fontSize:
|
|
2362
|
-
borderRadius:
|
|
2363
|
-
borderColor:
|
|
2364
|
-
borderWidth:
|
|
2365
|
-
backgroundOpacity:
|
|
2366
|
-
position:
|
|
2367
|
-
offsetX:
|
|
2368
|
-
offsetY:
|
|
2369
|
-
parent:
|
|
2359
|
+
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
2360
|
+
color: z.value.style.chart.tooltip.color,
|
|
2361
|
+
fontSize: z.value.style.chart.tooltip.fontSize,
|
|
2362
|
+
borderRadius: z.value.style.chart.tooltip.borderRadius,
|
|
2363
|
+
borderColor: z.value.style.chart.tooltip.borderColor,
|
|
2364
|
+
borderWidth: z.value.style.chart.tooltip.borderWidth,
|
|
2365
|
+
backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
|
|
2366
|
+
position: z.value.style.chart.tooltip.position,
|
|
2367
|
+
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2368
|
+
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2369
|
+
parent: F.value,
|
|
2370
2370
|
content: hi.value,
|
|
2371
2371
|
isFullscreen: ln.value,
|
|
2372
|
-
isCustom:
|
|
2373
|
-
smooth:
|
|
2374
|
-
backdropFilter:
|
|
2375
|
-
smoothForce:
|
|
2376
|
-
smoothSnapThreshold:
|
|
2377
|
-
isA11yMode:
|
|
2378
|
-
a11yPosition:
|
|
2372
|
+
isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
|
|
2373
|
+
smooth: z.value.style.chart.tooltip.smooth,
|
|
2374
|
+
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2375
|
+
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
2376
|
+
smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2377
|
+
isA11yMode: An.value === "keyboard",
|
|
2378
|
+
a11yPosition: kn.value
|
|
2379
2379
|
}, {
|
|
2380
|
-
"tooltip-before":
|
|
2381
|
-
tooltip:
|
|
2382
|
-
"tooltip-after":
|
|
2380
|
+
"tooltip-before": M(() => [A(t.$slots, "tooltip-before", E(T({ ...Xr.value })), void 0, !0)]),
|
|
2381
|
+
tooltip: M(() => [A(t.$slots, "tooltip", E(T({ ...Xr.value })), void 0, !0)]),
|
|
2382
|
+
"tooltip-after": M(() => [A(t.$slots, "tooltip-after", E(T({ ...Xr.value })), void 0, !0)]),
|
|
2383
2383
|
_: 3
|
|
2384
2384
|
}, 8, [
|
|
2385
2385
|
"teleportTo",
|
|
@@ -2411,9 +2411,9 @@ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it
|
|
|
2411
2411
|
ref: cn,
|
|
2412
2412
|
dir: "auto"
|
|
2413
2413
|
}, [A(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
2414
|
-
A(t.$slots, "skeleton", {}, () => [
|
|
2415
|
-
], 46,
|
|
2414
|
+
A(t.$slots, "skeleton", {}, () => [j(V) ? (D(), x(ye, { key: 0 })) : S("", !0)], !0)
|
|
2415
|
+
], 46, rt));
|
|
2416
2416
|
}
|
|
2417
2417
|
}, [["__scopeId", "data-v-016aa3b5"]]);
|
|
2418
2418
|
//#endregion
|
|
2419
|
-
export {
|
|
2419
|
+
export { nt as n, Ht as t };
|