vue-data-ui 3.0.23 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -0,0 +1,1204 @@
|
|
|
1
|
+
import { defineAsyncComponent as O, computed as d, ref as i, shallowRef as ot, toRefs as Jt, onBeforeUnmount as st, watch as Q, nextTick as we, watchEffect as Qt, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as w, normalizeClass as ae, createBlock as T, createCommentVNode as v, renderSlot as p, createElementVNode as y, createSlots as $e, withCtx as f, normalizeProps as le, guardReactiveProps as oe, createVNode as _e, Fragment as m, renderList as k, mergeProps as Te, toDisplayString as R, resolveDynamicComponent as Zt, createTextVNode as Pe } from "vue";
|
|
2
|
+
import { u as ea, c as Se, t as ta, d as aa, e as la, p as se, ap as nt, ah as oa, U as rt, V as sa, W as na, X as ra, F as ua, I as ia, k as ne, i as re, a as ca, b as va, f as Me, g as ut, o as ha, v as da, w as ya, K as fa } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as it, u as ga } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ma, B as pa } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as ba } from "./usePrinter-BzuXiubT.js";
|
|
6
|
+
import { u as ct } from "./useNestedProp-aBOhgs4U.js";
|
|
7
|
+
import { u as xa } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as ka } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Aa } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Ca } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import wa from "./Legend-8_V5egWW.js";
|
|
12
|
+
import $a from "./Title-Dz-j6ERs.js";
|
|
13
|
+
import { _ as _a } from "./Shape-Cjca5zta.js";
|
|
14
|
+
import Ta from "./img-gBDz7xQQ.js";
|
|
15
|
+
import { _ as Pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"], za = ["stop-color"], Da = ["stop-color"], Ia = ["stop-color"], Fa = ["id"], Na = ["stop-color"], Ra = ["stop-color"], Ea = ["stop-color"], Ha = ["stop-color"], Xa = { key: 0 }, Ba = ["fill", "d"], Ua = ["stroke", "stroke-width", "d"], Va = ["fill", "d"], Wa = ["stroke", "stroke-dasharray", "stroke-width", "d"], Ga = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ya = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ja = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], qa = { key: 0 }, Ka = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Ja = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], Qa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], el = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], tl = ["x", "y", "text-anchor", "font-size", "fill"], al = {
|
|
17
|
+
key: 4,
|
|
18
|
+
class: "vue-data-ui-watermark"
|
|
19
|
+
}, ll = ["onClick"], ol = ["innerHTML"], sl = {
|
|
20
|
+
__name: "vue-ui-ridgeline",
|
|
21
|
+
props: {
|
|
22
|
+
config: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default() {
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
dataset: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default() {
|
|
31
|
+
return [];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
36
|
+
setup(vt, { expose: ht, emit: dt }) {
|
|
37
|
+
const yt = O(() => import("./vue-ui-xy-BKTGSvfU.js")), ft = O(() => import("./BaseIcon-DLesaZpW.js")), gt = O(() => import("./vue-ui-accordion-B5QeV3BK.js")), mt = O(() => import("./DataTable-BAf4Obr9.js")), pt = O(() => import("./PenAndPaper-B6OvfyHH.js")), bt = O(() => import("./UserOptions-CsDlFB0L.js")), xt = O(() => import("./PackageVersion-Cv_ypT0N.js")), Le = O(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_ridgeline: kt } = ea(), E = vt, U = d({
|
|
38
|
+
get() {
|
|
39
|
+
return Array.isArray(D.value) && D.value.length > 0;
|
|
40
|
+
},
|
|
41
|
+
set(t) {
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
}), ue = dt, $ = i(null), Oe = i(null), ze = i(null), P = ot(null), z = ot(null), De = i(null), Ie = i(null), ie = i(0), At = i(0), ce = i(0), A = i(Se()), Fe = i(0), Ct = i(0), Ne = i(512), h = i(null), H = i(null), ve = i(null), Re = i(0), he = i(null), V = i(null);
|
|
45
|
+
function de() {
|
|
46
|
+
const t = ct({
|
|
47
|
+
userConfig: E.config,
|
|
48
|
+
defaultConfig: kt
|
|
49
|
+
});
|
|
50
|
+
return t.theme ? {
|
|
51
|
+
...ct({
|
|
52
|
+
userConfig: va.vue_ui_ridgeline[t.theme] || E.config,
|
|
53
|
+
defaultConfig: t
|
|
54
|
+
}),
|
|
55
|
+
customPalette: ca[t.theme] || se
|
|
56
|
+
} : t;
|
|
57
|
+
}
|
|
58
|
+
const e = i(de()), { loading: W, FINAL_DATASET: D, manualLoading: ye } = ma({
|
|
59
|
+
...Jt(E),
|
|
60
|
+
FINAL_CONFIG: e,
|
|
61
|
+
prepareConfig: de,
|
|
62
|
+
skeletonDataset: [
|
|
63
|
+
{
|
|
64
|
+
name: "_",
|
|
65
|
+
datapoints: [
|
|
66
|
+
{
|
|
67
|
+
name: "__",
|
|
68
|
+
color: "#999999",
|
|
69
|
+
values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "_",
|
|
73
|
+
color: "#CACACA",
|
|
74
|
+
values: [13.253, 15.621, 23.36, 33.698, 29.935, 10.874, 2.364, 0.561, 0.107, 0.02, 6e-3, 4e-3]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "_",
|
|
80
|
+
datapoints: [
|
|
81
|
+
{
|
|
82
|
+
name: "_",
|
|
83
|
+
color: "#999999",
|
|
84
|
+
values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "_",
|
|
88
|
+
color: "#CACACA",
|
|
89
|
+
values: [3.171, 4.115, 8.108, 18.248, 31.641, 29.063, 12.031, 2.742, 0.504, 0.102, 0.032, 0.021]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "_",
|
|
95
|
+
datapoints: [
|
|
96
|
+
{
|
|
97
|
+
name: "_",
|
|
98
|
+
color: "#999999",
|
|
99
|
+
values: [1.731, 2.334, 5.125, 13.626, 29.911, 38.524, 24.168, 7.646, 1.575, 0.317, 0.097, 0.063]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "_",
|
|
103
|
+
color: "#CACACA",
|
|
104
|
+
values: [0.25, 0.367, 1.026, 3.944, 13.635, 28.891, 30.149, 15.419, 4.714, 1.246, 0.442, 0.299]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "_",
|
|
110
|
+
datapoints: [
|
|
111
|
+
{
|
|
112
|
+
name: "_",
|
|
113
|
+
color: "#999999",
|
|
114
|
+
values: [0.034, 0.054, 0.194, 1.065, 5.747, 20.735, 38.306, 32.899, 15.318, 5.566, 2.422, 1.76]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "_",
|
|
118
|
+
color: "#CACACA",
|
|
119
|
+
values: [1e-3, 2e-3, 9e-3, 0.095, 1.124, 8.342, 27.115, 35.08, 21.449, 9.093, 4.243, 3.143]
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "_",
|
|
125
|
+
datapoints: [
|
|
126
|
+
{
|
|
127
|
+
name: "_",
|
|
128
|
+
color: "#999999",
|
|
129
|
+
values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "_",
|
|
133
|
+
color: "#CACACA",
|
|
134
|
+
values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "_",
|
|
140
|
+
datapoints: [
|
|
141
|
+
{
|
|
142
|
+
name: "_",
|
|
143
|
+
color: "#999999",
|
|
144
|
+
values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: "_",
|
|
148
|
+
color: "#CACACA",
|
|
149
|
+
values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
skeletonConfig: ta({
|
|
155
|
+
defaultConfig: e.value,
|
|
156
|
+
userConfig: {
|
|
157
|
+
userOptions: { show: !1 },
|
|
158
|
+
table: { show: !1 },
|
|
159
|
+
style: {
|
|
160
|
+
chart: {
|
|
161
|
+
backgroundColor: "#99999930",
|
|
162
|
+
areas: {
|
|
163
|
+
maxPoint: {
|
|
164
|
+
show: !1
|
|
165
|
+
},
|
|
166
|
+
opacity: 0.9,
|
|
167
|
+
stroke: {
|
|
168
|
+
useSerieColor: !0
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
legend: {
|
|
172
|
+
backgroundColor: "transparent"
|
|
173
|
+
},
|
|
174
|
+
padding: {
|
|
175
|
+
right: -24,
|
|
176
|
+
left: 0
|
|
177
|
+
},
|
|
178
|
+
xAxis: {
|
|
179
|
+
labels: {
|
|
180
|
+
values: []
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
yAxis: {
|
|
184
|
+
labels: {
|
|
185
|
+
fontSize: 0
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
zeroLine: { show: !1 }
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
})
|
|
193
|
+
}), C = i(Math.min(
|
|
194
|
+
e.value.style.chart.areas.height,
|
|
195
|
+
e.value.style.chart.areas.rowHeight
|
|
196
|
+
)), {
|
|
197
|
+
userOptionsVisible: Z,
|
|
198
|
+
setUserOptionsVisibility: Ee,
|
|
199
|
+
keepUserOptionState: He
|
|
200
|
+
} = ka({ config: e.value }), { svgRef: fe } = Aa({ config: e.value.style.chart.title }), ge = d(() => !!e.value.debug);
|
|
201
|
+
function Xe() {
|
|
202
|
+
const t = D.value || [];
|
|
203
|
+
if (!Array.isArray(t) || t.length === 0) {
|
|
204
|
+
Me({ componentName: "VueUiRidgeline", type: "dataset", debug: ge.value }), ye.value = !0;
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (t.forEach((o, a) => {
|
|
208
|
+
ut({
|
|
209
|
+
datasetObject: o,
|
|
210
|
+
requiredAttributes: ["name", "datapoints"]
|
|
211
|
+
}).forEach((s) => {
|
|
212
|
+
U.value = !1, Me({
|
|
213
|
+
componentName: "VueUiRidgeline",
|
|
214
|
+
type: "datasetSerieAttribute",
|
|
215
|
+
property: s,
|
|
216
|
+
index: a,
|
|
217
|
+
debug: ge.value
|
|
218
|
+
});
|
|
219
|
+
}), Array.isArray(o.datapoints) && o.datapoints.length && o.datapoints.forEach((s, l) => {
|
|
220
|
+
ut({
|
|
221
|
+
datasetObject: s,
|
|
222
|
+
requiredAttributes: ["name", "values"]
|
|
223
|
+
}).forEach((c) => {
|
|
224
|
+
U.value = !1, Me({
|
|
225
|
+
componentName: "VueUiRidgeline",
|
|
226
|
+
type: "datasetSerieAttribute",
|
|
227
|
+
property: `datapoint.${c}`,
|
|
228
|
+
index: `${a}-${l}`,
|
|
229
|
+
debug: ge.value
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
}), Ct.value = t.length, C.value = Math.min(
|
|
234
|
+
e.value.style.chart.areas.height,
|
|
235
|
+
e.value.style.chart.areas.rowHeight
|
|
236
|
+
), ha(E.dataset) || (ye.value = e.value.loading), e.value.responsive) {
|
|
237
|
+
const o = it(() => {
|
|
238
|
+
const { width: a, height: s } = ga({
|
|
239
|
+
chart: $.value,
|
|
240
|
+
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
241
|
+
legend: e.value.style.chart.legend.show ? ze.value : null,
|
|
242
|
+
source: De.value,
|
|
243
|
+
noTitle: Ie.value,
|
|
244
|
+
padding: e.value.style.chart.padding
|
|
245
|
+
});
|
|
246
|
+
requestAnimationFrame(() => {
|
|
247
|
+
Ne.value = a, C.value = t.length ? s / t.length : 0, Re.value = s - 12;
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
P.value && (z.value && P.value.unobserve(z.value), P.value.disconnect()), P.value = new ResizeObserver(o), z.value = $.value?.parentNode || null, z.value && P.value.observe(z.value);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
st(() => {
|
|
254
|
+
P.value && (z.value && P.value.unobserve(z.value), P.value.disconnect());
|
|
255
|
+
});
|
|
256
|
+
const { isPrinting: Be, isImaging: Ue, generatePdf: Ve, generateImage: We } = ba({
|
|
257
|
+
elementId: `vue-ui-ridgeline_${A.value}`,
|
|
258
|
+
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
259
|
+
options: e.value.userOptions.print
|
|
260
|
+
}), wt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), $t = d(() => aa(e.value.customPalette)), S = i({
|
|
261
|
+
showTable: e.value.table.show
|
|
262
|
+
});
|
|
263
|
+
Q(
|
|
264
|
+
() => D.value,
|
|
265
|
+
async (t) => {
|
|
266
|
+
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await we(), Xe(), ie.value += 1, ce.value += 1, S.value.showTable = e.value.table.show);
|
|
267
|
+
},
|
|
268
|
+
{ deep: !0, immediate: !0 }
|
|
269
|
+
), Q(() => E.dataset, (t) => {
|
|
270
|
+
Array.isArray(t) && t.length > 0 && (ye.value = !1);
|
|
271
|
+
}, { deep: !0 }), Q(
|
|
272
|
+
() => W.value,
|
|
273
|
+
async (t) => {
|
|
274
|
+
t || (await we(), Xe());
|
|
275
|
+
},
|
|
276
|
+
{ immediate: !0 }
|
|
277
|
+
), Q(
|
|
278
|
+
() => E.config,
|
|
279
|
+
() => {
|
|
280
|
+
e.value = de(D.value || null), Z.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), S.value.showTable = e.value.table.show, ie.value += 1, ce.value += 1;
|
|
281
|
+
},
|
|
282
|
+
{ deep: !0 }
|
|
283
|
+
);
|
|
284
|
+
const me = d(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
285
|
+
function Ge(t) {
|
|
286
|
+
L.value.includes(t) ? L.value = L.value.filter((o) => o !== t) : L.value.push(t), ue("selectLegend", B.value);
|
|
287
|
+
}
|
|
288
|
+
const M = d(() => U.value ? (D.value || []).map((t) => ({
|
|
289
|
+
...t,
|
|
290
|
+
labelLen: zt(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
291
|
+
uid: Se(),
|
|
292
|
+
datapoints: t.datapoints.map((o, a) => {
|
|
293
|
+
const s = o.color ? la(o.color) : $t.value[a] || se[a] || se[a % se.length], l = nt(o.name);
|
|
294
|
+
return { ...o, color: s, id: l };
|
|
295
|
+
})
|
|
296
|
+
})) : []), Ye = d(() => e.value.style.chart.padding.top + C.value * (D.value || []).length + C.value * me.value + e.value.style.chart.padding.bottom), g = d(() => {
|
|
297
|
+
const t = e.value.style.chart.padding;
|
|
298
|
+
return {
|
|
299
|
+
width: Ne.value,
|
|
300
|
+
height: Ye.value,
|
|
301
|
+
padding: t
|
|
302
|
+
};
|
|
303
|
+
}), _t = d(() => g.value.width), Tt = d(() => g.value.height), pe = i(0), Pt = it((t) => {
|
|
304
|
+
pe.value = t;
|
|
305
|
+
}, 100);
|
|
306
|
+
Qt((t) => {
|
|
307
|
+
const o = he.value;
|
|
308
|
+
if (!o) return;
|
|
309
|
+
const a = new ResizeObserver((s) => {
|
|
310
|
+
Pt(s[0].contentRect.height);
|
|
311
|
+
});
|
|
312
|
+
a.observe(o), t(() => a.disconnect());
|
|
313
|
+
}), st(() => {
|
|
314
|
+
pe.value = 0;
|
|
315
|
+
});
|
|
316
|
+
const b = d(() => ({
|
|
317
|
+
fullHeight: g.value.height + pe.value,
|
|
318
|
+
top: g.value.padding.top,
|
|
319
|
+
left: g.value.padding.left,
|
|
320
|
+
right: g.value.width - g.value.padding.right,
|
|
321
|
+
bottom: g.value.height - e.value.style.chart.padding.bottom,
|
|
322
|
+
width: g.value.width - (g.value.padding.left + g.value.padding.right)
|
|
323
|
+
})), G = d(() => Math.max(...M.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), Y = d(() => xa({
|
|
324
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
325
|
+
maxDatapoints: G.value,
|
|
326
|
+
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
327
|
+
start: 0,
|
|
328
|
+
end: e.value.style.chart.xAxis.labels.values.length
|
|
329
|
+
})), X = d(() => {
|
|
330
|
+
const t = Math.max(...M.value.map((l) => l.labelLen)), o = g.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - o) / G.value, s = [];
|
|
331
|
+
for (let l = 0; l < G.value; l += 1)
|
|
332
|
+
s.push({
|
|
333
|
+
selectorX: o + a * l,
|
|
334
|
+
x: o + a * l - a / 2,
|
|
335
|
+
y: b.value.top,
|
|
336
|
+
label: e.value.style.chart.xAxis.labels.values[l] ? Y.value[l].text : "",
|
|
337
|
+
index: l,
|
|
338
|
+
width: a,
|
|
339
|
+
height: Ye.value
|
|
340
|
+
});
|
|
341
|
+
return s;
|
|
342
|
+
});
|
|
343
|
+
function be(t) {
|
|
344
|
+
return M.value.map((o) => o.datapoints.map((a) => ({
|
|
345
|
+
dp: a,
|
|
346
|
+
selected: a.values[t.index]
|
|
347
|
+
})));
|
|
348
|
+
}
|
|
349
|
+
function St(t) {
|
|
350
|
+
h.value = t;
|
|
351
|
+
const o = be(t);
|
|
352
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
|
|
353
|
+
}
|
|
354
|
+
function Mt(t) {
|
|
355
|
+
h.value = null;
|
|
356
|
+
const o = be(t);
|
|
357
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t.index });
|
|
358
|
+
}
|
|
359
|
+
function Lt(t) {
|
|
360
|
+
const o = be(t);
|
|
361
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t.index }), ue("selectX", o);
|
|
362
|
+
}
|
|
363
|
+
function Ot(t, o) {
|
|
364
|
+
return t.length * o / 2 + o;
|
|
365
|
+
}
|
|
366
|
+
function je(t, o, a) {
|
|
367
|
+
const s = Ot(o, a);
|
|
368
|
+
return t + s > b.value.right;
|
|
369
|
+
}
|
|
370
|
+
function zt(t, o, a = "sans-serif") {
|
|
371
|
+
const l = document.createElement("canvas").getContext("2d"), c = typeof o == "number" ? `${o}px` : o;
|
|
372
|
+
return l.font = `${c} ${a}`, l.measureText(t).width;
|
|
373
|
+
}
|
|
374
|
+
const B = d(() => {
|
|
375
|
+
C.value;
|
|
376
|
+
const t = Math.max(...M.value.map((x) => x.labelLen)), o = Math.max(...M.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), a = Math.min(...M.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), s = g.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (b.value.width - s) / G.value, c = Math.abs(Math.min(a, 0)), _ = o + c;
|
|
377
|
+
function et(x) {
|
|
378
|
+
return isNaN(x / _) ? 0 : x / _;
|
|
379
|
+
}
|
|
380
|
+
return M.value.map((x, q) => {
|
|
381
|
+
const tt = b.value.top + C.value * q, F = b.value.top + tt + C.value * me.value * (1 - et(c));
|
|
382
|
+
return {
|
|
383
|
+
...x,
|
|
384
|
+
label: {
|
|
385
|
+
x: s - e.value.style.chart.yAxis.labels.fontSize,
|
|
386
|
+
y: F
|
|
387
|
+
},
|
|
388
|
+
datapoints: x.datapoints.map((K) => {
|
|
389
|
+
const N = K.values.map((J, Gt) => {
|
|
390
|
+
const Yt = isNaN(J) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(J) ? 0 : J || 0, jt = s + l * Gt, qt = b.value.top + tt + C.value * me.value * (1 - et(Yt + c)), Kt = J === Math.max(...K.values);
|
|
391
|
+
return {
|
|
392
|
+
x: jt,
|
|
393
|
+
y: qt,
|
|
394
|
+
value: J,
|
|
395
|
+
isMaxPoint: Kt,
|
|
396
|
+
zero: F
|
|
397
|
+
};
|
|
398
|
+
}), Bt = `${oa(N, F, !1, !1)}`, Ut = `M ${s},${F} ${rt(N)} ${N.at(-1).x},${F}`, Vt = `M ${s},${F} ${N.at(-1).x},${F}`, at = `M ${sa(N)}`, lt = `M ${rt(N)}`, Wt = na(
|
|
399
|
+
e.value.style.chart.areas.smooth ? at : lt
|
|
400
|
+
);
|
|
401
|
+
return {
|
|
402
|
+
...K,
|
|
403
|
+
uid: Se(),
|
|
404
|
+
plots: N,
|
|
405
|
+
smoothPath: Bt,
|
|
406
|
+
straightPath: Ut,
|
|
407
|
+
zeroPath: Vt,
|
|
408
|
+
pathLength: Wt,
|
|
409
|
+
smoothPathRidge: at,
|
|
410
|
+
straightPathRidge: lt
|
|
411
|
+
};
|
|
412
|
+
}).filter((K) => !L.value.includes(K.id))
|
|
413
|
+
};
|
|
414
|
+
});
|
|
415
|
+
}), L = i([]);
|
|
416
|
+
function Dt(t) {
|
|
417
|
+
const o = /* @__PURE__ */ new Map();
|
|
418
|
+
return t.forEach((a) => {
|
|
419
|
+
a.datapoints.forEach((s, l) => {
|
|
420
|
+
const c = nt(s.name);
|
|
421
|
+
o.has(c) || o.set(c, {
|
|
422
|
+
id: c,
|
|
423
|
+
name: s.name,
|
|
424
|
+
color: s.color,
|
|
425
|
+
shape: "circle",
|
|
426
|
+
segregate: () => Ge(c),
|
|
427
|
+
isSegregated: L.value.includes(c),
|
|
428
|
+
opacity: L.value.includes(c) ? 0.5 : 1
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
}), Array.from(o.values());
|
|
432
|
+
}
|
|
433
|
+
const xe = d(() => Dt(M.value)), It = d(() => ({
|
|
434
|
+
cy: "donut-div-legend",
|
|
435
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
436
|
+
color: e.value.style.chart.legend.color,
|
|
437
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
438
|
+
paddingBottom: 12,
|
|
439
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
440
|
+
})), I = i(!1);
|
|
441
|
+
function qe(t) {
|
|
442
|
+
I.value = t, Fe.value += 1;
|
|
443
|
+
}
|
|
444
|
+
const Ke = i({}), Je = i([]);
|
|
445
|
+
function Ft(t) {
|
|
446
|
+
ue("selectDatapoint", t), e.value.style.chart.dialog.show && (Je.value = t.datapoints.map((o) => ({
|
|
447
|
+
name: o.name,
|
|
448
|
+
color: o.color,
|
|
449
|
+
type: "line",
|
|
450
|
+
useArea: !0,
|
|
451
|
+
smooth: e.value.style.chart.areas.smooth,
|
|
452
|
+
series: o.values
|
|
453
|
+
})), H.value = t, Ke.value = fa({
|
|
454
|
+
...e.value.style.chart.dialog.xyChart,
|
|
455
|
+
responsive: !0,
|
|
456
|
+
// Overriding
|
|
457
|
+
chart: {
|
|
458
|
+
...e.value.style.chart.dialog.xyChart.chart,
|
|
459
|
+
grid: {
|
|
460
|
+
...e.value.style.chart.dialog.xyChart.chart.grid,
|
|
461
|
+
labels: {
|
|
462
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
463
|
+
xAxisLabels: {
|
|
464
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
465
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
466
|
+
// Overriding
|
|
467
|
+
autoRotate: {
|
|
468
|
+
enable: !0,
|
|
469
|
+
angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
470
|
+
},
|
|
471
|
+
// overriding
|
|
472
|
+
datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
|
|
473
|
+
// Overriding
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
tooltip: {
|
|
478
|
+
...e.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
479
|
+
showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
|
|
480
|
+
// Overriding
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}), ve.value && ve.value.open());
|
|
484
|
+
}
|
|
485
|
+
const ke = i(null);
|
|
486
|
+
function Nt(t) {
|
|
487
|
+
ke.value = t;
|
|
488
|
+
}
|
|
489
|
+
function Rt() {
|
|
490
|
+
ke.value = null;
|
|
491
|
+
}
|
|
492
|
+
const ee = i(!1);
|
|
493
|
+
function Ae() {
|
|
494
|
+
ee.value = !ee.value;
|
|
495
|
+
}
|
|
496
|
+
function Qe() {
|
|
497
|
+
S.value.showTable = !S.value.showTable;
|
|
498
|
+
}
|
|
499
|
+
const Ze = d(() => ({ body: B.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
500
|
+
...s,
|
|
501
|
+
rowName: `${a.name}: ${s.name}`
|
|
502
|
+
}))).map((a) => [
|
|
503
|
+
{
|
|
504
|
+
name: a.rowName,
|
|
505
|
+
color: a.color
|
|
506
|
+
},
|
|
507
|
+
...a.values
|
|
508
|
+
]) })), te = d(() => {
|
|
509
|
+
const t = [
|
|
510
|
+
e.value.table.columnNames.series,
|
|
511
|
+
...Y.value.map((s) => s.text)
|
|
512
|
+
], o = {
|
|
513
|
+
th: {
|
|
514
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
515
|
+
color: e.value.table.th.color,
|
|
516
|
+
outline: e.value.table.th.outline
|
|
517
|
+
},
|
|
518
|
+
td: {
|
|
519
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
520
|
+
color: e.value.table.td.color,
|
|
521
|
+
outline: e.value.table.td.outline
|
|
522
|
+
},
|
|
523
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
524
|
+
};
|
|
525
|
+
return {
|
|
526
|
+
colNames: [
|
|
527
|
+
e.value.table.columnNames.series,
|
|
528
|
+
...Y.value.map((s) => s.text)
|
|
529
|
+
],
|
|
530
|
+
head: t,
|
|
531
|
+
body: Ze.value.body,
|
|
532
|
+
config: o
|
|
533
|
+
};
|
|
534
|
+
});
|
|
535
|
+
function Ce(t = null) {
|
|
536
|
+
we(() => {
|
|
537
|
+
const o = [
|
|
538
|
+
[e.value.table.columnNames.series, ...Y.map((l) => [l.text])],
|
|
539
|
+
...Ze.value.body.map((l, c) => [l[0].name, ...l.slice(1)])
|
|
540
|
+
], a = [
|
|
541
|
+
[e.value.style.chart.title.text],
|
|
542
|
+
[e.value.style.chart.title.subtitle.text]
|
|
543
|
+
].concat(o), s = da(a);
|
|
544
|
+
t ? t(s) : ya({
|
|
545
|
+
csvContent: s,
|
|
546
|
+
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
function Et() {
|
|
551
|
+
return B.value;
|
|
552
|
+
}
|
|
553
|
+
async function Ht({ scale: t = 2 } = {}) {
|
|
554
|
+
if (!$.value) return;
|
|
555
|
+
const { width: o, height: a } = $.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: c } = await Ta({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
556
|
+
return {
|
|
557
|
+
imageUri: l,
|
|
558
|
+
base64: c,
|
|
559
|
+
title: e.value.style.chart.title.text,
|
|
560
|
+
width: o,
|
|
561
|
+
height: a,
|
|
562
|
+
aspectRatio: s
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
const Xt = d(() => ({ min: 0, max: G.value }));
|
|
566
|
+
Ca({
|
|
567
|
+
timeLabelsEls: he,
|
|
568
|
+
timeLabels: Y,
|
|
569
|
+
slicer: Xt,
|
|
570
|
+
configRef: e,
|
|
571
|
+
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
572
|
+
autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
|
|
573
|
+
isAutoSize: !1,
|
|
574
|
+
width: _t,
|
|
575
|
+
height: Tt,
|
|
576
|
+
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
577
|
+
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
578
|
+
});
|
|
579
|
+
const j = d(() => {
|
|
580
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = S.value.showTable;
|
|
581
|
+
return {
|
|
582
|
+
component: t ? Le : gt,
|
|
583
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
584
|
+
props: t ? {
|
|
585
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
586
|
+
color: e.value.table.th.color,
|
|
587
|
+
headerColor: e.value.table.th.color,
|
|
588
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
589
|
+
isFullscreen: I.value,
|
|
590
|
+
fullscreenParent: $.value,
|
|
591
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
592
|
+
} : {
|
|
593
|
+
hideDetails: !0,
|
|
594
|
+
config: {
|
|
595
|
+
open: o,
|
|
596
|
+
maxHeight: 1e4,
|
|
597
|
+
body: {
|
|
598
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
599
|
+
color: e.value.style.chart.color
|
|
600
|
+
},
|
|
601
|
+
head: {
|
|
602
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
603
|
+
color: e.value.style.chart.color
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
});
|
|
609
|
+
return Q(() => S.value.showTable, (t) => {
|
|
610
|
+
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
611
|
+
}), ht({
|
|
612
|
+
getData: Et,
|
|
613
|
+
getImage: Ht,
|
|
614
|
+
generateImage: We,
|
|
615
|
+
generatePdf: Ve,
|
|
616
|
+
generateCsv: Ce,
|
|
617
|
+
toggleAnnotator: Ae,
|
|
618
|
+
toggleTable: Qe,
|
|
619
|
+
toggleFullscreen: qe
|
|
620
|
+
}), (t, o) => (n(), r("div", {
|
|
621
|
+
ref_key: "ridgelineChart",
|
|
622
|
+
ref: $,
|
|
623
|
+
class: ae(`vue-ui-ridgeline ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
624
|
+
id: `vue-ui-ridgeline_${A.value}`,
|
|
625
|
+
style: w({
|
|
626
|
+
fontFamily: e.value.style.fontFamily,
|
|
627
|
+
width: "100%",
|
|
628
|
+
textAlign: "center",
|
|
629
|
+
background: e.value.style.chart.backgroundColor,
|
|
630
|
+
height: e.value.responsive ? "100%" : void 0
|
|
631
|
+
}),
|
|
632
|
+
onMouseenter: o[5] || (o[5] = () => u(Ee)(!0)),
|
|
633
|
+
onMouseleave: o[6] || (o[6] = () => u(Ee)(!1))
|
|
634
|
+
}, [
|
|
635
|
+
e.value.userOptions.buttons.annotator && u(fe) ? (n(), T(u(pt), {
|
|
636
|
+
key: 0,
|
|
637
|
+
color: e.value.style.chart.color,
|
|
638
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
639
|
+
active: ee.value,
|
|
640
|
+
svgRef: u(fe),
|
|
641
|
+
onClose: Ae
|
|
642
|
+
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
643
|
+
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
644
|
+
wt.value ? (n(), r("div", {
|
|
645
|
+
key: 1,
|
|
646
|
+
ref_key: "noTitle",
|
|
647
|
+
ref: Ie,
|
|
648
|
+
class: "vue-data-ui-no-title-space",
|
|
649
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
650
|
+
}, null, 512)) : v("", !0),
|
|
651
|
+
e.value.style.chart.title.text ? (n(), r("div", {
|
|
652
|
+
key: 2,
|
|
653
|
+
ref_key: "chartTitle",
|
|
654
|
+
ref: Oe,
|
|
655
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
656
|
+
}, [
|
|
657
|
+
(n(), T($a, {
|
|
658
|
+
key: `title_${ie.value}`,
|
|
659
|
+
config: {
|
|
660
|
+
title: {
|
|
661
|
+
cy: "ridgeline-div-title",
|
|
662
|
+
...e.value.style.chart.title
|
|
663
|
+
},
|
|
664
|
+
subtitle: {
|
|
665
|
+
cy: "ridgeline-div-subtitle",
|
|
666
|
+
...e.value.style.chart.title.subtitle
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}, null, 8, ["config"]))
|
|
670
|
+
], 512)) : v("", !0),
|
|
671
|
+
e.value.userOptions.show && U.value && (u(He) || u(Z)) ? (n(), T(u(bt), {
|
|
672
|
+
ref: "details",
|
|
673
|
+
key: `user_option_${Fe.value}`,
|
|
674
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
675
|
+
color: e.value.style.chart.color,
|
|
676
|
+
isPrinting: u(Be),
|
|
677
|
+
isImaging: u(Ue),
|
|
678
|
+
uid: A.value,
|
|
679
|
+
hasTooltip: !1,
|
|
680
|
+
callbacks: e.value.userOptions.callbacks,
|
|
681
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
682
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
683
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
684
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
685
|
+
hasLabel: !1,
|
|
686
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
687
|
+
isFullscreen: I.value,
|
|
688
|
+
printScale: e.value.userOptions.print.scale,
|
|
689
|
+
chartElement: $.value,
|
|
690
|
+
position: e.value.userOptions.position,
|
|
691
|
+
isTooltip: !1,
|
|
692
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
693
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
694
|
+
isAnnotation: ee.value,
|
|
695
|
+
style: w({
|
|
696
|
+
visibility: u(He) ? u(Z) ? "visible" : "hidden" : "visible"
|
|
697
|
+
}),
|
|
698
|
+
onToggleFullscreen: qe,
|
|
699
|
+
onGeneratePdf: u(Ve),
|
|
700
|
+
onGenerateCsv: Ce,
|
|
701
|
+
onGenerateImage: u(We),
|
|
702
|
+
onToggleTable: Qe,
|
|
703
|
+
onToggleAnnotator: Ae
|
|
704
|
+
}, $e({ _: 2 }, [
|
|
705
|
+
t.$slots.menuIcon ? {
|
|
706
|
+
name: "menuIcon",
|
|
707
|
+
fn: f(({ isOpen: a, color: s }) => [
|
|
708
|
+
p(t.$slots, "menuIcon", le(oe({ isOpen: a, color: s })), void 0, !0)
|
|
709
|
+
]),
|
|
710
|
+
key: "0"
|
|
711
|
+
} : void 0,
|
|
712
|
+
t.$slots.optionTooltip ? {
|
|
713
|
+
name: "optionTooltip",
|
|
714
|
+
fn: f(() => [
|
|
715
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
716
|
+
]),
|
|
717
|
+
key: "1"
|
|
718
|
+
} : void 0,
|
|
719
|
+
t.$slots.optionPdf ? {
|
|
720
|
+
name: "optionPdf",
|
|
721
|
+
fn: f(() => [
|
|
722
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
723
|
+
]),
|
|
724
|
+
key: "2"
|
|
725
|
+
} : void 0,
|
|
726
|
+
t.$slots.optionCsv ? {
|
|
727
|
+
name: "optionCsv",
|
|
728
|
+
fn: f(() => [
|
|
729
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
730
|
+
]),
|
|
731
|
+
key: "3"
|
|
732
|
+
} : void 0,
|
|
733
|
+
t.$slots.optionImg ? {
|
|
734
|
+
name: "optionImg",
|
|
735
|
+
fn: f(() => [
|
|
736
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
737
|
+
]),
|
|
738
|
+
key: "4"
|
|
739
|
+
} : void 0,
|
|
740
|
+
t.$slots.optionTable ? {
|
|
741
|
+
name: "optionTable",
|
|
742
|
+
fn: f(() => [
|
|
743
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
744
|
+
]),
|
|
745
|
+
key: "5"
|
|
746
|
+
} : void 0,
|
|
747
|
+
t.$slots.optionFullscreen ? {
|
|
748
|
+
name: "optionFullscreen",
|
|
749
|
+
fn: f(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
750
|
+
p(t.$slots, "optionFullscreen", le(oe({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
751
|
+
]),
|
|
752
|
+
key: "6"
|
|
753
|
+
} : void 0,
|
|
754
|
+
t.$slots.optionAnnotator ? {
|
|
755
|
+
name: "optionAnnotator",
|
|
756
|
+
fn: f(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
757
|
+
p(t.$slots, "optionAnnotator", le(oe({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
758
|
+
]),
|
|
759
|
+
key: "7"
|
|
760
|
+
} : void 0
|
|
761
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
762
|
+
(n(), r("svg", {
|
|
763
|
+
ref_key: "svgRef",
|
|
764
|
+
ref: fe,
|
|
765
|
+
xmlns: u(ra),
|
|
766
|
+
class: ae({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
767
|
+
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
768
|
+
style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Re.value}px; width: 100%;` : ""}`)
|
|
769
|
+
}, [
|
|
770
|
+
_e(u(xt)),
|
|
771
|
+
y("defs", null, [
|
|
772
|
+
(n(!0), r(m, null, k(xe.value, (a, s) => (n(), r("linearGradient", {
|
|
773
|
+
id: `gradient-${a.id}-${A.value}`,
|
|
774
|
+
x1: "50%",
|
|
775
|
+
y1: "0%",
|
|
776
|
+
x2: "50%",
|
|
777
|
+
y2: "100%"
|
|
778
|
+
}, [
|
|
779
|
+
y("stop", {
|
|
780
|
+
offset: "0%",
|
|
781
|
+
"stop-color": a.color,
|
|
782
|
+
"stop-opacity": "1"
|
|
783
|
+
}, null, 8, Oa),
|
|
784
|
+
y("stop", {
|
|
785
|
+
offset: "30%",
|
|
786
|
+
"stop-color": a.color,
|
|
787
|
+
"stop-opacity": "0.7"
|
|
788
|
+
}, null, 8, za),
|
|
789
|
+
y("stop", {
|
|
790
|
+
offset: "70%",
|
|
791
|
+
"stop-color": a.color,
|
|
792
|
+
"stop-opacity": "0.3"
|
|
793
|
+
}, null, 8, Da),
|
|
794
|
+
y("stop", {
|
|
795
|
+
offset: "100%",
|
|
796
|
+
"stop-color": a.color,
|
|
797
|
+
"stop-opacity": "0.1"
|
|
798
|
+
}, null, 8, Ia)
|
|
799
|
+
], 8, La))), 256)),
|
|
800
|
+
(n(!0), r(m, null, k(B.value, (a, s) => (n(), r(m, null, [
|
|
801
|
+
(n(!0), r(m, null, k(a.datapoints, (l, c) => (n(), r("linearGradient", {
|
|
802
|
+
key: `grad${l.id}`,
|
|
803
|
+
id: `gradient-single-${A.value}-${l.uid}`,
|
|
804
|
+
x1: "50%",
|
|
805
|
+
y1: "0%",
|
|
806
|
+
x2: "50%",
|
|
807
|
+
y2: "100%"
|
|
808
|
+
}, [
|
|
809
|
+
y("stop", {
|
|
810
|
+
offset: "0%",
|
|
811
|
+
"stop-color": l.color,
|
|
812
|
+
"stop-opacity": "1"
|
|
813
|
+
}, null, 8, Na),
|
|
814
|
+
y("stop", {
|
|
815
|
+
offset: "30%",
|
|
816
|
+
"stop-color": l.color,
|
|
817
|
+
"stop-opacity": "0.7"
|
|
818
|
+
}, null, 8, Ra),
|
|
819
|
+
y("stop", {
|
|
820
|
+
offset: "70%",
|
|
821
|
+
"stop-color": l.color,
|
|
822
|
+
"stop-opacity": "0.3"
|
|
823
|
+
}, null, 8, Ea),
|
|
824
|
+
y("stop", {
|
|
825
|
+
offset: "100%",
|
|
826
|
+
"stop-color": l.color,
|
|
827
|
+
"stop-opacity": "0.1"
|
|
828
|
+
}, null, 8, Ha)
|
|
829
|
+
], 8, Fa))), 128))
|
|
830
|
+
], 64))), 256))
|
|
831
|
+
]),
|
|
832
|
+
(n(!0), r(m, null, k(B.value, (a, s) => (n(), r("g", {
|
|
833
|
+
key: `ds-${s}`
|
|
834
|
+
}, [
|
|
835
|
+
(n(!0), r(m, null, k(a.datapoints, (l, c) => (n(), r("g", {
|
|
836
|
+
key: l.id
|
|
837
|
+
}, [
|
|
838
|
+
t.$slots.pattern ? (n(), r("g", Xa, [
|
|
839
|
+
y("defs", null, [
|
|
840
|
+
p(t.$slots, "pattern", Te({ ref_for: !0 }, { datapointIndex: s, seriesIndex: c, patternId: `pattern_${A.value}_${l.uid}` }), void 0, !0)
|
|
841
|
+
])
|
|
842
|
+
])) : v("", !0),
|
|
843
|
+
y("path", {
|
|
844
|
+
fill: t.$slots.pattern ? `url(#pattern_${A.value}_${l.uid})` : e.value.style.chart.backgroundColor,
|
|
845
|
+
stroke: "none",
|
|
846
|
+
"stroke-linecap": "round",
|
|
847
|
+
d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
|
|
848
|
+
style: w({
|
|
849
|
+
opacity: e.value.style.chart.areas.opacity
|
|
850
|
+
})
|
|
851
|
+
}, null, 12, Ba),
|
|
852
|
+
y("path", {
|
|
853
|
+
fill: "none",
|
|
854
|
+
stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
|
|
855
|
+
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
856
|
+
d: e.value.style.chart.areas.smooth ? l.smoothPathRidge : l.straightPathRidge,
|
|
857
|
+
"stroke-linecap": "round",
|
|
858
|
+
"stroke-linejoin": "round",
|
|
859
|
+
class: ae({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(W) }),
|
|
860
|
+
style: w({
|
|
861
|
+
strokeDasharray: l.pathLength,
|
|
862
|
+
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
863
|
+
})
|
|
864
|
+
}, null, 14, Ua),
|
|
865
|
+
y("path", {
|
|
866
|
+
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${l.id}-${A.value})` : `url(#gradient-single-${A.value}-${l.uid})` : l.color,
|
|
867
|
+
stroke: "none",
|
|
868
|
+
d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
|
|
869
|
+
"stroke-linecap": "round",
|
|
870
|
+
"stroke-linejoin": "round",
|
|
871
|
+
class: ae({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(W) }),
|
|
872
|
+
style: w({
|
|
873
|
+
strokeDasharray: l.pathLength,
|
|
874
|
+
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
875
|
+
})
|
|
876
|
+
}, null, 14, Va),
|
|
877
|
+
e.value.style.chart.zeroLine.show ? (n(), r("path", {
|
|
878
|
+
key: 1,
|
|
879
|
+
stroke: e.value.style.chart.zeroLine.useSerieColor ? l.color : e.value.style.chart.zeroLine.stroke,
|
|
880
|
+
"stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
|
|
881
|
+
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
882
|
+
d: l.zeroPath,
|
|
883
|
+
"stroke-linecap": "round"
|
|
884
|
+
}, null, 8, Wa)) : v("", !0),
|
|
885
|
+
e.value.style.chart.areas.maxPoint.show && l.plots.length > 1 ? (n(!0), r(m, { key: 2 }, k(l.plots, (_) => (n(), r(m, null, [
|
|
886
|
+
_.isMaxPoint ? (n(), r("line", {
|
|
887
|
+
key: 0,
|
|
888
|
+
x1: _.x,
|
|
889
|
+
y1: _.y,
|
|
890
|
+
x2: _.x,
|
|
891
|
+
y2: _.zero,
|
|
892
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ua)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
893
|
+
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
894
|
+
"stroke-linecap": "round",
|
|
895
|
+
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
896
|
+
}, null, 8, Ga)) : v("", !0)
|
|
897
|
+
], 64))), 256)) : v("", !0),
|
|
898
|
+
l.plots.length === 1 ? (n(), r("circle", {
|
|
899
|
+
key: 3,
|
|
900
|
+
cx: l.plots[0].x,
|
|
901
|
+
cy: l.plots[0].y,
|
|
902
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
903
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
904
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
905
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? l.color : e.value.style.chart.selector.dot.fill,
|
|
906
|
+
style: {
|
|
907
|
+
pointerEvents: "none"
|
|
908
|
+
}
|
|
909
|
+
}, null, 8, Ya)) : v("", !0)
|
|
910
|
+
]))), 128)),
|
|
911
|
+
y("text", {
|
|
912
|
+
x: a.label.x,
|
|
913
|
+
y: a.label.y,
|
|
914
|
+
"text-anchor": "end",
|
|
915
|
+
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
916
|
+
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
917
|
+
fill: e.value.style.chart.yAxis.labels.color,
|
|
918
|
+
style: w({
|
|
919
|
+
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
920
|
+
}),
|
|
921
|
+
"text-decoration": e.value.style.chart.dialog.show && (ke.value === s || H.value && a.uid === H.value.uid) ? "underline" : "",
|
|
922
|
+
onMouseenter: (l) => Nt(s),
|
|
923
|
+
onMouseleave: Rt,
|
|
924
|
+
onClick: (l) => Ft(a)
|
|
925
|
+
}, R(a.name), 45, ja)
|
|
926
|
+
]))), 128)),
|
|
927
|
+
e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
|
|
928
|
+
key: 0,
|
|
929
|
+
ref_key: "timeLabelsEls",
|
|
930
|
+
ref: he
|
|
931
|
+
}, [
|
|
932
|
+
(n(!0), r(m, null, k(X.value, (a, s) => p(t.$slots, "time-label", Te({ ref_for: !0 }, {
|
|
933
|
+
show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === X.value.length - 1) || a && h.value && h.value.index === s || a && !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,
|
|
934
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
935
|
+
content: a.label,
|
|
936
|
+
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
937
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
938
|
+
transform: `translate(${a.selectorX}, ${b.value.top + a.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
939
|
+
x: a.selectorX,
|
|
940
|
+
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
941
|
+
}), () => [
|
|
942
|
+
a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === X.value.length - 1) || a && h.value && h.value.index === s || a && !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 ? (n(), r("g", qa, [
|
|
943
|
+
String(a.label).includes(`
|
|
944
|
+
`) ? (n(), r("text", {
|
|
945
|
+
key: 1,
|
|
946
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
947
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
948
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
949
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
950
|
+
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
951
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
952
|
+
style: w({
|
|
953
|
+
opacity: h.value ? h.value.index === s ? 1 : 0.2 : 1
|
|
954
|
+
}),
|
|
955
|
+
innerHTML: u(ia)({
|
|
956
|
+
content: String(a.label),
|
|
957
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
958
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
959
|
+
x: 0,
|
|
960
|
+
y: 0
|
|
961
|
+
})
|
|
962
|
+
}, null, 12, Ja)) : (n(), r("text", {
|
|
963
|
+
key: 0,
|
|
964
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
965
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
966
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
967
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
968
|
+
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
969
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
970
|
+
style: w({
|
|
971
|
+
opacity: h.value ? h.value.index === s ? 1 : 0.2 : 1
|
|
972
|
+
})
|
|
973
|
+
}, R(a.label), 13, Ka))
|
|
974
|
+
])) : v("", !0)
|
|
975
|
+
], !0)), 256))
|
|
976
|
+
], 512)) : v("", !0),
|
|
977
|
+
y("g", null, [
|
|
978
|
+
(n(!0), r(m, null, k(X.value, (a, s) => (n(), r("rect", {
|
|
979
|
+
x: a.x,
|
|
980
|
+
y: a.y,
|
|
981
|
+
width: a.width < 0 ? 0.1 : a.width,
|
|
982
|
+
height: a.height < 0 ? 0.1 : a.height,
|
|
983
|
+
fill: "transparent",
|
|
984
|
+
onMouseenter: (l) => St(a),
|
|
985
|
+
onMouseleave: (l) => Mt(a),
|
|
986
|
+
onClick: () => Lt(a)
|
|
987
|
+
}, null, 40, Qa))), 256)),
|
|
988
|
+
e.value.style.chart.selector.show && h.value ? (n(), r("line", {
|
|
989
|
+
key: 0,
|
|
990
|
+
x1: h.value.selectorX,
|
|
991
|
+
x2: h.value.selectorX,
|
|
992
|
+
y1: h.value.y,
|
|
993
|
+
y2: h.value.y + h.value.height - C.value / 2,
|
|
994
|
+
stroke: e.value.style.chart.selector.stroke,
|
|
995
|
+
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
996
|
+
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
997
|
+
"stroke-linecap": "round",
|
|
998
|
+
style: { pointerEvents: "none" }
|
|
999
|
+
}, null, 8, Za)) : v("", !0),
|
|
1000
|
+
h.value ? (n(!0), r(m, { key: 1 }, k(B.value, (a) => (n(), r(m, null, [
|
|
1001
|
+
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1002
|
+
(n(!0), r(m, null, k(s.plots, (l, c) => (n(), r(m, null, [
|
|
1003
|
+
h.value && h.value.index === c ? (n(), r("circle", {
|
|
1004
|
+
key: 0,
|
|
1005
|
+
cx: l.x,
|
|
1006
|
+
cy: l.y,
|
|
1007
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
1008
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
1009
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
1010
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? s.color : e.value.style.chart.selector.dot.fill,
|
|
1011
|
+
style: {
|
|
1012
|
+
pointerEvents: "none"
|
|
1013
|
+
}
|
|
1014
|
+
}, null, 8, el)) : v("", !0),
|
|
1015
|
+
h.value && h.value.index === c ? (n(), r("text", {
|
|
1016
|
+
key: 1,
|
|
1017
|
+
x: je(
|
|
1018
|
+
l.x,
|
|
1019
|
+
u(ne)(
|
|
1020
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1021
|
+
l.value,
|
|
1022
|
+
u(re)({
|
|
1023
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1024
|
+
v: l.value,
|
|
1025
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1026
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1027
|
+
})
|
|
1028
|
+
),
|
|
1029
|
+
e.value.style.chart.selector.labels.fontSize
|
|
1030
|
+
) ? l.x - e.value.style.chart.selector.labels.fontSize / 2 : l.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
1031
|
+
y: l.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
1032
|
+
"text-anchor": je(
|
|
1033
|
+
l.x,
|
|
1034
|
+
u(ne)(
|
|
1035
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1036
|
+
l.value,
|
|
1037
|
+
u(re)({
|
|
1038
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1039
|
+
v: l.value,
|
|
1040
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1041
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1042
|
+
})
|
|
1043
|
+
),
|
|
1044
|
+
e.value.style.chart.selector.labels.fontSize
|
|
1045
|
+
) ? "end" : "start",
|
|
1046
|
+
"font-size": e.value.style.chart.selector.labels.fontSize,
|
|
1047
|
+
fill: e.value.style.chart.selector.labels.color,
|
|
1048
|
+
style: {
|
|
1049
|
+
pointerEvents: "none"
|
|
1050
|
+
}
|
|
1051
|
+
}, R(u(ne)(
|
|
1052
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1053
|
+
l.value,
|
|
1054
|
+
u(re)({
|
|
1055
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1056
|
+
v: l.value,
|
|
1057
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1058
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1059
|
+
})
|
|
1060
|
+
)), 9, tl)) : v("", !0)
|
|
1061
|
+
], 64))), 256))
|
|
1062
|
+
], 64))), 256))
|
|
1063
|
+
], 64))), 256)) : v("", !0)
|
|
1064
|
+
]),
|
|
1065
|
+
p(t.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
1066
|
+
], 14, Ma)),
|
|
1067
|
+
t.$slots.watermark ? (n(), r("div", al, [
|
|
1068
|
+
p(t.$slots, "watermark", le(oe({ isPrinting: u(Be) || u(Ue) })), void 0, !0)
|
|
1069
|
+
])) : v("", !0),
|
|
1070
|
+
y("div", {
|
|
1071
|
+
ref_key: "chartLegend",
|
|
1072
|
+
ref: ze
|
|
1073
|
+
}, [
|
|
1074
|
+
e.value.style.chart.legend.show ? (n(), T(wa, {
|
|
1075
|
+
key: `legend_${ce.value}`,
|
|
1076
|
+
legendSet: xe.value,
|
|
1077
|
+
config: It.value,
|
|
1078
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => Ge(a.id))
|
|
1079
|
+
}, $e({
|
|
1080
|
+
item: f(({ legend: a }) => [
|
|
1081
|
+
u(W) ? v("", !0) : (n(), r("div", {
|
|
1082
|
+
key: 0,
|
|
1083
|
+
style: w(`opacity:${L.value.includes(a.id) ? 0.5 : 1}`),
|
|
1084
|
+
onClick: (s) => a.segregate()
|
|
1085
|
+
}, R(a.name), 13, ll))
|
|
1086
|
+
]),
|
|
1087
|
+
_: 2
|
|
1088
|
+
}, [
|
|
1089
|
+
t.$slots.pattern ? {
|
|
1090
|
+
name: "legend-pattern",
|
|
1091
|
+
fn: f(({ legend: a, index: s }) => [
|
|
1092
|
+
_e(_a, {
|
|
1093
|
+
shape: a.shape,
|
|
1094
|
+
radius: 30,
|
|
1095
|
+
stroke: "none",
|
|
1096
|
+
plot: { x: 30, y: 30 },
|
|
1097
|
+
fill: `url(#pattern_${A.value}_${s})`
|
|
1098
|
+
}, null, 8, ["shape", "fill"])
|
|
1099
|
+
]),
|
|
1100
|
+
key: "0"
|
|
1101
|
+
} : void 0
|
|
1102
|
+
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1103
|
+
p(t.$slots, "legend", { legend: xe.value }, void 0, !0)
|
|
1104
|
+
], 512),
|
|
1105
|
+
t.$slots.source ? (n(), r("div", {
|
|
1106
|
+
key: 5,
|
|
1107
|
+
ref_key: "source",
|
|
1108
|
+
ref: De,
|
|
1109
|
+
dir: "auto"
|
|
1110
|
+
}, [
|
|
1111
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
1112
|
+
], 512)) : v("", !0),
|
|
1113
|
+
U.value ? (n(), T(Zt(j.value.component), Te({ key: 6 }, j.value.props, {
|
|
1114
|
+
ref_key: "tableUnit",
|
|
1115
|
+
ref: V,
|
|
1116
|
+
onClose: o[3] || (o[3] = (a) => S.value.showTable = !1)
|
|
1117
|
+
}), $e({
|
|
1118
|
+
content: f(() => [
|
|
1119
|
+
(n(), T(u(mt), {
|
|
1120
|
+
key: `table_${At.value}`,
|
|
1121
|
+
colNames: te.value.colNames,
|
|
1122
|
+
head: te.value.head,
|
|
1123
|
+
body: te.value.body,
|
|
1124
|
+
config: te.value.config,
|
|
1125
|
+
title: e.value.table.useDialog ? "" : j.value.title,
|
|
1126
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1127
|
+
onClose: o[2] || (o[2] = (a) => S.value.showTable = !1)
|
|
1128
|
+
}, {
|
|
1129
|
+
th: f(({ th: a }) => [
|
|
1130
|
+
y("div", { innerHTML: a }, null, 8, ol)
|
|
1131
|
+
]),
|
|
1132
|
+
td: f(({ td: a }) => [
|
|
1133
|
+
Pe(R(a.name ? a.name : u(ne)(
|
|
1134
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1135
|
+
a,
|
|
1136
|
+
u(re)({
|
|
1137
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1138
|
+
v: a,
|
|
1139
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1140
|
+
r: e.value.table.td.roundingValue
|
|
1141
|
+
})
|
|
1142
|
+
)), 1)
|
|
1143
|
+
]),
|
|
1144
|
+
_: 1
|
|
1145
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1146
|
+
]),
|
|
1147
|
+
_: 2
|
|
1148
|
+
}, [
|
|
1149
|
+
e.value.table.useDialog ? {
|
|
1150
|
+
name: "title",
|
|
1151
|
+
fn: f(() => [
|
|
1152
|
+
Pe(R(j.value.title), 1)
|
|
1153
|
+
]),
|
|
1154
|
+
key: "0"
|
|
1155
|
+
} : void 0,
|
|
1156
|
+
e.value.table.useDialog ? {
|
|
1157
|
+
name: "actions",
|
|
1158
|
+
fn: f(() => [
|
|
1159
|
+
y("button", {
|
|
1160
|
+
tabindex: "0",
|
|
1161
|
+
class: "vue-ui-user-options-button",
|
|
1162
|
+
onClick: o[1] || (o[1] = (a) => Ce(e.value.userOptions.callbacks.csv))
|
|
1163
|
+
}, [
|
|
1164
|
+
_e(u(ft), {
|
|
1165
|
+
name: "excel",
|
|
1166
|
+
stroke: j.value.props.color
|
|
1167
|
+
}, null, 8, ["stroke"])
|
|
1168
|
+
])
|
|
1169
|
+
]),
|
|
1170
|
+
key: "1"
|
|
1171
|
+
} : void 0
|
|
1172
|
+
]), 1040)) : v("", !0),
|
|
1173
|
+
e.value.style.chart.dialog.show ? (n(), T(u(Le), {
|
|
1174
|
+
key: 7,
|
|
1175
|
+
ref_key: "dialog",
|
|
1176
|
+
ref: ve,
|
|
1177
|
+
onClose: o[4] || (o[4] = (a) => H.value = null),
|
|
1178
|
+
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1179
|
+
color: e.value.style.chart.dialog.color,
|
|
1180
|
+
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1181
|
+
headerColor: e.value.style.chart.dialog.header.color,
|
|
1182
|
+
isFullscreen: I.value,
|
|
1183
|
+
fullscreenParent: $.value,
|
|
1184
|
+
withPadding: ""
|
|
1185
|
+
}, {
|
|
1186
|
+
title: f(() => [
|
|
1187
|
+
Pe(R(H.value.name), 1)
|
|
1188
|
+
]),
|
|
1189
|
+
content: f(() => [
|
|
1190
|
+
H.value ? (n(), T(u(yt), {
|
|
1191
|
+
key: 0,
|
|
1192
|
+
config: Ke.value,
|
|
1193
|
+
dataset: Je.value
|
|
1194
|
+
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1195
|
+
]),
|
|
1196
|
+
_: 1
|
|
1197
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1198
|
+
u(W) ? (n(), T(pa, { key: 8 })) : v("", !0)
|
|
1199
|
+
], 46, Sa));
|
|
1200
|
+
}
|
|
1201
|
+
}, kl = /* @__PURE__ */ Pa(sl, [["__scopeId", "data-v-2b0f164a"]]);
|
|
1202
|
+
export {
|
|
1203
|
+
kl as default
|
|
1204
|
+
};
|