vue-data-ui 3.1.0 → 3.1.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-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, ref as v, shallowRef as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as O, ref as v, shallowRef as Ee, computed as y, onMounted as Mt, onBeforeUnmount as zt, toRefs as Nt, watch as K, watchEffect as Ot, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as L, normalizeClass as D, renderSlot as p, createBlock as I, createCommentVNode as h, createElementVNode as _, createVNode as de, createSlots as He, withCtx as b, normalizeProps as R, guardReactiveProps as B, Fragment as m, renderList as g, toDisplayString as T, Teleport as It, resolveDynamicComponent as Pt, mergeProps as Dt, createTextVNode as We, nextTick as Ft } from "vue";
|
|
2
|
+
import { u as Xt, c as je, o as Ue, f as Ge, g as Rt, t as Bt, d as Yt, e as Et, p as Q, D as Ve, k as Y, i as E, X as Ht, l as Wt, j as jt, I as Ut, F as Gt, E as F, a as Vt, b as qt, C as ee, v as Zt, w as Jt, y as Kt } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as qe, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as el, B as tl } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as ll } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as Ze } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as al } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as ol } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import rl from "./img-DvuphHeJ.js";
|
|
11
|
+
import nl from "./Title-AGmmsSi_.js";
|
|
12
|
+
import il from "./Legend-DLzeDl3-.js";
|
|
13
|
+
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "width", "height"], yl = { key: 1 }, fl = ["id"], xl = ["stop-color"], pl = ["stop-color"], bl = ["stop-color"], ml = { key: 2 }, gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = { key: 3 }, wl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Cl = ["x", "y", "fill", "font-size"], Al = ["transform", "font-size", "fill", "font-weight"], _l = { key: 6 }, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = { key: 7 }, Sl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Tl = ["transform", "fill", "font-size", "text-anchor"], Ml = ["x", "y", "font-size", "fill", "font-weight"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["d", "stroke", "stroke-width"], Il = ["d", "stroke", "stroke-width"], Pl = ["cx", "cy", "fill", "r"], Dl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Fl = { key: 1 }, Xl = ["x", "y", "font-size", "fill", "font-weight"], Rl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Bl = { key: 2 }, Yl = ["x", "y", "font-size", "font-weight", "fill"], El = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Hl = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Wl = ["id"], jl = ["onClick"], Ul = ["innerHTML"], Gl = {
|
|
18
18
|
__name: "vue-ui-history-plot",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,80 +31,80 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(Je, { expose: Ke, emit: Qe }) {
|
|
35
|
+
const et = O(() => import("./Tooltip-le0yZk_t.js")), tt = O(() => import("./BaseIcon-BLg8FaQ2.js")), lt = O(() => import("./vue-ui-accordion-Cv747Pg6.js")), at = O(() => import("./DataTable-BRN1-1ob.js")), st = O(() => import("./PenAndPaper-TgGWddgD.js")), ot = O(() => import("./UserOptions-DEFwuQIo.js")), rt = O(() => import("./PackageVersion-Jz9FlNXl.js")), nt = O(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_history_plot: it } = Xt(), d = Je, $ = v(null), ye = v(null), fe = v(0), xe = v(null), pe = v(0), be = v(0), me = v(0), M = Ee(null), X = Ee(null), ge = v(null), S = v(je()), te = v(!1), le = v(""), w = v([]), H = v(!1), A = v(null), W = v(!1), ke = v(null), we = v(!1), j = v(null), ae = v(null), se = v(null), oe = v(null), G = v(null), re = v(null), V = y({
|
|
36
36
|
get: () => !!d.dataset && d.dataset.length,
|
|
37
37
|
set: (t) => t
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
}), Ce = Qe;
|
|
39
|
+
Mt(() => {
|
|
40
|
+
we.value = !0, _e();
|
|
41
41
|
});
|
|
42
|
-
const
|
|
43
|
-
function
|
|
44
|
-
if (
|
|
42
|
+
const Ae = y(() => !!e.value.debug);
|
|
43
|
+
function _e() {
|
|
44
|
+
if (Ue(d.dataset) ? (Ge({
|
|
45
45
|
componentName: "VueUiHistoryPlot",
|
|
46
46
|
type: "dataset",
|
|
47
|
-
debug:
|
|
48
|
-
}),
|
|
49
|
-
|
|
47
|
+
debug: Ae.value
|
|
48
|
+
}), ie.value = !0) : d.dataset.forEach((t, a) => {
|
|
49
|
+
Rt({
|
|
50
50
|
datasetObject: t,
|
|
51
51
|
requiredAttributes: ["name", "values"]
|
|
52
52
|
}).forEach((l) => {
|
|
53
|
-
V.value = !1,
|
|
53
|
+
V.value = !1, Ge({
|
|
54
54
|
componentName: "VueUiHistoryPlot",
|
|
55
55
|
type: "datasetSerieAttribute",
|
|
56
56
|
property: l,
|
|
57
57
|
index: a,
|
|
58
|
-
debug:
|
|
58
|
+
debug: Ae.value
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
}),
|
|
62
|
-
const t =
|
|
63
|
-
const { width: a, height: l } =
|
|
64
|
-
chart:
|
|
65
|
-
title: e.value.style.chart.title.text ?
|
|
66
|
-
noTitle:
|
|
67
|
-
legend: e.value.style.chart.legend.show ?
|
|
68
|
-
source:
|
|
61
|
+
}), Ue(d.dataset) || (ie.value = e.value.loading), e.value.responsive) {
|
|
62
|
+
const t = qe(() => {
|
|
63
|
+
const { width: a, height: l } = Qt({
|
|
64
|
+
chart: $.value,
|
|
65
|
+
title: e.value.style.chart.title.text ? ye.value : null,
|
|
66
|
+
noTitle: ge.value,
|
|
67
|
+
legend: e.value.style.chart.legend.show ? xe.value : null,
|
|
68
|
+
source: ke.value
|
|
69
69
|
});
|
|
70
70
|
requestAnimationFrame(() => {
|
|
71
|
-
f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots =
|
|
71
|
+
f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
|
|
72
72
|
relator: Math.min(a, l),
|
|
73
73
|
adjuster: 600,
|
|
74
74
|
source: e.value.style.chart.plots.radius,
|
|
75
75
|
threshold: 3,
|
|
76
76
|
fallback: 3
|
|
77
|
-
}), n.value.indexLabels =
|
|
77
|
+
}), n.value.indexLabels = F({
|
|
78
78
|
relator: Math.min(a, l),
|
|
79
79
|
adjuster: 600,
|
|
80
80
|
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
81
81
|
threshold: 6,
|
|
82
82
|
fallback: 6
|
|
83
|
-
}), n.value.labels =
|
|
83
|
+
}), n.value.labels = F({
|
|
84
84
|
relator: Math.min(a, l),
|
|
85
85
|
adjuster: 600,
|
|
86
86
|
source: e.value.style.chart.plots.labels.fontSize,
|
|
87
87
|
threshold: 6,
|
|
88
88
|
fallback: 6
|
|
89
|
-
}), n.value.xAxisLabels =
|
|
89
|
+
}), n.value.xAxisLabels = F({
|
|
90
90
|
relator: Math.min(a, l),
|
|
91
91
|
adjuster: 600,
|
|
92
92
|
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
93
93
|
threshold: 6,
|
|
94
94
|
fallback: 6
|
|
95
|
-
}), n.value.xAxisName =
|
|
95
|
+
}), n.value.xAxisName = F({
|
|
96
96
|
relator: Math.min(a, l),
|
|
97
97
|
adjuster: 600,
|
|
98
98
|
source: e.value.style.chart.axes.x.name.fontSize,
|
|
99
99
|
threshold: 6,
|
|
100
100
|
fallback: 6
|
|
101
|
-
}), n.value.yAxisLabels =
|
|
101
|
+
}), n.value.yAxisLabels = F({
|
|
102
102
|
relator: Math.min(a, l),
|
|
103
103
|
adjuster: 600,
|
|
104
104
|
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
105
105
|
threshold: 6,
|
|
106
106
|
fallback: 6
|
|
107
|
-
}), n.value.yAxisName =
|
|
107
|
+
}), n.value.yAxisName = F({
|
|
108
108
|
relator: Math.min(a, l),
|
|
109
109
|
adjuster: 600,
|
|
110
110
|
source: e.value.style.chart.axes.y.name.fontSize,
|
|
@@ -113,30 +113,30 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
113
113
|
})) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
|
-
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value =
|
|
116
|
+
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value = $.value.parentNode, M.value.observe(X.value);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
zt(() => {
|
|
120
120
|
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect());
|
|
121
121
|
});
|
|
122
|
-
function
|
|
123
|
-
const t =
|
|
122
|
+
function ne() {
|
|
123
|
+
const t = Ze({
|
|
124
124
|
userConfig: d.config,
|
|
125
|
-
defaultConfig:
|
|
125
|
+
defaultConfig: it
|
|
126
126
|
});
|
|
127
127
|
let a = {};
|
|
128
128
|
return t.theme ? a = {
|
|
129
|
-
...
|
|
130
|
-
userConfig:
|
|
129
|
+
...Ze({
|
|
130
|
+
userConfig: qt.vue_ui_history_plot[t.theme] || d.config,
|
|
131
131
|
defaultConfig: t
|
|
132
132
|
}),
|
|
133
|
-
customPalette:
|
|
133
|
+
customPalette: Vt[t.theme] || Q
|
|
134
134
|
} : a = t, d.config && ee(d.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = d.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, d.config && ee(d.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = d.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, d.config && ee(d.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = d.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, d.config && ee(d.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = d.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
135
135
|
}
|
|
136
|
-
const e = v(
|
|
137
|
-
...
|
|
136
|
+
const e = v(ne()), { loading: z, FINAL_DATASET: ut, manualLoading: ie } = el({
|
|
137
|
+
...Nt(d),
|
|
138
138
|
FINAL_CONFIG: e,
|
|
139
|
-
prepareConfig:
|
|
139
|
+
prepareConfig: ne,
|
|
140
140
|
skeletonDataset: [
|
|
141
141
|
{
|
|
142
142
|
name: "",
|
|
@@ -149,7 +149,7 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
151
|
],
|
|
152
|
-
skeletonConfig:
|
|
152
|
+
skeletonConfig: Bt({
|
|
153
153
|
defaultConfig: e.value,
|
|
154
154
|
userConfig: {
|
|
155
155
|
userOptions: { show: !1 },
|
|
@@ -201,22 +201,22 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
})
|
|
204
|
-
}), { userOptionsVisible:
|
|
204
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: Le, keepUserOptionState: $e } = al({ config: e.value }), { svgRef: Se } = sl({ config: e.value.style.chart.title });
|
|
205
205
|
K(() => d.config, (t) => {
|
|
206
|
-
z.value || (e.value =
|
|
206
|
+
z.value || (e.value = ne()), ue.value = !e.value.userOptions.showOnChartHover, _e(), fe.value += 1, be.value += 1, pe.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
207
207
|
}, { deep: !0 }), K(() => d.dataset, (t) => {
|
|
208
|
-
Array.isArray(t) && t.length > 0 && (
|
|
208
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1);
|
|
209
209
|
}, { deep: !0 });
|
|
210
|
-
const { isPrinting:
|
|
210
|
+
const { isPrinting: Te, isImaging: Me, generatePdf: ze, generateImage: Ne } = ll({
|
|
211
211
|
elementId: `history_plot_${S.value}`,
|
|
212
212
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
213
213
|
options: e.value.userOptions.print
|
|
214
|
-
}),
|
|
214
|
+
}), ct = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), vt = y(() => Yt(e.value.customPalette)), C = v({
|
|
215
215
|
showTable: e.value.table.show,
|
|
216
216
|
showTooltip: e.value.style.chart.tooltip.show
|
|
217
217
|
});
|
|
218
218
|
K(e, () => {
|
|
219
|
-
|
|
219
|
+
C.value = {
|
|
220
220
|
showTable: e.value.table.show,
|
|
221
221
|
showTooltip: e.value.style.chart.tooltip.show
|
|
222
222
|
};
|
|
@@ -224,41 +224,41 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
224
224
|
const f = v({
|
|
225
225
|
height: e.value.style.chart.height,
|
|
226
226
|
width: e.value.style.chart.width
|
|
227
|
-
}),
|
|
228
|
-
function
|
|
227
|
+
}), ht = y(() => f.value.width), dt = y(() => f.value.height);
|
|
228
|
+
function yt() {
|
|
229
229
|
let t = 0;
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
return
|
|
230
|
+
re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((i, s) => {
|
|
231
|
+
const k = s.getComputedTextLength();
|
|
232
|
+
return k > i ? k : i;
|
|
233
233
|
}, 0));
|
|
234
|
-
const a =
|
|
234
|
+
const a = oe.value ? oe.value.getBoundingClientRect().width : 0;
|
|
235
235
|
return t + a + (a ? 24 : 0);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
238
|
-
|
|
237
|
+
const Oe = v(0), ft = qe((t) => {
|
|
238
|
+
Oe.value = t;
|
|
239
239
|
});
|
|
240
|
-
|
|
240
|
+
Ot((t) => {
|
|
241
241
|
const a = G.value;
|
|
242
242
|
if (!a) return;
|
|
243
243
|
const l = new ResizeObserver((i) => {
|
|
244
|
-
|
|
244
|
+
ft(i[0].contentRect.height);
|
|
245
245
|
});
|
|
246
246
|
l.observe(a), t(() => l.disconnect());
|
|
247
247
|
});
|
|
248
|
-
const
|
|
248
|
+
const Ie = y(() => {
|
|
249
249
|
let t = 0;
|
|
250
|
-
|
|
250
|
+
se.value && (t = se.value.getBBox().height + n.value.xAxisName / 2);
|
|
251
251
|
let a = 0;
|
|
252
|
-
return G.value && (a =
|
|
252
|
+
return G.value && (a = Oe.value), t + a;
|
|
253
253
|
}), c = y(() => {
|
|
254
|
-
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l =
|
|
254
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = yt(), i = e.value.style.chart.plots.radius;
|
|
255
255
|
return {
|
|
256
256
|
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
257
257
|
top: a + i,
|
|
258
258
|
right: f.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
|
|
259
|
-
bottom: f.value.height - e.value.style.chart.padding.bottom -
|
|
259
|
+
bottom: f.value.height - e.value.style.chart.padding.bottom - Ie.value - i - e.value.style.chart.axes.x.name.offsetY,
|
|
260
260
|
width: f.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
|
|
261
|
-
height: f.value.height - a - e.value.style.chart.padding.bottom -
|
|
261
|
+
height: f.value.height - a - e.value.style.chart.padding.bottom - Ie.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
262
262
|
};
|
|
263
263
|
}), n = v({
|
|
264
264
|
plots: e.value.style.chart.plots.radius,
|
|
@@ -268,24 +268,24 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
268
268
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
269
269
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
270
270
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
271
|
-
}), N = y(() =>
|
|
271
|
+
}), N = y(() => ut.value.map((t, a) => ({
|
|
272
272
|
...t,
|
|
273
|
-
color: t.color ?
|
|
273
|
+
color: t.color ? Et(t.color) : vt.value[a] || Q[a] || Q[a % Q.length],
|
|
274
274
|
seriesIndex: a
|
|
275
|
-
}))),
|
|
276
|
-
const t = Math.min(...N.value.filter((a) => !
|
|
275
|
+
}))), xt = y(() => Math.max(...N.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), pt = y(() => {
|
|
276
|
+
const t = Math.min(...N.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
277
277
|
return t < 0 ? t : 0;
|
|
278
|
-
}),
|
|
279
|
-
const t = Math.min(...N.value.filter((a) => !
|
|
278
|
+
}), bt = y(() => Math.max(...N.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), mt = y(() => {
|
|
279
|
+
const t = Math.min(...N.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
280
280
|
return t < 0 ? t : 0;
|
|
281
281
|
}), x = y(() => {
|
|
282
|
-
const t =
|
|
283
|
-
e.value.style.chart.axes.x.scaleMin === null ?
|
|
284
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
282
|
+
const t = Ve(
|
|
283
|
+
e.value.style.chart.axes.x.scaleMin === null ? pt.value : e.value.style.chart.axes.x.scaleMin,
|
|
284
|
+
e.value.style.chart.axes.x.scaleMax === null ? xt.value : e.value.style.chart.axes.x.scaleMax,
|
|
285
285
|
e.value.style.chart.axes.x.ticks
|
|
286
|
-
), a =
|
|
287
|
-
e.value.style.chart.axes.y.scaleMin === null ?
|
|
288
|
-
e.value.style.chart.axes.y.scaleMax === null ?
|
|
286
|
+
), a = Ve(
|
|
287
|
+
e.value.style.chart.axes.y.scaleMin === null ? mt.value : e.value.style.chart.axes.y.scaleMin,
|
|
288
|
+
e.value.style.chart.axes.y.scaleMax === null ? bt.value : e.value.style.chart.axes.y.scaleMax,
|
|
289
289
|
e.value.style.chart.axes.y.ticks
|
|
290
290
|
);
|
|
291
291
|
return {
|
|
@@ -305,24 +305,24 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
305
305
|
}))
|
|
306
306
|
};
|
|
307
307
|
});
|
|
308
|
-
function
|
|
308
|
+
function gt(t) {
|
|
309
309
|
const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
|
|
310
310
|
return c.value.left + ((t || 0) + a) / (x.value.x.max + a) * c.value.width;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function kt(t) {
|
|
313
313
|
const a = x.value.y.min < 0 ? Math.abs(x.value.y.min) : x.value.y.min > 0 ? -x.value.y.min : 0;
|
|
314
314
|
return c.value.bottom - ((t || 0) + a) / (x.value.y.max + a) * c.value.height;
|
|
315
315
|
}
|
|
316
|
-
const P = y(() => N.value.filter((t) => !
|
|
317
|
-
const l = t.values.map((s,
|
|
316
|
+
const P = y(() => N.value.filter((t) => !w.value.includes(t.seriesIndex)).map((t, a) => {
|
|
317
|
+
const l = t.values.map((s, k) => ({
|
|
318
318
|
valueX: s.x,
|
|
319
319
|
valueY: s.y,
|
|
320
320
|
label: s.label,
|
|
321
|
-
x:
|
|
322
|
-
y:
|
|
321
|
+
x: gt(s.x),
|
|
322
|
+
y: kt(s.y),
|
|
323
323
|
color: t.color,
|
|
324
324
|
seriesName: t.name,
|
|
325
|
-
id:
|
|
325
|
+
id: je()
|
|
326
326
|
})), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
|
|
327
327
|
return {
|
|
328
328
|
...t,
|
|
@@ -330,16 +330,16 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
330
330
|
path: `M${i}`
|
|
331
331
|
};
|
|
332
332
|
}));
|
|
333
|
-
function
|
|
334
|
-
|
|
333
|
+
function Pe(t) {
|
|
334
|
+
w.value.includes(t) ? w.value = w.value.filter((a) => a !== t) : w.value.push(t);
|
|
335
335
|
}
|
|
336
|
-
const
|
|
336
|
+
const De = y(() => N.value.map((t) => ({
|
|
337
337
|
...t,
|
|
338
|
-
opacity:
|
|
339
|
-
segregate: () =>
|
|
340
|
-
isSegregated:
|
|
338
|
+
opacity: w.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
339
|
+
segregate: () => Pe(t.seriesIndex),
|
|
340
|
+
isSegregated: w.value.includes(t.seriesIndex),
|
|
341
341
|
shape: "circle"
|
|
342
|
-
}))),
|
|
342
|
+
}))), wt = y(() => ({
|
|
343
343
|
cy: "history-plot-div-legend",
|
|
344
344
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
345
345
|
color: e.value.style.chart.legend.color,
|
|
@@ -347,27 +347,27 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
347
347
|
paddingBottom: 12,
|
|
348
348
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
349
349
|
}));
|
|
350
|
-
function
|
|
351
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
350
|
+
function Ct({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
351
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), Ce("selectDatapoint", t);
|
|
352
352
|
}
|
|
353
353
|
function Fe(t) {
|
|
354
|
-
|
|
354
|
+
Ce("selectLegend", {
|
|
355
355
|
...t,
|
|
356
356
|
isSegregated: !t.isSegregated,
|
|
357
357
|
opacity: t.isSegregated ? 1 : 0.5
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Xe(t) {
|
|
361
361
|
H.value = t, me.value += 1;
|
|
362
362
|
}
|
|
363
|
-
const
|
|
364
|
-
function
|
|
363
|
+
const ce = v(null);
|
|
364
|
+
function At({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
365
365
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), te.value = !1, A.value = null;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
367
|
+
function _t({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
368
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), ce.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: N.value }, A.value = t;
|
|
369
369
|
const i = e.value.style.chart.tooltip.customFormat;
|
|
370
|
-
if (W.value = !1,
|
|
370
|
+
if (W.value = !1, Kt(i))
|
|
371
371
|
try {
|
|
372
372
|
const s = i({
|
|
373
373
|
seriesIndex: l,
|
|
@@ -460,14 +460,14 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
460
460
|
colNames: t
|
|
461
461
|
};
|
|
462
462
|
});
|
|
463
|
-
function
|
|
464
|
-
|
|
463
|
+
function ve(t = null) {
|
|
464
|
+
Ft(() => {
|
|
465
465
|
const a = [
|
|
466
466
|
[e.value.table.columnNames.series],
|
|
467
467
|
[e.value.table.columnNames.datapoint],
|
|
468
468
|
[e.value.table.columnNames.x],
|
|
469
469
|
[e.value.table.columnNames.y]
|
|
470
|
-
], l = P.value.flatMap((
|
|
470
|
+
], l = P.value.flatMap((k) => k.plots.map((J) => [
|
|
471
471
|
[J.seriesName],
|
|
472
472
|
[J.label],
|
|
473
473
|
[J.valueX],
|
|
@@ -476,56 +476,56 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
476
476
|
[e.value.style.chart.title.text],
|
|
477
477
|
[e.value.style.chart.title.subtitle.text],
|
|
478
478
|
a
|
|
479
|
-
].concat(l), s =
|
|
480
|
-
t ? t(s) :
|
|
479
|
+
].concat(l), s = Zt(i);
|
|
480
|
+
t ? t(s) : Jt({
|
|
481
481
|
csvContent: s,
|
|
482
482
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
483
483
|
});
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
const Z = v(!1);
|
|
487
|
-
function
|
|
487
|
+
function he() {
|
|
488
488
|
Z.value = !Z.value;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
|
|
490
|
+
function Re() {
|
|
491
|
+
C.value.showTable = !C.value.showTable;
|
|
492
492
|
}
|
|
493
493
|
function Be() {
|
|
494
|
-
|
|
494
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Lt() {
|
|
497
497
|
return P.value;
|
|
498
498
|
}
|
|
499
|
-
async function
|
|
500
|
-
if (
|
|
501
|
-
const { width: a, height: l } =
|
|
499
|
+
async function $t({ scale: t = 2 } = {}) {
|
|
500
|
+
if (!$.value) return;
|
|
501
|
+
const { width: a, height: l } = $.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: k } = await rl({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
502
502
|
return {
|
|
503
503
|
imageUri: s,
|
|
504
|
-
base64:
|
|
504
|
+
base64: k,
|
|
505
505
|
title: e.value.style.chart.title.text,
|
|
506
506
|
width: a,
|
|
507
507
|
height: l,
|
|
508
508
|
aspectRatio: i
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const St = y(() => x.value.tickX), Tt = y(() => ({ start: 0, end: x.value.tickX.length }));
|
|
512
|
+
ol({
|
|
513
513
|
timeLabelsEls: G,
|
|
514
|
-
timeLabels:
|
|
515
|
-
slicer:
|
|
514
|
+
timeLabels: St,
|
|
515
|
+
slicer: Tt,
|
|
516
516
|
configRef: e,
|
|
517
517
|
rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
|
|
518
518
|
autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
|
|
519
519
|
isAutoSize: !1,
|
|
520
|
-
width:
|
|
521
|
-
height:
|
|
520
|
+
width: ht,
|
|
521
|
+
height: dt,
|
|
522
522
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
523
523
|
rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
|
|
524
524
|
});
|
|
525
525
|
const U = y(() => {
|
|
526
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
526
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = C.value.showTable;
|
|
527
527
|
return {
|
|
528
|
-
component: t ?
|
|
528
|
+
component: t ? nt : lt,
|
|
529
529
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
530
530
|
props: t ? {
|
|
531
531
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -533,7 +533,7 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
533
533
|
headerColor: e.value.table.th.color,
|
|
534
534
|
headerBg: e.value.table.th.backgroundColor,
|
|
535
535
|
isFullscreen: H.value,
|
|
536
|
-
fullscreenParent:
|
|
536
|
+
fullscreenParent: $.value,
|
|
537
537
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
538
538
|
} : {
|
|
539
539
|
hideDetails: !0,
|
|
@@ -552,52 +552,56 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
554
|
});
|
|
555
|
-
|
|
555
|
+
K(() => C.value.showTable, (t) => {
|
|
556
556
|
e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
557
|
-
})
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
557
|
+
});
|
|
558
|
+
function Ye() {
|
|
559
|
+
C.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
560
|
+
}
|
|
561
|
+
return Ke({
|
|
562
|
+
getData: Lt,
|
|
563
|
+
getImage: $t,
|
|
564
|
+
generatePdf: ze,
|
|
565
|
+
generateCsv: ve,
|
|
566
|
+
generateImage: Ne,
|
|
567
|
+
toggleTable: Re,
|
|
564
568
|
toggleTooltip: Be,
|
|
565
|
-
toggleAnnotator:
|
|
566
|
-
toggleFullscreen:
|
|
569
|
+
toggleAnnotator: he,
|
|
570
|
+
toggleFullscreen: Xe
|
|
567
571
|
}), (t, a) => (o(), r("div", {
|
|
568
572
|
id: `history_plot_${S.value}`,
|
|
569
573
|
ref_key: "historyPlotChart",
|
|
570
|
-
ref:
|
|
571
|
-
class:
|
|
572
|
-
style:
|
|
573
|
-
onMouseenter: a[
|
|
574
|
-
onMouseleave: a[
|
|
574
|
+
ref: $,
|
|
575
|
+
class: D({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": H.value }),
|
|
576
|
+
style: L(`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%" : ""}`),
|
|
577
|
+
onMouseenter: a[2] || (a[2] = () => u(Le)(!0)),
|
|
578
|
+
onMouseleave: a[3] || (a[3] = () => u(Le)(!1))
|
|
575
579
|
}, [
|
|
576
580
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
577
|
-
e.value.userOptions.buttons.annotator ? (o(), I(u(
|
|
581
|
+
e.value.userOptions.buttons.annotator ? (o(), I(u(st), {
|
|
578
582
|
key: 0,
|
|
579
|
-
svgRef: u(
|
|
583
|
+
svgRef: u(Se),
|
|
580
584
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
581
585
|
color: e.value.style.chart.color,
|
|
582
586
|
active: Z.value,
|
|
583
|
-
onClose:
|
|
587
|
+
onClose: he
|
|
584
588
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
585
|
-
|
|
589
|
+
ct.value ? (o(), r("div", {
|
|
586
590
|
key: 1,
|
|
587
591
|
ref_key: "noTitle",
|
|
588
|
-
ref:
|
|
592
|
+
ref: ge,
|
|
589
593
|
class: "vue-data-ui-no-title-space",
|
|
590
594
|
style: "height:36px; width: 100%;background:transparent"
|
|
591
595
|
}, null, 512)) : h("", !0),
|
|
592
596
|
e.value.style.chart.title.text ? (o(), r("div", {
|
|
593
597
|
key: 2,
|
|
594
598
|
ref_key: "chartTitle",
|
|
595
|
-
ref:
|
|
599
|
+
ref: ye,
|
|
596
600
|
class: "vue-ui-xy-title",
|
|
597
|
-
style:
|
|
601
|
+
style: L(`font-family:${e.value.style.fontFamily}`)
|
|
598
602
|
}, [
|
|
599
|
-
(o(), I(
|
|
600
|
-
key: `title_${
|
|
603
|
+
(o(), I(nl, {
|
|
604
|
+
key: `title_${fe.value}`,
|
|
601
605
|
config: {
|
|
602
606
|
title: {
|
|
603
607
|
cy: "history-plot-div-title",
|
|
@@ -612,14 +616,15 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
612
616
|
], 4)) : h("", !0),
|
|
613
617
|
_("div", {
|
|
614
618
|
id: `legend-top-${S.value}`
|
|
615
|
-
}, null, 8,
|
|
616
|
-
e.value.userOptions.show && V.value && (u($e) || u(
|
|
617
|
-
|
|
619
|
+
}, null, 8, vl),
|
|
620
|
+
e.value.userOptions.show && V.value && (u($e) || u(ue)) ? (o(), I(u(ot), {
|
|
621
|
+
ref_key: "userOptionsRef",
|
|
622
|
+
ref: ae,
|
|
618
623
|
key: `user_option_${me.value}`,
|
|
619
624
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
620
625
|
color: e.value.style.chart.color,
|
|
621
|
-
isPrinting: u(
|
|
622
|
-
isImaging: u(
|
|
626
|
+
isPrinting: u(Te),
|
|
627
|
+
isImaging: u(Me),
|
|
623
628
|
uid: S.value,
|
|
624
629
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
625
630
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -629,90 +634,91 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
629
634
|
hasLabel: !1,
|
|
630
635
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
631
636
|
isFullscreen: H.value,
|
|
632
|
-
chartElement:
|
|
637
|
+
chartElement: $.value,
|
|
633
638
|
position: e.value.userOptions.position,
|
|
634
|
-
isTooltip:
|
|
639
|
+
isTooltip: C.value.showTooltip,
|
|
635
640
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
636
641
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
637
642
|
isAnnotation: Z.value,
|
|
638
643
|
callbacks: e.value.userOptions.callbacks,
|
|
639
644
|
printScale: e.value.userOptions.print.scale,
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
+
tableDialog: e.value.table.useDialog,
|
|
646
|
+
onToggleFullscreen: Xe,
|
|
647
|
+
onGeneratePdf: u(ze),
|
|
648
|
+
onGenerateCsv: ve,
|
|
649
|
+
onGenerateImage: u(Ne),
|
|
650
|
+
onToggleTable: Re,
|
|
645
651
|
onToggleTooltip: Be,
|
|
646
|
-
onToggleAnnotator:
|
|
647
|
-
style:
|
|
648
|
-
visibility: u($e) ? u(
|
|
652
|
+
onToggleAnnotator: he,
|
|
653
|
+
style: L({
|
|
654
|
+
visibility: u($e) ? u(ue) ? "visible" : "hidden" : "visible"
|
|
649
655
|
})
|
|
650
|
-
},
|
|
656
|
+
}, He({ _: 2 }, [
|
|
651
657
|
t.$slots.menuIcon ? {
|
|
652
658
|
name: "menuIcon",
|
|
653
|
-
fn:
|
|
654
|
-
p(t.$slots, "menuIcon", B(
|
|
659
|
+
fn: b(({ isOpen: l, color: i }) => [
|
|
660
|
+
p(t.$slots, "menuIcon", R(B({ isOpen: l, color: i })), void 0, !0)
|
|
655
661
|
]),
|
|
656
662
|
key: "0"
|
|
657
663
|
} : void 0,
|
|
658
664
|
t.$slots.optionTooltip ? {
|
|
659
665
|
name: "optionTooltip",
|
|
660
|
-
fn:
|
|
666
|
+
fn: b(() => [
|
|
661
667
|
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
662
668
|
]),
|
|
663
669
|
key: "1"
|
|
664
670
|
} : void 0,
|
|
665
671
|
t.$slots.optionPdf ? {
|
|
666
672
|
name: "optionPdf",
|
|
667
|
-
fn:
|
|
673
|
+
fn: b(() => [
|
|
668
674
|
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
669
675
|
]),
|
|
670
676
|
key: "2"
|
|
671
677
|
} : void 0,
|
|
672
678
|
t.$slots.optionCsv ? {
|
|
673
679
|
name: "optionCsv",
|
|
674
|
-
fn:
|
|
680
|
+
fn: b(() => [
|
|
675
681
|
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
676
682
|
]),
|
|
677
683
|
key: "3"
|
|
678
684
|
} : void 0,
|
|
679
685
|
t.$slots.optionImg ? {
|
|
680
686
|
name: "optionImg",
|
|
681
|
-
fn:
|
|
687
|
+
fn: b(() => [
|
|
682
688
|
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
683
689
|
]),
|
|
684
690
|
key: "4"
|
|
685
691
|
} : void 0,
|
|
686
692
|
t.$slots.optionTable ? {
|
|
687
693
|
name: "optionTable",
|
|
688
|
-
fn:
|
|
694
|
+
fn: b(() => [
|
|
689
695
|
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
690
696
|
]),
|
|
691
697
|
key: "5"
|
|
692
698
|
} : void 0,
|
|
693
699
|
t.$slots.optionFullscreen ? {
|
|
694
700
|
name: "optionFullscreen",
|
|
695
|
-
fn:
|
|
696
|
-
p(t.$slots, "optionFullscreen", B(
|
|
701
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: i }) => [
|
|
702
|
+
p(t.$slots, "optionFullscreen", R(B({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
|
|
697
703
|
]),
|
|
698
704
|
key: "6"
|
|
699
705
|
} : void 0,
|
|
700
706
|
t.$slots.optionAnnotator ? {
|
|
701
707
|
name: "optionAnnotator",
|
|
702
|
-
fn:
|
|
703
|
-
p(t.$slots, "optionAnnotator", B(
|
|
708
|
+
fn: b(({ toggleAnnotator: l, isAnnotator: i }) => [
|
|
709
|
+
p(t.$slots, "optionAnnotator", R(B({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
|
|
704
710
|
]),
|
|
705
711
|
key: "7"
|
|
706
712
|
} : void 0
|
|
707
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
713
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
708
714
|
(o(), r("svg", {
|
|
709
715
|
ref_key: "svgRef",
|
|
710
|
-
ref:
|
|
711
|
-
xmlns: u(
|
|
716
|
+
ref: Se,
|
|
717
|
+
xmlns: u(Ht),
|
|
712
718
|
viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
|
|
713
|
-
style:
|
|
719
|
+
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
714
720
|
}, [
|
|
715
|
-
|
|
721
|
+
de(u(rt)),
|
|
716
722
|
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
717
723
|
key: 0,
|
|
718
724
|
x: c.value.left,
|
|
@@ -724,28 +730,28 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
724
730
|
}
|
|
725
731
|
}, [
|
|
726
732
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
727
|
-
], 8,
|
|
728
|
-
e.value.style.chart.plots.gradient.show ? (o(), r("defs",
|
|
729
|
-
(o(!0), r(
|
|
733
|
+
], 8, dl)) : h("", !0),
|
|
734
|
+
e.value.style.chart.plots.gradient.show ? (o(), r("defs", yl, [
|
|
735
|
+
(o(!0), r(m, null, g(P.value, (l, i) => (o(), r("radialGradient", {
|
|
730
736
|
id: `gradient_${i}_${S.value}`,
|
|
731
737
|
fy: "30%"
|
|
732
738
|
}, [
|
|
733
739
|
_("stop", {
|
|
734
740
|
offset: "10%",
|
|
735
|
-
"stop-color": u(
|
|
736
|
-
}, null, 8,
|
|
741
|
+
"stop-color": u(Wt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
742
|
+
}, null, 8, xl),
|
|
737
743
|
_("stop", {
|
|
738
744
|
offset: "90%",
|
|
739
|
-
"stop-color": u(
|
|
740
|
-
}, null, 8,
|
|
745
|
+
"stop-color": u(jt)(l.color, 0.1)
|
|
746
|
+
}, null, 8, pl),
|
|
741
747
|
_("stop", {
|
|
742
748
|
offset: "100%",
|
|
743
749
|
"stop-color": l.color
|
|
744
|
-
}, null, 8,
|
|
745
|
-
], 8,
|
|
750
|
+
}, null, 8, bl)
|
|
751
|
+
], 8, fl))), 256))
|
|
746
752
|
])) : h("", !0),
|
|
747
|
-
e.value.style.chart.grid.verticalLines.show ? (o(), r("g",
|
|
748
|
-
(o(!0), r(
|
|
753
|
+
e.value.style.chart.grid.verticalLines.show ? (o(), r("g", ml, [
|
|
754
|
+
(o(!0), r(m, null, g(x.value.tickX, (l) => (o(), r("line", {
|
|
749
755
|
x1: l.x,
|
|
750
756
|
x2: l.x,
|
|
751
757
|
y1: l.y1,
|
|
@@ -753,10 +759,10 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
753
759
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
754
760
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
755
761
|
"stroke-linecap": "round"
|
|
756
|
-
}, null, 8,
|
|
762
|
+
}, null, 8, gl))), 256))
|
|
757
763
|
])) : h("", !0),
|
|
758
|
-
e.value.style.chart.axes.y.labels.show ? (o(), r("g",
|
|
759
|
-
(o(!0), r(
|
|
764
|
+
e.value.style.chart.axes.y.labels.show ? (o(), r("g", kl, [
|
|
765
|
+
(o(!0), r(m, null, g(x.value.tickY, (l) => (o(), r("line", {
|
|
760
766
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
761
767
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
762
768
|
"stroke-linecap": "round",
|
|
@@ -764,14 +770,14 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
764
770
|
x2: c.value.left,
|
|
765
771
|
y1: l.y,
|
|
766
772
|
y2: l.y
|
|
767
|
-
}, null, 8,
|
|
773
|
+
}, null, 8, wl))), 256))
|
|
768
774
|
])) : h("", !0),
|
|
769
775
|
e.value.style.chart.axes.y.labels.show ? (o(), r("g", {
|
|
770
776
|
key: 4,
|
|
771
777
|
ref_key: "yAxisScales",
|
|
772
|
-
ref:
|
|
778
|
+
ref: re
|
|
773
779
|
}, [
|
|
774
|
-
(o(!0), r(
|
|
780
|
+
(o(!0), r(m, null, g(x.value.tickY, (l) => (o(), r("text", {
|
|
775
781
|
x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
776
782
|
y: l.y + n.value.yAxisLabels / 3,
|
|
777
783
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
@@ -786,20 +792,20 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
786
792
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
787
793
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
788
794
|
})
|
|
789
|
-
)), 9,
|
|
795
|
+
)), 9, Cl))), 256))
|
|
790
796
|
], 512)) : h("", !0),
|
|
791
797
|
e.value.style.chart.axes.y.name.text ? (o(), r("text", {
|
|
792
798
|
key: 5,
|
|
793
799
|
ref_key: "yAxisLabel",
|
|
794
|
-
ref:
|
|
800
|
+
ref: oe,
|
|
795
801
|
transform: `translate(${n.value.yAxisName}, ${f.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
796
802
|
"font-size": n.value.yAxisName,
|
|
797
803
|
fill: e.value.style.chart.axes.y.name.color,
|
|
798
804
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
799
805
|
"text-anchor": "middle"
|
|
800
|
-
}, T(e.value.style.chart.axes.y.name.text), 9,
|
|
801
|
-
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g",
|
|
802
|
-
(o(!0), r(
|
|
806
|
+
}, T(e.value.style.chart.axes.y.name.text), 9, Al)) : h("", !0),
|
|
807
|
+
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", _l, [
|
|
808
|
+
(o(!0), r(m, null, g(x.value.tickY, (l) => (o(), r("line", {
|
|
803
809
|
x1: l.x1,
|
|
804
810
|
x2: l.x2,
|
|
805
811
|
y1: l.y,
|
|
@@ -807,10 +813,10 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
807
813
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
808
814
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
809
815
|
"stroke-linecap": "round"
|
|
810
|
-
}, null, 8,
|
|
816
|
+
}, null, 8, Ll))), 256))
|
|
811
817
|
])) : h("", !0),
|
|
812
|
-
e.value.style.chart.axes.x.labels.show ? (o(), r("g",
|
|
813
|
-
(o(!0), r(
|
|
818
|
+
e.value.style.chart.axes.x.labels.show ? (o(), r("g", $l, [
|
|
819
|
+
(o(!0), r(m, null, g(x.value.tickX, (l) => (o(), r("line", {
|
|
814
820
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
815
821
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
816
822
|
"stroke-linecap": "round",
|
|
@@ -818,14 +824,14 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
818
824
|
x2: l.x,
|
|
819
825
|
y1: c.value.bottom,
|
|
820
826
|
y2: c.value.bottom + 5
|
|
821
|
-
}, null, 8,
|
|
827
|
+
}, null, 8, Sl))), 256))
|
|
822
828
|
])) : h("", !0),
|
|
823
829
|
e.value.style.chart.axes.x.labels.show ? (o(), r("g", {
|
|
824
830
|
key: 8,
|
|
825
831
|
ref_key: "xAxisScales",
|
|
826
832
|
ref: G
|
|
827
833
|
}, [
|
|
828
|
-
(o(!0), r(
|
|
834
|
+
(o(!0), r(m, null, g(x.value.tickX, (l) => (o(), r("text", {
|
|
829
835
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
830
836
|
transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
831
837
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
@@ -840,19 +846,19 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
840
846
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
841
847
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
842
848
|
})
|
|
843
|
-
)), 9,
|
|
849
|
+
)), 9, Tl))), 256))
|
|
844
850
|
], 512)) : h("", !0),
|
|
845
851
|
e.value.style.chart.axes.x.name.text ? (o(), r("text", {
|
|
846
852
|
key: 9,
|
|
847
853
|
ref_key: "xAxisLabel",
|
|
848
|
-
ref:
|
|
854
|
+
ref: se,
|
|
849
855
|
x: f.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
850
856
|
y: f.value.height,
|
|
851
857
|
"font-size": n.value.xAxisName,
|
|
852
858
|
fill: e.value.style.chart.axes.x.name.color,
|
|
853
859
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
854
860
|
"text-anchor": "middle"
|
|
855
|
-
}, T(e.value.style.chart.axes.x.name.text), 9,
|
|
861
|
+
}, T(e.value.style.chart.axes.x.name.text), 9, Ml)) : h("", !0),
|
|
856
862
|
e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
|
|
857
863
|
key: 10,
|
|
858
864
|
x1: c.value.left,
|
|
@@ -862,7 +868,7 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
862
868
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
863
869
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
864
870
|
"stroke-linecap": "round"
|
|
865
|
-
}, null, 8,
|
|
871
|
+
}, null, 8, zl)) : h("", !0),
|
|
866
872
|
e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
|
|
867
873
|
key: 11,
|
|
868
874
|
x1: c.value.left,
|
|
@@ -872,11 +878,11 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
872
878
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
873
879
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
874
880
|
"stroke-linecap": "round"
|
|
875
|
-
}, null, 8,
|
|
876
|
-
(o(!0), r(
|
|
881
|
+
}, null, 8, Nl)) : h("", !0),
|
|
882
|
+
(o(!0), r(m, null, g(P.value, (l, i) => (o(), r("g", null, [
|
|
877
883
|
e.value.style.chart.paths.show ? (o(), r("g", {
|
|
878
884
|
key: 0,
|
|
879
|
-
style:
|
|
885
|
+
style: L({
|
|
880
886
|
opacity: A.value === null ? 1 : 0.3
|
|
881
887
|
})
|
|
882
888
|
}, [
|
|
@@ -887,8 +893,8 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
887
893
|
fill: "none",
|
|
888
894
|
"stroke-linecap": "round",
|
|
889
895
|
"stroke-linejoin": "round",
|
|
890
|
-
class:
|
|
891
|
-
}, null, 10,
|
|
896
|
+
class: D({ animated: e.value.useCssAnimation && !u(z) })
|
|
897
|
+
}, null, 10, Ol),
|
|
892
898
|
_("path", {
|
|
893
899
|
d: l.path,
|
|
894
900
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
@@ -896,31 +902,31 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
896
902
|
fill: "none",
|
|
897
903
|
"stroke-linecap": "round",
|
|
898
904
|
"stroke-linejoin": "round",
|
|
899
|
-
class:
|
|
900
|
-
}, null, 10,
|
|
905
|
+
class: D({ animated: e.value.useCssAnimation && !u(z) })
|
|
906
|
+
}, null, 10, Il)
|
|
901
907
|
], 4)) : h("", !0),
|
|
902
|
-
(o(!0), r(
|
|
908
|
+
(o(!0), r(m, null, g(l.plots, (s) => (o(), r("circle", {
|
|
903
909
|
cx: s.x,
|
|
904
910
|
cy: s.y,
|
|
905
911
|
fill: e.value.style.chart.backgroundColor,
|
|
906
912
|
r: n.value.plots,
|
|
907
913
|
stroke: "none"
|
|
908
|
-
}, null, 8,
|
|
909
|
-
(o(!0), r(
|
|
914
|
+
}, null, 8, Pl))), 256)),
|
|
915
|
+
(o(!0), r(m, null, g(l.plots, (s) => (o(), r("circle", {
|
|
910
916
|
cx: s.x,
|
|
911
917
|
cy: s.y,
|
|
912
918
|
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${S.value})` : s.color,
|
|
913
919
|
r: n.value.plots,
|
|
914
920
|
stroke: e.value.style.chart.plots.stroke,
|
|
915
921
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
916
|
-
class:
|
|
917
|
-
style:
|
|
922
|
+
class: D({ animated: e.value.useCssAnimation && !u(z) }),
|
|
923
|
+
style: L({
|
|
918
924
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
919
925
|
transition: "opacity 0.2s ease-in-out"
|
|
920
926
|
})
|
|
921
|
-
}, null, 14,
|
|
922
|
-
e.value.style.chart.plots.labels.show ? (o(), r("g",
|
|
923
|
-
(o(!0), r(
|
|
927
|
+
}, null, 14, Dl))), 256)),
|
|
928
|
+
e.value.style.chart.plots.labels.show ? (o(), r("g", Fl, [
|
|
929
|
+
(o(!0), r(m, null, g(l.plots, (s) => (o(), r("g", null, [
|
|
924
930
|
String(s.label).includes(`
|
|
925
931
|
`) ? (o(), r("text", {
|
|
926
932
|
key: 1,
|
|
@@ -930,19 +936,19 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
930
936
|
fill: e.value.style.chart.plots.labels.color,
|
|
931
937
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
932
938
|
"text-anchor": "middle",
|
|
933
|
-
class:
|
|
934
|
-
style:
|
|
939
|
+
class: D({ animated: e.value.useCssAnimation && !u(z) }),
|
|
940
|
+
style: L({
|
|
935
941
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
936
942
|
transition: "opacity 0.2s ease-in-out"
|
|
937
943
|
}),
|
|
938
|
-
innerHTML: u(
|
|
944
|
+
innerHTML: u(Ut)({
|
|
939
945
|
content: String(s.label),
|
|
940
946
|
fontSize: n.value.labels,
|
|
941
947
|
fill: e.value.style.chart.plots.labels.color,
|
|
942
948
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
943
949
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
|
|
944
950
|
})
|
|
945
|
-
}, null, 14,
|
|
951
|
+
}, null, 14, Rl)) : (o(), r("text", {
|
|
946
952
|
key: 0,
|
|
947
953
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
948
954
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
@@ -950,103 +956,103 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
950
956
|
fill: e.value.style.chart.plots.labels.color,
|
|
951
957
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
952
958
|
"text-anchor": "middle",
|
|
953
|
-
class:
|
|
954
|
-
style:
|
|
959
|
+
class: D({ animated: e.value.useCssAnimation && !u(z) }),
|
|
960
|
+
style: L({
|
|
955
961
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
956
962
|
transition: "opacity 0.2s ease-in-out"
|
|
957
963
|
})
|
|
958
|
-
}, T(s.label), 15,
|
|
964
|
+
}, T(s.label), 15, Xl))
|
|
959
965
|
]))), 256))
|
|
960
966
|
])) : h("", !0),
|
|
961
|
-
e.value.style.chart.plots.indexLabels.show ? (o(), r("g",
|
|
962
|
-
(o(!0), r(
|
|
967
|
+
e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Bl, [
|
|
968
|
+
(o(!0), r(m, null, g(l.plots, (s, k) => (o(), r("text", {
|
|
963
969
|
x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
964
970
|
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
965
971
|
"font-size": n.value.indexLabels,
|
|
966
972
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
967
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(
|
|
973
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Gt)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
968
974
|
"text-anchor": "middle",
|
|
969
|
-
class:
|
|
970
|
-
style:
|
|
975
|
+
class: D({ animated: e.value.useCssAnimation && !u(z) }),
|
|
976
|
+
style: L({
|
|
971
977
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
972
978
|
transition: "opacity 0.2s ease-in-out"
|
|
973
979
|
})
|
|
974
|
-
}, T(e.value.style.chart.plots.indexLabels.startAtZero ?
|
|
980
|
+
}, T(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Yl))), 256))
|
|
975
981
|
])) : h("", !0)
|
|
976
982
|
]))), 256)),
|
|
977
|
-
(o(!0), r(
|
|
978
|
-
(o(!0), r(
|
|
983
|
+
(o(!0), r(m, null, g(P.value, (l) => (o(), r("g", null, [
|
|
984
|
+
(o(!0), r(m, null, g(l.plots, (i, s) => (o(), r("circle", {
|
|
979
985
|
cx: i.x,
|
|
980
986
|
cy: i.y,
|
|
981
987
|
fill: "transparent",
|
|
982
988
|
r: n.value.plots,
|
|
983
989
|
stroke: "none",
|
|
984
|
-
onMouseenter: (
|
|
990
|
+
onMouseenter: (k) => _t({
|
|
985
991
|
datapoint: i,
|
|
986
992
|
plotIndex: s,
|
|
987
993
|
seriesIndex: l.seriesIndex
|
|
988
994
|
}),
|
|
989
|
-
onMouseleave: (
|
|
995
|
+
onMouseleave: (k) => At({
|
|
990
996
|
datapoint: i,
|
|
991
997
|
plotIndex: s,
|
|
992
998
|
seriesIndex: l.seriesIndex
|
|
993
999
|
}),
|
|
994
|
-
onClick: (
|
|
1000
|
+
onClick: (k) => Ct({
|
|
995
1001
|
datapoint: i,
|
|
996
1002
|
plotIndex: s,
|
|
997
1003
|
seriesIndex: l.seriesIndex
|
|
998
1004
|
})
|
|
999
|
-
}, null, 40,
|
|
1005
|
+
}, null, 40, El))), 256))
|
|
1000
1006
|
]))), 256)),
|
|
1001
1007
|
p(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1002
|
-
], 12,
|
|
1003
|
-
t.$slots.watermark ? (o(), r("div",
|
|
1004
|
-
p(t.$slots, "watermark", B(
|
|
1008
|
+
], 12, hl)),
|
|
1009
|
+
t.$slots.watermark ? (o(), r("div", Hl, [
|
|
1010
|
+
p(t.$slots, "watermark", R(B({ isPrinting: u(Te) || u(Me) })), void 0, !0)
|
|
1005
1011
|
])) : h("", !0),
|
|
1006
1012
|
_("div", {
|
|
1007
1013
|
id: `legend-bottom-${S.value}`
|
|
1008
|
-
}, null, 8,
|
|
1009
|
-
|
|
1014
|
+
}, null, 8, Wl),
|
|
1015
|
+
we.value ? (o(), I(It, {
|
|
1010
1016
|
key: 5,
|
|
1011
1017
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${S.value}` : `#legend-bottom-${S.value}`
|
|
1012
1018
|
}, [
|
|
1013
1019
|
_("div", {
|
|
1014
1020
|
ref_key: "chartLegend",
|
|
1015
|
-
ref:
|
|
1021
|
+
ref: xe
|
|
1016
1022
|
}, [
|
|
1017
|
-
e.value.style.chart.legend.show && V.value ? (o(), I(
|
|
1018
|
-
key: `legend_${
|
|
1019
|
-
legendSet:
|
|
1020
|
-
config:
|
|
1023
|
+
e.value.style.chart.legend.show && V.value ? (o(), I(il, {
|
|
1024
|
+
key: `legend_${pe.value}`,
|
|
1025
|
+
legendSet: De.value,
|
|
1026
|
+
config: wt.value,
|
|
1021
1027
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
|
|
1022
|
-
|
|
1028
|
+
Pe(l.seriesIndex), Fe(l);
|
|
1023
1029
|
})
|
|
1024
1030
|
}, {
|
|
1025
|
-
item:
|
|
1031
|
+
item: b(({ legend: l, index: i }) => [
|
|
1026
1032
|
_("div", {
|
|
1027
1033
|
onClick: (s) => {
|
|
1028
1034
|
l.segregate(), Fe(l);
|
|
1029
1035
|
},
|
|
1030
|
-
style:
|
|
1031
|
-
}, T(l.name), 13,
|
|
1036
|
+
style: L(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
1037
|
+
}, T(l.name), 13, jl)
|
|
1032
1038
|
]),
|
|
1033
1039
|
_: 1
|
|
1034
1040
|
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
1035
1041
|
key: 1,
|
|
1036
|
-
legend:
|
|
1042
|
+
legend: De.value
|
|
1037
1043
|
}, void 0, !0)
|
|
1038
1044
|
], 512)
|
|
1039
1045
|
], 8, ["to"])) : h("", !0),
|
|
1040
1046
|
t.$slots.source ? (o(), r("div", {
|
|
1041
1047
|
key: 6,
|
|
1042
1048
|
ref_key: "source",
|
|
1043
|
-
ref:
|
|
1049
|
+
ref: ke,
|
|
1044
1050
|
dir: "auto"
|
|
1045
1051
|
}, [
|
|
1046
1052
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1047
1053
|
], 512)) : h("", !0),
|
|
1048
|
-
|
|
1049
|
-
show:
|
|
1054
|
+
de(u(et), {
|
|
1055
|
+
show: C.value.showTooltip && te.value,
|
|
1050
1056
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1051
1057
|
color: e.value.style.chart.tooltip.color,
|
|
1052
1058
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1056,45 +1062,45 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
1056
1062
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1057
1063
|
position: e.value.style.chart.tooltip.position,
|
|
1058
1064
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1059
|
-
parent:
|
|
1065
|
+
parent: $.value,
|
|
1060
1066
|
content: le.value,
|
|
1061
1067
|
isCustom: W.value,
|
|
1062
1068
|
isFullscreen: H.value,
|
|
1063
1069
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1064
1070
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1065
1071
|
}, {
|
|
1066
|
-
"tooltip-before":
|
|
1067
|
-
p(t.$slots, "tooltip-before", B(
|
|
1072
|
+
"tooltip-before": b(() => [
|
|
1073
|
+
p(t.$slots, "tooltip-before", R(B({ ...ce.value })), void 0, !0)
|
|
1068
1074
|
]),
|
|
1069
|
-
"tooltip-after":
|
|
1070
|
-
p(t.$slots, "tooltip-after", B(
|
|
1075
|
+
"tooltip-after": b(() => [
|
|
1076
|
+
p(t.$slots, "tooltip-after", R(B({ ...ce.value })), void 0, !0)
|
|
1071
1077
|
]),
|
|
1072
1078
|
_: 3
|
|
1073
1079
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
1074
|
-
V.value ? (o(), I(
|
|
1080
|
+
V.value ? (o(), I(Pt(U.value.component), Dt({ key: 7 }, U.value.props, {
|
|
1075
1081
|
ref_key: "tableUnit",
|
|
1076
1082
|
ref: j,
|
|
1077
|
-
onClose:
|
|
1078
|
-
}),
|
|
1079
|
-
content:
|
|
1080
|
-
(o(), I(u(
|
|
1081
|
-
key: `table_${
|
|
1083
|
+
onClose: Ye
|
|
1084
|
+
}), He({
|
|
1085
|
+
content: b(() => [
|
|
1086
|
+
(o(), I(u(at), {
|
|
1087
|
+
key: `table_${be.value}`,
|
|
1082
1088
|
colNames: q.value.colNames,
|
|
1083
1089
|
head: q.value.head,
|
|
1084
1090
|
body: q.value.body,
|
|
1085
1091
|
config: q.value.config,
|
|
1086
1092
|
title: e.value.table.useDialog ? "" : U.value.title,
|
|
1087
1093
|
withCloseButton: !e.value.table.useDialog,
|
|
1088
|
-
onClose:
|
|
1094
|
+
onClose: Ye
|
|
1089
1095
|
}, {
|
|
1090
|
-
th:
|
|
1096
|
+
th: b(({ th: l }) => [
|
|
1091
1097
|
_("div", {
|
|
1092
1098
|
innerHTML: l,
|
|
1093
1099
|
style: { display: "flex", "align-items": "center" }
|
|
1094
|
-
}, null, 8,
|
|
1100
|
+
}, null, 8, Ul)
|
|
1095
1101
|
]),
|
|
1096
|
-
td:
|
|
1097
|
-
|
|
1102
|
+
td: b(({ td: l }) => [
|
|
1103
|
+
We(T(l.name || l), 1)
|
|
1098
1104
|
]),
|
|
1099
1105
|
_: 1
|
|
1100
1106
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1103,20 +1109,20 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
1103
1109
|
}, [
|
|
1104
1110
|
e.value.table.useDialog ? {
|
|
1105
1111
|
name: "title",
|
|
1106
|
-
fn:
|
|
1107
|
-
|
|
1112
|
+
fn: b(() => [
|
|
1113
|
+
We(T(U.value.title), 1)
|
|
1108
1114
|
]),
|
|
1109
1115
|
key: "0"
|
|
1110
1116
|
} : void 0,
|
|
1111
1117
|
e.value.table.useDialog ? {
|
|
1112
1118
|
name: "actions",
|
|
1113
|
-
fn:
|
|
1119
|
+
fn: b(() => [
|
|
1114
1120
|
_("button", {
|
|
1115
1121
|
tabindex: "0",
|
|
1116
1122
|
class: "vue-ui-user-options-button",
|
|
1117
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
1123
|
+
onClick: a[1] || (a[1] = (l) => ve(e.value.userOptions.callbacks.csv))
|
|
1118
1124
|
}, [
|
|
1119
|
-
|
|
1125
|
+
de(u(tt), {
|
|
1120
1126
|
name: "excel",
|
|
1121
1127
|
stroke: U.value.props.color
|
|
1122
1128
|
}, null, 8, ["stroke"])
|
|
@@ -1125,10 +1131,10 @@ const il = ["id"], ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["x", "y", "widt
|
|
|
1125
1131
|
key: "1"
|
|
1126
1132
|
} : void 0
|
|
1127
1133
|
]), 1040)) : h("", !0),
|
|
1128
|
-
u(z) ? (o(), I(
|
|
1129
|
-
], 46,
|
|
1134
|
+
u(z) ? (o(), I(tl, { key: 8 })) : h("", !0)
|
|
1135
|
+
], 46, cl));
|
|
1130
1136
|
}
|
|
1131
|
-
},
|
|
1137
|
+
}, na = /* @__PURE__ */ ul(Gl, [["__scopeId", "data-v-da96ec4c"]]);
|
|
1132
1138
|
export {
|
|
1133
|
-
|
|
1139
|
+
na as default
|
|
1134
1140
|
};
|