vue-data-ui 3.15.12 → 3.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- 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-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -0,0 +1,1449 @@
|
|
|
1
|
+
import { defineAsyncComponent as E, ref as u, shallowRef as ct, computed as h, onMounted as yl, onBeforeUnmount as fl, toRefs as pl, watch as de, watchEffect as gl, openBlock as s, createElementBlock as r, unref as c, normalizeStyle as M, normalizeClass as H, createElementVNode as C, toDisplayString as D, createBlock as F, createCommentVNode as y, renderSlot as f, withCtx as p, normalizeProps as $, guardReactiveProps as I, createSlots as vt, createVNode as _e, Fragment as A, renderList as S, Teleport as xl, resolveDynamicComponent as bl, mergeProps as ml, createTextVNode as dt, nextTick as Le } from "vue";
|
|
2
|
+
import { j as ht, o as yt, q as ft, r as kl, t as pt, n as wl, p as he, s as Cl, D as gt, k as K, l as G, X as Al, x as Sl, w as Tl, Z as $l, W as Il, a2 as U, m as _l, a0 as Ll, a1 as Pl, T as zl, a3 as Ol } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as xt, u as Ml } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nl } from "./useConfig-DO94Aj5s.js";
|
|
5
|
+
import { u as Dl, B as Fl } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
+
import { u as Xl } from "./usePrinter-CEpYU3r5.js";
|
|
7
|
+
import { u as Bl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as Pe } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
|
+
import { u as Rl } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as El } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as Yl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as Hl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import Ul from "./img-LXxMLmCg.js";
|
|
14
|
+
import Wl from "./Title-BeMKE1cj.js";
|
|
15
|
+
import jl from "./vue_ui_history_plot-BCKk1CrQ.js";
|
|
16
|
+
import Vl from "./Legend-CS7Xo5LK.js";
|
|
17
|
+
import { A as Kl } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
|
+
import { B as Gl } from "./BaseLegendToggle-BQVIawmA.js";
|
|
19
|
+
import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
+
const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative" } }, ta = ["xmlns", "viewBox", "aria-describedby"], la = ["x", "y", "width", "height"], aa = { key: 1 }, oa = ["id"], sa = ["stop-color"], na = ["stop-color"], ra = ["stop-color"], ia = { key: 2 }, ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = { key: 3 }, va = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], da = ["x", "y", "fill", "font-size"], ha = ["transform", "font-size", "fill", "font-weight"], ya = { key: 6 }, fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = { key: 7 }, ga = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], xa = ["transform", "fill", "font-size", "text-anchor"], ba = ["x", "y", "font-size", "fill", "font-weight"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"], Ca = ["d", "stroke", "stroke-width"], Aa = ["cx", "cy", "fill", "r"], Sa = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Ta = { key: 1 }, $a = ["x", "y", "font-size", "fill", "font-weight"], Ia = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], _a = { key: 2 }, La = ["x", "y", "font-size", "font-weight", "fill"], Pa = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], za = {
|
|
21
|
+
key: 0,
|
|
22
|
+
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
23
|
+
"data-dom-to-png-ignore": "",
|
|
24
|
+
"aria-hidden": "true"
|
|
25
|
+
}, Oa = {
|
|
26
|
+
key: 5,
|
|
27
|
+
class: "vue-data-ui-watermark"
|
|
28
|
+
}, Ma = ["id"], Na = ["onClick"], Da = ["innerHTML"], Fa = {
|
|
29
|
+
__name: "vue-ui-history-plot",
|
|
30
|
+
props: {
|
|
31
|
+
config: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default() {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
dataset: {
|
|
38
|
+
type: Array,
|
|
39
|
+
default() {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
45
|
+
setup(bt, { expose: mt, emit: kt }) {
|
|
46
|
+
const wt = E(() => import("./Tooltip-Bf-kM3_A.js")), Ct = E(() => import("./BaseIcon-Cb3zzG6s.js")), At = E(() => import("./vue-ui-accordion-nvggWcGN.js")), St = E(() => import("./DataTable-DT2kIdQ6.js")), Tt = E(() => import("./PenAndPaper-Ct3qJ4lA.js")), $t = E(() => import("./UserOptions-rW2fRf3V.js")), It = E(() => import("./PackageVersion-DPO-OOVI.js")), _t = E(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_history_plot: Lt } = Nl(), { isThemeValid: Pt, warnInvalidTheme: zt } = Rl(), _ = bt, X = u(null), ze = u(null), Oe = u(0), Me = u(null), Ne = u(0), De = u(0), Fe = u(0), R = ct(null), W = ct(null), Xe = u(null), L = u(ht()), oe = u(!1), ye = u(""), x = u([]), q = u(!1), P = u(null), Z = u(!1), Be = u(null), Re = u(!1), J = u(null), fe = u(null), se = u(!1), ne = u(!1), pe = u(null), ge = u(null), re = u(null), xe = u(null), k = u(null), w = u(null), Ee = u({ x: 0, y: 0 }), ie = u("pointer"), be = u(!1), ue = h({
|
|
47
|
+
get: () => !!_.dataset && _.dataset.length,
|
|
48
|
+
set: (t) => t
|
|
49
|
+
}), me = kt;
|
|
50
|
+
yl(() => {
|
|
51
|
+
Re.value = !0, He();
|
|
52
|
+
});
|
|
53
|
+
const Ye = h(() => !!e.value.debug);
|
|
54
|
+
function He() {
|
|
55
|
+
if (yt(_.dataset) ? (ft({
|
|
56
|
+
componentName: "VueUiHistoryPlot",
|
|
57
|
+
type: "dataset",
|
|
58
|
+
debug: Ye.value
|
|
59
|
+
}), we.value = !0) : _.dataset.forEach((t, a) => {
|
|
60
|
+
kl({
|
|
61
|
+
datasetObject: t,
|
|
62
|
+
requiredAttributes: ["name", "values"]
|
|
63
|
+
}).forEach((l) => {
|
|
64
|
+
ue.value = !1, ft({
|
|
65
|
+
componentName: "VueUiHistoryPlot",
|
|
66
|
+
type: "datasetSerieAttribute",
|
|
67
|
+
property: l,
|
|
68
|
+
index: a,
|
|
69
|
+
debug: Ye.value
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}), yt(_.dataset) || (we.value = e.value.loading), e.value.responsive) {
|
|
73
|
+
const t = xt(() => {
|
|
74
|
+
const { width: a, height: l } = Ml({
|
|
75
|
+
chart: X.value,
|
|
76
|
+
title: e.value.style.chart.title.text ? ze.value : null,
|
|
77
|
+
noTitle: Xe.value,
|
|
78
|
+
legend: e.value.style.chart.legend.show ? Me.value : null,
|
|
79
|
+
source: Be.value
|
|
80
|
+
});
|
|
81
|
+
requestAnimationFrame(() => {
|
|
82
|
+
b.value.width = a, b.value.height = l, e.value.responsiveProportionalSizing ? (i.value.plots = U({
|
|
83
|
+
relator: Math.min(a, l),
|
|
84
|
+
adjuster: 600,
|
|
85
|
+
source: e.value.style.chart.plots.radius,
|
|
86
|
+
threshold: 3,
|
|
87
|
+
fallback: 3
|
|
88
|
+
}), i.value.indexLabels = U({
|
|
89
|
+
relator: Math.min(a, l),
|
|
90
|
+
adjuster: 600,
|
|
91
|
+
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
92
|
+
threshold: 6,
|
|
93
|
+
fallback: 6
|
|
94
|
+
}), i.value.labels = U({
|
|
95
|
+
relator: Math.min(a, l),
|
|
96
|
+
adjuster: 600,
|
|
97
|
+
source: e.value.style.chart.plots.labels.fontSize,
|
|
98
|
+
threshold: 6,
|
|
99
|
+
fallback: 6
|
|
100
|
+
}), i.value.xAxisLabels = U({
|
|
101
|
+
relator: Math.min(a, l),
|
|
102
|
+
adjuster: 600,
|
|
103
|
+
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
104
|
+
threshold: 6,
|
|
105
|
+
fallback: 6
|
|
106
|
+
}), i.value.xAxisName = U({
|
|
107
|
+
relator: Math.min(a, l),
|
|
108
|
+
adjuster: 600,
|
|
109
|
+
source: e.value.style.chart.axes.x.name.fontSize,
|
|
110
|
+
threshold: 6,
|
|
111
|
+
fallback: 6
|
|
112
|
+
}), i.value.yAxisLabels = U({
|
|
113
|
+
relator: Math.min(a, l),
|
|
114
|
+
adjuster: 600,
|
|
115
|
+
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
116
|
+
threshold: 6,
|
|
117
|
+
fallback: 6
|
|
118
|
+
}), i.value.yAxisName = U({
|
|
119
|
+
relator: Math.min(a, l),
|
|
120
|
+
adjuster: 600,
|
|
121
|
+
source: e.value.style.chart.axes.y.name.fontSize,
|
|
122
|
+
threshold: 6,
|
|
123
|
+
fallback: 6
|
|
124
|
+
})) : (i.value.plots = e.value.style.chart.plots.radius, i.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, i.value.labels = e.value.style.chart.plots.labels.fontSize, i.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, i.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, i.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, i.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
R.value && (W.value && R.value.unobserve(W.value), R.value.disconnect()), R.value = new ResizeObserver(t), W.value = X.value.parentNode, R.value.observe(W.value);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
fl(() => {
|
|
131
|
+
R.value && (W.value && R.value.unobserve(W.value), R.value.disconnect());
|
|
132
|
+
});
|
|
133
|
+
function ke() {
|
|
134
|
+
const t = Pe({
|
|
135
|
+
userConfig: _.config,
|
|
136
|
+
defaultConfig: Lt
|
|
137
|
+
});
|
|
138
|
+
let a = {};
|
|
139
|
+
const l = t.theme;
|
|
140
|
+
if (l)
|
|
141
|
+
if (!Pt.value(t))
|
|
142
|
+
zt(t), a = t;
|
|
143
|
+
else {
|
|
144
|
+
const n = Pe({
|
|
145
|
+
userConfig: jl[l] || _.config,
|
|
146
|
+
defaultConfig: t
|
|
147
|
+
});
|
|
148
|
+
a = {
|
|
149
|
+
...Pe({
|
|
150
|
+
userConfig: _.config,
|
|
151
|
+
defaultConfig: n
|
|
152
|
+
}),
|
|
153
|
+
customPalette: t.customPalette.length ? t.customPalette : _l[l] || he
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
else
|
|
157
|
+
a = t;
|
|
158
|
+
return a;
|
|
159
|
+
}
|
|
160
|
+
const e = u(ke()), j = h(() => e.value.userOptions.useCursorPointer), Ot = h(() => pt({
|
|
161
|
+
defaultConfig: {
|
|
162
|
+
userOptions: { show: !1 },
|
|
163
|
+
table: { show: !1 },
|
|
164
|
+
style: {
|
|
165
|
+
chart: {
|
|
166
|
+
backgroundColor: "#99999930",
|
|
167
|
+
axes: {
|
|
168
|
+
x: {
|
|
169
|
+
scaleMin: 0,
|
|
170
|
+
scaleMax: 10,
|
|
171
|
+
labels: { show: !1 },
|
|
172
|
+
name: { text: "" }
|
|
173
|
+
},
|
|
174
|
+
y: {
|
|
175
|
+
scaleMin: 0,
|
|
176
|
+
scaleMax: 10,
|
|
177
|
+
labels: { show: !1 },
|
|
178
|
+
name: { text: "" }
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
grid: {
|
|
182
|
+
xAxis: {
|
|
183
|
+
stroke: "#6A6A6A"
|
|
184
|
+
},
|
|
185
|
+
horizontalLines: {
|
|
186
|
+
stroke: "#6A6A6A50"
|
|
187
|
+
},
|
|
188
|
+
yAxis: {
|
|
189
|
+
stroke: "#6A6A6A"
|
|
190
|
+
},
|
|
191
|
+
verticalLines: {
|
|
192
|
+
stroke: "#6A6A6A50"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
legend: {
|
|
196
|
+
backgroundColor: "transparent"
|
|
197
|
+
},
|
|
198
|
+
paths: {
|
|
199
|
+
useSerieColor: !1,
|
|
200
|
+
stroke: "#6A6A6A"
|
|
201
|
+
},
|
|
202
|
+
plots: {
|
|
203
|
+
stroke: "#6A6A6A",
|
|
204
|
+
indexLabels: { show: !1 },
|
|
205
|
+
labels: { show: !1 }
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
userConfig: e.value.skeletonConfig ?? {}
|
|
211
|
+
})), { loading: B, FINAL_DATASET: Mt, manualLoading: we } = Dl({
|
|
212
|
+
...pl(_),
|
|
213
|
+
FINAL_CONFIG: e,
|
|
214
|
+
prepareConfig: ke,
|
|
215
|
+
skeletonDataset: _.config?.skeletonDataset ?? [
|
|
216
|
+
{
|
|
217
|
+
name: "",
|
|
218
|
+
color: "#CACACA",
|
|
219
|
+
values: [
|
|
220
|
+
{ label: "", x: 1, y: 9 },
|
|
221
|
+
{ label: "", x: 4, y: 1 },
|
|
222
|
+
{ label: "", x: 7, y: 9 },
|
|
223
|
+
{ label: "", x: 9, y: 4 }
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
skeletonConfig: pt({
|
|
228
|
+
defaultConfig: e.value,
|
|
229
|
+
userConfig: Ot.value
|
|
230
|
+
})
|
|
231
|
+
}), { userOptionsVisible: Ce, setUserOptionsVisibility: Ue, keepUserOptionState: We } = El({ config: e.value }), { svgRef: Y } = Yl({ config: e.value.style.chart.title });
|
|
232
|
+
de(() => _.config, (t) => {
|
|
233
|
+
B.value || (e.value = ke()), Ce.value = !e.value.userOptions.showOnChartHover, He(), Oe.value += 1, De.value += 1, Ne.value += 1, b.value.height = e.value.style.chart.height, b.value.width = e.value.style.chart.width, i.value.plots = e.value.style.chart.plots.radius, i.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, i.value.labels = e.value.style.chart.plots.labels.fontSize, i.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, i.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, i.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, i.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
234
|
+
}, { deep: !0 }), de(() => _.dataset, (t) => {
|
|
235
|
+
Array.isArray(t) && t.length > 0 && (we.value = !1);
|
|
236
|
+
}, { deep: !0 });
|
|
237
|
+
const { isPrinting: Ae, isImaging: Se, generatePdf: je, generateImage: Ve } = Xl({
|
|
238
|
+
elementId: `history_plot_${L.value}`,
|
|
239
|
+
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
240
|
+
options: e.value.userOptions.print
|
|
241
|
+
}), Nt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Dt = h(() => wl(e.value.customPalette)), z = u({
|
|
242
|
+
showTable: e.value.table.show,
|
|
243
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
244
|
+
});
|
|
245
|
+
de(e, () => {
|
|
246
|
+
z.value = {
|
|
247
|
+
showTable: e.value.table.show,
|
|
248
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
249
|
+
};
|
|
250
|
+
}, { immediate: !0 });
|
|
251
|
+
const b = u({
|
|
252
|
+
height: e.value.style.chart.height,
|
|
253
|
+
width: e.value.style.chart.width
|
|
254
|
+
}), Ft = h(() => b.value.width), Xt = h(() => b.value.height);
|
|
255
|
+
function Bt() {
|
|
256
|
+
let t = 0;
|
|
257
|
+
xe.value && (t = Array.from(xe.value.querySelectorAll("text")).reduce((n, o) => {
|
|
258
|
+
const d = o.getComputedTextLength();
|
|
259
|
+
return d > n ? d : n;
|
|
260
|
+
}, 0));
|
|
261
|
+
const a = ge.value ? ge.value.getBoundingClientRect().width : 0;
|
|
262
|
+
return t + a + (a ? 24 : 0);
|
|
263
|
+
}
|
|
264
|
+
const Ke = u(0), Rt = xt((t) => {
|
|
265
|
+
Ke.value = t;
|
|
266
|
+
});
|
|
267
|
+
gl((t) => {
|
|
268
|
+
const a = re.value;
|
|
269
|
+
if (!a) return;
|
|
270
|
+
const l = new ResizeObserver((n) => {
|
|
271
|
+
Rt(n[0].contentRect.height);
|
|
272
|
+
});
|
|
273
|
+
l.observe(a), t(() => l.disconnect());
|
|
274
|
+
});
|
|
275
|
+
const Ge = h(() => {
|
|
276
|
+
let t = 0;
|
|
277
|
+
pe.value && (t = pe.value.getBBox().height + i.value.xAxisName / 2);
|
|
278
|
+
let a = 0;
|
|
279
|
+
return re.value && (a = Ke.value), t + a;
|
|
280
|
+
}), v = h(() => {
|
|
281
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = Bt(), n = e.value.style.chart.plots.radius;
|
|
282
|
+
return {
|
|
283
|
+
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
284
|
+
top: a + n,
|
|
285
|
+
right: b.value.width - e.value.style.chart.padding.right - n - e.value.style.chart.axes.y.name.offsetX,
|
|
286
|
+
bottom: b.value.height - e.value.style.chart.padding.bottom - Ge.value - n - e.value.style.chart.axes.x.name.offsetY,
|
|
287
|
+
width: b.value.width - t - e.value.style.chart.padding.right - l - n - e.value.style.chart.axes.y.name.offsetX,
|
|
288
|
+
height: b.value.height - a - e.value.style.chart.padding.bottom - Ge.value - n * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
289
|
+
};
|
|
290
|
+
}), i = u({
|
|
291
|
+
plots: e.value.style.chart.plots.radius,
|
|
292
|
+
indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
|
|
293
|
+
labels: e.value.style.chart.plots.labels.fontSize,
|
|
294
|
+
xAxisLabels: e.value.style.chart.axes.x.labels.fontSize,
|
|
295
|
+
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
296
|
+
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
297
|
+
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
298
|
+
}), N = h(() => Mt.value.map((t, a) => ({
|
|
299
|
+
...t,
|
|
300
|
+
color: t.color ? Cl(t.color) : Dt.value[a] || he[a] || he[a % he.length],
|
|
301
|
+
seriesIndex: a
|
|
302
|
+
}))), Et = h(() => Math.max(...N.value.filter((t) => !x.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), Yt = h(() => {
|
|
303
|
+
const t = Math.min(...N.value.filter((a) => !x.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
304
|
+
return t < 0 ? t : 0;
|
|
305
|
+
}), Ht = h(() => Math.max(...N.value.filter((t) => !x.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), Ut = h(() => {
|
|
306
|
+
const t = Math.min(...N.value.filter((a) => !x.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
307
|
+
return t < 0 ? t : 0;
|
|
308
|
+
}), m = h(() => {
|
|
309
|
+
const t = gt(
|
|
310
|
+
e.value.style.chart.axes.x.scaleMin ?? Yt.value,
|
|
311
|
+
e.value.style.chart.axes.x.scaleMax ?? Et.value,
|
|
312
|
+
e.value.style.chart.axes.x.ticks
|
|
313
|
+
), a = gt(
|
|
314
|
+
e.value.style.chart.axes.y.scaleMin ?? Ut.value,
|
|
315
|
+
e.value.style.chart.axes.y.scaleMax ?? Ht.value,
|
|
316
|
+
e.value.style.chart.axes.y.ticks
|
|
317
|
+
);
|
|
318
|
+
return {
|
|
319
|
+
x: t,
|
|
320
|
+
y: a,
|
|
321
|
+
tickX: t.ticks.map((l) => ({
|
|
322
|
+
x: v.value.left + (l - t.min) / (t.max - t.min) * v.value.width,
|
|
323
|
+
y1: v.value.top,
|
|
324
|
+
y2: v.value.bottom,
|
|
325
|
+
value: l
|
|
326
|
+
})),
|
|
327
|
+
tickY: a.ticks.map((l) => ({
|
|
328
|
+
y: v.value.bottom - (l - a.min) / (a.max - a.min) * v.value.height,
|
|
329
|
+
x1: v.value.left,
|
|
330
|
+
x2: v.value.right,
|
|
331
|
+
value: l
|
|
332
|
+
}))
|
|
333
|
+
};
|
|
334
|
+
});
|
|
335
|
+
function Wt(t) {
|
|
336
|
+
const a = m.value.x.min < 0 ? Math.abs(m.value.x.min) : m.value.x.min > 0 ? -m.value.x.min : 0;
|
|
337
|
+
return v.value.left + ((t || 0) + a) / (m.value.x.max + a) * v.value.width;
|
|
338
|
+
}
|
|
339
|
+
function jt(t) {
|
|
340
|
+
const a = m.value.y.min < 0 ? Math.abs(m.value.y.min) : m.value.y.min > 0 ? -m.value.y.min : 0;
|
|
341
|
+
return v.value.bottom - ((t || 0) + a) / (m.value.y.max + a) * v.value.height;
|
|
342
|
+
}
|
|
343
|
+
const g = h(() => N.value.filter((t) => !x.value.includes(t.seriesIndex)).map((t, a) => {
|
|
344
|
+
const l = t.values.map((o, d) => ({
|
|
345
|
+
valueX: o.x,
|
|
346
|
+
valueY: o.y,
|
|
347
|
+
label: o.label,
|
|
348
|
+
x: Wt(o.x),
|
|
349
|
+
y: jt(o.y),
|
|
350
|
+
color: t.color,
|
|
351
|
+
seriesName: t.name,
|
|
352
|
+
id: ht()
|
|
353
|
+
})), n = l.map((o) => `${o.x},${o.y} `).join("").trim();
|
|
354
|
+
return {
|
|
355
|
+
...t,
|
|
356
|
+
plots: l,
|
|
357
|
+
path: `M${n}`
|
|
358
|
+
};
|
|
359
|
+
}));
|
|
360
|
+
function Vt() {
|
|
361
|
+
x.value.length ? x.value = [] : Q.value.forEach((t) => {
|
|
362
|
+
x.value.push(t.seriesIndex);
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
function ce(t) {
|
|
366
|
+
x.value.includes(t) ? x.value = x.value.filter((a) => a !== t) : x.value.push(t);
|
|
367
|
+
}
|
|
368
|
+
function qe(t) {
|
|
369
|
+
if (!N.value.length)
|
|
370
|
+
return e.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null;
|
|
371
|
+
const a = N.value.find((l) => l.name === t);
|
|
372
|
+
return a || (e.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${t}"`), null);
|
|
373
|
+
}
|
|
374
|
+
function Kt(t) {
|
|
375
|
+
const a = qe(t);
|
|
376
|
+
a !== null && x.value.includes(a.seriesIndex) && ce(a.seriesIndex);
|
|
377
|
+
}
|
|
378
|
+
function Gt(t) {
|
|
379
|
+
const a = qe(t);
|
|
380
|
+
a !== null && (x.value.includes(a.seriesIndex) || ce(a.seriesIndex));
|
|
381
|
+
}
|
|
382
|
+
const Q = h(() => N.value.map((t) => ({
|
|
383
|
+
...t,
|
|
384
|
+
opacity: x.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
385
|
+
segregate: () => ce(t.seriesIndex),
|
|
386
|
+
isSegregated: x.value.includes(t.seriesIndex),
|
|
387
|
+
shape: "circle"
|
|
388
|
+
}))), qt = h(() => ({
|
|
389
|
+
cy: "history-plot-div-legend",
|
|
390
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
391
|
+
color: e.value.style.chart.legend.color,
|
|
392
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
393
|
+
paddingBottom: 12,
|
|
394
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
395
|
+
}));
|
|
396
|
+
function Ze({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
397
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), me("selectDatapoint", t);
|
|
398
|
+
}
|
|
399
|
+
function Je(t) {
|
|
400
|
+
me("selectLegend", {
|
|
401
|
+
...t,
|
|
402
|
+
isSegregated: !t.isSegregated,
|
|
403
|
+
opacity: t.isSegregated ? 1 : 0.5
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
function Qe(t) {
|
|
407
|
+
q.value = t, Fe.value += 1;
|
|
408
|
+
}
|
|
409
|
+
const Te = u(null);
|
|
410
|
+
function et({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
411
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), !(ie.value === "keyboard" && k.value === l && w.value === a) && (oe.value = !1, P.value = null);
|
|
412
|
+
}
|
|
413
|
+
function Zt(t, a) {
|
|
414
|
+
if (!Y.value) return;
|
|
415
|
+
const l = g.value.find((d) => d.seriesIndex === t);
|
|
416
|
+
if (!l) return;
|
|
417
|
+
const n = l.plots[a];
|
|
418
|
+
if (!n) return;
|
|
419
|
+
const o = Ol(n.x, n.y, Y.value);
|
|
420
|
+
o && (Ee.value = o);
|
|
421
|
+
}
|
|
422
|
+
function tt({ datapoint: t, plotIndex: a, seriesIndex: l, triggerMode: n = "pointer" }) {
|
|
423
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), k.value = l, w.value = a, ie.value = n, Te.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: N.value }, P.value = t;
|
|
424
|
+
const o = e.value.style.chart.tooltip.customFormat;
|
|
425
|
+
if (Z.value = !1, zl(o))
|
|
426
|
+
try {
|
|
427
|
+
const d = o({
|
|
428
|
+
seriesIndex: l,
|
|
429
|
+
datapoint: t,
|
|
430
|
+
plotIndex: a,
|
|
431
|
+
series: N.value,
|
|
432
|
+
config: e.value
|
|
433
|
+
});
|
|
434
|
+
typeof d == "string" && (ye.value = d, Z.value = !0);
|
|
435
|
+
} catch {
|
|
436
|
+
console.warn("Custom format cannot be applied."), Z.value = !1;
|
|
437
|
+
}
|
|
438
|
+
if (!Z.value) {
|
|
439
|
+
let d = "";
|
|
440
|
+
d += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, d += `<div>${t.label}</div>`, d += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${K(
|
|
441
|
+
e.value.style.chart.axes.x.labels.formatter,
|
|
442
|
+
t.valueX,
|
|
443
|
+
G({
|
|
444
|
+
p: e.value.style.chart.axes.x.labels.prefix,
|
|
445
|
+
v: t.valueX,
|
|
446
|
+
s: e.value.style.chart.axes.x.labels.suffix,
|
|
447
|
+
r: e.value.style.chart.axes.x.labels.rounding
|
|
448
|
+
})
|
|
449
|
+
)}</div>`, d += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${K(
|
|
450
|
+
e.value.style.chart.axes.y.labels.formatter,
|
|
451
|
+
t.valueY,
|
|
452
|
+
G({
|
|
453
|
+
p: e.value.style.chart.axes.y.labels.prefix,
|
|
454
|
+
v: t.valueY,
|
|
455
|
+
s: e.value.style.chart.axes.y.labels.suffix,
|
|
456
|
+
r: e.value.style.chart.axes.y.labels.rounding
|
|
457
|
+
})
|
|
458
|
+
)}</div>`, ye.value = `<div>${d}</div>`;
|
|
459
|
+
}
|
|
460
|
+
oe.value = !0, n === "keyboard" && Le(() => {
|
|
461
|
+
Zt(l, a);
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
h(() => ({ head: g.value.map((a) => ({
|
|
465
|
+
name: a.name,
|
|
466
|
+
color: a.color
|
|
467
|
+
})) }));
|
|
468
|
+
const V = h(() => {
|
|
469
|
+
const t = [
|
|
470
|
+
e.value.table.columnNames.series,
|
|
471
|
+
e.value.table.columnNames.datapoint,
|
|
472
|
+
e.value.table.columnNames.x,
|
|
473
|
+
e.value.table.columnNames.y
|
|
474
|
+
], a = g.value.flatMap((n) => n.plots.map((o) => [
|
|
475
|
+
{
|
|
476
|
+
color: o.color,
|
|
477
|
+
name: o.seriesName
|
|
478
|
+
},
|
|
479
|
+
o.label,
|
|
480
|
+
K(
|
|
481
|
+
e.value.style.chart.axes.x.labels.formatter,
|
|
482
|
+
o.valueX,
|
|
483
|
+
G({
|
|
484
|
+
p: e.value.style.chart.axes.x.labels.prefix,
|
|
485
|
+
v: o.valueX,
|
|
486
|
+
s: e.value.style.chart.axes.x.labels.suffix,
|
|
487
|
+
r: e.value.style.chart.axes.x.labels.rounding
|
|
488
|
+
})
|
|
489
|
+
),
|
|
490
|
+
K(
|
|
491
|
+
e.value.style.chart.axes.y.labels.formatter,
|
|
492
|
+
o.valueY,
|
|
493
|
+
G({
|
|
494
|
+
p: e.value.style.chart.axes.y.labels.prefix,
|
|
495
|
+
v: o.valueY,
|
|
496
|
+
s: e.value.style.chart.axes.y.labels.suffix,
|
|
497
|
+
r: e.value.style.chart.axes.y.labels.rounding
|
|
498
|
+
})
|
|
499
|
+
)
|
|
500
|
+
])), l = {
|
|
501
|
+
th: {
|
|
502
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
503
|
+
color: e.value.table.th.color,
|
|
504
|
+
outline: e.value.table.th.outline
|
|
505
|
+
},
|
|
506
|
+
td: {
|
|
507
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
508
|
+
color: e.value.table.td.color,
|
|
509
|
+
outline: e.value.table.td.outline
|
|
510
|
+
},
|
|
511
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
512
|
+
};
|
|
513
|
+
return {
|
|
514
|
+
head: t,
|
|
515
|
+
body: a,
|
|
516
|
+
config: l,
|
|
517
|
+
colNames: t
|
|
518
|
+
};
|
|
519
|
+
});
|
|
520
|
+
function $e(t = null) {
|
|
521
|
+
Le(() => {
|
|
522
|
+
const a = [
|
|
523
|
+
[e.value.table.columnNames.series],
|
|
524
|
+
[e.value.table.columnNames.datapoint],
|
|
525
|
+
[e.value.table.columnNames.x],
|
|
526
|
+
[e.value.table.columnNames.y]
|
|
527
|
+
], l = g.value.flatMap((d) => d.plots.map((T) => [
|
|
528
|
+
[T.seriesName],
|
|
529
|
+
[T.label],
|
|
530
|
+
[T.valueX],
|
|
531
|
+
[T.valueY]
|
|
532
|
+
])), n = [
|
|
533
|
+
[e.value.style.chart.title.text],
|
|
534
|
+
[e.value.style.chart.title.subtitle.text],
|
|
535
|
+
a
|
|
536
|
+
].concat(l), o = Ll(n);
|
|
537
|
+
t ? t(o) : Pl({
|
|
538
|
+
csvContent: o,
|
|
539
|
+
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
const ee = u(!1);
|
|
544
|
+
function Ie() {
|
|
545
|
+
ee.value = !ee.value;
|
|
546
|
+
}
|
|
547
|
+
function lt() {
|
|
548
|
+
z.value.showTable = !z.value.showTable;
|
|
549
|
+
}
|
|
550
|
+
function at() {
|
|
551
|
+
z.value.showTooltip = !z.value.showTooltip;
|
|
552
|
+
}
|
|
553
|
+
function Jt() {
|
|
554
|
+
return g.value;
|
|
555
|
+
}
|
|
556
|
+
async function Qt({ scale: t = 2 } = {}) {
|
|
557
|
+
if (!X.value) return;
|
|
558
|
+
const { width: a, height: l } = X.value.getBoundingClientRect(), n = a / l, { imageUri: o, base64: d } = await Ul({ domElement: X.value, base64: !0, img: !0, scale: t });
|
|
559
|
+
return {
|
|
560
|
+
imageUri: o,
|
|
561
|
+
base64: d,
|
|
562
|
+
title: e.value.style.chart.title.text,
|
|
563
|
+
width: a,
|
|
564
|
+
height: l,
|
|
565
|
+
aspectRatio: n
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
const el = h(() => m.value.tickX), tl = h(() => ({ start: 0, end: m.value.tickX.length }));
|
|
569
|
+
Hl({
|
|
570
|
+
timeLabelsEls: re,
|
|
571
|
+
timeLabels: el,
|
|
572
|
+
slicer: tl,
|
|
573
|
+
configRef: e,
|
|
574
|
+
rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
|
|
575
|
+
autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
|
|
576
|
+
isAutoSize: !1,
|
|
577
|
+
width: Ft,
|
|
578
|
+
height: Xt,
|
|
579
|
+
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
580
|
+
rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
|
|
581
|
+
});
|
|
582
|
+
const te = h(() => {
|
|
583
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = z.value.showTable;
|
|
584
|
+
return {
|
|
585
|
+
component: t ? _t : At,
|
|
586
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
587
|
+
props: t ? {
|
|
588
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
589
|
+
color: e.value.table.th.color,
|
|
590
|
+
headerColor: e.value.table.th.color,
|
|
591
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
592
|
+
isFullscreen: q.value,
|
|
593
|
+
fullscreenParent: X.value,
|
|
594
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
595
|
+
} : {
|
|
596
|
+
hideDetails: !0,
|
|
597
|
+
config: {
|
|
598
|
+
open: a,
|
|
599
|
+
maxHeight: 1e4,
|
|
600
|
+
body: {
|
|
601
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
602
|
+
color: e.value.style.chart.color
|
|
603
|
+
},
|
|
604
|
+
head: {
|
|
605
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
606
|
+
color: e.value.style.chart.color
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
});
|
|
612
|
+
de(() => z.value.showTable, (t) => {
|
|
613
|
+
e.value.table.show || (t && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
614
|
+
});
|
|
615
|
+
function ot() {
|
|
616
|
+
z.value.showTable = !1, fe.value && fe.value.setTableIconState(!1);
|
|
617
|
+
}
|
|
618
|
+
const ll = h(() => e.value.style.chart.backgroundColor), al = h(() => e.value.style.chart.legend), ol = h(() => e.value.style.chart.title), { exportSvg: sl, getSvg: nl } = Bl({
|
|
619
|
+
svg: Y,
|
|
620
|
+
title: ol,
|
|
621
|
+
legend: al,
|
|
622
|
+
legendItems: Q,
|
|
623
|
+
backgroundColor: ll
|
|
624
|
+
});
|
|
625
|
+
async function st({ isCb: t }) {
|
|
626
|
+
ne.value = !0, await Le();
|
|
627
|
+
try {
|
|
628
|
+
if (t) {
|
|
629
|
+
const { blob: a, url: l, text: n, dataUrl: o } = await nl();
|
|
630
|
+
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: n, dataUrl: o }));
|
|
631
|
+
} else
|
|
632
|
+
await Promise.resolve(sl());
|
|
633
|
+
} finally {
|
|
634
|
+
ne.value = !1;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
function rl(t) {
|
|
638
|
+
if (t?.stage === "start") {
|
|
639
|
+
se.value = !0;
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
if (t?.stage === "end") {
|
|
643
|
+
se.value = !1;
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
Ve();
|
|
647
|
+
}
|
|
648
|
+
async function nt() {
|
|
649
|
+
if (me("copyAlt", {
|
|
650
|
+
config: e.value,
|
|
651
|
+
dataset: g.value
|
|
652
|
+
}), !e.value.userOptions.callbacks.altCopy) {
|
|
653
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
657
|
+
config: e.value,
|
|
658
|
+
dataset: g.value
|
|
659
|
+
}));
|
|
660
|
+
}
|
|
661
|
+
const le = h(() => ({
|
|
662
|
+
head: V.value.head,
|
|
663
|
+
body: V.value.body.map((t) => [
|
|
664
|
+
t[0]?.name || "",
|
|
665
|
+
t[1],
|
|
666
|
+
t[2],
|
|
667
|
+
t[3]
|
|
668
|
+
]),
|
|
669
|
+
caption: e.value.a11y.translations.tableCaption,
|
|
670
|
+
notice: e.value.a11y.translations.tableAvailable
|
|
671
|
+
}));
|
|
672
|
+
function il(t) {
|
|
673
|
+
return g.value.findIndex((a) => a.seriesIndex === t);
|
|
674
|
+
}
|
|
675
|
+
function rt() {
|
|
676
|
+
if (k.value !== null && w.value !== null) {
|
|
677
|
+
const a = g.value.find((l) => l.seriesIndex === k.value)?.plots?.[w.value];
|
|
678
|
+
a && et({
|
|
679
|
+
datapoint: a,
|
|
680
|
+
plotIndex: w.value,
|
|
681
|
+
seriesIndex: k.value
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
k.value = null, w.value = null, ie.value = "pointer", oe.value = !1, P.value = null;
|
|
685
|
+
}
|
|
686
|
+
function ul() {
|
|
687
|
+
k.value = null, w.value = null, be.value = !0;
|
|
688
|
+
}
|
|
689
|
+
function cl() {
|
|
690
|
+
rt(), be.value = !1;
|
|
691
|
+
}
|
|
692
|
+
function vl(t, a) {
|
|
693
|
+
if (!t?.plots?.length) return null;
|
|
694
|
+
const l = t.plots.length;
|
|
695
|
+
return (a % l + l) % l;
|
|
696
|
+
}
|
|
697
|
+
function ve({ seriesIndex: t, plotIndex: a, direction: l }) {
|
|
698
|
+
if (!g.value.length) return null;
|
|
699
|
+
const n = il(t);
|
|
700
|
+
if (n === -1) return null;
|
|
701
|
+
if (l === "up" || l === "down") {
|
|
702
|
+
const o = g.value[n];
|
|
703
|
+
if (!o?.plots?.length) return null;
|
|
704
|
+
const T = vl(o, a + (l === "up" ? -1 : 1));
|
|
705
|
+
return {
|
|
706
|
+
seriesIndex: o.seriesIndex,
|
|
707
|
+
plotIndex: T
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
if (l === "left" || l === "right") {
|
|
711
|
+
const d = ((n + (l === "left" ? -1 : 1)) % g.value.length + g.value.length) % g.value.length, T = g.value[d];
|
|
712
|
+
if (!T?.plots?.length) return null;
|
|
713
|
+
const O = Math.min(a, T.plots.length - 1);
|
|
714
|
+
return {
|
|
715
|
+
seriesIndex: T.seriesIndex,
|
|
716
|
+
plotIndex: O
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
return null;
|
|
720
|
+
}
|
|
721
|
+
function dl(t) {
|
|
722
|
+
if (!Y.value || ee.value || document.activeElement !== Y.value || !g.value.length) return;
|
|
723
|
+
const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", n = t.key === "ArrowUp", o = t.key === "ArrowDown", d = t.key === "Enter" || t.key === " ", T = t.key === "Escape";
|
|
724
|
+
if (!a && !l && !n && !o && !d && !T) return;
|
|
725
|
+
if (t.preventDefault(), t.stopPropagation(), T) {
|
|
726
|
+
rt();
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
if (d) {
|
|
730
|
+
if (k.value === null || w.value === null) return;
|
|
731
|
+
const ut = g.value.find((hl) => hl.seriesIndex === k.value)?.plots?.[w.value];
|
|
732
|
+
if (!ut) return;
|
|
733
|
+
Ze({
|
|
734
|
+
datapoint: ut,
|
|
735
|
+
plotIndex: w.value,
|
|
736
|
+
seriesIndex: k.value
|
|
737
|
+
});
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
let O = null;
|
|
741
|
+
if (k.value === null || w.value === null) {
|
|
742
|
+
const ae = g.value[0];
|
|
743
|
+
if (!ae?.plots?.length) return;
|
|
744
|
+
O = {
|
|
745
|
+
seriesIndex: ae.seriesIndex,
|
|
746
|
+
plotIndex: 0
|
|
747
|
+
};
|
|
748
|
+
} else n ? O = ve({
|
|
749
|
+
seriesIndex: k.value,
|
|
750
|
+
plotIndex: w.value,
|
|
751
|
+
direction: "up"
|
|
752
|
+
}) : o ? O = ve({
|
|
753
|
+
seriesIndex: k.value,
|
|
754
|
+
plotIndex: w.value,
|
|
755
|
+
direction: "down"
|
|
756
|
+
}) : a ? O = ve({
|
|
757
|
+
seriesIndex: k.value,
|
|
758
|
+
plotIndex: w.value,
|
|
759
|
+
direction: "left"
|
|
760
|
+
}) : l && (O = ve({
|
|
761
|
+
seriesIndex: k.value,
|
|
762
|
+
plotIndex: w.value,
|
|
763
|
+
direction: "right"
|
|
764
|
+
}));
|
|
765
|
+
if (!O) return;
|
|
766
|
+
const it = g.value.find((ae) => ae.seriesIndex === O.seriesIndex)?.plots?.[O.plotIndex];
|
|
767
|
+
it && tt({
|
|
768
|
+
datapoint: it,
|
|
769
|
+
plotIndex: O.plotIndex,
|
|
770
|
+
seriesIndex: O.seriesIndex,
|
|
771
|
+
triggerMode: "keyboard"
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
return mt({
|
|
775
|
+
getData: Jt,
|
|
776
|
+
getImage: Qt,
|
|
777
|
+
generatePdf: je,
|
|
778
|
+
generateCsv: $e,
|
|
779
|
+
generateImage: Ve,
|
|
780
|
+
generateSvg: st,
|
|
781
|
+
hideSeries: Gt,
|
|
782
|
+
showSeries: Kt,
|
|
783
|
+
toggleTable: lt,
|
|
784
|
+
toggleTooltip: at,
|
|
785
|
+
toggleAnnotator: Ie,
|
|
786
|
+
toggleFullscreen: Qe,
|
|
787
|
+
copyAlt: nt
|
|
788
|
+
}), (t, a) => (s(), r("div", {
|
|
789
|
+
id: `history_plot_${L.value}`,
|
|
790
|
+
ref_key: "historyPlotChart",
|
|
791
|
+
ref: X,
|
|
792
|
+
class: H({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": q.value }),
|
|
793
|
+
style: M(`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%" : ""}`),
|
|
794
|
+
onMouseenter: a[2] || (a[2] = () => c(Ue)(!0)),
|
|
795
|
+
onMouseleave: a[3] || (a[3] = () => c(Ue)(!1))
|
|
796
|
+
}, [
|
|
797
|
+
C("div", {
|
|
798
|
+
id: `chart-instructions-${L.value}`,
|
|
799
|
+
class: "sr-only"
|
|
800
|
+
}, [
|
|
801
|
+
C("p", null, D(e.value.a11y.translations.keyboardNavigation), 1)
|
|
802
|
+
], 8, Jl),
|
|
803
|
+
le.value.body.length ? (s(), F(Kl, {
|
|
804
|
+
key: 0,
|
|
805
|
+
uid: L.value,
|
|
806
|
+
head: le.value.head,
|
|
807
|
+
body: le.value.body,
|
|
808
|
+
caption: le.value.caption,
|
|
809
|
+
notice: le.value.notice
|
|
810
|
+
}, null, 8, ["uid", "head", "body", "caption", "notice"])) : y("", !0),
|
|
811
|
+
f(t.$slots, "userConfig", {}, void 0, !0),
|
|
812
|
+
e.value.userOptions.buttons.annotator ? (s(), F(c(Tt), {
|
|
813
|
+
key: 1,
|
|
814
|
+
svgRef: c(Y),
|
|
815
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
816
|
+
color: e.value.style.chart.color,
|
|
817
|
+
active: ee.value,
|
|
818
|
+
isCursorPointer: j.value,
|
|
819
|
+
onClose: Ie
|
|
820
|
+
}, {
|
|
821
|
+
"annotator-action-close": p(() => [
|
|
822
|
+
f(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
823
|
+
]),
|
|
824
|
+
"annotator-action-color": p(({ color: l }) => [
|
|
825
|
+
f(t.$slots, "annotator-action-color", $(I({ color: l })), void 0, !0)
|
|
826
|
+
]),
|
|
827
|
+
"annotator-action-draw": p(({ mode: l }) => [
|
|
828
|
+
f(t.$slots, "annotator-action-draw", $(I({ mode: l })), void 0, !0)
|
|
829
|
+
]),
|
|
830
|
+
"annotator-action-undo": p(({ disabled: l }) => [
|
|
831
|
+
f(t.$slots, "annotator-action-undo", $(I({ disabled: l })), void 0, !0)
|
|
832
|
+
]),
|
|
833
|
+
"annotator-action-redo": p(({ disabled: l }) => [
|
|
834
|
+
f(t.$slots, "annotator-action-redo", $(I({ disabled: l })), void 0, !0)
|
|
835
|
+
]),
|
|
836
|
+
"annotator-action-delete": p(({ disabled: l }) => [
|
|
837
|
+
f(t.$slots, "annotator-action-delete", $(I({ disabled: l })), void 0, !0)
|
|
838
|
+
]),
|
|
839
|
+
_: 3
|
|
840
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
|
|
841
|
+
Nt.value ? (s(), r("div", {
|
|
842
|
+
key: 2,
|
|
843
|
+
ref_key: "noTitle",
|
|
844
|
+
ref: Xe,
|
|
845
|
+
class: "vue-data-ui-no-title-space",
|
|
846
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
847
|
+
}, null, 512)) : y("", !0),
|
|
848
|
+
e.value.style.chart.title.text ? (s(), r("div", {
|
|
849
|
+
key: 3,
|
|
850
|
+
ref_key: "chartTitle",
|
|
851
|
+
ref: ze,
|
|
852
|
+
class: "vue-ui-xy-title",
|
|
853
|
+
style: M(`font-family:${e.value.style.fontFamily}`)
|
|
854
|
+
}, [
|
|
855
|
+
(s(), F(Wl, {
|
|
856
|
+
key: `title_${Oe.value}`,
|
|
857
|
+
config: {
|
|
858
|
+
title: {
|
|
859
|
+
cy: "history-plot-div-title",
|
|
860
|
+
...e.value.style.chart.title
|
|
861
|
+
},
|
|
862
|
+
subtitle: {
|
|
863
|
+
cy: "history-plot-div-subtitle",
|
|
864
|
+
...e.value.style.chart.title.subtitle
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}, null, 8, ["config"]))
|
|
868
|
+
], 4)) : y("", !0),
|
|
869
|
+
C("div", {
|
|
870
|
+
id: `legend-top-${L.value}`
|
|
871
|
+
}, null, 8, Ql),
|
|
872
|
+
e.value.userOptions.show && ue.value && (c(We) || c(Ce)) ? (s(), F(c($t), {
|
|
873
|
+
ref_key: "userOptionsRef",
|
|
874
|
+
ref: fe,
|
|
875
|
+
key: `user_option_${Fe.value}`,
|
|
876
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
877
|
+
color: e.value.style.chart.color,
|
|
878
|
+
isPrinting: c(Ae),
|
|
879
|
+
isImaging: c(Se),
|
|
880
|
+
uid: L.value,
|
|
881
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
882
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
883
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
884
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
885
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
886
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
887
|
+
hasLabel: !1,
|
|
888
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
889
|
+
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
890
|
+
isFullscreen: q.value,
|
|
891
|
+
chartElement: X.value,
|
|
892
|
+
position: e.value.userOptions.position,
|
|
893
|
+
isTooltip: z.value.showTooltip,
|
|
894
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
895
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
896
|
+
isAnnotation: ee.value,
|
|
897
|
+
callbacks: e.value.userOptions.callbacks,
|
|
898
|
+
printScale: e.value.userOptions.print.scale,
|
|
899
|
+
tableDialog: e.value.table.useDialog,
|
|
900
|
+
isCursorPointer: j.value,
|
|
901
|
+
onToggleFullscreen: Qe,
|
|
902
|
+
onGeneratePdf: c(je),
|
|
903
|
+
onGenerateCsv: $e,
|
|
904
|
+
onGenerateImage: rl,
|
|
905
|
+
onGenerateSvg: st,
|
|
906
|
+
onToggleTable: lt,
|
|
907
|
+
onToggleTooltip: at,
|
|
908
|
+
onToggleAnnotator: Ie,
|
|
909
|
+
onCopyAlt: nt,
|
|
910
|
+
style: M({
|
|
911
|
+
visibility: c(We) ? c(Ce) ? "visible" : "hidden" : "visible"
|
|
912
|
+
})
|
|
913
|
+
}, vt({ _: 2 }, [
|
|
914
|
+
t.$slots.menuIcon ? {
|
|
915
|
+
name: "menuIcon",
|
|
916
|
+
fn: p(({ isOpen: l, color: n }) => [
|
|
917
|
+
f(t.$slots, "menuIcon", $(I({ isOpen: l, color: n })), void 0, !0)
|
|
918
|
+
]),
|
|
919
|
+
key: "0"
|
|
920
|
+
} : void 0,
|
|
921
|
+
t.$slots.optionTooltip ? {
|
|
922
|
+
name: "optionTooltip",
|
|
923
|
+
fn: p(() => [
|
|
924
|
+
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
925
|
+
]),
|
|
926
|
+
key: "1"
|
|
927
|
+
} : void 0,
|
|
928
|
+
t.$slots.optionPdf ? {
|
|
929
|
+
name: "optionPdf",
|
|
930
|
+
fn: p(() => [
|
|
931
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
932
|
+
]),
|
|
933
|
+
key: "2"
|
|
934
|
+
} : void 0,
|
|
935
|
+
t.$slots.optionCsv ? {
|
|
936
|
+
name: "optionCsv",
|
|
937
|
+
fn: p(() => [
|
|
938
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
939
|
+
]),
|
|
940
|
+
key: "3"
|
|
941
|
+
} : void 0,
|
|
942
|
+
t.$slots.optionImg ? {
|
|
943
|
+
name: "optionImg",
|
|
944
|
+
fn: p(() => [
|
|
945
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
946
|
+
]),
|
|
947
|
+
key: "4"
|
|
948
|
+
} : void 0,
|
|
949
|
+
t.$slots.optionSvg ? {
|
|
950
|
+
name: "optionSvg",
|
|
951
|
+
fn: p(() => [
|
|
952
|
+
f(t.$slots, "optionSvg", {}, void 0, !0)
|
|
953
|
+
]),
|
|
954
|
+
key: "5"
|
|
955
|
+
} : void 0,
|
|
956
|
+
t.$slots.optionTable ? {
|
|
957
|
+
name: "optionTable",
|
|
958
|
+
fn: p(() => [
|
|
959
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
960
|
+
]),
|
|
961
|
+
key: "6"
|
|
962
|
+
} : void 0,
|
|
963
|
+
t.$slots.optionFullscreen ? {
|
|
964
|
+
name: "optionFullscreen",
|
|
965
|
+
fn: p(({ toggleFullscreen: l, isFullscreen: n }) => [
|
|
966
|
+
f(t.$slots, "optionFullscreen", $(I({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
|
|
967
|
+
]),
|
|
968
|
+
key: "7"
|
|
969
|
+
} : void 0,
|
|
970
|
+
t.$slots.optionAnnotator ? {
|
|
971
|
+
name: "optionAnnotator",
|
|
972
|
+
fn: p(({ toggleAnnotator: l, isAnnotator: n }) => [
|
|
973
|
+
f(t.$slots, "optionAnnotator", $(I({ toggleAnnotator: l, isAnnotator: n })), void 0, !0)
|
|
974
|
+
]),
|
|
975
|
+
key: "8"
|
|
976
|
+
} : void 0,
|
|
977
|
+
t.$slots.optionAltCopy ? {
|
|
978
|
+
name: "optionAltCopy",
|
|
979
|
+
fn: p(({ altCopy: l }) => [
|
|
980
|
+
f(t.$slots, "optionAltCopy", $(I({ altCopy: l })), void 0, !0)
|
|
981
|
+
]),
|
|
982
|
+
key: "9"
|
|
983
|
+
} : void 0
|
|
984
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : y("", !0),
|
|
985
|
+
C("div", ea, [
|
|
986
|
+
(s(), r("svg", {
|
|
987
|
+
ref_key: "svgRef",
|
|
988
|
+
ref: Y,
|
|
989
|
+
xmlns: c(Al),
|
|
990
|
+
viewBox: `0 0 ${b.value.width < 0 ? 0.1 : b.value.width} ${b.value.height < 0 ? 0.1 : b.value.height}`,
|
|
991
|
+
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
992
|
+
"aria-describedby": `chart-instructions-${L.value}`,
|
|
993
|
+
tabindex: "0",
|
|
994
|
+
onFocus: ul,
|
|
995
|
+
onBlur: cl,
|
|
996
|
+
onKeydown: dl
|
|
997
|
+
}, [
|
|
998
|
+
_e(c(It)),
|
|
999
|
+
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
1000
|
+
key: 0,
|
|
1001
|
+
x: v.value.left,
|
|
1002
|
+
y: v.value.top,
|
|
1003
|
+
width: v.value.width <= 0 ? 10 : v.value.width,
|
|
1004
|
+
height: v.value.height <= 0 ? 10 : v.value.height,
|
|
1005
|
+
style: {
|
|
1006
|
+
pointerEvents: "none"
|
|
1007
|
+
}
|
|
1008
|
+
}, [
|
|
1009
|
+
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
1010
|
+
], 8, la)) : y("", !0),
|
|
1011
|
+
e.value.style.chart.plots.gradient.show ? (s(), r("defs", aa, [
|
|
1012
|
+
(s(!0), r(A, null, S(g.value, (l, n) => (s(), r("radialGradient", {
|
|
1013
|
+
id: `gradient_${n}_${L.value}`,
|
|
1014
|
+
fy: "30%"
|
|
1015
|
+
}, [
|
|
1016
|
+
C("stop", {
|
|
1017
|
+
offset: "10%",
|
|
1018
|
+
"stop-color": c(Sl)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
1019
|
+
}, null, 8, sa),
|
|
1020
|
+
C("stop", {
|
|
1021
|
+
offset: "90%",
|
|
1022
|
+
"stop-color": c(Tl)(l.color, 0.1)
|
|
1023
|
+
}, null, 8, na),
|
|
1024
|
+
C("stop", {
|
|
1025
|
+
offset: "100%",
|
|
1026
|
+
"stop-color": l.color
|
|
1027
|
+
}, null, 8, ra)
|
|
1028
|
+
], 8, oa))), 256))
|
|
1029
|
+
])) : y("", !0),
|
|
1030
|
+
e.value.style.chart.grid.verticalLines.show ? (s(), r("g", ia, [
|
|
1031
|
+
(s(!0), r(A, null, S(m.value.tickX, (l) => (s(), r("line", {
|
|
1032
|
+
x1: l.x,
|
|
1033
|
+
x2: l.x,
|
|
1034
|
+
y1: l.y1,
|
|
1035
|
+
y2: l.y2,
|
|
1036
|
+
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
1037
|
+
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1038
|
+
"stroke-linecap": "round"
|
|
1039
|
+
}, null, 8, ua))), 256))
|
|
1040
|
+
])) : y("", !0),
|
|
1041
|
+
e.value.style.chart.axes.y.labels.show ? (s(), r("g", ca, [
|
|
1042
|
+
(s(!0), r(A, null, S(m.value.tickY, (l) => (s(), r("line", {
|
|
1043
|
+
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
1044
|
+
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1045
|
+
"stroke-linecap": "round",
|
|
1046
|
+
x1: v.value.left - 5,
|
|
1047
|
+
x2: v.value.left,
|
|
1048
|
+
y1: l.y,
|
|
1049
|
+
y2: l.y
|
|
1050
|
+
}, null, 8, va))), 256))
|
|
1051
|
+
])) : y("", !0),
|
|
1052
|
+
e.value.style.chart.axes.y.labels.show ? (s(), r("g", {
|
|
1053
|
+
key: 4,
|
|
1054
|
+
ref_key: "yAxisScales",
|
|
1055
|
+
ref: xe
|
|
1056
|
+
}, [
|
|
1057
|
+
(s(!0), r(A, null, S(m.value.tickY, (l) => (s(), r("text", {
|
|
1058
|
+
x: v.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
1059
|
+
y: l.y + i.value.yAxisLabels / 3,
|
|
1060
|
+
fill: e.value.style.chart.axes.y.labels.color,
|
|
1061
|
+
"font-size": i.value.yAxisLabels,
|
|
1062
|
+
"text-anchor": "end"
|
|
1063
|
+
}, D(c(K)(
|
|
1064
|
+
e.value.style.chart.axes.y.labels.formatter,
|
|
1065
|
+
l.value,
|
|
1066
|
+
c(G)({
|
|
1067
|
+
p: e.value.style.chart.axes.y.labels.prefix,
|
|
1068
|
+
v: l.value,
|
|
1069
|
+
s: e.value.style.chart.axes.y.labels.suffix,
|
|
1070
|
+
r: e.value.style.chart.axes.y.labels.rounding
|
|
1071
|
+
})
|
|
1072
|
+
)), 9, da))), 256))
|
|
1073
|
+
], 512)) : y("", !0),
|
|
1074
|
+
e.value.style.chart.axes.y.name.text ? (s(), r("text", {
|
|
1075
|
+
key: 5,
|
|
1076
|
+
ref_key: "yAxisLabel",
|
|
1077
|
+
ref: ge,
|
|
1078
|
+
transform: `translate(${i.value.yAxisName}, ${b.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
1079
|
+
"font-size": i.value.yAxisName,
|
|
1080
|
+
fill: e.value.style.chart.axes.y.name.color,
|
|
1081
|
+
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
1082
|
+
"text-anchor": "middle"
|
|
1083
|
+
}, D(e.value.style.chart.axes.y.name.text), 9, ha)) : y("", !0),
|
|
1084
|
+
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", ya, [
|
|
1085
|
+
(s(!0), r(A, null, S(m.value.tickY, (l) => (s(), r("line", {
|
|
1086
|
+
x1: l.x1,
|
|
1087
|
+
x2: l.x2,
|
|
1088
|
+
y1: l.y,
|
|
1089
|
+
y2: l.y,
|
|
1090
|
+
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
1091
|
+
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
1092
|
+
"stroke-linecap": "round"
|
|
1093
|
+
}, null, 8, fa))), 256))
|
|
1094
|
+
])) : y("", !0),
|
|
1095
|
+
e.value.style.chart.axes.x.labels.show ? (s(), r("g", pa, [
|
|
1096
|
+
(s(!0), r(A, null, S(m.value.tickX, (l) => (s(), r("line", {
|
|
1097
|
+
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
1098
|
+
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1099
|
+
"stroke-linecap": "round",
|
|
1100
|
+
x1: l.x,
|
|
1101
|
+
x2: l.x,
|
|
1102
|
+
y1: v.value.bottom,
|
|
1103
|
+
y2: v.value.bottom + 5
|
|
1104
|
+
}, null, 8, ga))), 256))
|
|
1105
|
+
])) : y("", !0),
|
|
1106
|
+
e.value.style.chart.axes.x.labels.show ? (s(), r("g", {
|
|
1107
|
+
key: 8,
|
|
1108
|
+
ref_key: "xAxisScales",
|
|
1109
|
+
ref: re
|
|
1110
|
+
}, [
|
|
1111
|
+
(s(!0), r(A, null, S(m.value.tickX, (l) => (s(), r("text", {
|
|
1112
|
+
class: "vue-ui-history-plot-x-axis-scale",
|
|
1113
|
+
transform: `translate(${l.x}, ${v.value.bottom + e.value.style.chart.axes.x.labels.offsetY + i.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
1114
|
+
fill: e.value.style.chart.axes.x.labels.color,
|
|
1115
|
+
"font-size": i.value.xAxisLabels,
|
|
1116
|
+
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
1117
|
+
}, D(c(K)(
|
|
1118
|
+
e.value.style.chart.axes.x.labels.formatter,
|
|
1119
|
+
l.value,
|
|
1120
|
+
c(G)({
|
|
1121
|
+
p: e.value.style.chart.axes.x.labels.prefix,
|
|
1122
|
+
v: l.value,
|
|
1123
|
+
s: e.value.style.chart.axes.x.labels.suffix,
|
|
1124
|
+
r: e.value.style.chart.axes.x.labels.rounding
|
|
1125
|
+
})
|
|
1126
|
+
)), 9, xa))), 256))
|
|
1127
|
+
], 512)) : y("", !0),
|
|
1128
|
+
e.value.style.chart.axes.x.name.text ? (s(), r("text", {
|
|
1129
|
+
key: 9,
|
|
1130
|
+
ref_key: "xAxisLabel",
|
|
1131
|
+
ref: pe,
|
|
1132
|
+
x: b.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
1133
|
+
y: b.value.height,
|
|
1134
|
+
"font-size": i.value.xAxisName,
|
|
1135
|
+
fill: e.value.style.chart.axes.x.name.color,
|
|
1136
|
+
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
1137
|
+
"text-anchor": "middle"
|
|
1138
|
+
}, D(e.value.style.chart.axes.x.name.text), 9, ba)) : y("", !0),
|
|
1139
|
+
e.value.style.chart.grid.xAxis.show ? (s(), r("line", {
|
|
1140
|
+
key: 10,
|
|
1141
|
+
x1: v.value.left,
|
|
1142
|
+
x2: v.value.left + v.value.width,
|
|
1143
|
+
y1: v.value.bottom,
|
|
1144
|
+
y2: v.value.bottom,
|
|
1145
|
+
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
1146
|
+
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
1147
|
+
"stroke-linecap": "round"
|
|
1148
|
+
}, null, 8, ma)) : y("", !0),
|
|
1149
|
+
e.value.style.chart.grid.yAxis.show ? (s(), r("line", {
|
|
1150
|
+
key: 11,
|
|
1151
|
+
x1: v.value.left,
|
|
1152
|
+
x2: v.value.left,
|
|
1153
|
+
y1: v.value.top,
|
|
1154
|
+
y2: v.value.bottom,
|
|
1155
|
+
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
1156
|
+
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
1157
|
+
"stroke-linecap": "round"
|
|
1158
|
+
}, null, 8, ka)) : y("", !0),
|
|
1159
|
+
(s(!0), r(A, null, S(g.value, (l, n) => (s(), r("g", null, [
|
|
1160
|
+
e.value.style.chart.paths.show ? (s(), r("g", {
|
|
1161
|
+
key: 0,
|
|
1162
|
+
style: M({
|
|
1163
|
+
opacity: P.value === null ? 1 : 0.3
|
|
1164
|
+
})
|
|
1165
|
+
}, [
|
|
1166
|
+
C("path", {
|
|
1167
|
+
d: l.path,
|
|
1168
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
1169
|
+
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
1170
|
+
fill: "none",
|
|
1171
|
+
"stroke-linecap": "round",
|
|
1172
|
+
"stroke-linejoin": "round",
|
|
1173
|
+
class: H({ animated: e.value.useCssAnimation && !c(B) })
|
|
1174
|
+
}, null, 10, wa),
|
|
1175
|
+
C("path", {
|
|
1176
|
+
d: l.path,
|
|
1177
|
+
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
1178
|
+
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
1179
|
+
fill: "none",
|
|
1180
|
+
"stroke-linecap": "round",
|
|
1181
|
+
"stroke-linejoin": "round",
|
|
1182
|
+
class: H({ animated: e.value.useCssAnimation && !c(B) })
|
|
1183
|
+
}, null, 10, Ca)
|
|
1184
|
+
], 4)) : y("", !0),
|
|
1185
|
+
(s(!0), r(A, null, S(l.plots, (o) => (s(), r("circle", {
|
|
1186
|
+
cx: o.x,
|
|
1187
|
+
cy: o.y,
|
|
1188
|
+
fill: e.value.style.chart.backgroundColor,
|
|
1189
|
+
r: i.value.plots,
|
|
1190
|
+
stroke: "none"
|
|
1191
|
+
}, null, 8, Aa))), 256)),
|
|
1192
|
+
(s(!0), r(A, null, S(l.plots, (o) => (s(), r("circle", {
|
|
1193
|
+
cx: o.x,
|
|
1194
|
+
cy: o.y,
|
|
1195
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${L.value})` : o.color,
|
|
1196
|
+
r: i.value.plots,
|
|
1197
|
+
stroke: e.value.style.chart.plots.stroke,
|
|
1198
|
+
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
1199
|
+
class: H({ animated: e.value.useCssAnimation && !c(B) }),
|
|
1200
|
+
style: M({
|
|
1201
|
+
opacity: P.value === null || P.value.id === o.id ? 1 : 0.3,
|
|
1202
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1203
|
+
})
|
|
1204
|
+
}, null, 14, Sa))), 256)),
|
|
1205
|
+
e.value.style.chart.plots.labels.show ? (s(), r("g", Ta, [
|
|
1206
|
+
(s(!0), r(A, null, S(l.plots, (o) => (s(), r("g", null, [
|
|
1207
|
+
String(o.label).includes(`
|
|
1208
|
+
`) ? (s(), r("text", {
|
|
1209
|
+
key: 1,
|
|
1210
|
+
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
1211
|
+
y: o.y + e.value.style.chart.plots.labels.offsetY + i.value.plots + i.value.labels,
|
|
1212
|
+
"font-size": i.value.labels,
|
|
1213
|
+
fill: e.value.style.chart.plots.labels.color,
|
|
1214
|
+
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1215
|
+
"text-anchor": "middle",
|
|
1216
|
+
class: H({ animated: e.value.useCssAnimation && !c(B) }),
|
|
1217
|
+
style: M({
|
|
1218
|
+
opacity: P.value === null || P.value.id === o.id ? 1 : 0.3,
|
|
1219
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1220
|
+
}),
|
|
1221
|
+
innerHTML: c($l)({
|
|
1222
|
+
content: String(o.label),
|
|
1223
|
+
fontSize: i.value.labels,
|
|
1224
|
+
fill: e.value.style.chart.plots.labels.color,
|
|
1225
|
+
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
1226
|
+
y: o.y + e.value.style.chart.plots.labels.offsetY + i.value.plots + i.value.labels
|
|
1227
|
+
})
|
|
1228
|
+
}, null, 14, Ia)) : (s(), r("text", {
|
|
1229
|
+
key: 0,
|
|
1230
|
+
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
1231
|
+
y: o.y + e.value.style.chart.plots.labels.offsetY + i.value.plots + i.value.labels,
|
|
1232
|
+
"font-size": i.value.labels,
|
|
1233
|
+
fill: e.value.style.chart.plots.labels.color,
|
|
1234
|
+
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1235
|
+
"text-anchor": "middle",
|
|
1236
|
+
class: H({ animated: e.value.useCssAnimation && !c(B) }),
|
|
1237
|
+
style: M({
|
|
1238
|
+
opacity: P.value === null || P.value.id === o.id ? 1 : 0.3,
|
|
1239
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1240
|
+
})
|
|
1241
|
+
}, D(o.label), 15, $a))
|
|
1242
|
+
]))), 256))
|
|
1243
|
+
])) : y("", !0),
|
|
1244
|
+
e.value.style.chart.plots.indexLabels.show ? (s(), r("g", _a, [
|
|
1245
|
+
(s(!0), r(A, null, S(l.plots, (o, d) => (s(), r("text", {
|
|
1246
|
+
x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
1247
|
+
y: o.y + e.value.style.chart.plots.indexLabels.offsetY + i.value.indexLabels / 3,
|
|
1248
|
+
"font-size": i.value.indexLabels,
|
|
1249
|
+
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1250
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? c(Il)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
1251
|
+
"text-anchor": "middle",
|
|
1252
|
+
class: H({ animated: e.value.useCssAnimation && !c(B) }),
|
|
1253
|
+
style: M({
|
|
1254
|
+
opacity: P.value === null || P.value.id === o.id ? 1 : 0.3,
|
|
1255
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1256
|
+
})
|
|
1257
|
+
}, D(e.value.style.chart.plots.indexLabels.startAtZero ? d : d + 1), 15, La))), 256))
|
|
1258
|
+
])) : y("", !0)
|
|
1259
|
+
]))), 256)),
|
|
1260
|
+
(s(!0), r(A, null, S(g.value, (l) => (s(), r("g", null, [
|
|
1261
|
+
(s(!0), r(A, null, S(l.plots, (n, o) => (s(), r("circle", {
|
|
1262
|
+
cx: n.x,
|
|
1263
|
+
cy: n.y,
|
|
1264
|
+
fill: "transparent",
|
|
1265
|
+
r: i.value.plots,
|
|
1266
|
+
stroke: "none",
|
|
1267
|
+
onMouseenter: (d) => tt({
|
|
1268
|
+
datapoint: n,
|
|
1269
|
+
plotIndex: o,
|
|
1270
|
+
seriesIndex: l.seriesIndex,
|
|
1271
|
+
triggerMode: "pointer"
|
|
1272
|
+
}),
|
|
1273
|
+
onMouseleave: (d) => et({
|
|
1274
|
+
datapoint: n,
|
|
1275
|
+
plotIndex: o,
|
|
1276
|
+
seriesIndex: l.seriesIndex
|
|
1277
|
+
}),
|
|
1278
|
+
onClick: (d) => Ze({
|
|
1279
|
+
datapoint: n,
|
|
1280
|
+
plotIndex: o,
|
|
1281
|
+
seriesIndex: l.seriesIndex
|
|
1282
|
+
})
|
|
1283
|
+
}, null, 40, Pa))), 256))
|
|
1284
|
+
]))), 256)),
|
|
1285
|
+
f(t.$slots, "svg", {
|
|
1286
|
+
svg: {
|
|
1287
|
+
...b.value,
|
|
1288
|
+
isPrintingImg: c(Ae) | c(Se) | se.value,
|
|
1289
|
+
isPrintingSvg: ne.value
|
|
1290
|
+
}
|
|
1291
|
+
}, void 0, !0)
|
|
1292
|
+
], 44, ta)),
|
|
1293
|
+
t.$slots.hint ? (s(), r("div", za, [
|
|
1294
|
+
f(t.$slots, "hint", $(I({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: be.value })), void 0, !0)
|
|
1295
|
+
])) : y("", !0)
|
|
1296
|
+
]),
|
|
1297
|
+
t.$slots.watermark ? (s(), r("div", Oa, [
|
|
1298
|
+
f(t.$slots, "watermark", $(I({ isPrinting: c(Ae) || c(Se) || se.value || ne.value })), void 0, !0)
|
|
1299
|
+
])) : y("", !0),
|
|
1300
|
+
C("div", {
|
|
1301
|
+
id: `legend-bottom-${L.value}`
|
|
1302
|
+
}, null, 8, Ma),
|
|
1303
|
+
Re.value ? (s(), F(xl, {
|
|
1304
|
+
key: 6,
|
|
1305
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
|
|
1306
|
+
}, [
|
|
1307
|
+
C("div", {
|
|
1308
|
+
ref_key: "chartLegend",
|
|
1309
|
+
ref: Me
|
|
1310
|
+
}, [
|
|
1311
|
+
e.value.style.chart.legend.show && ue.value ? (s(), F(Vl, {
|
|
1312
|
+
key: `legend_${Ne.value}`,
|
|
1313
|
+
legendSet: Q.value,
|
|
1314
|
+
config: qt.value,
|
|
1315
|
+
isCursorPointer: j.value,
|
|
1316
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
|
|
1317
|
+
ce(l.seriesIndex), Je(l);
|
|
1318
|
+
})
|
|
1319
|
+
}, {
|
|
1320
|
+
item: p(({ legend: l, index: n }) => [
|
|
1321
|
+
C("div", {
|
|
1322
|
+
onClick: (o) => {
|
|
1323
|
+
l.segregate(), Je(l);
|
|
1324
|
+
},
|
|
1325
|
+
style: M(`opacity:${x.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
1326
|
+
}, D(l.name), 13, Na)
|
|
1327
|
+
]),
|
|
1328
|
+
legendToggle: p(() => [
|
|
1329
|
+
Q.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !c(B) ? (s(), F(Gl, {
|
|
1330
|
+
key: 0,
|
|
1331
|
+
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1332
|
+
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1333
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
1334
|
+
checked: x.value.length > 0,
|
|
1335
|
+
isCursorPointer: j.value,
|
|
1336
|
+
onToggle: Vt
|
|
1337
|
+
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : y("", !0)
|
|
1338
|
+
]),
|
|
1339
|
+
_: 1
|
|
1340
|
+
}, 8, ["legendSet", "config", "isCursorPointer"])) : f(t.$slots, "legend", {
|
|
1341
|
+
key: 1,
|
|
1342
|
+
legend: Q.value
|
|
1343
|
+
}, void 0, !0)
|
|
1344
|
+
], 512)
|
|
1345
|
+
], 8, ["to"])) : y("", !0),
|
|
1346
|
+
t.$slots.source ? (s(), r("div", {
|
|
1347
|
+
key: 7,
|
|
1348
|
+
ref_key: "source",
|
|
1349
|
+
ref: Be,
|
|
1350
|
+
dir: "auto"
|
|
1351
|
+
}, [
|
|
1352
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
1353
|
+
], 512)) : y("", !0),
|
|
1354
|
+
_e(c(wt), {
|
|
1355
|
+
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1356
|
+
show: z.value.showTooltip && oe.value,
|
|
1357
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1358
|
+
color: e.value.style.chart.tooltip.color,
|
|
1359
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
1360
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
1361
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
1362
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
1363
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1364
|
+
position: e.value.style.chart.tooltip.position,
|
|
1365
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1366
|
+
parent: X.value,
|
|
1367
|
+
content: ye.value,
|
|
1368
|
+
isCustom: Z.value,
|
|
1369
|
+
isFullscreen: q.value,
|
|
1370
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1371
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1372
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1373
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1374
|
+
isA11yMode: ie.value === "keyboard",
|
|
1375
|
+
a11yPosition: Ee.value
|
|
1376
|
+
}, {
|
|
1377
|
+
"tooltip-before": p(() => [
|
|
1378
|
+
f(t.$slots, "tooltip-before", $(I({ ...Te.value })), void 0, !0)
|
|
1379
|
+
]),
|
|
1380
|
+
"tooltip-after": p(() => [
|
|
1381
|
+
f(t.$slots, "tooltip-after", $(I({ ...Te.value })), void 0, !0)
|
|
1382
|
+
]),
|
|
1383
|
+
_: 3
|
|
1384
|
+
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1385
|
+
ue.value && e.value.userOptions.buttons.table ? (s(), F(bl(te.value.component), ml({ key: 8 }, te.value.props, {
|
|
1386
|
+
ref_key: "tableUnit",
|
|
1387
|
+
ref: J,
|
|
1388
|
+
onClose: ot
|
|
1389
|
+
}), vt({
|
|
1390
|
+
content: p(() => [
|
|
1391
|
+
(s(), F(c(St), {
|
|
1392
|
+
key: `table_${De.value}`,
|
|
1393
|
+
colNames: V.value.colNames,
|
|
1394
|
+
head: V.value.head,
|
|
1395
|
+
body: V.value.body,
|
|
1396
|
+
config: V.value.config,
|
|
1397
|
+
title: e.value.table.useDialog ? "" : te.value.title,
|
|
1398
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1399
|
+
isCursorPointer: j.value,
|
|
1400
|
+
onClose: ot
|
|
1401
|
+
}, {
|
|
1402
|
+
th: p(({ th: l }) => [
|
|
1403
|
+
C("div", {
|
|
1404
|
+
innerHTML: l,
|
|
1405
|
+
style: { display: "flex", "align-items": "center" }
|
|
1406
|
+
}, null, 8, Da)
|
|
1407
|
+
]),
|
|
1408
|
+
td: p(({ td: l }) => [
|
|
1409
|
+
dt(D(l.name || l), 1)
|
|
1410
|
+
]),
|
|
1411
|
+
_: 1
|
|
1412
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
1413
|
+
]),
|
|
1414
|
+
_: 2
|
|
1415
|
+
}, [
|
|
1416
|
+
e.value.table.useDialog ? {
|
|
1417
|
+
name: "title",
|
|
1418
|
+
fn: p(() => [
|
|
1419
|
+
dt(D(te.value.title), 1)
|
|
1420
|
+
]),
|
|
1421
|
+
key: "0"
|
|
1422
|
+
} : void 0,
|
|
1423
|
+
e.value.table.useDialog ? {
|
|
1424
|
+
name: "actions",
|
|
1425
|
+
fn: p(() => [
|
|
1426
|
+
C("button", {
|
|
1427
|
+
tabindex: "0",
|
|
1428
|
+
class: "vue-ui-user-options-button",
|
|
1429
|
+
onClick: a[1] || (a[1] = (l) => $e(e.value.userOptions.callbacks.csv)),
|
|
1430
|
+
style: M({ cursor: j.value ? "pointer" : "default" })
|
|
1431
|
+
}, [
|
|
1432
|
+
_e(c(Ct), {
|
|
1433
|
+
name: "fileCsv",
|
|
1434
|
+
stroke: te.value.props.color
|
|
1435
|
+
}, null, 8, ["stroke"])
|
|
1436
|
+
], 4)
|
|
1437
|
+
]),
|
|
1438
|
+
key: "1"
|
|
1439
|
+
} : void 0
|
|
1440
|
+
]), 1040)) : y("", !0),
|
|
1441
|
+
f(t.$slots, "skeleton", {}, () => [
|
|
1442
|
+
c(B) ? (s(), F(Fl, { key: 0 })) : y("", !0)
|
|
1443
|
+
], !0)
|
|
1444
|
+
], 46, Zl));
|
|
1445
|
+
}
|
|
1446
|
+
}, oo = /* @__PURE__ */ ql(Fa, [["__scopeId", "data-v-156f0653"]]);
|
|
1447
|
+
export {
|
|
1448
|
+
oo as default
|
|
1449
|
+
};
|