vue-data-ui 2.12.5 → 2.12.7-beta.0
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 +56 -1
- package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
- package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +96 -2
- package/dist/types/vue-data-ui.d.ts +96 -2
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +42 -40
- package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
- package/dist/PackageVersion-Cw2caN1c.js +0 -10
- package/dist/Tooltip-LKe8L-Mg.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
- package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
- package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
- package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
- package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
- package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
- package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
- package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
- package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
- package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import gt from "./vue-ui-skeleton-DfOIDTJM.js";
|
|
13
|
-
import { t as bt, u as kt } from "./useResponsive-JZ9xq-JV.js";
|
|
14
|
-
import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { u as Ct } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
-
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"], At = { key: 1 }, Lt = ["id"], St = ["stop-color"], zt = ["stop-color"], Nt = ["stop-color"], Ot = { key: 2 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = { key: 3 }, Ft = ["x", "y", "fill", "font-size"], Xt = ["transform", "font-size", "fill", "font-weight"], Dt = { key: 5 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 6 }, Bt = ["transform", "fill", "font-size", "text-anchor"], Rt = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["d", "stroke", "stroke-width"], Et = ["d", "stroke", "stroke-width"], Gt = ["cx", "cy", "fill", "r"], Vt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], qt = { key: 1 }, Zt = ["x", "y", "font-size", "fill", "font-weight"], Jt = { key: 2 }, Kt = ["x", "y", "font-size", "font-weight", "fill"], Qt = ["cx", "cy", "r", "onMouseenter", "onClick"], el = {
|
|
1
|
+
import { defineAsyncComponent as N, ref as h, shallowRef as _e, computed as f, onMounted as et, onBeforeUnmount as tt, watch as lt, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as M, normalizeClass as F, renderSlot as x, createBlock as O, createCommentVNode as v, createElementVNode as S, createVNode as $e, createSlots as at, withCtx as m, normalizeProps as X, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as z, createTextVNode as st, nextTick as ot } from "vue";
|
|
2
|
+
import { u as rt, c as Me, o as nt, e as Ae, g as ut, b as it, d as ct, p as G, D as Te, i as Y, f as j, X as vt, l as ht, h as yt, G as dt, F as I, t as ft, a as xt, C as V, q as pt, r as mt, x as gt } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as Se } from "./useNestedProp-tRqS0ZAM.js";
|
|
4
|
+
import { u as bt } from "./usePrinter-CRCbl1WG.js";
|
|
5
|
+
import { t as kt, u as wt } from "./useResponsive-JZ9xq-JV.js";
|
|
6
|
+
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as _t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import $t from "./Legend-DFunFf8i.js";
|
|
9
|
+
import Mt from "./Title-B5qqUI3M.js";
|
|
10
|
+
import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Tt = ["id"], St = ["xmlns", "viewBox"], zt = ["x", "y", "width", "height"], Lt = { key: 1 }, Nt = ["id"], Ot = ["stop-color"], It = ["stop-color"], Pt = ["stop-color"], Ft = { key: 2 }, Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = { key: 3 }, Yt = ["x", "y", "fill", "font-size"], jt = ["transform", "font-size", "fill", "font-weight"], Rt = { key: 5 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = { key: 6 }, Et = ["transform", "fill", "font-size", "text-anchor"], Ht = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["d", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Zt = ["cx", "cy", "fill", "r"], Jt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Kt = { key: 1 }, Qt = ["x", "y", "font-size", "fill", "font-weight"], el = { key: 2 }, tl = ["x", "y", "font-size", "font-weight", "fill"], ll = ["cx", "cy", "r", "onMouseenter", "onClick"], al = {
|
|
18
12
|
key: 5,
|
|
19
13
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
14
|
+
}, sl = ["onClick"], ol = ["innerHTML"], rl = {
|
|
21
15
|
__name: "vue-ui-history-plot",
|
|
22
16
|
props: {
|
|
23
17
|
config: {
|
|
@@ -34,24 +28,22 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
30
|
emits: ["selectLegend", "selectDatapoint"],
|
|
37
|
-
setup(
|
|
38
|
-
const { vue_ui_history_plot:
|
|
31
|
+
setup(ze, { expose: Le, emit: Ne }) {
|
|
32
|
+
const Oe = N(() => import("./vue-ui-accordion-CmCs2yR2.js")), Ie = N(() => import("./DataTable-Cv9CIz-a.js")), Pe = N(() => import("./PackageVersion-CLY-udAA.js")), Fe = N(() => import("./PenAndPaper-B9na2mbr.js")), Xe = N(() => import("./vue-ui-skeleton-CbYQYRvD.js")), De = N(() => import("./Tooltip-C9rxJ-Ru.js")), Ye = N(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_history_plot: je } = rt(), y = ze, R = h(null), ee = h(null), te = h(0), le = h(null), ae = h(0), se = h(0), oe = h(0), A = _e(null), P = _e(null), re = h(null), B = h(Me()), q = h(!1), Z = h(""), g = h([]), E = h(!1), $ = h(null), W = h(!1), ne = h(null), w = f({
|
|
39
33
|
get: () => !!y.dataset && y.dataset.length,
|
|
40
34
|
set: (t) => t
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
function ne() {
|
|
46
|
-
if (Je(y.dataset) ? _e({
|
|
35
|
+
}), ue = Ne;
|
|
36
|
+
et(ie);
|
|
37
|
+
function ie() {
|
|
38
|
+
if (nt(y.dataset) ? Ae({
|
|
47
39
|
componentName: "VueUiHistoryPlot",
|
|
48
40
|
type: "dataset"
|
|
49
41
|
}) : y.dataset.forEach((t, a) => {
|
|
50
|
-
|
|
42
|
+
ut({
|
|
51
43
|
datasetObject: t,
|
|
52
44
|
requiredAttributes: ["name", "values"]
|
|
53
45
|
}).forEach((l) => {
|
|
54
|
-
w.value = !1,
|
|
46
|
+
w.value = !1, Ae({
|
|
55
47
|
componentName: "VueUiHistoryPlot",
|
|
56
48
|
type: "datasetSerieAttribute",
|
|
57
49
|
property: l,
|
|
@@ -59,52 +51,52 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
59
51
|
});
|
|
60
52
|
});
|
|
61
53
|
}), e.value.responsive) {
|
|
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:
|
|
54
|
+
const t = kt(() => {
|
|
55
|
+
const { width: a, height: l } = wt({
|
|
56
|
+
chart: R.value,
|
|
57
|
+
title: e.value.style.chart.title.text ? ee.value : null,
|
|
58
|
+
noTitle: re.value,
|
|
59
|
+
legend: e.value.style.chart.legend.show ? le.value : null,
|
|
60
|
+
source: ne.value
|
|
69
61
|
});
|
|
70
62
|
requestAnimationFrame(() => {
|
|
71
|
-
d.value.width = a, d.value.height = l, u.value.plots =
|
|
63
|
+
d.value.width = a, d.value.height = l, u.value.plots = I({
|
|
72
64
|
relator: Math.min(a, l),
|
|
73
65
|
adjuster: 600,
|
|
74
66
|
source: e.value.style.chart.plots.radius,
|
|
75
67
|
threshold: 3,
|
|
76
68
|
fallback: 3
|
|
77
|
-
}), u.value.indexLabels =
|
|
69
|
+
}), u.value.indexLabels = I({
|
|
78
70
|
relator: Math.min(a, l),
|
|
79
71
|
adjuster: 600,
|
|
80
72
|
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
81
73
|
threshold: 6,
|
|
82
74
|
fallback: 6
|
|
83
|
-
}), u.value.labels =
|
|
75
|
+
}), u.value.labels = I({
|
|
84
76
|
relator: Math.min(a, l),
|
|
85
77
|
adjuster: 600,
|
|
86
78
|
source: e.value.style.chart.plots.labels.fontSize,
|
|
87
79
|
threshold: 6,
|
|
88
80
|
fallback: 6
|
|
89
|
-
}), u.value.xAxisLabels =
|
|
81
|
+
}), u.value.xAxisLabels = I({
|
|
90
82
|
relator: Math.min(a, l),
|
|
91
83
|
adjuster: 600,
|
|
92
84
|
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
93
85
|
threshold: 6,
|
|
94
86
|
fallback: 6
|
|
95
|
-
}), u.value.xAxisName =
|
|
87
|
+
}), u.value.xAxisName = I({
|
|
96
88
|
relator: Math.min(a, l),
|
|
97
89
|
adjuster: 600,
|
|
98
90
|
source: e.value.style.chart.axes.x.name.fontSize,
|
|
99
91
|
threshold: 6,
|
|
100
92
|
fallback: 6
|
|
101
|
-
}), u.value.yAxisLabels =
|
|
93
|
+
}), u.value.yAxisLabels = I({
|
|
102
94
|
relator: Math.min(a, l),
|
|
103
95
|
adjuster: 600,
|
|
104
96
|
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
105
97
|
threshold: 6,
|
|
106
98
|
fallback: 6
|
|
107
|
-
}), u.value.yAxisName =
|
|
99
|
+
}), u.value.yAxisName = I({
|
|
108
100
|
relator: Math.min(a, l),
|
|
109
101
|
adjuster: 600,
|
|
110
102
|
source: e.value.style.chart.axes.y.name.fontSize,
|
|
@@ -113,38 +105,41 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
113
105
|
});
|
|
114
106
|
});
|
|
115
107
|
});
|
|
116
|
-
|
|
108
|
+
A.value && (P.value && A.value.unobserve(P.value), A.value.disconnect()), A.value = new ResizeObserver(t), P.value = R.value.parentNode, A.value.observe(P.value);
|
|
117
109
|
}
|
|
118
110
|
}
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
tt(() => {
|
|
112
|
+
A.value && (P.value && A.value.unobserve(P.value), A.value.disconnect());
|
|
113
|
+
});
|
|
114
|
+
function ce() {
|
|
115
|
+
const t = Se({
|
|
121
116
|
userConfig: y.config,
|
|
122
|
-
defaultConfig:
|
|
117
|
+
defaultConfig: je
|
|
123
118
|
});
|
|
124
119
|
let a = {};
|
|
125
120
|
return t.theme ? a = {
|
|
126
|
-
...
|
|
127
|
-
userConfig:
|
|
121
|
+
...Se({
|
|
122
|
+
userConfig: xt.vue_ui_history_plot[t.theme] || y.config,
|
|
128
123
|
defaultConfig: t
|
|
129
124
|
}),
|
|
130
|
-
customPalette:
|
|
131
|
-
} : a = t, y.config &&
|
|
125
|
+
customPalette: ft[t.theme] || G
|
|
126
|
+
} : a = t, y.config && V(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && V(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && V(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && V(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
132
127
|
}
|
|
133
128
|
const e = f({
|
|
134
|
-
get: () =>
|
|
129
|
+
get: () => ce(),
|
|
135
130
|
set: (t) => t
|
|
136
|
-
}), { userOptionsVisible:
|
|
137
|
-
|
|
138
|
-
e.value =
|
|
131
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: ve, keepUserOptionState: he } = Ct({ config: e.value }), { svgRef: ye } = _t({ config: e.value.style.chart.title });
|
|
132
|
+
lt(() => y.config, (t) => {
|
|
133
|
+
e.value = ce(), J.value = !e.value.userOptions.showOnChartHover, ie(), te.value += 1, se.value += 1, ae.value += 1, d.value.height = e.value.style.chart.height, d.value.width = e.value.style.chart.width, u.value.plots = e.value.style.chart.plots.radius, u.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, u.value.labels = e.value.style.chart.plots.labels.fontSize, u.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, u.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, u.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, u.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;
|
|
139
134
|
}, { deep: !0 });
|
|
140
|
-
const { isPrinting:
|
|
141
|
-
elementId: `history_plot_${
|
|
135
|
+
const { isPrinting: de, isImaging: fe, generatePdf: xe, generateImage: pe } = bt({
|
|
136
|
+
elementId: `history_plot_${B.value}`,
|
|
142
137
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
143
138
|
options: e.value.userOptions.print
|
|
144
|
-
}),
|
|
139
|
+
}), Re = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Be = f(() => it(e.value.customPalette)), C = h({
|
|
145
140
|
showTable: e.value.table.show,
|
|
146
141
|
showTooltip: e.value.style.chart.tooltip.show
|
|
147
|
-
}), d =
|
|
142
|
+
}), d = h({
|
|
148
143
|
height: e.value.style.chart.height,
|
|
149
144
|
width: e.value.style.chart.width
|
|
150
145
|
}), n = f(() => {
|
|
@@ -157,7 +152,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
157
152
|
width: d.value.width - t - e.value.style.chart.padding.right,
|
|
158
153
|
height: d.value.height - a - e.value.style.chart.padding.bottom
|
|
159
154
|
};
|
|
160
|
-
}), u =
|
|
155
|
+
}), u = h({
|
|
161
156
|
plots: e.value.style.chart.plots.radius,
|
|
162
157
|
indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
|
|
163
158
|
labels: e.value.style.chart.plots.labels.fontSize,
|
|
@@ -167,24 +162,24 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
167
162
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
168
163
|
}), T = f(() => w.value ? y.dataset.map((t, a) => ({
|
|
169
164
|
...t,
|
|
170
|
-
color: t.color ?
|
|
165
|
+
color: t.color ? ct(t.color) : Be.value[a] || G[a] || G[a % G.length],
|
|
171
166
|
seriesIndex: a
|
|
172
|
-
})) : []),
|
|
167
|
+
})) : []), We = f(() => w.value ? Math.max(...T.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), Ee = f(() => {
|
|
173
168
|
if (!w.value) return 1;
|
|
174
169
|
const t = Math.min(...T.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
175
170
|
return t < 0 ? t : 0;
|
|
176
|
-
}),
|
|
171
|
+
}), He = f(() => w.value ? Math.max(...T.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ue = f(() => {
|
|
177
172
|
if (!w.value) return 1;
|
|
178
173
|
const t = Math.min(...T.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
179
174
|
return t < 0 ? t : 0;
|
|
180
175
|
}), p = f(() => {
|
|
181
|
-
const t =
|
|
182
|
-
e.value.style.chart.axes.x.scaleMin === null ?
|
|
183
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
176
|
+
const t = Te(
|
|
177
|
+
e.value.style.chart.axes.x.scaleMin === null ? Ee.value : e.value.style.chart.axes.x.scaleMin,
|
|
178
|
+
e.value.style.chart.axes.x.scaleMax === null ? We.value : e.value.style.chart.axes.x.scaleMax,
|
|
184
179
|
e.value.style.chart.axes.x.ticks
|
|
185
|
-
), a =
|
|
186
|
-
e.value.style.chart.axes.y.scaleMin === null ?
|
|
187
|
-
e.value.style.chart.axes.y.scaleMax === null ?
|
|
180
|
+
), a = Te(
|
|
181
|
+
e.value.style.chart.axes.y.scaleMin === null ? Ue.value : e.value.style.chart.axes.y.scaleMin,
|
|
182
|
+
e.value.style.chart.axes.y.scaleMax === null ? He.value : e.value.style.chart.axes.y.scaleMax,
|
|
188
183
|
e.value.style.chart.axes.y.ticks
|
|
189
184
|
);
|
|
190
185
|
return {
|
|
@@ -204,41 +199,41 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
204
199
|
}))
|
|
205
200
|
};
|
|
206
201
|
});
|
|
207
|
-
function
|
|
202
|
+
function Ge(t) {
|
|
208
203
|
const a = p.value.x.min < 0 ? Math.abs(p.value.x.min) : p.value.x.min > 0 ? -p.value.x.min : 0;
|
|
209
204
|
return n.value.left + ((t || 0) + a) / (p.value.x.max + a) * n.value.width;
|
|
210
205
|
}
|
|
211
|
-
function
|
|
206
|
+
function Ve(t) {
|
|
212
207
|
const a = p.value.y.min < 0 ? Math.abs(p.value.y.min) : p.value.y.min > 0 ? -p.value.y.min : 0;
|
|
213
208
|
return n.value.bottom - ((t || 0) + a) / (p.value.y.max + a) * n.value.height;
|
|
214
209
|
}
|
|
215
|
-
const
|
|
210
|
+
const L = f(() => T.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
|
|
216
211
|
const l = t.values.map((o, _) => ({
|
|
217
212
|
valueX: o.x,
|
|
218
213
|
valueY: o.y,
|
|
219
214
|
label: o.label,
|
|
220
|
-
x:
|
|
221
|
-
y:
|
|
215
|
+
x: Ge(o.x),
|
|
216
|
+
y: Ve(o.y),
|
|
222
217
|
color: t.color,
|
|
223
218
|
seriesName: t.name,
|
|
224
|
-
id:
|
|
225
|
-
})),
|
|
219
|
+
id: Me()
|
|
220
|
+
})), c = l.map((o) => `${o.x},${o.y} `).join("").trim();
|
|
226
221
|
return {
|
|
227
222
|
...t,
|
|
228
223
|
plots: l,
|
|
229
|
-
path: `M${
|
|
224
|
+
path: `M${c}`
|
|
230
225
|
};
|
|
231
226
|
}));
|
|
232
|
-
function
|
|
227
|
+
function me(t) {
|
|
233
228
|
g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
|
|
234
229
|
}
|
|
235
|
-
const
|
|
230
|
+
const ge = f(() => T.value.map((t) => ({
|
|
236
231
|
...t,
|
|
237
232
|
opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
238
|
-
segregate: () =>
|
|
233
|
+
segregate: () => me(t.seriesIndex),
|
|
239
234
|
isSegregated: g.value.includes(t.seriesIndex),
|
|
240
235
|
shape: "circle"
|
|
241
|
-
}))),
|
|
236
|
+
}))), qe = f(() => ({
|
|
242
237
|
cy: "history-plot-div-legend",
|
|
243
238
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
244
239
|
color: e.value.style.chart.legend.color,
|
|
@@ -246,90 +241,90 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
246
241
|
paddingBottom: 12,
|
|
247
242
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
248
243
|
}));
|
|
249
|
-
function
|
|
250
|
-
|
|
244
|
+
function Ze(t) {
|
|
245
|
+
ue("selectDatapoint", t);
|
|
251
246
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
247
|
+
function be(t) {
|
|
248
|
+
ue("selectLegend", {
|
|
254
249
|
...t,
|
|
255
250
|
isSegregated: !t.isSegregated,
|
|
256
251
|
opacity: t.isSegregated ? 1 : 0.5
|
|
257
252
|
});
|
|
258
253
|
}
|
|
259
|
-
function
|
|
260
|
-
|
|
254
|
+
function Je(t) {
|
|
255
|
+
E.value = t, oe.value += 1;
|
|
261
256
|
}
|
|
262
|
-
const
|
|
263
|
-
function
|
|
264
|
-
|
|
265
|
-
const
|
|
266
|
-
if (
|
|
257
|
+
const K = h(null);
|
|
258
|
+
function Ke({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
259
|
+
K.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: T.value }, $.value = t;
|
|
260
|
+
const c = e.value.style.chart.tooltip.customFormat;
|
|
261
|
+
if (W.value = !1, gt(c))
|
|
267
262
|
try {
|
|
268
|
-
const o =
|
|
263
|
+
const o = c({
|
|
269
264
|
seriesIndex: l,
|
|
270
265
|
datapoint: t,
|
|
271
266
|
plotIndex: a,
|
|
272
267
|
series: T.value,
|
|
273
268
|
config: e.value
|
|
274
269
|
});
|
|
275
|
-
typeof o == "string" && (
|
|
270
|
+
typeof o == "string" && (Z.value = o, W.value = !0);
|
|
276
271
|
} catch {
|
|
277
|
-
console.warn("Custom format cannot be applied."),
|
|
272
|
+
console.warn("Custom format cannot be applied."), W.value = !1;
|
|
278
273
|
}
|
|
279
|
-
if (!
|
|
274
|
+
if (!W.value) {
|
|
280
275
|
let o = "";
|
|
281
|
-
o += `<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>`, o += `<div>${t.label}</div>`, o += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${
|
|
276
|
+
o += `<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>`, o += `<div>${t.label}</div>`, o += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${Y(
|
|
282
277
|
e.value.style.chart.axes.x.labels.formatter,
|
|
283
278
|
t.valueX,
|
|
284
|
-
|
|
279
|
+
j({
|
|
285
280
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
286
281
|
v: t.valueX,
|
|
287
282
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
288
283
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
289
284
|
})
|
|
290
|
-
)}</div>`, o += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${
|
|
285
|
+
)}</div>`, o += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${Y(
|
|
291
286
|
e.value.style.chart.axes.y.labels.formatter,
|
|
292
287
|
t.valueY,
|
|
293
|
-
|
|
288
|
+
j({
|
|
294
289
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
295
290
|
v: t.valueY,
|
|
296
291
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
297
292
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
298
293
|
})
|
|
299
|
-
)}</div>`,
|
|
294
|
+
)}</div>`, Z.value = `<div>${o}</div>`;
|
|
300
295
|
}
|
|
301
|
-
|
|
296
|
+
q.value = !0;
|
|
302
297
|
}
|
|
303
|
-
f(() => ({ head:
|
|
298
|
+
f(() => ({ head: L.value.map((a) => ({
|
|
304
299
|
name: a.name,
|
|
305
300
|
color: a.color
|
|
306
301
|
})) }));
|
|
307
|
-
const
|
|
302
|
+
const H = f(() => {
|
|
308
303
|
const t = [
|
|
309
304
|
e.value.table.columnNames.series,
|
|
310
305
|
e.value.table.columnNames.datapoint,
|
|
311
306
|
e.value.table.columnNames.x,
|
|
312
307
|
e.value.table.columnNames.y
|
|
313
|
-
], a =
|
|
308
|
+
], a = L.value.flatMap((c) => c.plots.map((o) => [
|
|
314
309
|
{
|
|
315
310
|
color: o.color,
|
|
316
311
|
name: o.seriesName
|
|
317
312
|
},
|
|
318
313
|
o.label,
|
|
319
|
-
|
|
314
|
+
Y(
|
|
320
315
|
e.value.style.chart.axes.x.labels.formatter,
|
|
321
316
|
o.valueX,
|
|
322
|
-
|
|
317
|
+
j({
|
|
323
318
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
324
319
|
v: o.valueX,
|
|
325
320
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
326
321
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
327
322
|
})
|
|
328
323
|
),
|
|
329
|
-
|
|
324
|
+
Y(
|
|
330
325
|
e.value.style.chart.axes.y.labels.formatter,
|
|
331
326
|
o.valueY,
|
|
332
|
-
|
|
327
|
+
j({
|
|
333
328
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
334
329
|
v: o.valueY,
|
|
335
330
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -356,14 +351,14 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
356
351
|
colNames: t
|
|
357
352
|
};
|
|
358
353
|
});
|
|
359
|
-
function
|
|
360
|
-
|
|
354
|
+
function ke() {
|
|
355
|
+
ot(() => {
|
|
361
356
|
const t = [
|
|
362
357
|
[e.value.table.columnNames.series],
|
|
363
358
|
[e.value.table.columnNames.datapoint],
|
|
364
359
|
[e.value.table.columnNames.x],
|
|
365
360
|
[e.value.table.columnNames.y]
|
|
366
|
-
], a =
|
|
361
|
+
], a = L.value.flatMap((o) => o.plots.map((_) => [
|
|
367
362
|
[_.seriesName],
|
|
368
363
|
[_.label],
|
|
369
364
|
[_.valueX],
|
|
@@ -372,68 +367,68 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
372
367
|
[e.value.style.chart.title.text],
|
|
373
368
|
[e.value.style.chart.title.subtitle.text],
|
|
374
369
|
t
|
|
375
|
-
].concat(a),
|
|
376
|
-
|
|
377
|
-
csvContent:
|
|
370
|
+
].concat(a), c = pt(l);
|
|
371
|
+
mt({
|
|
372
|
+
csvContent: c,
|
|
378
373
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
379
374
|
});
|
|
380
375
|
});
|
|
381
376
|
}
|
|
382
|
-
const
|
|
383
|
-
function
|
|
384
|
-
|
|
377
|
+
const U = h(!1);
|
|
378
|
+
function Q() {
|
|
379
|
+
U.value = !U.value;
|
|
385
380
|
}
|
|
386
|
-
function
|
|
381
|
+
function we() {
|
|
387
382
|
C.value.showTable = !C.value.showTable;
|
|
388
383
|
}
|
|
389
|
-
function
|
|
384
|
+
function Ce() {
|
|
390
385
|
C.value.showTooltip = !C.value.showTooltip;
|
|
391
386
|
}
|
|
392
|
-
function
|
|
393
|
-
return
|
|
387
|
+
function Qe() {
|
|
388
|
+
return L.value;
|
|
394
389
|
}
|
|
395
|
-
return
|
|
396
|
-
getData:
|
|
397
|
-
generatePdf:
|
|
398
|
-
generateCsv:
|
|
399
|
-
generateImage:
|
|
400
|
-
toggleTable:
|
|
401
|
-
toggleTooltip:
|
|
402
|
-
toggleAnnotator:
|
|
390
|
+
return Le({
|
|
391
|
+
getData: Qe,
|
|
392
|
+
generatePdf: xe,
|
|
393
|
+
generateCsv: ke,
|
|
394
|
+
generateImage: pe,
|
|
395
|
+
toggleTable: we,
|
|
396
|
+
toggleTooltip: Ce,
|
|
397
|
+
toggleAnnotator: Q
|
|
403
398
|
}), (t, a) => (s(), r("div", {
|
|
404
|
-
id: `history_plot_${
|
|
399
|
+
id: `history_plot_${B.value}`,
|
|
405
400
|
ref_key: "historyPlotChart",
|
|
406
|
-
ref:
|
|
407
|
-
class:
|
|
401
|
+
ref: R,
|
|
402
|
+
class: F({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": E.value }),
|
|
408
403
|
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%" : ""}`),
|
|
409
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
410
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
404
|
+
onMouseenter: a[3] || (a[3] = () => i(ve)(!0)),
|
|
405
|
+
onMouseleave: a[4] || (a[4] = () => i(ve)(!1))
|
|
411
406
|
}, [
|
|
412
407
|
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
413
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
408
|
+
e.value.userOptions.buttons.annotator ? (s(), O(i(Fe), {
|
|
414
409
|
key: 0,
|
|
415
|
-
svgRef:
|
|
410
|
+
svgRef: i(ye),
|
|
416
411
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
417
412
|
color: e.value.style.chart.color,
|
|
418
|
-
active:
|
|
419
|
-
onClose:
|
|
413
|
+
active: U.value,
|
|
414
|
+
onClose: Q
|
|
420
415
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
421
|
-
|
|
416
|
+
Re.value ? (s(), r("div", {
|
|
422
417
|
key: 1,
|
|
423
418
|
ref_key: "noTitle",
|
|
424
|
-
ref:
|
|
419
|
+
ref: re,
|
|
425
420
|
class: "vue-data-ui-no-title-space",
|
|
426
421
|
style: "height:36px; width: 100%;background:transparent"
|
|
427
422
|
}, null, 512)) : v("", !0),
|
|
428
423
|
e.value.style.chart.title.text ? (s(), r("div", {
|
|
429
424
|
key: 2,
|
|
430
425
|
ref_key: "chartTitle",
|
|
431
|
-
ref:
|
|
426
|
+
ref: ee,
|
|
432
427
|
class: "vue-ui-xy-title",
|
|
433
428
|
style: M(`font-family:${e.value.style.fontFamily}`)
|
|
434
429
|
}, [
|
|
435
|
-
(s(),
|
|
436
|
-
key: `title_${
|
|
430
|
+
(s(), O(Mt, {
|
|
431
|
+
key: `title_${te.value}`,
|
|
437
432
|
config: {
|
|
438
433
|
title: {
|
|
439
434
|
cy: "history-plot-div-title",
|
|
@@ -446,14 +441,14 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
446
441
|
}
|
|
447
442
|
}, null, 8, ["config"]))
|
|
448
443
|
], 4)) : v("", !0),
|
|
449
|
-
e.value.userOptions.show && w.value && (
|
|
444
|
+
e.value.userOptions.show && w.value && (i(he) || i(J)) ? (s(), O(i(Ye), {
|
|
450
445
|
ref: "details",
|
|
451
|
-
key: `user_option_${
|
|
446
|
+
key: `user_option_${oe.value}`,
|
|
452
447
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
453
448
|
color: e.value.style.chart.color,
|
|
454
|
-
isPrinting:
|
|
455
|
-
isImaging:
|
|
456
|
-
uid:
|
|
449
|
+
isPrinting: i(de),
|
|
450
|
+
isImaging: i(fe),
|
|
451
|
+
uid: B.value,
|
|
457
452
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
458
453
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
459
454
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -461,28 +456,28 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
461
456
|
hasTable: e.value.userOptions.buttons.table,
|
|
462
457
|
hasLabel: !1,
|
|
463
458
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
464
|
-
isFullscreen:
|
|
465
|
-
chartElement:
|
|
459
|
+
isFullscreen: E.value,
|
|
460
|
+
chartElement: R.value,
|
|
466
461
|
position: e.value.userOptions.position,
|
|
467
462
|
isTooltip: C.value.showTooltip,
|
|
468
463
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
469
464
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
470
|
-
isAnnotation:
|
|
471
|
-
onToggleFullscreen:
|
|
472
|
-
onGeneratePdf:
|
|
473
|
-
onGenerateCsv:
|
|
474
|
-
onGenerateImage:
|
|
475
|
-
onToggleTable:
|
|
476
|
-
onToggleTooltip:
|
|
477
|
-
onToggleAnnotator:
|
|
465
|
+
isAnnotation: U.value,
|
|
466
|
+
onToggleFullscreen: Je,
|
|
467
|
+
onGeneratePdf: i(xe),
|
|
468
|
+
onGenerateCsv: ke,
|
|
469
|
+
onGenerateImage: i(pe),
|
|
470
|
+
onToggleTable: we,
|
|
471
|
+
onToggleTooltip: Ce,
|
|
472
|
+
onToggleAnnotator: Q,
|
|
478
473
|
style: M({
|
|
479
|
-
visibility:
|
|
474
|
+
visibility: i(he) ? i(J) ? "visible" : "hidden" : "visible"
|
|
480
475
|
})
|
|
481
|
-
},
|
|
476
|
+
}, at({ _: 2 }, [
|
|
482
477
|
t.$slots.menuIcon ? {
|
|
483
478
|
name: "menuIcon",
|
|
484
|
-
fn: m(({ isOpen: l, color:
|
|
485
|
-
x(t.$slots, "menuIcon",
|
|
479
|
+
fn: m(({ isOpen: l, color: c }) => [
|
|
480
|
+
x(t.$slots, "menuIcon", X(D({ isOpen: l, color: c })), void 0, !0)
|
|
486
481
|
]),
|
|
487
482
|
key: "0"
|
|
488
483
|
} : void 0,
|
|
@@ -523,15 +518,15 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
523
518
|
} : void 0,
|
|
524
519
|
t.$slots.optionFullscreen ? {
|
|
525
520
|
name: "optionFullscreen",
|
|
526
|
-
fn: m(({ toggleFullscreen: l, isFullscreen:
|
|
527
|
-
x(t.$slots, "optionFullscreen",
|
|
521
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: c }) => [
|
|
522
|
+
x(t.$slots, "optionFullscreen", X(D({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
|
|
528
523
|
]),
|
|
529
524
|
key: "6"
|
|
530
525
|
} : void 0,
|
|
531
526
|
t.$slots.optionAnnotator ? {
|
|
532
527
|
name: "optionAnnotator",
|
|
533
|
-
fn: m(({ toggleAnnotator: l, isAnnotator:
|
|
534
|
-
x(t.$slots, "optionAnnotator",
|
|
528
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: c }) => [
|
|
529
|
+
x(t.$slots, "optionAnnotator", X(D({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
|
|
535
530
|
]),
|
|
536
531
|
key: "7"
|
|
537
532
|
} : void 0
|
|
@@ -539,12 +534,12 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
539
534
|
w.value ? (s(), r("svg", {
|
|
540
535
|
key: 4,
|
|
541
536
|
ref_key: "svgRef",
|
|
542
|
-
ref:
|
|
543
|
-
xmlns:
|
|
537
|
+
ref: ye,
|
|
538
|
+
xmlns: i(vt),
|
|
544
539
|
viewBox: `0 0 ${d.value.width < 0 ? 0.1 : d.value.width} ${d.value.height < 0 ? 0.1 : d.value.height}`,
|
|
545
540
|
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
546
541
|
}, [
|
|
547
|
-
|
|
542
|
+
$e(i(Pe)),
|
|
548
543
|
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
549
544
|
key: 0,
|
|
550
545
|
x: n.value.left,
|
|
@@ -556,27 +551,27 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
556
551
|
}
|
|
557
552
|
}, [
|
|
558
553
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
559
|
-
], 8,
|
|
560
|
-
e.value.style.chart.plots.gradient.show ? (s(), r("defs",
|
|
561
|
-
(s(!0), r(b, null, k(
|
|
562
|
-
id: `gradient_${
|
|
554
|
+
], 8, zt)) : v("", !0),
|
|
555
|
+
e.value.style.chart.plots.gradient.show ? (s(), r("defs", Lt, [
|
|
556
|
+
(s(!0), r(b, null, k(L.value, (l, c) => (s(), r("radialGradient", {
|
|
557
|
+
id: `gradient_${c}_${B.value}`,
|
|
563
558
|
fy: "30%"
|
|
564
559
|
}, [
|
|
565
|
-
|
|
560
|
+
S("stop", {
|
|
566
561
|
offset: "10%",
|
|
567
|
-
"stop-color":
|
|
568
|
-
}, null, 8,
|
|
569
|
-
|
|
562
|
+
"stop-color": i(ht)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
563
|
+
}, null, 8, Ot),
|
|
564
|
+
S("stop", {
|
|
570
565
|
offset: "90%",
|
|
571
|
-
"stop-color":
|
|
572
|
-
}, null, 8,
|
|
573
|
-
|
|
566
|
+
"stop-color": i(yt)(l.color, 0.1)
|
|
567
|
+
}, null, 8, It),
|
|
568
|
+
S("stop", {
|
|
574
569
|
offset: "100%",
|
|
575
570
|
"stop-color": l.color
|
|
576
|
-
}, null, 8,
|
|
577
|
-
], 8,
|
|
571
|
+
}, null, 8, Pt)
|
|
572
|
+
], 8, Nt))), 256))
|
|
578
573
|
])) : v("", !0),
|
|
579
|
-
e.value.style.chart.grid.verticalLines.show ? (s(), r("g",
|
|
574
|
+
e.value.style.chart.grid.verticalLines.show ? (s(), r("g", Ft, [
|
|
580
575
|
(s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("line", {
|
|
581
576
|
x1: l.x,
|
|
582
577
|
x2: l.x,
|
|
@@ -585,25 +580,25 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
585
580
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
586
581
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
587
582
|
"stroke-linecap": "round"
|
|
588
|
-
}, null, 8,
|
|
583
|
+
}, null, 8, Xt))), 256))
|
|
589
584
|
])) : v("", !0),
|
|
590
|
-
e.value.style.chart.axes.y.labels.show ? (s(), r("g",
|
|
585
|
+
e.value.style.chart.axes.y.labels.show ? (s(), r("g", Dt, [
|
|
591
586
|
(s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("text", {
|
|
592
587
|
x: n.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
|
|
593
588
|
y: l.y + u.value.yAxisLabels / 3,
|
|
594
589
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
595
590
|
"font-size": u.value.yAxisLabels,
|
|
596
591
|
"text-anchor": "end"
|
|
597
|
-
},
|
|
592
|
+
}, z(i(Y)(
|
|
598
593
|
e.value.style.chart.axes.y.labels.formatter,
|
|
599
594
|
l.value,
|
|
600
|
-
|
|
595
|
+
i(j)({
|
|
601
596
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
602
597
|
v: l.value,
|
|
603
598
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
604
599
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
605
600
|
})
|
|
606
|
-
)), 9,
|
|
601
|
+
)), 9, Yt))), 256))
|
|
607
602
|
])) : v("", !0),
|
|
608
603
|
e.value.style.chart.axes.y.name.text ? (s(), r("text", {
|
|
609
604
|
key: 4,
|
|
@@ -612,8 +607,8 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
612
607
|
fill: e.value.style.chart.axes.y.name.color,
|
|
613
608
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
614
609
|
"text-anchor": "middle"
|
|
615
|
-
},
|
|
616
|
-
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g",
|
|
610
|
+
}, z(e.value.style.chart.axes.y.name.text), 9, jt)) : v("", !0),
|
|
611
|
+
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", Rt, [
|
|
617
612
|
(s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("line", {
|
|
618
613
|
x1: l.x1,
|
|
619
614
|
x2: l.x2,
|
|
@@ -622,24 +617,24 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
622
617
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
623
618
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
624
619
|
"stroke-linecap": "round"
|
|
625
|
-
}, null, 8,
|
|
620
|
+
}, null, 8, Bt))), 256))
|
|
626
621
|
])) : v("", !0),
|
|
627
|
-
e.value.style.chart.axes.x.labels.show ? (s(), r("g",
|
|
622
|
+
e.value.style.chart.axes.x.labels.show ? (s(), r("g", Wt, [
|
|
628
623
|
(s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("text", {
|
|
629
624
|
transform: `translate(${l.x}, ${n.value.bottom + e.value.style.chart.axes.x.labels.offsetY + u.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
630
625
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
631
626
|
"font-size": u.value.xAxisLabels,
|
|
632
627
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
633
|
-
},
|
|
628
|
+
}, z(i(Y)(
|
|
634
629
|
e.value.style.chart.axes.x.labels.formatter,
|
|
635
630
|
l.value,
|
|
636
|
-
|
|
631
|
+
i(j)({
|
|
637
632
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
638
633
|
v: l.value,
|
|
639
634
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
640
635
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
641
636
|
})
|
|
642
|
-
)), 9,
|
|
637
|
+
)), 9, Et))), 256))
|
|
643
638
|
])) : v("", !0),
|
|
644
639
|
e.value.style.chart.axes.x.name.text ? (s(), r("text", {
|
|
645
640
|
key: 7,
|
|
@@ -649,7 +644,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
649
644
|
fill: e.value.style.chart.axes.x.name.color,
|
|
650
645
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
651
646
|
"text-anchor": "middle"
|
|
652
|
-
},
|
|
647
|
+
}, z(e.value.style.chart.axes.x.name.text), 9, Ht)) : v("", !0),
|
|
653
648
|
e.value.style.chart.grid.xAxis.show ? (s(), r("line", {
|
|
654
649
|
key: 8,
|
|
655
650
|
x1: n.value.left,
|
|
@@ -669,32 +664,32 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
669
664
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
670
665
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
671
666
|
"stroke-linecap": "round"
|
|
672
|
-
}, null, 8,
|
|
673
|
-
(s(!0), r(b, null, k(
|
|
667
|
+
}, null, 8, Gt)) : v("", !0),
|
|
668
|
+
(s(!0), r(b, null, k(L.value, (l, c) => (s(), r("g", null, [
|
|
674
669
|
e.value.style.chart.paths.show ? (s(), r("g", {
|
|
675
670
|
key: 0,
|
|
676
671
|
style: M({
|
|
677
672
|
opacity: $.value === null ? 1 : 0.3
|
|
678
673
|
})
|
|
679
674
|
}, [
|
|
680
|
-
|
|
675
|
+
S("path", {
|
|
681
676
|
d: l.path,
|
|
682
677
|
stroke: e.value.style.chart.backgroundColor,
|
|
683
678
|
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
684
679
|
fill: "none",
|
|
685
680
|
"stroke-linecap": "round",
|
|
686
681
|
"stroke-linejoin": "round",
|
|
687
|
-
class:
|
|
688
|
-
}, null, 10,
|
|
689
|
-
|
|
682
|
+
class: F({ animated: e.value.useCssAnimation })
|
|
683
|
+
}, null, 10, Vt),
|
|
684
|
+
S("path", {
|
|
690
685
|
d: l.path,
|
|
691
686
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
692
687
|
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
693
688
|
fill: "none",
|
|
694
689
|
"stroke-linecap": "round",
|
|
695
690
|
"stroke-linejoin": "round",
|
|
696
|
-
class:
|
|
697
|
-
}, null, 10,
|
|
691
|
+
class: F({ animated: e.value.useCssAnimation })
|
|
692
|
+
}, null, 10, qt)
|
|
698
693
|
], 4)) : v("", !0),
|
|
699
694
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
|
|
700
695
|
cx: o.x,
|
|
@@ -702,21 +697,21 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
702
697
|
fill: e.value.style.chart.backgroundColor,
|
|
703
698
|
r: u.value.plots,
|
|
704
699
|
stroke: "none"
|
|
705
|
-
}, null, 8,
|
|
700
|
+
}, null, 8, Zt))), 256)),
|
|
706
701
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
|
|
707
702
|
cx: o.x,
|
|
708
703
|
cy: o.y,
|
|
709
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${
|
|
704
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${c}_${B.value})` : o.color,
|
|
710
705
|
r: u.value.plots,
|
|
711
706
|
stroke: e.value.style.chart.plots.stroke,
|
|
712
707
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
713
|
-
class:
|
|
708
|
+
class: F({ animated: e.value.useCssAnimation }),
|
|
714
709
|
style: M({
|
|
715
710
|
opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
|
|
716
711
|
transition: "opacity 0.2s ease-in-out"
|
|
717
712
|
})
|
|
718
|
-
}, null, 14,
|
|
719
|
-
e.value.style.chart.plots.labels.show ? (s(), r("g",
|
|
713
|
+
}, null, 14, Jt))), 256)),
|
|
714
|
+
e.value.style.chart.plots.labels.show ? (s(), r("g", Kt, [
|
|
720
715
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("text", {
|
|
721
716
|
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
722
717
|
y: o.y + e.value.style.chart.plots.labels.offsetY + u.value.plots + u.value.labels,
|
|
@@ -724,53 +719,53 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
724
719
|
fill: e.value.style.chart.plots.labels.color,
|
|
725
720
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
726
721
|
"text-anchor": "middle",
|
|
727
|
-
class:
|
|
722
|
+
class: F({ animated: e.value.useCssAnimation }),
|
|
728
723
|
style: M({
|
|
729
724
|
opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
|
|
730
725
|
transition: "opacity 0.2s ease-in-out"
|
|
731
726
|
})
|
|
732
|
-
},
|
|
727
|
+
}, z(o.label), 15, Qt))), 256))
|
|
733
728
|
])) : v("", !0),
|
|
734
|
-
e.value.style.chart.plots.indexLabels.show ? (s(), r("g",
|
|
729
|
+
e.value.style.chart.plots.indexLabels.show ? (s(), r("g", el, [
|
|
735
730
|
(s(!0), r(b, null, k(l.plots, (o, _) => (s(), r("text", {
|
|
736
731
|
x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
737
732
|
y: o.y + e.value.style.chart.plots.indexLabels.offsetY + u.value.indexLabels / 3,
|
|
738
733
|
"font-size": u.value.indexLabels,
|
|
739
734
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
740
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ?
|
|
735
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(dt)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
741
736
|
"text-anchor": "middle",
|
|
742
|
-
class:
|
|
737
|
+
class: F({ animated: e.value.useCssAnimation }),
|
|
743
738
|
style: M({
|
|
744
739
|
opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
|
|
745
740
|
transition: "opacity 0.2s ease-in-out"
|
|
746
741
|
})
|
|
747
|
-
},
|
|
742
|
+
}, z(e.value.style.chart.plots.indexLabels.startAtZero ? _ : _ + 1), 15, tl))), 256))
|
|
748
743
|
])) : v("", !0)
|
|
749
744
|
]))), 256)),
|
|
750
|
-
(s(!0), r(b, null, k(
|
|
751
|
-
(s(!0), r(b, null, k(l.plots, (
|
|
752
|
-
cx:
|
|
753
|
-
cy:
|
|
745
|
+
(s(!0), r(b, null, k(L.value, (l) => (s(), r("g", null, [
|
|
746
|
+
(s(!0), r(b, null, k(l.plots, (c, o) => (s(), r("circle", {
|
|
747
|
+
cx: c.x,
|
|
748
|
+
cy: c.y,
|
|
754
749
|
fill: "transparent",
|
|
755
750
|
r: u.value.plots,
|
|
756
751
|
stroke: "none",
|
|
757
|
-
onMouseenter: (_) =>
|
|
758
|
-
datapoint:
|
|
752
|
+
onMouseenter: (_) => Ke({
|
|
753
|
+
datapoint: c,
|
|
759
754
|
plotIndex: o,
|
|
760
755
|
seriesIndex: l.seriesIndex
|
|
761
756
|
}),
|
|
762
757
|
onMouseleave: a[0] || (a[0] = (_) => {
|
|
763
|
-
|
|
758
|
+
q.value = !1, $.value = null;
|
|
764
759
|
}),
|
|
765
|
-
onClick: () =>
|
|
766
|
-
}, null, 40,
|
|
760
|
+
onClick: () => Ze(c)
|
|
761
|
+
}, null, 40, ll))), 256))
|
|
767
762
|
]))), 256)),
|
|
768
763
|
x(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
769
|
-
], 12,
|
|
770
|
-
t.$slots.watermark ? (s(), r("div",
|
|
771
|
-
x(t.$slots, "watermark",
|
|
764
|
+
], 12, St)) : v("", !0),
|
|
765
|
+
t.$slots.watermark ? (s(), r("div", al, [
|
|
766
|
+
x(t.$slots, "watermark", X(D({ isPrinting: i(de) || i(fe) })), void 0, !0)
|
|
772
767
|
])) : v("", !0),
|
|
773
|
-
w.value ? v("", !0) : (s(),
|
|
768
|
+
w.value ? v("", !0) : (s(), O(i(Xe), {
|
|
774
769
|
key: 6,
|
|
775
770
|
config: {
|
|
776
771
|
type: "historyPlot",
|
|
@@ -782,42 +777,42 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
782
777
|
}
|
|
783
778
|
}
|
|
784
779
|
}, null, 8, ["config"])),
|
|
785
|
-
|
|
780
|
+
S("div", {
|
|
786
781
|
ref_key: "chartLegend",
|
|
787
|
-
ref:
|
|
782
|
+
ref: le
|
|
788
783
|
}, [
|
|
789
|
-
e.value.style.chart.legend.show && w.value ? (s(),
|
|
790
|
-
key: `legend_${
|
|
791
|
-
legendSet:
|
|
792
|
-
config:
|
|
784
|
+
e.value.style.chart.legend.show && w.value ? (s(), O($t, {
|
|
785
|
+
key: `legend_${ae.value}`,
|
|
786
|
+
legendSet: ge.value,
|
|
787
|
+
config: qe.value,
|
|
793
788
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => {
|
|
794
|
-
|
|
789
|
+
me(l.seriesIndex), be(l);
|
|
795
790
|
})
|
|
796
791
|
}, {
|
|
797
|
-
item: m(({ legend: l, index:
|
|
798
|
-
|
|
792
|
+
item: m(({ legend: l, index: c }) => [
|
|
793
|
+
S("div", {
|
|
799
794
|
onClick: (o) => {
|
|
800
|
-
l.segregate(),
|
|
795
|
+
l.segregate(), be(l);
|
|
801
796
|
},
|
|
802
797
|
style: M(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
803
|
-
},
|
|
798
|
+
}, z(l.name), 13, sl)
|
|
804
799
|
]),
|
|
805
800
|
_: 1
|
|
806
801
|
}, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
|
|
807
802
|
key: 1,
|
|
808
|
-
legend:
|
|
803
|
+
legend: ge.value
|
|
809
804
|
}, void 0, !0)
|
|
810
805
|
], 512),
|
|
811
806
|
t.$slots.source ? (s(), r("div", {
|
|
812
807
|
key: 7,
|
|
813
808
|
ref_key: "source",
|
|
814
|
-
ref:
|
|
809
|
+
ref: ne,
|
|
815
810
|
dir: "auto"
|
|
816
811
|
}, [
|
|
817
812
|
x(t.$slots, "source", {}, void 0, !0)
|
|
818
813
|
], 512)) : v("", !0),
|
|
819
|
-
|
|
820
|
-
show: C.value.showTooltip &&
|
|
814
|
+
$e(i(De), {
|
|
815
|
+
show: C.value.showTooltip && q.value,
|
|
821
816
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
822
817
|
color: e.value.style.chart.tooltip.color,
|
|
823
818
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -827,20 +822,20 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
827
822
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
828
823
|
position: e.value.style.chart.tooltip.position,
|
|
829
824
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
830
|
-
parent:
|
|
831
|
-
content:
|
|
832
|
-
isCustom:
|
|
833
|
-
isFullscreen:
|
|
825
|
+
parent: R.value,
|
|
826
|
+
content: Z.value,
|
|
827
|
+
isCustom: W.value,
|
|
828
|
+
isFullscreen: E.value
|
|
834
829
|
}, {
|
|
835
830
|
"tooltip-before": m(() => [
|
|
836
|
-
x(t.$slots, "tooltip-before",
|
|
831
|
+
x(t.$slots, "tooltip-before", X(D({ ...K.value })), void 0, !0)
|
|
837
832
|
]),
|
|
838
833
|
"tooltip-after": m(() => [
|
|
839
|
-
x(t.$slots, "tooltip-after",
|
|
834
|
+
x(t.$slots, "tooltip-after", X(D({ ...K.value })), void 0, !0)
|
|
840
835
|
]),
|
|
841
836
|
_: 3
|
|
842
837
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
843
|
-
w.value ? (s(),
|
|
838
|
+
w.value ? (s(), O(i(Oe), {
|
|
844
839
|
key: 8,
|
|
845
840
|
hideDetails: "",
|
|
846
841
|
config: {
|
|
@@ -857,32 +852,32 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], Tt = ["x", "y", "width", "height"]
|
|
|
857
852
|
}
|
|
858
853
|
}, {
|
|
859
854
|
content: m(() => [
|
|
860
|
-
(s(),
|
|
861
|
-
key: `table_${
|
|
862
|
-
colNames:
|
|
863
|
-
head:
|
|
864
|
-
body:
|
|
865
|
-
config:
|
|
855
|
+
(s(), O(i(Ie), {
|
|
856
|
+
key: `table_${se.value}`,
|
|
857
|
+
colNames: H.value.colNames,
|
|
858
|
+
head: H.value.head,
|
|
859
|
+
body: H.value.body,
|
|
860
|
+
config: H.value.config,
|
|
866
861
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
867
862
|
onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
|
|
868
863
|
}, {
|
|
869
864
|
th: m(({ th: l }) => [
|
|
870
|
-
|
|
865
|
+
S("div", {
|
|
871
866
|
innerHTML: l,
|
|
872
867
|
style: { display: "flex", "align-items": "center" }
|
|
873
|
-
}, null, 8,
|
|
868
|
+
}, null, 8, ol)
|
|
874
869
|
]),
|
|
875
870
|
td: m(({ td: l }) => [
|
|
876
|
-
|
|
871
|
+
st(z(l.name || l), 1)
|
|
877
872
|
]),
|
|
878
873
|
_: 1
|
|
879
874
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
880
875
|
]),
|
|
881
876
|
_: 1
|
|
882
877
|
}, 8, ["config"])) : v("", !0)
|
|
883
|
-
], 46,
|
|
878
|
+
], 46, Tt));
|
|
884
879
|
}
|
|
885
|
-
},
|
|
880
|
+
}, pl = /* @__PURE__ */ At(rl, [["__scopeId", "data-v-f41b6552"]]);
|
|
886
881
|
export {
|
|
887
|
-
|
|
882
|
+
pl as default
|
|
888
883
|
};
|