vue-data-ui 2.16.5 → 2.17.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 +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { t as
|
|
6
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as O, ref as h, shallowRef as Se, computed as f, onMounted as lt, onBeforeUnmount as at, watch as st, createElementBlock as r, openBlock as o, unref as i, normalizeStyle as $, normalizeClass as I, renderSlot as x, createBlock as P, createCommentVNode as v, createElementVNode as M, createVNode as Ae, createSlots as ot, withCtx as m, normalizeProps as Y, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as z, createTextVNode as rt, nextTick as nt } from "vue";
|
|
2
|
+
import { u as ut, c as Me, o as it, e as ze, g as ct, b as vt, d as ht, p as G, D as Te, i as j, f as B, X as yt, l as dt, h as ft, I as xt, F as pt, E as F, t as mt, a as gt, C as q, q as bt, r as kt, x as wt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as Le } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as Ct } from "./usePrinter-DDHcrl0A.js";
|
|
5
|
+
import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
|
|
6
|
+
import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
8
|
+
import Mt from "./Legend-Bxlv67uY.js";
|
|
9
|
+
import zt from "./Title-B-2bV0SW.js";
|
|
10
|
+
import Tt from "./img-Y_hYz-ZC.js";
|
|
11
|
+
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Nt = ["id"], Ot = ["xmlns", "viewBox"], It = ["x", "y", "width", "height"], Pt = { key: 1 }, Ft = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], Dt = ["stop-color"], jt = { key: 2 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 3 }, Ht = ["x", "y", "fill", "font-size"], Rt = ["transform", "font-size", "fill", "font-weight"], Ut = { key: 5 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = { key: 6 }, Gt = ["transform", "fill", "font-size", "text-anchor"], qt = ["x", "y", "font-size", "fill", "font-weight"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["d", "stroke", "stroke-width"], Qt = ["d", "stroke", "stroke-width"], el = ["cx", "cy", "fill", "r"], tl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], ll = { key: 1 }, al = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], ol = { key: 2 }, rl = ["x", "y", "font-size", "font-weight", "fill"], nl = ["cx", "cy", "r", "onMouseenter", "onClick"], ul = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, il = ["onClick"], cl = ["innerHTML"], vl = {
|
|
15
16
|
__name: "vue-ui-history-plot",
|
|
16
17
|
props: {
|
|
17
18
|
config: {
|
|
@@ -28,22 +29,22 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
emits: ["selectLegend", "selectDatapoint"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
32
|
+
setup(Ne, { expose: Oe, emit: Ie }) {
|
|
33
|
+
const Pe = O(() => import("./vue-ui-accordion-CVnA550V.js")), Fe = O(() => import("./DataTable-D0VYDhfx.js")), Xe = O(() => import("./PackageVersion-5TR4ocqp.js")), Ye = O(() => import("./PenAndPaper-D6AqipIO.js")), De = O(() => import("./vue-ui-skeleton-DJPjyNYn.js")), je = O(() => import("./Tooltip-CoQnTnr-.js")), Be = O(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_history_plot: Ee } = ut(), y = Ne, T = h(null), te = h(null), le = h(0), ae = h(null), se = h(0), oe = h(0), re = h(0), S = Se(null), X = Se(null), ne = h(null), E = h(Me()), Z = h(!1), J = h(""), g = h([]), R = h(!1), w = h(null), H = h(!1), ue = h(null), C = f({
|
|
33
34
|
get: () => !!y.dataset && y.dataset.length,
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), ie =
|
|
36
|
-
|
|
36
|
+
}), ie = Ie;
|
|
37
|
+
lt(ce);
|
|
37
38
|
function ce() {
|
|
38
|
-
if (
|
|
39
|
+
if (it(y.dataset) ? ze({
|
|
39
40
|
componentName: "VueUiHistoryPlot",
|
|
40
41
|
type: "dataset"
|
|
41
42
|
}) : y.dataset.forEach((t, a) => {
|
|
42
|
-
|
|
43
|
+
ct({
|
|
43
44
|
datasetObject: t,
|
|
44
45
|
requiredAttributes: ["name", "values"]
|
|
45
46
|
}).forEach((l) => {
|
|
46
|
-
C.value = !1,
|
|
47
|
+
C.value = !1, ze({
|
|
47
48
|
componentName: "VueUiHistoryPlot",
|
|
48
49
|
type: "datasetSerieAttribute",
|
|
49
50
|
property: l,
|
|
@@ -51,52 +52,52 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
51
52
|
});
|
|
52
53
|
});
|
|
53
54
|
}), e.value.responsive) {
|
|
54
|
-
const t =
|
|
55
|
-
const { width: a, height: l } =
|
|
56
|
-
chart:
|
|
55
|
+
const t = _t(() => {
|
|
56
|
+
const { width: a, height: l } = $t({
|
|
57
|
+
chart: T.value,
|
|
57
58
|
title: e.value.style.chart.title.text ? te.value : null,
|
|
58
59
|
noTitle: ne.value,
|
|
59
60
|
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
60
61
|
source: ue.value
|
|
61
62
|
});
|
|
62
63
|
requestAnimationFrame(() => {
|
|
63
|
-
d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots =
|
|
64
|
+
d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
|
|
64
65
|
relator: Math.min(a, l),
|
|
65
66
|
adjuster: 600,
|
|
66
67
|
source: e.value.style.chart.plots.radius,
|
|
67
68
|
threshold: 3,
|
|
68
69
|
fallback: 3
|
|
69
|
-
}), n.value.indexLabels =
|
|
70
|
+
}), n.value.indexLabels = F({
|
|
70
71
|
relator: Math.min(a, l),
|
|
71
72
|
adjuster: 600,
|
|
72
73
|
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
73
74
|
threshold: 6,
|
|
74
75
|
fallback: 6
|
|
75
|
-
}), n.value.labels =
|
|
76
|
+
}), n.value.labels = F({
|
|
76
77
|
relator: Math.min(a, l),
|
|
77
78
|
adjuster: 600,
|
|
78
79
|
source: e.value.style.chart.plots.labels.fontSize,
|
|
79
80
|
threshold: 6,
|
|
80
81
|
fallback: 6
|
|
81
|
-
}), n.value.xAxisLabels =
|
|
82
|
+
}), n.value.xAxisLabels = F({
|
|
82
83
|
relator: Math.min(a, l),
|
|
83
84
|
adjuster: 600,
|
|
84
85
|
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
85
86
|
threshold: 6,
|
|
86
87
|
fallback: 6
|
|
87
|
-
}), n.value.xAxisName =
|
|
88
|
+
}), n.value.xAxisName = F({
|
|
88
89
|
relator: Math.min(a, l),
|
|
89
90
|
adjuster: 600,
|
|
90
91
|
source: e.value.style.chart.axes.x.name.fontSize,
|
|
91
92
|
threshold: 6,
|
|
92
93
|
fallback: 6
|
|
93
|
-
}), n.value.yAxisLabels =
|
|
94
|
+
}), n.value.yAxisLabels = F({
|
|
94
95
|
relator: Math.min(a, l),
|
|
95
96
|
adjuster: 600,
|
|
96
97
|
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
97
98
|
threshold: 6,
|
|
98
99
|
fallback: 6
|
|
99
|
-
}), n.value.yAxisName =
|
|
100
|
+
}), n.value.yAxisName = F({
|
|
100
101
|
relator: Math.min(a, l),
|
|
101
102
|
adjuster: 600,
|
|
102
103
|
source: e.value.style.chart.axes.y.name.fontSize,
|
|
@@ -105,38 +106,38 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
105
106
|
})) : (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);
|
|
106
107
|
});
|
|
107
108
|
});
|
|
108
|
-
|
|
109
|
+
S.value && (X.value && S.value.unobserve(X.value), S.value.disconnect()), S.value = new ResizeObserver(t), X.value = T.value.parentNode, S.value.observe(X.value);
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
at(() => {
|
|
113
|
+
S.value && (X.value && S.value.unobserve(X.value), S.value.disconnect());
|
|
113
114
|
});
|
|
114
115
|
function ve() {
|
|
115
|
-
const t =
|
|
116
|
+
const t = Le({
|
|
116
117
|
userConfig: y.config,
|
|
117
|
-
defaultConfig:
|
|
118
|
+
defaultConfig: Ee
|
|
118
119
|
});
|
|
119
120
|
let a = {};
|
|
120
121
|
return t.theme ? a = {
|
|
121
|
-
...
|
|
122
|
-
userConfig:
|
|
122
|
+
...Le({
|
|
123
|
+
userConfig: gt.vue_ui_history_plot[t.theme] || y.config,
|
|
123
124
|
defaultConfig: t
|
|
124
125
|
}),
|
|
125
|
-
customPalette:
|
|
126
|
+
customPalette: mt[t.theme] || G
|
|
126
127
|
} : a = t, y.config && q(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 && q(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 && q(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 && q(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;
|
|
127
128
|
}
|
|
128
129
|
const e = f({
|
|
129
130
|
get: () => ve(),
|
|
130
131
|
set: (t) => t
|
|
131
|
-
}), { userOptionsVisible: K, setUserOptionsVisibility: he, keepUserOptionState: ye } =
|
|
132
|
-
|
|
132
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: he, keepUserOptionState: ye } = St({ config: e.value }), { svgRef: de } = At({ config: e.value.style.chart.title });
|
|
133
|
+
st(() => y.config, (t) => {
|
|
133
134
|
e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), le.value += 1, oe.value += 1, se.value += 1, d.value.height = e.value.style.chart.height, d.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, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
134
135
|
}, { deep: !0 });
|
|
135
|
-
const { isPrinting: fe, isImaging: xe, generatePdf: pe, generateImage: me } =
|
|
136
|
-
elementId: `history_plot_${
|
|
136
|
+
const { isPrinting: fe, isImaging: xe, generatePdf: pe, generateImage: me } = Ct({
|
|
137
|
+
elementId: `history_plot_${E.value}`,
|
|
137
138
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
138
139
|
options: e.value.userOptions.print
|
|
139
|
-
}), He = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = f(() =>
|
|
140
|
+
}), He = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = f(() => vt(e.value.customPalette)), _ = h({
|
|
140
141
|
showTable: e.value.table.show,
|
|
141
142
|
showTooltip: e.value.style.chart.tooltip.show
|
|
142
143
|
}), d = h({
|
|
@@ -160,26 +161,26 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
160
161
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
161
162
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
162
163
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
163
|
-
}),
|
|
164
|
+
}), A = f(() => C.value ? y.dataset.map((t, a) => ({
|
|
164
165
|
...t,
|
|
165
|
-
color: t.color ?
|
|
166
|
+
color: t.color ? ht(t.color) : Re.value[a] || G[a] || G[a % G.length],
|
|
166
167
|
seriesIndex: a
|
|
167
|
-
})) : []),
|
|
168
|
+
})) : []), Ue = f(() => C.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), We = f(() => {
|
|
168
169
|
if (!C.value) return 1;
|
|
169
|
-
const t = Math.min(...
|
|
170
|
+
const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
170
171
|
return t < 0 ? t : 0;
|
|
171
|
-
}),
|
|
172
|
+
}), Ve = f(() => C.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ge = f(() => {
|
|
172
173
|
if (!C.value) return 1;
|
|
173
|
-
const t = Math.min(...
|
|
174
|
+
const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
174
175
|
return t < 0 ? t : 0;
|
|
175
176
|
}), p = f(() => {
|
|
176
|
-
const t =
|
|
177
|
+
const t = Te(
|
|
177
178
|
e.value.style.chart.axes.x.scaleMin === null ? We.value : e.value.style.chart.axes.x.scaleMin,
|
|
178
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
179
|
+
e.value.style.chart.axes.x.scaleMax === null ? Ue.value : e.value.style.chart.axes.x.scaleMax,
|
|
179
180
|
e.value.style.chart.axes.x.ticks
|
|
180
|
-
), a =
|
|
181
|
-
e.value.style.chart.axes.y.scaleMin === null ?
|
|
182
|
-
e.value.style.chart.axes.y.scaleMax === null ?
|
|
181
|
+
), a = Te(
|
|
182
|
+
e.value.style.chart.axes.y.scaleMin === null ? Ge.value : e.value.style.chart.axes.y.scaleMin,
|
|
183
|
+
e.value.style.chart.axes.y.scaleMax === null ? Ve.value : e.value.style.chart.axes.y.scaleMax,
|
|
183
184
|
e.value.style.chart.axes.y.ticks
|
|
184
185
|
);
|
|
185
186
|
return {
|
|
@@ -199,24 +200,24 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
199
200
|
}))
|
|
200
201
|
};
|
|
201
202
|
});
|
|
202
|
-
function
|
|
203
|
+
function qe(t) {
|
|
203
204
|
const a = p.value.x.min < 0 ? Math.abs(p.value.x.min) : p.value.x.min > 0 ? -p.value.x.min : 0;
|
|
204
205
|
return u.value.left + ((t || 0) + a) / (p.value.x.max + a) * u.value.width;
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
+
function Ze(t) {
|
|
207
208
|
const a = p.value.y.min < 0 ? Math.abs(p.value.y.min) : p.value.y.min > 0 ? -p.value.y.min : 0;
|
|
208
209
|
return u.value.bottom - ((t || 0) + a) / (p.value.y.max + a) * u.value.height;
|
|
209
210
|
}
|
|
210
|
-
const
|
|
211
|
-
const l = t.values.map((s,
|
|
211
|
+
const L = f(() => A.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
|
|
212
|
+
const l = t.values.map((s, N) => ({
|
|
212
213
|
valueX: s.x,
|
|
213
214
|
valueY: s.y,
|
|
214
215
|
label: s.label,
|
|
215
|
-
x:
|
|
216
|
-
y:
|
|
216
|
+
x: qe(s.x),
|
|
217
|
+
y: Ze(s.y),
|
|
217
218
|
color: t.color,
|
|
218
219
|
seriesName: t.name,
|
|
219
|
-
id:
|
|
220
|
+
id: Me()
|
|
220
221
|
})), c = l.map((s) => `${s.x},${s.y} `).join("").trim();
|
|
221
222
|
return {
|
|
222
223
|
...t,
|
|
@@ -224,16 +225,16 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
224
225
|
path: `M${c}`
|
|
225
226
|
};
|
|
226
227
|
}));
|
|
227
|
-
function
|
|
228
|
-
|
|
228
|
+
function ge(t) {
|
|
229
|
+
g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
|
|
229
230
|
}
|
|
230
|
-
const
|
|
231
|
+
const be = f(() => A.value.map((t) => ({
|
|
231
232
|
...t,
|
|
232
|
-
opacity:
|
|
233
|
-
segregate: () =>
|
|
234
|
-
isSegregated:
|
|
233
|
+
opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
234
|
+
segregate: () => ge(t.seriesIndex),
|
|
235
|
+
isSegregated: g.value.includes(t.seriesIndex),
|
|
235
236
|
shape: "circle"
|
|
236
|
-
}))),
|
|
237
|
+
}))), Je = f(() => ({
|
|
237
238
|
cy: "history-plot-div-legend",
|
|
238
239
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
239
240
|
color: e.value.style.chart.legend.color,
|
|
@@ -241,7 +242,7 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
241
242
|
paddingBottom: 12,
|
|
242
243
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
243
244
|
}));
|
|
244
|
-
function
|
|
245
|
+
function Ke(t) {
|
|
245
246
|
ie("selectDatapoint", t);
|
|
246
247
|
}
|
|
247
248
|
function ke(t) {
|
|
@@ -251,41 +252,41 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
251
252
|
opacity: t.isSegregated ? 1 : 0.5
|
|
252
253
|
});
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
255
|
+
function we(t) {
|
|
256
|
+
R.value = t, re.value += 1;
|
|
256
257
|
}
|
|
257
258
|
const Q = h(null);
|
|
258
259
|
function Qe({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
259
|
-
Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series:
|
|
260
|
+
Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: A.value }, w.value = t;
|
|
260
261
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
261
|
-
if (
|
|
262
|
+
if (H.value = !1, wt(c))
|
|
262
263
|
try {
|
|
263
264
|
const s = c({
|
|
264
265
|
seriesIndex: l,
|
|
265
266
|
datapoint: t,
|
|
266
267
|
plotIndex: a,
|
|
267
|
-
series:
|
|
268
|
+
series: A.value,
|
|
268
269
|
config: e.value
|
|
269
270
|
});
|
|
270
|
-
typeof s == "string" && (J.value = s,
|
|
271
|
+
typeof s == "string" && (J.value = s, H.value = !0);
|
|
271
272
|
} catch {
|
|
272
|
-
console.warn("Custom format cannot be applied."),
|
|
273
|
+
console.warn("Custom format cannot be applied."), H.value = !1;
|
|
273
274
|
}
|
|
274
|
-
if (!
|
|
275
|
+
if (!H.value) {
|
|
275
276
|
let s = "";
|
|
276
|
-
s += `<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>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${
|
|
277
|
+
s += `<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>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${j(
|
|
277
278
|
e.value.style.chart.axes.x.labels.formatter,
|
|
278
279
|
t.valueX,
|
|
279
|
-
|
|
280
|
+
B({
|
|
280
281
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
281
282
|
v: t.valueX,
|
|
282
283
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
283
284
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
284
285
|
})
|
|
285
|
-
)}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${
|
|
286
|
+
)}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${j(
|
|
286
287
|
e.value.style.chart.axes.y.labels.formatter,
|
|
287
288
|
t.valueY,
|
|
288
|
-
|
|
289
|
+
B({
|
|
289
290
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
290
291
|
v: t.valueY,
|
|
291
292
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -295,36 +296,36 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
295
296
|
}
|
|
296
297
|
Z.value = !0;
|
|
297
298
|
}
|
|
298
|
-
f(() => ({ head:
|
|
299
|
+
f(() => ({ head: L.value.map((a) => ({
|
|
299
300
|
name: a.name,
|
|
300
301
|
color: a.color
|
|
301
302
|
})) }));
|
|
302
|
-
const
|
|
303
|
+
const U = f(() => {
|
|
303
304
|
const t = [
|
|
304
305
|
e.value.table.columnNames.series,
|
|
305
306
|
e.value.table.columnNames.datapoint,
|
|
306
307
|
e.value.table.columnNames.x,
|
|
307
308
|
e.value.table.columnNames.y
|
|
308
|
-
], a =
|
|
309
|
+
], a = L.value.flatMap((c) => c.plots.map((s) => [
|
|
309
310
|
{
|
|
310
311
|
color: s.color,
|
|
311
312
|
name: s.seriesName
|
|
312
313
|
},
|
|
313
314
|
s.label,
|
|
314
|
-
|
|
315
|
+
j(
|
|
315
316
|
e.value.style.chart.axes.x.labels.formatter,
|
|
316
317
|
s.valueX,
|
|
317
|
-
|
|
318
|
+
B({
|
|
318
319
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
319
320
|
v: s.valueX,
|
|
320
321
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
321
322
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
322
323
|
})
|
|
323
324
|
),
|
|
324
|
-
|
|
325
|
+
j(
|
|
325
326
|
e.value.style.chart.axes.y.labels.formatter,
|
|
326
327
|
s.valueY,
|
|
327
|
-
|
|
328
|
+
B({
|
|
328
329
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
329
330
|
v: s.valueY,
|
|
330
331
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -351,14 +352,14 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
351
352
|
colNames: t
|
|
352
353
|
};
|
|
353
354
|
});
|
|
354
|
-
function
|
|
355
|
-
|
|
355
|
+
function Ce(t = null) {
|
|
356
|
+
nt(() => {
|
|
356
357
|
const a = [
|
|
357
358
|
[e.value.table.columnNames.series],
|
|
358
359
|
[e.value.table.columnNames.datapoint],
|
|
359
360
|
[e.value.table.columnNames.x],
|
|
360
361
|
[e.value.table.columnNames.y]
|
|
361
|
-
], l =
|
|
362
|
+
], l = L.value.flatMap((N) => N.plots.map((V) => [
|
|
362
363
|
[V.seriesName],
|
|
363
364
|
[V.label],
|
|
364
365
|
[V.valueX],
|
|
@@ -368,49 +369,56 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
368
369
|
[e.value.style.chart.title.subtitle.text],
|
|
369
370
|
a
|
|
370
371
|
].concat(l), s = bt(c);
|
|
371
|
-
t ? t(s) :
|
|
372
|
+
t ? t(s) : kt({
|
|
372
373
|
csvContent: s,
|
|
373
374
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
374
375
|
});
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
|
-
const
|
|
378
|
+
const W = h(!1);
|
|
378
379
|
function ee() {
|
|
379
|
-
|
|
380
|
+
W.value = !W.value;
|
|
380
381
|
}
|
|
381
|
-
function
|
|
382
|
+
function _e() {
|
|
382
383
|
_.value.showTable = !_.value.showTable;
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
+
function $e() {
|
|
385
386
|
_.value.showTooltip = !_.value.showTooltip;
|
|
386
387
|
}
|
|
387
388
|
function et() {
|
|
388
|
-
return
|
|
389
|
+
return L.value;
|
|
390
|
+
}
|
|
391
|
+
async function tt({ scale: t = 2 } = {}) {
|
|
392
|
+
if (!T.value) return;
|
|
393
|
+
const { imageUri: a, base64: l } = await Tt({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
394
|
+
return { imageUri: a, base64: l };
|
|
389
395
|
}
|
|
390
|
-
return
|
|
396
|
+
return Oe({
|
|
391
397
|
getData: et,
|
|
398
|
+
getImage: tt,
|
|
392
399
|
generatePdf: pe,
|
|
393
|
-
generateCsv:
|
|
400
|
+
generateCsv: Ce,
|
|
394
401
|
generateImage: me,
|
|
395
|
-
toggleTable:
|
|
396
|
-
toggleTooltip:
|
|
397
|
-
toggleAnnotator: ee
|
|
402
|
+
toggleTable: _e,
|
|
403
|
+
toggleTooltip: $e,
|
|
404
|
+
toggleAnnotator: ee,
|
|
405
|
+
toggleFullscreen: we
|
|
398
406
|
}), (t, a) => (o(), r("div", {
|
|
399
|
-
id: `history_plot_${
|
|
407
|
+
id: `history_plot_${E.value}`,
|
|
400
408
|
ref_key: "historyPlotChart",
|
|
401
|
-
ref:
|
|
402
|
-
class:
|
|
409
|
+
ref: T,
|
|
410
|
+
class: I({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": R.value }),
|
|
403
411
|
style: $(`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%" : ""}`),
|
|
404
412
|
onMouseenter: a[3] || (a[3] = () => i(he)(!0)),
|
|
405
413
|
onMouseleave: a[4] || (a[4] = () => i(he)(!1))
|
|
406
414
|
}, [
|
|
407
415
|
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
408
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
416
|
+
e.value.userOptions.buttons.annotator ? (o(), P(i(Ye), {
|
|
409
417
|
key: 0,
|
|
410
418
|
svgRef: i(de),
|
|
411
419
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
412
420
|
color: e.value.style.chart.color,
|
|
413
|
-
active:
|
|
421
|
+
active: W.value,
|
|
414
422
|
onClose: ee
|
|
415
423
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
416
424
|
He.value ? (o(), r("div", {
|
|
@@ -427,7 +435,7 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
427
435
|
class: "vue-ui-xy-title",
|
|
428
436
|
style: $(`font-family:${e.value.style.fontFamily}`)
|
|
429
437
|
}, [
|
|
430
|
-
(o(),
|
|
438
|
+
(o(), P(zt, {
|
|
431
439
|
key: `title_${le.value}`,
|
|
432
440
|
config: {
|
|
433
441
|
title: {
|
|
@@ -441,14 +449,14 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
441
449
|
}
|
|
442
450
|
}, null, 8, ["config"]))
|
|
443
451
|
], 4)) : v("", !0),
|
|
444
|
-
e.value.userOptions.show && C.value && (i(ye) || i(K)) ? (o(),
|
|
452
|
+
e.value.userOptions.show && C.value && (i(ye) || i(K)) ? (o(), P(i(Be), {
|
|
445
453
|
ref: "details",
|
|
446
454
|
key: `user_option_${re.value}`,
|
|
447
455
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
448
456
|
color: e.value.style.chart.color,
|
|
449
457
|
isPrinting: i(fe),
|
|
450
458
|
isImaging: i(xe),
|
|
451
|
-
uid:
|
|
459
|
+
uid: E.value,
|
|
452
460
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
453
461
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
454
462
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -456,29 +464,30 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
456
464
|
hasTable: e.value.userOptions.buttons.table,
|
|
457
465
|
hasLabel: !1,
|
|
458
466
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
459
|
-
isFullscreen:
|
|
460
|
-
chartElement:
|
|
467
|
+
isFullscreen: R.value,
|
|
468
|
+
chartElement: T.value,
|
|
461
469
|
position: e.value.userOptions.position,
|
|
462
470
|
isTooltip: _.value.showTooltip,
|
|
463
471
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
464
472
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
465
|
-
isAnnotation:
|
|
473
|
+
isAnnotation: W.value,
|
|
466
474
|
callbacks: e.value.userOptions.callbacks,
|
|
467
|
-
|
|
475
|
+
printScale: e.value.userOptions.print.scale,
|
|
476
|
+
onToggleFullscreen: we,
|
|
468
477
|
onGeneratePdf: i(pe),
|
|
469
|
-
onGenerateCsv:
|
|
478
|
+
onGenerateCsv: Ce,
|
|
470
479
|
onGenerateImage: i(me),
|
|
471
|
-
onToggleTable:
|
|
472
|
-
onToggleTooltip:
|
|
480
|
+
onToggleTable: _e,
|
|
481
|
+
onToggleTooltip: $e,
|
|
473
482
|
onToggleAnnotator: ee,
|
|
474
483
|
style: $({
|
|
475
484
|
visibility: i(ye) ? i(K) ? "visible" : "hidden" : "visible"
|
|
476
485
|
})
|
|
477
|
-
},
|
|
486
|
+
}, ot({ _: 2 }, [
|
|
478
487
|
t.$slots.menuIcon ? {
|
|
479
488
|
name: "menuIcon",
|
|
480
489
|
fn: m(({ isOpen: l, color: c }) => [
|
|
481
|
-
x(t.$slots, "menuIcon",
|
|
490
|
+
x(t.$slots, "menuIcon", Y(D({ isOpen: l, color: c })), void 0, !0)
|
|
482
491
|
]),
|
|
483
492
|
key: "0"
|
|
484
493
|
} : void 0,
|
|
@@ -520,27 +529,27 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
520
529
|
t.$slots.optionFullscreen ? {
|
|
521
530
|
name: "optionFullscreen",
|
|
522
531
|
fn: m(({ toggleFullscreen: l, isFullscreen: c }) => [
|
|
523
|
-
x(t.$slots, "optionFullscreen",
|
|
532
|
+
x(t.$slots, "optionFullscreen", Y(D({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
|
|
524
533
|
]),
|
|
525
534
|
key: "6"
|
|
526
535
|
} : void 0,
|
|
527
536
|
t.$slots.optionAnnotator ? {
|
|
528
537
|
name: "optionAnnotator",
|
|
529
538
|
fn: m(({ toggleAnnotator: l, isAnnotator: c }) => [
|
|
530
|
-
x(t.$slots, "optionAnnotator",
|
|
539
|
+
x(t.$slots, "optionAnnotator", Y(D({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
|
|
531
540
|
]),
|
|
532
541
|
key: "7"
|
|
533
542
|
} : void 0
|
|
534
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
543
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
535
544
|
C.value ? (o(), r("svg", {
|
|
536
545
|
key: 4,
|
|
537
546
|
ref_key: "svgRef",
|
|
538
547
|
ref: de,
|
|
539
|
-
xmlns: i(
|
|
548
|
+
xmlns: i(yt),
|
|
540
549
|
viewBox: `0 0 ${d.value.width < 0 ? 0.1 : d.value.width} ${d.value.height < 0 ? 0.1 : d.value.height}`,
|
|
541
550
|
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
542
551
|
}, [
|
|
543
|
-
Ae(i(
|
|
552
|
+
Ae(i(Xe)),
|
|
544
553
|
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
545
554
|
key: 0,
|
|
546
555
|
x: u.value.left,
|
|
@@ -552,28 +561,28 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
552
561
|
}
|
|
553
562
|
}, [
|
|
554
563
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
555
|
-
], 8,
|
|
556
|
-
e.value.style.chart.plots.gradient.show ? (o(), r("defs",
|
|
557
|
-
(o(!0), r(
|
|
558
|
-
id: `gradient_${c}_${
|
|
564
|
+
], 8, It)) : v("", !0),
|
|
565
|
+
e.value.style.chart.plots.gradient.show ? (o(), r("defs", Pt, [
|
|
566
|
+
(o(!0), r(b, null, k(L.value, (l, c) => (o(), r("radialGradient", {
|
|
567
|
+
id: `gradient_${c}_${E.value}`,
|
|
559
568
|
fy: "30%"
|
|
560
569
|
}, [
|
|
561
570
|
M("stop", {
|
|
562
571
|
offset: "10%",
|
|
563
|
-
"stop-color": i(
|
|
564
|
-
}, null, 8,
|
|
572
|
+
"stop-color": i(dt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
573
|
+
}, null, 8, Xt),
|
|
565
574
|
M("stop", {
|
|
566
575
|
offset: "90%",
|
|
567
|
-
"stop-color": i(
|
|
568
|
-
}, null, 8,
|
|
576
|
+
"stop-color": i(ft)(l.color, 0.1)
|
|
577
|
+
}, null, 8, Yt),
|
|
569
578
|
M("stop", {
|
|
570
579
|
offset: "100%",
|
|
571
580
|
"stop-color": l.color
|
|
572
|
-
}, null, 8,
|
|
573
|
-
], 8,
|
|
581
|
+
}, null, 8, Dt)
|
|
582
|
+
], 8, Ft))), 256))
|
|
574
583
|
])) : v("", !0),
|
|
575
|
-
e.value.style.chart.grid.verticalLines.show ? (o(), r("g",
|
|
576
|
-
(o(!0), r(
|
|
584
|
+
e.value.style.chart.grid.verticalLines.show ? (o(), r("g", jt, [
|
|
585
|
+
(o(!0), r(b, null, k(p.value.tickX, (l) => (o(), r("line", {
|
|
577
586
|
x1: l.x,
|
|
578
587
|
x2: l.x,
|
|
579
588
|
y1: l.y1,
|
|
@@ -581,25 +590,25 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
581
590
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
582
591
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
583
592
|
"stroke-linecap": "round"
|
|
584
|
-
}, null, 8,
|
|
593
|
+
}, null, 8, Bt))), 256))
|
|
585
594
|
])) : v("", !0),
|
|
586
|
-
e.value.style.chart.axes.y.labels.show ? (o(), r("g",
|
|
587
|
-
(o(!0), r(
|
|
595
|
+
e.value.style.chart.axes.y.labels.show ? (o(), r("g", Et, [
|
|
596
|
+
(o(!0), r(b, null, k(p.value.tickY, (l) => (o(), r("text", {
|
|
588
597
|
x: u.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
|
|
589
598
|
y: l.y + n.value.yAxisLabels / 3,
|
|
590
599
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
591
600
|
"font-size": n.value.yAxisLabels,
|
|
592
601
|
"text-anchor": "end"
|
|
593
|
-
}, z(i(
|
|
602
|
+
}, z(i(j)(
|
|
594
603
|
e.value.style.chart.axes.y.labels.formatter,
|
|
595
604
|
l.value,
|
|
596
|
-
i(
|
|
605
|
+
i(B)({
|
|
597
606
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
598
607
|
v: l.value,
|
|
599
608
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
600
609
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
601
610
|
})
|
|
602
|
-
)), 9,
|
|
611
|
+
)), 9, Ht))), 256))
|
|
603
612
|
])) : v("", !0),
|
|
604
613
|
e.value.style.chart.axes.y.name.text ? (o(), r("text", {
|
|
605
614
|
key: 4,
|
|
@@ -608,9 +617,9 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
608
617
|
fill: e.value.style.chart.axes.y.name.color,
|
|
609
618
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
610
619
|
"text-anchor": "middle"
|
|
611
|
-
}, z(e.value.style.chart.axes.y.name.text), 9,
|
|
612
|
-
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g",
|
|
613
|
-
(o(!0), r(
|
|
620
|
+
}, z(e.value.style.chart.axes.y.name.text), 9, Rt)) : v("", !0),
|
|
621
|
+
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", Ut, [
|
|
622
|
+
(o(!0), r(b, null, k(p.value.tickY, (l) => (o(), r("line", {
|
|
614
623
|
x1: l.x1,
|
|
615
624
|
x2: l.x2,
|
|
616
625
|
y1: l.y,
|
|
@@ -618,24 +627,24 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
618
627
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
619
628
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
620
629
|
"stroke-linecap": "round"
|
|
621
|
-
}, null, 8,
|
|
630
|
+
}, null, 8, Wt))), 256))
|
|
622
631
|
])) : v("", !0),
|
|
623
|
-
e.value.style.chart.axes.x.labels.show ? (o(), r("g",
|
|
624
|
-
(o(!0), r(
|
|
632
|
+
e.value.style.chart.axes.x.labels.show ? (o(), r("g", Vt, [
|
|
633
|
+
(o(!0), r(b, null, k(p.value.tickX, (l) => (o(), r("text", {
|
|
625
634
|
transform: `translate(${l.x}, ${u.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
626
635
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
627
636
|
"font-size": n.value.xAxisLabels,
|
|
628
637
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
629
|
-
}, z(i(
|
|
638
|
+
}, z(i(j)(
|
|
630
639
|
e.value.style.chart.axes.x.labels.formatter,
|
|
631
640
|
l.value,
|
|
632
|
-
i(
|
|
641
|
+
i(B)({
|
|
633
642
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
634
643
|
v: l.value,
|
|
635
644
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
636
645
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
637
646
|
})
|
|
638
|
-
)), 9,
|
|
647
|
+
)), 9, Gt))), 256))
|
|
639
648
|
])) : v("", !0),
|
|
640
649
|
e.value.style.chart.axes.x.name.text ? (o(), r("text", {
|
|
641
650
|
key: 7,
|
|
@@ -645,7 +654,7 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
645
654
|
fill: e.value.style.chart.axes.x.name.color,
|
|
646
655
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
647
656
|
"text-anchor": "middle"
|
|
648
|
-
}, z(e.value.style.chart.axes.x.name.text), 9,
|
|
657
|
+
}, z(e.value.style.chart.axes.x.name.text), 9, qt)) : v("", !0),
|
|
649
658
|
e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
|
|
650
659
|
key: 8,
|
|
651
660
|
x1: u.value.left,
|
|
@@ -655,7 +664,7 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
655
664
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
656
665
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
657
666
|
"stroke-linecap": "round"
|
|
658
|
-
}, null, 8,
|
|
667
|
+
}, null, 8, Zt)) : v("", !0),
|
|
659
668
|
e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
|
|
660
669
|
key: 9,
|
|
661
670
|
x1: u.value.left,
|
|
@@ -665,8 +674,8 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
665
674
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
666
675
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
667
676
|
"stroke-linecap": "round"
|
|
668
|
-
}, null, 8,
|
|
669
|
-
(o(!0), r(
|
|
677
|
+
}, null, 8, Jt)) : v("", !0),
|
|
678
|
+
(o(!0), r(b, null, k(L.value, (l, c) => (o(), r("g", null, [
|
|
670
679
|
e.value.style.chart.paths.show ? (o(), r("g", {
|
|
671
680
|
key: 0,
|
|
672
681
|
style: $({
|
|
@@ -680,8 +689,8 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
680
689
|
fill: "none",
|
|
681
690
|
"stroke-linecap": "round",
|
|
682
691
|
"stroke-linejoin": "round",
|
|
683
|
-
class:
|
|
684
|
-
}, null, 10,
|
|
692
|
+
class: I({ animated: e.value.useCssAnimation })
|
|
693
|
+
}, null, 10, Kt),
|
|
685
694
|
M("path", {
|
|
686
695
|
d: l.path,
|
|
687
696
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
@@ -689,31 +698,31 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
689
698
|
fill: "none",
|
|
690
699
|
"stroke-linecap": "round",
|
|
691
700
|
"stroke-linejoin": "round",
|
|
692
|
-
class:
|
|
693
|
-
}, null, 10,
|
|
701
|
+
class: I({ animated: e.value.useCssAnimation })
|
|
702
|
+
}, null, 10, Qt)
|
|
694
703
|
], 4)) : v("", !0),
|
|
695
|
-
(o(!0), r(
|
|
704
|
+
(o(!0), r(b, null, k(l.plots, (s) => (o(), r("circle", {
|
|
696
705
|
cx: s.x,
|
|
697
706
|
cy: s.y,
|
|
698
707
|
fill: e.value.style.chart.backgroundColor,
|
|
699
708
|
r: n.value.plots,
|
|
700
709
|
stroke: "none"
|
|
701
|
-
}, null, 8,
|
|
702
|
-
(o(!0), r(
|
|
710
|
+
}, null, 8, el))), 256)),
|
|
711
|
+
(o(!0), r(b, null, k(l.plots, (s) => (o(), r("circle", {
|
|
703
712
|
cx: s.x,
|
|
704
713
|
cy: s.y,
|
|
705
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${c}_${
|
|
714
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${c}_${E.value})` : s.color,
|
|
706
715
|
r: n.value.plots,
|
|
707
716
|
stroke: e.value.style.chart.plots.stroke,
|
|
708
717
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
709
|
-
class:
|
|
718
|
+
class: I({ animated: e.value.useCssAnimation }),
|
|
710
719
|
style: $({
|
|
711
720
|
opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
|
|
712
721
|
transition: "opacity 0.2s ease-in-out"
|
|
713
722
|
})
|
|
714
|
-
}, null, 14,
|
|
715
|
-
e.value.style.chart.plots.labels.show ? (o(), r("g",
|
|
716
|
-
(o(!0), r(
|
|
723
|
+
}, null, 14, tl))), 256)),
|
|
724
|
+
e.value.style.chart.plots.labels.show ? (o(), r("g", ll, [
|
|
725
|
+
(o(!0), r(b, null, k(l.plots, (s) => (o(), r("g", null, [
|
|
717
726
|
String(s.label).includes(`
|
|
718
727
|
`) ? (o(), r("text", {
|
|
719
728
|
key: 1,
|
|
@@ -723,19 +732,19 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
723
732
|
fill: e.value.style.chart.plots.labels.color,
|
|
724
733
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
725
734
|
"text-anchor": "middle",
|
|
726
|
-
class:
|
|
735
|
+
class: I({ animated: e.value.useCssAnimation }),
|
|
727
736
|
style: $({
|
|
728
737
|
opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
|
|
729
738
|
transition: "opacity 0.2s ease-in-out"
|
|
730
739
|
}),
|
|
731
|
-
innerHTML: i(
|
|
740
|
+
innerHTML: i(xt)({
|
|
732
741
|
content: String(s.label),
|
|
733
742
|
fontSize: n.value.labels,
|
|
734
743
|
fill: e.value.style.chart.plots.labels.color,
|
|
735
744
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
736
745
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
|
|
737
746
|
})
|
|
738
|
-
}, null, 14,
|
|
747
|
+
}, null, 14, sl)) : (o(), r("text", {
|
|
739
748
|
key: 0,
|
|
740
749
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
741
750
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
@@ -743,54 +752,54 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
743
752
|
fill: e.value.style.chart.plots.labels.color,
|
|
744
753
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
745
754
|
"text-anchor": "middle",
|
|
746
|
-
class:
|
|
755
|
+
class: I({ animated: e.value.useCssAnimation }),
|
|
747
756
|
style: $({
|
|
748
757
|
opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
|
|
749
758
|
transition: "opacity 0.2s ease-in-out"
|
|
750
759
|
})
|
|
751
|
-
}, z(s.label), 15,
|
|
760
|
+
}, z(s.label), 15, al))
|
|
752
761
|
]))), 256))
|
|
753
762
|
])) : v("", !0),
|
|
754
|
-
e.value.style.chart.plots.indexLabels.show ? (o(), r("g",
|
|
755
|
-
(o(!0), r(
|
|
763
|
+
e.value.style.chart.plots.indexLabels.show ? (o(), r("g", ol, [
|
|
764
|
+
(o(!0), r(b, null, k(l.plots, (s, N) => (o(), r("text", {
|
|
756
765
|
x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
757
766
|
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
758
767
|
"font-size": n.value.indexLabels,
|
|
759
768
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
760
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(
|
|
769
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(pt)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
761
770
|
"text-anchor": "middle",
|
|
762
|
-
class:
|
|
771
|
+
class: I({ animated: e.value.useCssAnimation }),
|
|
763
772
|
style: $({
|
|
764
773
|
opacity: w.value === null || w.value.id === s.id ? 1 : 0.3,
|
|
765
774
|
transition: "opacity 0.2s ease-in-out"
|
|
766
775
|
})
|
|
767
|
-
}, z(e.value.style.chart.plots.indexLabels.startAtZero ?
|
|
776
|
+
}, z(e.value.style.chart.plots.indexLabels.startAtZero ? N : N + 1), 15, rl))), 256))
|
|
768
777
|
])) : v("", !0)
|
|
769
778
|
]))), 256)),
|
|
770
|
-
(o(!0), r(
|
|
771
|
-
(o(!0), r(
|
|
779
|
+
(o(!0), r(b, null, k(L.value, (l) => (o(), r("g", null, [
|
|
780
|
+
(o(!0), r(b, null, k(l.plots, (c, s) => (o(), r("circle", {
|
|
772
781
|
cx: c.x,
|
|
773
782
|
cy: c.y,
|
|
774
783
|
fill: "transparent",
|
|
775
784
|
r: n.value.plots,
|
|
776
785
|
stroke: "none",
|
|
777
|
-
onMouseenter: (
|
|
786
|
+
onMouseenter: (N) => Qe({
|
|
778
787
|
datapoint: c,
|
|
779
788
|
plotIndex: s,
|
|
780
789
|
seriesIndex: l.seriesIndex
|
|
781
790
|
}),
|
|
782
|
-
onMouseleave: a[0] || (a[0] = (
|
|
791
|
+
onMouseleave: a[0] || (a[0] = (N) => {
|
|
783
792
|
Z.value = !1, w.value = null;
|
|
784
793
|
}),
|
|
785
|
-
onClick: () =>
|
|
786
|
-
}, null, 40,
|
|
794
|
+
onClick: () => Ke(c)
|
|
795
|
+
}, null, 40, nl))), 256))
|
|
787
796
|
]))), 256)),
|
|
788
797
|
x(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
789
|
-
], 12,
|
|
790
|
-
t.$slots.watermark ? (o(), r("div",
|
|
791
|
-
x(t.$slots, "watermark",
|
|
798
|
+
], 12, Ot)) : v("", !0),
|
|
799
|
+
t.$slots.watermark ? (o(), r("div", ul, [
|
|
800
|
+
x(t.$slots, "watermark", Y(D({ isPrinting: i(fe) || i(xe) })), void 0, !0)
|
|
792
801
|
])) : v("", !0),
|
|
793
|
-
C.value ? v("", !0) : (o(),
|
|
802
|
+
C.value ? v("", !0) : (o(), P(i(De), {
|
|
794
803
|
key: 6,
|
|
795
804
|
config: {
|
|
796
805
|
type: "historyPlot",
|
|
@@ -806,12 +815,12 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
806
815
|
ref_key: "chartLegend",
|
|
807
816
|
ref: ae
|
|
808
817
|
}, [
|
|
809
|
-
e.value.style.chart.legend.show && C.value ? (o(),
|
|
818
|
+
e.value.style.chart.legend.show && C.value ? (o(), P(Mt, {
|
|
810
819
|
key: `legend_${se.value}`,
|
|
811
|
-
legendSet:
|
|
812
|
-
config:
|
|
820
|
+
legendSet: be.value,
|
|
821
|
+
config: Je.value,
|
|
813
822
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => {
|
|
814
|
-
|
|
823
|
+
ge(l.seriesIndex), ke(l);
|
|
815
824
|
})
|
|
816
825
|
}, {
|
|
817
826
|
item: m(({ legend: l, index: c }) => [
|
|
@@ -819,13 +828,13 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
819
828
|
onClick: (s) => {
|
|
820
829
|
l.segregate(), ke(l);
|
|
821
830
|
},
|
|
822
|
-
style: $(`opacity:${
|
|
823
|
-
}, z(l.name), 13,
|
|
831
|
+
style: $(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
832
|
+
}, z(l.name), 13, il)
|
|
824
833
|
]),
|
|
825
834
|
_: 1
|
|
826
835
|
}, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
|
|
827
836
|
key: 1,
|
|
828
|
-
legend:
|
|
837
|
+
legend: be.value
|
|
829
838
|
}, void 0, !0)
|
|
830
839
|
], 512),
|
|
831
840
|
t.$slots.source ? (o(), r("div", {
|
|
@@ -836,7 +845,7 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
836
845
|
}, [
|
|
837
846
|
x(t.$slots, "source", {}, void 0, !0)
|
|
838
847
|
], 512)) : v("", !0),
|
|
839
|
-
Ae(i(
|
|
848
|
+
Ae(i(je), {
|
|
840
849
|
show: _.value.showTooltip && Z.value,
|
|
841
850
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
842
851
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -847,20 +856,20 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
847
856
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
848
857
|
position: e.value.style.chart.tooltip.position,
|
|
849
858
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
850
|
-
parent:
|
|
859
|
+
parent: T.value,
|
|
851
860
|
content: J.value,
|
|
852
|
-
isCustom:
|
|
853
|
-
isFullscreen:
|
|
861
|
+
isCustom: H.value,
|
|
862
|
+
isFullscreen: R.value
|
|
854
863
|
}, {
|
|
855
864
|
"tooltip-before": m(() => [
|
|
856
|
-
x(t.$slots, "tooltip-before",
|
|
865
|
+
x(t.$slots, "tooltip-before", Y(D({ ...Q.value })), void 0, !0)
|
|
857
866
|
]),
|
|
858
867
|
"tooltip-after": m(() => [
|
|
859
|
-
x(t.$slots, "tooltip-after",
|
|
868
|
+
x(t.$slots, "tooltip-after", Y(D({ ...Q.value })), void 0, !0)
|
|
860
869
|
]),
|
|
861
870
|
_: 3
|
|
862
871
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
863
|
-
C.value ? (o(),
|
|
872
|
+
C.value ? (o(), P(i(Pe), {
|
|
864
873
|
key: 8,
|
|
865
874
|
hideDetails: "",
|
|
866
875
|
config: {
|
|
@@ -877,12 +886,12 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
877
886
|
}
|
|
878
887
|
}, {
|
|
879
888
|
content: m(() => [
|
|
880
|
-
(o(),
|
|
889
|
+
(o(), P(i(Fe), {
|
|
881
890
|
key: `table_${oe.value}`,
|
|
882
|
-
colNames:
|
|
883
|
-
head:
|
|
884
|
-
body:
|
|
885
|
-
config:
|
|
891
|
+
colNames: U.value.colNames,
|
|
892
|
+
head: U.value.head,
|
|
893
|
+
body: U.value.body,
|
|
894
|
+
config: U.value.config,
|
|
886
895
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
887
896
|
onClose: a[2] || (a[2] = (l) => _.value.showTable = !1)
|
|
888
897
|
}, {
|
|
@@ -890,19 +899,19 @@ const Tt = ["id"], Lt = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
890
899
|
M("div", {
|
|
891
900
|
innerHTML: l,
|
|
892
901
|
style: { display: "flex", "align-items": "center" }
|
|
893
|
-
}, null, 8,
|
|
902
|
+
}, null, 8, cl)
|
|
894
903
|
]),
|
|
895
904
|
td: m(({ td: l }) => [
|
|
896
|
-
|
|
905
|
+
rt(z(l.name || l), 1)
|
|
897
906
|
]),
|
|
898
907
|
_: 1
|
|
899
908
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
900
909
|
]),
|
|
901
910
|
_: 1
|
|
902
911
|
}, 8, ["config"])) : v("", !0)
|
|
903
|
-
], 46,
|
|
912
|
+
], 46, Nt));
|
|
904
913
|
}
|
|
905
|
-
},
|
|
914
|
+
}, Cl = /* @__PURE__ */ Lt(vl, [["__scopeId", "data-v-e94ed0dc"]]);
|
|
906
915
|
export {
|
|
907
|
-
|
|
916
|
+
Cl as default
|
|
908
917
|
};
|