vue-data-ui 2.16.5 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, computed as f, ref as i, shallowRef 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 z, computed as f, ref as i, shallowRef as Be, onMounted as Nt, onBeforeUnmount as Ft, watch as Ue, createElementBlock as n, openBlock as r, unref as u, 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 Xt, e as he, g as qe, b as Rt, 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-pPGk-uhD.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-DDHcrl0A.js";
|
|
6
|
+
import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
7
|
+
import { u as Qe } from "./useNestedProp-DjACxgdZ.js";
|
|
8
|
+
import al from "./Legend-Bxlv67uY.js";
|
|
9
|
+
import sl from "./Title-B-2bV0SW.js";
|
|
10
|
+
import { _ as ol } from "./Shape-DtFT5EJa.js";
|
|
11
|
+
import { u as rl } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
|
+
import nl from "./img-Y_hYz-ZC.js";
|
|
13
|
+
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const il = ["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
|
+
}, Xl = ["onClick"], Rl = ["innerHTML"], El = {
|
|
17
18
|
__name: "vue-ui-ridgeline",
|
|
18
19
|
props: {
|
|
19
20
|
config: {
|
|
@@ -30,46 +31,46 @@ 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 = z(() => import("./vue-ui-accordion-CVnA550V.js")), at = z(() => import("./BaseDraggableDialog-ChCkcmj_.js")), st = z(() => import("./DataTable-D0VYDhfx.js")), ot = z(() => import("./PackageVersion-5TR4ocqp.js")), rt = z(() => import("./PenAndPaper-D6AqipIO.js")), nt = z(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ut = z(() => import("./UserOptions-Dd34lEKb.js")), it = z(() => import("./vue-ui-xy-CQ425kLR.js")), { vue_ui_ridgeline: ct } = It(), k = Ze, O = 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, L = i(null), de = i(null), ye = i(null), T = Be(null), I = Be(null), fe = i(null), ge = i(null), pe = i(0), vt = i(0), me = i(0), w = i(ve()), be = i(0), ht = i(0), xe = i(512), v = i(null), X = i(null), le = i(null), ke = i(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
|
+
}), $ = i(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
|
-
setUserOptionsVisibility:
|
|
64
|
-
keepUserOptionState:
|
|
65
|
-
} =
|
|
66
|
-
|
|
64
|
+
setUserOptionsVisibility: we,
|
|
65
|
+
keepUserOptionState: $e
|
|
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 (Xt(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) => {
|
|
@@ -80,7 +81,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
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) => {
|
|
@@ -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: L.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,
|
|
@@ -106,45 +107,45 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
106
107
|
padding: e.value.style.chart.padding
|
|
107
108
|
});
|
|
108
109
|
requestAnimationFrame(() => {
|
|
109
|
-
xe.value = o,
|
|
110
|
+
xe.value = o, $.value = t / k.dataset.length, ke.value = t;
|
|
110
111
|
});
|
|
111
112
|
});
|
|
112
|
-
T.value && (
|
|
113
|
+
T.value && (I.value && T.value.unobserve(I.value), T.value.disconnect()), T.value = new ResizeObserver(l), I.value = L.value.parentNode, T.value.observe(I.value);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
-
T.value && (
|
|
116
|
+
Ft(() => {
|
|
117
|
+
T.value && (I.value && T.value.unobserve(I.value), T.value.disconnect());
|
|
117
118
|
});
|
|
118
|
-
const { isPrinting: Ce, isImaging: _e, generatePdf: Me, generateImage: Pe } =
|
|
119
|
-
elementId: `vue-ui-ridgeline_${
|
|
119
|
+
const { isPrinting: Ce, isImaging: _e, generatePdf: Me, generateImage: Pe } = el({
|
|
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(() => Rt(e.value.customPalette)), B = i({
|
|
123
124
|
showTable: e.value.table.show
|
|
124
125
|
});
|
|
125
|
-
|
|
126
|
-
e.value = Ae(), ae.value = !e.value.userOptions.showOnChartHover, oe(), pe.value += 1, me.value += 1,
|
|
126
|
+
Ue(() => k.config, (l) => {
|
|
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
|
-
S.value.includes(l) ? S.value = S.value.filter((o) => o !== l) : S.value.push(l), te("selectLegend",
|
|
134
|
+
S.value.includes(l) ? S.value = S.value.filter((o) => o !== l) : S.value.push(l), te("selectLegend", E.value);
|
|
134
135
|
}
|
|
135
136
|
const M = f(() => O.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,
|
|
144
145
|
id: h
|
|
145
146
|
};
|
|
146
147
|
})
|
|
147
|
-
})) : []), Se = f(() => e.value.style.chart.padding.top +
|
|
148
|
+
})) : []), Se = f(() => e.value.style.chart.padding.top + $.value * k.dataset.length + $.value * re.value), b = f(() => ({
|
|
148
149
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
149
150
|
top: y.value.padding.top,
|
|
150
151
|
left: y.value.padding.left,
|
|
@@ -158,13 +159,13 @@ 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,
|
|
165
166
|
start: 0,
|
|
166
167
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
167
|
-
})),
|
|
168
|
+
})), R = f(() => {
|
|
168
169
|
const l = Math.max(...M.value.map((a) => a.labelLen)), o = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, t = (b.value.width - o) / ne.value, s = [];
|
|
169
170
|
for (let a = 0; a < ne.value; a += 1)
|
|
170
171
|
s.push({
|
|
@@ -178,70 +179,70 @@ 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
|
-
|
|
200
|
-
const l = Math.max(...M.value.map((x) => x.labelLen)), o = Math.max(...M.value.flatMap((x) => x.datapoints.map((
|
|
201
|
-
function
|
|
202
|
-
return isNaN(x /
|
|
199
|
+
const E = f(() => {
|
|
200
|
+
$.value;
|
|
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)), Xe = t + C;
|
|
202
|
+
function Re(x) {
|
|
203
|
+
return isNaN(x / Xe) ? 0 : x / Xe;
|
|
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 - Re(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 - Re(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
237
|
}).filter((U) => !S.value.includes(U.id))
|
|
237
238
|
};
|
|
238
239
|
});
|
|
239
240
|
}), S = i([]);
|
|
240
|
-
function
|
|
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,
|
|
@@ -254,27 +255,27 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
254
255
|
});
|
|
255
256
|
}), Array.from(o.values());
|
|
256
257
|
}
|
|
257
|
-
const ue = f(() =>
|
|
258
|
+
const ue = 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 = i(!1);
|
|
266
|
+
function Oe(l) {
|
|
267
|
+
H.value = l, be.value += 1;
|
|
267
268
|
}
|
|
268
|
-
const
|
|
269
|
+
const Le = i({}), Ne = i([]);
|
|
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
|
+
})), X.value = l, Le.value = Jt({
|
|
278
279
|
...e.value.style.chart.dialog.xyChart,
|
|
279
280
|
responsive: !0,
|
|
280
281
|
// Overriding
|
|
@@ -312,10 +313,10 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
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,40 +348,47 @@ 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
|
-
function
|
|
370
|
-
return
|
|
370
|
+
function wt() {
|
|
371
|
+
return E.value;
|
|
371
372
|
}
|
|
372
|
-
|
|
373
|
-
|
|
373
|
+
async function $t({ scale: l = 2 } = {}) {
|
|
374
|
+
if (!L.value) return;
|
|
375
|
+
const { imageUri: o, base64: t } = await nl({ domElement: L.value, base64: !0, img: !0, scale: l });
|
|
376
|
+
return { imageUri: o, base64: t };
|
|
377
|
+
}
|
|
378
|
+
return et({
|
|
379
|
+
getData: wt,
|
|
380
|
+
getImage: $t,
|
|
374
381
|
generateImage: Pe,
|
|
375
382
|
generatePdf: Me,
|
|
376
|
-
generateCsv:
|
|
383
|
+
generateCsv: Ie,
|
|
377
384
|
toggleAnnotator: ce,
|
|
378
|
-
toggleTable:
|
|
385
|
+
toggleTable: Fe,
|
|
386
|
+
toggleFullscreen: Oe
|
|
379
387
|
}), (l, o) => (r(), n("div", {
|
|
380
388
|
ref_key: "ridgelineChart",
|
|
381
|
-
ref:
|
|
382
|
-
class: q(`vue-ui-ridgeline ${
|
|
383
|
-
id: `vue-ui-ridgeline_${
|
|
389
|
+
ref: L,
|
|
390
|
+
class: q(`vue-ui-ridgeline ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
391
|
+
id: `vue-ui-ridgeline_${w.value}`,
|
|
384
392
|
style: _({
|
|
385
393
|
fontFamily: e.value.style.fontFamily,
|
|
386
394
|
width: "100%",
|
|
@@ -388,10 +396,10 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
388
396
|
background: e.value.style.chart.backgroundColor,
|
|
389
397
|
height: e.value.responsive ? "100%" : void 0
|
|
390
398
|
}),
|
|
391
|
-
onMouseenter: o[4] || (o[4] = () => u(
|
|
392
|
-
onMouseleave: o[5] || (o[5] = () => u(
|
|
399
|
+
onMouseenter: o[4] || (o[4] = () => u(we)(!0)),
|
|
400
|
+
onMouseleave: o[5] || (o[5] = () => u(we)(!1))
|
|
393
401
|
}, [
|
|
394
|
-
e.value.userOptions.buttons.annotator && u(se) ? (r(), P(u(
|
|
402
|
+
e.value.userOptions.buttons.annotator && u(se) ? (r(), P(u(rt), {
|
|
395
403
|
key: 0,
|
|
396
404
|
color: e.value.style.chart.color,
|
|
397
405
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -400,7 +408,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
400
408
|
onClose: ce
|
|
401
409
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : c("", !0),
|
|
402
410
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
403
|
-
|
|
411
|
+
dt.value ? (r(), n("div", {
|
|
404
412
|
key: 1,
|
|
405
413
|
ref_key: "noTitle",
|
|
406
414
|
ref: ge,
|
|
@@ -413,7 +421,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
413
421
|
ref: de,
|
|
414
422
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
415
423
|
}, [
|
|
416
|
-
(r(), P(
|
|
424
|
+
(r(), P(sl, {
|
|
417
425
|
key: `title_${pe.value}`,
|
|
418
426
|
config: {
|
|
419
427
|
title: {
|
|
@@ -427,14 +435,14 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
427
435
|
}
|
|
428
436
|
}, null, 8, ["config"]))
|
|
429
437
|
], 512)) : c("", !0),
|
|
430
|
-
e.value.userOptions.show && O.value && (u(
|
|
438
|
+
e.value.userOptions.show && O.value && (u($e) || u(ae)) ? (r(), P(u(ut), {
|
|
431
439
|
ref: "details",
|
|
432
440
|
key: `user_option_${be.value}`,
|
|
433
441
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
434
442
|
color: e.value.style.chart.color,
|
|
435
443
|
isPrinting: u(Ce),
|
|
436
444
|
isImaging: u(_e),
|
|
437
|
-
uid:
|
|
445
|
+
uid: w.value,
|
|
438
446
|
hasTooltip: !1,
|
|
439
447
|
callbacks: e.value.userOptions.callbacks,
|
|
440
448
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -443,23 +451,24 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
443
451
|
hasTable: e.value.userOptions.buttons.table,
|
|
444
452
|
hasLabel: !1,
|
|
445
453
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
446
|
-
isFullscreen:
|
|
447
|
-
|
|
454
|
+
isFullscreen: H.value,
|
|
455
|
+
printScale: e.value.userOptions.print.scale,
|
|
456
|
+
chartElement: L.value,
|
|
448
457
|
position: e.value.userOptions.position,
|
|
449
458
|
isTooltip: !1,
|
|
450
459
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
451
460
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
452
461
|
isAnnotation: j.value,
|
|
453
462
|
style: _({
|
|
454
|
-
visibility: u(
|
|
463
|
+
visibility: u($e) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
455
464
|
}),
|
|
456
|
-
onToggleFullscreen:
|
|
465
|
+
onToggleFullscreen: Oe,
|
|
457
466
|
onGeneratePdf: u(Me),
|
|
458
|
-
onGenerateCsv:
|
|
467
|
+
onGenerateCsv: Ie,
|
|
459
468
|
onGenerateImage: u(Pe),
|
|
460
|
-
onToggleTable:
|
|
469
|
+
onToggleTable: Fe,
|
|
461
470
|
onToggleAnnotator: ce
|
|
462
|
-
},
|
|
471
|
+
}, Ge({ _: 2 }, [
|
|
463
472
|
l.$slots.menuIcon ? {
|
|
464
473
|
name: "menuIcon",
|
|
465
474
|
fn: m(({ isOpen: t, color: s }) => [
|
|
@@ -516,20 +525,20 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
516
525
|
]),
|
|
517
526
|
key: "7"
|
|
518
527
|
} : 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),
|
|
528
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
520
529
|
O.value ? (r(), n("svg", {
|
|
521
530
|
key: 4,
|
|
522
531
|
ref_key: "svgRef",
|
|
523
532
|
ref: se,
|
|
524
|
-
xmlns: u(
|
|
525
|
-
class: q({ "vue-data-ui-fullscreen--on":
|
|
533
|
+
xmlns: u(Ut),
|
|
534
|
+
class: q({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
526
535
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
527
536
|
style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${ke.value}px; width: 100%;` : ""}`)
|
|
528
537
|
}, [
|
|
529
|
-
|
|
538
|
+
We(u(ot)),
|
|
530
539
|
d("defs", null, [
|
|
531
540
|
(r(!0), n(g, null, A(ue.value, (t, s) => (r(), n("linearGradient", {
|
|
532
|
-
id: `gradient-${t.id}-${
|
|
541
|
+
id: `gradient-${t.id}-${w.value}`,
|
|
533
542
|
x1: "50%",
|
|
534
543
|
y1: "0%",
|
|
535
544
|
x2: "50%",
|
|
@@ -539,27 +548,27 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
539
548
|
offset: "0%",
|
|
540
549
|
"stop-color": t.color,
|
|
541
550
|
"stop-opacity": "1"
|
|
542
|
-
}, null, 8,
|
|
551
|
+
}, null, 8, hl),
|
|
543
552
|
d("stop", {
|
|
544
553
|
offset: "30%",
|
|
545
554
|
"stop-color": t.color,
|
|
546
555
|
"stop-opacity": "0.7"
|
|
547
|
-
}, null, 8,
|
|
556
|
+
}, null, 8, dl),
|
|
548
557
|
d("stop", {
|
|
549
558
|
offset: "70%",
|
|
550
559
|
"stop-color": t.color,
|
|
551
560
|
"stop-opacity": "0.3"
|
|
552
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, yl),
|
|
553
562
|
d("stop", {
|
|
554
563
|
offset: "100%",
|
|
555
564
|
"stop-color": t.color,
|
|
556
565
|
"stop-opacity": "0.1"
|
|
557
|
-
}, null, 8,
|
|
558
|
-
], 8,
|
|
559
|
-
(r(!0), n(g, null, A(
|
|
566
|
+
}, null, 8, fl)
|
|
567
|
+
], 8, vl))), 256)),
|
|
568
|
+
(r(!0), n(g, null, A(E.value, (t, s) => (r(), n(g, null, [
|
|
560
569
|
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("linearGradient", {
|
|
561
570
|
key: `grad${a.id}`,
|
|
562
|
-
id: `gradient-single-${
|
|
571
|
+
id: `gradient-single-${w.value}-${a.uid}`,
|
|
563
572
|
x1: "50%",
|
|
564
573
|
y1: "0%",
|
|
565
574
|
x2: "50%",
|
|
@@ -569,45 +578,45 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
569
578
|
offset: "0%",
|
|
570
579
|
"stop-color": a.color,
|
|
571
580
|
"stop-opacity": "1"
|
|
572
|
-
}, null, 8,
|
|
581
|
+
}, null, 8, pl),
|
|
573
582
|
d("stop", {
|
|
574
583
|
offset: "30%",
|
|
575
584
|
"stop-color": a.color,
|
|
576
585
|
"stop-opacity": "0.7"
|
|
577
|
-
}, null, 8,
|
|
586
|
+
}, null, 8, ml),
|
|
578
587
|
d("stop", {
|
|
579
588
|
offset: "70%",
|
|
580
589
|
"stop-color": a.color,
|
|
581
590
|
"stop-opacity": "0.3"
|
|
582
|
-
}, null, 8,
|
|
591
|
+
}, null, 8, bl),
|
|
583
592
|
d("stop", {
|
|
584
593
|
offset: "100%",
|
|
585
594
|
"stop-color": a.color,
|
|
586
595
|
"stop-opacity": "0.1"
|
|
587
|
-
}, null, 8,
|
|
588
|
-
], 8,
|
|
596
|
+
}, null, 8, xl)
|
|
597
|
+
], 8, gl))), 128))
|
|
589
598
|
], 64))), 256))
|
|
590
599
|
]),
|
|
591
|
-
(r(!0), n(g, null, A(
|
|
600
|
+
(r(!0), n(g, null, A(E.value, (t, s) => (r(), n("g", {
|
|
592
601
|
key: `ds-${s}`
|
|
593
602
|
}, [
|
|
594
603
|
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("g", {
|
|
595
604
|
key: a.id
|
|
596
605
|
}, [
|
|
597
|
-
l.$slots.pattern ? (r(), n("g",
|
|
606
|
+
l.$slots.pattern ? (r(), n("g", kl, [
|
|
598
607
|
d("defs", null, [
|
|
599
|
-
p(l.$slots, "pattern",
|
|
608
|
+
p(l.$slots, "pattern", je({ ref_for: !0 }, { datapointIndex: s, seriesIndex: h, patternId: `pattern_${w.value}_${a.uid}` }), void 0, !0)
|
|
600
609
|
])
|
|
601
610
|
])) : c("", !0),
|
|
602
611
|
d("path", {
|
|
603
|
-
fill: l.$slots.pattern ? `url(#pattern_${
|
|
612
|
+
fill: l.$slots.pattern ? `url(#pattern_${w.value}_${a.uid})` : e.value.style.chart.backgroundColor,
|
|
604
613
|
stroke: "none",
|
|
605
614
|
"stroke-linecap": "round",
|
|
606
615
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
607
616
|
style: _({
|
|
608
617
|
opacity: e.value.style.chart.areas.opacity
|
|
609
618
|
})
|
|
610
|
-
}, null, 12,
|
|
619
|
+
}, null, 12, Al),
|
|
611
620
|
d("path", {
|
|
612
621
|
fill: "none",
|
|
613
622
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -620,9 +629,9 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
620
629
|
strokeDasharray: a.pathLength,
|
|
621
630
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
622
631
|
})
|
|
623
|
-
}, null, 14,
|
|
632
|
+
}, null, 14, wl),
|
|
624
633
|
d("path", {
|
|
625
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${
|
|
634
|
+
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
635
|
stroke: "none",
|
|
627
636
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
628
637
|
"stroke-linecap": "round",
|
|
@@ -632,7 +641,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
632
641
|
strokeDasharray: a.pathLength,
|
|
633
642
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
634
643
|
})
|
|
635
|
-
}, null, 14,
|
|
644
|
+
}, null, 14, $l),
|
|
636
645
|
e.value.style.chart.zeroLine.show ? (r(), n("path", {
|
|
637
646
|
key: 1,
|
|
638
647
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -640,7 +649,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
640
649
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
641
650
|
d: a.zeroPath,
|
|
642
651
|
"stroke-linecap": "round"
|
|
643
|
-
}, null, 8,
|
|
652
|
+
}, null, 8, Cl)) : c("", !0),
|
|
644
653
|
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
654
|
C.isMaxPoint ? (r(), n("line", {
|
|
646
655
|
key: 0,
|
|
@@ -648,11 +657,11 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
648
657
|
y1: C.y,
|
|
649
658
|
x2: C.x,
|
|
650
659
|
y2: C.zero,
|
|
651
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
660
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Gt)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
652
661
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
653
662
|
"stroke-linecap": "round",
|
|
654
663
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
655
|
-
}, null, 8,
|
|
664
|
+
}, null, 8, _l)) : c("", !0)
|
|
656
665
|
], 64))), 256)) : c("", !0),
|
|
657
666
|
a.plots.length === 1 ? (r(), n("circle", {
|
|
658
667
|
key: 3,
|
|
@@ -665,7 +674,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
665
674
|
style: {
|
|
666
675
|
pointerEvents: "none"
|
|
667
676
|
}
|
|
668
|
-
}, null, 8,
|
|
677
|
+
}, null, 8, Ml)) : c("", !0)
|
|
669
678
|
]))), 128)),
|
|
670
679
|
d("text", {
|
|
671
680
|
x: t.label.x,
|
|
@@ -677,15 +686,15 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
677
686
|
style: _({
|
|
678
687
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
679
688
|
}),
|
|
680
|
-
"text-decoration": e.value.style.chart.dialog.show && (ie.value === s ||
|
|
689
|
+
"text-decoration": e.value.style.chart.dialog.show && (ie.value === s || X.value && t.uid === X.value.uid) ? "underline" : "",
|
|
681
690
|
onMouseenter: (a) => kt(s),
|
|
682
691
|
onMouseleave: At,
|
|
683
692
|
onClick: (a) => xt(t)
|
|
684
|
-
},
|
|
693
|
+
}, V(t.name), 45, Pl)
|
|
685
694
|
]))), 128)),
|
|
686
|
-
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g",
|
|
687
|
-
(r(!0), n(g, null, A(
|
|
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 ===
|
|
695
|
+
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", Tl, [
|
|
696
|
+
(r(!0), n(g, null, A(R.value, (t, s) => p(l.$slots, "time-label", je({ ref_for: !0 }, {
|
|
697
|
+
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,
|
|
689
698
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
690
699
|
content: t.label,
|
|
691
700
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -694,7 +703,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
694
703
|
x: t.selectorX,
|
|
695
704
|
y: b.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
696
705
|
}), () => [
|
|
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 ===
|
|
706
|
+
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("g", Sl, [
|
|
698
707
|
String(t.label).includes(`
|
|
699
708
|
`) ? (r(), n("text", {
|
|
700
709
|
key: 1,
|
|
@@ -706,14 +715,14 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
706
715
|
style: _({
|
|
707
716
|
opacity: v.value ? v.value.index === s ? 1 : 0.2 : 1
|
|
708
717
|
}),
|
|
709
|
-
innerHTML: u(
|
|
718
|
+
innerHTML: u(Wt)({
|
|
710
719
|
content: String(t.label),
|
|
711
720
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
712
721
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
713
722
|
x: 0,
|
|
714
723
|
y: 0
|
|
715
724
|
})
|
|
716
|
-
}, null, 12,
|
|
725
|
+
}, null, 12, Ol)) : (r(), n("text", {
|
|
717
726
|
key: 0,
|
|
718
727
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
719
728
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
@@ -723,12 +732,12 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
723
732
|
style: _({
|
|
724
733
|
opacity: v.value ? v.value.index === s ? 1 : 0.2 : 1
|
|
725
734
|
})
|
|
726
|
-
},
|
|
735
|
+
}, V(t.label), 13, zl))
|
|
727
736
|
])) : c("", !0)
|
|
728
737
|
], !0)), 256))
|
|
729
738
|
])) : c("", !0),
|
|
730
739
|
d("g", null, [
|
|
731
|
-
(r(!0), n(g, null, A(
|
|
740
|
+
(r(!0), n(g, null, A(R.value, (t, s) => (r(), n("rect", {
|
|
732
741
|
x: t.x,
|
|
733
742
|
y: t.y,
|
|
734
743
|
width: t.width < 0 ? 0.1 : t.width,
|
|
@@ -736,21 +745,21 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
736
745
|
fill: "transparent",
|
|
737
746
|
onMouseenter: (a) => v.value = t,
|
|
738
747
|
onMouseleave: o[0] || (o[0] = (a) => v.value = null),
|
|
739
|
-
onClick: () =>
|
|
740
|
-
}, null, 40,
|
|
748
|
+
onClick: () => ft(t)
|
|
749
|
+
}, null, 40, Ll))), 256)),
|
|
741
750
|
e.value.style.chart.selector.show && v.value ? (r(), n("line", {
|
|
742
751
|
key: 0,
|
|
743
752
|
x1: v.value.selectorX,
|
|
744
753
|
x2: v.value.selectorX,
|
|
745
754
|
y1: v.value.y,
|
|
746
|
-
y2: v.value.y + v.value.height -
|
|
755
|
+
y2: v.value.y + v.value.height - $.value / 2,
|
|
747
756
|
stroke: e.value.style.chart.selector.stroke,
|
|
748
757
|
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
749
758
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
750
759
|
"stroke-linecap": "round",
|
|
751
760
|
style: { pointerEvents: "none" }
|
|
752
|
-
}, null, 8,
|
|
753
|
-
v.value ? (r(!0), n(g, { key: 1 }, A(
|
|
761
|
+
}, null, 8, Nl)) : c("", !0),
|
|
762
|
+
v.value ? (r(!0), n(g, { key: 1 }, A(E.value, (t) => (r(), n(g, null, [
|
|
754
763
|
(r(!0), n(g, null, A(t.datapoints, (s) => (r(), n(g, null, [
|
|
755
764
|
(r(!0), n(g, null, A(s.plots, (a, h) => (r(), n(g, null, [
|
|
756
765
|
v.value && v.value.index === h ? (r(), n("circle", {
|
|
@@ -764,7 +773,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
764
773
|
style: {
|
|
765
774
|
pointerEvents: "none"
|
|
766
775
|
}
|
|
767
|
-
}, null, 8,
|
|
776
|
+
}, null, 8, Fl)) : c("", !0),
|
|
768
777
|
v.value && v.value.index === h ? (r(), n("text", {
|
|
769
778
|
key: 1,
|
|
770
779
|
x: ze(
|
|
@@ -801,7 +810,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
801
810
|
style: {
|
|
802
811
|
pointerEvents: "none"
|
|
803
812
|
}
|
|
804
|
-
},
|
|
813
|
+
}, V(u(Z)(
|
|
805
814
|
e.value.style.chart.selector.labels.formatter,
|
|
806
815
|
a.value,
|
|
807
816
|
u(ee)({
|
|
@@ -810,17 +819,17 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
810
819
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
811
820
|
r: e.value.style.chart.selector.labels.rounding
|
|
812
821
|
})
|
|
813
|
-
)), 9,
|
|
822
|
+
)), 9, Dl)) : c("", !0)
|
|
814
823
|
], 64))), 256))
|
|
815
824
|
], 64))), 256))
|
|
816
825
|
], 64))), 256)) : c("", !0)
|
|
817
826
|
]),
|
|
818
827
|
p(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
819
|
-
], 14,
|
|
820
|
-
l.$slots.watermark ? (r(), n("div",
|
|
828
|
+
], 14, cl)) : c("", !0),
|
|
829
|
+
l.$slots.watermark ? (r(), n("div", Il, [
|
|
821
830
|
p(l.$slots, "watermark", K(J({ isPrinting: u(Ce) || u(_e) })), void 0, !0)
|
|
822
831
|
])) : c("", !0),
|
|
823
|
-
O.value ? c("", !0) : (r(), P(u(
|
|
832
|
+
O.value ? c("", !0) : (r(), P(u(nt), {
|
|
824
833
|
key: 6,
|
|
825
834
|
config: {
|
|
826
835
|
type: "ridgeline",
|
|
@@ -836,29 +845,29 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
836
845
|
ref_key: "chartLegend",
|
|
837
846
|
ref: ye
|
|
838
847
|
}, [
|
|
839
|
-
e.value.style.chart.legend.show ? (r(), P(
|
|
848
|
+
e.value.style.chart.legend.show ? (r(), P(al, {
|
|
840
849
|
key: `legend_${me.value}`,
|
|
841
850
|
legendSet: ue.value,
|
|
842
|
-
config:
|
|
851
|
+
config: bt.value,
|
|
843
852
|
onClickMarker: o[1] || (o[1] = ({ legend: t }) => Te(t.id))
|
|
844
|
-
},
|
|
853
|
+
}, Ge({
|
|
845
854
|
item: m(({ legend: t }) => [
|
|
846
855
|
d("div", {
|
|
847
856
|
style: _(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`),
|
|
848
857
|
onClick: (s) => t.segregate()
|
|
849
|
-
},
|
|
858
|
+
}, V(t.name), 13, Xl)
|
|
850
859
|
]),
|
|
851
860
|
_: 2
|
|
852
861
|
}, [
|
|
853
862
|
l.$slots.pattern ? {
|
|
854
863
|
name: "legend-pattern",
|
|
855
864
|
fn: m(({ legend: t, index: s }) => [
|
|
856
|
-
|
|
865
|
+
We(ol, {
|
|
857
866
|
shape: t.shape,
|
|
858
867
|
radius: 30,
|
|
859
868
|
stroke: "none",
|
|
860
869
|
plot: { x: 30, y: 30 },
|
|
861
|
-
fill: `url(#pattern_${
|
|
870
|
+
fill: `url(#pattern_${w.value}_${s})`
|
|
862
871
|
}, null, 8, ["shape", "fill"])
|
|
863
872
|
]),
|
|
864
873
|
key: "0"
|
|
@@ -874,7 +883,7 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
874
883
|
}, [
|
|
875
884
|
p(l.$slots, "source", {}, void 0, !0)
|
|
876
885
|
], 512)) : c("", !0),
|
|
877
|
-
O.value ? (r(), P(u(
|
|
886
|
+
O.value ? (r(), P(u(lt), {
|
|
878
887
|
key: 8,
|
|
879
888
|
hideDetails: "",
|
|
880
889
|
config: {
|
|
@@ -891,8 +900,8 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
891
900
|
}
|
|
892
901
|
}, {
|
|
893
902
|
content: m(() => [
|
|
894
|
-
(r(), P(u(
|
|
895
|
-
key: `table_${
|
|
903
|
+
(r(), P(u(st), {
|
|
904
|
+
key: `table_${vt.value}`,
|
|
896
905
|
colNames: Y.value.colNames,
|
|
897
906
|
head: Y.value.head,
|
|
898
907
|
body: Y.value.body,
|
|
@@ -901,10 +910,10 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
901
910
|
onClose: o[2] || (o[2] = (t) => B.value.showTable = !1)
|
|
902
911
|
}, {
|
|
903
912
|
th: m(({ th: t }) => [
|
|
904
|
-
d("div", { innerHTML: t }, null, 8,
|
|
913
|
+
d("div", { innerHTML: t }, null, 8, Rl)
|
|
905
914
|
]),
|
|
906
915
|
td: m(({ td: t }) => [
|
|
907
|
-
|
|
916
|
+
Ye(V(t.name ? t.name : u(Z)(
|
|
908
917
|
e.value.style.chart.selector.labels.formatter,
|
|
909
918
|
t,
|
|
910
919
|
u(ee)({
|
|
@@ -920,33 +929,33 @@ const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"],
|
|
|
920
929
|
]),
|
|
921
930
|
_: 1
|
|
922
931
|
}, 8, ["config"])) : c("", !0),
|
|
923
|
-
e.value.style.chart.dialog.show ? (r(), P(u(
|
|
932
|
+
e.value.style.chart.dialog.show ? (r(), P(u(at), {
|
|
924
933
|
key: 9,
|
|
925
934
|
ref_key: "dialog",
|
|
926
935
|
ref: le,
|
|
927
|
-
onClose: o[3] || (o[3] = (t) =>
|
|
936
|
+
onClose: o[3] || (o[3] = (t) => X.value = null),
|
|
928
937
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
929
938
|
color: e.value.style.chart.dialog.color,
|
|
930
939
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
931
940
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
932
|
-
isFullscreen:
|
|
933
|
-
fullscreenParent:
|
|
941
|
+
isFullscreen: H.value,
|
|
942
|
+
fullscreenParent: L.value
|
|
934
943
|
}, {
|
|
935
944
|
title: m(() => [
|
|
936
|
-
|
|
945
|
+
Ye(V(X.value.name), 1)
|
|
937
946
|
]),
|
|
938
947
|
default: m(() => [
|
|
939
|
-
|
|
948
|
+
X.value ? (r(), P(u(it), {
|
|
940
949
|
key: 0,
|
|
941
|
-
config:
|
|
942
|
-
dataset:
|
|
950
|
+
config: Le.value,
|
|
951
|
+
dataset: Ne.value
|
|
943
952
|
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
944
953
|
]),
|
|
945
954
|
_: 1
|
|
946
955
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
947
|
-
], 46,
|
|
956
|
+
], 46, il));
|
|
948
957
|
}
|
|
949
|
-
},
|
|
958
|
+
}, ea = /* @__PURE__ */ ul(El, [["__scopeId", "data-v-6cb370fd"]]);
|
|
950
959
|
export {
|
|
951
|
-
|
|
960
|
+
ea as default
|
|
952
961
|
};
|