vue-data-ui 2.14.2 → 2.14.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/{Arrow-DNJvKMao.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-DzCoab4C.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-DLJ9I-cg.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-DdpwkHh8.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-B6mk6VRe.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-xtSGHclp.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-D8swCIay.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-BbJkNcCM.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CtqhCOnQ.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-DBYSSUsg.js → index-BzH6XFI9.js} +409 -394
- package/dist/{pdf-Cq3bf6D0.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-xF9W73YL.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-D6VPixUt.js} +111 -111
- package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-CWm-A-co.js} +46 -46
- package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Dt, c as ve, o as It, e as he, g as Ye, b as
|
|
1
|
+
import { defineAsyncComponent as z, computed as f, ref as i, shallowRef as Ve, onMounted as Lt, onBeforeUnmount as Nt, watch as Be, createElementBlock as n, openBlock as r, unref as u, normalizeStyle as _, normalizeClass as q, createBlock as P, createCommentVNode as c, renderSlot as p, createElementVNode as d, createSlots as Ue, withCtx as m, normalizeProps as K, guardReactiveProps as J, createVNode as Ge, Fragment as g, renderList as A, mergeProps as We, toDisplayString as H, createTextVNode as je, nextTick as Ft } from "vue";
|
|
2
|
+
import { u as Dt, c as ve, o as It, e as he, g as Ye, b as Xt, d as Rt, p as Q, an as qe, a9 as Et, U as Ke, V as Ht, W as Vt, X as Bt, G as Ut, I as Gt, i as Z, f as ee, t as Wt, a as jt, q as Yt, r as qt, K as Kt } from "./index-BzH6XFI9.js";
|
|
3
3
|
import { u as Jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
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 { _ as
|
|
13
|
-
const
|
|
4
|
+
import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import { u as Zt } from "./usePrinter-C653sJjz.js";
|
|
6
|
+
import { t as el, u as tl } from "./useResponsive-JZ9xq-JV.js";
|
|
7
|
+
import { u as Je } from "./useNestedProp-CKM2gCr5.js";
|
|
8
|
+
import ll from "./Legend-Cpx0xSce.js";
|
|
9
|
+
import al from "./Title-B71Dk29x.js";
|
|
10
|
+
import { _ as sl } from "./Shape-D65xhJAN.js";
|
|
11
|
+
import { u as ol } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
|
+
import { _ as rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const nl = ["id"], ul = ["xmlns", "viewBox"], il = ["id"], cl = ["stop-color"], vl = ["stop-color"], hl = ["stop-color"], dl = ["stop-color"], yl = ["id"], fl = ["stop-color"], gl = ["stop-color"], pl = ["stop-color"], ml = ["stop-color"], bl = { key: 0 }, xl = ["fill", "d"], kl = ["stroke", "stroke-width", "d"], Al = ["fill", "d"], $l = ["stroke", "stroke-dasharray", "stroke-width", "d"], wl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Cl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], _l = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Ml = { key: 0 }, Pl = { key: 0 }, Tl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Sl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], zl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ll = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Nl = ["x", "y", "text-anchor", "font-size", "fill"], Fl = {
|
|
14
14
|
key: 5,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, Dl = ["onClick"], Il = ["innerHTML"], Xl = {
|
|
17
17
|
__name: "vue-ui-ridgeline",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -31,25 +31,25 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
33
33
|
setup(Qe, { expose: Ze, emit: et }) {
|
|
34
|
-
const tt =
|
|
34
|
+
const tt = z(() => import("./vue-ui-accordion-Cjq4hqGi.js")), lt = z(() => import("./BaseDraggableDialog-BBiAE4t8.js")), at = z(() => import("./DataTable-D8n1mvaG.js")), st = z(() => import("./PackageVersion-Bwu7jdjH.js")), ot = z(() => import("./PenAndPaper-BzQcbTCN.js")), rt = z(() => import("./vue-ui-skeleton-qa5B2MES.js")), nt = z(() => import("./UserOptions-fd2DeGS7.js")), ut = z(() => import("./vue-ui-xy-B6LjQd7h.js")), { vue_ui_ridgeline: it } = Dt(), k = Qe, O = f({
|
|
35
35
|
get() {
|
|
36
|
-
return !!
|
|
36
|
+
return !!k.dataset && k.dataset.length;
|
|
37
37
|
},
|
|
38
38
|
set(l) {
|
|
39
39
|
return l;
|
|
40
40
|
}
|
|
41
|
-
}), te = et, V = i(null), de = i(null), ye = i(null), T = Ve(null), D = Ve(null), fe = i(null), ge = i(null), pe = i(0), ct = i(0), me = i(0),
|
|
41
|
+
}), te = et, V = i(null), de = i(null), ye = i(null), T = Ve(null), D = Ve(null), fe = i(null), ge = i(null), pe = i(0), ct = i(0), me = i(0), $ = i(ve()), be = i(0), vt = i(0), xe = i(512), v = i(null), I = i(null), le = i(null), ke = i(0);
|
|
42
42
|
function Ae() {
|
|
43
|
-
const l =
|
|
44
|
-
userConfig:
|
|
43
|
+
const l = Je({
|
|
44
|
+
userConfig: k.config,
|
|
45
45
|
defaultConfig: it
|
|
46
46
|
});
|
|
47
47
|
return l.theme ? {
|
|
48
|
-
...
|
|
49
|
-
userConfig:
|
|
48
|
+
...Je({
|
|
49
|
+
userConfig: jt.vue_ui_ridgeline[l.theme] || k.config,
|
|
50
50
|
defaultConfig: l
|
|
51
51
|
}),
|
|
52
|
-
customPalette:
|
|
52
|
+
customPalette: Wt[l.theme] || Q
|
|
53
53
|
} : l;
|
|
54
54
|
}
|
|
55
55
|
const e = f({
|
|
@@ -60,20 +60,20 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
60
60
|
e.value.style.chart.areas.rowHeight
|
|
61
61
|
)), {
|
|
62
62
|
userOptionsVisible: ae,
|
|
63
|
-
setUserOptionsVisibility:
|
|
63
|
+
setUserOptionsVisibility: $e,
|
|
64
64
|
keepUserOptionState: we
|
|
65
|
-
} = Jt({ config: e.value }), { svgRef: se } =
|
|
65
|
+
} = Jt({ config: e.value }), { svgRef: se } = Qt({ config: e.value.style.chart.title });
|
|
66
66
|
Lt(oe);
|
|
67
67
|
function oe() {
|
|
68
|
-
if (It(
|
|
68
|
+
if (It(k.dataset) ? he({
|
|
69
69
|
componentName: "VueUiRidgeline",
|
|
70
70
|
type: "dataset"
|
|
71
|
-
}) :
|
|
71
|
+
}) : k.dataset.forEach((l, o) => {
|
|
72
72
|
Ye({
|
|
73
73
|
datasetObject: l,
|
|
74
74
|
requiredAttributes: ["name", "datapoints"]
|
|
75
75
|
}).forEach((t) => {
|
|
76
|
-
|
|
76
|
+
O.value = !1, he({
|
|
77
77
|
componentName: "VueUiRidgeline",
|
|
78
78
|
type: "datasetSerieAttribute",
|
|
79
79
|
property: t,
|
|
@@ -84,7 +84,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
84
84
|
datasetObject: t,
|
|
85
85
|
requiredAttributes: ["name", "values"]
|
|
86
86
|
}).forEach((a) => {
|
|
87
|
-
|
|
87
|
+
O.value = !1, he({
|
|
88
88
|
componentName: "VueUiRidgeline",
|
|
89
89
|
type: "datasetSerieAttribute",
|
|
90
90
|
property: `datapoint.${a}`,
|
|
@@ -92,12 +92,12 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
|
-
}), vt.value =
|
|
95
|
+
}), vt.value = k.dataset.length, w.value = Math.min(
|
|
96
96
|
e.value.style.chart.areas.height,
|
|
97
97
|
e.value.style.chart.areas.rowHeight
|
|
98
98
|
), e.value.responsive) {
|
|
99
|
-
const l =
|
|
100
|
-
const { width: o, height: t } =
|
|
99
|
+
const l = el(() => {
|
|
100
|
+
const { width: o, height: t } = tl({
|
|
101
101
|
chart: V.value,
|
|
102
102
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
103
103
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
@@ -106,7 +106,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
106
106
|
padding: e.value.style.chart.padding
|
|
107
107
|
});
|
|
108
108
|
requestAnimationFrame(() => {
|
|
109
|
-
xe.value = o, w.value = t /
|
|
109
|
+
xe.value = o, w.value = t / k.dataset.length, ke.value = t;
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
T.value && (D.value && T.value.unobserve(D.value), T.value.disconnect()), T.value = new ResizeObserver(l), D.value = V.value.parentNode, T.value.observe(D.value);
|
|
@@ -115,36 +115,36 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
115
115
|
Nt(() => {
|
|
116
116
|
T.value && (D.value && T.value.unobserve(D.value), T.value.disconnect());
|
|
117
117
|
});
|
|
118
|
-
const { isPrinting:
|
|
119
|
-
elementId: `vue-ui-ridgeline_${
|
|
118
|
+
const { isPrinting: Ce, isImaging: _e, generatePdf: Me, generateImage: Pe } = Zt({
|
|
119
|
+
elementId: `vue-ui-ridgeline_${$.value}`,
|
|
120
120
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
121
121
|
options: e.value.userOptions.print
|
|
122
|
-
}), ht = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = f(() =>
|
|
122
|
+
}), ht = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = f(() => Xt(e.value.customPalette)), B = i({
|
|
123
123
|
showTable: e.value.table.show
|
|
124
124
|
});
|
|
125
|
-
Be(() =>
|
|
125
|
+
Be(() => k.config, (l) => {
|
|
126
126
|
e.value = Ae(), ae.value = !e.value.userOptions.showOnChartHover, oe(), pe.value += 1, me.value += 1, w.value = Math.min(
|
|
127
127
|
e.value.style.chart.areas.height,
|
|
128
128
|
e.value.style.chart.areas.rowHeight
|
|
129
129
|
), B.value.showTable = e.value.table.show;
|
|
130
|
-
}, { deep: !0 }), Be(() =>
|
|
130
|
+
}, { deep: !0 }), Be(() => k.dataset, oe, { deep: !0 });
|
|
131
131
|
const re = f(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
132
132
|
function Te(l) {
|
|
133
|
-
|
|
133
|
+
S.value.includes(l) ? S.value = S.value.filter((o) => o !== l) : S.value.push(l), te("selectLegend", R.value);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
135
|
+
const M = f(() => O.value ? k.dataset.map((l, o) => ({
|
|
136
136
|
...l,
|
|
137
137
|
labelLen: gt(l.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
138
138
|
uid: ve(),
|
|
139
139
|
datapoints: l.datapoints.map((t, s) => {
|
|
140
|
-
const a = t.color ?
|
|
140
|
+
const a = t.color ? Rt(t.color) : dt.value[s] || Q[s] || Q[s % Q.length], h = qe(t.name);
|
|
141
141
|
return {
|
|
142
142
|
...t,
|
|
143
143
|
color: a,
|
|
144
144
|
id: h
|
|
145
145
|
};
|
|
146
146
|
})
|
|
147
|
-
})) : []),
|
|
147
|
+
})) : []), Se = f(() => e.value.style.chart.padding.top + w.value * k.dataset.length + w.value * re.value), b = f(() => ({
|
|
148
148
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
149
149
|
top: y.value.padding.top,
|
|
150
150
|
left: y.value.padding.left,
|
|
@@ -155,31 +155,31 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
155
155
|
const l = e.value.style.chart.padding;
|
|
156
156
|
return {
|
|
157
157
|
width: xe.value,
|
|
158
|
-
height:
|
|
158
|
+
height: Se.value,
|
|
159
159
|
padding: l
|
|
160
160
|
};
|
|
161
|
-
}), ne = f(() => Math.max(...
|
|
161
|
+
}), ne = f(() => Math.max(...M.value.flatMap((l) => l.datapoints.map((o) => o.values.length)))), W = f(() => ol({
|
|
162
162
|
values: e.value.style.chart.xAxis.labels.values,
|
|
163
163
|
maxDatapoints: ne.value,
|
|
164
164
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
165
165
|
start: 0,
|
|
166
166
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
167
|
-
})),
|
|
168
|
-
const l = Math.max(...
|
|
167
|
+
})), X = f(() => {
|
|
168
|
+
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
169
|
for (let a = 0; a < ne.value; a += 1)
|
|
170
170
|
s.push({
|
|
171
171
|
selectorX: o + t * a,
|
|
172
172
|
x: o + t * a - t / 2,
|
|
173
|
-
y:
|
|
173
|
+
y: b.value.top,
|
|
174
174
|
label: e.value.style.chart.xAxis.labels.values[a] ? W.value[a].text : "",
|
|
175
175
|
index: a,
|
|
176
176
|
width: t,
|
|
177
|
-
height:
|
|
177
|
+
height: Se.value
|
|
178
178
|
});
|
|
179
179
|
return s;
|
|
180
180
|
});
|
|
181
181
|
function yt(l) {
|
|
182
|
-
te("selectX",
|
|
182
|
+
te("selectX", M.value.map((o) => o.datapoints.map((t) => ({
|
|
183
183
|
dp: t,
|
|
184
184
|
selected: t.values[l.index]
|
|
185
185
|
}))));
|
|
@@ -187,39 +187,39 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
187
187
|
function ft(l, o) {
|
|
188
188
|
return l.length * o / 2 + o;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function ze(l, o, t) {
|
|
191
191
|
const s = ft(o, t);
|
|
192
|
-
return l + s >
|
|
192
|
+
return l + s > b.value.right;
|
|
193
193
|
}
|
|
194
194
|
function gt(l, o, t = "sans-serif") {
|
|
195
195
|
const a = document.createElement("canvas").getContext("2d"), h = typeof o == "number" ? `${o}px` : o;
|
|
196
196
|
return a.font = `${h} ${t}`, a.measureText(l).width;
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const R = f(() => {
|
|
199
199
|
w.value;
|
|
200
|
-
const l = Math.max(...
|
|
201
|
-
function
|
|
202
|
-
return isNaN(
|
|
200
|
+
const l = Math.max(...M.value.map((x) => x.labelLen)), o = Math.max(...M.value.flatMap((x) => x.datapoints.map((L) => L.values.length))), t = Math.max(...M.value.flatMap((x) => x.datapoints.flatMap((L) => L.values))), s = Math.min(...M.value.flatMap((x) => x.datapoints.flatMap((L) => L.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)), Ie = t + C;
|
|
201
|
+
function Xe(x) {
|
|
202
|
+
return isNaN(x / Ie) ? 0 : x / Ie;
|
|
203
203
|
}
|
|
204
|
-
return
|
|
205
|
-
const
|
|
204
|
+
return M.value.map((x, L) => {
|
|
205
|
+
const Re = b.value.top + w.value * L, N = b.value.top + Re + w.value * re.value * (1 - Xe(C));
|
|
206
206
|
return {
|
|
207
|
-
...
|
|
207
|
+
...x,
|
|
208
208
|
label: {
|
|
209
209
|
x: a - e.value.style.chart.yAxis.labels.fontSize,
|
|
210
210
|
y: N
|
|
211
211
|
},
|
|
212
|
-
datapoints:
|
|
212
|
+
datapoints: x.datapoints.map((U) => {
|
|
213
213
|
const F = U.values.map((G, Pt) => {
|
|
214
|
-
const Tt = isNaN(G) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(G) ? 0 : G || 0,
|
|
214
|
+
const Tt = isNaN(G) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(G) ? 0 : G || 0, St = a + h * Pt, zt = b.value.top + Re + w.value * re.value * (1 - Xe(Tt + C)), Ot = G === Math.max(...U.values);
|
|
215
215
|
return {
|
|
216
|
-
x:
|
|
217
|
-
y:
|
|
216
|
+
x: St,
|
|
217
|
+
y: zt,
|
|
218
218
|
value: G,
|
|
219
|
-
isMaxPoint:
|
|
219
|
+
isMaxPoint: Ot,
|
|
220
220
|
zero: N
|
|
221
221
|
};
|
|
222
|
-
}), wt = `${Et(F, N, !1, !1)}`,
|
|
222
|
+
}), wt = `${Et(F, N, !1, !1)}`, Ct = `M ${a},${N} ${Ke(F)} ${F.at(-1).x},${N}`, _t = `M ${a},${N} ${F.at(-1).x},${N}`, Ee = `M ${Ht(F)}`, He = `M ${Ke(F)}`, Mt = Vt(
|
|
223
223
|
e.value.style.chart.areas.smooth ? Ee : He
|
|
224
224
|
);
|
|
225
225
|
return {
|
|
@@ -227,16 +227,16 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
227
227
|
uid: ve(),
|
|
228
228
|
plots: F,
|
|
229
229
|
smoothPath: wt,
|
|
230
|
-
straightPath:
|
|
230
|
+
straightPath: Ct,
|
|
231
231
|
zeroPath: _t,
|
|
232
232
|
pathLength: Mt,
|
|
233
233
|
smoothPathRidge: Ee,
|
|
234
234
|
straightPathRidge: He
|
|
235
235
|
};
|
|
236
|
-
}).filter((U) => !
|
|
236
|
+
}).filter((U) => !S.value.includes(U.id))
|
|
237
237
|
};
|
|
238
238
|
});
|
|
239
|
-
}),
|
|
239
|
+
}), S = i([]);
|
|
240
240
|
function pt(l) {
|
|
241
241
|
const o = /* @__PURE__ */ new Map();
|
|
242
242
|
return l.forEach((t) => {
|
|
@@ -248,13 +248,13 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
248
248
|
color: s.color,
|
|
249
249
|
shape: "circle",
|
|
250
250
|
segregate: () => Te(h),
|
|
251
|
-
isSegregated:
|
|
252
|
-
opacity:
|
|
251
|
+
isSegregated: S.value.includes(h),
|
|
252
|
+
opacity: S.value.includes(h) ? 0.5 : 1
|
|
253
253
|
});
|
|
254
254
|
});
|
|
255
255
|
}), Array.from(o.values());
|
|
256
256
|
}
|
|
257
|
-
const ue = f(() => pt(
|
|
257
|
+
const ue = f(() => pt(M.value)), mt = f(() => ({
|
|
258
258
|
cy: "donut-div-legend",
|
|
259
259
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
260
260
|
color: e.value.style.chart.legend.color,
|
|
@@ -265,7 +265,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
265
265
|
function bt(l) {
|
|
266
266
|
E.value = l, be.value += 1;
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const Oe = i({}), Le = i([]);
|
|
269
269
|
function xt(l) {
|
|
270
270
|
te("selectDatapoint", l), e.value.style.chart.dialog.show && (Le.value = l.datapoints.map((o) => ({
|
|
271
271
|
name: o.name,
|
|
@@ -274,7 +274,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
274
274
|
useArea: !0,
|
|
275
275
|
smooth: e.value.style.chart.areas.smooth,
|
|
276
276
|
series: o.values
|
|
277
|
-
})), I.value = l,
|
|
277
|
+
})), I.value = l, Oe.value = Kt({
|
|
278
278
|
...e.value.style.chart.dialog.xyChart,
|
|
279
279
|
responsive: !0,
|
|
280
280
|
// Overriding
|
|
@@ -315,7 +315,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
315
315
|
function Ne() {
|
|
316
316
|
B.value.showTable = !B.value.showTable;
|
|
317
317
|
}
|
|
318
|
-
const Fe = f(() => ({ body:
|
|
318
|
+
const Fe = f(() => ({ body: R.value.flatMap((t) => t.datapoints.flatMap((s) => ({
|
|
319
319
|
...s,
|
|
320
320
|
rowName: `${t.name}: ${s.name}`
|
|
321
321
|
}))).map((t) => [
|
|
@@ -359,18 +359,18 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
359
359
|
], t = [
|
|
360
360
|
[e.value.style.chart.title.text],
|
|
361
361
|
[e.value.style.chart.title.subtitle.text]
|
|
362
|
-
].concat(o), s =
|
|
363
|
-
l ? l(s) :
|
|
362
|
+
].concat(o), s = Yt(t);
|
|
363
|
+
l ? l(s) : qt({
|
|
364
364
|
csvContent: s,
|
|
365
365
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
366
366
|
});
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return
|
|
369
|
+
function $t() {
|
|
370
|
+
return R.value;
|
|
371
371
|
}
|
|
372
372
|
return Ze({
|
|
373
|
-
getData:
|
|
373
|
+
getData: $t,
|
|
374
374
|
generateImage: Pe,
|
|
375
375
|
generatePdf: Me,
|
|
376
376
|
generateCsv: De,
|
|
@@ -380,16 +380,16 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
380
380
|
ref_key: "ridgelineChart",
|
|
381
381
|
ref: V,
|
|
382
382
|
class: q(`vue-ui-ridgeline ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
383
|
-
id: `vue-ui-ridgeline_${
|
|
384
|
-
style:
|
|
383
|
+
id: `vue-ui-ridgeline_${$.value}`,
|
|
384
|
+
style: _({
|
|
385
385
|
fontFamily: e.value.style.fontFamily,
|
|
386
386
|
width: "100%",
|
|
387
387
|
textAlign: "center",
|
|
388
388
|
background: e.value.style.chart.backgroundColor,
|
|
389
389
|
height: e.value.responsive ? "100%" : void 0
|
|
390
390
|
}),
|
|
391
|
-
onMouseenter: o[4] || (o[4] = () => u(
|
|
392
|
-
onMouseleave: o[5] || (o[5] = () => u(
|
|
391
|
+
onMouseenter: o[4] || (o[4] = () => u($e)(!0)),
|
|
392
|
+
onMouseleave: o[5] || (o[5] = () => u($e)(!1))
|
|
393
393
|
}, [
|
|
394
394
|
e.value.userOptions.buttons.annotator && u(se) ? (r(), P(u(ot), {
|
|
395
395
|
key: 0,
|
|
@@ -413,7 +413,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
413
413
|
ref: de,
|
|
414
414
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
415
415
|
}, [
|
|
416
|
-
(r(), P(
|
|
416
|
+
(r(), P(al, {
|
|
417
417
|
key: `title_${pe.value}`,
|
|
418
418
|
config: {
|
|
419
419
|
title: {
|
|
@@ -427,14 +427,14 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
427
427
|
}
|
|
428
428
|
}, null, 8, ["config"]))
|
|
429
429
|
], 512)) : c("", !0),
|
|
430
|
-
e.value.userOptions.show &&
|
|
430
|
+
e.value.userOptions.show && O.value && (u(we) || u(ae)) ? (r(), P(u(nt), {
|
|
431
431
|
ref: "details",
|
|
432
432
|
key: `user_option_${be.value}`,
|
|
433
433
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
434
434
|
color: e.value.style.chart.color,
|
|
435
|
-
isPrinting: u(
|
|
435
|
+
isPrinting: u(Ce),
|
|
436
436
|
isImaging: u(_e),
|
|
437
|
-
uid:
|
|
437
|
+
uid: $.value,
|
|
438
438
|
hasTooltip: !1,
|
|
439
439
|
callbacks: e.value.userOptions.callbacks,
|
|
440
440
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -450,7 +450,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
450
450
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
451
451
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
452
452
|
isAnnotation: j.value,
|
|
453
|
-
style:
|
|
453
|
+
style: _({
|
|
454
454
|
visibility: u(we) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
455
455
|
}),
|
|
456
456
|
onToggleFullscreen: bt,
|
|
@@ -463,7 +463,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
463
463
|
l.$slots.menuIcon ? {
|
|
464
464
|
name: "menuIcon",
|
|
465
465
|
fn: m(({ isOpen: t, color: s }) => [
|
|
466
|
-
p(l.$slots, "menuIcon", J(
|
|
466
|
+
p(l.$slots, "menuIcon", K(J({ isOpen: t, color: s })), void 0, !0)
|
|
467
467
|
]),
|
|
468
468
|
key: "0"
|
|
469
469
|
} : void 0,
|
|
@@ -505,31 +505,31 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
505
505
|
l.$slots.optionFullscreen ? {
|
|
506
506
|
name: "optionFullscreen",
|
|
507
507
|
fn: m(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
508
|
-
p(l.$slots, "optionFullscreen", J(
|
|
508
|
+
p(l.$slots, "optionFullscreen", K(J({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
509
509
|
]),
|
|
510
510
|
key: "6"
|
|
511
511
|
} : void 0,
|
|
512
512
|
l.$slots.optionAnnotator ? {
|
|
513
513
|
name: "optionAnnotator",
|
|
514
514
|
fn: m(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
515
|
-
p(l.$slots, "optionAnnotator", J(
|
|
515
|
+
p(l.$slots, "optionAnnotator", K(J({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
516
516
|
]),
|
|
517
517
|
key: "7"
|
|
518
518
|
} : void 0
|
|
519
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
|
-
|
|
520
|
+
O.value ? (r(), n("svg", {
|
|
521
521
|
key: 4,
|
|
522
522
|
ref_key: "svgRef",
|
|
523
523
|
ref: se,
|
|
524
524
|
xmlns: u(Bt),
|
|
525
525
|
class: q({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
526
|
-
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${
|
|
527
|
-
style:
|
|
526
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
527
|
+
style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${ke.value}px; width: 100%;` : ""}`)
|
|
528
528
|
}, [
|
|
529
529
|
Ge(u(st)),
|
|
530
530
|
d("defs", null, [
|
|
531
531
|
(r(!0), n(g, null, A(ue.value, (t, s) => (r(), n("linearGradient", {
|
|
532
|
-
id: `gradient-${t.id}-${
|
|
532
|
+
id: `gradient-${t.id}-${$.value}`,
|
|
533
533
|
x1: "50%",
|
|
534
534
|
y1: "0%",
|
|
535
535
|
x2: "50%",
|
|
@@ -539,27 +539,27 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
539
539
|
offset: "0%",
|
|
540
540
|
"stop-color": t.color,
|
|
541
541
|
"stop-opacity": "1"
|
|
542
|
-
}, null, 8,
|
|
542
|
+
}, null, 8, cl),
|
|
543
543
|
d("stop", {
|
|
544
544
|
offset: "30%",
|
|
545
545
|
"stop-color": t.color,
|
|
546
546
|
"stop-opacity": "0.7"
|
|
547
|
-
}, null, 8,
|
|
547
|
+
}, null, 8, vl),
|
|
548
548
|
d("stop", {
|
|
549
549
|
offset: "70%",
|
|
550
550
|
"stop-color": t.color,
|
|
551
551
|
"stop-opacity": "0.3"
|
|
552
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, hl),
|
|
553
553
|
d("stop", {
|
|
554
554
|
offset: "100%",
|
|
555
555
|
"stop-color": t.color,
|
|
556
556
|
"stop-opacity": "0.1"
|
|
557
|
-
}, null, 8,
|
|
558
|
-
], 8,
|
|
559
|
-
(r(!0), n(g, null, A(
|
|
557
|
+
}, null, 8, dl)
|
|
558
|
+
], 8, il))), 256)),
|
|
559
|
+
(r(!0), n(g, null, A(R.value, (t, s) => (r(), n(g, null, [
|
|
560
560
|
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("linearGradient", {
|
|
561
561
|
key: `grad${a.id}`,
|
|
562
|
-
id: `gradient-single-${
|
|
562
|
+
id: `gradient-single-${$.value}-${a.uid}`,
|
|
563
563
|
x1: "50%",
|
|
564
564
|
y1: "0%",
|
|
565
565
|
x2: "50%",
|
|
@@ -569,45 +569,45 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
569
569
|
offset: "0%",
|
|
570
570
|
"stop-color": a.color,
|
|
571
571
|
"stop-opacity": "1"
|
|
572
|
-
}, null, 8,
|
|
572
|
+
}, null, 8, fl),
|
|
573
573
|
d("stop", {
|
|
574
574
|
offset: "30%",
|
|
575
575
|
"stop-color": a.color,
|
|
576
576
|
"stop-opacity": "0.7"
|
|
577
|
-
}, null, 8,
|
|
577
|
+
}, null, 8, gl),
|
|
578
578
|
d("stop", {
|
|
579
579
|
offset: "70%",
|
|
580
580
|
"stop-color": a.color,
|
|
581
581
|
"stop-opacity": "0.3"
|
|
582
|
-
}, null, 8,
|
|
582
|
+
}, null, 8, pl),
|
|
583
583
|
d("stop", {
|
|
584
584
|
offset: "100%",
|
|
585
585
|
"stop-color": a.color,
|
|
586
586
|
"stop-opacity": "0.1"
|
|
587
|
-
}, null, 8,
|
|
588
|
-
], 8,
|
|
587
|
+
}, null, 8, ml)
|
|
588
|
+
], 8, yl))), 128))
|
|
589
589
|
], 64))), 256))
|
|
590
590
|
]),
|
|
591
|
-
(r(!0), n(g, null, A(
|
|
591
|
+
(r(!0), n(g, null, A(R.value, (t, s) => (r(), n("g", {
|
|
592
592
|
key: `ds-${s}`
|
|
593
593
|
}, [
|
|
594
594
|
(r(!0), n(g, null, A(t.datapoints, (a, h) => (r(), n("g", {
|
|
595
595
|
key: a.id
|
|
596
596
|
}, [
|
|
597
|
-
l.$slots.pattern ? (r(), n("g",
|
|
597
|
+
l.$slots.pattern ? (r(), n("g", bl, [
|
|
598
598
|
d("defs", null, [
|
|
599
|
-
p(l.$slots, "pattern", We({ ref_for: !0 }, { datapointIndex: s, seriesIndex: h, patternId: `pattern_${
|
|
599
|
+
p(l.$slots, "pattern", We({ ref_for: !0 }, { datapointIndex: s, seriesIndex: h, patternId: `pattern_${$.value}_${a.uid}` }), void 0, !0)
|
|
600
600
|
])
|
|
601
601
|
])) : c("", !0),
|
|
602
602
|
d("path", {
|
|
603
|
-
fill: l.$slots.pattern ? `url(#pattern_${
|
|
603
|
+
fill: l.$slots.pattern ? `url(#pattern_${$.value}_${a.uid})` : e.value.style.chart.backgroundColor,
|
|
604
604
|
stroke: "none",
|
|
605
605
|
"stroke-linecap": "round",
|
|
606
606
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
607
|
-
style:
|
|
607
|
+
style: _({
|
|
608
608
|
opacity: e.value.style.chart.areas.opacity
|
|
609
609
|
})
|
|
610
|
-
}, null, 12,
|
|
610
|
+
}, null, 12, xl),
|
|
611
611
|
d("path", {
|
|
612
612
|
fill: "none",
|
|
613
613
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -616,23 +616,23 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
616
616
|
"stroke-linecap": "round",
|
|
617
617
|
"stroke-linejoin": "round",
|
|
618
618
|
class: q({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
619
|
-
style:
|
|
619
|
+
style: _({
|
|
620
620
|
strokeDasharray: a.pathLength,
|
|
621
621
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
622
622
|
})
|
|
623
|
-
}, null, 14,
|
|
623
|
+
}, null, 14, kl),
|
|
624
624
|
d("path", {
|
|
625
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${
|
|
625
|
+
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${$.value})` : `url(#gradient-single-${$.value}-${a.uid})` : a.color,
|
|
626
626
|
stroke: "none",
|
|
627
627
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
628
628
|
"stroke-linecap": "round",
|
|
629
629
|
"stroke-linejoin": "round",
|
|
630
630
|
class: q({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
631
|
-
style:
|
|
631
|
+
style: _({
|
|
632
632
|
strokeDasharray: a.pathLength,
|
|
633
633
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
634
634
|
})
|
|
635
|
-
}, null, 14,
|
|
635
|
+
}, null, 14, Al),
|
|
636
636
|
e.value.style.chart.zeroLine.show ? (r(), n("path", {
|
|
637
637
|
key: 1,
|
|
638
638
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -640,19 +640,19 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
640
640
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
641
641
|
d: a.zeroPath,
|
|
642
642
|
"stroke-linecap": "round"
|
|
643
|
-
}, null, 8,
|
|
644
|
-
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(g, { key: 2 }, A(a.plots, (
|
|
645
|
-
|
|
643
|
+
}, null, 8, $l)) : c("", !0),
|
|
644
|
+
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
|
+
C.isMaxPoint ? (r(), n("line", {
|
|
646
646
|
key: 0,
|
|
647
|
-
x1:
|
|
648
|
-
y1:
|
|
649
|
-
x2:
|
|
650
|
-
y2:
|
|
647
|
+
x1: C.x,
|
|
648
|
+
y1: C.y,
|
|
649
|
+
x2: C.x,
|
|
650
|
+
y2: C.zero,
|
|
651
651
|
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Ut)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
652
652
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
653
653
|
"stroke-linecap": "round",
|
|
654
654
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
655
|
-
}, null, 8,
|
|
655
|
+
}, null, 8, wl)) : c("", !0)
|
|
656
656
|
], 64))), 256)) : c("", !0),
|
|
657
657
|
a.plots.length === 1 ? (r(), n("circle", {
|
|
658
658
|
key: 3,
|
|
@@ -665,7 +665,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
665
665
|
style: {
|
|
666
666
|
pointerEvents: "none"
|
|
667
667
|
}
|
|
668
|
-
}, null, 8,
|
|
668
|
+
}, null, 8, Cl)) : c("", !0)
|
|
669
669
|
]))), 128)),
|
|
670
670
|
d("text", {
|
|
671
671
|
x: t.label.x,
|
|
@@ -674,41 +674,61 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
674
674
|
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
675
675
|
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
676
676
|
fill: e.value.style.chart.yAxis.labels.color,
|
|
677
|
-
style:
|
|
677
|
+
style: _({
|
|
678
678
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
679
679
|
}),
|
|
680
680
|
"text-decoration": e.value.style.chart.dialog.show && (ie.value === s || I.value && t.uid === I.value.uid) ? "underline" : "",
|
|
681
681
|
onMouseenter: (a) => kt(s),
|
|
682
682
|
onMouseleave: At,
|
|
683
683
|
onClick: (a) => xt(t)
|
|
684
|
-
}, H(t.name), 45,
|
|
684
|
+
}, H(t.name), 45, _l)
|
|
685
685
|
]))), 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 ===
|
|
686
|
+
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", Ml, [
|
|
687
|
+
(r(!0), n(g, null, A(X.value, (t, s) => p(l.$slots, "time-label", We({ ref_for: !0 }, {
|
|
688
|
+
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === 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
689
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
690
690
|
content: t.label,
|
|
691
691
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
692
692
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
693
|
-
transform: `translate(${t.selectorX}, ${
|
|
693
|
+
transform: `translate(${t.selectorX}, ${b.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
694
694
|
x: t.selectorX,
|
|
695
|
-
y:
|
|
695
|
+
y: b.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
696
696
|
}), () => [
|
|
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 ===
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
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", Pl, [
|
|
698
|
+
t.label.includes(`
|
|
699
|
+
`) ? (r(), n("text", {
|
|
700
|
+
key: 1,
|
|
701
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
702
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
703
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
704
|
+
transform: `translate(${t.selectorX}, ${b.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
705
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
706
|
+
style: _({
|
|
707
|
+
opacity: v.value ? v.value.index === s ? 1 : 0.2 : 1
|
|
708
|
+
}),
|
|
709
|
+
innerHTML: u(Gt)({
|
|
710
|
+
content: t.label,
|
|
711
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
712
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
713
|
+
x: 0,
|
|
714
|
+
y: 0
|
|
715
|
+
})
|
|
716
|
+
}, null, 12, Sl)) : (r(), n("text", {
|
|
717
|
+
key: 0,
|
|
718
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
719
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
720
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
721
|
+
transform: `translate(${t.selectorX}, ${b.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
722
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
723
|
+
style: _({
|
|
724
|
+
opacity: v.value ? v.value.index === s ? 1 : 0.2 : 1
|
|
725
|
+
})
|
|
726
|
+
}, H(t.label), 13, Tl))
|
|
727
|
+
])) : c("", !0)
|
|
708
728
|
], !0)), 256))
|
|
709
729
|
])) : c("", !0),
|
|
710
730
|
d("g", null, [
|
|
711
|
-
(r(!0), n(g, null, A(
|
|
731
|
+
(r(!0), n(g, null, A(X.value, (t, s) => (r(), n("rect", {
|
|
712
732
|
x: t.x,
|
|
713
733
|
y: t.y,
|
|
714
734
|
width: t.width < 0 ? 0.1 : t.width,
|
|
@@ -717,7 +737,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
717
737
|
onMouseenter: (a) => v.value = t,
|
|
718
738
|
onMouseleave: o[0] || (o[0] = (a) => v.value = null),
|
|
719
739
|
onClick: () => yt(t)
|
|
720
|
-
}, null, 40,
|
|
740
|
+
}, null, 40, zl))), 256)),
|
|
721
741
|
e.value.style.chart.selector.show && v.value ? (r(), n("line", {
|
|
722
742
|
key: 0,
|
|
723
743
|
x1: v.value.selectorX,
|
|
@@ -729,8 +749,8 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
729
749
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
730
750
|
"stroke-linecap": "round",
|
|
731
751
|
style: { pointerEvents: "none" }
|
|
732
|
-
}, null, 8,
|
|
733
|
-
v.value ? (r(!0), n(g, { key: 1 }, A(
|
|
752
|
+
}, null, 8, Ol)) : c("", !0),
|
|
753
|
+
v.value ? (r(!0), n(g, { key: 1 }, A(R.value, (t) => (r(), n(g, null, [
|
|
734
754
|
(r(!0), n(g, null, A(t.datapoints, (s) => (r(), n(g, null, [
|
|
735
755
|
(r(!0), n(g, null, A(s.plots, (a, h) => (r(), n(g, null, [
|
|
736
756
|
v.value && v.value.index === h ? (r(), n("circle", {
|
|
@@ -744,10 +764,10 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
744
764
|
style: {
|
|
745
765
|
pointerEvents: "none"
|
|
746
766
|
}
|
|
747
|
-
}, null, 8,
|
|
767
|
+
}, null, 8, Ll)) : c("", !0),
|
|
748
768
|
v.value && v.value.index === h ? (r(), n("text", {
|
|
749
769
|
key: 1,
|
|
750
|
-
x:
|
|
770
|
+
x: ze(
|
|
751
771
|
a.x,
|
|
752
772
|
u(Z)(
|
|
753
773
|
e.value.style.chart.selector.labels.formatter,
|
|
@@ -762,7 +782,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
762
782
|
e.value.style.chart.selector.labels.fontSize
|
|
763
783
|
) ? a.x - e.value.style.chart.selector.labels.fontSize / 2 : a.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
764
784
|
y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
765
|
-
"text-anchor":
|
|
785
|
+
"text-anchor": ze(
|
|
766
786
|
a.x,
|
|
767
787
|
u(Z)(
|
|
768
788
|
e.value.style.chart.selector.labels.formatter,
|
|
@@ -790,17 +810,17 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
790
810
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
791
811
|
r: e.value.style.chart.selector.labels.rounding
|
|
792
812
|
})
|
|
793
|
-
)), 9,
|
|
813
|
+
)), 9, Nl)) : c("", !0)
|
|
794
814
|
], 64))), 256))
|
|
795
815
|
], 64))), 256))
|
|
796
816
|
], 64))), 256)) : c("", !0)
|
|
797
817
|
]),
|
|
798
818
|
p(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
799
|
-
], 14,
|
|
800
|
-
l.$slots.watermark ? (r(), n("div",
|
|
801
|
-
p(l.$slots, "watermark", J(
|
|
819
|
+
], 14, ul)) : c("", !0),
|
|
820
|
+
l.$slots.watermark ? (r(), n("div", Fl, [
|
|
821
|
+
p(l.$slots, "watermark", K(J({ isPrinting: u(Ce) || u(_e) })), void 0, !0)
|
|
802
822
|
])) : c("", !0),
|
|
803
|
-
|
|
823
|
+
O.value ? c("", !0) : (r(), P(u(rt), {
|
|
804
824
|
key: 6,
|
|
805
825
|
config: {
|
|
806
826
|
type: "ridgeline",
|
|
@@ -816,7 +836,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
816
836
|
ref_key: "chartLegend",
|
|
817
837
|
ref: ye
|
|
818
838
|
}, [
|
|
819
|
-
e.value.style.chart.legend.show ? (r(), P(
|
|
839
|
+
e.value.style.chart.legend.show ? (r(), P(ll, {
|
|
820
840
|
key: `legend_${me.value}`,
|
|
821
841
|
legendSet: ue.value,
|
|
822
842
|
config: mt.value,
|
|
@@ -824,21 +844,21 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
824
844
|
}, Ue({
|
|
825
845
|
item: m(({ legend: t }) => [
|
|
826
846
|
d("div", {
|
|
827
|
-
style:
|
|
847
|
+
style: _(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`),
|
|
828
848
|
onClick: (s) => t.segregate()
|
|
829
|
-
}, H(t.name), 13,
|
|
849
|
+
}, H(t.name), 13, Dl)
|
|
830
850
|
]),
|
|
831
851
|
_: 2
|
|
832
852
|
}, [
|
|
833
853
|
l.$slots.pattern ? {
|
|
834
854
|
name: "legend-pattern",
|
|
835
855
|
fn: m(({ legend: t, index: s }) => [
|
|
836
|
-
Ge(
|
|
856
|
+
Ge(sl, {
|
|
837
857
|
shape: t.shape,
|
|
838
858
|
radius: 30,
|
|
839
859
|
stroke: "none",
|
|
840
860
|
plot: { x: 30, y: 30 },
|
|
841
|
-
fill: `url(#pattern_${
|
|
861
|
+
fill: `url(#pattern_${$.value}_${s})`
|
|
842
862
|
}, null, 8, ["shape", "fill"])
|
|
843
863
|
]),
|
|
844
864
|
key: "0"
|
|
@@ -854,7 +874,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
854
874
|
}, [
|
|
855
875
|
p(l.$slots, "source", {}, void 0, !0)
|
|
856
876
|
], 512)) : c("", !0),
|
|
857
|
-
|
|
877
|
+
O.value ? (r(), P(u(tt), {
|
|
858
878
|
key: 8,
|
|
859
879
|
hideDetails: "",
|
|
860
880
|
config: {
|
|
@@ -881,7 +901,7 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
881
901
|
onClose: o[2] || (o[2] = (t) => B.value.showTable = !1)
|
|
882
902
|
}, {
|
|
883
903
|
th: m(({ th: t }) => [
|
|
884
|
-
d("div", { innerHTML: t }, null, 8,
|
|
904
|
+
d("div", { innerHTML: t }, null, 8, Il)
|
|
885
905
|
]),
|
|
886
906
|
td: m(({ td: t }) => [
|
|
887
907
|
je(H(t.name ? t.name : u(Z)(
|
|
@@ -918,15 +938,15 @@ const rl = ["id"], nl = ["xmlns", "viewBox"], ul = ["id"], il = ["stop-color"],
|
|
|
918
938
|
default: m(() => [
|
|
919
939
|
I.value ? (r(), P(u(ut), {
|
|
920
940
|
key: 0,
|
|
921
|
-
config:
|
|
941
|
+
config: Oe.value,
|
|
922
942
|
dataset: Le.value
|
|
923
943
|
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
924
944
|
]),
|
|
925
945
|
_: 1
|
|
926
946
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
927
|
-
], 46,
|
|
947
|
+
], 46, nl));
|
|
928
948
|
}
|
|
929
|
-
},
|
|
949
|
+
}, Jl = /* @__PURE__ */ rl(Xl, [["__scopeId", "data-v-b3cc9fa9"]]);
|
|
930
950
|
export {
|
|
931
|
-
|
|
951
|
+
Jl as default
|
|
932
952
|
};
|