vue-data-ui 2.13.4 → 2.13.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Cv5RKI2K.js → Arrow-C3OUEgpB.js} +1 -1
- package/dist/{BaseDraggableDialog-CbNaTai1.js → BaseDraggableDialog-DnNYonqn.js} +2 -2
- package/dist/{BaseIcon-B90jg7Eo.js → BaseIcon-BXqxz5Sj.js} +1 -1
- package/dist/{ColorPicker-DrHXo6NB.js → ColorPicker-DoIZhU9b.js} +2 -2
- package/dist/{DataTable-DOdmEVBM.js → DataTable-Bj6Ydy9P.js} +2 -2
- package/dist/{Legend-D7As_VVi.js → Legend-t1_8zs04.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Qe1IsvyR.js → NonSvgPenAndPaper-BpsI9iLs.js} +3 -3
- package/dist/{PackageVersion-CJ0MHPau.js → PackageVersion-BEHb0q4B.js} +2 -2
- package/dist/{PenAndPaper-CsV9xVqP.js → PenAndPaper-X98t5VLX.js} +3 -3
- package/dist/{Shape-CMT3DgWJ.js → Shape-CFhc5s4r.js} +1 -1
- package/dist/{Slicer-kZ-UNW0I.js → Slicer-CUzPIV_Q.js} +161 -161
- package/dist/{SparkTooltip-DgaaFrSC.js → SparkTooltip-DPOcU4g7.js} +1 -1
- package/dist/{Title-Cuxd1Hw4.js → Title-DflHEZT5.js} +1 -1
- package/dist/{Tooltip-nm6v9SvD.js → Tooltip-C3ynHP3c.js} +1 -1
- package/dist/{UserOptions-B4olqrwb.js → UserOptions-C1T-b-S9.js} +2 -2
- package/dist/{dom-to-png-JxvpNdgk.js → dom-to-png-RHCXezBI.js} +1 -1
- package/dist/{img-BrSPXg54.js → img-D0AKqn5i.js} +1 -1
- package/dist/{index-DXfqC_CG.js → index-BEMxBoT7.js} +702 -683
- package/dist/{pdf-CRNRsa97.js → pdf-BMzqplSX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useNestedProp-CUF1PWxQ.js → useNestedProp-B6UPnf4L.js} +1 -1
- package/dist/{usePrinter-DGQh_spY.js → usePrinter-DWaS917G.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-tkhMq-bw.js → vue-data-ui-BfIuGUYs.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dwdfdqch.js → vue-ui-3d-bar-D0q_qgNm.js} +5 -5
- package/dist/{vue-ui-accordion-D-tjbzQS.js → vue-ui-accordion-C7e5Xia0.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZmYWVrS.js → vue-ui-age-pyramid-BsfkR8jg.js} +5 -5
- package/dist/{vue-ui-annotator-DBrXod-O.js → vue-ui-annotator-CW9fvw1T.js} +2 -2
- package/dist/{vue-ui-bullet-ur-PTrPw.js → vue-ui-bullet-DJHysSYg.js} +6 -6
- package/dist/{vue-ui-candlestick-72UivaQY.js → vue-ui-candlestick-CNMTAz8d.js} +96 -96
- package/dist/{vue-ui-carousel-table-CApme8lg.js → vue-ui-carousel-table-BWfzU6Qx.js} +4 -4
- package/dist/{vue-ui-chestnut-jcZZ8cOw.js → vue-ui-chestnut-cCfLknDI.js} +4 -4
- package/dist/{vue-ui-chord-A9jGFNM2.js → vue-ui-chord-DVg1z3y3.js} +7 -7
- package/dist/{vue-ui-circle-pack-DPnOBq40.js → vue-ui-circle-pack-0HQSE9cp.js} +5 -5
- package/dist/{vue-ui-cursor-Cby6-Vrh.js → vue-ui-cursor-ChpHp2H0.js} +2 -2
- package/dist/{vue-ui-dashboard-BGzORkrX.js → vue-ui-dashboard-F6_kHI3r.js} +62 -62
- package/dist/{vue-ui-digits-Dhxd38mc.js → vue-ui-digits-ShTxYTC8.js} +2 -2
- package/dist/{vue-ui-donut-DsFBb3Cl.js → vue-ui-donut-DP9WtSxW.js} +7 -7
- package/dist/{vue-ui-donut-evolution-B-Bo4b4Y.js → vue-ui-donut-evolution-YT5ZJW2Y.js} +320 -313
- package/dist/{vue-ui-dumbbell-EVSJdr9V.js → vue-ui-dumbbell-Bb4XqYRY.js} +6 -6
- package/dist/{vue-ui-flow-Cr1-ETyc.js → vue-ui-flow-C2SPlvhP.js} +6 -6
- package/dist/{vue-ui-funnel-BQ0LckzE.js → vue-ui-funnel-BhrXceny.js} +83 -83
- package/dist/{vue-ui-galaxy-_fwGK1PY.js → vue-ui-galaxy-C0PPYSd-.js} +4 -4
- package/dist/{vue-ui-gauge-BrnOoF9C.js → vue-ui-gauge-D6sNadFY.js} +5 -5
- package/dist/{vue-ui-gizmo-tgjSYkeV.js → vue-ui-gizmo-BC-o1DHn.js} +3 -3
- package/dist/{vue-ui-heatmap-CamaTaei.js → vue-ui-heatmap-B8x1W-nI.js} +6 -6
- package/dist/{vue-ui-history-plot-DSBQu-9Y.js → vue-ui-history-plot-BAyk-3CM.js} +103 -103
- package/dist/{vue-ui-kpi-OCtgONK3.js → vue-ui-kpi-DIE6vcpv.js} +3 -3
- package/dist/{vue-ui-mini-loader--xzmMUNI.js → vue-ui-mini-loader-Cj071PI3.js} +2 -2
- package/dist/{vue-ui-molecule-DnkENzdw.js → vue-ui-molecule-DQO5BDp6.js} +4 -4
- package/dist/{vue-ui-mood-radar-DKP1rjSd.js → vue-ui-mood-radar-BYPd51VJ.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CHwTDQ9J.js → vue-ui-nested-donuts-DTT__aTf.js} +6 -6
- package/dist/{vue-ui-onion-BxaynRPn.js → vue-ui-onion-DoUZQqBZ.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-ohCDDK1Q.js → vue-ui-parallel-coordinate-plot-CjrOQscm.js} +175 -175
- package/dist/{vue-ui-quadrant-DXZsVWe3.js → vue-ui-quadrant-BXLvofYH.js} +7 -7
- package/dist/{vue-ui-quick-chart-C_ofgdSY.js → vue-ui-quick-chart-BWTN2358.js} +464 -457
- package/dist/{vue-ui-radar-CLa2PHHK.js → vue-ui-radar-Dv0eQPcW.js} +6 -6
- package/dist/{vue-ui-rating-GiRUw1Wv.js → vue-ui-rating-zyFM93Tp.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJ1M2Pnc.js → vue-ui-relation-circle-DIBkxk5e.js} +96 -96
- package/dist/{vue-ui-ridgeline-E_7xjHTY.js → vue-ui-ridgeline-B9z-ORep.js} +320 -311
- package/dist/{vue-ui-rings-BiOAND3T.js → vue-ui-rings-jtf8ll5F.js} +7 -7
- package/dist/{vue-ui-scatter-Bai9QSqI.js → vue-ui-scatter-CmvCQImE.js} +7 -7
- package/dist/{vue-ui-skeleton-B2N_3mr0.js → vue-ui-skeleton-7wen4XQb.js} +3 -3
- package/dist/{vue-ui-smiley-DAvm3IGu.js → vue-ui-smiley-DaGSvGIY.js} +2 -2
- package/dist/{vue-ui-spark-trend-D4EwvdX0.js → vue-ui-spark-trend-DRTxC8eE.js} +3 -3
- package/dist/{vue-ui-sparkbar-DM_2iDVI.js → vue-ui-sparkbar-gfE4GIbG.js} +3 -3
- package/dist/{vue-ui-sparkgauge-UW6sVQdV.js → vue-ui-sparkgauge-B4kyaulL.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CF0JPKYB.js → vue-ui-sparkhistogram-BPPiIjWx.js} +4 -4
- package/dist/{vue-ui-sparkline-Dg8j2KTF.js → vue-ui-sparkline-BSs_4MC7.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CqT_oEk7.js → vue-ui-sparkstackbar-DhJKC48a.js} +3 -3
- package/dist/vue-ui-stackbar-Bk7fp_vq.js +1130 -0
- package/dist/{vue-ui-strip-plot-BR66rY0G.js → vue-ui-strip-plot-CiVt2kbg.js} +73 -73
- package/dist/{vue-ui-table-Dk0eXTU9.js → vue-ui-table-fpLjUzPK.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Brldpa0g.js → vue-ui-table-heatmap-H_ryeweZ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxQrZBCR.js → vue-ui-table-sparkline-C1ma6_Ar.js} +4 -4
- package/dist/{vue-ui-thermometer-B_OrqIjE.js → vue-ui-thermometer-Ky-qjFCz.js} +5 -5
- package/dist/{vue-ui-timer-Cz0J-s5D.js → vue-ui-timer-BHYQNvLq.js} +8 -8
- package/dist/{vue-ui-tiremarks-B1B3h-Vi.js → vue-ui-tiremarks-ZvPq6eN_.js} +5 -5
- package/dist/{vue-ui-treemap-CMm6fSIO.js → vue-ui-treemap-NDD1qpZr.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DA2Xpx46.js → vue-ui-vertical-bar-HdSfwFxS.js} +8 -8
- package/dist/{vue-ui-waffle-U3NxGQ3l.js → vue-ui-waffle-CDwAOcMT.js} +7 -7
- package/dist/{vue-ui-wheel-WNOVLYp8.js → vue-ui-wheel-B6kqjg11.js} +5 -5
- package/dist/{vue-ui-word-cloud-_TBCcmAV.js → vue-ui-word-cloud-BTMR_Fap.js} +5 -5
- package/dist/{vue-ui-world-DREkLtrD.js → vue-ui-world-CJ85QHjo.js} +5 -5
- package/dist/{vue-ui-xy-CIiqKrxF.js → vue-ui-xy-BlRRpP-g.js} +680 -668
- package/dist/{vue-ui-xy-canvas-ClHv-Wlu.js → vue-ui-xy-canvas-C6my3Rhf.js} +398 -390
- package/package.json +1 -1
- package/dist/vue-ui-stackbar-By7DVfJV.js +0 -1132
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as S, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { t as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as S, computed as f, ref as i, shallowRef as Ve, onMounted as Lt, onBeforeUnmount as Nt, watch as Be, createElementBlock as n, openBlock as r, unref as u, normalizeStyle as M, normalizeClass as q, createBlock as P, createCommentVNode as c, renderSlot as p, createElementVNode as d, createSlots as Ue, withCtx as m, normalizeProps as J, guardReactiveProps as K, createVNode as Ge, Fragment as g, renderList as A, mergeProps as We, toDisplayString as H, createTextVNode as je, nextTick as Ft } from "vue";
|
|
2
|
+
import { u as Dt, c as ve, o as It, e as he, g as Ye, b as Rt, d as Xt, p as Q, al as qe, a8 as Et, T as Je, U as Ht, V as Vt, X as Bt, G as Ut, i as Z, f as ee, t as Gt, a as Wt, q as jt, r as Yt, J as qt } from "./index-BEMxBoT7.js";
|
|
3
|
+
import { u as Jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as Kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import { u as Qt } from "./usePrinter-DWaS917G.js";
|
|
6
|
+
import { t as Zt, u as el } from "./useResponsive-JZ9xq-JV.js";
|
|
7
|
+
import { u as Ke } from "./useNestedProp-B6UPnf4L.js";
|
|
8
|
+
import tl from "./Legend-t1_8zs04.js";
|
|
9
|
+
import ll from "./Title-DflHEZT5.js";
|
|
10
|
+
import { _ as al } from "./Shape-CFhc5s4r.js";
|
|
11
|
+
import { u as sl } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
|
+
import { _ as ol } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"], cl = ["stop-color"], vl = ["stop-color"], hl = ["stop-color"], dl = ["id"], yl = ["stop-color"], fl = ["stop-color"], gl = ["stop-color"], pl = ["stop-color"], ml = { key: 0 }, bl = ["fill", "d"], xl = ["stroke", "stroke-width", "d"], kl = ["fill", "d"], Al = ["stroke", "stroke-dasharray", "stroke-width", "d"], Cl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], wl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], $l = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], _l = { key: 0 }, Ml = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Pl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Sl = ["x", "y", "text-anchor", "font-size", "fill"], zl = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Ll = ["onClick"], Nl = ["innerHTML"], Fl = {
|
|
16
17
|
__name: "vue-ui-ridgeline",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -29,61 +30,61 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
33
|
+
setup(Qe, { expose: Ze, emit: et }) {
|
|
34
|
+
const tt = S(() => import("./vue-ui-accordion-C7e5Xia0.js")), lt = S(() => import("./BaseDraggableDialog-DnNYonqn.js")), at = S(() => import("./DataTable-Bj6Ydy9P.js")), st = S(() => import("./PackageVersion-BEHb0q4B.js")), ot = S(() => import("./PenAndPaper-X98t5VLX.js")), rt = S(() => import("./vue-ui-skeleton-7wen4XQb.js")), nt = S(() => import("./UserOptions-C1T-b-S9.js")), ut = S(() => import("./vue-ui-xy-BlRRpP-g.js")), { vue_ui_ridgeline: it } = Dt(), x = Qe, z = f({
|
|
34
35
|
get() {
|
|
35
36
|
return !!x.dataset && x.dataset.length;
|
|
36
37
|
},
|
|
37
38
|
set(l) {
|
|
38
39
|
return l;
|
|
39
40
|
}
|
|
40
|
-
}),
|
|
41
|
-
function
|
|
42
|
-
const l =
|
|
41
|
+
}), te = et, V = i(null), de = i(null), ye = i(null), T = Ve(null), D = Ve(null), fe = i(null), ge = i(null), pe = i(0), ct = i(0), me = i(0), C = i(ve()), be = i(0), vt = i(0), xe = i(512), v = i(null), I = i(null), le = i(null), ke = i(0);
|
|
42
|
+
function Ae() {
|
|
43
|
+
const l = Ke({
|
|
43
44
|
userConfig: x.config,
|
|
44
|
-
defaultConfig:
|
|
45
|
+
defaultConfig: it
|
|
45
46
|
});
|
|
46
47
|
return l.theme ? {
|
|
47
|
-
...
|
|
48
|
-
userConfig:
|
|
48
|
+
...Ke({
|
|
49
|
+
userConfig: Wt.vue_ui_ridgeline[l.theme] || x.config,
|
|
49
50
|
defaultConfig: l
|
|
50
51
|
}),
|
|
51
|
-
customPalette:
|
|
52
|
+
customPalette: Gt[l.theme] || Q
|
|
52
53
|
} : l;
|
|
53
54
|
}
|
|
54
|
-
const e =
|
|
55
|
-
get: () =>
|
|
55
|
+
const e = f({
|
|
56
|
+
get: () => Ae(),
|
|
56
57
|
set: (l) => l
|
|
57
|
-
}),
|
|
58
|
+
}), w = i(Math.min(
|
|
58
59
|
e.value.style.chart.areas.height,
|
|
59
60
|
e.value.style.chart.areas.rowHeight
|
|
60
61
|
)), {
|
|
61
|
-
userOptionsVisible:
|
|
62
|
-
setUserOptionsVisibility:
|
|
63
|
-
keepUserOptionState:
|
|
64
|
-
} =
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
62
|
+
userOptionsVisible: ae,
|
|
63
|
+
setUserOptionsVisibility: Ce,
|
|
64
|
+
keepUserOptionState: we
|
|
65
|
+
} = Jt({ config: e.value }), { svgRef: se } = Kt({ config: e.value.style.chart.title });
|
|
66
|
+
Lt(oe);
|
|
67
|
+
function oe() {
|
|
68
|
+
if (It(x.dataset) ? he({
|
|
68
69
|
componentName: "VueUiRidgeline",
|
|
69
70
|
type: "dataset"
|
|
70
71
|
}) : x.dataset.forEach((l, o) => {
|
|
71
|
-
|
|
72
|
+
Ye({
|
|
72
73
|
datasetObject: l,
|
|
73
74
|
requiredAttributes: ["name", "datapoints"]
|
|
74
75
|
}).forEach((t) => {
|
|
75
|
-
z.value = !1,
|
|
76
|
+
z.value = !1, he({
|
|
76
77
|
componentName: "VueUiRidgeline",
|
|
77
78
|
type: "datasetSerieAttribute",
|
|
78
79
|
property: t,
|
|
79
80
|
index: o
|
|
80
81
|
});
|
|
81
82
|
}), l.datapoints.length && l.datapoints.forEach((t, s) => {
|
|
82
|
-
|
|
83
|
+
Ye({
|
|
83
84
|
datasetObject: t,
|
|
84
85
|
requiredAttributes: ["name", "values"]
|
|
85
86
|
}).forEach((a) => {
|
|
86
|
-
z.value = !1,
|
|
87
|
+
z.value = !1, he({
|
|
87
88
|
componentName: "VueUiRidgeline",
|
|
88
89
|
type: "datasetSerieAttribute",
|
|
89
90
|
property: `datapoint.${a}`,
|
|
@@ -91,183 +92,189 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
91
92
|
});
|
|
92
93
|
});
|
|
93
94
|
});
|
|
94
|
-
}),
|
|
95
|
+
}), vt.value = x.dataset.length, w.value = Math.min(
|
|
95
96
|
e.value.style.chart.areas.height,
|
|
96
97
|
e.value.style.chart.areas.rowHeight
|
|
97
98
|
), e.value.responsive) {
|
|
98
|
-
const l =
|
|
99
|
-
const { width: o, height: t } =
|
|
99
|
+
const l = Zt(() => {
|
|
100
|
+
const { width: o, height: t } = el({
|
|
100
101
|
chart: V.value,
|
|
101
|
-
title: e.value.style.chart.title.text ?
|
|
102
|
-
legend: e.value.style.chart.legend.show ?
|
|
103
|
-
source:
|
|
104
|
-
noTitle:
|
|
102
|
+
title: e.value.style.chart.title.text ? de.value : null,
|
|
103
|
+
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
104
|
+
source: fe.value,
|
|
105
|
+
noTitle: ge.value,
|
|
105
106
|
padding: e.value.style.chart.padding
|
|
106
107
|
});
|
|
107
108
|
requestAnimationFrame(() => {
|
|
108
|
-
|
|
109
|
+
xe.value = o, w.value = t / x.dataset.length, ke.value = t;
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
|
-
T.value && (
|
|
112
|
+
T.value && (D.value && T.value.unobserve(D.value), T.value.disconnect()), T.value = new ResizeObserver(l), D.value = V.value.parentNode, T.value.observe(D.value);
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
-
T.value && (
|
|
115
|
+
Nt(() => {
|
|
116
|
+
T.value && (D.value && T.value.unobserve(D.value), T.value.disconnect());
|
|
116
117
|
});
|
|
117
|
-
const { isPrinting:
|
|
118
|
-
elementId: `vue-ui-ridgeline_${
|
|
118
|
+
const { isPrinting: $e, isImaging: _e, generatePdf: Me, generateImage: Pe } = Qt({
|
|
119
|
+
elementId: `vue-ui-ridgeline_${C.value}`,
|
|
119
120
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
120
121
|
options: e.value.userOptions.print
|
|
121
|
-
}),
|
|
122
|
+
}), ht = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = f(() => Rt(e.value.customPalette)), B = i({
|
|
122
123
|
showTable: e.value.table.show
|
|
123
124
|
});
|
|
124
|
-
|
|
125
|
-
e.value =
|
|
125
|
+
Be(() => x.config, (l) => {
|
|
126
|
+
e.value = Ae(), ae.value = !e.value.userOptions.showOnChartHover, oe(), pe.value += 1, me.value += 1, w.value = Math.min(
|
|
126
127
|
e.value.style.chart.areas.height,
|
|
127
128
|
e.value.style.chart.areas.rowHeight
|
|
128
129
|
), B.value.showTable = e.value.table.show;
|
|
129
|
-
}, { deep: !0 }),
|
|
130
|
-
const
|
|
131
|
-
function
|
|
132
|
-
O.value.includes(l) ? O.value = O.value.filter((o) => o !== l) : O.value.push(l),
|
|
130
|
+
}, { deep: !0 }), Be(() => x.dataset, oe, { deep: !0 });
|
|
131
|
+
const re = f(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
132
|
+
function Te(l) {
|
|
133
|
+
O.value.includes(l) ? O.value = O.value.filter((o) => o !== l) : O.value.push(l), te("selectLegend", X.value);
|
|
133
134
|
}
|
|
134
|
-
const _ =
|
|
135
|
+
const _ = f(() => z.value ? x.dataset.map((l, o) => ({
|
|
135
136
|
...l,
|
|
136
|
-
labelLen:
|
|
137
|
-
uid:
|
|
137
|
+
labelLen: gt(l.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
138
|
+
uid: ve(),
|
|
138
139
|
datapoints: l.datapoints.map((t, s) => {
|
|
139
|
-
const a = t.color ?
|
|
140
|
+
const a = t.color ? Xt(t.color) : dt.value[s] || Q[s] || Q[s % Q.length], h = qe(t.name);
|
|
140
141
|
return {
|
|
141
142
|
...t,
|
|
142
143
|
color: a,
|
|
143
|
-
id:
|
|
144
|
+
id: h
|
|
144
145
|
};
|
|
145
146
|
})
|
|
146
|
-
})) : []),
|
|
147
|
+
})) : []), Oe = f(() => e.value.style.chart.padding.top + w.value * x.dataset.length + w.value * re.value), k = f(() => ({
|
|
147
148
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
148
149
|
top: y.value.padding.top,
|
|
149
150
|
left: y.value.padding.left,
|
|
150
151
|
right: y.value.width - y.value.padding.right,
|
|
151
152
|
bottom: y.value.padding.top + y.value.height,
|
|
152
153
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
153
|
-
})), y =
|
|
154
|
+
})), y = f(() => {
|
|
154
155
|
const l = e.value.style.chart.padding;
|
|
155
156
|
return {
|
|
156
|
-
width:
|
|
157
|
-
height:
|
|
157
|
+
width: xe.value,
|
|
158
|
+
height: Oe.value,
|
|
158
159
|
padding: l
|
|
159
160
|
};
|
|
160
|
-
}),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
}), ne = f(() => Math.max(..._.value.flatMap((l) => l.datapoints.map((o) => o.values.length)))), W = f(() => sl({
|
|
162
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
163
|
+
maxDatapoints: ne.value,
|
|
164
|
+
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
165
|
+
start: 0,
|
|
166
|
+
end: e.value.style.chart.xAxis.labels.values.length
|
|
167
|
+
})), R = f(() => {
|
|
168
|
+
const l = Math.max(..._.value.map((a) => a.labelLen)), o = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, t = (k.value.width - o) / ne.value, s = [];
|
|
169
|
+
for (let a = 0; a < ne.value; a += 1)
|
|
170
|
+
s.push({
|
|
171
|
+
selectorX: o + t * a,
|
|
172
|
+
x: o + t * a - t / 2,
|
|
166
173
|
y: k.value.top,
|
|
167
|
-
label: e.value.style.chart.xAxis.labels.values[
|
|
168
|
-
index:
|
|
169
|
-
width:
|
|
170
|
-
height:
|
|
174
|
+
label: e.value.style.chart.xAxis.labels.values[a] ? W.value[a].text : "",
|
|
175
|
+
index: a,
|
|
176
|
+
width: t,
|
|
177
|
+
height: Oe.value
|
|
171
178
|
});
|
|
172
|
-
return
|
|
179
|
+
return s;
|
|
173
180
|
});
|
|
174
|
-
function
|
|
175
|
-
|
|
181
|
+
function yt(l) {
|
|
182
|
+
te("selectX", _.value.map((o) => o.datapoints.map((t) => ({
|
|
176
183
|
dp: t,
|
|
177
184
|
selected: t.values[l.index]
|
|
178
185
|
}))));
|
|
179
186
|
}
|
|
180
|
-
function
|
|
187
|
+
function ft(l, o) {
|
|
181
188
|
return l.length * o / 2 + o;
|
|
182
189
|
}
|
|
183
|
-
function
|
|
184
|
-
const s =
|
|
190
|
+
function Se(l, o, t) {
|
|
191
|
+
const s = ft(o, t);
|
|
185
192
|
return l + s > k.value.right;
|
|
186
193
|
}
|
|
187
|
-
function
|
|
188
|
-
const a = document.createElement("canvas").getContext("2d"),
|
|
189
|
-
return a.font = `${
|
|
194
|
+
function gt(l, o, t = "sans-serif") {
|
|
195
|
+
const a = document.createElement("canvas").getContext("2d"), h = typeof o == "number" ? `${o}px` : o;
|
|
196
|
+
return a.font = `${h} ${t}`, a.measureText(l).width;
|
|
190
197
|
}
|
|
191
|
-
const X =
|
|
192
|
-
|
|
193
|
-
const l = Math.max(..._.value.map((b) => b.labelLen)), o = Math.max(..._.value.flatMap((b) => b.datapoints.map((
|
|
194
|
-
function
|
|
195
|
-
return isNaN(b /
|
|
198
|
+
const X = f(() => {
|
|
199
|
+
w.value;
|
|
200
|
+
const l = Math.max(..._.value.map((b) => b.labelLen)), o = Math.max(..._.value.flatMap((b) => b.datapoints.map((L) => L.values.length))), t = Math.max(..._.value.flatMap((b) => b.datapoints.flatMap((L) => L.values))), s = Math.min(..._.value.flatMap((b) => b.datapoints.flatMap((L) => L.values))), a = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, h = (k.value.width - a) / o, $ = Math.abs(Math.min(s, 0)), Ie = t + $;
|
|
201
|
+
function Re(b) {
|
|
202
|
+
return isNaN(b / Ie) ? 0 : b / Ie;
|
|
196
203
|
}
|
|
197
|
-
return _.value.map((b,
|
|
198
|
-
const
|
|
204
|
+
return _.value.map((b, L) => {
|
|
205
|
+
const Xe = k.value.top + w.value * L, N = k.value.top + Xe + w.value * re.value * (1 - Re($));
|
|
199
206
|
return {
|
|
200
207
|
...b,
|
|
201
208
|
label: {
|
|
202
209
|
x: a - e.value.style.chart.yAxis.labels.fontSize,
|
|
203
|
-
y:
|
|
210
|
+
y: N
|
|
204
211
|
},
|
|
205
212
|
datapoints: b.datapoints.map((U) => {
|
|
206
|
-
const
|
|
207
|
-
const
|
|
213
|
+
const F = U.values.map((G, Pt) => {
|
|
214
|
+
const Tt = isNaN(G) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(G) ? 0 : G || 0, Ot = a + h * Pt, St = k.value.top + Xe + w.value * re.value * (1 - Re(Tt + $)), zt = G === Math.max(...U.values);
|
|
208
215
|
return {
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
216
|
+
x: Ot,
|
|
217
|
+
y: St,
|
|
211
218
|
value: G,
|
|
212
|
-
isMaxPoint:
|
|
213
|
-
zero:
|
|
219
|
+
isMaxPoint: zt,
|
|
220
|
+
zero: N
|
|
214
221
|
};
|
|
215
|
-
}),
|
|
216
|
-
e.value.style.chart.areas.smooth ?
|
|
222
|
+
}), wt = `${Et(F, N, !1, !1)}`, $t = `M ${a},${N} ${Je(F)} ${F.at(-1).x},${N}`, _t = `M ${a},${N} ${F.at(-1).x},${N}`, Ee = `M ${Ht(F)}`, He = `M ${Je(F)}`, Mt = Vt(
|
|
223
|
+
e.value.style.chart.areas.smooth ? Ee : He
|
|
217
224
|
);
|
|
218
225
|
return {
|
|
219
226
|
...U,
|
|
220
|
-
uid:
|
|
221
|
-
plots:
|
|
222
|
-
smoothPath:
|
|
223
|
-
straightPath:
|
|
224
|
-
zeroPath:
|
|
225
|
-
pathLength:
|
|
226
|
-
smoothPathRidge:
|
|
227
|
-
straightPathRidge:
|
|
227
|
+
uid: ve(),
|
|
228
|
+
plots: F,
|
|
229
|
+
smoothPath: wt,
|
|
230
|
+
straightPath: $t,
|
|
231
|
+
zeroPath: _t,
|
|
232
|
+
pathLength: Mt,
|
|
233
|
+
smoothPathRidge: Ee,
|
|
234
|
+
straightPathRidge: He
|
|
228
235
|
};
|
|
229
236
|
}).filter((U) => !O.value.includes(U.id))
|
|
230
237
|
};
|
|
231
238
|
});
|
|
232
|
-
}), O =
|
|
233
|
-
function
|
|
239
|
+
}), O = i([]);
|
|
240
|
+
function pt(l) {
|
|
234
241
|
const o = /* @__PURE__ */ new Map();
|
|
235
242
|
return l.forEach((t) => {
|
|
236
243
|
t.datapoints.forEach((s, a) => {
|
|
237
|
-
const
|
|
238
|
-
o.has(
|
|
239
|
-
id:
|
|
244
|
+
const h = qe(s.name);
|
|
245
|
+
o.has(h) || o.set(h, {
|
|
246
|
+
id: h,
|
|
240
247
|
name: s.name,
|
|
241
248
|
color: s.color,
|
|
242
249
|
shape: "circle",
|
|
243
|
-
segregate: () =>
|
|
244
|
-
isSegregated: O.value.includes(
|
|
245
|
-
opacity: O.value.includes(
|
|
250
|
+
segregate: () => Te(h),
|
|
251
|
+
isSegregated: O.value.includes(h),
|
|
252
|
+
opacity: O.value.includes(h) ? 0.5 : 1
|
|
246
253
|
});
|
|
247
254
|
});
|
|
248
255
|
}), Array.from(o.values());
|
|
249
256
|
}
|
|
250
|
-
const
|
|
257
|
+
const ue = f(() => pt(_.value)), mt = f(() => ({
|
|
251
258
|
cy: "donut-div-legend",
|
|
252
259
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
253
260
|
color: e.value.style.chart.legend.color,
|
|
254
261
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
255
262
|
paddingBottom: 12,
|
|
256
263
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
257
|
-
})), E =
|
|
258
|
-
function
|
|
259
|
-
E.value = l,
|
|
264
|
+
})), E = i(!1);
|
|
265
|
+
function bt(l) {
|
|
266
|
+
E.value = l, be.value += 1;
|
|
260
267
|
}
|
|
261
|
-
const
|
|
262
|
-
function
|
|
263
|
-
|
|
268
|
+
const ze = i({}), Le = i([]);
|
|
269
|
+
function xt(l) {
|
|
270
|
+
te("selectDatapoint", l), e.value.style.chart.dialog.show && (Le.value = l.datapoints.map((o) => ({
|
|
264
271
|
name: o.name,
|
|
265
272
|
color: o.color,
|
|
266
273
|
type: "line",
|
|
267
274
|
useArea: !0,
|
|
268
275
|
smooth: e.value.style.chart.areas.smooth,
|
|
269
276
|
series: o.values
|
|
270
|
-
})), I.value = l,
|
|
277
|
+
})), I.value = l, ze.value = qt({
|
|
271
278
|
...e.value.style.chart.dialog.xyChart,
|
|
272
279
|
responsive: !0,
|
|
273
280
|
// Overriding
|
|
@@ -279,7 +286,9 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
279
286
|
...e.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
280
287
|
xAxisLabels: {
|
|
281
288
|
...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
282
|
-
values: e.value.style.chart.xAxis.labels.values
|
|
289
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
290
|
+
// Overriding
|
|
291
|
+
datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
|
|
283
292
|
// Overriding
|
|
284
293
|
}
|
|
285
294
|
}
|
|
@@ -290,23 +299,23 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
290
299
|
// Overriding
|
|
291
300
|
}
|
|
292
301
|
}
|
|
293
|
-
}),
|
|
302
|
+
}), le.value && le.value.open());
|
|
294
303
|
}
|
|
295
|
-
const
|
|
296
|
-
function
|
|
297
|
-
|
|
304
|
+
const ie = i(null);
|
|
305
|
+
function kt(l) {
|
|
306
|
+
ie.value = l;
|
|
298
307
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
308
|
+
function At() {
|
|
309
|
+
ie.value = null;
|
|
301
310
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
|
|
311
|
+
const j = i(!1);
|
|
312
|
+
function ce() {
|
|
313
|
+
j.value = !j.value;
|
|
305
314
|
}
|
|
306
|
-
function
|
|
315
|
+
function Ne() {
|
|
307
316
|
B.value.showTable = !B.value.showTable;
|
|
308
317
|
}
|
|
309
|
-
const
|
|
318
|
+
const Fe = f(() => ({ body: X.value.flatMap((t) => t.datapoints.flatMap((s) => ({
|
|
310
319
|
...s,
|
|
311
320
|
rowName: `${t.name}: ${s.name}`
|
|
312
321
|
}))).map((t) => [
|
|
@@ -315,10 +324,10 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
315
324
|
color: t.color
|
|
316
325
|
},
|
|
317
326
|
...t.values
|
|
318
|
-
]) })),
|
|
327
|
+
]) })), Y = f(() => {
|
|
319
328
|
const l = [
|
|
320
329
|
e.value.table.columnNames.series,
|
|
321
|
-
...
|
|
330
|
+
...W.value.map((s) => s.text)
|
|
322
331
|
], o = {
|
|
323
332
|
th: {
|
|
324
333
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -335,43 +344,43 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
335
344
|
return {
|
|
336
345
|
colNames: [
|
|
337
346
|
e.value.table.columnNames.series,
|
|
338
|
-
...
|
|
347
|
+
...W.value.map((s) => s.text)
|
|
339
348
|
],
|
|
340
349
|
head: l,
|
|
341
|
-
body:
|
|
350
|
+
body: Fe.value.body,
|
|
342
351
|
config: o
|
|
343
352
|
};
|
|
344
353
|
});
|
|
345
|
-
function
|
|
346
|
-
|
|
354
|
+
function De(l = null) {
|
|
355
|
+
Ft(() => {
|
|
347
356
|
const o = [
|
|
348
|
-
[e.value.table.columnNames.series, ...
|
|
349
|
-
...
|
|
357
|
+
[e.value.table.columnNames.series, ...W.map((a) => [a.text])],
|
|
358
|
+
...Fe.value.body.map((a, h) => [a[0].name, ...a.slice(1)])
|
|
350
359
|
], t = [
|
|
351
360
|
[e.value.style.chart.title.text],
|
|
352
361
|
[e.value.style.chart.title.subtitle.text]
|
|
353
|
-
].concat(o), s =
|
|
354
|
-
l ? l(s) :
|
|
362
|
+
].concat(o), s = jt(t);
|
|
363
|
+
l ? l(s) : Yt({
|
|
355
364
|
csvContent: s,
|
|
356
365
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
357
366
|
});
|
|
358
367
|
});
|
|
359
368
|
}
|
|
360
|
-
function
|
|
369
|
+
function Ct() {
|
|
361
370
|
return X.value;
|
|
362
371
|
}
|
|
363
|
-
return
|
|
364
|
-
getData:
|
|
365
|
-
generateImage:
|
|
366
|
-
generatePdf:
|
|
367
|
-
generateCsv:
|
|
368
|
-
toggleAnnotator:
|
|
369
|
-
toggleTable:
|
|
372
|
+
return Ze({
|
|
373
|
+
getData: Ct,
|
|
374
|
+
generateImage: Pe,
|
|
375
|
+
generatePdf: Me,
|
|
376
|
+
generateCsv: De,
|
|
377
|
+
toggleAnnotator: ce,
|
|
378
|
+
toggleTable: Ne
|
|
370
379
|
}), (l, o) => (r(), n("div", {
|
|
371
380
|
ref_key: "ridgelineChart",
|
|
372
381
|
ref: V,
|
|
373
|
-
class:
|
|
374
|
-
id: `vue-ui-ridgeline_${
|
|
382
|
+
class: q(`vue-ui-ridgeline ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
383
|
+
id: `vue-ui-ridgeline_${C.value}`,
|
|
375
384
|
style: M({
|
|
376
385
|
fontFamily: e.value.style.fontFamily,
|
|
377
386
|
width: "100%",
|
|
@@ -379,33 +388,33 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
379
388
|
background: e.value.style.chart.backgroundColor,
|
|
380
389
|
height: e.value.responsive ? "100%" : void 0
|
|
381
390
|
}),
|
|
382
|
-
onMouseenter: o[4] || (o[4] = () => u(
|
|
383
|
-
onMouseleave: o[5] || (o[5] = () => u(
|
|
391
|
+
onMouseenter: o[4] || (o[4] = () => u(Ce)(!0)),
|
|
392
|
+
onMouseleave: o[5] || (o[5] = () => u(Ce)(!1))
|
|
384
393
|
}, [
|
|
385
|
-
e.value.userOptions.buttons.annotator && u(
|
|
394
|
+
e.value.userOptions.buttons.annotator && u(se) ? (r(), P(u(ot), {
|
|
386
395
|
key: 0,
|
|
387
396
|
color: e.value.style.chart.color,
|
|
388
397
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
389
|
-
active:
|
|
390
|
-
svgRef: u(
|
|
391
|
-
onClose:
|
|
392
|
-
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) :
|
|
398
|
+
active: j.value,
|
|
399
|
+
svgRef: u(se),
|
|
400
|
+
onClose: ce
|
|
401
|
+
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : c("", !0),
|
|
393
402
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
394
|
-
|
|
403
|
+
ht.value ? (r(), n("div", {
|
|
395
404
|
key: 1,
|
|
396
405
|
ref_key: "noTitle",
|
|
397
|
-
ref:
|
|
406
|
+
ref: ge,
|
|
398
407
|
class: "vue-data-ui-no-title-space",
|
|
399
408
|
style: "height:36px; width: 100%;background:transparent"
|
|
400
|
-
}, null, 512)) :
|
|
409
|
+
}, null, 512)) : c("", !0),
|
|
401
410
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
402
411
|
key: 2,
|
|
403
412
|
ref_key: "chartTitle",
|
|
404
|
-
ref:
|
|
413
|
+
ref: de,
|
|
405
414
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
406
415
|
}, [
|
|
407
|
-
(r(), P(
|
|
408
|
-
key: `title_${
|
|
416
|
+
(r(), P(ll, {
|
|
417
|
+
key: `title_${pe.value}`,
|
|
409
418
|
config: {
|
|
410
419
|
title: {
|
|
411
420
|
cy: "ridgeline-div-title",
|
|
@@ -417,15 +426,15 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
417
426
|
}
|
|
418
427
|
}
|
|
419
428
|
}, null, 8, ["config"]))
|
|
420
|
-
], 512)) :
|
|
421
|
-
e.value.userOptions.show && z.value && (u(
|
|
429
|
+
], 512)) : c("", !0),
|
|
430
|
+
e.value.userOptions.show && z.value && (u(we) || u(ae)) ? (r(), P(u(nt), {
|
|
422
431
|
ref: "details",
|
|
423
|
-
key: `user_option_${
|
|
432
|
+
key: `user_option_${be.value}`,
|
|
424
433
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
425
434
|
color: e.value.style.chart.color,
|
|
426
|
-
isPrinting: u(
|
|
427
|
-
isImaging: u(
|
|
428
|
-
uid:
|
|
435
|
+
isPrinting: u($e),
|
|
436
|
+
isImaging: u(_e),
|
|
437
|
+
uid: C.value,
|
|
429
438
|
hasTooltip: !1,
|
|
430
439
|
callbacks: e.value.userOptions.callbacks,
|
|
431
440
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -440,21 +449,21 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
440
449
|
isTooltip: !1,
|
|
441
450
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
442
451
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
443
|
-
isAnnotation:
|
|
452
|
+
isAnnotation: j.value,
|
|
444
453
|
style: M({
|
|
445
|
-
visibility: u(
|
|
454
|
+
visibility: u(we) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
446
455
|
}),
|
|
447
|
-
onToggleFullscreen:
|
|
448
|
-
onGeneratePdf: u(
|
|
449
|
-
onGenerateCsv:
|
|
450
|
-
onGenerateImage: u(
|
|
451
|
-
onToggleTable:
|
|
452
|
-
onToggleAnnotator:
|
|
453
|
-
},
|
|
456
|
+
onToggleFullscreen: bt,
|
|
457
|
+
onGeneratePdf: u(Me),
|
|
458
|
+
onGenerateCsv: De,
|
|
459
|
+
onGenerateImage: u(Pe),
|
|
460
|
+
onToggleTable: Ne,
|
|
461
|
+
onToggleAnnotator: ce
|
|
462
|
+
}, Ue({ _: 2 }, [
|
|
454
463
|
l.$slots.menuIcon ? {
|
|
455
464
|
name: "menuIcon",
|
|
456
465
|
fn: m(({ isOpen: t, color: s }) => [
|
|
457
|
-
p(l.$slots, "menuIcon",
|
|
466
|
+
p(l.$slots, "menuIcon", J(K({ isOpen: t, color: s })), void 0, !0)
|
|
458
467
|
]),
|
|
459
468
|
key: "0"
|
|
460
469
|
} : void 0,
|
|
@@ -496,31 +505,31 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
496
505
|
l.$slots.optionFullscreen ? {
|
|
497
506
|
name: "optionFullscreen",
|
|
498
507
|
fn: m(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
499
|
-
p(l.$slots, "optionFullscreen",
|
|
508
|
+
p(l.$slots, "optionFullscreen", J(K({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
500
509
|
]),
|
|
501
510
|
key: "6"
|
|
502
511
|
} : void 0,
|
|
503
512
|
l.$slots.optionAnnotator ? {
|
|
504
513
|
name: "optionAnnotator",
|
|
505
514
|
fn: m(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
506
|
-
p(l.$slots, "optionAnnotator",
|
|
515
|
+
p(l.$slots, "optionAnnotator", J(K({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
507
516
|
]),
|
|
508
517
|
key: "7"
|
|
509
518
|
} : void 0
|
|
510
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) :
|
|
519
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
511
520
|
z.value ? (r(), n("svg", {
|
|
512
521
|
key: 4,
|
|
513
522
|
ref_key: "svgRef",
|
|
514
|
-
ref:
|
|
515
|
-
xmlns: u(
|
|
516
|
-
class:
|
|
523
|
+
ref: se,
|
|
524
|
+
xmlns: u(Bt),
|
|
525
|
+
class: q({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
517
526
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${k.value.fullHeight <= 0 ? 10 : k.value.fullHeight}`,
|
|
518
|
-
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${
|
|
527
|
+
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${ke.value}px; width: 100%;` : ""}`)
|
|
519
528
|
}, [
|
|
520
|
-
|
|
529
|
+
Ge(u(st)),
|
|
521
530
|
d("defs", null, [
|
|
522
|
-
(r(!0), n(
|
|
523
|
-
id: `gradient-${t.id}-${
|
|
531
|
+
(r(!0), n(g, null, A(ue.value, (t, s) => (r(), n("linearGradient", {
|
|
532
|
+
id: `gradient-${t.id}-${C.value}`,
|
|
524
533
|
x1: "50%",
|
|
525
534
|
y1: "0%",
|
|
526
535
|
x2: "50%",
|
|
@@ -530,27 +539,27 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
530
539
|
offset: "0%",
|
|
531
540
|
"stop-color": t.color,
|
|
532
541
|
"stop-opacity": "1"
|
|
533
|
-
}, null, 8,
|
|
542
|
+
}, null, 8, il),
|
|
534
543
|
d("stop", {
|
|
535
544
|
offset: "30%",
|
|
536
545
|
"stop-color": t.color,
|
|
537
546
|
"stop-opacity": "0.7"
|
|
538
|
-
}, null, 8,
|
|
547
|
+
}, null, 8, cl),
|
|
539
548
|
d("stop", {
|
|
540
549
|
offset: "70%",
|
|
541
550
|
"stop-color": t.color,
|
|
542
551
|
"stop-opacity": "0.3"
|
|
543
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, vl),
|
|
544
553
|
d("stop", {
|
|
545
554
|
offset: "100%",
|
|
546
555
|
"stop-color": t.color,
|
|
547
556
|
"stop-opacity": "0.1"
|
|
548
|
-
}, null, 8,
|
|
549
|
-
], 8,
|
|
550
|
-
(r(!0), n(
|
|
551
|
-
(r(!0), n(
|
|
557
|
+
}, null, 8, hl)
|
|
558
|
+
], 8, ul))), 256)),
|
|
559
|
+
(r(!0), n(g, null, A(X.value, (t, s) => (r(), n(g, null, [
|
|
560
|
+
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("linearGradient", {
|
|
552
561
|
key: `grad${a.id}`,
|
|
553
|
-
id: `gradient-single-${
|
|
562
|
+
id: `gradient-single-${C.value}-${a.uid}`,
|
|
554
563
|
x1: "50%",
|
|
555
564
|
y1: "0%",
|
|
556
565
|
x2: "50%",
|
|
@@ -560,45 +569,45 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
560
569
|
offset: "0%",
|
|
561
570
|
"stop-color": a.color,
|
|
562
571
|
"stop-opacity": "1"
|
|
563
|
-
}, null, 8,
|
|
572
|
+
}, null, 8, yl),
|
|
564
573
|
d("stop", {
|
|
565
574
|
offset: "30%",
|
|
566
575
|
"stop-color": a.color,
|
|
567
576
|
"stop-opacity": "0.7"
|
|
568
|
-
}, null, 8,
|
|
577
|
+
}, null, 8, fl),
|
|
569
578
|
d("stop", {
|
|
570
579
|
offset: "70%",
|
|
571
580
|
"stop-color": a.color,
|
|
572
581
|
"stop-opacity": "0.3"
|
|
573
|
-
}, null, 8,
|
|
582
|
+
}, null, 8, gl),
|
|
574
583
|
d("stop", {
|
|
575
584
|
offset: "100%",
|
|
576
585
|
"stop-color": a.color,
|
|
577
586
|
"stop-opacity": "0.1"
|
|
578
|
-
}, null, 8,
|
|
579
|
-
], 8,
|
|
587
|
+
}, null, 8, pl)
|
|
588
|
+
], 8, dl))), 128))
|
|
580
589
|
], 64))), 256))
|
|
581
590
|
]),
|
|
582
|
-
(r(!0), n(
|
|
591
|
+
(r(!0), n(g, null, A(X.value, (t, s) => (r(), n("g", {
|
|
583
592
|
key: `ds-${s}`
|
|
584
593
|
}, [
|
|
585
|
-
(r(!0), n(
|
|
594
|
+
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("g", {
|
|
586
595
|
key: a.id
|
|
587
596
|
}, [
|
|
588
|
-
l.$slots.pattern ? (r(), n("g",
|
|
597
|
+
l.$slots.pattern ? (r(), n("g", ml, [
|
|
589
598
|
d("defs", null, [
|
|
590
|
-
p(l.$slots, "pattern",
|
|
599
|
+
p(l.$slots, "pattern", We({ ref_for: !0 }, { datapointIndex: s, seriesIndex: h, patternId: `pattern_${C.value}_${a.uid}` }), void 0, !0)
|
|
591
600
|
])
|
|
592
|
-
])) :
|
|
601
|
+
])) : c("", !0),
|
|
593
602
|
d("path", {
|
|
594
|
-
fill: l.$slots.pattern ? `url(#pattern_${
|
|
603
|
+
fill: l.$slots.pattern ? `url(#pattern_${C.value}_${a.uid})` : e.value.style.chart.backgroundColor,
|
|
595
604
|
stroke: "none",
|
|
596
605
|
"stroke-linecap": "round",
|
|
597
606
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
598
607
|
style: M({
|
|
599
608
|
opacity: e.value.style.chart.areas.opacity
|
|
600
609
|
})
|
|
601
|
-
}, null, 12,
|
|
610
|
+
}, null, 12, bl),
|
|
602
611
|
d("path", {
|
|
603
612
|
fill: "none",
|
|
604
613
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -606,24 +615,24 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
606
615
|
d: e.value.style.chart.areas.smooth ? a.smoothPathRidge : a.straightPathRidge,
|
|
607
616
|
"stroke-linecap": "round",
|
|
608
617
|
"stroke-linejoin": "round",
|
|
609
|
-
class:
|
|
618
|
+
class: q({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
610
619
|
style: M({
|
|
611
620
|
strokeDasharray: a.pathLength,
|
|
612
621
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
613
622
|
})
|
|
614
|
-
}, null, 14,
|
|
623
|
+
}, null, 14, xl),
|
|
615
624
|
d("path", {
|
|
616
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${
|
|
625
|
+
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${C.value})` : `url(#gradient-single-${C.value}-${a.uid})` : a.color,
|
|
617
626
|
stroke: "none",
|
|
618
627
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
619
628
|
"stroke-linecap": "round",
|
|
620
629
|
"stroke-linejoin": "round",
|
|
621
|
-
class:
|
|
630
|
+
class: q({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
622
631
|
style: M({
|
|
623
632
|
strokeDasharray: a.pathLength,
|
|
624
633
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
625
634
|
})
|
|
626
|
-
}, null, 14,
|
|
635
|
+
}, null, 14, kl),
|
|
627
636
|
e.value.style.chart.zeroLine.show ? (r(), n("path", {
|
|
628
637
|
key: 1,
|
|
629
638
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -631,20 +640,20 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
631
640
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
632
641
|
d: a.zeroPath,
|
|
633
642
|
"stroke-linecap": "round"
|
|
634
|
-
}, null, 8,
|
|
635
|
-
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(
|
|
636
|
-
|
|
643
|
+
}, null, 8, Al)) : c("", !0),
|
|
644
|
+
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(g, { key: 2 }, A(a.plots, ($) => (r(), n(g, null, [
|
|
645
|
+
$.isMaxPoint ? (r(), n("line", {
|
|
637
646
|
key: 0,
|
|
638
|
-
x1:
|
|
639
|
-
y1:
|
|
640
|
-
x2:
|
|
641
|
-
y2:
|
|
642
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
647
|
+
x1: $.x,
|
|
648
|
+
y1: $.y,
|
|
649
|
+
x2: $.x,
|
|
650
|
+
y2: $.zero,
|
|
651
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Ut)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
643
652
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
644
653
|
"stroke-linecap": "round",
|
|
645
654
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
646
|
-
}, null, 8,
|
|
647
|
-
], 64))), 256)) :
|
|
655
|
+
}, null, 8, Cl)) : c("", !0)
|
|
656
|
+
], 64))), 256)) : c("", !0),
|
|
648
657
|
a.plots.length === 1 ? (r(), n("circle", {
|
|
649
658
|
key: 3,
|
|
650
659
|
cx: a.plots[0].x,
|
|
@@ -656,7 +665,7 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
656
665
|
style: {
|
|
657
666
|
pointerEvents: "none"
|
|
658
667
|
}
|
|
659
|
-
}, null, 8,
|
|
668
|
+
}, null, 8, wl)) : c("", !0)
|
|
660
669
|
]))), 128)),
|
|
661
670
|
d("text", {
|
|
662
671
|
x: t.label.x,
|
|
@@ -668,15 +677,15 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
668
677
|
style: M({
|
|
669
678
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
670
679
|
}),
|
|
671
|
-
"text-decoration": e.value.style.chart.dialog.show && (
|
|
672
|
-
onMouseenter: (a) =>
|
|
673
|
-
onMouseleave:
|
|
674
|
-
onClick: (a) =>
|
|
675
|
-
}, H(t.name), 45,
|
|
680
|
+
"text-decoration": e.value.style.chart.dialog.show && (ie.value === s || I.value && t.uid === I.value.uid) ? "underline" : "",
|
|
681
|
+
onMouseenter: (a) => kt(s),
|
|
682
|
+
onMouseleave: At,
|
|
683
|
+
onClick: (a) => xt(t)
|
|
684
|
+
}, H(t.name), 45, $l)
|
|
676
685
|
]))), 128)),
|
|
677
|
-
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g",
|
|
678
|
-
(r(!0), n(
|
|
679
|
-
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === R.value.length - 1) || t &&
|
|
686
|
+
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", _l, [
|
|
687
|
+
(r(!0), n(g, null, A(R.value, (t, s) => p(l.$slots, "time-label", We({ ref_for: !0 }, {
|
|
688
|
+
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === R.value.length - 1) || t && v.value && v.value.index === s || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(R.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
680
689
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
681
690
|
content: t.label,
|
|
682
691
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -685,7 +694,7 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
685
694
|
x: t.selectorX,
|
|
686
695
|
y: k.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
687
696
|
}), () => [
|
|
688
|
-
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === R.value.length - 1) || t &&
|
|
697
|
+
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === R.value.length - 1) || t && v.value && v.value.index === s || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(R.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (r(), n("text", {
|
|
689
698
|
key: 0,
|
|
690
699
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
691
700
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
@@ -693,38 +702,38 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
693
702
|
transform: `translate(${t.selectorX}, ${k.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
694
703
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
695
704
|
style: M({
|
|
696
|
-
opacity:
|
|
705
|
+
opacity: v.value ? v.value.index === s ? 1 : 0.2 : 1
|
|
697
706
|
})
|
|
698
|
-
}, H(t.label), 13,
|
|
707
|
+
}, H(t.label), 13, Ml)) : c("", !0)
|
|
699
708
|
], !0)), 256))
|
|
700
|
-
])) :
|
|
709
|
+
])) : c("", !0),
|
|
701
710
|
d("g", null, [
|
|
702
|
-
(r(!0), n(
|
|
711
|
+
(r(!0), n(g, null, A(R.value, (t, s) => (r(), n("rect", {
|
|
703
712
|
x: t.x,
|
|
704
713
|
y: t.y,
|
|
705
714
|
width: t.width < 0 ? 0.1 : t.width,
|
|
706
715
|
height: t.height < 0 ? 0.1 : t.height,
|
|
707
716
|
fill: "transparent",
|
|
708
|
-
onMouseenter: (a) =>
|
|
709
|
-
onMouseleave: o[0] || (o[0] = (a) =>
|
|
710
|
-
onClick: () =>
|
|
711
|
-
}, null, 40,
|
|
712
|
-
e.value.style.chart.selector.show &&
|
|
717
|
+
onMouseenter: (a) => v.value = t,
|
|
718
|
+
onMouseleave: o[0] || (o[0] = (a) => v.value = null),
|
|
719
|
+
onClick: () => yt(t)
|
|
720
|
+
}, null, 40, Pl))), 256)),
|
|
721
|
+
e.value.style.chart.selector.show && v.value ? (r(), n("line", {
|
|
713
722
|
key: 0,
|
|
714
|
-
x1:
|
|
715
|
-
x2:
|
|
716
|
-
y1:
|
|
717
|
-
y2:
|
|
723
|
+
x1: v.value.selectorX,
|
|
724
|
+
x2: v.value.selectorX,
|
|
725
|
+
y1: v.value.y,
|
|
726
|
+
y2: v.value.y + v.value.height - w.value / 2,
|
|
718
727
|
stroke: e.value.style.chart.selector.stroke,
|
|
719
728
|
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
720
729
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
721
730
|
"stroke-linecap": "round",
|
|
722
731
|
style: { pointerEvents: "none" }
|
|
723
|
-
}, null, 8,
|
|
724
|
-
|
|
725
|
-
(r(!0), n(
|
|
726
|
-
(r(!0), n(
|
|
727
|
-
|
|
732
|
+
}, null, 8, Tl)) : c("", !0),
|
|
733
|
+
v.value ? (r(!0), n(g, { key: 1 }, A(X.value, (t) => (r(), n(g, null, [
|
|
734
|
+
(r(!0), n(g, null, A(t.datapoints, (s) => (r(), n(g, null, [
|
|
735
|
+
(r(!0), n(g, null, A(s.plots, (a, h) => (r(), n(g, null, [
|
|
736
|
+
v.value && v.value.index === h ? (r(), n("circle", {
|
|
728
737
|
key: 0,
|
|
729
738
|
cx: a.x,
|
|
730
739
|
cy: a.y,
|
|
@@ -735,15 +744,15 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
735
744
|
style: {
|
|
736
745
|
pointerEvents: "none"
|
|
737
746
|
}
|
|
738
|
-
}, null, 8,
|
|
739
|
-
|
|
747
|
+
}, null, 8, Ol)) : c("", !0),
|
|
748
|
+
v.value && v.value.index === h ? (r(), n("text", {
|
|
740
749
|
key: 1,
|
|
741
|
-
x:
|
|
750
|
+
x: Se(
|
|
742
751
|
a.x,
|
|
743
|
-
u(
|
|
752
|
+
u(Z)(
|
|
744
753
|
e.value.style.chart.selector.labels.formatter,
|
|
745
754
|
a.value,
|
|
746
|
-
u(
|
|
755
|
+
u(ee)({
|
|
747
756
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
748
757
|
v: a.value,
|
|
749
758
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -753,12 +762,12 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
753
762
|
e.value.style.chart.selector.labels.fontSize
|
|
754
763
|
) ? a.x - e.value.style.chart.selector.labels.fontSize / 2 : a.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
755
764
|
y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
756
|
-
"text-anchor":
|
|
765
|
+
"text-anchor": Se(
|
|
757
766
|
a.x,
|
|
758
|
-
u(
|
|
767
|
+
u(Z)(
|
|
759
768
|
e.value.style.chart.selector.labels.formatter,
|
|
760
769
|
a.value,
|
|
761
|
-
u(
|
|
770
|
+
u(ee)({
|
|
762
771
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
763
772
|
v: a.value,
|
|
764
773
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -772,26 +781,26 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
772
781
|
style: {
|
|
773
782
|
pointerEvents: "none"
|
|
774
783
|
}
|
|
775
|
-
}, H(u(
|
|
784
|
+
}, H(u(Z)(
|
|
776
785
|
e.value.style.chart.selector.labels.formatter,
|
|
777
786
|
a.value,
|
|
778
|
-
u(
|
|
787
|
+
u(ee)({
|
|
779
788
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
780
789
|
v: a.value,
|
|
781
790
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
782
791
|
r: e.value.style.chart.selector.labels.rounding
|
|
783
792
|
})
|
|
784
|
-
)), 9,
|
|
793
|
+
)), 9, Sl)) : c("", !0)
|
|
785
794
|
], 64))), 256))
|
|
786
795
|
], 64))), 256))
|
|
787
|
-
], 64))), 256)) :
|
|
796
|
+
], 64))), 256)) : c("", !0)
|
|
788
797
|
]),
|
|
789
798
|
p(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
790
|
-
], 14,
|
|
791
|
-
l.$slots.watermark ? (r(), n("div",
|
|
792
|
-
p(l.$slots, "watermark",
|
|
793
|
-
])) :
|
|
794
|
-
z.value ?
|
|
799
|
+
], 14, nl)) : c("", !0),
|
|
800
|
+
l.$slots.watermark ? (r(), n("div", zl, [
|
|
801
|
+
p(l.$slots, "watermark", J(K({ isPrinting: u($e) || u(_e) })), void 0, !0)
|
|
802
|
+
])) : c("", !0),
|
|
803
|
+
z.value ? c("", !0) : (r(), P(u(rt), {
|
|
795
804
|
key: 6,
|
|
796
805
|
config: {
|
|
797
806
|
type: "ridgeline",
|
|
@@ -805,47 +814,47 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
805
814
|
}, null, 8, ["config"])),
|
|
806
815
|
d("div", {
|
|
807
816
|
ref_key: "chartLegend",
|
|
808
|
-
ref:
|
|
817
|
+
ref: ye
|
|
809
818
|
}, [
|
|
810
|
-
e.value.style.chart.legend.show ? (r(), P(
|
|
811
|
-
key: `legend_${
|
|
812
|
-
legendSet:
|
|
813
|
-
config:
|
|
814
|
-
onClickMarker: o[1] || (o[1] = ({ legend: t }) =>
|
|
815
|
-
},
|
|
819
|
+
e.value.style.chart.legend.show ? (r(), P(tl, {
|
|
820
|
+
key: `legend_${me.value}`,
|
|
821
|
+
legendSet: ue.value,
|
|
822
|
+
config: mt.value,
|
|
823
|
+
onClickMarker: o[1] || (o[1] = ({ legend: t }) => Te(t.id))
|
|
824
|
+
}, Ue({
|
|
816
825
|
item: m(({ legend: t }) => [
|
|
817
826
|
d("div", {
|
|
818
827
|
style: M(`opacity:${O.value.includes(t.id) ? 0.5 : 1}`),
|
|
819
828
|
onClick: (s) => t.segregate()
|
|
820
|
-
}, H(t.name), 13,
|
|
829
|
+
}, H(t.name), 13, Ll)
|
|
821
830
|
]),
|
|
822
831
|
_: 2
|
|
823
832
|
}, [
|
|
824
833
|
l.$slots.pattern ? {
|
|
825
834
|
name: "legend-pattern",
|
|
826
835
|
fn: m(({ legend: t, index: s }) => [
|
|
827
|
-
|
|
836
|
+
Ge(al, {
|
|
828
837
|
shape: t.shape,
|
|
829
838
|
radius: 30,
|
|
830
839
|
stroke: "none",
|
|
831
840
|
plot: { x: 30, y: 30 },
|
|
832
|
-
fill: `url(#pattern_${
|
|
841
|
+
fill: `url(#pattern_${C.value}_${s})`
|
|
833
842
|
}, null, 8, ["shape", "fill"])
|
|
834
843
|
]),
|
|
835
844
|
key: "0"
|
|
836
845
|
} : void 0
|
|
837
|
-
]), 1032, ["legendSet", "config"])) :
|
|
838
|
-
p(l.$slots, "legend", { legend:
|
|
846
|
+
]), 1032, ["legendSet", "config"])) : c("", !0),
|
|
847
|
+
p(l.$slots, "legend", { legend: ue.value }, void 0, !0)
|
|
839
848
|
], 512),
|
|
840
849
|
l.$slots.source ? (r(), n("div", {
|
|
841
850
|
key: 7,
|
|
842
851
|
ref_key: "source",
|
|
843
|
-
ref:
|
|
852
|
+
ref: fe,
|
|
844
853
|
dir: "auto"
|
|
845
854
|
}, [
|
|
846
855
|
p(l.$slots, "source", {}, void 0, !0)
|
|
847
|
-
], 512)) :
|
|
848
|
-
z.value ? (r(), P(u(
|
|
856
|
+
], 512)) : c("", !0),
|
|
857
|
+
z.value ? (r(), P(u(tt), {
|
|
849
858
|
key: 8,
|
|
850
859
|
hideDetails: "",
|
|
851
860
|
config: {
|
|
@@ -862,23 +871,23 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
862
871
|
}
|
|
863
872
|
}, {
|
|
864
873
|
content: m(() => [
|
|
865
|
-
(r(), P(u(
|
|
866
|
-
key: `table_${
|
|
867
|
-
colNames:
|
|
868
|
-
head:
|
|
869
|
-
body:
|
|
870
|
-
config:
|
|
874
|
+
(r(), P(u(at), {
|
|
875
|
+
key: `table_${ct.value}`,
|
|
876
|
+
colNames: Y.value.colNames,
|
|
877
|
+
head: Y.value.head,
|
|
878
|
+
body: Y.value.body,
|
|
879
|
+
config: Y.value.config,
|
|
871
880
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` :${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
872
881
|
onClose: o[2] || (o[2] = (t) => B.value.showTable = !1)
|
|
873
882
|
}, {
|
|
874
883
|
th: m(({ th: t }) => [
|
|
875
|
-
d("div", { innerHTML: t }, null, 8,
|
|
884
|
+
d("div", { innerHTML: t }, null, 8, Nl)
|
|
876
885
|
]),
|
|
877
886
|
td: m(({ td: t }) => [
|
|
878
|
-
|
|
887
|
+
je(H(t.name ? t.name : u(Z)(
|
|
879
888
|
e.value.style.chart.selector.labels.formatter,
|
|
880
889
|
t,
|
|
881
|
-
u(
|
|
890
|
+
u(ee)({
|
|
882
891
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
883
892
|
v: t,
|
|
884
893
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -890,11 +899,11 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
890
899
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
891
900
|
]),
|
|
892
901
|
_: 1
|
|
893
|
-
}, 8, ["config"])) :
|
|
894
|
-
e.value.style.chart.dialog.show ? (r(), P(u(
|
|
902
|
+
}, 8, ["config"])) : c("", !0),
|
|
903
|
+
e.value.style.chart.dialog.show ? (r(), P(u(lt), {
|
|
895
904
|
key: 9,
|
|
896
905
|
ref_key: "dialog",
|
|
897
|
-
ref:
|
|
906
|
+
ref: le,
|
|
898
907
|
onClose: o[3] || (o[3] = (t) => I.value = null),
|
|
899
908
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
900
909
|
color: e.value.style.chart.dialog.color,
|
|
@@ -904,20 +913,20 @@ const al = ["id"], sl = ["xmlns", "viewBox"], ol = ["id"], rl = ["stop-color"],
|
|
|
904
913
|
fullscreenParent: V.value
|
|
905
914
|
}, {
|
|
906
915
|
title: m(() => [
|
|
907
|
-
|
|
916
|
+
je(H(I.value.name), 1)
|
|
908
917
|
]),
|
|
909
918
|
default: m(() => [
|
|
910
|
-
I.value ? (r(), P(u(
|
|
919
|
+
I.value ? (r(), P(u(ut), {
|
|
911
920
|
key: 0,
|
|
912
|
-
config:
|
|
913
|
-
dataset:
|
|
914
|
-
}, null, 8, ["config", "dataset"])) :
|
|
921
|
+
config: ze.value,
|
|
922
|
+
dataset: Le.value
|
|
923
|
+
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
915
924
|
]),
|
|
916
925
|
_: 1
|
|
917
|
-
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) :
|
|
918
|
-
], 46,
|
|
926
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
927
|
+
], 46, rl));
|
|
919
928
|
}
|
|
920
|
-
},
|
|
929
|
+
}, Yl = /* @__PURE__ */ ol(Fl, [["__scopeId", "data-v-7c60b4ce"]]);
|
|
921
930
|
export {
|
|
922
|
-
|
|
931
|
+
Yl as default
|
|
923
932
|
};
|