vue-data-ui 2.12.2 → 2.12.4
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-DIWP4RKK.js → Arrow-DWXcP0Gw.js} +1 -1
- package/dist/BaseDraggableDialog-DyV-BY6O.js +186 -0
- package/dist/{BaseIcon-C8PYAGSm.js → BaseIcon-DIIS9hFE.js} +1 -1
- package/dist/{ColorPicker-DVqKbGvI.js → ColorPicker-D09a5oTx.js} +3 -3
- package/dist/{DataTable-bu8svd8_.js → DataTable-BAr4XpSA.js} +2 -2
- package/dist/{Legend-DPhZp44K.js → Legend-CxZqkiNm.js} +4 -4
- package/dist/{PackageVersion-DV3lyC6_.js → PackageVersion-CQUs0b3q.js} +1 -1
- package/dist/{PenAndPaper-mmgChIlY.js → PenAndPaper-DmGOEcsD.js} +3 -3
- package/dist/{Shape-CqqGhNJ7.js → Shape-gJBc0QCq.js} +1 -1
- package/dist/{Slicer-4gNIAogU.js → Slicer-B81b2Jr1.js} +2 -2
- package/dist/{Title-BjMd4WGZ.js → Title-BQKp20eU.js} +1 -1
- package/dist/{Tooltip-QXYFefbw.js → Tooltip-Bjsc232E.js} +1 -1
- package/dist/{dom-to-png-xlji2G1x.js → dom-to-png-BAR1EMYe.js} +1 -1
- package/dist/{img-DazS1-Hk.js → img-BDqur_YP.js} +1 -1
- package/dist/{index-DISniBjo.js → index-BKDMQMKQ.js} +538 -491
- package/dist/{pdf-CQZKhr5c.js → pdf-CMw0Bw1w.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -0
- package/dist/types/vue-data-ui.d.ts +12 -0
- package/dist/{useNestedProp-Cg1rd0rj.js → useNestedProp-B_1UW4X2.js} +1 -1
- package/dist/{usePrinter-Cw5Mv9xt.js → usePrinter-BNaQ2HUw.js} +3 -3
- package/dist/{vue-data-ui-BTvacIdS.js → vue-data-ui-RV3mQ1d3.js} +63 -63
- package/dist/vue-data-ui.js +23 -23
- package/dist/{vue-ui-3d-bar-BxHQK-2L.js → vue-ui-3d-bar-Bq4AcGdm.js} +9 -9
- package/dist/{vue-ui-accordion-CFpwBwSP.js → vue-ui-accordion-DyqkVlpC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-MdH3FVAn.js → vue-ui-age-pyramid-BYn8ffyI.js} +10 -10
- package/dist/{vue-ui-annotator-CoTlk9ka.js → vue-ui-annotator-Biv6tN6c.js} +2 -2
- package/dist/{vue-ui-bullet-BXcym8wq.js → vue-ui-bullet-DVflwrvi.js} +8 -8
- package/dist/{vue-ui-candlestick-pPYXGx-u.js → vue-ui-candlestick-C-gmKrpa.js} +11 -11
- package/dist/{vue-ui-carousel-table-CSBqSz49.js → vue-ui-carousel-table-DJT77KEd.js} +4 -4
- package/dist/{vue-ui-chestnut-BIB3Y5Do.js → vue-ui-chestnut-CuF02nem.js} +8 -8
- package/dist/{vue-ui-chord-D7Zxwz-p.js → vue-ui-chord-7PHPveVU.js} +65 -65
- package/dist/{vue-ui-circle-pack-CshPHdim.js → vue-ui-circle-pack-BU_MxW6h.js} +9 -9
- package/dist/{vue-ui-cursor-Dy7yoURO.js → vue-ui-cursor-DSFHMrnK.js} +2 -2
- package/dist/{vue-ui-dashboard-CTcgQdrY.js → vue-ui-dashboard-CHyk8pO_.js} +62 -62
- package/dist/{vue-ui-digits-BgMG_ZD8.js → vue-ui-digits-GOVpxQeg.js} +2 -2
- package/dist/{vue-ui-donut-CD5UvHFF.js → vue-ui-donut-C5sXao7U.js} +105 -107
- package/dist/vue-ui-donut-evolution-BsoNZw0_.js +871 -0
- package/dist/{vue-ui-dumbbell-Bndr5fG2.js → vue-ui-dumbbell-BVX3en_Z.js} +10 -10
- package/dist/{vue-ui-flow-CEbuZB4v.js → vue-ui-flow-CrRVJbjl.js} +24 -24
- package/dist/{vue-ui-funnel-np6S0JDG.js → vue-ui-funnel-DyJvSMLV.js} +9 -9
- package/dist/{vue-ui-galaxy-CcRvS9jz.js → vue-ui-galaxy-B1WrIt-g.js} +32 -32
- package/dist/{vue-ui-gauge-DZHM1d1w.js → vue-ui-gauge-C7qvMFcc.js} +19 -19
- package/dist/{vue-ui-gizmo-VsNpWU8R.js → vue-ui-gizmo-Agt3kM2d.js} +3 -3
- package/dist/{vue-ui-heatmap-COGgS2DC.js → vue-ui-heatmap-Czh2uHtX.js} +32 -32
- package/dist/{vue-ui-history-plot-DP8d4EI1.js → vue-ui-history-plot-KGGrayk7.js} +11 -11
- package/dist/{vue-ui-kpi-DRE3-5BM.js → vue-ui-kpi-B-aYK4fp.js} +3 -3
- package/dist/{vue-ui-mini-loader-CXAQz2Au.js → vue-ui-mini-loader-C0W2_f3L.js} +2 -2
- package/dist/{vue-ui-molecule-CqszhlfW.js → vue-ui-molecule-DjWODfzW.js} +22 -22
- package/dist/{vue-ui-mood-radar-D5sAYfFF.js → vue-ui-mood-radar-CFEN6SOJ.js} +11 -11
- package/dist/{vue-ui-nested-donuts-C3FhBgMa.js → vue-ui-nested-donuts-Dw_TX78M.js} +56 -56
- package/dist/{vue-ui-onion-w4Bhv7xJ.js → vue-ui-onion-CiTCTFRi.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CkP97yTg.js → vue-ui-parallel-coordinate-plot-YAyEWj2K.js} +36 -36
- package/dist/{vue-ui-quadrant-CjNqMQH1.js → vue-ui-quadrant-j54lbADV.js} +41 -41
- package/dist/{vue-ui-quick-chart-D-RFob0G.js → vue-ui-quick-chart-f9MTErUH.js} +9 -9
- package/dist/{vue-ui-radar-GGHlFIw7.js → vue-ui-radar-BQ45fltP.js} +12 -12
- package/dist/{vue-ui-rating-Kl95_moc.js → vue-ui-rating-BjTlb4Lj.js} +11 -11
- package/dist/{vue-ui-relation-circle-TKmNIsV8.js → vue-ui-relation-circle-NX-yzRRP.js} +7 -7
- package/dist/vue-ui-ridgeline-BezQ7Hj-.js +924 -0
- package/dist/{vue-ui-rings-9KoP64bM.js → vue-ui-rings-DJbgQBHR.js} +12 -12
- package/dist/{vue-ui-scatter-XvOvEdKX.js → vue-ui-scatter-17fw3Pcy.js} +60 -60
- package/dist/{vue-ui-skeleton-DCo7JrxG.js → vue-ui-skeleton-BgWQSBb-.js} +19 -19
- package/dist/{vue-ui-smiley-D4l-H6u5.js → vue-ui-smiley-Bo-A4uMV.js} +2 -2
- package/dist/{vue-ui-spark-trend-CCoAQ33g.js → vue-ui-spark-trend-BV9qCKr_.js} +5 -5
- package/dist/{vue-ui-sparkbar-DGIrdVjR.js → vue-ui-sparkbar-CSGGtPTT.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B9ENwH2o.js → vue-ui-sparkgauge-BAia263V.js} +9 -9
- package/dist/{vue-ui-sparkhistogram-RhVUFKFA.js → vue-ui-sparkhistogram-CKexMmEN.js} +5 -5
- package/dist/{vue-ui-sparkline-BvRg6qp5.js → vue-ui-sparkline-DRtP5cMm.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DMTAd6mK.js → vue-ui-sparkstackbar-D_bqkCIj.js} +5 -5
- package/dist/{vue-ui-stackbar-Dz3jTKsH.js → vue-ui-stackbar-u_kZc4Th.js} +13 -13
- package/dist/{vue-ui-strip-plot-gH9KxfjT.js → vue-ui-strip-plot-UQEhmlcX.js} +11 -11
- package/dist/{vue-ui-table-viiFQ5KP.js → vue-ui-table-4BTltNPf.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DzEL36oR.js → vue-ui-table-heatmap-BXlfBI5z.js} +4 -4
- package/dist/{vue-ui-table-sparkline-D5BCWZ-0.js → vue-ui-table-sparkline-DFqDxs2Y.js} +5 -5
- package/dist/{vue-ui-thermometer-ralhUVUt.js → vue-ui-thermometer-DD0QQ8b8.js} +7 -7
- package/dist/{vue-ui-timer-DThtG4by.js → vue-ui-timer-jlPkhU3j.js} +5 -5
- package/dist/{vue-ui-tiremarks-CykunRsN.js → vue-ui-tiremarks-DZ1kGvwG.js} +7 -7
- package/dist/{vue-ui-treemap-qk-p7xMT.js → vue-ui-treemap-Xo1ZAK3l.js} +12 -12
- package/dist/{vue-ui-vertical-bar-EWqYvvQn.js → vue-ui-vertical-bar-G3mo6Ms5.js} +12 -12
- package/dist/{vue-ui-waffle-6X5vGivF.js → vue-ui-waffle-B2Oz6oPQ.js} +27 -27
- package/dist/{vue-ui-wheel-BYjveZ2z.js → vue-ui-wheel-Ml-x_ere.js} +7 -7
- package/dist/{vue-ui-word-cloud-DmYJrVSa.js → vue-ui-word-cloud-3LB7Ntxy.js} +49 -49
- package/dist/{vue-ui-world-uRUcczm9.js → vue-ui-world-ttJISk8E.js} +11 -11
- package/dist/{vue-ui-xy-cUHI3LR_.js → vue-ui-xy-2Z_f3J92.js} +16 -16
- package/dist/{vue-ui-xy-canvas-BI49wqJK.js → vue-ui-xy-canvas-olPGemLS.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-CTTMpOmA.js +0 -948
- package/dist/vue-ui-ridgeline-DZTiIMvd.js +0 -1102
|
@@ -1,1102 +0,0 @@
|
|
|
1
|
-
import { useCssVars as Ct, ref as h, reactive as At, computed as k, onUnmounted as _t, createBlock as P, openBlock as r, Teleport as St, createElementBlock as u, createCommentVNode as y, withModifiers as U, normalizeStyle as O, createElementVNode as c, unref as g, renderSlot as x, createVNode as Ze, nextTick as et, onMounted as Mt, onBeforeUnmount as zt, watch as Ue, normalizeClass as ce, createSlots as Ve, withCtx as $, normalizeProps as de, guardReactiveProps as he, Fragment as b, renderList as T, mergeProps as Ge, toDisplayString as J, createTextVNode as je } from "vue";
|
|
2
|
-
import { X as tt, u as Lt, c as Ae, o as Tt, e as _e, g as qe, b as Ot, d as Pt, p as ve, al as Je, a8 as Et, S as Ke, T as Dt, U as Nt, G as It, i as fe, f as ge, t as Xt, a as Ft, q as Ht, r as Rt, am as Bt } from "./index-DISniBjo.js";
|
|
3
|
-
import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
-
import { u as Yt } from "./useChartAccessibility-BWojgys7.js";
|
|
5
|
-
import { u as Ut, U as Vt } from "./usePrinter-Cw5Mv9xt.js";
|
|
6
|
-
import { t as Gt, u as jt } from "./useResponsive-JZ9xq-JV.js";
|
|
7
|
-
import { u as Qe } from "./useNestedProp-Cg1rd0rj.js";
|
|
8
|
-
import qt from "./vue-ui-accordion-CFpwBwSP.js";
|
|
9
|
-
import Jt from "./BaseIcon-C8PYAGSm.js";
|
|
10
|
-
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { D as Kt } from "./DataTable-bu8svd8_.js";
|
|
12
|
-
import { L as Qt } from "./Legend-DPhZp44K.js";
|
|
13
|
-
import { _ as Zt } from "./PenAndPaper-mmgChIlY.js";
|
|
14
|
-
import { _ as ea } from "./Shape-CqqGhNJ7.js";
|
|
15
|
-
import ta from "./vue-ui-skeleton-DCo7JrxG.js";
|
|
16
|
-
import { _ as aa } from "./Title-BjMd4WGZ.js";
|
|
17
|
-
import la from "./vue-ui-xy-cUHI3LR_.js";
|
|
18
|
-
const oa = ["xmlns"], sa = { class: "modal-title" }, na = { class: "modal-body" }, ra = {
|
|
19
|
-
__name: "BaseDraggableDialog",
|
|
20
|
-
props: {
|
|
21
|
-
backgroundColor: { type: String },
|
|
22
|
-
color: { type: String },
|
|
23
|
-
headerBg: { type: String },
|
|
24
|
-
headerColor: { type: String }
|
|
25
|
-
},
|
|
26
|
-
emits: ["close"],
|
|
27
|
-
setup(X, { expose: ye, emit: pe }) {
|
|
28
|
-
Ct((i) => ({
|
|
29
|
-
b93256ca: X.color
|
|
30
|
-
}));
|
|
31
|
-
const me = X, C = pe, z = h(!1), V = h(!1), o = At({
|
|
32
|
-
left: window.innerWidth / 2 - 200,
|
|
33
|
-
top: window.innerHeight / 2 - 120,
|
|
34
|
-
width: 400,
|
|
35
|
-
height: 400,
|
|
36
|
-
dragging: !1,
|
|
37
|
-
resizing: !1,
|
|
38
|
-
dragOffsetX: 0,
|
|
39
|
-
dragOffsetY: 0,
|
|
40
|
-
pointerStartX: 0,
|
|
41
|
-
pointerStartY: 0,
|
|
42
|
-
resizeStartW: 0,
|
|
43
|
-
resizeStartH: 0
|
|
44
|
-
});
|
|
45
|
-
function ne() {
|
|
46
|
-
z.value = !0, et(() => {
|
|
47
|
-
V.value || (o.left = Math.max(0, window.innerWidth / 2 - o.width / 2), o.top = Math.max(0, window.innerHeight / 2 - o.height / 2), V.value = !0);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function K() {
|
|
51
|
-
z.value = !1, C("close");
|
|
52
|
-
}
|
|
53
|
-
ye({ open: ne, close: K });
|
|
54
|
-
const G = k(() => ({
|
|
55
|
-
position: "fixed",
|
|
56
|
-
left: `${o.left}px`,
|
|
57
|
-
top: `${o.top}px`,
|
|
58
|
-
width: `${o.width}px`,
|
|
59
|
-
height: `${o.height}px`,
|
|
60
|
-
padding: 0,
|
|
61
|
-
border: "none",
|
|
62
|
-
background: me.backgroundColor,
|
|
63
|
-
boxShadow: "0 4px 24px rgba(0,0,0,0.15)",
|
|
64
|
-
zIndex: 9999,
|
|
65
|
-
overflow: "visible",
|
|
66
|
-
borderRadius: "2px"
|
|
67
|
-
}));
|
|
68
|
-
function E(i) {
|
|
69
|
-
return i.touches && i.touches.length ? { x: i.touches[0].clientX, y: i.touches[0].clientY } : { x: i.clientX, y: i.clientY };
|
|
70
|
-
}
|
|
71
|
-
function Q(i) {
|
|
72
|
-
var p;
|
|
73
|
-
(p = i.preventDefault) == null || p.call(i), o.dragging = !0;
|
|
74
|
-
const v = E(i);
|
|
75
|
-
o.dragOffsetX = v.x - o.left, o.dragOffsetY = v.y - o.top, document.addEventListener("mousemove", F), document.addEventListener("mouseup", H), document.addEventListener("touchmove", F, { passive: !1 }), document.addEventListener("touchend", H);
|
|
76
|
-
}
|
|
77
|
-
function F(i) {
|
|
78
|
-
var e;
|
|
79
|
-
if (!o.dragging) return;
|
|
80
|
-
(e = i.preventDefault) == null || e.call(i);
|
|
81
|
-
const v = E(i);
|
|
82
|
-
let p = v.x - o.dragOffsetX, L = v.y - o.dragOffsetY;
|
|
83
|
-
p = Math.max(0, Math.min(p, window.innerWidth - o.width)), L = Math.max(0, Math.min(L, window.innerHeight - o.height)), o.left = p, o.top = L;
|
|
84
|
-
}
|
|
85
|
-
function H() {
|
|
86
|
-
o.dragging = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", H), document.removeEventListener("touchmove", F), document.removeEventListener("touchend", H);
|
|
87
|
-
}
|
|
88
|
-
function Z(i) {
|
|
89
|
-
var p;
|
|
90
|
-
(p = i.preventDefault) == null || p.call(i), o.resizing = !0;
|
|
91
|
-
const v = E(i);
|
|
92
|
-
o.pointerStartX = v.x, o.pointerStartY = v.y, o.resizeStartW = o.width, o.resizeStartH = o.height, document.addEventListener("mousemove", w), document.addEventListener("mouseup", N), document.addEventListener("touchmove", w, { passive: !1 }), document.addEventListener("touchend", N);
|
|
93
|
-
}
|
|
94
|
-
function w(i) {
|
|
95
|
-
var e;
|
|
96
|
-
if (!o.resizing) return;
|
|
97
|
-
(e = i.preventDefault) == null || e.call(i);
|
|
98
|
-
const v = E(i);
|
|
99
|
-
let p = v.x - o.pointerStartX, L = v.y - o.pointerStartY;
|
|
100
|
-
o.width = Math.max(240, o.resizeStartW + p), o.height = Math.max(400, o.resizeStartH + L);
|
|
101
|
-
}
|
|
102
|
-
function N() {
|
|
103
|
-
o.resizing = !1, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", N), document.removeEventListener("touchmove", w), document.removeEventListener("touchend", N);
|
|
104
|
-
}
|
|
105
|
-
function re(i) {
|
|
106
|
-
var p;
|
|
107
|
-
(p = i.preventDefault) == null || p.call(i), o.resizing = !0;
|
|
108
|
-
const v = E(i);
|
|
109
|
-
o.pointerStartX = v.x, o.pointerStartY = v.y, o.resizeStartW = o.width, o.resizeStartH = o.height, o.resizeStartLeft = o.left, o.resizeStartTop = o.top, document.addEventListener("mousemove", R), document.addEventListener("mouseup", f), document.addEventListener("touchmove", R, { passive: !1 }), document.addEventListener("touchend", f);
|
|
110
|
-
}
|
|
111
|
-
function R(i) {
|
|
112
|
-
var te;
|
|
113
|
-
if (!o.resizing) return;
|
|
114
|
-
(te = i.preventDefault) == null || te.call(i);
|
|
115
|
-
const v = E(i);
|
|
116
|
-
let p = v.x - o.pointerStartX, L = Math.min(
|
|
117
|
-
Math.max(0, o.resizeStartLeft + p),
|
|
118
|
-
o.resizeStartLeft + o.resizeStartW - 240
|
|
119
|
-
// min width
|
|
120
|
-
), e = o.resizeStartW - (L - o.resizeStartLeft), _ = v.y - o.pointerStartY, ee = Math.max(400, o.resizeStartH + _);
|
|
121
|
-
o.left = L, o.width = e, o.height = ee;
|
|
122
|
-
}
|
|
123
|
-
function f() {
|
|
124
|
-
o.resizing = !1, document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", f), document.removeEventListener("touchmove", R), document.removeEventListener("touchend", f);
|
|
125
|
-
}
|
|
126
|
-
return _t(() => {
|
|
127
|
-
H(), N(), f();
|
|
128
|
-
}), (i, v) => (r(), P(St, { to: "body" }, [
|
|
129
|
-
z.value ? (r(), u("div", {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: "modal vue-ui-draggable-dialog",
|
|
132
|
-
style: O(G.value),
|
|
133
|
-
onClick: v[0] || (v[0] = U(() => {
|
|
134
|
-
}, ["stop"]))
|
|
135
|
-
}, [
|
|
136
|
-
c("div", {
|
|
137
|
-
class: "modal-header",
|
|
138
|
-
style: O({
|
|
139
|
-
backgroundColor: X.headerBg,
|
|
140
|
-
color: X.headerColor
|
|
141
|
-
})
|
|
142
|
-
}, [
|
|
143
|
-
c("span", {
|
|
144
|
-
class: "drag-handle",
|
|
145
|
-
onMousedown: U(Q, ["stop", "prevent"]),
|
|
146
|
-
onTouchstart: U(Q, ["stop", "prevent"])
|
|
147
|
-
}, [
|
|
148
|
-
(r(), u("svg", {
|
|
149
|
-
xmlns: g(tt),
|
|
150
|
-
width: "20",
|
|
151
|
-
height: "20",
|
|
152
|
-
viewBox: "0 0 24 24",
|
|
153
|
-
fill: "none",
|
|
154
|
-
stroke: "currentColor",
|
|
155
|
-
"stroke-width": "1",
|
|
156
|
-
"stroke-linecap": "round",
|
|
157
|
-
"stroke-linejoin": "round"
|
|
158
|
-
}, v[1] || (v[1] = [
|
|
159
|
-
c("path", { d: "M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
160
|
-
c("path", { d: "M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
161
|
-
c("path", { d: "M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
162
|
-
c("path", { d: "M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
163
|
-
c("path", { d: "M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
164
|
-
c("path", { d: "M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
165
|
-
]), 8, oa))
|
|
166
|
-
], 32),
|
|
167
|
-
c("span", sa, [
|
|
168
|
-
x(i.$slots, "title", {}, void 0, !0)
|
|
169
|
-
]),
|
|
170
|
-
c("button", {
|
|
171
|
-
class: "close",
|
|
172
|
-
onClick: K
|
|
173
|
-
}, [
|
|
174
|
-
Ze(Jt, {
|
|
175
|
-
name: "close",
|
|
176
|
-
stroke: X.headerColor
|
|
177
|
-
}, null, 8, ["stroke"])
|
|
178
|
-
])
|
|
179
|
-
], 4),
|
|
180
|
-
c("div", na, [
|
|
181
|
-
x(i.$slots, "default", {}, void 0, !0)
|
|
182
|
-
]),
|
|
183
|
-
c("div", {
|
|
184
|
-
class: "resize-handle",
|
|
185
|
-
onMousedown: U(Z, ["stop", "prevent"]),
|
|
186
|
-
onTouchstart: U(Z, ["stop", "prevent"])
|
|
187
|
-
}, null, 32),
|
|
188
|
-
c("div", {
|
|
189
|
-
class: "resize-handle resize-handle-left",
|
|
190
|
-
onMousedown: U(re, ["stop", "prevent"]),
|
|
191
|
-
onTouchstart: U(re, ["stop", "prevent"])
|
|
192
|
-
}, null, 32)
|
|
193
|
-
], 4)) : y("", !0)
|
|
194
|
-
]));
|
|
195
|
-
}
|
|
196
|
-
}, ia = /* @__PURE__ */ at(ra, [["__scopeId", "data-v-1344ad9f"]]), ua = ["id"], ca = ["xmlns", "viewBox"], da = ["id"], ha = ["stop-color"], va = ["stop-color"], fa = ["stop-color"], ga = ["stop-color"], ya = ["id"], pa = ["stop-color"], ma = ["stop-color"], xa = ["stop-color"], ba = ["stop-color"], ka = { key: 0 }, wa = ["fill", "d"], $a = ["stroke", "stroke-width", "d"], Ca = ["fill", "d"], Aa = ["stroke", "stroke-dasharray", "stroke-width", "d"], _a = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Sa = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ma = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], za = { key: 0 }, La = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Ta = ["x", "y", "width", "height", "onMouseenter", "onClick"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pa = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ea = ["x", "y", "text-anchor", "font-size", "fill"], Da = {
|
|
197
|
-
key: 5,
|
|
198
|
-
class: "vue-data-ui-watermark"
|
|
199
|
-
}, Na = ["onClick"], Ia = ["innerHTML"], Xa = {
|
|
200
|
-
__name: "vue-ui-ridgeline",
|
|
201
|
-
props: {
|
|
202
|
-
config: {
|
|
203
|
-
type: Object,
|
|
204
|
-
default() {
|
|
205
|
-
return {};
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
dataset: {
|
|
209
|
-
type: Array,
|
|
210
|
-
default() {
|
|
211
|
-
return [];
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
216
|
-
setup(X, { expose: ye, emit: pe }) {
|
|
217
|
-
const { vue_ui_ridgeline: me } = Lt(), C = X, z = k({
|
|
218
|
-
get() {
|
|
219
|
-
return !!C.dataset && C.dataset.length;
|
|
220
|
-
},
|
|
221
|
-
set(a) {
|
|
222
|
-
return a;
|
|
223
|
-
}
|
|
224
|
-
}), V = pe, o = h(null), ne = h(null), K = h(null), G = h(null), E = h(null), Q = h(null), F = h(0), H = h(0), Z = h(0), w = h(Ae()), N = h(0), re = h(0), R = h(512), f = h(null), i = h(null), v = h(null), p = h(0);
|
|
225
|
-
function L() {
|
|
226
|
-
const a = Qe({
|
|
227
|
-
userConfig: C.config,
|
|
228
|
-
defaultConfig: me
|
|
229
|
-
});
|
|
230
|
-
return a.theme ? {
|
|
231
|
-
...Qe({
|
|
232
|
-
userConfig: Ft.vue_ui_ridgeline[a.theme] || C.config,
|
|
233
|
-
defaultConfig: a
|
|
234
|
-
}),
|
|
235
|
-
customPalette: Xt[a.theme] || ve
|
|
236
|
-
} : a;
|
|
237
|
-
}
|
|
238
|
-
const e = k({
|
|
239
|
-
get: () => L(),
|
|
240
|
-
set: (a) => a
|
|
241
|
-
}), _ = h(Math.min(
|
|
242
|
-
e.value.style.chart.areas.height,
|
|
243
|
-
e.value.style.chart.areas.rowHeight
|
|
244
|
-
)), {
|
|
245
|
-
userOptionsVisible: ee,
|
|
246
|
-
setUserOptionsVisibility: te,
|
|
247
|
-
keepUserOptionState: Se
|
|
248
|
-
} = Wt({ config: e.value }), { svgRef: xe } = Yt({ config: e.value.style.chart.title });
|
|
249
|
-
Mt(be), zt(() => {
|
|
250
|
-
G.value && G.value.disconnect();
|
|
251
|
-
});
|
|
252
|
-
function be() {
|
|
253
|
-
if (Tt(C.dataset) ? _e({
|
|
254
|
-
componentName: "VueUiRidgeline",
|
|
255
|
-
type: "dataset"
|
|
256
|
-
}) : C.dataset.forEach((a, n) => {
|
|
257
|
-
qe({
|
|
258
|
-
datasetObject: a,
|
|
259
|
-
requiredAttributes: ["name", "datapoints"]
|
|
260
|
-
}).forEach((t) => {
|
|
261
|
-
z.value = !1, _e({
|
|
262
|
-
componentName: "VueUiRidgeline",
|
|
263
|
-
type: "datasetSerieAttribute",
|
|
264
|
-
property: t,
|
|
265
|
-
index: n
|
|
266
|
-
});
|
|
267
|
-
}), a.datapoints.length && a.datapoints.forEach((t, s) => {
|
|
268
|
-
qe({
|
|
269
|
-
datasetObject: t,
|
|
270
|
-
requiredAttributes: ["name", "values"]
|
|
271
|
-
}).forEach((l) => {
|
|
272
|
-
z.value = !1, _e({
|
|
273
|
-
componentName: "VueUiRidgeline",
|
|
274
|
-
type: "datasetSerieAttribute",
|
|
275
|
-
property: `datapoint.${l}`,
|
|
276
|
-
index: `${n}-${s}`
|
|
277
|
-
});
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
}), re.value = C.dataset.length, _.value = Math.min(
|
|
281
|
-
e.value.style.chart.areas.height,
|
|
282
|
-
e.value.style.chart.areas.rowHeight
|
|
283
|
-
), e.value.responsive) {
|
|
284
|
-
const a = Gt(() => {
|
|
285
|
-
const { width: n, height: t } = jt({
|
|
286
|
-
chart: o.value,
|
|
287
|
-
title: e.value.style.chart.title.text ? ne.value : null,
|
|
288
|
-
legend: e.value.style.chart.legend.show ? K.value : null,
|
|
289
|
-
source: E.value,
|
|
290
|
-
noTitle: Q.value,
|
|
291
|
-
padding: e.value.style.chart.padding
|
|
292
|
-
});
|
|
293
|
-
requestAnimationFrame(() => {
|
|
294
|
-
R.value = n, _.value = t / C.dataset.length, p.value = t;
|
|
295
|
-
});
|
|
296
|
-
});
|
|
297
|
-
G.value = new ResizeObserver(a), G.value.observe(o.value.parentNode);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
const { isPrinting: Me, isImaging: ze, generatePdf: Le, generateImage: Te } = Ut({
|
|
301
|
-
elementId: `vue-ui-ridgeline_${w.value}`,
|
|
302
|
-
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
303
|
-
options: e.value.userOptions.print
|
|
304
|
-
}), lt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), ot = k(() => Ot(e.value.customPalette)), ae = h({
|
|
305
|
-
showTable: e.value.table.show
|
|
306
|
-
});
|
|
307
|
-
Ue(() => C.config, (a) => {
|
|
308
|
-
e.value = L(), ee.value = !e.value.userOptions.showOnChartHover, be(), F.value += 1, Z.value += 1, _.value = Math.min(
|
|
309
|
-
e.value.style.chart.areas.height,
|
|
310
|
-
e.value.style.chart.areas.rowHeight
|
|
311
|
-
), ae.value.showTable = e.value.table.show;
|
|
312
|
-
}, { deep: !0 }), Ue(() => C.dataset, be, { deep: !0 });
|
|
313
|
-
const ke = k(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
314
|
-
function Oe(a) {
|
|
315
|
-
I.value.includes(a) ? I.value = I.value.filter((n) => n !== a) : I.value.push(a), V("selectLegend", q.value);
|
|
316
|
-
}
|
|
317
|
-
const D = k(() => z.value ? C.dataset.map((a, n) => ({
|
|
318
|
-
...a,
|
|
319
|
-
labelLen: rt(a.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
320
|
-
uid: Ae(),
|
|
321
|
-
datapoints: a.datapoints.map((t, s) => {
|
|
322
|
-
const l = t.color ? Pt(t.color) : ot.value[s] || ve[s] || ve[s % ve.length], d = Je(t.name);
|
|
323
|
-
return {
|
|
324
|
-
...t,
|
|
325
|
-
color: l,
|
|
326
|
-
id: d
|
|
327
|
-
};
|
|
328
|
-
})
|
|
329
|
-
})) : []), Pe = k(() => e.value.style.chart.padding.top + _.value * C.dataset.length + _.value * ke.value), S = k(() => ({
|
|
330
|
-
fullHeight: m.value.padding.top + m.value.padding.bottom + m.value.height,
|
|
331
|
-
top: m.value.padding.top,
|
|
332
|
-
left: m.value.padding.left,
|
|
333
|
-
right: m.value.width - m.value.padding.right,
|
|
334
|
-
bottom: m.value.padding.top + m.value.height,
|
|
335
|
-
width: m.value.width - (m.value.padding.left + m.value.padding.right)
|
|
336
|
-
})), m = k(() => {
|
|
337
|
-
const a = e.value.style.chart.padding;
|
|
338
|
-
return {
|
|
339
|
-
width: R.value,
|
|
340
|
-
height: Pe.value,
|
|
341
|
-
padding: a
|
|
342
|
-
};
|
|
343
|
-
}), j = k(() => {
|
|
344
|
-
const a = Math.max(...D.value.map((d) => d.labelLen)), n = Math.max(...D.value.flatMap((d) => d.datapoints.map((M) => M.values.length))), t = m.value.padding.left + a + 16 + e.value.style.chart.yAxis.labels.offsetX, s = (S.value.width - t) / n, l = [];
|
|
345
|
-
for (let d = 0; d < n; d += 1)
|
|
346
|
-
l.push({
|
|
347
|
-
selectorX: t + s * d,
|
|
348
|
-
x: t + s * d - s / 2,
|
|
349
|
-
y: S.value.top,
|
|
350
|
-
label: e.value.style.chart.xAxis.labels.values[d] || "",
|
|
351
|
-
index: d,
|
|
352
|
-
width: s,
|
|
353
|
-
height: Pe.value
|
|
354
|
-
});
|
|
355
|
-
return l;
|
|
356
|
-
});
|
|
357
|
-
function st(a) {
|
|
358
|
-
V("selectX", D.value.map((n) => n.datapoints.map((t) => ({
|
|
359
|
-
dp: t,
|
|
360
|
-
selected: t.values[a.index]
|
|
361
|
-
}))));
|
|
362
|
-
}
|
|
363
|
-
function nt(a, n) {
|
|
364
|
-
return a.length * n / 2 + n;
|
|
365
|
-
}
|
|
366
|
-
function Ee(a, n, t) {
|
|
367
|
-
const s = nt(n, t);
|
|
368
|
-
return a + s > S.value.right;
|
|
369
|
-
}
|
|
370
|
-
function rt(a, n, t = "sans-serif") {
|
|
371
|
-
const l = document.createElement("canvas").getContext("2d"), d = typeof n == "number" ? `${n}px` : n;
|
|
372
|
-
return l.font = `${d} ${t}`, l.measureText(a).width;
|
|
373
|
-
}
|
|
374
|
-
const q = k(() => {
|
|
375
|
-
_.value;
|
|
376
|
-
const a = Math.max(...D.value.map((A) => A.labelLen)), n = Math.max(...D.value.flatMap((A) => A.datapoints.map((B) => B.values.length))), t = Math.max(...D.value.flatMap((A) => A.datapoints.flatMap((B) => B.values))), s = Math.min(...D.value.flatMap((A) => A.datapoints.flatMap((B) => B.values))), l = m.value.padding.left + a + 16 + e.value.style.chart.yAxis.labels.offsetX, d = (S.value.width - l) / n, M = Math.abs(Math.min(s, 0)), He = t + M;
|
|
377
|
-
function Re(A) {
|
|
378
|
-
return isNaN(A / He) ? 0 : A / He;
|
|
379
|
-
}
|
|
380
|
-
return D.value.map((A, B) => {
|
|
381
|
-
const Be = S.value.top + _.value * B, W = S.value.top + Be + _.value * ke.value * (1 - Re(M));
|
|
382
|
-
return {
|
|
383
|
-
...A,
|
|
384
|
-
label: {
|
|
385
|
-
x: l - e.value.style.chart.yAxis.labels.fontSize,
|
|
386
|
-
y: W
|
|
387
|
-
},
|
|
388
|
-
datapoints: A.datapoints.map((oe) => {
|
|
389
|
-
const Y = oe.values.map((se, xt) => {
|
|
390
|
-
const bt = isNaN(se) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(se) ? 0 : se || 0, kt = l + d * xt, wt = S.value.top + Be + _.value * ke.value * (1 - Re(bt + M)), $t = se === Math.max(...oe.values);
|
|
391
|
-
return {
|
|
392
|
-
x: kt,
|
|
393
|
-
y: wt,
|
|
394
|
-
value: se,
|
|
395
|
-
isMaxPoint: $t,
|
|
396
|
-
zero: W
|
|
397
|
-
};
|
|
398
|
-
}), gt = `${Et(Y, W, !1, !1)}`, yt = `M ${l},${W} ${Ke(Y)} ${Y.at(-1).x},${W}`, pt = `M ${l},${W} ${Y.at(-1).x},${W}`, We = `M ${Dt(Y)}`, Ye = `M ${Ke(Y)}`, mt = Nt(
|
|
399
|
-
e.value.style.chart.areas.smooth ? We : Ye
|
|
400
|
-
);
|
|
401
|
-
return {
|
|
402
|
-
...oe,
|
|
403
|
-
uid: Ae(),
|
|
404
|
-
plots: Y,
|
|
405
|
-
smoothPath: gt,
|
|
406
|
-
straightPath: yt,
|
|
407
|
-
zeroPath: pt,
|
|
408
|
-
pathLength: mt,
|
|
409
|
-
smoothPathRidge: We,
|
|
410
|
-
straightPathRidge: Ye
|
|
411
|
-
};
|
|
412
|
-
}).filter((oe) => !I.value.includes(oe.id))
|
|
413
|
-
};
|
|
414
|
-
});
|
|
415
|
-
}), I = h([]);
|
|
416
|
-
function it(a) {
|
|
417
|
-
const n = /* @__PURE__ */ new Map();
|
|
418
|
-
return a.forEach((t) => {
|
|
419
|
-
t.datapoints.forEach((s, l) => {
|
|
420
|
-
const d = Je(s.name);
|
|
421
|
-
n.has(d) || n.set(d, {
|
|
422
|
-
id: d,
|
|
423
|
-
name: s.name,
|
|
424
|
-
color: s.color,
|
|
425
|
-
shape: "circle",
|
|
426
|
-
segregate: () => Oe(d),
|
|
427
|
-
isSegregated: I.value.includes(d),
|
|
428
|
-
opacity: I.value.includes(d) ? 0.5 : 1
|
|
429
|
-
});
|
|
430
|
-
});
|
|
431
|
-
}), Array.from(n.values());
|
|
432
|
-
}
|
|
433
|
-
const we = k(() => it(D.value)), ut = k(() => ({
|
|
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
|
-
})), le = h(!1);
|
|
441
|
-
function ct(a) {
|
|
442
|
-
le.value = a, N.value += 1;
|
|
443
|
-
}
|
|
444
|
-
const De = h({}), Ne = h([]);
|
|
445
|
-
function dt(a) {
|
|
446
|
-
V("selectDatapoint", a), e.value.style.chart.dialog.show && (Ne.value = a.datapoints.map((n) => ({
|
|
447
|
-
name: n.name,
|
|
448
|
-
color: n.color,
|
|
449
|
-
type: "line",
|
|
450
|
-
useArea: !0,
|
|
451
|
-
smooth: e.value.style.chart.areas.smooth,
|
|
452
|
-
series: n.values
|
|
453
|
-
})), i.value = a, De.value = Bt({
|
|
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
|
-
}
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
tooltip: {
|
|
471
|
-
...e.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
472
|
-
showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
|
|
473
|
-
// Overriding
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}), v.value && v.value.open());
|
|
477
|
-
}
|
|
478
|
-
const $e = h(null);
|
|
479
|
-
function ht(a) {
|
|
480
|
-
$e.value = a;
|
|
481
|
-
}
|
|
482
|
-
function vt() {
|
|
483
|
-
$e.value = null;
|
|
484
|
-
}
|
|
485
|
-
const ie = h(!1);
|
|
486
|
-
function Ce() {
|
|
487
|
-
ie.value = !ie.value;
|
|
488
|
-
}
|
|
489
|
-
function Ie() {
|
|
490
|
-
ae.value.showTable = !ae.value.showTable;
|
|
491
|
-
}
|
|
492
|
-
const Xe = k(() => ({ body: q.value.flatMap((t) => t.datapoints.flatMap((s) => ({
|
|
493
|
-
...s,
|
|
494
|
-
rowName: `${t.name}: ${s.name}`
|
|
495
|
-
}))).map((t) => [
|
|
496
|
-
{
|
|
497
|
-
name: t.rowName,
|
|
498
|
-
color: t.color
|
|
499
|
-
},
|
|
500
|
-
...t.values
|
|
501
|
-
]) })), ue = k(() => {
|
|
502
|
-
const a = [
|
|
503
|
-
e.value.table.columnNames.series,
|
|
504
|
-
...e.value.style.chart.xAxis.labels.values
|
|
505
|
-
], n = {
|
|
506
|
-
th: {
|
|
507
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
508
|
-
color: e.value.table.th.color,
|
|
509
|
-
outline: e.value.table.th.outline
|
|
510
|
-
},
|
|
511
|
-
td: {
|
|
512
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
513
|
-
color: e.value.table.td.color,
|
|
514
|
-
outline: e.value.table.td.outline
|
|
515
|
-
},
|
|
516
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
517
|
-
};
|
|
518
|
-
return {
|
|
519
|
-
colNames: [
|
|
520
|
-
e.value.table.columnNames.series,
|
|
521
|
-
...e.value.style.chart.xAxis.labels.values
|
|
522
|
-
],
|
|
523
|
-
head: a,
|
|
524
|
-
body: Xe.value.body,
|
|
525
|
-
config: n
|
|
526
|
-
};
|
|
527
|
-
});
|
|
528
|
-
function Fe() {
|
|
529
|
-
et(() => {
|
|
530
|
-
const a = [
|
|
531
|
-
[e.value.table.columnNames.series, ...e.value.style.chart.xAxis.labels.values.map((s) => [s])],
|
|
532
|
-
...Xe.value.body.map((s, l) => [s[0].name, ...s.slice(1)])
|
|
533
|
-
], n = [
|
|
534
|
-
[e.value.style.chart.title.text],
|
|
535
|
-
[e.value.style.chart.title.subtitle.text]
|
|
536
|
-
].concat(a), t = Ht(n);
|
|
537
|
-
Rt({
|
|
538
|
-
csvContent: t,
|
|
539
|
-
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
540
|
-
});
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
function ft() {
|
|
544
|
-
return q.value;
|
|
545
|
-
}
|
|
546
|
-
return ye({
|
|
547
|
-
getData: ft,
|
|
548
|
-
generateImage: Te,
|
|
549
|
-
generatePdf: Le,
|
|
550
|
-
generateCsv: Fe,
|
|
551
|
-
toggleAnnotator: Ce,
|
|
552
|
-
toggleTable: Ie
|
|
553
|
-
}), (a, n) => (r(), u("div", {
|
|
554
|
-
ref_key: "ridgelineChart",
|
|
555
|
-
ref: o,
|
|
556
|
-
class: ce(`vue-ui-ridgeline ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
557
|
-
id: `vue-ui-ridgeline_${w.value}`,
|
|
558
|
-
style: O({
|
|
559
|
-
fontFamily: e.value.style.fontFamily,
|
|
560
|
-
width: "100%",
|
|
561
|
-
textAlign: "center",
|
|
562
|
-
background: e.value.style.chart.backgroundColor,
|
|
563
|
-
height: e.value.responsive ? "100%" : void 0
|
|
564
|
-
}),
|
|
565
|
-
onMouseenter: n[4] || (n[4] = () => g(te)(!0)),
|
|
566
|
-
onMouseleave: n[5] || (n[5] = () => g(te)(!1))
|
|
567
|
-
}, [
|
|
568
|
-
e.value.userOptions.buttons.annotator && g(xe) ? (r(), P(Zt, {
|
|
569
|
-
key: 0,
|
|
570
|
-
color: e.value.style.chart.color,
|
|
571
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
572
|
-
active: ie.value,
|
|
573
|
-
svgRef: g(xe),
|
|
574
|
-
onClose: Ce
|
|
575
|
-
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : y("", !0),
|
|
576
|
-
x(a.$slots, "userConfig", {}, void 0, !0),
|
|
577
|
-
lt.value ? (r(), u("div", {
|
|
578
|
-
key: 1,
|
|
579
|
-
ref_key: "noTitle",
|
|
580
|
-
ref: Q,
|
|
581
|
-
class: "vue-data-ui-no-title-space",
|
|
582
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
583
|
-
}, null, 512)) : y("", !0),
|
|
584
|
-
e.value.style.chart.title.text ? (r(), u("div", {
|
|
585
|
-
key: 2,
|
|
586
|
-
ref_key: "chartTitle",
|
|
587
|
-
ref: ne,
|
|
588
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
589
|
-
}, [
|
|
590
|
-
(r(), P(aa, {
|
|
591
|
-
key: `title_${F.value}`,
|
|
592
|
-
config: {
|
|
593
|
-
title: {
|
|
594
|
-
cy: "ridgeline-div-title",
|
|
595
|
-
...e.value.style.chart.title
|
|
596
|
-
},
|
|
597
|
-
subtitle: {
|
|
598
|
-
cy: "ridgeline-div-subtitle",
|
|
599
|
-
...e.value.style.chart.title.subtitle
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}, null, 8, ["config"]))
|
|
603
|
-
], 512)) : y("", !0),
|
|
604
|
-
e.value.userOptions.show && z.value && (g(Se) || g(ee)) ? (r(), P(Vt, {
|
|
605
|
-
ref: "details",
|
|
606
|
-
key: `user_option_${N.value}`,
|
|
607
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
608
|
-
color: e.value.style.chart.color,
|
|
609
|
-
isPrinting: g(Me),
|
|
610
|
-
isImaging: g(ze),
|
|
611
|
-
uid: w.value,
|
|
612
|
-
hasTooltip: !1,
|
|
613
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
614
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
615
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
616
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
617
|
-
hasLabel: !1,
|
|
618
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
619
|
-
isFullscreen: le.value,
|
|
620
|
-
chartElement: o.value,
|
|
621
|
-
position: e.value.userOptions.position,
|
|
622
|
-
isTooltip: !1,
|
|
623
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
624
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
625
|
-
isAnnotation: ie.value,
|
|
626
|
-
style: O({
|
|
627
|
-
visibility: g(Se) ? g(ee) ? "visible" : "hidden" : "visible"
|
|
628
|
-
}),
|
|
629
|
-
onToggleFullscreen: ct,
|
|
630
|
-
onGeneratePdf: g(Le),
|
|
631
|
-
onGenerateCsv: Fe,
|
|
632
|
-
onGenerateImage: g(Te),
|
|
633
|
-
onToggleTable: Ie,
|
|
634
|
-
onToggleAnnotator: Ce
|
|
635
|
-
}, Ve({ _: 2 }, [
|
|
636
|
-
a.$slots.menuIcon ? {
|
|
637
|
-
name: "menuIcon",
|
|
638
|
-
fn: $(({ isOpen: t, color: s }) => [
|
|
639
|
-
x(a.$slots, "menuIcon", de(he({ isOpen: t, color: s })), void 0, !0)
|
|
640
|
-
]),
|
|
641
|
-
key: "0"
|
|
642
|
-
} : void 0,
|
|
643
|
-
a.$slots.optionTooltip ? {
|
|
644
|
-
name: "optionTooltip",
|
|
645
|
-
fn: $(() => [
|
|
646
|
-
x(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
647
|
-
]),
|
|
648
|
-
key: "1"
|
|
649
|
-
} : void 0,
|
|
650
|
-
a.$slots.optionPdf ? {
|
|
651
|
-
name: "optionPdf",
|
|
652
|
-
fn: $(() => [
|
|
653
|
-
x(a.$slots, "optionPdf", {}, void 0, !0)
|
|
654
|
-
]),
|
|
655
|
-
key: "2"
|
|
656
|
-
} : void 0,
|
|
657
|
-
a.$slots.optionCsv ? {
|
|
658
|
-
name: "optionCsv",
|
|
659
|
-
fn: $(() => [
|
|
660
|
-
x(a.$slots, "optionCsv", {}, void 0, !0)
|
|
661
|
-
]),
|
|
662
|
-
key: "3"
|
|
663
|
-
} : void 0,
|
|
664
|
-
a.$slots.optionImg ? {
|
|
665
|
-
name: "optionImg",
|
|
666
|
-
fn: $(() => [
|
|
667
|
-
x(a.$slots, "optionImg", {}, void 0, !0)
|
|
668
|
-
]),
|
|
669
|
-
key: "4"
|
|
670
|
-
} : void 0,
|
|
671
|
-
a.$slots.optionTable ? {
|
|
672
|
-
name: "optionTable",
|
|
673
|
-
fn: $(() => [
|
|
674
|
-
x(a.$slots, "optionTable", {}, void 0, !0)
|
|
675
|
-
]),
|
|
676
|
-
key: "5"
|
|
677
|
-
} : void 0,
|
|
678
|
-
a.$slots.optionFullscreen ? {
|
|
679
|
-
name: "optionFullscreen",
|
|
680
|
-
fn: $(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
681
|
-
x(a.$slots, "optionFullscreen", de(he({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
682
|
-
]),
|
|
683
|
-
key: "6"
|
|
684
|
-
} : void 0,
|
|
685
|
-
a.$slots.optionAnnotator ? {
|
|
686
|
-
name: "optionAnnotator",
|
|
687
|
-
fn: $(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
688
|
-
x(a.$slots, "optionAnnotator", de(he({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
689
|
-
]),
|
|
690
|
-
key: "7"
|
|
691
|
-
} : void 0
|
|
692
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
693
|
-
z.value ? (r(), u("svg", {
|
|
694
|
-
key: 4,
|
|
695
|
-
ref_key: "svgRef",
|
|
696
|
-
ref: xe,
|
|
697
|
-
xmlns: g(tt),
|
|
698
|
-
class: ce({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value }),
|
|
699
|
-
viewBox: `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${S.value.fullHeight <= 0 ? 10 : S.value.fullHeight}`,
|
|
700
|
-
style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${p.value}px; width: 100%;` : ""}`)
|
|
701
|
-
}, [
|
|
702
|
-
c("defs", null, [
|
|
703
|
-
(r(!0), u(b, null, T(we.value, (t, s) => (r(), u("linearGradient", {
|
|
704
|
-
id: `gradient-${t.id}-${w.value}`,
|
|
705
|
-
x1: "50%",
|
|
706
|
-
y1: "0%",
|
|
707
|
-
x2: "50%",
|
|
708
|
-
y2: "100%"
|
|
709
|
-
}, [
|
|
710
|
-
c("stop", {
|
|
711
|
-
offset: "0%",
|
|
712
|
-
"stop-color": t.color,
|
|
713
|
-
"stop-opacity": "1"
|
|
714
|
-
}, null, 8, ha),
|
|
715
|
-
c("stop", {
|
|
716
|
-
offset: "30%",
|
|
717
|
-
"stop-color": t.color,
|
|
718
|
-
"stop-opacity": "0.7"
|
|
719
|
-
}, null, 8, va),
|
|
720
|
-
c("stop", {
|
|
721
|
-
offset: "70%",
|
|
722
|
-
"stop-color": t.color,
|
|
723
|
-
"stop-opacity": "0.3"
|
|
724
|
-
}, null, 8, fa),
|
|
725
|
-
c("stop", {
|
|
726
|
-
offset: "100%",
|
|
727
|
-
"stop-color": t.color,
|
|
728
|
-
"stop-opacity": "0.1"
|
|
729
|
-
}, null, 8, ga)
|
|
730
|
-
], 8, da))), 256)),
|
|
731
|
-
(r(!0), u(b, null, T(q.value, (t, s) => (r(), u(b, null, [
|
|
732
|
-
(r(!0), u(b, null, T(t.datapoints, (l, d) => (r(), u("linearGradient", {
|
|
733
|
-
key: `grad${l.id}`,
|
|
734
|
-
id: `gradient-single-${w.value}-${l.uid}`,
|
|
735
|
-
x1: "50%",
|
|
736
|
-
y1: "0%",
|
|
737
|
-
x2: "50%",
|
|
738
|
-
y2: "100%"
|
|
739
|
-
}, [
|
|
740
|
-
c("stop", {
|
|
741
|
-
offset: "0%",
|
|
742
|
-
"stop-color": l.color,
|
|
743
|
-
"stop-opacity": "1"
|
|
744
|
-
}, null, 8, pa),
|
|
745
|
-
c("stop", {
|
|
746
|
-
offset: "30%",
|
|
747
|
-
"stop-color": l.color,
|
|
748
|
-
"stop-opacity": "0.7"
|
|
749
|
-
}, null, 8, ma),
|
|
750
|
-
c("stop", {
|
|
751
|
-
offset: "70%",
|
|
752
|
-
"stop-color": l.color,
|
|
753
|
-
"stop-opacity": "0.3"
|
|
754
|
-
}, null, 8, xa),
|
|
755
|
-
c("stop", {
|
|
756
|
-
offset: "100%",
|
|
757
|
-
"stop-color": l.color,
|
|
758
|
-
"stop-opacity": "0.1"
|
|
759
|
-
}, null, 8, ba)
|
|
760
|
-
], 8, ya))), 128))
|
|
761
|
-
], 64))), 256))
|
|
762
|
-
]),
|
|
763
|
-
(r(!0), u(b, null, T(q.value, (t, s) => (r(), u("g", {
|
|
764
|
-
key: `ds-${s}`
|
|
765
|
-
}, [
|
|
766
|
-
(r(!0), u(b, null, T(t.datapoints, (l, d) => (r(), u("g", {
|
|
767
|
-
key: l.id
|
|
768
|
-
}, [
|
|
769
|
-
a.$slots.pattern ? (r(), u("g", ka, [
|
|
770
|
-
c("defs", null, [
|
|
771
|
-
x(a.$slots, "pattern", Ge({ ref_for: !0 }, { datapointIndex: s, seriesIndex: d, patternId: `pattern_${w.value}_${l.uid}` }), void 0, !0)
|
|
772
|
-
])
|
|
773
|
-
])) : y("", !0),
|
|
774
|
-
c("path", {
|
|
775
|
-
fill: a.$slots.pattern ? `url(#pattern_${w.value}_${l.uid})` : e.value.style.chart.backgroundColor,
|
|
776
|
-
stroke: "none",
|
|
777
|
-
"stroke-linecap": "round",
|
|
778
|
-
d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
|
|
779
|
-
style: O({
|
|
780
|
-
opacity: e.value.style.chart.areas.opacity
|
|
781
|
-
})
|
|
782
|
-
}, null, 12, wa),
|
|
783
|
-
c("path", {
|
|
784
|
-
fill: "none",
|
|
785
|
-
stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
|
|
786
|
-
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
787
|
-
d: e.value.style.chart.areas.smooth ? l.smoothPathRidge : l.straightPathRidge,
|
|
788
|
-
"stroke-linecap": "round",
|
|
789
|
-
"stroke-linejoin": "round",
|
|
790
|
-
class: ce({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
791
|
-
style: O({
|
|
792
|
-
strokeDasharray: l.pathLength,
|
|
793
|
-
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
794
|
-
})
|
|
795
|
-
}, null, 14, $a),
|
|
796
|
-
c("path", {
|
|
797
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${l.id}-${w.value})` : `url(#gradient-single-${w.value}-${l.uid})` : l.color,
|
|
798
|
-
stroke: "none",
|
|
799
|
-
d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
|
|
800
|
-
"stroke-linecap": "round",
|
|
801
|
-
"stroke-linejoin": "round",
|
|
802
|
-
class: ce({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
803
|
-
style: O({
|
|
804
|
-
strokeDasharray: l.pathLength,
|
|
805
|
-
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
806
|
-
})
|
|
807
|
-
}, null, 14, Ca),
|
|
808
|
-
e.value.style.chart.zeroLine.show ? (r(), u("path", {
|
|
809
|
-
key: 1,
|
|
810
|
-
stroke: e.value.style.chart.zeroLine.useSerieColor ? l.color : e.value.style.chart.zeroLine.stroke,
|
|
811
|
-
"stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
|
|
812
|
-
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
813
|
-
d: l.zeroPath,
|
|
814
|
-
"stroke-linecap": "round"
|
|
815
|
-
}, null, 8, Aa)) : y("", !0),
|
|
816
|
-
e.value.style.chart.areas.maxPoint.show && l.plots.length > 1 ? (r(!0), u(b, { key: 2 }, T(l.plots, (M) => (r(), u(b, null, [
|
|
817
|
-
M.isMaxPoint ? (r(), u("line", {
|
|
818
|
-
key: 0,
|
|
819
|
-
x1: M.x,
|
|
820
|
-
y1: M.y,
|
|
821
|
-
x2: M.x,
|
|
822
|
-
y2: M.zero,
|
|
823
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? g(It)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
824
|
-
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
825
|
-
"stroke-linecap": "round",
|
|
826
|
-
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
827
|
-
}, null, 8, _a)) : y("", !0)
|
|
828
|
-
], 64))), 256)) : y("", !0),
|
|
829
|
-
l.plots.length === 1 ? (r(), u("circle", {
|
|
830
|
-
key: 3,
|
|
831
|
-
cx: l.plots[0].x,
|
|
832
|
-
cy: l.plots[0].y,
|
|
833
|
-
stroke: e.value.style.chart.selector.dot.stroke,
|
|
834
|
-
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
835
|
-
r: e.value.style.chart.selector.dot.radius,
|
|
836
|
-
fill: e.value.style.chart.selector.dot.useDatapointColor ? l.color : e.value.style.chart.selector.dot.fill,
|
|
837
|
-
style: {
|
|
838
|
-
pointerEvents: "none"
|
|
839
|
-
}
|
|
840
|
-
}, null, 8, Sa)) : y("", !0)
|
|
841
|
-
]))), 128)),
|
|
842
|
-
c("text", {
|
|
843
|
-
x: t.label.x,
|
|
844
|
-
y: t.label.y,
|
|
845
|
-
"text-anchor": "end",
|
|
846
|
-
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
847
|
-
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
848
|
-
fill: e.value.style.chart.yAxis.labels.color,
|
|
849
|
-
style: O({
|
|
850
|
-
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
851
|
-
}),
|
|
852
|
-
"text-decoration": e.value.style.chart.dialog.show && ($e.value === s || i.value && t.uid === i.value.uid) ? "underline" : "",
|
|
853
|
-
onMouseenter: (l) => ht(s),
|
|
854
|
-
onMouseleave: vt,
|
|
855
|
-
onClick: (l) => dt(t)
|
|
856
|
-
}, J(t.name), 45, Ma)
|
|
857
|
-
]))), 128)),
|
|
858
|
-
e.value.style.chart.xAxis.labels.values.length ? (r(), u("g", za, [
|
|
859
|
-
(r(!0), u(b, null, T(j.value, (t, s) => x(a.$slots, "time-label", Ge({ ref_for: !0 }, {
|
|
860
|
-
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 === j.value.length - 1) || t && f.value && f.value.index === s || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(j.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
861
|
-
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
862
|
-
content: t.label,
|
|
863
|
-
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
864
|
-
fill: e.value.style.chart.xAxis.labels.color,
|
|
865
|
-
transform: `translate(${t.selectorX}, ${S.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
866
|
-
x: t.selectorX,
|
|
867
|
-
y: S.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
868
|
-
}), () => [
|
|
869
|
-
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 === j.value.length - 1) || t && f.value && f.value.index === s || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(j.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (r(), u("text", {
|
|
870
|
-
key: 0,
|
|
871
|
-
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
872
|
-
fill: e.value.style.chart.xAxis.labels.color,
|
|
873
|
-
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
874
|
-
transform: `translate(${t.selectorX}, ${S.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
875
|
-
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
876
|
-
style: O({
|
|
877
|
-
opacity: f.value ? f.value.index === s ? 1 : 0.2 : 1
|
|
878
|
-
})
|
|
879
|
-
}, J(t.label), 13, La)) : y("", !0)
|
|
880
|
-
], !0)), 256))
|
|
881
|
-
])) : y("", !0),
|
|
882
|
-
c("g", null, [
|
|
883
|
-
(r(!0), u(b, null, T(j.value, (t, s) => (r(), u("rect", {
|
|
884
|
-
x: t.x,
|
|
885
|
-
y: t.y,
|
|
886
|
-
width: t.width < 0 ? 0.1 : t.width,
|
|
887
|
-
height: t.height < 0 ? 0.1 : t.height,
|
|
888
|
-
fill: "transparent",
|
|
889
|
-
onMouseenter: (l) => f.value = t,
|
|
890
|
-
onMouseleave: n[0] || (n[0] = (l) => f.value = null),
|
|
891
|
-
onClick: () => st(t)
|
|
892
|
-
}, null, 40, Ta))), 256)),
|
|
893
|
-
e.value.style.chart.selector.show && f.value ? (r(), u("line", {
|
|
894
|
-
key: 0,
|
|
895
|
-
x1: f.value.selectorX,
|
|
896
|
-
x2: f.value.selectorX,
|
|
897
|
-
y1: f.value.y,
|
|
898
|
-
y2: f.value.y + f.value.height - _.value / 2,
|
|
899
|
-
stroke: e.value.style.chart.selector.stroke,
|
|
900
|
-
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
901
|
-
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
902
|
-
"stroke-linecap": "round",
|
|
903
|
-
style: { pointerEvents: "none" }
|
|
904
|
-
}, null, 8, Oa)) : y("", !0),
|
|
905
|
-
f.value ? (r(!0), u(b, { key: 1 }, T(q.value, (t) => (r(), u(b, null, [
|
|
906
|
-
(r(!0), u(b, null, T(t.datapoints, (s) => (r(), u(b, null, [
|
|
907
|
-
(r(!0), u(b, null, T(s.plots, (l, d) => (r(), u(b, null, [
|
|
908
|
-
f.value && f.value.index === d ? (r(), u("circle", {
|
|
909
|
-
key: 0,
|
|
910
|
-
cx: l.x,
|
|
911
|
-
cy: l.y,
|
|
912
|
-
stroke: e.value.style.chart.selector.dot.stroke,
|
|
913
|
-
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
914
|
-
r: e.value.style.chart.selector.dot.radius,
|
|
915
|
-
fill: e.value.style.chart.selector.dot.useDatapointColor ? s.color : e.value.style.chart.selector.dot.fill,
|
|
916
|
-
style: {
|
|
917
|
-
pointerEvents: "none"
|
|
918
|
-
}
|
|
919
|
-
}, null, 8, Pa)) : y("", !0),
|
|
920
|
-
f.value && f.value.index === d ? (r(), u("text", {
|
|
921
|
-
key: 1,
|
|
922
|
-
x: Ee(
|
|
923
|
-
l.x,
|
|
924
|
-
g(fe)(
|
|
925
|
-
e.value.style.chart.selector.labels.formatter,
|
|
926
|
-
l.value,
|
|
927
|
-
g(ge)({
|
|
928
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
929
|
-
v: l.value,
|
|
930
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
931
|
-
r: e.value.style.chart.selector.labels.rounding
|
|
932
|
-
})
|
|
933
|
-
),
|
|
934
|
-
e.value.style.chart.selector.labels.fontSize
|
|
935
|
-
) ? l.x - e.value.style.chart.selector.labels.fontSize / 2 : l.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
936
|
-
y: l.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
937
|
-
"text-anchor": Ee(
|
|
938
|
-
l.x,
|
|
939
|
-
g(fe)(
|
|
940
|
-
e.value.style.chart.selector.labels.formatter,
|
|
941
|
-
l.value,
|
|
942
|
-
g(ge)({
|
|
943
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
944
|
-
v: l.value,
|
|
945
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
946
|
-
r: e.value.style.chart.selector.labels.rounding
|
|
947
|
-
})
|
|
948
|
-
),
|
|
949
|
-
e.value.style.chart.selector.labels.fontSize
|
|
950
|
-
) ? "end" : "start",
|
|
951
|
-
"font-size": e.value.style.chart.selector.labels.fontSize,
|
|
952
|
-
fill: e.value.style.chart.selector.labels.color,
|
|
953
|
-
style: {
|
|
954
|
-
pointerEvents: "none"
|
|
955
|
-
}
|
|
956
|
-
}, J(g(fe)(
|
|
957
|
-
e.value.style.chart.selector.labels.formatter,
|
|
958
|
-
l.value,
|
|
959
|
-
g(ge)({
|
|
960
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
961
|
-
v: l.value,
|
|
962
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
963
|
-
r: e.value.style.chart.selector.labels.rounding
|
|
964
|
-
})
|
|
965
|
-
)), 9, Ea)) : y("", !0)
|
|
966
|
-
], 64))), 256))
|
|
967
|
-
], 64))), 256))
|
|
968
|
-
], 64))), 256)) : y("", !0)
|
|
969
|
-
]),
|
|
970
|
-
x(a.$slots, "svg", { svg: m.value }, void 0, !0)
|
|
971
|
-
], 14, ca)) : y("", !0),
|
|
972
|
-
a.$slots.watermark ? (r(), u("div", Da, [
|
|
973
|
-
x(a.$slots, "watermark", de(he({ isPrinting: g(Me) || g(ze) })), void 0, !0)
|
|
974
|
-
])) : y("", !0),
|
|
975
|
-
z.value ? y("", !0) : (r(), P(ta, {
|
|
976
|
-
key: 6,
|
|
977
|
-
config: {
|
|
978
|
-
type: "ridgeline",
|
|
979
|
-
style: {
|
|
980
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
981
|
-
ridgeline: {
|
|
982
|
-
color: "#CCCCCC"
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
}, null, 8, ["config"])),
|
|
987
|
-
c("div", {
|
|
988
|
-
ref_key: "chartLegend",
|
|
989
|
-
ref: K
|
|
990
|
-
}, [
|
|
991
|
-
e.value.style.chart.legend.show ? (r(), P(Qt, {
|
|
992
|
-
key: `legend_${Z.value}`,
|
|
993
|
-
legendSet: we.value,
|
|
994
|
-
config: ut.value,
|
|
995
|
-
onClickMarker: n[1] || (n[1] = ({ legend: t }) => Oe(t.id))
|
|
996
|
-
}, Ve({
|
|
997
|
-
item: $(({ legend: t }) => [
|
|
998
|
-
c("div", {
|
|
999
|
-
style: O(`opacity:${I.value.includes(t.id) ? 0.5 : 1}`),
|
|
1000
|
-
onClick: (s) => t.segregate()
|
|
1001
|
-
}, J(t.name), 13, Na)
|
|
1002
|
-
]),
|
|
1003
|
-
_: 2
|
|
1004
|
-
}, [
|
|
1005
|
-
a.$slots.pattern ? {
|
|
1006
|
-
name: "legend-pattern",
|
|
1007
|
-
fn: $(({ legend: t, index: s }) => [
|
|
1008
|
-
Ze(ea, {
|
|
1009
|
-
shape: t.shape,
|
|
1010
|
-
radius: 30,
|
|
1011
|
-
stroke: "none",
|
|
1012
|
-
plot: { x: 30, y: 30 },
|
|
1013
|
-
fill: `url(#pattern_${w.value}_${s})`
|
|
1014
|
-
}, null, 8, ["shape", "fill"])
|
|
1015
|
-
]),
|
|
1016
|
-
key: "0"
|
|
1017
|
-
} : void 0
|
|
1018
|
-
]), 1032, ["legendSet", "config"])) : y("", !0),
|
|
1019
|
-
x(a.$slots, "legend", { legend: we.value }, void 0, !0)
|
|
1020
|
-
], 512),
|
|
1021
|
-
a.$slots.source ? (r(), u("div", {
|
|
1022
|
-
key: 7,
|
|
1023
|
-
ref_key: "source",
|
|
1024
|
-
ref: E,
|
|
1025
|
-
dir: "auto"
|
|
1026
|
-
}, [
|
|
1027
|
-
x(a.$slots, "source", {}, void 0, !0)
|
|
1028
|
-
], 512)) : y("", !0),
|
|
1029
|
-
z.value ? (r(), P(qt, {
|
|
1030
|
-
key: 8,
|
|
1031
|
-
hideDetails: "",
|
|
1032
|
-
config: {
|
|
1033
|
-
open: ae.value.showTable,
|
|
1034
|
-
maxHeight: 1e4,
|
|
1035
|
-
body: {
|
|
1036
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1037
|
-
color: e.value.style.chart.color
|
|
1038
|
-
},
|
|
1039
|
-
head: {
|
|
1040
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1041
|
-
color: e.value.style.chart.color
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
}, {
|
|
1045
|
-
content: $(() => [
|
|
1046
|
-
(r(), P(Kt, {
|
|
1047
|
-
key: `table_${H.value}`,
|
|
1048
|
-
colNames: ue.value.colNames,
|
|
1049
|
-
head: ue.value.head,
|
|
1050
|
-
body: ue.value.body,
|
|
1051
|
-
config: ue.value.config,
|
|
1052
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` :${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1053
|
-
onClose: n[2] || (n[2] = (t) => ae.value.showTable = !1)
|
|
1054
|
-
}, {
|
|
1055
|
-
th: $(({ th: t }) => [
|
|
1056
|
-
c("div", { innerHTML: t }, null, 8, Ia)
|
|
1057
|
-
]),
|
|
1058
|
-
td: $(({ td: t }) => [
|
|
1059
|
-
je(J(t.name ? t.name : g(fe)(
|
|
1060
|
-
e.value.style.chart.selector.labels.formatter,
|
|
1061
|
-
t,
|
|
1062
|
-
g(ge)({
|
|
1063
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1064
|
-
v: t,
|
|
1065
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1066
|
-
r: e.value.table.td.roundingValue
|
|
1067
|
-
})
|
|
1068
|
-
)), 1)
|
|
1069
|
-
]),
|
|
1070
|
-
_: 1
|
|
1071
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1072
|
-
]),
|
|
1073
|
-
_: 1
|
|
1074
|
-
}, 8, ["config"])) : y("", !0),
|
|
1075
|
-
e.value.style.chart.dialog.show ? (r(), P(ia, {
|
|
1076
|
-
key: 9,
|
|
1077
|
-
ref_key: "dialog",
|
|
1078
|
-
ref: v,
|
|
1079
|
-
onClose: n[3] || (n[3] = (t) => i.value = null),
|
|
1080
|
-
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1081
|
-
color: e.value.style.chart.dialog.color,
|
|
1082
|
-
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1083
|
-
headerColor: e.value.style.chart.dialog.header.color
|
|
1084
|
-
}, {
|
|
1085
|
-
title: $(() => [
|
|
1086
|
-
je(J(i.value.name), 1)
|
|
1087
|
-
]),
|
|
1088
|
-
default: $(() => [
|
|
1089
|
-
i.value ? (r(), P(la, {
|
|
1090
|
-
key: 0,
|
|
1091
|
-
config: De.value,
|
|
1092
|
-
dataset: Ne.value
|
|
1093
|
-
}, null, 8, ["config", "dataset"])) : y("", !0)
|
|
1094
|
-
]),
|
|
1095
|
-
_: 1
|
|
1096
|
-
}, 8, ["backgroundColor", "color", "headerBg", "headerColor"])) : y("", !0)
|
|
1097
|
-
], 46, ua));
|
|
1098
|
-
}
|
|
1099
|
-
}, al = /* @__PURE__ */ at(Xa, [["__scopeId", "data-v-9c3affc2"]]);
|
|
1100
|
-
export {
|
|
1101
|
-
al as default
|
|
1102
|
-
};
|