vue-data-ui 3.0.0-next.0 → 3.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -66
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
- package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
- package/dist/img-D3JvqNF8.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
- package/dist/pdf-DROWzopj.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1018 -166
- package/dist/types/vue-data-ui.d.ts +1018 -166
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
- package/dist/vue-data-ui-BzMRz9Un.js +314 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
- package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
- package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
- package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
- package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
- package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
- package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
- package/package.json +1 -1
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent 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 { u as
|
|
12
|
-
import
|
|
13
|
-
|
|
1
|
+
import { defineAsyncComponent as O, computed as f, ref as u, shallowRef as Be, onMounted as Nt, onBeforeUnmount as Ft, watch as Ue, createElementBlock as n, openBlock as r, unref as i, normalizeStyle as _, normalizeClass as q, createBlock as P, createCommentVNode as c, renderSlot as p, createElementVNode as d, createSlots as Ge, withCtx as m, normalizeProps as K, guardReactiveProps as J, createVNode as We, Fragment as g, renderList as A, mergeProps as je, toDisplayString as V, createTextVNode as Ye, nextTick as Dt } from "vue";
|
|
2
|
+
import { u as It, c as ve, o as Rt, e as he, g as qe, b as Xt, d as Et, p as Q, an as Ke, a9 as Ht, U as Je, V as Vt, W as Bt, X as Ut, F as Gt, I as Wt, i as Z, f as ee, t as jt, a as Yt, q as qt, r as Kt, K as Jt } from "./index-BSa4GlHG.js";
|
|
3
|
+
import { u as Qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import { u as el } from "./usePrinter-j3g1L2nh.js";
|
|
6
|
+
import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
7
|
+
import { u as Qe } from "./useNestedProp-uR74_CFG.js";
|
|
8
|
+
import al from "./Legend-CIElSUHU.js";
|
|
9
|
+
import sl from "./Title-CWxjC3bE.js";
|
|
10
|
+
import { _ as ol } from "./Shape-Blrp5ZfP.js";
|
|
11
|
+
import { u as rl } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
|
+
import nl from "./img-D3JvqNF8.js";
|
|
13
|
+
import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ul = ["id"], cl = ["xmlns", "viewBox"], vl = ["id"], hl = ["stop-color"], dl = ["stop-color"], yl = ["stop-color"], fl = ["stop-color"], gl = ["id"], pl = ["stop-color"], ml = ["stop-color"], bl = ["stop-color"], xl = ["stop-color"], kl = { key: 0 }, Al = ["fill", "d"], wl = ["stroke", "stroke-width", "d"], $l = ["fill", "d"], Cl = ["stroke", "stroke-dasharray", "stroke-width", "d"], _l = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ml = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Pl = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Tl = { key: 0 }, Sl = { key: 0 }, zl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Ol = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], Ll = ["x", "y", "width", "height", "onMouseenter", "onClick"], Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Dl = ["x", "y", "text-anchor", "font-size", "fill"], Il = {
|
|
14
15
|
key: 5,
|
|
15
16
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
17
|
+
}, Rl = ["onClick"], Xl = ["innerHTML"], El = {
|
|
17
18
|
__name: "vue-ui-ridgeline",
|
|
18
19
|
props: {
|
|
19
20
|
config: {
|
|
@@ -30,61 +31,61 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
34
|
+
setup(Ze, { expose: et, emit: tt }) {
|
|
35
|
+
const lt = O(() => import("./vue-ui-accordion-DzF-SPaZ.js")), at = O(() => import("./BaseDraggableDialog-Duz4Bd3A.js")), st = O(() => import("./DataTable-vByThHdN.js")), ot = O(() => import("./PackageVersion-B0wGS6pw.js")), rt = O(() => import("./PenAndPaper-7o0xS-d4.js")), nt = O(() => import("./vue-ui-skeleton-DY48gQ96.js")), it = O(() => import("./UserOptions-BEBaPSlU.js")), ut = O(() => import("./vue-ui-xy-C7uPPKm9.js")), { vue_ui_ridgeline: ct } = It(), k = Ze, L = f({
|
|
35
36
|
get() {
|
|
36
37
|
return !!k.dataset && k.dataset.length;
|
|
37
38
|
},
|
|
38
39
|
set(l) {
|
|
39
40
|
return l;
|
|
40
41
|
}
|
|
41
|
-
}), te =
|
|
42
|
+
}), te = tt, T = u(null), de = u(null), ye = u(null), S = Be(null), I = Be(null), fe = u(null), ge = u(null), pe = u(0), vt = u(0), me = u(0), w = u(ve()), be = u(0), ht = u(0), xe = u(512), v = u(null), R = u(null), le = u(null), ke = u(0);
|
|
42
43
|
function Ae() {
|
|
43
|
-
const l =
|
|
44
|
+
const l = Qe({
|
|
44
45
|
userConfig: k.config,
|
|
45
|
-
defaultConfig:
|
|
46
|
+
defaultConfig: ct
|
|
46
47
|
});
|
|
47
48
|
return l.theme ? {
|
|
48
|
-
...
|
|
49
|
-
userConfig:
|
|
49
|
+
...Qe({
|
|
50
|
+
userConfig: Yt.vue_ui_ridgeline[l.theme] || k.config,
|
|
50
51
|
defaultConfig: l
|
|
51
52
|
}),
|
|
52
|
-
customPalette:
|
|
53
|
+
customPalette: jt[l.theme] || Q
|
|
53
54
|
} : l;
|
|
54
55
|
}
|
|
55
56
|
const e = f({
|
|
56
57
|
get: () => Ae(),
|
|
57
58
|
set: (l) => l
|
|
58
|
-
}), $ =
|
|
59
|
+
}), $ = u(Math.min(
|
|
59
60
|
e.value.style.chart.areas.height,
|
|
60
61
|
e.value.style.chart.areas.rowHeight
|
|
61
62
|
)), {
|
|
62
63
|
userOptionsVisible: ae,
|
|
63
64
|
setUserOptionsVisibility: we,
|
|
64
65
|
keepUserOptionState: $e
|
|
65
|
-
} =
|
|
66
|
-
|
|
66
|
+
} = Qt({ config: e.value }), { svgRef: se } = Zt({ config: e.value.style.chart.title });
|
|
67
|
+
Nt(oe);
|
|
67
68
|
function oe() {
|
|
68
|
-
if (
|
|
69
|
+
if (Rt(k.dataset) ? he({
|
|
69
70
|
componentName: "VueUiRidgeline",
|
|
70
71
|
type: "dataset"
|
|
71
72
|
}) : k.dataset.forEach((l, o) => {
|
|
72
|
-
|
|
73
|
+
qe({
|
|
73
74
|
datasetObject: l,
|
|
74
75
|
requiredAttributes: ["name", "datapoints"]
|
|
75
76
|
}).forEach((t) => {
|
|
76
|
-
|
|
77
|
+
L.value = !1, he({
|
|
77
78
|
componentName: "VueUiRidgeline",
|
|
78
79
|
type: "datasetSerieAttribute",
|
|
79
80
|
property: t,
|
|
80
81
|
index: o
|
|
81
82
|
});
|
|
82
83
|
}), l.datapoints.length && l.datapoints.forEach((t, s) => {
|
|
83
|
-
|
|
84
|
+
qe({
|
|
84
85
|
datasetObject: t,
|
|
85
86
|
requiredAttributes: ["name", "values"]
|
|
86
87
|
}).forEach((a) => {
|
|
87
|
-
|
|
88
|
+
L.value = !1, he({
|
|
88
89
|
componentName: "VueUiRidgeline",
|
|
89
90
|
type: "datasetSerieAttribute",
|
|
90
91
|
property: `datapoint.${a}`,
|
|
@@ -92,13 +93,13 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
92
93
|
});
|
|
93
94
|
});
|
|
94
95
|
});
|
|
95
|
-
}),
|
|
96
|
+
}), ht.value = k.dataset.length, $.value = Math.min(
|
|
96
97
|
e.value.style.chart.areas.height,
|
|
97
98
|
e.value.style.chart.areas.rowHeight
|
|
98
99
|
), e.value.responsive) {
|
|
99
|
-
const l =
|
|
100
|
-
const { width: o, height: t } =
|
|
101
|
-
chart:
|
|
100
|
+
const l = tl(() => {
|
|
101
|
+
const { width: o, height: t } = ll({
|
|
102
|
+
chart: T.value,
|
|
102
103
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
103
104
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
104
105
|
source: fe.value,
|
|
@@ -109,35 +110,35 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
109
110
|
xe.value = o, $.value = t / k.dataset.length, ke.value = t;
|
|
110
111
|
});
|
|
111
112
|
});
|
|
112
|
-
|
|
113
|
+
S.value && (I.value && S.value.unobserve(I.value), S.value.disconnect()), S.value = new ResizeObserver(l), I.value = T.value.parentNode, S.value.observe(I.value);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
Ft(() => {
|
|
117
|
+
S.value && (I.value && S.value.unobserve(I.value), S.value.disconnect());
|
|
117
118
|
});
|
|
118
|
-
const { isPrinting: Ce, isImaging: _e, generatePdf: Me, generateImage: Pe } =
|
|
119
|
+
const { isPrinting: Ce, isImaging: _e, generatePdf: Me, generateImage: Pe } = el({
|
|
119
120
|
elementId: `vue-ui-ridgeline_${w.value}`,
|
|
120
121
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
121
122
|
options: e.value.userOptions.print
|
|
122
|
-
}),
|
|
123
|
+
}), dt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), yt = f(() => Xt(e.value.customPalette)), B = u({
|
|
123
124
|
showTable: e.value.table.show
|
|
124
125
|
});
|
|
125
|
-
|
|
126
|
+
Ue(() => k.config, (l) => {
|
|
126
127
|
e.value = Ae(), ae.value = !e.value.userOptions.showOnChartHover, oe(), pe.value += 1, me.value += 1, $.value = Math.min(
|
|
127
128
|
e.value.style.chart.areas.height,
|
|
128
129
|
e.value.style.chart.areas.rowHeight
|
|
129
130
|
), B.value.showTable = e.value.table.show;
|
|
130
|
-
}, { deep: !0 }),
|
|
131
|
+
}, { deep: !0 }), Ue(() => k.dataset, oe, { deep: !0 });
|
|
131
132
|
const re = f(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
132
133
|
function Te(l) {
|
|
133
|
-
|
|
134
|
+
z.value.includes(l) ? z.value = z.value.filter((o) => o !== l) : z.value.push(l), te("selectLegend", E.value);
|
|
134
135
|
}
|
|
135
|
-
const M = f(() =>
|
|
136
|
+
const M = f(() => L.value ? k.dataset.map((l, o) => ({
|
|
136
137
|
...l,
|
|
137
|
-
labelLen:
|
|
138
|
+
labelLen: pt(l.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
138
139
|
uid: ve(),
|
|
139
140
|
datapoints: l.datapoints.map((t, s) => {
|
|
140
|
-
const a = t.color ?
|
|
141
|
+
const a = t.color ? Et(t.color) : yt.value[s] || Q[s] || Q[s % Q.length], h = Ke(t.name);
|
|
141
142
|
return {
|
|
142
143
|
...t,
|
|
143
144
|
color: a,
|
|
@@ -158,7 +159,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
158
159
|
height: Se.value,
|
|
159
160
|
padding: l
|
|
160
161
|
};
|
|
161
|
-
}), ne = f(() => Math.max(...M.value.flatMap((l) => l.datapoints.map((o) => o.values.length)))), W = f(() =>
|
|
162
|
+
}), ne = f(() => Math.max(...M.value.flatMap((l) => l.datapoints.map((o) => o.values.length)))), W = f(() => rl({
|
|
162
163
|
values: e.value.style.chart.xAxis.labels.values,
|
|
163
164
|
maxDatapoints: ne.value,
|
|
164
165
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
@@ -178,103 +179,103 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
178
179
|
});
|
|
179
180
|
return s;
|
|
180
181
|
});
|
|
181
|
-
function
|
|
182
|
+
function ft(l) {
|
|
182
183
|
te("selectX", M.value.map((o) => o.datapoints.map((t) => ({
|
|
183
184
|
dp: t,
|
|
184
185
|
selected: t.values[l.index]
|
|
185
186
|
}))));
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function gt(l, o) {
|
|
188
189
|
return l.length * o / 2 + o;
|
|
189
190
|
}
|
|
190
191
|
function ze(l, o, t) {
|
|
191
|
-
const s =
|
|
192
|
+
const s = gt(o, t);
|
|
192
193
|
return l + s > b.value.right;
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
+
function pt(l, o, t = "sans-serif") {
|
|
195
196
|
const a = document.createElement("canvas").getContext("2d"), h = typeof o == "number" ? `${o}px` : o;
|
|
196
197
|
return a.font = `${h} ${t}`, a.measureText(l).width;
|
|
197
198
|
}
|
|
198
|
-
const
|
|
199
|
+
const E = f(() => {
|
|
199
200
|
$.value;
|
|
200
|
-
const l = Math.max(...M.value.map((x) => x.labelLen)), o = Math.max(...M.value.flatMap((x) => x.datapoints.map((
|
|
201
|
+
const l = Math.max(...M.value.map((x) => x.labelLen)), o = Math.max(...M.value.flatMap((x) => x.datapoints.map((N) => N.values.length))), t = Math.max(...M.value.flatMap((x) => x.datapoints.flatMap((N) => N.values))), s = Math.min(...M.value.flatMap((x) => x.datapoints.flatMap((N) => N.values))), a = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, h = (b.value.width - a) / o, C = Math.abs(Math.min(s, 0)), Re = t + C;
|
|
201
202
|
function Xe(x) {
|
|
202
|
-
return isNaN(x /
|
|
203
|
+
return isNaN(x / Re) ? 0 : x / Re;
|
|
203
204
|
}
|
|
204
|
-
return M.value.map((x,
|
|
205
|
-
const
|
|
205
|
+
return M.value.map((x, N) => {
|
|
206
|
+
const Ee = b.value.top + $.value * N, F = b.value.top + Ee + $.value * re.value * (1 - Xe(C));
|
|
206
207
|
return {
|
|
207
208
|
...x,
|
|
208
209
|
label: {
|
|
209
210
|
x: a - e.value.style.chart.yAxis.labels.fontSize,
|
|
210
|
-
y:
|
|
211
|
+
y: F
|
|
211
212
|
},
|
|
212
213
|
datapoints: x.datapoints.map((U) => {
|
|
213
|
-
const
|
|
214
|
-
const
|
|
214
|
+
const D = U.values.map((G, Tt) => {
|
|
215
|
+
const St = isNaN(G) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(G) ? 0 : G || 0, zt = a + h * Tt, Ot = b.value.top + Ee + $.value * re.value * (1 - Xe(St + C)), Lt = G === Math.max(...U.values);
|
|
215
216
|
return {
|
|
216
|
-
x:
|
|
217
|
-
y:
|
|
217
|
+
x: zt,
|
|
218
|
+
y: Ot,
|
|
218
219
|
value: G,
|
|
219
|
-
isMaxPoint:
|
|
220
|
-
zero:
|
|
220
|
+
isMaxPoint: Lt,
|
|
221
|
+
zero: F
|
|
221
222
|
};
|
|
222
|
-
}),
|
|
223
|
-
e.value.style.chart.areas.smooth ?
|
|
223
|
+
}), Ct = `${Ht(D, F, !1, !1)}`, _t = `M ${a},${F} ${Je(D)} ${D.at(-1).x},${F}`, Mt = `M ${a},${F} ${D.at(-1).x},${F}`, He = `M ${Vt(D)}`, Ve = `M ${Je(D)}`, Pt = Bt(
|
|
224
|
+
e.value.style.chart.areas.smooth ? He : Ve
|
|
224
225
|
);
|
|
225
226
|
return {
|
|
226
227
|
...U,
|
|
227
228
|
uid: ve(),
|
|
228
|
-
plots:
|
|
229
|
-
smoothPath:
|
|
230
|
-
straightPath:
|
|
231
|
-
zeroPath:
|
|
232
|
-
pathLength:
|
|
233
|
-
smoothPathRidge:
|
|
234
|
-
straightPathRidge:
|
|
229
|
+
plots: D,
|
|
230
|
+
smoothPath: Ct,
|
|
231
|
+
straightPath: _t,
|
|
232
|
+
zeroPath: Mt,
|
|
233
|
+
pathLength: Pt,
|
|
234
|
+
smoothPathRidge: He,
|
|
235
|
+
straightPathRidge: Ve
|
|
235
236
|
};
|
|
236
|
-
}).filter((U) => !
|
|
237
|
+
}).filter((U) => !z.value.includes(U.id))
|
|
237
238
|
};
|
|
238
239
|
});
|
|
239
|
-
}),
|
|
240
|
-
function
|
|
240
|
+
}), z = u([]);
|
|
241
|
+
function mt(l) {
|
|
241
242
|
const o = /* @__PURE__ */ new Map();
|
|
242
243
|
return l.forEach((t) => {
|
|
243
244
|
t.datapoints.forEach((s, a) => {
|
|
244
|
-
const h =
|
|
245
|
+
const h = Ke(s.name);
|
|
245
246
|
o.has(h) || o.set(h, {
|
|
246
247
|
id: h,
|
|
247
248
|
name: s.name,
|
|
248
249
|
color: s.color,
|
|
249
250
|
shape: "circle",
|
|
250
251
|
segregate: () => Te(h),
|
|
251
|
-
isSegregated:
|
|
252
|
-
opacity:
|
|
252
|
+
isSegregated: z.value.includes(h),
|
|
253
|
+
opacity: z.value.includes(h) ? 0.5 : 1
|
|
253
254
|
});
|
|
254
255
|
});
|
|
255
256
|
}), Array.from(o.values());
|
|
256
257
|
}
|
|
257
|
-
const
|
|
258
|
+
const ie = f(() => mt(M.value)), bt = f(() => ({
|
|
258
259
|
cy: "donut-div-legend",
|
|
259
260
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
260
261
|
color: e.value.style.chart.legend.color,
|
|
261
262
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
262
263
|
paddingBottom: 12,
|
|
263
264
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
264
|
-
})),
|
|
265
|
-
function
|
|
266
|
-
|
|
265
|
+
})), H = u(!1);
|
|
266
|
+
function Oe(l) {
|
|
267
|
+
H.value = l, be.value += 1;
|
|
267
268
|
}
|
|
268
|
-
const
|
|
269
|
+
const Le = u({}), Ne = u([]);
|
|
269
270
|
function xt(l) {
|
|
270
|
-
te("selectDatapoint", l), e.value.style.chart.dialog.show && (
|
|
271
|
+
te("selectDatapoint", l), e.value.style.chart.dialog.show && (Ne.value = l.datapoints.map((o) => ({
|
|
271
272
|
name: o.name,
|
|
272
273
|
color: o.color,
|
|
273
274
|
type: "line",
|
|
274
275
|
useArea: !0,
|
|
275
276
|
smooth: e.value.style.chart.areas.smooth,
|
|
276
277
|
series: o.values
|
|
277
|
-
})),
|
|
278
|
+
})), R.value = l, Le.value = Jt({
|
|
278
279
|
...e.value.style.chart.dialog.xyChart,
|
|
279
280
|
responsive: !0,
|
|
280
281
|
// Overriding
|
|
@@ -301,21 +302,21 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
301
302
|
}
|
|
302
303
|
}), le.value && le.value.open());
|
|
303
304
|
}
|
|
304
|
-
const
|
|
305
|
+
const ue = u(null);
|
|
305
306
|
function kt(l) {
|
|
306
|
-
|
|
307
|
+
ue.value = l;
|
|
307
308
|
}
|
|
308
309
|
function At() {
|
|
309
|
-
|
|
310
|
+
ue.value = null;
|
|
310
311
|
}
|
|
311
|
-
const j =
|
|
312
|
+
const j = u(!1);
|
|
312
313
|
function ce() {
|
|
313
314
|
j.value = !j.value;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Fe() {
|
|
316
317
|
B.value.showTable = !B.value.showTable;
|
|
317
318
|
}
|
|
318
|
-
const
|
|
319
|
+
const De = f(() => ({ body: E.value.flatMap((t) => t.datapoints.flatMap((s) => ({
|
|
319
320
|
...s,
|
|
320
321
|
rowName: `${t.name}: ${s.name}`
|
|
321
322
|
}))).map((t) => [
|
|
@@ -347,39 +348,53 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
347
348
|
...W.value.map((s) => s.text)
|
|
348
349
|
],
|
|
349
350
|
head: l,
|
|
350
|
-
body:
|
|
351
|
+
body: De.value.body,
|
|
351
352
|
config: o
|
|
352
353
|
};
|
|
353
354
|
});
|
|
354
|
-
function
|
|
355
|
-
|
|
355
|
+
function Ie(l = null) {
|
|
356
|
+
Dt(() => {
|
|
356
357
|
const o = [
|
|
357
358
|
[e.value.table.columnNames.series, ...W.map((a) => [a.text])],
|
|
358
|
-
...
|
|
359
|
+
...De.value.body.map((a, h) => [a[0].name, ...a.slice(1)])
|
|
359
360
|
], t = [
|
|
360
361
|
[e.value.style.chart.title.text],
|
|
361
362
|
[e.value.style.chart.title.subtitle.text]
|
|
362
|
-
].concat(o), s =
|
|
363
|
-
l ? l(s) :
|
|
363
|
+
].concat(o), s = qt(t);
|
|
364
|
+
l ? l(s) : Kt({
|
|
364
365
|
csvContent: s,
|
|
365
366
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
366
367
|
});
|
|
367
368
|
});
|
|
368
369
|
}
|
|
369
370
|
function wt() {
|
|
370
|
-
return
|
|
371
|
+
return E.value;
|
|
371
372
|
}
|
|
372
|
-
|
|
373
|
+
async function $t({ scale: l = 2 } = {}) {
|
|
374
|
+
if (!T.value) return;
|
|
375
|
+
const { width: o, height: t } = T.value.getBoundingClientRect(), s = o / t, { imageUri: a, base64: h } = await nl({ domElement: T.value, base64: !0, img: !0, scale: l });
|
|
376
|
+
return {
|
|
377
|
+
imageUri: a,
|
|
378
|
+
base64: h,
|
|
379
|
+
title: e.value.style.chart.title.text,
|
|
380
|
+
width: o,
|
|
381
|
+
height: t,
|
|
382
|
+
aspectRatio: s
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
return et({
|
|
373
386
|
getData: wt,
|
|
387
|
+
getImage: $t,
|
|
374
388
|
generateImage: Pe,
|
|
375
389
|
generatePdf: Me,
|
|
376
|
-
generateCsv:
|
|
390
|
+
generateCsv: Ie,
|
|
377
391
|
toggleAnnotator: ce,
|
|
378
|
-
toggleTable:
|
|
392
|
+
toggleTable: Fe,
|
|
393
|
+
toggleFullscreen: Oe
|
|
379
394
|
}), (l, o) => (r(), n("div", {
|
|
380
395
|
ref_key: "ridgelineChart",
|
|
381
|
-
ref:
|
|
382
|
-
class: q(`vue-ui-ridgeline ${
|
|
396
|
+
ref: T,
|
|
397
|
+
class: q(`vue-ui-ridgeline ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
383
398
|
id: `vue-ui-ridgeline_${w.value}`,
|
|
384
399
|
style: _({
|
|
385
400
|
fontFamily: e.value.style.fontFamily,
|
|
@@ -388,19 +403,19 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
388
403
|
background: e.value.style.chart.backgroundColor,
|
|
389
404
|
height: e.value.responsive ? "100%" : void 0
|
|
390
405
|
}),
|
|
391
|
-
onMouseenter: o[4] || (o[4] = () =>
|
|
392
|
-
onMouseleave: o[5] || (o[5] = () =>
|
|
406
|
+
onMouseenter: o[4] || (o[4] = () => i(we)(!0)),
|
|
407
|
+
onMouseleave: o[5] || (o[5] = () => i(we)(!1))
|
|
393
408
|
}, [
|
|
394
|
-
e.value.userOptions.buttons.annotator &&
|
|
409
|
+
e.value.userOptions.buttons.annotator && i(se) ? (r(), P(i(rt), {
|
|
395
410
|
key: 0,
|
|
396
411
|
color: e.value.style.chart.color,
|
|
397
412
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
398
413
|
active: j.value,
|
|
399
|
-
svgRef:
|
|
414
|
+
svgRef: i(se),
|
|
400
415
|
onClose: ce
|
|
401
416
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : c("", !0),
|
|
402
417
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
403
|
-
|
|
418
|
+
dt.value ? (r(), n("div", {
|
|
404
419
|
key: 1,
|
|
405
420
|
ref_key: "noTitle",
|
|
406
421
|
ref: ge,
|
|
@@ -413,7 +428,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
413
428
|
ref: de,
|
|
414
429
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
415
430
|
}, [
|
|
416
|
-
(r(), P(
|
|
431
|
+
(r(), P(sl, {
|
|
417
432
|
key: `title_${pe.value}`,
|
|
418
433
|
config: {
|
|
419
434
|
title: {
|
|
@@ -427,13 +442,13 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
427
442
|
}
|
|
428
443
|
}, null, 8, ["config"]))
|
|
429
444
|
], 512)) : c("", !0),
|
|
430
|
-
e.value.userOptions.show &&
|
|
445
|
+
e.value.userOptions.show && L.value && (i($e) || i(ae)) ? (r(), P(i(it), {
|
|
431
446
|
ref: "details",
|
|
432
447
|
key: `user_option_${be.value}`,
|
|
433
448
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
434
449
|
color: e.value.style.chart.color,
|
|
435
|
-
isPrinting:
|
|
436
|
-
isImaging:
|
|
450
|
+
isPrinting: i(Ce),
|
|
451
|
+
isImaging: i(_e),
|
|
437
452
|
uid: w.value,
|
|
438
453
|
hasTooltip: !1,
|
|
439
454
|
callbacks: e.value.userOptions.callbacks,
|
|
@@ -443,23 +458,24 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
443
458
|
hasTable: e.value.userOptions.buttons.table,
|
|
444
459
|
hasLabel: !1,
|
|
445
460
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
446
|
-
isFullscreen:
|
|
447
|
-
|
|
461
|
+
isFullscreen: H.value,
|
|
462
|
+
printScale: e.value.userOptions.print.scale,
|
|
463
|
+
chartElement: T.value,
|
|
448
464
|
position: e.value.userOptions.position,
|
|
449
465
|
isTooltip: !1,
|
|
450
466
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
451
467
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
452
468
|
isAnnotation: j.value,
|
|
453
469
|
style: _({
|
|
454
|
-
visibility:
|
|
470
|
+
visibility: i($e) ? i(ae) ? "visible" : "hidden" : "visible"
|
|
455
471
|
}),
|
|
456
|
-
onToggleFullscreen:
|
|
457
|
-
onGeneratePdf:
|
|
458
|
-
onGenerateCsv:
|
|
459
|
-
onGenerateImage:
|
|
460
|
-
onToggleTable:
|
|
472
|
+
onToggleFullscreen: Oe,
|
|
473
|
+
onGeneratePdf: i(Me),
|
|
474
|
+
onGenerateCsv: Ie,
|
|
475
|
+
onGenerateImage: i(Pe),
|
|
476
|
+
onToggleTable: Fe,
|
|
461
477
|
onToggleAnnotator: ce
|
|
462
|
-
},
|
|
478
|
+
}, Ge({ _: 2 }, [
|
|
463
479
|
l.$slots.menuIcon ? {
|
|
464
480
|
name: "menuIcon",
|
|
465
481
|
fn: m(({ isOpen: t, color: s }) => [
|
|
@@ -516,19 +532,19 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
516
532
|
]),
|
|
517
533
|
key: "7"
|
|
518
534
|
} : void 0
|
|
519
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
520
|
-
|
|
535
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
536
|
+
L.value ? (r(), n("svg", {
|
|
521
537
|
key: 4,
|
|
522
538
|
ref_key: "svgRef",
|
|
523
539
|
ref: se,
|
|
524
|
-
xmlns:
|
|
525
|
-
class: q({ "vue-data-ui-fullscreen--on":
|
|
540
|
+
xmlns: i(Ut),
|
|
541
|
+
class: q({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
526
542
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
527
543
|
style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${ke.value}px; width: 100%;` : ""}`)
|
|
528
544
|
}, [
|
|
529
|
-
|
|
545
|
+
We(i(ot)),
|
|
530
546
|
d("defs", null, [
|
|
531
|
-
(r(!0), n(g, null, A(
|
|
547
|
+
(r(!0), n(g, null, A(ie.value, (t, s) => (r(), n("linearGradient", {
|
|
532
548
|
id: `gradient-${t.id}-${w.value}`,
|
|
533
549
|
x1: "50%",
|
|
534
550
|
y1: "0%",
|
|
@@ -539,24 +555,24 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
539
555
|
offset: "0%",
|
|
540
556
|
"stop-color": t.color,
|
|
541
557
|
"stop-opacity": "1"
|
|
542
|
-
}, null, 8,
|
|
558
|
+
}, null, 8, hl),
|
|
543
559
|
d("stop", {
|
|
544
560
|
offset: "30%",
|
|
545
561
|
"stop-color": t.color,
|
|
546
562
|
"stop-opacity": "0.7"
|
|
547
|
-
}, null, 8,
|
|
563
|
+
}, null, 8, dl),
|
|
548
564
|
d("stop", {
|
|
549
565
|
offset: "70%",
|
|
550
566
|
"stop-color": t.color,
|
|
551
567
|
"stop-opacity": "0.3"
|
|
552
|
-
}, null, 8,
|
|
568
|
+
}, null, 8, yl),
|
|
553
569
|
d("stop", {
|
|
554
570
|
offset: "100%",
|
|
555
571
|
"stop-color": t.color,
|
|
556
572
|
"stop-opacity": "0.1"
|
|
557
|
-
}, null, 8,
|
|
558
|
-
], 8,
|
|
559
|
-
(r(!0), n(g, null, A(
|
|
573
|
+
}, null, 8, fl)
|
|
574
|
+
], 8, vl))), 256)),
|
|
575
|
+
(r(!0), n(g, null, A(E.value, (t, s) => (r(), n(g, null, [
|
|
560
576
|
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("linearGradient", {
|
|
561
577
|
key: `grad${a.id}`,
|
|
562
578
|
id: `gradient-single-${w.value}-${a.uid}`,
|
|
@@ -569,34 +585,34 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
569
585
|
offset: "0%",
|
|
570
586
|
"stop-color": a.color,
|
|
571
587
|
"stop-opacity": "1"
|
|
572
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, pl),
|
|
573
589
|
d("stop", {
|
|
574
590
|
offset: "30%",
|
|
575
591
|
"stop-color": a.color,
|
|
576
592
|
"stop-opacity": "0.7"
|
|
577
|
-
}, null, 8,
|
|
593
|
+
}, null, 8, ml),
|
|
578
594
|
d("stop", {
|
|
579
595
|
offset: "70%",
|
|
580
596
|
"stop-color": a.color,
|
|
581
597
|
"stop-opacity": "0.3"
|
|
582
|
-
}, null, 8,
|
|
598
|
+
}, null, 8, bl),
|
|
583
599
|
d("stop", {
|
|
584
600
|
offset: "100%",
|
|
585
601
|
"stop-color": a.color,
|
|
586
602
|
"stop-opacity": "0.1"
|
|
587
|
-
}, null, 8,
|
|
588
|
-
], 8,
|
|
603
|
+
}, null, 8, xl)
|
|
604
|
+
], 8, gl))), 128))
|
|
589
605
|
], 64))), 256))
|
|
590
606
|
]),
|
|
591
|
-
(r(!0), n(g, null, A(
|
|
607
|
+
(r(!0), n(g, null, A(E.value, (t, s) => (r(), n("g", {
|
|
592
608
|
key: `ds-${s}`
|
|
593
609
|
}, [
|
|
594
610
|
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("g", {
|
|
595
611
|
key: a.id
|
|
596
612
|
}, [
|
|
597
|
-
l.$slots.pattern ? (r(), n("g",
|
|
613
|
+
l.$slots.pattern ? (r(), n("g", kl, [
|
|
598
614
|
d("defs", null, [
|
|
599
|
-
p(l.$slots, "pattern",
|
|
615
|
+
p(l.$slots, "pattern", je({ ref_for: !0 }, { datapointIndex: s, seriesIndex: h, patternId: `pattern_${w.value}_${a.uid}` }), void 0, !0)
|
|
600
616
|
])
|
|
601
617
|
])) : c("", !0),
|
|
602
618
|
d("path", {
|
|
@@ -607,7 +623,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
607
623
|
style: _({
|
|
608
624
|
opacity: e.value.style.chart.areas.opacity
|
|
609
625
|
})
|
|
610
|
-
}, null, 12,
|
|
626
|
+
}, null, 12, Al),
|
|
611
627
|
d("path", {
|
|
612
628
|
fill: "none",
|
|
613
629
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -620,7 +636,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
620
636
|
strokeDasharray: a.pathLength,
|
|
621
637
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
622
638
|
})
|
|
623
|
-
}, null, 14,
|
|
639
|
+
}, null, 14, wl),
|
|
624
640
|
d("path", {
|
|
625
641
|
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${w.value})` : `url(#gradient-single-${w.value}-${a.uid})` : a.color,
|
|
626
642
|
stroke: "none",
|
|
@@ -632,7 +648,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
632
648
|
strokeDasharray: a.pathLength,
|
|
633
649
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
634
650
|
})
|
|
635
|
-
}, null, 14,
|
|
651
|
+
}, null, 14, $l),
|
|
636
652
|
e.value.style.chart.zeroLine.show ? (r(), n("path", {
|
|
637
653
|
key: 1,
|
|
638
654
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -640,7 +656,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
640
656
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
641
657
|
d: a.zeroPath,
|
|
642
658
|
"stroke-linecap": "round"
|
|
643
|
-
}, null, 8,
|
|
659
|
+
}, null, 8, Cl)) : c("", !0),
|
|
644
660
|
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(g, { key: 2 }, A(a.plots, (C) => (r(), n(g, null, [
|
|
645
661
|
C.isMaxPoint ? (r(), n("line", {
|
|
646
662
|
key: 0,
|
|
@@ -648,11 +664,11 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
648
664
|
y1: C.y,
|
|
649
665
|
x2: C.x,
|
|
650
666
|
y2: C.zero,
|
|
651
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ?
|
|
667
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? i(Gt)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
652
668
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
653
669
|
"stroke-linecap": "round",
|
|
654
670
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
655
|
-
}, null, 8,
|
|
671
|
+
}, null, 8, _l)) : c("", !0)
|
|
656
672
|
], 64))), 256)) : c("", !0),
|
|
657
673
|
a.plots.length === 1 ? (r(), n("circle", {
|
|
658
674
|
key: 3,
|
|
@@ -665,7 +681,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
665
681
|
style: {
|
|
666
682
|
pointerEvents: "none"
|
|
667
683
|
}
|
|
668
|
-
}, null, 8,
|
|
684
|
+
}, null, 8, Ml)) : c("", !0)
|
|
669
685
|
]))), 128)),
|
|
670
686
|
d("text", {
|
|
671
687
|
x: t.label.x,
|
|
@@ -677,14 +693,14 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
677
693
|
style: _({
|
|
678
694
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
679
695
|
}),
|
|
680
|
-
"text-decoration": e.value.style.chart.dialog.show && (
|
|
696
|
+
"text-decoration": e.value.style.chart.dialog.show && (ue.value === s || R.value && t.uid === R.value.uid) ? "underline" : "",
|
|
681
697
|
onMouseenter: (a) => kt(s),
|
|
682
698
|
onMouseleave: At,
|
|
683
699
|
onClick: (a) => xt(t)
|
|
684
|
-
},
|
|
700
|
+
}, V(t.name), 45, Pl)
|
|
685
701
|
]))), 128)),
|
|
686
|
-
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g",
|
|
687
|
-
(r(!0), n(g, null, A(X.value, (t, s) => p(l.$slots, "time-label",
|
|
702
|
+
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", Tl, [
|
|
703
|
+
(r(!0), n(g, null, A(X.value, (t, s) => p(l.$slots, "time-label", je({ ref_for: !0 }, {
|
|
688
704
|
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 === X.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(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
689
705
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
690
706
|
content: t.label,
|
|
@@ -694,7 +710,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
694
710
|
x: t.selectorX,
|
|
695
711
|
y: b.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
696
712
|
}), () => [
|
|
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 === X.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(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (r(), n("g",
|
|
713
|
+
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 === X.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(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (r(), n("g", Sl, [
|
|
698
714
|
String(t.label).includes(`
|
|
699
715
|
`) ? (r(), n("text", {
|
|
700
716
|
key: 1,
|
|
@@ -706,14 +722,14 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
706
722
|
style: _({
|
|
707
723
|
opacity: v.value ? v.value.index === s ? 1 : 0.2 : 1
|
|
708
724
|
}),
|
|
709
|
-
innerHTML:
|
|
725
|
+
innerHTML: i(Wt)({
|
|
710
726
|
content: String(t.label),
|
|
711
727
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
712
728
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
713
729
|
x: 0,
|
|
714
730
|
y: 0
|
|
715
731
|
})
|
|
716
|
-
}, null, 12,
|
|
732
|
+
}, null, 12, Ol)) : (r(), n("text", {
|
|
717
733
|
key: 0,
|
|
718
734
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
719
735
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
@@ -723,7 +739,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
723
739
|
style: _({
|
|
724
740
|
opacity: v.value ? v.value.index === s ? 1 : 0.2 : 1
|
|
725
741
|
})
|
|
726
|
-
},
|
|
742
|
+
}, V(t.label), 13, zl))
|
|
727
743
|
])) : c("", !0)
|
|
728
744
|
], !0)), 256))
|
|
729
745
|
])) : c("", !0),
|
|
@@ -736,8 +752,8 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
736
752
|
fill: "transparent",
|
|
737
753
|
onMouseenter: (a) => v.value = t,
|
|
738
754
|
onMouseleave: o[0] || (o[0] = (a) => v.value = null),
|
|
739
|
-
onClick: () =>
|
|
740
|
-
}, null, 40,
|
|
755
|
+
onClick: () => ft(t)
|
|
756
|
+
}, null, 40, Ll))), 256)),
|
|
741
757
|
e.value.style.chart.selector.show && v.value ? (r(), n("line", {
|
|
742
758
|
key: 0,
|
|
743
759
|
x1: v.value.selectorX,
|
|
@@ -749,8 +765,8 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
749
765
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
750
766
|
"stroke-linecap": "round",
|
|
751
767
|
style: { pointerEvents: "none" }
|
|
752
|
-
}, null, 8,
|
|
753
|
-
v.value ? (r(!0), n(g, { key: 1 }, A(
|
|
768
|
+
}, null, 8, Nl)) : c("", !0),
|
|
769
|
+
v.value ? (r(!0), n(g, { key: 1 }, A(E.value, (t) => (r(), n(g, null, [
|
|
754
770
|
(r(!0), n(g, null, A(t.datapoints, (s) => (r(), n(g, null, [
|
|
755
771
|
(r(!0), n(g, null, A(s.plots, (a, h) => (r(), n(g, null, [
|
|
756
772
|
v.value && v.value.index === h ? (r(), n("circle", {
|
|
@@ -764,15 +780,15 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
764
780
|
style: {
|
|
765
781
|
pointerEvents: "none"
|
|
766
782
|
}
|
|
767
|
-
}, null, 8,
|
|
783
|
+
}, null, 8, Fl)) : c("", !0),
|
|
768
784
|
v.value && v.value.index === h ? (r(), n("text", {
|
|
769
785
|
key: 1,
|
|
770
786
|
x: ze(
|
|
771
787
|
a.x,
|
|
772
|
-
|
|
788
|
+
i(Z)(
|
|
773
789
|
e.value.style.chart.selector.labels.formatter,
|
|
774
790
|
a.value,
|
|
775
|
-
|
|
791
|
+
i(ee)({
|
|
776
792
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
777
793
|
v: a.value,
|
|
778
794
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -784,10 +800,10 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
784
800
|
y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
785
801
|
"text-anchor": ze(
|
|
786
802
|
a.x,
|
|
787
|
-
|
|
803
|
+
i(Z)(
|
|
788
804
|
e.value.style.chart.selector.labels.formatter,
|
|
789
805
|
a.value,
|
|
790
|
-
|
|
806
|
+
i(ee)({
|
|
791
807
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
792
808
|
v: a.value,
|
|
793
809
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -801,26 +817,26 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
801
817
|
style: {
|
|
802
818
|
pointerEvents: "none"
|
|
803
819
|
}
|
|
804
|
-
},
|
|
820
|
+
}, V(i(Z)(
|
|
805
821
|
e.value.style.chart.selector.labels.formatter,
|
|
806
822
|
a.value,
|
|
807
|
-
|
|
823
|
+
i(ee)({
|
|
808
824
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
809
825
|
v: a.value,
|
|
810
826
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
811
827
|
r: e.value.style.chart.selector.labels.rounding
|
|
812
828
|
})
|
|
813
|
-
)), 9,
|
|
829
|
+
)), 9, Dl)) : c("", !0)
|
|
814
830
|
], 64))), 256))
|
|
815
831
|
], 64))), 256))
|
|
816
832
|
], 64))), 256)) : c("", !0)
|
|
817
833
|
]),
|
|
818
834
|
p(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
819
|
-
], 14,
|
|
820
|
-
l.$slots.watermark ? (r(), n("div",
|
|
821
|
-
p(l.$slots, "watermark", K(J({ isPrinting:
|
|
835
|
+
], 14, cl)) : c("", !0),
|
|
836
|
+
l.$slots.watermark ? (r(), n("div", Il, [
|
|
837
|
+
p(l.$slots, "watermark", K(J({ isPrinting: i(Ce) || i(_e) })), void 0, !0)
|
|
822
838
|
])) : c("", !0),
|
|
823
|
-
|
|
839
|
+
L.value ? c("", !0) : (r(), P(i(nt), {
|
|
824
840
|
key: 6,
|
|
825
841
|
config: {
|
|
826
842
|
type: "ridgeline",
|
|
@@ -836,24 +852,24 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
836
852
|
ref_key: "chartLegend",
|
|
837
853
|
ref: ye
|
|
838
854
|
}, [
|
|
839
|
-
e.value.style.chart.legend.show ? (r(), P(
|
|
855
|
+
e.value.style.chart.legend.show ? (r(), P(al, {
|
|
840
856
|
key: `legend_${me.value}`,
|
|
841
|
-
legendSet:
|
|
842
|
-
config:
|
|
857
|
+
legendSet: ie.value,
|
|
858
|
+
config: bt.value,
|
|
843
859
|
onClickMarker: o[1] || (o[1] = ({ legend: t }) => Te(t.id))
|
|
844
|
-
},
|
|
860
|
+
}, Ge({
|
|
845
861
|
item: m(({ legend: t }) => [
|
|
846
862
|
d("div", {
|
|
847
|
-
style: _(`opacity:${
|
|
863
|
+
style: _(`opacity:${z.value.includes(t.id) ? 0.5 : 1}`),
|
|
848
864
|
onClick: (s) => t.segregate()
|
|
849
|
-
},
|
|
865
|
+
}, V(t.name), 13, Rl)
|
|
850
866
|
]),
|
|
851
867
|
_: 2
|
|
852
868
|
}, [
|
|
853
869
|
l.$slots.pattern ? {
|
|
854
870
|
name: "legend-pattern",
|
|
855
871
|
fn: m(({ legend: t, index: s }) => [
|
|
856
|
-
|
|
872
|
+
We(ol, {
|
|
857
873
|
shape: t.shape,
|
|
858
874
|
radius: 30,
|
|
859
875
|
stroke: "none",
|
|
@@ -864,7 +880,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
864
880
|
key: "0"
|
|
865
881
|
} : void 0
|
|
866
882
|
]), 1032, ["legendSet", "config"])) : c("", !0),
|
|
867
|
-
p(l.$slots, "legend", { legend:
|
|
883
|
+
p(l.$slots, "legend", { legend: ie.value }, void 0, !0)
|
|
868
884
|
], 512),
|
|
869
885
|
l.$slots.source ? (r(), n("div", {
|
|
870
886
|
key: 7,
|
|
@@ -874,7 +890,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
874
890
|
}, [
|
|
875
891
|
p(l.$slots, "source", {}, void 0, !0)
|
|
876
892
|
], 512)) : c("", !0),
|
|
877
|
-
|
|
893
|
+
L.value ? (r(), P(i(lt), {
|
|
878
894
|
key: 8,
|
|
879
895
|
hideDetails: "",
|
|
880
896
|
config: {
|
|
@@ -891,8 +907,8 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
891
907
|
}
|
|
892
908
|
}, {
|
|
893
909
|
content: m(() => [
|
|
894
|
-
(r(), P(
|
|
895
|
-
key: `table_${
|
|
910
|
+
(r(), P(i(st), {
|
|
911
|
+
key: `table_${vt.value}`,
|
|
896
912
|
colNames: Y.value.colNames,
|
|
897
913
|
head: Y.value.head,
|
|
898
914
|
body: Y.value.body,
|
|
@@ -901,13 +917,13 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
901
917
|
onClose: o[2] || (o[2] = (t) => B.value.showTable = !1)
|
|
902
918
|
}, {
|
|
903
919
|
th: m(({ th: t }) => [
|
|
904
|
-
d("div", { innerHTML: t }, null, 8,
|
|
920
|
+
d("div", { innerHTML: t }, null, 8, Xl)
|
|
905
921
|
]),
|
|
906
922
|
td: m(({ td: t }) => [
|
|
907
|
-
|
|
923
|
+
Ye(V(t.name ? t.name : i(Z)(
|
|
908
924
|
e.value.style.chart.selector.labels.formatter,
|
|
909
925
|
t,
|
|
910
|
-
|
|
926
|
+
i(ee)({
|
|
911
927
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
912
928
|
v: t,
|
|
913
929
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -920,34 +936,34 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
920
936
|
]),
|
|
921
937
|
_: 1
|
|
922
938
|
}, 8, ["config"])) : c("", !0),
|
|
923
|
-
e.value.style.chart.dialog.show ? (r(), P(
|
|
939
|
+
e.value.style.chart.dialog.show ? (r(), P(i(at), {
|
|
924
940
|
key: 9,
|
|
925
941
|
ref_key: "dialog",
|
|
926
942
|
ref: le,
|
|
927
|
-
onClose: o[3] || (o[3] = (t) =>
|
|
943
|
+
onClose: o[3] || (o[3] = (t) => R.value = null),
|
|
928
944
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
929
945
|
color: e.value.style.chart.dialog.color,
|
|
930
946
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
931
947
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
932
|
-
isFullscreen:
|
|
933
|
-
fullscreenParent:
|
|
948
|
+
isFullscreen: H.value,
|
|
949
|
+
fullscreenParent: T.value,
|
|
934
950
|
withPadding: ""
|
|
935
951
|
}, {
|
|
936
952
|
title: m(() => [
|
|
937
|
-
|
|
953
|
+
Ye(V(R.value.name), 1)
|
|
938
954
|
]),
|
|
939
955
|
default: m(() => [
|
|
940
|
-
|
|
956
|
+
R.value ? (r(), P(i(ut), {
|
|
941
957
|
key: 0,
|
|
942
|
-
config:
|
|
943
|
-
dataset:
|
|
958
|
+
config: Le.value,
|
|
959
|
+
dataset: Ne.value
|
|
944
960
|
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
945
961
|
]),
|
|
946
962
|
_: 1
|
|
947
963
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
948
|
-
], 46,
|
|
964
|
+
], 46, ul));
|
|
949
965
|
}
|
|
950
|
-
},
|
|
966
|
+
}, ea = /* @__PURE__ */ il(El, [["__scopeId", "data-v-eede0a56"]]);
|
|
951
967
|
export {
|
|
952
|
-
|
|
968
|
+
ea as default
|
|
953
969
|
};
|