vue-data-ui 3.10.0 → 3.10.2
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-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
import { defineAsyncComponent as ye, useSlots as
|
|
2
|
-
import { c as Fa, t as
|
|
3
|
-
import { t as Ea, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Ia, a as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
import { _ as Dt } from "./Shape-
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { S as
|
|
18
|
-
import { _ as
|
|
19
|
-
const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, lines: { totalValues: { color: "#CCCCCC" }, dataLabels: { color: "#CCCCCC" } }, grid: { x: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, timeLabels: { color: "#CCCCCC" } }, y: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, axisLabels: { color: "#CCCCCC" } } } } } },
|
|
1
|
+
import { defineAsyncComponent as ye, useSlots as Xl, computed as m, ref as y, onMounted as ql, toRefs as Gl, watch as Le, shallowRef as La, onBeforeUnmount as Nt, watchEffect as jl, nextTick as Jl, createElementBlock as h, openBlock as i, normalizeStyle as Te, normalizeClass as Ta, createBlock as ie, createCommentVNode as A, renderSlot as _, createElementVNode as ue, createVNode as He, unref as M, withCtx as D, normalizeProps as ee, guardReactiveProps as te, createSlots as Ft, Fragment as E, renderList as W, mergeProps as lt, toDisplayString as de, Teleport as Zl, resolveDynamicComponent as Ql, createTextVNode as Na } from "vue";
|
|
2
|
+
import { c as Fa, t as Kl, i as eo, j as ot, k as to, o as _a, g as Da, l as ao, m as lo, ar as We, O as st, N as rt, S as oo, A as pe, C as be, P as so, y as ro, _ as no, a as Xe, d as Ce, Q as qe, X as io, q as uo, s as co, U as za, v as ho, r as vo, b as mo, e as Ge } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as Ea, u as go } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as fo, a as _t } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as Ia, a as yo, l as po } from "./useTimeLabels-DKoynYae.js";
|
|
6
|
+
import { u as bo, B as xo } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as Co } from "./usePrinter-1NmjuP-i.js";
|
|
8
|
+
import { u as ko } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as Ao } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as wo } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as So } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import { u as Mo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
+
import $o from "./img-6fNF_rG0.js";
|
|
14
|
+
import { _ as Dt } from "./Shape-PzdCMGsP.js";
|
|
15
|
+
import Lo from "./Title-NgeRXqRA.js";
|
|
16
|
+
import To from "./Legend-DN5UJOBH.js";
|
|
17
|
+
import { S as No } from "./SlicerPreview-CSc_cazO.js";
|
|
18
|
+
import { _ as Fo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
+
const Pa = { userOptions: { show: !1 }, style: { chart: { legend: { show: !1 }, lines: { gradient: { show: !1 } }, zoom: { minimap: { show: !0 } } } } }, Oa = { userOptions: { show: !1 }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { show: !0, selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" }, lines: { gradient: { show: !1 }, totalValues: { color: "#CCCCCC" }, dataLabels: { color: "#CCCCCC" } }, grid: { x: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, timeLabels: { color: "#CCCCCC" } }, y: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, axisLabels: { color: "#CCCCCC" } } } } } }, Ra = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, lines: { totalValues: { color: "#CCCCCC" }, dataLabels: { color: "#CCCCCC" } }, grid: { x: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, timeLabels: { color: "#CCCCCC" } }, y: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, axisLabels: { color: "#CCCCCC" } } } } } }, Va = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, highlighter: { color: "#424242" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, lines: { totalValues: { color: "#424242" }, dataLabels: { color: "#424242" } }, grid: { x: { axisColor: "#5D403780", axisName: { color: "#424242" }, timeLabels: { color: "#424242" } }, y: { axisColor: "#5D403780", axisName: { color: "#424242" }, axisLabels: { color: "#424242" } } } } } }, Ba = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, highlighter: { color: "#FFF8E1" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, lines: { totalValues: { color: "#BDBDBD" }, dataLabels: { color: "#BDBDBD" } }, grid: { x: { axisColor: "#5D403740", axisName: { color: "#BDBDBD" }, timeLabels: { color: "#BDBDBD" } }, y: { axisColor: "#5D4037", axisName: { color: "#BDBDBD" }, axisLabels: { color: "#BDBDBD" } } } } } }, Ya = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, lines: { totalValues: { color: "#99AA99" }, dataLabels: { color: "#99AA99" } }, grid: { x: { axisColor: "#5F6A5F", axisName: { color: "#66CC66" }, timeLabels: { color: "#99AA99" } }, y: { axisColor: "#5F6A5F", axisName: { color: "#66CC66" }, axisLabels: { color: "#99AA99" } } } } } }, Ua = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, lines: { borderRadius: 4, totalValues: { show: !1 }, dataLabels: { show: !1 } }, grid: { x: { showAxis: !1, axisName: { color: "#8F837A" }, timeLabels: { show: !1 } }, y: { showAxis: !1, axisName: { color: "#8F837A" }, axisLabels: { show: !1 } } } } } }, Ha = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, lines: { totalValues: { color: "#50606C" }, dataLabels: { color: "#50606C" } }, grid: { x: { showHorizontalLines: !0, axisColor: "#829C98", axisName: { color: "#50606C" }, timeLabels: { color: "#61747E" } }, y: { showVerticalLines: !0, axisColor: "#829C98", axisName: { color: "#50606C" }, axisLabels: { color: "#61747E" } } } } } }, Wa = {
|
|
20
20
|
default: {},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
minimal: Pa,
|
|
22
|
+
minimalDark: Oa,
|
|
23
|
+
dark: Ra,
|
|
24
|
+
celebration: Va,
|
|
25
|
+
celebrationNight: Ba,
|
|
26
|
+
hack: Ya,
|
|
27
|
+
zen: Ua,
|
|
28
|
+
concrete: Ha
|
|
29
|
+
}, zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
30
|
__proto__: null,
|
|
29
|
-
celebration:
|
|
30
|
-
celebrationNight:
|
|
31
|
-
concrete:
|
|
32
|
-
dark:
|
|
33
|
-
default:
|
|
34
|
-
hack:
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
celebration: Va,
|
|
32
|
+
celebrationNight: Ba,
|
|
33
|
+
concrete: Ha,
|
|
34
|
+
dark: Ra,
|
|
35
|
+
default: Wa,
|
|
36
|
+
hack: Ya,
|
|
37
|
+
minimal: Pa,
|
|
38
|
+
minimalDark: Oa,
|
|
39
|
+
zen: Ua
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), _o = ["id"], Do = ["id"], zo = ["xmlns", "viewBox"], Eo = { key: 0 }, Io = ["x", "y", "width", "height"], Po = { key: 1 }, Oo = ["id"], Ro = ["stop-color"], Vo = ["stop-color"], Bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Uo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ho = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wo = ["x", "y", "font-size", "fill", "font-weight"], Xo = ["transform", "font-size", "fill", "font-weight"], qo = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Go = ["d", "fill", "opacity"], jo = ["d", "stroke", "stroke-width"], Jo = ["x1", "x2", "y1", "y2", "stroke"], Zo = ["x", "y", "font-size", "font-weight", "fill"], Qo = { key: 0 }, Ko = { key: 1 }, es = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], ts = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], as = ["x", "y", "height", "width", "fill"], ls = { key: 0 }, os = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ss = { key: 0 }, rs = ["x", "y", "font-size", "fill", "font-weight"], ns = ["x", "y", "font-size", "font-weight", "fill"], is = ["data-start", "data-end"], us = {
|
|
37
41
|
key: 4,
|
|
38
42
|
class: "vue-data-ui-watermark"
|
|
39
|
-
},
|
|
43
|
+
}, cs = ["onClick"], hs = ["innerHTML"], vs = ["innerHTML"], ds = ["id"], ms = {
|
|
40
44
|
__name: "vue-ui-stackline",
|
|
41
45
|
props: {
|
|
42
46
|
config: {
|
|
@@ -57,23 +61,23 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
63
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX"],
|
|
60
|
-
setup(nt, { expose:
|
|
61
|
-
const
|
|
64
|
+
setup(nt, { expose: Xa, emit: qa }) {
|
|
65
|
+
const Ga = ye(() => import("./Tooltip-B6qvABDL.js")), ja = ye(() => import("./BaseIcon-4uOct8re.js")), Ja = ye(() => import("./vue-ui-accordion-DFKaB_05.js")), Za = ye(() => import("./DataTable-DyoDzNNY.js")), Qa = ye(() => import("./PenAndPaper-LTuSTmWE.js")), Ka = ye(() => import("./UserOptions-CX7Xsusk.js")), el = ye(() => import("./PackageVersion-CQxJyGQr.js")), tl = ye(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_stackline: al } = fo(), { isThemeValid: ll, warnInvalidTheme: ol } = Ao(), zt = Xl(), j = nt, Ne = qa, Fe = m({
|
|
62
66
|
get() {
|
|
63
67
|
return !!j.dataset && j.dataset.length;
|
|
64
68
|
},
|
|
65
69
|
set(t) {
|
|
66
70
|
return t;
|
|
67
71
|
}
|
|
68
|
-
}), ce = y(null), Q = y(Fa()), Et = y(!1), It = y(null), X = y([]), Pt = y(0), Ot = y(null), Rt = y(null), _e = y(null),
|
|
72
|
+
}), ce = y(null), Q = y(Fa()), Et = y(!1), It = y(null), X = y([]), Pt = y(0), Ot = y(null), Rt = y(null), _e = y(null), Vt = y(null), Bt = y(null), De = y(!1), it = y(!1), Yt = y(0), sl = y(0), rl = y(0), Ut = y(!1), ze = y(null), ut = y(null), ke = y(!1), ct = y(null), ht = y(null), vt = y(null), je = y(null), nl = y(null), Ee = y(null), Ie = y(!1);
|
|
69
73
|
function dt() {
|
|
70
74
|
Ie.value = !Ie.value;
|
|
71
75
|
}
|
|
72
|
-
|
|
76
|
+
ql(() => {
|
|
73
77
|
Ut.value = !0, Kt();
|
|
74
78
|
});
|
|
75
|
-
const e = y(ft()), { loading: he, FINAL_DATASET: mt, manualLoading: Je } =
|
|
76
|
-
...
|
|
79
|
+
const e = y(ft()), { loading: he, FINAL_DATASET: mt, manualLoading: Je } = bo({
|
|
80
|
+
...Gl(j),
|
|
77
81
|
FINAL_CONFIG: e,
|
|
78
82
|
prepareConfig: ft,
|
|
79
83
|
callback: () => {
|
|
@@ -93,7 +97,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
93
97
|
color: "#CACACA"
|
|
94
98
|
}
|
|
95
99
|
],
|
|
96
|
-
skeletonConfig:
|
|
100
|
+
skeletonConfig: Kl({
|
|
97
101
|
defaultConfig: e.value,
|
|
98
102
|
userConfig: {
|
|
99
103
|
userOptions: { show: !1 },
|
|
@@ -145,26 +149,26 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
145
149
|
}
|
|
146
150
|
}
|
|
147
151
|
})
|
|
148
|
-
}), { userOptionsVisible: gt, setUserOptionsVisibility: Ht, keepUserOptionState: Wt } =
|
|
149
|
-
function
|
|
150
|
-
|
|
152
|
+
}), { userOptionsVisible: gt, setUserOptionsVisibility: Ht, keepUserOptionState: Wt } = Mo({ config: e.value }), { svgRef: Ae } = wo({ config: e.value.style.chart.title });
|
|
153
|
+
function il() {
|
|
154
|
+
ke.value = !0, Ht(!0);
|
|
151
155
|
}
|
|
152
|
-
function
|
|
153
|
-
Ht(!1),
|
|
156
|
+
function ul() {
|
|
157
|
+
Ht(!1), ke.value = !1;
|
|
154
158
|
}
|
|
155
159
|
function ft() {
|
|
156
160
|
const t = _t({
|
|
157
161
|
userConfig: j.config,
|
|
158
|
-
defaultConfig:
|
|
162
|
+
defaultConfig: al
|
|
159
163
|
});
|
|
160
164
|
let l = {};
|
|
161
165
|
const a = t.theme;
|
|
162
166
|
if (a)
|
|
163
|
-
if (!
|
|
164
|
-
|
|
167
|
+
if (!ll.value(t))
|
|
168
|
+
ol(t), l = t;
|
|
165
169
|
else {
|
|
166
170
|
const o = _t({
|
|
167
|
-
userConfig:
|
|
171
|
+
userConfig: Wa[a] || j.config,
|
|
168
172
|
defaultConfig: t
|
|
169
173
|
});
|
|
170
174
|
l = {
|
|
@@ -172,7 +176,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
172
176
|
userConfig: j.config,
|
|
173
177
|
defaultConfig: o
|
|
174
178
|
}),
|
|
175
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
179
|
+
customPalette: t.customPalette.length ? t.customPalette : eo[a] || ot
|
|
176
180
|
};
|
|
177
181
|
}
|
|
178
182
|
else
|
|
@@ -181,7 +185,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
181
185
|
}
|
|
182
186
|
const Xt = m(() => e.value.style.chart.lines.dataLabels.hideUnderValue !== null), qt = m(() => e.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
183
187
|
Le(() => j.config, (t) => {
|
|
184
|
-
he.value || (e.value = ft()), gt.value = !e.value.userOptions.showOnChartHover, Kt(), Yt.value += 1,
|
|
188
|
+
he.value || (e.value = ft()), gt.value = !e.value.userOptions.showOnChartHover, Kt(), Yt.value += 1, sl.value += 1, rl.value += 1, q.value.dataLabels.show = e.value.style.chart.lines.dataLabels.show, q.value.showTable = e.value.table.show, q.value.showTooltip = e.value.style.chart.tooltip.show, ve.value.width = e.value.style.chart.width, ve.value.height = e.value.style.chart.height, ve.value.paddingRatio = {
|
|
185
189
|
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
186
190
|
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
187
191
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
@@ -206,11 +210,11 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
206
210
|
showTooltip: e.value.style.chart.tooltip.show
|
|
207
211
|
};
|
|
208
212
|
}, { immediate: !0 });
|
|
209
|
-
const { isPrinting: Gt, isImaging: jt, generatePdf: Jt, generateImage: Zt } =
|
|
213
|
+
const { isPrinting: Gt, isImaging: jt, generatePdf: Jt, generateImage: Zt } = Co({
|
|
210
214
|
elementId: `stackline_${Q.value}`,
|
|
211
215
|
fileName: e.value.style.chart.title.text || "vue-ui-stackline",
|
|
212
216
|
options: e.value.userOptions.print
|
|
213
|
-
}),
|
|
217
|
+
}), cl = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), ve = y({
|
|
214
218
|
width: e.value.style.chart.width,
|
|
215
219
|
height: e.value.style.chart.height,
|
|
216
220
|
paddingRatio: {
|
|
@@ -219,14 +223,14 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
219
223
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
220
224
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
221
225
|
}
|
|
222
|
-
}),
|
|
226
|
+
}), hl = m(() => to(e.value.customPalette)), me = La(null), we = La(null), Qt = y(null), yt = m(() => !!e.value.debug);
|
|
223
227
|
function Kt() {
|
|
224
228
|
if (_a(j.dataset) ? (Da({
|
|
225
229
|
componentName: "VueUiStackline",
|
|
226
230
|
type: "dataset",
|
|
227
231
|
debug: yt.value
|
|
228
232
|
}), Je.value = !0) : j.dataset.forEach((t, l) => {
|
|
229
|
-
|
|
233
|
+
ao({
|
|
230
234
|
datasetObject: t,
|
|
231
235
|
requiredAttributes: ["name", "series"]
|
|
232
236
|
}).forEach((a) => {
|
|
@@ -243,13 +247,13 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
243
247
|
}, 10), e.value.responsive) {
|
|
244
248
|
const t = Ea(() => {
|
|
245
249
|
it.value = !1;
|
|
246
|
-
const { width: l, height: a } =
|
|
250
|
+
const { width: l, height: a } = go({
|
|
247
251
|
chart: ce.value,
|
|
248
|
-
noTitle:
|
|
252
|
+
noTitle: Vt.value,
|
|
249
253
|
title: e.value.style.chart.title.text ? Ot.value : null,
|
|
250
254
|
legend: e.value.style.chart.legend.show ? Rt.value : null,
|
|
251
255
|
slicer: e.value.style.chart.zoom.show && ne.value > 6 ? _e.value.$el : null,
|
|
252
|
-
source:
|
|
256
|
+
source: Bt.value
|
|
253
257
|
});
|
|
254
258
|
requestAnimationFrame(() => {
|
|
255
259
|
ve.value.width = l, ve.value.height = a - 12, clearTimeout(Qt.value), Qt.value = setTimeout(() => {
|
|
@@ -257,14 +261,14 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
257
261
|
}, 10);
|
|
258
262
|
});
|
|
259
263
|
});
|
|
260
|
-
me.value && (
|
|
264
|
+
me.value && (we.value && me.value.unobserve(we.value), me.value.disconnect()), me.value = new ResizeObserver(t), we.value = ce.value.parentNode, me.value.observe(we.value);
|
|
261
265
|
}
|
|
262
266
|
et();
|
|
263
267
|
}
|
|
264
268
|
Nt(() => {
|
|
265
|
-
me.value && (
|
|
269
|
+
me.value && (we.value && me.value.unobserve(we.value), me.value.disconnect());
|
|
266
270
|
});
|
|
267
|
-
function
|
|
271
|
+
function vl() {
|
|
268
272
|
let t = 0;
|
|
269
273
|
vt.value && (t = Array.from(vt.value.querySelectorAll("text")).reduce((o, s) => {
|
|
270
274
|
const r = s.getComputedTextLength();
|
|
@@ -273,14 +277,14 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
273
277
|
const l = ht.value ? ht.value.getBoundingClientRect().width : 0;
|
|
274
278
|
return t + l + (l ? 24 : 0);
|
|
275
279
|
}
|
|
276
|
-
const pt = y(0), bt = y(0),
|
|
280
|
+
const pt = y(0), bt = y(0), dl = Ea((t) => {
|
|
277
281
|
pt.value = t;
|
|
278
282
|
}, 100);
|
|
279
|
-
|
|
283
|
+
jl((t) => {
|
|
280
284
|
const l = je.value;
|
|
281
285
|
if (!l) return;
|
|
282
286
|
const a = new ResizeObserver((o) => {
|
|
283
|
-
|
|
287
|
+
dl(o[0].contentRect.height);
|
|
284
288
|
});
|
|
285
289
|
a.observe(l), t(() => a.disconnect());
|
|
286
290
|
}), Nt(() => {
|
|
@@ -294,20 +298,20 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
294
298
|
}), v = m(() => {
|
|
295
299
|
const { height: t, width: l } = ve.value, { right: a } = ve.value.paddingRatio;
|
|
296
300
|
let o = e.value.style.chart.lines.totalValues.show && j.dataset && j.dataset.length > 1 ? e.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, s = 0;
|
|
297
|
-
e.value.style.chart.grid.y.axisLabels.show && (s =
|
|
298
|
-
const r = e.value.style.chart.padding.top + o, n = l - l * a - bt.value, p = t - e.value.style.chart.padding.bottom - ea.value - o,
|
|
301
|
+
e.value.style.chart.grid.y.axisLabels.show && (s = vl());
|
|
302
|
+
const r = e.value.style.chart.padding.top + o, n = l - l * a - bt.value, p = t - e.value.style.chart.padding.bottom - ea.value - o, C = e.value.style.chart.padding.left + s, L = l - C - l * a - bt.value, k = t - r - e.value.style.chart.padding.bottom - ea.value - o;
|
|
299
303
|
return {
|
|
300
304
|
chartHeight: Math.max(0, t),
|
|
301
305
|
chartWidth: Math.max(0, l),
|
|
302
306
|
top: r,
|
|
303
307
|
right: Math.max(0, n),
|
|
304
308
|
bottom: Math.max(0, p),
|
|
305
|
-
left: Math.max(0,
|
|
309
|
+
left: Math.max(0, C),
|
|
306
310
|
width: Math.max(0, L),
|
|
307
|
-
height: Math.max(0,
|
|
311
|
+
height: Math.max(0, k)
|
|
308
312
|
};
|
|
309
|
-
}),
|
|
310
|
-
const { left: t, top: l, width: a, height: o } = v.value, s = c.value.start, r = c.value.end, n = Math.max(1, r - s), p = Math.max(0, Math.min(n, (le.value.start ?? s) - s)),
|
|
313
|
+
}), ml = m(() => {
|
|
314
|
+
const { left: t, top: l, width: a, height: o } = v.value, s = c.value.start, r = c.value.end, n = Math.max(1, r - s), p = Math.max(0, Math.min(n, (le.value.start ?? s) - s)), C = Math.max(0, Math.min(n, (le.value.end ?? r) - s)), L = Math.max(0, C - p), k = {
|
|
311
315
|
fill: e.value.style.chart.zoom.preview.fill,
|
|
312
316
|
stroke: e.value.style.chart.zoom.preview.stroke,
|
|
313
317
|
"stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
|
|
@@ -325,10 +329,10 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
325
329
|
y: l,
|
|
326
330
|
width: L * N,
|
|
327
331
|
height: o,
|
|
328
|
-
...
|
|
332
|
+
...k
|
|
329
333
|
};
|
|
330
334
|
}), ae = m(() => mt.value.map((t, l) => {
|
|
331
|
-
const a =
|
|
335
|
+
const a = lo(t.color) || hl.value[l] || ot[l] || ot[l % ot.length];
|
|
332
336
|
return {
|
|
333
337
|
...t,
|
|
334
338
|
shape: t.shape || "circle",
|
|
@@ -347,7 +351,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
347
351
|
), Ze = m(
|
|
348
352
|
() => ae.value.filter((t) => !X.value.includes(t.id) && t.standalone)
|
|
349
353
|
), ne = m(() => Math.max(...ae.value.filter((t) => !X.value.includes(t.id)).map((t) => t.series.length)));
|
|
350
|
-
function
|
|
354
|
+
function gl(t) {
|
|
351
355
|
Ee.value = t;
|
|
352
356
|
}
|
|
353
357
|
const c = y({
|
|
@@ -367,7 +371,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
367
371
|
(!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), c.value.start = l, c.value.end = a, le.value.start = l, le.value.end = a, _e.value && (_e.value.setStartValue(l), _e.value.setEndValue(a));
|
|
368
372
|
}
|
|
369
373
|
const Pe = y(null);
|
|
370
|
-
function
|
|
374
|
+
function fl() {
|
|
371
375
|
return new Promise((t) => requestAnimationFrame(
|
|
372
376
|
() => requestAnimationFrame(() => t())
|
|
373
377
|
));
|
|
@@ -376,8 +380,8 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
376
380
|
Pe.value && cancelAnimationFrame(Pe.value);
|
|
377
381
|
});
|
|
378
382
|
async function la() {
|
|
379
|
-
et(), await
|
|
380
|
-
await
|
|
383
|
+
et(), await Jl(), Pe.value && cancelAnimationFrame(Pe.value), Pe.value = requestAnimationFrame(async () => {
|
|
384
|
+
await fl(), et();
|
|
381
385
|
});
|
|
382
386
|
}
|
|
383
387
|
const Ke = m(() => Math.max(0, v.value.width / (c.value.end - c.value.start))), oa = m(() => We(
|
|
@@ -398,7 +402,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
398
402
|
{ length: l },
|
|
399
403
|
(o, s) => t.reduce((r, n) => r + Math.abs(n.series[s] ?? 0), 0)
|
|
400
404
|
);
|
|
401
|
-
}),
|
|
405
|
+
}), yl = m(() => {
|
|
402
406
|
if (!e.value.style.chart.zoom.minimap.show) return [];
|
|
403
407
|
const t = re.value, l = Ze.value, a = t.length ? [{
|
|
404
408
|
name: "",
|
|
@@ -412,7 +416,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
412
416
|
isVisible: !0
|
|
413
417
|
}));
|
|
414
418
|
return a.concat(o);
|
|
415
|
-
}),
|
|
419
|
+
}), pl = m(() => We(
|
|
416
420
|
re.value.filter((t) => !X.value.includes(t.id)).map((t) => ({
|
|
417
421
|
...t,
|
|
418
422
|
series: t.series.map((l, a) => {
|
|
@@ -443,37 +447,37 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
443
447
|
positive: l,
|
|
444
448
|
negative: a
|
|
445
449
|
};
|
|
446
|
-
}), ra = m(() =>
|
|
450
|
+
}), ra = m(() => pl.value.map((t, l) => ({
|
|
447
451
|
value: t,
|
|
448
452
|
sign: t >= 0 ? 1 : -1
|
|
449
453
|
})));
|
|
450
|
-
function
|
|
454
|
+
function bl() {
|
|
451
455
|
return { y0: $e.value?.[0]?.zero ?? v.value.bottom };
|
|
452
456
|
}
|
|
453
|
-
function
|
|
454
|
-
const { y0: l } =
|
|
457
|
+
function xl(t) {
|
|
458
|
+
const { y0: l } = bl(), a = e.value.style.chart.lines.totalValues, o = Math.max(2, a.fontSize * 1.3 + a.offsetY), s = (n) => Math.min(Math.max(n, v.value.top - e.value.style.chart.lines.totalValues.fontSize * 1.3), v.value.bottom + e.value.style.chart.lines.totalValues.fontSize * 2);
|
|
455
459
|
if ((ra.value?.[t]?.value ?? 0) >= 0 || e.value.style.chart.lines.distributed) {
|
|
456
460
|
let n = 1 / 0;
|
|
457
|
-
for (const
|
|
458
|
-
const L =
|
|
459
|
-
(L ?? 0) > 0 && Number.isFinite(
|
|
461
|
+
for (const C of T.value || []) {
|
|
462
|
+
const L = C?.series?.[t], k = C?.topY?.[t];
|
|
463
|
+
(L ?? 0) > 0 && Number.isFinite(k) && k < n && (n = k);
|
|
460
464
|
}
|
|
461
465
|
const p = Number.isFinite(n) ? n : l;
|
|
462
466
|
return s(p - o - e.value.style.chart.lines.totalValues.offsetY);
|
|
463
467
|
} else {
|
|
464
468
|
let n = -1 / 0;
|
|
465
|
-
for (const
|
|
466
|
-
const L =
|
|
467
|
-
(L ?? 0) < 0 && Number.isFinite(
|
|
469
|
+
for (const C of T.value || []) {
|
|
470
|
+
const L = C?.series?.[t], k = C?.topY?.[t];
|
|
471
|
+
(L ?? 0) < 0 && Number.isFinite(k) && k > n && (n = k);
|
|
468
472
|
}
|
|
469
473
|
const p = Number.isFinite(n) ? n : l;
|
|
470
474
|
return s(p + o + a.fontSize * 0.7 + e.value.style.chart.lines.totalValues.offsetY);
|
|
471
475
|
}
|
|
472
476
|
}
|
|
473
477
|
const $e = m(() => {
|
|
474
|
-
const t = Math.max(...Se.value.positive, 0), l = Math.min(...Se.value.negative, 0), a = Math.max(...Me.value.positive, 0), o = Math.min(...Me.value.negative, 0), s = Math.max(t, a), r = Math.min(l, o), n = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, p = e.value.style.chart.grid.scale.scaleMin,
|
|
478
|
+
const t = Math.max(...Se.value.positive, 0), l = Math.min(...Se.value.negative, 0), a = Math.max(...Me.value.positive, 0), o = Math.min(...Me.value.negative, 0), s = Math.max(t, a), r = Math.min(l, o), n = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, p = e.value.style.chart.grid.scale.scaleMin, C = e.value.style.chart.grid.scale.scaleMax, L = !e.value.style.chart.lines.distributed && (p !== null || C !== null), k = p !== null && !e.value.style.chart.lines.distributed ? p : n > 0 ? 0 : n, N = C !== null && !e.value.style.chart.lines.distributed ? C : s < 0 ? 0 : s, I = L ? st(k, N, e.value.style.chart.grid.scale.ticks) : rt(k, N, e.value.style.chart.grid.scale.ticks), w = Math.abs(Number(I.min) || 0), u = (Number(I.max) || 0) + w, b = u === 0 || !Number.isFinite(u) ? 1 : u, R = Array.isArray(I.ticks) && I.ticks.length ? I.ticks : [0], g = v.value.bottom - v.value.height * (w / b);
|
|
475
479
|
return R.map((S) => {
|
|
476
|
-
const P = Number(S) || 0, z = v.value.bottom - v.value.height * ((P +
|
|
480
|
+
const P = Number(S) || 0, z = v.value.bottom - v.value.height * ((P + w) / b);
|
|
477
481
|
return {
|
|
478
482
|
zero: g,
|
|
479
483
|
y: z,
|
|
@@ -493,15 +497,15 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
493
497
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
494
498
|
start: 0,
|
|
495
499
|
end: ne.value
|
|
496
|
-
})),
|
|
500
|
+
})), Cl = m(() => {
|
|
497
501
|
const t = e.value.style.chart.grid.x.timeLabels.modulo;
|
|
498
502
|
return oe.value.length ? Math.min(t, [...new Set(oe.value.map((l) => l.text))].length) : t;
|
|
499
|
-
}),
|
|
500
|
-
const t = e.value.style.chart.grid.x.timeLabels, l = oe.value || [], a = Oe.value || [], o = c.value.start ?? 0, s = x.value, r = ne.value, n = l.map((
|
|
501
|
-
return
|
|
503
|
+
}), Ct = m(() => {
|
|
504
|
+
const t = e.value.style.chart.grid.x.timeLabels, l = oe.value || [], a = Oe.value || [], o = c.value.start ?? 0, s = x.value, r = ne.value, n = l.map((C) => C?.text ?? ""), p = a.map((C) => C?.text ?? "");
|
|
505
|
+
return oo(
|
|
502
506
|
!!t.showOnlyFirstAndLast,
|
|
503
507
|
!!t.showOnlyAtModulo,
|
|
504
|
-
Math.max(1,
|
|
508
|
+
Math.max(1, Cl.value || 1),
|
|
505
509
|
n,
|
|
506
510
|
p,
|
|
507
511
|
o,
|
|
@@ -509,9 +513,9 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
509
513
|
r
|
|
510
514
|
);
|
|
511
515
|
}), na = m(() => {
|
|
512
|
-
const t = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l =
|
|
516
|
+
const t = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = yo({
|
|
513
517
|
useUTC: t.useUTC,
|
|
514
|
-
locale:
|
|
518
|
+
locale: po[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
515
519
|
januaryAsYear: t.januaryAsYear
|
|
516
520
|
});
|
|
517
521
|
return (a, o) => {
|
|
@@ -521,44 +525,44 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
521
525
|
}), ia = m(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
|
|
522
526
|
text: na.value(a, e.value.style.chart.zoom.timeFormat),
|
|
523
527
|
absoluteIndex: a
|
|
524
|
-
}))),
|
|
528
|
+
}))), kt = m(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
|
|
525
529
|
text: na.value(a, e.value.style.chart.tooltip.timeFormat),
|
|
526
530
|
absoluteIndex: a
|
|
527
|
-
}))),
|
|
531
|
+
}))), kl = m(() => {
|
|
528
532
|
if (!Fe.value && !he.value) return [];
|
|
529
|
-
const t = v.value.height, l = $e.value[0] ? $e.value[0].zero : v.value.bottom, a = c.value.start ?? 0, o = c.value.end ?? 0, s = Math.max(1, o - a), r = Math.max(...Se.value.positive, 0), n = Math.min(...Se.value.negative, 0), p = Math.max(...Me.value.positive, 0),
|
|
530
|
-
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin :
|
|
533
|
+
const t = v.value.height, l = $e.value[0] ? $e.value[0].zero : v.value.bottom, a = c.value.start ?? 0, o = c.value.end ?? 0, s = Math.max(1, o - a), r = Math.max(...Se.value.positive, 0), n = Math.min(...Se.value.negative, 0), p = Math.max(...Me.value.positive, 0), C = Math.min(...Me.value.negative, 0), L = Math.max(r, p), k = Math.min(n, C), N = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? st(
|
|
534
|
+
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : k > 0 ? 0 : k,
|
|
531
535
|
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : L < 0 ? 0 : L,
|
|
532
536
|
e.value.style.chart.grid.scale.ticks
|
|
533
537
|
) : rt(
|
|
534
|
-
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin :
|
|
538
|
+
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : k > 0 ? 0 : k,
|
|
535
539
|
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : L < 0 ? 0 : L,
|
|
536
540
|
e.value.style.chart.grid.scale.ticks
|
|
537
|
-
), { min: I, max:
|
|
541
|
+
), { min: I, max: w } = N, d = w + (I >= 0 ? 0 : Math.abs(I)) || 1, u = Array(s).fill(0), b = Array(s).fill(0), R = (g) => s <= 1 ? v.value.left + v.value.width / 2 : v.value.left + g / (s - 1) * v.value.width;
|
|
538
542
|
return ae.value.filter((g) => !X.value.includes(g.id)).map((g) => {
|
|
539
|
-
const S = [], P = [], z = [], F = new Array(s).fill(null),
|
|
543
|
+
const S = [], P = [], z = [], F = new Array(s).fill(null), V = new Array(s).fill(null);
|
|
540
544
|
for (let f = 0; f < s; f += 1) {
|
|
541
545
|
const $ = a + f, H = g.series?.[$], U = g.signedSeries?.[$], fe = H == null || Number.isNaN(H) ? 0 : H, $a = g.standalone ? fe / d : e.value.style.chart.lines.distributed ? fe / (oa.value[f] || 1) : fe / d;
|
|
542
546
|
if (fe >= 0) {
|
|
543
|
-
const
|
|
547
|
+
const Be = t * Math.abs($a);
|
|
544
548
|
if (g.standalone)
|
|
545
|
-
F[f] = l,
|
|
549
|
+
F[f] = l, V[f] = l - Be;
|
|
546
550
|
else {
|
|
547
|
-
const Ye = u[f], Ue = Ye +
|
|
548
|
-
F[f] = l - Ye,
|
|
551
|
+
const Ye = u[f], Ue = Ye + Be;
|
|
552
|
+
F[f] = l - Ye, V[f] = l - Ue, u[f] = Ue;
|
|
549
553
|
}
|
|
550
554
|
} else {
|
|
551
|
-
const
|
|
555
|
+
const Be = t * Math.abs($a);
|
|
552
556
|
if (g.standalone)
|
|
553
|
-
F[f] = l,
|
|
557
|
+
F[f] = l, V[f] = l + Be;
|
|
554
558
|
else {
|
|
555
|
-
const Ye = b[f], Ue = Ye +
|
|
556
|
-
F[f] = l + Ye,
|
|
559
|
+
const Ye = b[f], Ue = Ye + Be;
|
|
560
|
+
F[f] = l + Ye, V[f] = l + Ue, b[f] = Ue;
|
|
557
561
|
}
|
|
558
562
|
}
|
|
559
563
|
S.push(f), P.push(fe), z.push(U ?? (fe >= 0 ? 1 : -1));
|
|
560
564
|
}
|
|
561
|
-
const
|
|
565
|
+
const B = S.map((f) => ({ x: R(f), y: V[f] })), J = B.map((f) => f.x), G = P.reduce((f, $) => f + Math.abs($ || 0), 0), Y = G === 0 ? 1 : G, O = P.map((f, $) => {
|
|
562
566
|
if (e.value.style.chart.lines.distributed && !g.standalone) {
|
|
563
567
|
const H = S[$], U = oa.value[H] || 1;
|
|
564
568
|
return (f || 0) / U;
|
|
@@ -568,9 +572,9 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
568
572
|
return {
|
|
569
573
|
...g,
|
|
570
574
|
x: J,
|
|
571
|
-
points:
|
|
575
|
+
points: B,
|
|
572
576
|
baseY: S.map((f) => F[f]),
|
|
573
|
-
topY: S.map((f) =>
|
|
577
|
+
topY: S.map((f) => V[f]),
|
|
574
578
|
series: P,
|
|
575
579
|
signedSeries: z,
|
|
576
580
|
proportions: O,
|
|
@@ -579,7 +583,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
579
583
|
};
|
|
580
584
|
});
|
|
581
585
|
}), T = m(() => {
|
|
582
|
-
const t = (
|
|
586
|
+
const t = (w) => typeof w == "string" ? w.replace(
|
|
583
587
|
/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i,
|
|
584
588
|
""
|
|
585
589
|
).trim() : "", l = Math.max(...Se.value.positive, 0), a = Math.min(...Se.value.negative, 0), o = Math.max(...Me.value.positive, 0), s = Math.min(...Me.value.negative, 0), r = Math.max(l, o), n = Math.min(a, s), p = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? st(
|
|
@@ -590,15 +594,15 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
590
594
|
e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : n > 0 ? 0 : n,
|
|
591
595
|
e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : r < 0 ? 0 : r,
|
|
592
596
|
e.value.style.chart.grid.scale.ticks
|
|
593
|
-
),
|
|
597
|
+
), C = Number(p.min) || 0, L = Number(p.max) || 0, k = Math.abs(C), N = L + k || 1, I = (w) => {
|
|
594
598
|
if (e.value.style.chart.lines.distributed) {
|
|
595
|
-
const d = Math.max(0, Math.min(1,
|
|
599
|
+
const d = Math.max(0, Math.min(1, w));
|
|
596
600
|
return minimapH - minimapH * d;
|
|
597
601
|
}
|
|
598
|
-
return clampY(minimapH - minimapH * (((
|
|
602
|
+
return clampY(minimapH - minimapH * (((w ?? 0) + k) / N));
|
|
599
603
|
};
|
|
600
|
-
return
|
|
601
|
-
const d =
|
|
604
|
+
return kl.value.map((w) => {
|
|
605
|
+
const d = w.x.length, u = Array.isArray(w.fullSeries) ? w.fullSeries : w.series, b = ({ left: Y = 0, unitW: O }) => {
|
|
602
606
|
const f = u.length;
|
|
603
607
|
return !Number.isFinite(O) || O <= 0 || f <= 0 ? [] : f === 1 ? [Y + O * 0.5] : u.map(($, H) => Y + H * O);
|
|
604
608
|
}, R = ({ minimapH: Y }) => !Number.isFinite(Y) || Y <= 0 ? [] : u.map((O) => I(O || 0)), g = ({ minimapH: Y }) => {
|
|
@@ -608,7 +612,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
608
612
|
};
|
|
609
613
|
if (d === 0)
|
|
610
614
|
return {
|
|
611
|
-
...
|
|
615
|
+
...w,
|
|
612
616
|
points: [],
|
|
613
617
|
smoothPath: "",
|
|
614
618
|
straightPath: "",
|
|
@@ -618,17 +622,17 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
618
622
|
yMinimap: R,
|
|
619
623
|
yMinimapBase: g
|
|
620
624
|
};
|
|
621
|
-
const S =
|
|
625
|
+
const S = w.x.map((Y, O) => ({ x: Y, y: w.topY[O] })), P = w.x.map((Y, O) => ({ x: Y, y: w.baseY[O] })), z = d >= 2 ? pe(S) : `M${S[0].x},${S[0].y}`, F = d >= 2 ? be(S) : `M${S[0].x},${S[0].y}`, V = d >= 2 ? `M${t(z)}` : z, B = d >= 2 ? `M${t(F)}` : F;
|
|
622
626
|
let J = "", G = "";
|
|
623
627
|
if (e.value.style.chart.lines.useArea && d >= 2) {
|
|
624
628
|
const Y = pe([...P].reverse()), O = be([...P].reverse()), f = P[P.length - 1];
|
|
625
629
|
J = `M${S[0].x},${S[0].y} ${t(z)} L${f.x},${f.y} ${t(Y)} Z`, G = `M${S[0].x},${S[0].y} ${t(F)} L${f.x},${f.y} ${t(O)} Z`;
|
|
626
630
|
}
|
|
627
631
|
return {
|
|
628
|
-
...
|
|
632
|
+
...w,
|
|
629
633
|
points: S,
|
|
630
|
-
smoothPath:
|
|
631
|
-
straightPath:
|
|
634
|
+
smoothPath: V,
|
|
635
|
+
straightPath: B,
|
|
632
636
|
smoothArea: J,
|
|
633
637
|
straightArea: G,
|
|
634
638
|
xMinimap: b,
|
|
@@ -654,10 +658,10 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
654
658
|
}
|
|
655
659
|
}
|
|
656
660
|
}
|
|
657
|
-
function
|
|
661
|
+
function Al(t) {
|
|
658
662
|
Re.value || tt.value || t !== c.value.start && (c.value.start = t, le.value.start = t, Qe());
|
|
659
663
|
}
|
|
660
|
-
function
|
|
664
|
+
function wl(t) {
|
|
661
665
|
if (Re.value || tt.value) return;
|
|
662
666
|
const l = ca(t);
|
|
663
667
|
l !== c.value.end && (c.value.end = l, le.value.end = l, Qe());
|
|
@@ -666,8 +670,8 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
666
670
|
left: v.value.left,
|
|
667
671
|
right: v.value.right,
|
|
668
672
|
width: v.value.width
|
|
669
|
-
})), tt = y(!1),
|
|
670
|
-
|
|
673
|
+
})), tt = y(!1), Sl = m(() => ve.value.width), Ml = m(() => ve.value.height);
|
|
674
|
+
So({
|
|
671
675
|
timeLabelsEls: je,
|
|
672
676
|
timeLabels: oe,
|
|
673
677
|
slicer: c,
|
|
@@ -675,32 +679,32 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
675
679
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
676
680
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
677
681
|
isAutoSize: !1,
|
|
678
|
-
width:
|
|
679
|
-
height:
|
|
682
|
+
width: Sl,
|
|
683
|
+
height: Ml,
|
|
680
684
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
681
685
|
});
|
|
682
|
-
const
|
|
686
|
+
const At = y(null);
|
|
683
687
|
function ha(t) {
|
|
684
|
-
const l =
|
|
688
|
+
const l = Ae.value;
|
|
685
689
|
if (!l) return null;
|
|
686
690
|
if (l.createSVGPoint && l.getScreenCTM) {
|
|
687
691
|
const N = l.createSVGPoint();
|
|
688
692
|
N.x = t.clientX, N.y = t.clientY;
|
|
689
693
|
const I = l.getScreenCTM();
|
|
690
694
|
if (I) {
|
|
691
|
-
const
|
|
692
|
-
return { x:
|
|
695
|
+
const w = N.matrixTransform(I.inverse());
|
|
696
|
+
return { x: w.x, y: w.y, ok: !0 };
|
|
693
697
|
}
|
|
694
698
|
}
|
|
695
|
-
const a = l.getBoundingClientRect(), o = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, s = Math.min(a.width / o.width, a.height / o.height), r = o.width * s, n = o.height * s, p = (a.width - r) / 2,
|
|
696
|
-
return { x: L, y:
|
|
699
|
+
const a = l.getBoundingClientRect(), o = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, s = Math.min(a.width / o.width, a.height / o.height), r = o.width * s, n = o.height * s, p = (a.width - r) / 2, C = (a.height - n) / 2, L = (t.clientX - a.left - p) / s + o.x, k = (t.clientY - a.top - C) / s + o.y;
|
|
700
|
+
return { x: L, y: k, ok: !0 };
|
|
697
701
|
}
|
|
698
702
|
let xe = 0;
|
|
699
|
-
const K = m(() => Math.max(1, c.value.end - c.value.start)),
|
|
703
|
+
const K = m(() => Math.max(1, c.value.end - c.value.start)), wt = m(
|
|
700
704
|
() => K.value > 1 ? v.value.width / (K.value - 1) : 0
|
|
701
705
|
);
|
|
702
706
|
function se(t) {
|
|
703
|
-
return K.value <= 1 ? v.value.left + v.value.width / 2 : v.value.left + t *
|
|
707
|
+
return K.value <= 1 ? v.value.left + v.value.width / 2 : v.value.left + t * wt.value;
|
|
704
708
|
}
|
|
705
709
|
function va(t) {
|
|
706
710
|
if (K.value <= 1)
|
|
@@ -708,11 +712,11 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
708
712
|
const l = t === 0 ? v.value.left : (se(t - 1) + se(t)) / 2, a = t === K.value - 1 ? v.value.left + v.value.width : (se(t) + se(t + 1)) / 2;
|
|
709
713
|
return { x: l, width: Math.max(0, a - l) };
|
|
710
714
|
}
|
|
711
|
-
function
|
|
715
|
+
function $l(t) {
|
|
712
716
|
Ie.value || (xe && cancelAnimationFrame(xe), xe = requestAnimationFrame(() => {
|
|
713
717
|
xe = 0;
|
|
714
718
|
const l = ha(t);
|
|
715
|
-
if (!l || !
|
|
719
|
+
if (!l || !Ae.value) {
|
|
716
720
|
St();
|
|
717
721
|
return;
|
|
718
722
|
}
|
|
@@ -723,30 +727,30 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
723
727
|
}
|
|
724
728
|
let n = 0;
|
|
725
729
|
if (K.value > 1) {
|
|
726
|
-
const p = (l.x - a) /
|
|
730
|
+
const p = (l.x - a) / wt.value;
|
|
727
731
|
n = Math.round(p);
|
|
728
732
|
} else
|
|
729
733
|
n = 0;
|
|
730
|
-
n < 0 && (n = 0), n > K.value - 1 && (n = K.value - 1),
|
|
734
|
+
n < 0 && (n = 0), n > K.value - 1 && (n = K.value - 1), At.value !== n && (At.value = n, da(!0, n));
|
|
731
735
|
}));
|
|
732
736
|
}
|
|
733
|
-
function
|
|
737
|
+
function Ll(t) {
|
|
734
738
|
const l = ha(t);
|
|
735
|
-
if (!l || !
|
|
739
|
+
if (!l || !Ae.value) return;
|
|
736
740
|
const { left: a, right: o, top: s, bottom: r } = v.value;
|
|
737
741
|
if (l.x < a || l.x > o || l.y < s || l.y > r) return;
|
|
738
742
|
let n = 0;
|
|
739
743
|
if (K.value > 1) {
|
|
740
|
-
const p = (l.x - a) /
|
|
744
|
+
const p = (l.x - a) / wt.value;
|
|
741
745
|
n = Math.round(p);
|
|
742
746
|
} else
|
|
743
747
|
n = 0;
|
|
744
748
|
n < 0 && (n = 0), n > K.value - 1 && (n = K.value - 1), Ma({
|
|
745
749
|
seriesIndex: n,
|
|
746
|
-
datapoint:
|
|
747
|
-
}),
|
|
750
|
+
datapoint: Aa(n)
|
|
751
|
+
}), Tl(n);
|
|
748
752
|
}
|
|
749
|
-
function
|
|
753
|
+
function Tl(t) {
|
|
750
754
|
const l = JSON.parse(JSON.stringify(T.value)).map((a) => ({
|
|
751
755
|
name: a.name,
|
|
752
756
|
value: a.series[t] === 0 ? 0 : a.series[t] || null,
|
|
@@ -770,7 +774,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
770
774
|
}
|
|
771
775
|
);
|
|
772
776
|
function St() {
|
|
773
|
-
xe && (cancelAnimationFrame(xe), xe = 0),
|
|
777
|
+
xe && (cancelAnimationFrame(xe), xe = 0), At.value = null, da(!1, null);
|
|
774
778
|
}
|
|
775
779
|
const x = y(null), Mt = m(() => {
|
|
776
780
|
const t = x.value, l = t == null ? null : xt(t);
|
|
@@ -785,9 +789,9 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
785
789
|
id: a.id,
|
|
786
790
|
standalone: !!a.standalone
|
|
787
791
|
}));
|
|
788
|
-
}),
|
|
789
|
-
const t = e.value.style.chart.tooltip.customFormat, l = [...Mt.value].reverse(), a = l.filter((u) => !u.standalone), o = l.filter((u) => u.standalone), s = a.map((u) => u.value).filter((u) =>
|
|
790
|
-
if (
|
|
792
|
+
}), Nl = m(() => {
|
|
793
|
+
const t = e.value.style.chart.tooltip.customFormat, l = [...Mt.value].reverse(), a = l.filter((u) => !u.standalone), o = l.filter((u) => u.standalone), s = a.map((u) => u.value).filter((u) => so(u) && u !== null).reduce((u, b) => Math.abs(u) + Math.abs(b), 0);
|
|
794
|
+
if (ro(t) && no(
|
|
791
795
|
() => t({
|
|
792
796
|
absoluteIndex: x.value + c.value.start,
|
|
793
797
|
seriesIndex: x.value,
|
|
@@ -807,12 +811,12 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
807
811
|
showValue: r,
|
|
808
812
|
showTotal: n,
|
|
809
813
|
totalTranslation: p,
|
|
810
|
-
showPercentage:
|
|
814
|
+
showPercentage: C,
|
|
811
815
|
borderColor: L,
|
|
812
|
-
roundingValue:
|
|
816
|
+
roundingValue: k,
|
|
813
817
|
roundingPercentage: N
|
|
814
|
-
} = e.value.style.chart.tooltip, I = (u) => !u.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(u.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" /></svg>` : u.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" points="${
|
|
815
|
-
const R = b ?
|
|
818
|
+
} = e.value.style.chart.tooltip, I = (u) => !u.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(u.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" /></svg>` : u.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" points="${mo({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>` : u.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ge({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ge({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ge({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ge({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ge({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, w = (u, b) => {
|
|
819
|
+
const R = b ? Ce({
|
|
816
820
|
v: isNaN((u.value ?? 0) / (s || 1)) ? 0 : Math.abs(u.value ?? 0) / (s || 1) * 100,
|
|
817
821
|
s: "%",
|
|
818
822
|
r: N
|
|
@@ -824,34 +828,34 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
824
828
|
${r ? Xe(
|
|
825
829
|
e.value.style.chart.lines.dataLabels.formatter,
|
|
826
830
|
u.sourceValue,
|
|
827
|
-
|
|
831
|
+
Ce({
|
|
828
832
|
p: e.value.style.chart.lines.dataLabels.prefix,
|
|
829
833
|
v: u.sourceValue,
|
|
830
834
|
s: e.value.style.chart.lines.dataLabels.suffix,
|
|
831
|
-
r:
|
|
835
|
+
r: k
|
|
832
836
|
})
|
|
833
837
|
) : ""} ${g}${R}${S}
|
|
834
838
|
</div>
|
|
835
839
|
`;
|
|
836
840
|
};
|
|
837
841
|
let d = "";
|
|
838
|
-
return (oe.value[x.value] && oe.value[x.value].text ||
|
|
842
|
+
return (oe.value[x.value] && oe.value[x.value].text || kt.value[x.value] && kt.value[x.value].text && e.value.style.chart.tooltip.showTimeLabel) && (d += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? oe.value[x.value]?.text : kt.value[x.value]?.text || Oe.value[x.value]?.text || ""}</div>`), n && a.length > 1 && (d += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
839
843
|
<span>${p}:</span>
|
|
840
844
|
<span>${Xe(
|
|
841
845
|
e.value.style.chart.lines.dataLabels.formatter,
|
|
842
846
|
qe(s),
|
|
843
|
-
|
|
847
|
+
Ce({
|
|
844
848
|
p: e.value.style.chart.lines.dataLabels.prefix,
|
|
845
849
|
v: qe(s),
|
|
846
850
|
s: e.value.style.chart.lines.dataLabels.suffix,
|
|
847
|
-
r:
|
|
851
|
+
r: k
|
|
848
852
|
}),
|
|
849
853
|
{ datapoint: { name: p, value: qe(s) } }
|
|
850
854
|
)}</span>
|
|
851
855
|
</div>`), a.forEach((u) => {
|
|
852
|
-
d +=
|
|
856
|
+
d += w(u, C);
|
|
853
857
|
}), o.length && (d += `<div style="border-top:1px solid ${re.value.length ? L : "transparent"}; margin:${re.value.length ? "6px 0" : "0"};"></div>`, o.forEach((u) => {
|
|
854
|
-
d +=
|
|
858
|
+
d += w(u, !1);
|
|
855
859
|
})), `<div>${d}</div>`;
|
|
856
860
|
});
|
|
857
861
|
function da(t, l = null) {
|
|
@@ -891,7 +895,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
891
895
|
opacity: X.value.includes(t.id) ? 0.5 : 1,
|
|
892
896
|
segregate: () => $t(t),
|
|
893
897
|
isSegregated: X.value.includes(t.id)
|
|
894
|
-
}))),
|
|
898
|
+
}))), Fl = m(() => ({
|
|
895
899
|
cy: "stackline-legend",
|
|
896
900
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
897
901
|
color: e.value.style.chart.legend.color,
|
|
@@ -905,11 +909,11 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
905
909
|
const l = ae.value.find((a) => a.name === t);
|
|
906
910
|
return l || (e.value.debug && console.warn(`VueUiStackline - Series name not found "${t}"`), null);
|
|
907
911
|
}
|
|
908
|
-
function
|
|
912
|
+
function _l(t) {
|
|
909
913
|
const l = ga(t);
|
|
910
914
|
l !== null && X.value.includes(l.id) && $t({ id: l.id });
|
|
911
915
|
}
|
|
912
|
-
function
|
|
916
|
+
function Dl(t) {
|
|
913
917
|
const l = ga(t);
|
|
914
918
|
l !== null && (X.value.includes(l.id) || $t({ id: l.id }));
|
|
915
919
|
}
|
|
@@ -917,26 +921,26 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
917
921
|
if (T.value.length === 0)
|
|
918
922
|
return { head: [], body: [], config: {}, columnNames: [] };
|
|
919
923
|
const t = T.value.map(({ name: a, color: o }) => ({ label: a, color: o })), l = [];
|
|
920
|
-
return
|
|
924
|
+
return Ct.value.forEach((a) => {
|
|
921
925
|
const o = a.absoluteIndex, r = [e.value.style.chart.grid.x.timeLabels.values?.[o] ? a.text : o + 1];
|
|
922
926
|
ae.value.forEach((n) => {
|
|
923
|
-
const p = n.series?.[o],
|
|
924
|
-
r.push(
|
|
927
|
+
const p = n.series?.[o], C = Number((p ?? 0).toFixed(e.value.table.td.roundingValue));
|
|
928
|
+
r.push(C);
|
|
925
929
|
}), l.push(r);
|
|
926
930
|
}), { head: t, body: l };
|
|
927
931
|
});
|
|
928
932
|
function Tt(t = null) {
|
|
929
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...fa.value.head.map((n) => n.label)], o = fa.value.body, s = l.concat([a]).concat(o), r =
|
|
930
|
-
t ? t(r) :
|
|
933
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...fa.value.head.map((n) => n.label)], o = fa.value.body, s = l.concat([a]).concat(o), r = ho(s);
|
|
934
|
+
t ? t(r) : vo({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-stackline" });
|
|
931
935
|
}
|
|
932
936
|
const at = m(() => {
|
|
933
937
|
const t = [""].concat(T.value.map((r) => r.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'), l = [], a = Math.max(0, c.value.end - c.value.start);
|
|
934
938
|
for (let r = 0; r < a; r += 1) {
|
|
935
|
-
const n = xt(r), p = e.value.style.chart.grid.x.timeLabels.values?.[n] ? oe.value?.[r]?.text ?? n + 1 : n + 1,
|
|
939
|
+
const n = xt(r), p = e.value.style.chart.grid.x.timeLabels.values?.[n] ? oe.value?.[r]?.text ?? n + 1 : n + 1, C = T.value.map((N) => {
|
|
936
940
|
const I = N.series?.[r] ?? 0;
|
|
937
941
|
return Number(I.toFixed(e.value.table.td.roundingValue));
|
|
938
|
-
}),
|
|
939
|
-
l.push([p].concat(
|
|
942
|
+
}), k = T.value.filter((N) => !N.standalone).map((N) => N.series?.[r] ?? 0).reduce((N, I) => N + I, 0);
|
|
943
|
+
l.push([p].concat(C).concat(Number(k.toFixed(e.value.table.td.roundingValue))));
|
|
940
944
|
}
|
|
941
945
|
const o = {
|
|
942
946
|
th: {
|
|
@@ -952,23 +956,23 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
952
956
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
953
957
|
}, s = [e.value.table.columnNames.period].concat(T.value.map((r) => r.name)).concat(e.value.table.columnNames.total);
|
|
954
958
|
return { head: t, body: l, config: o, colNames: s };
|
|
955
|
-
}),
|
|
956
|
-
svg:
|
|
957
|
-
title:
|
|
958
|
-
legend:
|
|
959
|
+
}), zl = m(() => e.value.style.chart.backgroundColor), El = m(() => e.value.style.chart.legend), Il = m(() => e.value.style.chart.title), { exportSvg: Pl, getSvg: Ol } = ko({
|
|
960
|
+
svg: Ae,
|
|
961
|
+
title: Il,
|
|
962
|
+
legend: El,
|
|
959
963
|
legendItems: Lt,
|
|
960
|
-
backgroundColor:
|
|
964
|
+
backgroundColor: zl
|
|
961
965
|
});
|
|
962
966
|
async function ya({ isCb: t }) {
|
|
963
967
|
if (t) {
|
|
964
|
-
const { blob: l, url: a, text: o, dataUrl: s } = await
|
|
968
|
+
const { blob: l, url: a, text: o, dataUrl: s } = await Ol();
|
|
965
969
|
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: s });
|
|
966
970
|
} else
|
|
967
|
-
|
|
971
|
+
Pl();
|
|
968
972
|
}
|
|
969
|
-
async function
|
|
973
|
+
async function Rl({ scale: t = 2 } = {}) {
|
|
970
974
|
if (!ce.value) return;
|
|
971
|
-
const { width: l, height: a } = ce.value.getBoundingClientRect(), o = l / a, { imageUri: s, base64: r } = await
|
|
975
|
+
const { width: l, height: a } = ce.value.getBoundingClientRect(), o = l / a, { imageUri: s, base64: r } = await $o({ domElement: ce.value, base64: !0, img: !0, scale: t });
|
|
972
976
|
return {
|
|
973
977
|
imageUri: s,
|
|
974
978
|
base64: r,
|
|
@@ -978,10 +982,10 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
978
982
|
aspectRatio: o
|
|
979
983
|
};
|
|
980
984
|
}
|
|
981
|
-
const
|
|
985
|
+
const Ve = m(() => {
|
|
982
986
|
const t = e.value.table.useDialog && !e.value.table.show, l = q.value.showTable;
|
|
983
987
|
return {
|
|
984
|
-
component: t ?
|
|
988
|
+
component: t ? tl : Ja,
|
|
985
989
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
986
990
|
props: t ? {
|
|
987
991
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -1020,16 +1024,16 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1020
1024
|
function xa() {
|
|
1021
1025
|
q.value.showTable = !q.value.showTable;
|
|
1022
1026
|
}
|
|
1023
|
-
function
|
|
1027
|
+
function Ca() {
|
|
1024
1028
|
q.value.dataLabels.show = !q.value.dataLabels.show;
|
|
1025
1029
|
}
|
|
1026
|
-
function
|
|
1030
|
+
function ka() {
|
|
1027
1031
|
q.value.showTooltip = !q.value.showTooltip;
|
|
1028
1032
|
}
|
|
1029
|
-
function
|
|
1033
|
+
function Vl() {
|
|
1030
1034
|
return T.value;
|
|
1031
1035
|
}
|
|
1032
|
-
function
|
|
1036
|
+
function Aa(t) {
|
|
1033
1037
|
const l = t ?? 0, a = xt(l);
|
|
1034
1038
|
return JSON.parse(JSON.stringify(T.value)).map((o) => {
|
|
1035
1039
|
const s = o.series[l], r = o.signedSeries?.[l], n = s === 0 ? 0 : (r === -1 && s >= 0 ? -s : s) || null;
|
|
@@ -1044,7 +1048,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1044
1048
|
};
|
|
1045
1049
|
});
|
|
1046
1050
|
}
|
|
1047
|
-
const
|
|
1051
|
+
const Bl = m(() => Array(ne.value).fill(0).map((t, l) => Aa(l)));
|
|
1048
1052
|
Le(() => j.selectedXIndex, (t) => {
|
|
1049
1053
|
if ([null, void 0].includes(j.selectedXIndex)) {
|
|
1050
1054
|
x.value = null;
|
|
@@ -1053,7 +1057,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1053
1057
|
const l = t - c.value.start;
|
|
1054
1058
|
l < 0 || t >= c.value.end ? x.value = null : x.value = l ?? null;
|
|
1055
1059
|
}, { immediate: !0 });
|
|
1056
|
-
const
|
|
1060
|
+
const wa = m(() => {
|
|
1057
1061
|
if (e.value.style.chart.lines.distributed)
|
|
1058
1062
|
return { min: -1, max: 1 };
|
|
1059
1063
|
const t = re.value, l = Ze.value, a = Math.max(
|
|
@@ -1073,18 +1077,18 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1073
1077
|
b > 0 && (r[u] = Math.max(r[u], b)), b < 0 && (n[u] = Math.min(n[u], b));
|
|
1074
1078
|
}
|
|
1075
1079
|
});
|
|
1076
|
-
const p = Math.max(0, ...o, ...r),
|
|
1077
|
-
L !== null ? L :
|
|
1078
|
-
|
|
1080
|
+
const p = Math.max(0, ...o, ...r), C = Math.min(0, ...s, ...n), L = e.value.style.chart.grid.scale.scaleMin, k = e.value.style.chart.grid.scale.scaleMax, N = e.value.style.chart.grid.scale.ticks, w = !e.value.style.chart.lines.distributed && (L !== null || k !== null) ? st(
|
|
1081
|
+
L !== null ? L : C > 0 ? 0 : C,
|
|
1082
|
+
k !== null ? k : p < 0 ? 0 : p,
|
|
1079
1083
|
N
|
|
1080
1084
|
) : rt(
|
|
1081
|
-
L !== null ? L :
|
|
1082
|
-
|
|
1085
|
+
L !== null ? L : C > 0 ? 0 : C,
|
|
1086
|
+
k !== null ? k : p < 0 ? 0 : p,
|
|
1083
1087
|
N
|
|
1084
1088
|
);
|
|
1085
|
-
return { min: Number(
|
|
1089
|
+
return { min: Number(w.min) || 0, max: Number(w.max) || 0 };
|
|
1086
1090
|
});
|
|
1087
|
-
function
|
|
1091
|
+
function Yl({ minimapH: t, unitW: l }) {
|
|
1088
1092
|
const a = (d) => typeof d == "string" ? d.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
|
|
1089
1093
|
if (!Number.isFinite(t) || t <= 0 || !Number.isFinite(l) || l <= 0)
|
|
1090
1094
|
return "";
|
|
@@ -1095,8 +1099,8 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1095
1099
|
const d = Array.from({ length: r }, (g, S) => {
|
|
1096
1100
|
let P = 0;
|
|
1097
1101
|
return o.forEach((z) => {
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1102
|
+
const V = (Array.isArray(z.fullSeries) ? z.fullSeries : z.series)?.[S];
|
|
1103
|
+
V != null && !Number.isNaN(V) && (P += Math.abs(V));
|
|
1100
1104
|
}), P || 1;
|
|
1101
1105
|
}), u = (g) => {
|
|
1102
1106
|
const S = Math.max(0, Math.min(1, g || 0));
|
|
@@ -1108,9 +1112,9 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1108
1112
|
const ge = S?.[U], fe = ge == null || Number.isNaN(ge) ? 0 : Math.abs(ge) / d[U];
|
|
1109
1113
|
z[U] = R[U], R[U] += fe, P[U] = R[U];
|
|
1110
1114
|
}
|
|
1111
|
-
const F = P.map(u),
|
|
1115
|
+
const F = P.map(u), V = z.map(u), B = n.map((U, ge) => ({ x: U, y: F[ge] })), J = n.map((U, ge) => ({ x: U, y: V[ge] })), G = pe(B), Y = pe([...J].reverse()), O = be(B), f = be([...J].reverse()), $ = J[J.length - 1];
|
|
1112
1116
|
if (e.value.style.chart.lines.useArea) {
|
|
1113
|
-
const U = e.value.style.chart.lines.smooth ? `M${
|
|
1117
|
+
const U = e.value.style.chart.lines.smooth ? `M${B[0].x},${B[0].y} ${a(G)} L${$.x},${$.y} ${a(Y)} Z` : `M${B[0].x},${B[0].y} ${a(O)} L${$.x},${$.y} ${a(f)} Z`;
|
|
1114
1118
|
b.push(
|
|
1115
1119
|
`<path d="${U}"
|
|
1116
1120
|
fill="${zt.pattern ? `url(#pattern_${Q.value}_${g.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, g.color)}"
|
|
@@ -1118,7 +1122,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1118
1122
|
stroke="none" />`
|
|
1119
1123
|
);
|
|
1120
1124
|
}
|
|
1121
|
-
const H = e.value.style.chart.lines.smooth ? `M${
|
|
1125
|
+
const H = e.value.style.chart.lines.smooth ? `M${B[0].x},${B[0].y} ${a(G)}` : `M${B[0].x},${B[0].y} ${a(O)}`;
|
|
1122
1126
|
b.push(
|
|
1123
1127
|
`<path d="${H}"
|
|
1124
1128
|
fill="none"
|
|
@@ -1127,9 +1131,9 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1127
1131
|
stroke-linecap="round" />`
|
|
1128
1132
|
);
|
|
1129
1133
|
}), s.length && s.forEach((g) => {
|
|
1130
|
-
const S = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, P = Array.from({ length: r }, (J, G) => u(Math.abs(S?.[G] ?? 0) / d[G])), z = n.map((J, G) => ({ x: J, y: P[G] })), F = pe(z),
|
|
1134
|
+
const S = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, P = Array.from({ length: r }, (J, G) => u(Math.abs(S?.[G] ?? 0) / d[G])), z = n.map((J, G) => ({ x: J, y: P[G] })), F = pe(z), V = be(z), B = e.value.style.chart.lines.smooth ? `M${z[0].x},${z[0].y} ${a(F)}` : `M${z[0].x},${z[0].y} ${a(V)}`;
|
|
1131
1135
|
b.push(
|
|
1132
|
-
`<path d="${
|
|
1136
|
+
`<path d="${B}"
|
|
1133
1137
|
fill="none"
|
|
1134
1138
|
stroke="${g.color}"
|
|
1135
1139
|
stroke-width="${e.value.style.chart.lines.strokeWidth}"
|
|
@@ -1137,7 +1141,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1137
1141
|
);
|
|
1138
1142
|
}), b.join("");
|
|
1139
1143
|
}
|
|
1140
|
-
const p =
|
|
1144
|
+
const p = wa.value.min, C = wa.value.max, L = Math.abs(p), k = C + L || 1, N = (d) => Math.max(0, Math.min(t, d)), I = (d) => N(t - t * (((d ?? 0) + L) / k)), w = [];
|
|
1141
1145
|
if (o.length) {
|
|
1142
1146
|
const d = Array(r).fill(0), u = Array(r).fill(0);
|
|
1143
1147
|
o.forEach((b) => {
|
|
@@ -1146,18 +1150,18 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1146
1150
|
const H = R?.[$] ?? 0;
|
|
1147
1151
|
H >= 0 ? (S[$] = d[$], d[$] += H, g[$] = d[$]) : (S[$] = u[$], u[$] += H, g[$] = u[$]);
|
|
1148
1152
|
}
|
|
1149
|
-
const P = g.map(I), z = S.map(I), F = n.map(($, H) => ({ x: $, y: P[H] })),
|
|
1153
|
+
const P = g.map(I), z = S.map(I), F = n.map(($, H) => ({ x: $, y: P[H] })), V = n.map(($, H) => ({ x: $, y: z[H] })), B = pe(F), J = pe([...V].reverse()), G = be(F), Y = be([...V].reverse()), O = V[V.length - 1];
|
|
1150
1154
|
if (e.value.style.chart.lines.useArea) {
|
|
1151
|
-
const $ = e.value.style.chart.lines.smooth ? `M${F[0].x},${F[0].y} ${a(
|
|
1152
|
-
|
|
1155
|
+
const $ = e.value.style.chart.lines.smooth ? `M${F[0].x},${F[0].y} ${a(B)} L${O.x},${O.y} ${a(J)} Z` : `M${F[0].x},${F[0].y} ${a(G)} L${O.x},${O.y} ${a(Y)} Z`;
|
|
1156
|
+
w.push(
|
|
1153
1157
|
`<path d="${$}"
|
|
1154
1158
|
fill="${zt.pattern ? `url(#pattern_${Q.value}_${b.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, b.color)}"
|
|
1155
1159
|
opacity="${e.value.style.chart.lines.areaOpacity}"
|
|
1156
1160
|
stroke="none" />`
|
|
1157
1161
|
);
|
|
1158
1162
|
}
|
|
1159
|
-
const f = e.value.style.chart.lines.smooth ? `M${F[0].x},${F[0].y} ${a(
|
|
1160
|
-
|
|
1163
|
+
const f = e.value.style.chart.lines.smooth ? `M${F[0].x},${F[0].y} ${a(B)}` : `M${F[0].x},${F[0].y} ${a(G)}`;
|
|
1164
|
+
w.push(
|
|
1161
1165
|
`<path d="${f}"
|
|
1162
1166
|
fill="none"
|
|
1163
1167
|
stroke="${b.color}"
|
|
@@ -1168,26 +1172,26 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1168
1172
|
}
|
|
1169
1173
|
return s.length && s.forEach((d) => {
|
|
1170
1174
|
const b = (Array.isArray(d.fullSeries) ? d.fullSeries : d.series).map(I), R = n.map((z, F) => ({ x: z, y: b[F] })), g = pe(R), S = be(R), P = e.value.style.chart.lines.smooth ? `M${R[0].x},${R[0].y} ${a(g)}` : `M${R[0].x},${R[0].y} ${a(S)}`;
|
|
1171
|
-
|
|
1175
|
+
w.push(
|
|
1172
1176
|
`<path d="${P}"
|
|
1173
1177
|
fill="none"
|
|
1174
1178
|
stroke="${d.color}"
|
|
1175
1179
|
stroke-width="${e.value.style.chart.lines.strokeWidth}"
|
|
1176
1180
|
stroke-linecap="round" />`
|
|
1177
1181
|
);
|
|
1178
|
-
}),
|
|
1182
|
+
}), w.join("");
|
|
1179
1183
|
}
|
|
1180
|
-
function
|
|
1184
|
+
function Ul(t, l) {
|
|
1181
1185
|
const a = e.value.style.chart.lines, o = a.dataLabels;
|
|
1182
|
-
return a.showDistributedPercentage && a.distributed ? qt.value ? l === 0 ? !o.hideEmptyPercentages : Math.abs(l) * 100 >= o.hideUnderPercentage : o.hideEmptyPercentages ? Math.abs(l) > 0 : !0 : qt.value ? (Xt.value && yt.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(t) >
|
|
1186
|
+
return a.showDistributedPercentage && a.distributed ? qt.value ? l === 0 ? !o.hideEmptyPercentages : Math.abs(l) * 100 >= o.hideUnderPercentage : o.hideEmptyPercentages ? Math.abs(l) > 0 : !0 : qt.value ? (Xt.value && yt.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(t) > Hl.value * o.hideUnderPercentage / 100) : Xt.value ? Math.abs(t) >= o.hideUnderValue : o.hideEmptyValues ? t !== 0 : !0;
|
|
1183
1187
|
}
|
|
1184
|
-
const
|
|
1188
|
+
const Hl = m(() => Math.max(...T.value.flatMap((t) => t.series)));
|
|
1185
1189
|
function Sa(t, l, a, o, s) {
|
|
1186
1190
|
const r = s === -1 && t >= 0 ? -t : t;
|
|
1187
1191
|
return Xe(
|
|
1188
1192
|
e.value.style.chart.lines.dataLabels.formatter,
|
|
1189
1193
|
r,
|
|
1190
|
-
|
|
1194
|
+
Ce({
|
|
1191
1195
|
p: e.value.style.chart.lines.dataLabels.prefix,
|
|
1192
1196
|
v: r,
|
|
1193
1197
|
s: e.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -1196,11 +1200,11 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1196
1200
|
{ datapoint: l, seriesIndex: a, datapointIndex: o }
|
|
1197
1201
|
);
|
|
1198
1202
|
}
|
|
1199
|
-
function
|
|
1203
|
+
function Wl(t, l, a, o) {
|
|
1200
1204
|
return Xe(
|
|
1201
1205
|
e.value.style.chart.lines.dataLabels.formatter,
|
|
1202
1206
|
t,
|
|
1203
|
-
|
|
1207
|
+
Ce({
|
|
1204
1208
|
v: isNaN(t) ? 0 : t,
|
|
1205
1209
|
s: "%",
|
|
1206
1210
|
r: e.value.style.chart.lines.dataLabels.rounding
|
|
@@ -1216,18 +1220,18 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1216
1220
|
indexLabel: e.value.style.chart.grid.x.timeLabels.values[a]
|
|
1217
1221
|
});
|
|
1218
1222
|
}
|
|
1219
|
-
return
|
|
1220
|
-
getData:
|
|
1221
|
-
getImage:
|
|
1223
|
+
return Xa({
|
|
1224
|
+
getData: Vl,
|
|
1225
|
+
getImage: Rl,
|
|
1222
1226
|
generatePdf: Jt,
|
|
1223
1227
|
generateCsv: Tt,
|
|
1224
1228
|
generateImage: Zt,
|
|
1225
1229
|
generateSvg: ya,
|
|
1226
|
-
hideSeries:
|
|
1227
|
-
showSeries:
|
|
1230
|
+
hideSeries: Dl,
|
|
1231
|
+
showSeries: _l,
|
|
1228
1232
|
toggleTable: xa,
|
|
1229
|
-
toggleLabels:
|
|
1230
|
-
toggleTooltip:
|
|
1233
|
+
toggleLabels: Ca,
|
|
1234
|
+
toggleTooltip: ka,
|
|
1231
1235
|
toggleAnnotator: dt,
|
|
1232
1236
|
toggleFullscreen: ba
|
|
1233
1237
|
}), (t, l) => (i(), h("div", {
|
|
@@ -1236,12 +1240,12 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1236
1240
|
ref: ce,
|
|
1237
1241
|
class: Ta({ "vue-data-ui-component": !0, "vue-ui-stackline": !0, "vue-data-ui-wrapper-fullscreen": De.value }),
|
|
1238
1242
|
style: Te(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
1239
|
-
onMouseenter:
|
|
1240
|
-
onMouseleave:
|
|
1243
|
+
onMouseenter: il,
|
|
1244
|
+
onMouseleave: ul
|
|
1241
1245
|
}, [
|
|
1242
|
-
e.value.userOptions.buttons.annotator ? (i(), ie(M(
|
|
1246
|
+
e.value.userOptions.buttons.annotator ? (i(), ie(M(Qa), {
|
|
1243
1247
|
key: 0,
|
|
1244
|
-
svgRef: M(
|
|
1248
|
+
svgRef: M(Ae),
|
|
1245
1249
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1246
1250
|
color: e.value.style.chart.color,
|
|
1247
1251
|
active: Ie.value,
|
|
@@ -1266,22 +1270,22 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1266
1270
|
_(t.$slots, "annotator-action-delete", ee(te({ disabled: a })), void 0, !0)
|
|
1267
1271
|
]),
|
|
1268
1272
|
_: 3
|
|
1269
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
1273
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : A("", !0),
|
|
1270
1274
|
_(t.$slots, "userConfig", {}, void 0, !0),
|
|
1271
|
-
|
|
1275
|
+
cl.value ? (i(), h("div", {
|
|
1272
1276
|
key: 1,
|
|
1273
1277
|
ref_key: "noTitle",
|
|
1274
|
-
ref:
|
|
1278
|
+
ref: Vt,
|
|
1275
1279
|
class: "vue-data-ui-no-title-space",
|
|
1276
1280
|
style: "height:36px; width: 100%;background:transparent"
|
|
1277
|
-
}, null, 512)) :
|
|
1281
|
+
}, null, 512)) : A("", !0),
|
|
1278
1282
|
e.value.style.chart.title.text ? (i(), h("div", {
|
|
1279
1283
|
key: 2,
|
|
1280
1284
|
ref_key: "chartTitle",
|
|
1281
1285
|
ref: Ot,
|
|
1282
1286
|
style: "width:100%;background:transparent;"
|
|
1283
1287
|
}, [
|
|
1284
|
-
(i(), ie(
|
|
1288
|
+
(i(), ie(Lo, {
|
|
1285
1289
|
key: `title_${Yt.value}`,
|
|
1286
1290
|
config: {
|
|
1287
1291
|
title: {
|
|
@@ -1294,11 +1298,11 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1294
1298
|
}
|
|
1295
1299
|
}
|
|
1296
1300
|
}, null, 8, ["config"]))
|
|
1297
|
-
], 512)) :
|
|
1301
|
+
], 512)) : A("", !0),
|
|
1298
1302
|
ue("div", {
|
|
1299
1303
|
id: `legend-top-${Q.value}`
|
|
1300
|
-
}, null, 8,
|
|
1301
|
-
e.value.userOptions.show && Fe.value && (M(Wt) || M(gt)) ? (i(), ie(M(
|
|
1304
|
+
}, null, 8, Do),
|
|
1305
|
+
e.value.userOptions.show && Fe.value && (M(Wt) || M(gt)) ? (i(), ie(M(Ka), {
|
|
1302
1306
|
ref_key: "userOptionsRef",
|
|
1303
1307
|
ref: ut,
|
|
1304
1308
|
key: `user_option_${Pt.value}`,
|
|
@@ -1331,8 +1335,8 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1331
1335
|
onGenerateImage: M(Zt),
|
|
1332
1336
|
onGenerateSvg: ya,
|
|
1333
1337
|
onToggleTable: xa,
|
|
1334
|
-
onToggleLabels:
|
|
1335
|
-
onToggleTooltip:
|
|
1338
|
+
onToggleLabels: Ca,
|
|
1339
|
+
onToggleTooltip: ka,
|
|
1336
1340
|
onToggleAnnotator: dt,
|
|
1337
1341
|
style: Te({
|
|
1338
1342
|
visibility: M(Wt) ? M(gt) ? "visible" : "hidden" : "visible"
|
|
@@ -1408,26 +1412,26 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1408
1412
|
]),
|
|
1409
1413
|
key: "9"
|
|
1410
1414
|
} : void 0
|
|
1411
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
1415
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : A("", !0),
|
|
1412
1416
|
(i(), h("svg", {
|
|
1413
1417
|
ref_key: "svgRef",
|
|
1414
|
-
ref:
|
|
1415
|
-
xmlns: M(
|
|
1418
|
+
ref: Ae,
|
|
1419
|
+
xmlns: M(io),
|
|
1416
1420
|
viewBox: `0 0 ${v.value.chartWidth <= 0 ? 10 : v.value.chartWidth} ${v.value.chartHeight <= 0 ? 10 : v.value.chartHeight}`,
|
|
1417
1421
|
class: Ta({ "vue-data-ui-loading": M(he), "no-transition": !e.value.useCssAnimation }),
|
|
1418
1422
|
style: Te(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
1419
1423
|
role: "img",
|
|
1420
1424
|
"aria-live": "polite",
|
|
1421
1425
|
preserveAspectRatio: "xMidYMid",
|
|
1422
|
-
onMousemove:
|
|
1426
|
+
onMousemove: $l,
|
|
1423
1427
|
onMouseleave: St,
|
|
1424
|
-
onClick:
|
|
1428
|
+
onClick: Ll
|
|
1425
1429
|
}, [
|
|
1426
|
-
He(M(
|
|
1430
|
+
He(M(el)),
|
|
1427
1431
|
(i(!0), h(E, null, W(re.value, (a) => (i(), h(E, null, [
|
|
1428
|
-
t.$slots.pattern ? (i(), h("defs",
|
|
1432
|
+
t.$slots.pattern ? (i(), h("defs", Eo, [
|
|
1429
1433
|
_(t.$slots, "pattern", lt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${Q.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
1430
|
-
])) :
|
|
1434
|
+
])) : A("", !0)
|
|
1431
1435
|
], 64))), 256)),
|
|
1432
1436
|
t.$slots["chart-background"] ? (i(), h("foreignObject", {
|
|
1433
1437
|
key: 0,
|
|
@@ -1440,8 +1444,8 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1440
1444
|
}
|
|
1441
1445
|
}, [
|
|
1442
1446
|
_(t.$slots, "chart-background", {}, void 0, !0)
|
|
1443
|
-
], 8,
|
|
1444
|
-
e.value.style.chart.lines.gradient.show ? (i(), h("defs",
|
|
1447
|
+
], 8, Io)) : A("", !0),
|
|
1448
|
+
e.value.style.chart.lines.gradient.show ? (i(), h("defs", Po, [
|
|
1445
1449
|
(i(!0), h(E, null, W(T.value, (a, o) => (i(), h("linearGradient", {
|
|
1446
1450
|
id: `gradient_${a.id}`,
|
|
1447
1451
|
x1: "0%",
|
|
@@ -1452,13 +1456,13 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1452
1456
|
ue("stop", {
|
|
1453
1457
|
offset: "0%",
|
|
1454
1458
|
"stop-color": a.color
|
|
1455
|
-
}, null, 8,
|
|
1459
|
+
}, null, 8, Ro),
|
|
1456
1460
|
ue("stop", {
|
|
1457
1461
|
offset: "100%",
|
|
1458
|
-
"stop-color": M(
|
|
1459
|
-
}, null, 8,
|
|
1460
|
-
], 8,
|
|
1461
|
-
])) :
|
|
1462
|
+
"stop-color": M(uo)(a.color, e.value.style.chart.lines.gradient.intensity / 100)
|
|
1463
|
+
}, null, 8, Vo)
|
|
1464
|
+
], 8, Oo))), 256))
|
|
1465
|
+
])) : A("", !0),
|
|
1462
1466
|
e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), h(E, { key: 2 }, W($e.value, (a, o) => (i(), h("line", {
|
|
1463
1467
|
x1: Z.value.left,
|
|
1464
1468
|
x2: Z.value.right,
|
|
@@ -1468,7 +1472,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1468
1472
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1469
1473
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1470
1474
|
"stroke-linecap": "round"
|
|
1471
|
-
}, null, 8,
|
|
1475
|
+
}, null, 8, Bo))), 256)) : A("", !0),
|
|
1472
1476
|
e.value.style.chart.grid.y.showVerticalLines ? (i(!0), h(E, { key: 3 }, W(c.value.end - c.value.start, (a, o) => (i(), h("line", {
|
|
1473
1477
|
x1: se(o),
|
|
1474
1478
|
x2: se(o),
|
|
@@ -1478,7 +1482,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1478
1482
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1479
1483
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1480
1484
|
"stroke-linecap": "round"
|
|
1481
|
-
}, null, 8,
|
|
1485
|
+
}, null, 8, Yo))), 256)) : A("", !0),
|
|
1482
1486
|
e.value.style.chart.grid.x.showAxis ? (i(), h("line", {
|
|
1483
1487
|
key: 4,
|
|
1484
1488
|
x1: Z.value.left,
|
|
@@ -1489,7 +1493,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1489
1493
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
1490
1494
|
"stroke-linecap": "round",
|
|
1491
1495
|
"stroke-linejoin": "round"
|
|
1492
|
-
}, null, 8,
|
|
1496
|
+
}, null, 8, Uo)) : A("", !0),
|
|
1493
1497
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.lines.distributed ? (i(), h("line", {
|
|
1494
1498
|
key: 5,
|
|
1495
1499
|
x1: Z.value.left,
|
|
@@ -1500,7 +1504,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1500
1504
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
1501
1505
|
"stroke-linecap": "round",
|
|
1502
1506
|
"stroke-linejoin": "round"
|
|
1503
|
-
}, null, 8,
|
|
1507
|
+
}, null, 8, Ho)) : A("", !0),
|
|
1504
1508
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (i(), h("text", {
|
|
1505
1509
|
key: 6,
|
|
1506
1510
|
ref_key: "xAxisLabel",
|
|
@@ -1511,7 +1515,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1511
1515
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
1512
1516
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1513
1517
|
"text-anchor": "middle"
|
|
1514
|
-
}, de(e.value.style.chart.grid.x.axisName.text), 9,
|
|
1518
|
+
}, de(e.value.style.chart.grid.x.axisName.text), 9, Wo)) : A("", !0),
|
|
1515
1519
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (i(), h("text", {
|
|
1516
1520
|
key: 7,
|
|
1517
1521
|
ref_key: "yAxisLabel",
|
|
@@ -1521,7 +1525,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1521
1525
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
1522
1526
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1523
1527
|
"text-anchor": "middle"
|
|
1524
|
-
}, de(e.value.style.chart.grid.y.axisName.text), 9,
|
|
1528
|
+
}, de(e.value.style.chart.grid.y.axisName.text), 9, Xo)) : A("", !0),
|
|
1525
1529
|
e.value.style.chart.grid.frame.show ? (i(), h("rect", {
|
|
1526
1530
|
key: 8,
|
|
1527
1531
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
@@ -1535,7 +1539,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1535
1539
|
"stroke-linecap": e.value.style.chart.grid.frame.strokeLinecap,
|
|
1536
1540
|
"stroke-linejoin": e.value.style.chart.grid.frame.strokeLinejoin,
|
|
1537
1541
|
"stroke-dasharray": e.value.style.chart.grid.frame.strokeDasharray
|
|
1538
|
-
}, null, 8,
|
|
1542
|
+
}, null, 8, qo)) : A("", !0),
|
|
1539
1543
|
(i(!0), h(E, null, W(T.value, (a) => (i(), h(E, null, [
|
|
1540
1544
|
e.value.style.chart.lines.useArea && !a.standalone ? (i(), h("path", {
|
|
1541
1545
|
key: 0,
|
|
@@ -1545,7 +1549,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1545
1549
|
style: Te({
|
|
1546
1550
|
transition: M(he) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
|
|
1547
1551
|
})
|
|
1548
|
-
}, null, 12,
|
|
1552
|
+
}, null, 12, Go)) : A("", !0)
|
|
1549
1553
|
], 64))), 256)),
|
|
1550
1554
|
(i(!0), h(E, null, W(T.value, (a) => (i(), h("path", {
|
|
1551
1555
|
d: e.value.style.chart.lines.smooth ? a.smoothPath : a.straightPath,
|
|
@@ -1556,7 +1560,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1556
1560
|
style: Te({
|
|
1557
1561
|
transition: M(he) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
|
|
1558
1562
|
})
|
|
1559
|
-
}, null, 12,
|
|
1563
|
+
}, null, 12, jo))), 256)),
|
|
1560
1564
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.lines.distributed ? (i(), h("g", {
|
|
1561
1565
|
key: 9,
|
|
1562
1566
|
ref_key: "scaleLabels",
|
|
@@ -1569,7 +1573,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1569
1573
|
y2: a.y,
|
|
1570
1574
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1571
1575
|
"stroke-width": 1
|
|
1572
|
-
}, null, 8,
|
|
1576
|
+
}, null, 8, Jo))), 256)),
|
|
1573
1577
|
(i(!0), h(E, null, W($e.value, (a, o) => (i(), h("text", {
|
|
1574
1578
|
x: a.x,
|
|
1575
1579
|
y: a.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -1580,22 +1584,22 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1580
1584
|
}, de(M(Xe)(
|
|
1581
1585
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1582
1586
|
a.value,
|
|
1583
|
-
M(
|
|
1587
|
+
M(Ce)({
|
|
1584
1588
|
p: e.value.style.chart.lines.dataLabels.prefix,
|
|
1585
1589
|
v: a.value,
|
|
1586
1590
|
s: e.value.style.chart.lines.dataLabels.suffix,
|
|
1587
1591
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1588
1592
|
}),
|
|
1589
1593
|
{ datapoint: a }
|
|
1590
|
-
)), 9,
|
|
1591
|
-
], 512)) :
|
|
1594
|
+
)), 9, Zo))), 256))
|
|
1595
|
+
], 512)) : A("", !0),
|
|
1592
1596
|
e.value.style.chart.grid.x.timeLabels.show ? (i(), h("g", {
|
|
1593
1597
|
key: 10,
|
|
1594
1598
|
ref_key: "timeLabelsEls",
|
|
1595
1599
|
ref: je
|
|
1596
1600
|
}, [
|
|
1597
|
-
t.$slots["time-label"] ? (i(), h("g",
|
|
1598
|
-
(i(!0), h(E, null, W(
|
|
1601
|
+
t.$slots["time-label"] ? (i(), h("g", Qo, [
|
|
1602
|
+
(i(!0), h(E, null, W(Ct.value, (a, o) => (i(), h("g", null, [
|
|
1599
1603
|
_(t.$slots, "time-label", lt({ ref_for: !0 }, {
|
|
1600
1604
|
x: v.value.left + Ke.value * o + Ke.value / 2,
|
|
1601
1605
|
y: v.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
@@ -1608,8 +1612,8 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1608
1612
|
show: !0
|
|
1609
1613
|
}), void 0, !0)
|
|
1610
1614
|
]))), 256))
|
|
1611
|
-
])) : (i(), h("g",
|
|
1612
|
-
(i(!0), h(E, null, W(
|
|
1615
|
+
])) : (i(), h("g", Ko, [
|
|
1616
|
+
(i(!0), h(E, null, W(Ct.value, (a, o) => (i(), h("g", null, [
|
|
1613
1617
|
String(a.text).includes(`
|
|
1614
1618
|
`) ? (i(), h("text", {
|
|
1615
1619
|
key: o + "-multi",
|
|
@@ -1632,7 +1636,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1632
1636
|
y: 0
|
|
1633
1637
|
}),
|
|
1634
1638
|
onClick: () => ma(a, o)
|
|
1635
|
-
}, null, 8,
|
|
1639
|
+
}, null, 8, ts)) : (i(), h("text", {
|
|
1636
1640
|
class: "vue-data-ui-time-label",
|
|
1637
1641
|
key: o,
|
|
1638
1642
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1642,11 +1646,11 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1642
1646
|
transform: `translate(${se(o)}, ${v.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1643
1647
|
style: { cursor: "pointer" },
|
|
1644
1648
|
onClick: () => ma(a, o)
|
|
1645
|
-
}, de(a.text), 9,
|
|
1649
|
+
}, de(a.text), 9, es))
|
|
1646
1650
|
]))), 256))
|
|
1647
1651
|
]))
|
|
1648
|
-
], 512)) :
|
|
1649
|
-
(
|
|
1652
|
+
], 512)) : A("", !0),
|
|
1653
|
+
(ke.value || ![null, void 0].includes(x.value)) && !e.value.style.chart.highlighter.useLine ? (i(!0), h(E, { key: 11 }, W(c.value.end - c.value.start, (a, o) => (i(), h("g", {
|
|
1650
1654
|
key: `tooltip_trap_highlighter_${o}`
|
|
1651
1655
|
}, [
|
|
1652
1656
|
ue("rect", {
|
|
@@ -1654,12 +1658,12 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1654
1658
|
y: v.value.top,
|
|
1655
1659
|
height: v.value.height,
|
|
1656
1660
|
width: va(o).width,
|
|
1657
|
-
fill: [Ee.value, x.value].includes(o) ? M(
|
|
1661
|
+
fill: [Ee.value, x.value].includes(o) ? M(co)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
|
|
1658
1662
|
style: { transition: "none !important", animation: "none !important" }
|
|
1659
|
-
}, null, 8,
|
|
1660
|
-
]))), 128)) :
|
|
1661
|
-
(
|
|
1662
|
-
![null, void 0].includes(x.value) || ![null, void 0].includes(Ee.value) ? (i(), h("g",
|
|
1663
|
+
}, null, 8, as)
|
|
1664
|
+
]))), 128)) : A("", !0),
|
|
1665
|
+
(ke.value || ![null, void 0].includes(x.value)) && e.value.style.chart.highlighter.useLine ? (i(), h(E, { key: 12 }, [
|
|
1666
|
+
![null, void 0].includes(x.value) || ![null, void 0].includes(Ee.value) ? (i(), h("g", ls, [
|
|
1663
1667
|
ue("line", {
|
|
1664
1668
|
x1: se((x.value ?? Ee.value) || 0),
|
|
1665
1669
|
x2: se((x.value ?? Ee.value) || 0),
|
|
@@ -1670,11 +1674,11 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1670
1674
|
"stroke-dasharray": e.value.style.chart.highlighter.lineDasharray,
|
|
1671
1675
|
"stroke-linecap": "round",
|
|
1672
1676
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1673
|
-
}, null, 8,
|
|
1674
|
-
])) :
|
|
1675
|
-
], 64)) :
|
|
1677
|
+
}, null, 8, os)
|
|
1678
|
+
])) : A("", !0)
|
|
1679
|
+
], 64)) : A("", !0),
|
|
1676
1680
|
(i(!0), h(E, null, W(T.value, (a) => (i(), h(E, null, [
|
|
1677
|
-
|
|
1681
|
+
ke.value && c.value.end - c.value.start > e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(), h("g", ss, [
|
|
1678
1682
|
x.value != null ? (i(), h(E, { key: 0 }, [
|
|
1679
1683
|
a.rel.includes(x.value) && a.fullSeries?.[c.value.start + x.value] != null && !Number.isNaN(a.fullSeries?.[c.value.start + x.value]) ? (i(), ie(Dt, {
|
|
1680
1684
|
key: 0,
|
|
@@ -1688,9 +1692,9 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1688
1692
|
stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
|
|
1689
1693
|
strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
|
|
1690
1694
|
transition: M(he) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
1691
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) :
|
|
1692
|
-
], 64)) :
|
|
1693
|
-
])) :
|
|
1695
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : A("", !0)
|
|
1696
|
+
], 64)) : A("", !0)
|
|
1697
|
+
])) : A("", !0)
|
|
1694
1698
|
], 64))), 256)),
|
|
1695
1699
|
(i(!0), h(E, null, W(T.value, (a) => (i(), h(E, null, [
|
|
1696
1700
|
c.value.end - c.value.start < e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(!0), h(E, { key: 0 }, W(a.points, (o, s) => (i(), h("g", { key: s }, [
|
|
@@ -1699,17 +1703,17 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1699
1703
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1700
1704
|
color: e.value.style.chart.lines.dot.useSerieColor ? a.color : e.value.style.chart.lines.dot.fill,
|
|
1701
1705
|
plot: { x: o.x, y: o.y },
|
|
1702
|
-
radius:
|
|
1706
|
+
radius: ke.value && x.value === a.rel[s] ? e.value.style.chart.lines.dot.radius * 1.3 : e.value.style.chart.lines.dot.radius,
|
|
1703
1707
|
stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
|
|
1704
1708
|
strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
|
|
1705
1709
|
transition: M(he) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
1706
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) :
|
|
1707
|
-
]))), 128)) :
|
|
1710
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : A("", !0)
|
|
1711
|
+
]))), 128)) : A("", !0)
|
|
1708
1712
|
], 64))), 256)),
|
|
1709
1713
|
q.value.dataLabels.show && e.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > c.value.end - c.value.start ? (i(), h(E, { key: 13 }, [
|
|
1710
1714
|
(i(!0), h(E, null, W(T.value, (a, o) => (i(), h("g", { key: o }, [
|
|
1711
1715
|
(i(!0), h(E, null, W(a.points, (s, r) => (i(), h(E, { key: r }, [
|
|
1712
|
-
|
|
1716
|
+
Ul(a.series[r], a.proportions[r]) ? (i(), h("text", {
|
|
1713
1717
|
key: 0,
|
|
1714
1718
|
x: s.x,
|
|
1715
1719
|
y: s.y + (a.series[r] >= 0 ? -e.value.style.chart.lines.dataLabels.fontSize / 2 + e.value.style.chart.lines.dataLabels.offsetY : e.value.style.chart.lines.dataLabels.fontSize * 1.2 - e.value.style.chart.lines.dataLabels.offsetY),
|
|
@@ -1717,42 +1721,42 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1717
1721
|
fill: e.value.style.chart.lines.dataLabels.color,
|
|
1718
1722
|
"font-weight": e.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
1719
1723
|
"text-anchor": "middle"
|
|
1720
|
-
}, de(e.value.style.chart.lines.showDistributedPercentage && e.value.style.chart.lines.distributed ?
|
|
1724
|
+
}, de(e.value.style.chart.lines.showDistributedPercentage && e.value.style.chart.lines.distributed ? Wl(a.proportions[r] * 100, a, o, a.rel[r]) : Sa(a.series[r], a, o, a.rel[r], a.signedSeries[r])), 9, rs)) : A("", !0)
|
|
1721
1725
|
], 64))), 128))
|
|
1722
1726
|
]))), 128)),
|
|
1723
1727
|
e.value.style.chart.lines.totalValues.show && T.value.length > 1 ? (i(), h("g", {
|
|
1724
1728
|
key: 0,
|
|
1725
1729
|
ref_key: "sumTop",
|
|
1726
|
-
ref:
|
|
1730
|
+
ref: nl
|
|
1727
1731
|
}, [
|
|
1728
1732
|
(i(!0), h(E, null, W(ra.value, (a, o) => (i(), h(E, null, [
|
|
1729
1733
|
!e.value.style.chart.lines.dataLabels.hideEmptyValues || a.value !== 0 ? (i(), h("text", {
|
|
1730
1734
|
key: 0,
|
|
1731
1735
|
x: se(o),
|
|
1732
|
-
y:
|
|
1736
|
+
y: xl(o),
|
|
1733
1737
|
"text-anchor": "middle",
|
|
1734
1738
|
"font-size": e.value.style.chart.lines.totalValues.fontSize,
|
|
1735
1739
|
"font-weight": e.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
1736
1740
|
fill: e.value.style.chart.lines.totalValues.color
|
|
1737
|
-
}, de(Sa(a.value, a, o, o, a.sign)), 9,
|
|
1741
|
+
}, de(Sa(a.value, a, o, o, a.sign)), 9, ns)) : A("", !0)
|
|
1738
1742
|
], 64))), 256))
|
|
1739
|
-
], 512)) :
|
|
1740
|
-
], 64)) :
|
|
1741
|
-
ta.value ? (i(), h("rect", lt({ key: 14 },
|
|
1743
|
+
], 512)) : A("", !0)
|
|
1744
|
+
], 64)) : A("", !0),
|
|
1745
|
+
ta.value ? (i(), h("rect", lt({ key: 14 }, ml.value, {
|
|
1742
1746
|
"data-start": c.value.start,
|
|
1743
1747
|
"data-end": c.value.end
|
|
1744
|
-
}), null, 16,
|
|
1748
|
+
}), null, 16, is)) : A("", !0),
|
|
1745
1749
|
_(t.$slots, "svg", {
|
|
1746
1750
|
svg: {
|
|
1747
1751
|
drawingArea: v.value,
|
|
1748
1752
|
data: T.value
|
|
1749
1753
|
}
|
|
1750
1754
|
}, void 0, !0)
|
|
1751
|
-
], 46,
|
|
1752
|
-
t.$slots.watermark ? (i(), h("div",
|
|
1755
|
+
], 46, zo)),
|
|
1756
|
+
t.$slots.watermark ? (i(), h("div", us, [
|
|
1753
1757
|
_(t.$slots, "watermark", ee(te({ isPrinting: M(Gt) || M(jt) })), void 0, !0)
|
|
1754
|
-
])) :
|
|
1755
|
-
Ut.value ? (i(), ie(
|
|
1758
|
+
])) : A("", !0),
|
|
1759
|
+
Ut.value ? (i(), ie(Zl, {
|
|
1756
1760
|
key: 5,
|
|
1757
1761
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${Q.value}` : `#legend-bottom-${Q.value}`
|
|
1758
1762
|
}, [
|
|
@@ -1760,18 +1764,18 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1760
1764
|
ref_key: "chartLegend",
|
|
1761
1765
|
ref: Rt
|
|
1762
1766
|
}, [
|
|
1763
|
-
e.value.style.chart.legend.show ? (i(), ie(
|
|
1767
|
+
e.value.style.chart.legend.show ? (i(), ie(To, {
|
|
1764
1768
|
key: 0,
|
|
1765
1769
|
legendSet: Lt.value,
|
|
1766
|
-
config:
|
|
1770
|
+
config: Fl.value,
|
|
1767
1771
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => a.segregate())
|
|
1768
1772
|
}, Ft({
|
|
1769
1773
|
item: D(({ legend: a }) => [
|
|
1770
|
-
M(he) ?
|
|
1774
|
+
M(he) ? A("", !0) : (i(), h("div", {
|
|
1771
1775
|
key: 0,
|
|
1772
1776
|
onClick: (o) => a.segregate(),
|
|
1773
1777
|
style: Te(`opacity:${X.value.includes(a.id) ? 0.5 : 1}`)
|
|
1774
|
-
}, de(a.name), 13,
|
|
1778
|
+
}, de(a.name), 13, cs))
|
|
1775
1779
|
]),
|
|
1776
1780
|
_: 2
|
|
1777
1781
|
}, [
|
|
@@ -1793,30 +1797,27 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1793
1797
|
legend: Lt.value
|
|
1794
1798
|
}, void 0, !0)
|
|
1795
1799
|
], 512)
|
|
1796
|
-
], 8, ["to"])) :
|
|
1797
|
-
|
|
1798
|
-
id: `legend-bottom-${Q.value}`
|
|
1799
|
-
}, null, 8, us),
|
|
1800
|
-
Fe.value && e.value.userOptions.buttons.table ? (i(), ie(Jl(Be.value.component), lt({ key: 6 }, Be.value.props, {
|
|
1800
|
+
], 8, ["to"])) : A("", !0),
|
|
1801
|
+
Fe.value && e.value.userOptions.buttons.table ? (i(), ie(Ql(Ve.value.component), lt({ key: 6 }, Ve.value.props, {
|
|
1801
1802
|
ref_key: "tableUnit",
|
|
1802
1803
|
ref: ze,
|
|
1803
1804
|
onClose: pa
|
|
1804
1805
|
}), Ft({
|
|
1805
1806
|
content: D(() => [
|
|
1806
|
-
He(M(
|
|
1807
|
+
He(M(Za), {
|
|
1807
1808
|
colNames: at.value.colNames,
|
|
1808
1809
|
head: at.value.head,
|
|
1809
1810
|
body: at.value.body,
|
|
1810
1811
|
config: at.value.config,
|
|
1811
|
-
title: e.value.table.useDialog ? "" :
|
|
1812
|
+
title: e.value.table.useDialog ? "" : Ve.value.title,
|
|
1812
1813
|
withCloseButton: !e.value.table.useDialog,
|
|
1813
1814
|
onClose: pa
|
|
1814
1815
|
}, {
|
|
1815
1816
|
th: D(({ th: a }) => [
|
|
1816
|
-
ue("div", { innerHTML: a }, null, 8,
|
|
1817
|
+
ue("div", { innerHTML: a }, null, 8, hs)
|
|
1817
1818
|
]),
|
|
1818
1819
|
td: D(({ td: a }) => [
|
|
1819
|
-
Na(de(isNaN(Number(a)) ? a : M(
|
|
1820
|
+
Na(de(isNaN(Number(a)) ? a : M(Ce)({
|
|
1820
1821
|
p: e.value.style.chart.lines.dataLabels.prefix,
|
|
1821
1822
|
v: a,
|
|
1822
1823
|
s: e.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -1831,7 +1832,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1831
1832
|
e.value.table.useDialog ? {
|
|
1832
1833
|
name: "title",
|
|
1833
1834
|
fn: D(() => [
|
|
1834
|
-
Na(de(
|
|
1835
|
+
Na(de(Ve.value.title), 1)
|
|
1835
1836
|
]),
|
|
1836
1837
|
key: "0"
|
|
1837
1838
|
} : void 0,
|
|
@@ -1843,20 +1844,20 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1843
1844
|
class: "vue-ui-user-options-button",
|
|
1844
1845
|
onClick: l[1] || (l[1] = (a) => Tt(e.value.userOptions.callbacks.csv))
|
|
1845
1846
|
}, [
|
|
1846
|
-
He(M(
|
|
1847
|
+
He(M(ja), {
|
|
1847
1848
|
name: "excel",
|
|
1848
|
-
stroke:
|
|
1849
|
+
stroke: Ve.value.props.color
|
|
1849
1850
|
}, null, 8, ["stroke"])
|
|
1850
1851
|
])
|
|
1851
1852
|
]),
|
|
1852
1853
|
key: "1"
|
|
1853
1854
|
} : void 0
|
|
1854
|
-
]), 1040)) :
|
|
1855
|
-
e.value.style.chart.zoom.show && ne.value > 6 && Fe.value && ua.value ? (i(), ie(
|
|
1855
|
+
]), 1040)) : A("", !0),
|
|
1856
|
+
e.value.style.chart.zoom.show && ne.value > 6 && Fe.value && ua.value ? (i(), ie(No, {
|
|
1856
1857
|
key: 7,
|
|
1857
1858
|
ref_key: "chartSlicer",
|
|
1858
1859
|
ref: _e,
|
|
1859
|
-
allMinimaps:
|
|
1860
|
+
allMinimaps: yl.value,
|
|
1860
1861
|
background: e.value.style.chart.zoom.color,
|
|
1861
1862
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1862
1863
|
customFormat: e.value.style.chart.zoom.customFormat,
|
|
@@ -1887,7 +1888,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1887
1888
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...nt.dataset.map((a) => a.series.length)),
|
|
1888
1889
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1889
1890
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1890
|
-
selectedSeries:
|
|
1891
|
+
selectedSeries: Bl.value,
|
|
1891
1892
|
smoothMinimap: !1,
|
|
1892
1893
|
start: c.value.start,
|
|
1893
1894
|
textColor: e.value.style.chart.color,
|
|
@@ -1896,9 +1897,9 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1896
1897
|
valueEnd: c.value.end,
|
|
1897
1898
|
valueStart: c.value.start,
|
|
1898
1899
|
verticalHandles: e.value.style.chart.zoom.minimap.verticalHandles,
|
|
1899
|
-
"onUpdate:end":
|
|
1900
|
-
"onUpdate:start":
|
|
1901
|
-
onTrapMouse:
|
|
1900
|
+
"onUpdate:end": wl,
|
|
1901
|
+
"onUpdate:start": Al,
|
|
1902
|
+
onTrapMouse: gl,
|
|
1902
1903
|
onReset: la,
|
|
1903
1904
|
onFutureEnd: l[2] || (l[2] = (a) => aa("end", a)),
|
|
1904
1905
|
onFutureStart: l[3] || (l[3] = (a) => aa("start", a))
|
|
@@ -1908,12 +1909,15 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1908
1909
|
]),
|
|
1909
1910
|
slotMap: D(({ width: a, height: o, unitW: s }) => [
|
|
1910
1911
|
ue("g", {
|
|
1911
|
-
innerHTML:
|
|
1912
|
-
}, null, 8,
|
|
1912
|
+
innerHTML: Yl({ minimapH: o, unitW: s })
|
|
1913
|
+
}, null, 8, vs)
|
|
1913
1914
|
]),
|
|
1914
1915
|
_: 3
|
|
1915
|
-
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) :
|
|
1916
|
-
|
|
1916
|
+
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : A("", !0),
|
|
1917
|
+
ue("div", {
|
|
1918
|
+
id: `legend-bottom-${Q.value}`
|
|
1919
|
+
}, null, 8, ds),
|
|
1920
|
+
He(M(Ga), {
|
|
1917
1921
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1918
1922
|
show: q.value.showTooltip && Et.value,
|
|
1919
1923
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1926,7 +1930,7 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1926
1930
|
position: e.value.style.chart.tooltip.position,
|
|
1927
1931
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1928
1932
|
parent: ce.value,
|
|
1929
|
-
content:
|
|
1933
|
+
content: Nl.value,
|
|
1930
1934
|
isFullscreen: De.value,
|
|
1931
1935
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1932
1936
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1945,20 +1949,20 @@ const Pa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1945
1949
|
t.$slots.source ? (i(), h("div", {
|
|
1946
1950
|
key: 8,
|
|
1947
1951
|
ref_key: "source",
|
|
1948
|
-
ref:
|
|
1952
|
+
ref: Bt,
|
|
1949
1953
|
dir: "auto"
|
|
1950
1954
|
}, [
|
|
1951
1955
|
_(t.$slots, "source", {}, void 0, !0)
|
|
1952
|
-
], 512)) :
|
|
1953
|
-
M(he) ? (i(), ie(
|
|
1954
|
-
], 46,
|
|
1956
|
+
], 512)) : A("", !0),
|
|
1957
|
+
M(he) ? (i(), ie(xo, { key: 9 })) : A("", !0)
|
|
1958
|
+
], 46, _o));
|
|
1955
1959
|
}
|
|
1956
|
-
},
|
|
1960
|
+
}, gs = /* @__PURE__ */ Fo(ms, [["__scopeId", "data-v-ab0b274c"]]), Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1957
1961
|
__proto__: null,
|
|
1958
|
-
default:
|
|
1962
|
+
default: gs
|
|
1959
1963
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1960
1964
|
export {
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1965
|
+
zs as a,
|
|
1966
|
+
Es as b,
|
|
1967
|
+
gs as v
|
|
1964
1968
|
};
|