vue-data-ui 2.16.5 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { _ as
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as A, computed as f, ref as v, watch as Qe, shallowRef as Ae, onMounted as Ze, onBeforeUnmount as et, createElementBlock as u, openBlock as r, unref as i, normalizeStyle as Y, normalizeClass as E, createBlock as S, createCommentVNode as c, createVNode as Se, createSlots as tt, withCtx as y, renderSlot as p, normalizeProps as F, guardReactiveProps as I, createElementVNode as k, Fragment as g, renderList as $, toDisplayString as z, mergeProps as lt, createTextVNode as at, nextTick as ot } from "vue";
|
|
2
|
+
import { u as st, c as le, t as rt, p as O, a as ut, o as it, e as ae, g as ze, b as nt, d as Oe, v as vt, D as ct, f as j, X as ht, i as oe, I as dt, l as pt, h as ft, x as Pe, E as yt, q as bt, r as mt, y as gt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as kt, u as xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ne } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as wt } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Tt from "./Title-B-2bV0SW.js";
|
|
9
|
+
import { _ as _t } from "./Shape-DtFT5EJa.js";
|
|
10
|
+
import Lt from "./img-Y_hYz-ZC.js";
|
|
11
|
+
import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], Pt = { key: 1 }, Nt = { key: 0 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = { key: 1 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x", "y", "fill", "font-size"], Et = ["x", "y", "font-size", "fill"], Rt = ["x", "y", "font-size", "fill", "innerHTML"], Vt = ["fill", "font-size", "transform"], Ht = ["fill", "font-size", "x", "y"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Bt = ["cx", "cy", "fill"], Xt = ["cx", "cy", "fill"], Yt = ["id"], jt = ["stop-color"], qt = ["stop-color"], Jt = ["stop-color"], Kt = { key: 0 }, Qt = ["x", "y", "font-size", "fill"], Zt = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, el = ["innerHTML"], tl = {
|
|
15
16
|
__name: "vue-ui-strip-plot",
|
|
16
17
|
props: {
|
|
17
18
|
config: {
|
|
@@ -28,44 +29,44 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
emits: ["selectDatapoint"],
|
|
31
|
-
setup(
|
|
32
|
-
const We =
|
|
32
|
+
setup(Me, { expose: Fe, emit: Ie }) {
|
|
33
|
+
const We = A(() => import("./vue-ui-accordion-CVnA550V.js")), De = A(() => import("./DataTable-D0VYDhfx.js")), Ge = A(() => import("./PackageVersion-5TR4ocqp.js")), Ee = A(() => import("./PenAndPaper-D6AqipIO.js")), Re = A(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Ve = A(() => import("./Tooltip-CoQnTnr-.js")), He = A(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_strip_plot: Ue } = st(), b = Me, Be = Ie, T = f({
|
|
33
34
|
get() {
|
|
34
35
|
return !!b.dataset && b.dataset.length;
|
|
35
36
|
},
|
|
36
37
|
set(t) {
|
|
37
38
|
return t;
|
|
38
39
|
}
|
|
39
|
-
}), q = v(le()), se = v(0), J = v(!1), K = v(""),
|
|
40
|
+
}), q = v(le()), se = v(0), J = v(!1), K = v(""), _ = v(null), re = v(null), ue = v(null), ie = v(null), ne = v(!1), ve = v(0), ce = v(0), e = f({
|
|
40
41
|
get: () => fe(),
|
|
41
42
|
set: (t) => t
|
|
42
|
-
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } =
|
|
43
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = Ct({ config: e.value }), { svgRef: pe } = $t({ config: e.value.style.chart.title });
|
|
43
44
|
function fe() {
|
|
44
|
-
const t =
|
|
45
|
+
const t = Ne({
|
|
45
46
|
userConfig: b.config,
|
|
46
|
-
defaultConfig:
|
|
47
|
+
defaultConfig: Ue
|
|
47
48
|
});
|
|
48
49
|
return t.theme ? {
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
50
|
+
...Ne({
|
|
51
|
+
userConfig: ut.vue_ui_strip_plot[t.theme] || b.config,
|
|
51
52
|
defaultConfig: t
|
|
52
53
|
}),
|
|
53
|
-
customPalette:
|
|
54
|
+
customPalette: rt[t.theme] || O
|
|
54
55
|
} : t;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
Qe(() => b.config, (t) => {
|
|
57
58
|
e.value = fe(), Q.value = !e.value.userOptions.showOnChartHover, ye(), ve.value += 1, ce.value += 1, d.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
58
59
|
}, { deep: !0 });
|
|
59
|
-
const C =
|
|
60
|
-
|
|
60
|
+
const C = Ae(null), P = Ae(null);
|
|
61
|
+
Ze(() => {
|
|
61
62
|
ye();
|
|
62
63
|
});
|
|
63
64
|
function ye() {
|
|
64
|
-
if (
|
|
65
|
+
if (it(b.dataset) ? ae({
|
|
65
66
|
componentName: "VueUiStripPlot",
|
|
66
67
|
type: "dataset"
|
|
67
|
-
}) : b.dataset.forEach((t,
|
|
68
|
-
|
|
68
|
+
}) : b.dataset.forEach((t, o) => {
|
|
69
|
+
ze({
|
|
69
70
|
datasetObject: t,
|
|
70
71
|
requiredAttributes: ["name", "plots"]
|
|
71
72
|
}).forEach((l) => {
|
|
@@ -73,10 +74,10 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
73
74
|
componentName: "VueUiStripPlot",
|
|
74
75
|
type: "datasetSerieAttribute",
|
|
75
76
|
property: l,
|
|
76
|
-
index:
|
|
77
|
+
index: o
|
|
77
78
|
});
|
|
78
|
-
}), t.plots && t.plots.forEach((l,
|
|
79
|
-
|
|
79
|
+
}), t.plots && t.plots.forEach((l, s) => {
|
|
80
|
+
ze({
|
|
80
81
|
datasetObject: l,
|
|
81
82
|
requiredAttributes: ["name", "value"]
|
|
82
83
|
}).forEach((n) => {
|
|
@@ -84,21 +85,21 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
84
85
|
componentName: "VueUiStripPlot",
|
|
85
86
|
type: "datasetSerieAttribute",
|
|
86
87
|
property: n,
|
|
87
|
-
index: `${
|
|
88
|
+
index: `${o},${s}`
|
|
88
89
|
});
|
|
89
90
|
});
|
|
90
91
|
});
|
|
91
92
|
}), e.value.responsive) {
|
|
92
|
-
const t =
|
|
93
|
-
const { width:
|
|
94
|
-
chart:
|
|
93
|
+
const t = kt(() => {
|
|
94
|
+
const { width: o, height: l } = xt({
|
|
95
|
+
chart: _.value,
|
|
95
96
|
title: e.value.style.chart.title.text ? re.value : null,
|
|
96
97
|
source: ue.value,
|
|
97
98
|
noTitle: ie.value
|
|
98
99
|
});
|
|
99
100
|
requestAnimationFrame(() => {
|
|
100
|
-
|
|
101
|
-
relator: Math.min(l,
|
|
101
|
+
R.value = l, N.value.width = o, N.value.height = l, D.value = (o - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = yt({
|
|
102
|
+
relator: Math.min(l, o),
|
|
102
103
|
adjuster: 600,
|
|
103
104
|
source: e.value.style.chart.plots.radius,
|
|
104
105
|
threshold: 6,
|
|
@@ -106,20 +107,20 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
106
107
|
}) : G.value = e.value.style.chart.plots.radius;
|
|
107
108
|
});
|
|
108
109
|
});
|
|
109
|
-
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect()), C.value = new ResizeObserver(t), P.value =
|
|
110
|
+
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect()), C.value = new ResizeObserver(t), P.value = _.value.parentNode, C.value.observe(P.value);
|
|
110
111
|
}
|
|
111
112
|
ne.value = !0, setTimeout(() => {
|
|
112
|
-
|
|
113
|
-
},
|
|
113
|
+
W.value = !1;
|
|
114
|
+
}, Ye.value * 50);
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
+
et(() => {
|
|
116
117
|
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect());
|
|
117
118
|
});
|
|
118
|
-
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } =
|
|
119
|
+
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = wt({
|
|
119
120
|
elementId: `strip-plot_${q.value}`,
|
|
120
121
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
121
122
|
options: e.value.userOptions.print
|
|
122
|
-
}),
|
|
123
|
+
}), Xe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => nt(e.value.customPalette)), W = v(e.value.useCssAnimation), d = v({
|
|
123
124
|
showTable: e.value.table.show,
|
|
124
125
|
dataLabels: {
|
|
125
126
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -130,7 +131,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
130
131
|
bottom: e.value.style.chart.padding.bottom,
|
|
131
132
|
left: e.value.style.chart.padding.left,
|
|
132
133
|
right: e.value.style.chart.padding.right
|
|
133
|
-
}), D = v(e.value.style.chart.stripWidth),
|
|
134
|
+
}), D = v(e.value.style.chart.stripWidth), R = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), N = v({
|
|
134
135
|
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
135
136
|
height: e.value.style.chart.height
|
|
136
137
|
}), a = f(() => {
|
|
@@ -139,69 +140,69 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
139
140
|
left: m.value.left,
|
|
140
141
|
right: t - m.value.right,
|
|
141
142
|
top: m.value.top,
|
|
142
|
-
bottom:
|
|
143
|
+
bottom: R.value - m.value.bottom,
|
|
143
144
|
width: D.value * b.dataset.length,
|
|
144
|
-
height:
|
|
145
|
+
height: R.value - m.value.top - m.value.bottom,
|
|
145
146
|
stripWidth: D.value,
|
|
146
|
-
absoluteHeight:
|
|
147
|
+
absoluteHeight: R.value,
|
|
147
148
|
absoluteWidth: t
|
|
148
149
|
};
|
|
149
|
-
}), V = f(() => T.value ? b.dataset.map((t,
|
|
150
|
+
}), V = f(() => T.value ? b.dataset.map((t, o) => {
|
|
150
151
|
const l = le();
|
|
151
152
|
return {
|
|
152
153
|
...t,
|
|
153
154
|
id: l,
|
|
154
|
-
color: t.color ?
|
|
155
|
-
plots: t.plots.map((
|
|
156
|
-
...
|
|
157
|
-
value:
|
|
155
|
+
color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
|
|
156
|
+
plots: t.plots.map((s) => ({
|
|
157
|
+
...s,
|
|
158
|
+
value: vt(s.value),
|
|
158
159
|
parentId: l,
|
|
159
|
-
color: t.color ?
|
|
160
|
+
color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
|
|
160
161
|
id: le()
|
|
161
|
-
})).sort((
|
|
162
|
+
})).sort((s, n) => s.value - n.value)
|
|
162
163
|
};
|
|
163
|
-
}) : null), x = f(() => (V.value || []).map((t,
|
|
164
|
+
}) : null), x = f(() => (V.value || []).map((t, o) => ({
|
|
164
165
|
...t,
|
|
165
166
|
plots: t.plots.map((l) => ({
|
|
166
167
|
...l,
|
|
167
|
-
x: a.value.left + (
|
|
168
|
+
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
168
169
|
}))
|
|
169
|
-
}))),
|
|
170
|
-
const t = x.value.flatMap((
|
|
170
|
+
}))), Ye = f(() => Math.max(...x.value.map((t) => t.plots.length))), Z = f(() => {
|
|
171
|
+
const t = x.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
171
172
|
return {
|
|
172
173
|
max: Math.max(...t),
|
|
173
174
|
min: Math.min(...t)
|
|
174
175
|
};
|
|
175
|
-
}),
|
|
176
|
+
}), L = f(() => ct(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), je = f(() => (x.value || []).map((t, o) => ({
|
|
176
177
|
...t,
|
|
177
178
|
plots: t.plots.map((l) => ({
|
|
178
179
|
...l,
|
|
179
|
-
y: a.value.bottom - (l.value + Math.abs(
|
|
180
|
+
y: a.value.bottom - (l.value + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min)) * a.value.height
|
|
180
181
|
}))
|
|
181
|
-
}))), we = f(() =>
|
|
182
|
-
y: a.value.bottom - a.value.height * ((t + Math.abs(
|
|
182
|
+
}))), we = f(() => L.value.ticks.map((t) => ({
|
|
183
|
+
y: a.value.bottom - a.value.height * ((t + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min))),
|
|
183
184
|
x1: a.value.left,
|
|
184
185
|
x2: a.value.right,
|
|
185
186
|
value: t
|
|
186
187
|
}))), ee = v(null), h = v(null);
|
|
187
|
-
function
|
|
188
|
-
ee.value = { datapoint: t, seriesIndex:
|
|
188
|
+
function qe({ datapoint: t, seriesIndex: o }) {
|
|
189
|
+
ee.value = { datapoint: t, seriesIndex: o, config: e.value, series: V.value }, J.value = !0, h.value = t;
|
|
189
190
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
190
|
-
if (Pe(l) &&
|
|
191
|
-
seriesIndex:
|
|
191
|
+
if (Pe(l) && gt(() => l({
|
|
192
|
+
seriesIndex: o,
|
|
192
193
|
datapoint: t,
|
|
193
194
|
series: V.value,
|
|
194
195
|
config: e.value
|
|
195
196
|
})))
|
|
196
197
|
K.value = l({
|
|
197
|
-
seriesIndex:
|
|
198
|
+
seriesIndex: o,
|
|
198
199
|
datapoint: t,
|
|
199
200
|
series: V.value,
|
|
200
201
|
config: e.value
|
|
201
202
|
});
|
|
202
203
|
else {
|
|
203
|
-
let
|
|
204
|
-
|
|
204
|
+
let s = "";
|
|
205
|
+
s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, s += `<div>${oe(
|
|
205
206
|
e.value.style.chart.labels.formatter,
|
|
206
207
|
t.value,
|
|
207
208
|
j({
|
|
@@ -210,30 +211,30 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
210
211
|
s: e.value.style.chart.labels.suffix,
|
|
211
212
|
r: e.value.style.chart.tooltip.roundingValue
|
|
212
213
|
}),
|
|
213
|
-
{ datapoint: t, seriesIndex:
|
|
214
|
-
)}</div>`, K.value = `<div>${
|
|
214
|
+
{ datapoint: t, seriesIndex: o }
|
|
215
|
+
)}</div>`, K.value = `<div>${s}</div>`;
|
|
215
216
|
}
|
|
216
217
|
}
|
|
217
218
|
const H = f(() => {
|
|
218
|
-
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((
|
|
219
|
-
name: `${l.name} - ${
|
|
220
|
-
color:
|
|
221
|
-
}))),
|
|
222
|
-
return { head: t, body:
|
|
219
|
+
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, n) => n.value - s.value).map((s) => ({
|
|
220
|
+
name: `${l.name} - ${s.name}`,
|
|
221
|
+
color: s.color
|
|
222
|
+
}))), o = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, n) => n.value - s.value).map((s) => s.value));
|
|
223
|
+
return { head: t, body: o };
|
|
223
224
|
});
|
|
224
225
|
function Ce(t = null) {
|
|
225
|
-
|
|
226
|
-
const
|
|
226
|
+
ot(() => {
|
|
227
|
+
const o = H.value.head.map((n, w) => [[
|
|
227
228
|
n.name
|
|
228
|
-
], [H.value.body[w]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(
|
|
229
|
-
t ? t(
|
|
229
|
+
], [H.value.body[w]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(o), s = bt(l);
|
|
230
|
+
t ? t(s) : mt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
230
231
|
});
|
|
231
232
|
}
|
|
232
233
|
const U = f(() => {
|
|
233
234
|
const t = [
|
|
234
235
|
e.value.table.columnNames.series,
|
|
235
236
|
e.value.table.columnNames.value
|
|
236
|
-
],
|
|
237
|
+
], o = H.value.head.map((n, w) => {
|
|
237
238
|
const X = j({
|
|
238
239
|
p: e.value.style.chart.labels.prefix,
|
|
239
240
|
v: H.value.body[w],
|
|
@@ -266,48 +267,55 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
266
267
|
e.value.table.columnNames.value
|
|
267
268
|
],
|
|
268
269
|
head: t,
|
|
269
|
-
body:
|
|
270
|
+
body: o,
|
|
270
271
|
config: l
|
|
271
272
|
};
|
|
272
|
-
}),
|
|
273
|
-
function
|
|
274
|
-
|
|
273
|
+
}), M = v(!1);
|
|
274
|
+
function $e(t) {
|
|
275
|
+
M.value = t, se.value += 1;
|
|
275
276
|
}
|
|
276
277
|
function Je() {
|
|
277
278
|
return x.value;
|
|
278
279
|
}
|
|
279
|
-
function
|
|
280
|
+
function Te() {
|
|
280
281
|
d.value.showTable = !d.value.showTable;
|
|
281
282
|
}
|
|
282
|
-
function
|
|
283
|
+
function _e() {
|
|
283
284
|
d.value.dataLabels.show = !d.value.dataLabels.show;
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
+
function Le() {
|
|
286
287
|
d.value.showTooltip = !d.value.showTooltip;
|
|
287
288
|
}
|
|
288
289
|
const B = v(!1);
|
|
289
290
|
function te() {
|
|
290
291
|
B.value = !B.value;
|
|
291
292
|
}
|
|
292
|
-
|
|
293
|
+
async function Ke({ scale: t = 2 } = {}) {
|
|
294
|
+
if (!_.value) return;
|
|
295
|
+
const { imageUri: o, base64: l } = await Lt({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
296
|
+
return { imageUri: o, base64: l };
|
|
297
|
+
}
|
|
298
|
+
return Fe({
|
|
293
299
|
getData: Je,
|
|
300
|
+
getImage: Ke,
|
|
294
301
|
generatePdf: ge,
|
|
295
302
|
generateCsv: Ce,
|
|
296
303
|
generateImage: ke,
|
|
297
|
-
toggleTable:
|
|
298
|
-
toggleLabels:
|
|
299
|
-
toggleTooltip:
|
|
300
|
-
toggleAnnotator: te
|
|
301
|
-
|
|
304
|
+
toggleTable: Te,
|
|
305
|
+
toggleLabels: _e,
|
|
306
|
+
toggleTooltip: Le,
|
|
307
|
+
toggleAnnotator: te,
|
|
308
|
+
toggleFullscreen: $e
|
|
309
|
+
}), (t, o) => (r(), u("div", {
|
|
302
310
|
ref_key: "stripPlotChart",
|
|
303
|
-
ref:
|
|
304
|
-
class:
|
|
311
|
+
ref: _,
|
|
312
|
+
class: E(`vue-ui-strip-plot ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
305
313
|
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
306
314
|
id: `strip-plot_${q.value}`,
|
|
307
|
-
onMouseenter:
|
|
308
|
-
onMouseleave:
|
|
315
|
+
onMouseenter: o[2] || (o[2] = () => i(he)(!0)),
|
|
316
|
+
onMouseleave: o[3] || (o[3] = () => i(he)(!1))
|
|
309
317
|
}, [
|
|
310
|
-
e.value.userOptions.buttons.annotator ? (
|
|
318
|
+
e.value.userOptions.buttons.annotator ? (r(), S(i(Ee), {
|
|
311
319
|
key: 0,
|
|
312
320
|
svgRef: i(pe),
|
|
313
321
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -315,20 +323,20 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
315
323
|
active: B.value,
|
|
316
324
|
onClose: te
|
|
317
325
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
318
|
-
|
|
326
|
+
Xe.value ? (r(), u("div", {
|
|
319
327
|
key: 1,
|
|
320
328
|
ref_key: "noTitle",
|
|
321
329
|
ref: ie,
|
|
322
330
|
class: "vue-data-ui-no-title-space",
|
|
323
331
|
style: "height:36px; width: 100%;background:transparent"
|
|
324
332
|
}, null, 512)) : c("", !0),
|
|
325
|
-
e.value.style.chart.title.text ? (
|
|
333
|
+
e.value.style.chart.title.text ? (r(), u("div", {
|
|
326
334
|
key: 2,
|
|
327
335
|
ref_key: "chartTitle",
|
|
328
336
|
ref: re,
|
|
329
337
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
330
338
|
}, [
|
|
331
|
-
(
|
|
339
|
+
(r(), S(Tt, {
|
|
332
340
|
key: `title_${ve.value}`,
|
|
333
341
|
config: {
|
|
334
342
|
title: {
|
|
@@ -342,7 +350,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
342
350
|
}
|
|
343
351
|
}, null, 8, ["config"]))
|
|
344
352
|
], 512)) : c("", !0),
|
|
345
|
-
e.value.userOptions.show && T.value && (i(de) || i(Q)) ? (
|
|
353
|
+
e.value.userOptions.show && T.value && (i(de) || i(Q)) ? (r(), S(i(He), {
|
|
346
354
|
ref: "details",
|
|
347
355
|
key: `user_option_${se.value}`,
|
|
348
356
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -358,29 +366,30 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
358
366
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
359
367
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
360
368
|
isTooltip: d.value.showTooltip,
|
|
361
|
-
isFullscreen:
|
|
369
|
+
isFullscreen: M.value,
|
|
362
370
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
363
|
-
chartElement:
|
|
371
|
+
chartElement: _.value,
|
|
364
372
|
position: e.value.userOptions.position,
|
|
365
373
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
366
374
|
isAnnotation: B.value,
|
|
367
375
|
callbacks: e.value.userOptions.callbacks,
|
|
368
|
-
|
|
376
|
+
printScale: e.value.userOptions.print.scale,
|
|
377
|
+
onToggleFullscreen: $e,
|
|
369
378
|
onGeneratePdf: i(ge),
|
|
370
379
|
onGenerateCsv: Ce,
|
|
371
380
|
onGenerateImage: i(ke),
|
|
372
|
-
onToggleTable:
|
|
373
|
-
onToggleLabels:
|
|
374
|
-
onToggleTooltip:
|
|
381
|
+
onToggleTable: Te,
|
|
382
|
+
onToggleLabels: _e,
|
|
383
|
+
onToggleTooltip: Le,
|
|
375
384
|
onToggleAnnotator: te,
|
|
376
385
|
style: Y({
|
|
377
386
|
visibility: i(de) ? i(Q) ? "visible" : "hidden" : "visible"
|
|
378
387
|
})
|
|
379
|
-
},
|
|
388
|
+
}, tt({ _: 2 }, [
|
|
380
389
|
t.$slots.menuIcon ? {
|
|
381
390
|
name: "menuIcon",
|
|
382
|
-
fn: y(({ isOpen: l, color:
|
|
383
|
-
p(t.$slots, "menuIcon",
|
|
391
|
+
fn: y(({ isOpen: l, color: s }) => [
|
|
392
|
+
p(t.$slots, "menuIcon", F(I({ isOpen: l, color: s })), void 0, !0)
|
|
384
393
|
]),
|
|
385
394
|
key: "0"
|
|
386
395
|
} : void 0,
|
|
@@ -428,30 +437,30 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
428
437
|
} : void 0,
|
|
429
438
|
t.$slots.optionFullscreen ? {
|
|
430
439
|
name: "optionFullscreen",
|
|
431
|
-
fn: y(({ toggleFullscreen: l, isFullscreen:
|
|
432
|
-
p(t.$slots, "optionFullscreen",
|
|
440
|
+
fn: y(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
441
|
+
p(t.$slots, "optionFullscreen", F(I({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
433
442
|
]),
|
|
434
443
|
key: "7"
|
|
435
444
|
} : void 0,
|
|
436
445
|
t.$slots.optionAnnotator ? {
|
|
437
446
|
name: "optionAnnotator",
|
|
438
|
-
fn: y(({ toggleAnnotator: l, isAnnotator:
|
|
439
|
-
p(t.$slots, "optionAnnotator",
|
|
447
|
+
fn: y(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
448
|
+
p(t.$slots, "optionAnnotator", F(I({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
440
449
|
]),
|
|
441
450
|
key: "8"
|
|
442
451
|
} : void 0
|
|
443
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
444
|
-
T.value ? (
|
|
452
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
453
|
+
T.value ? (r(), u("svg", {
|
|
445
454
|
key: 4,
|
|
446
455
|
ref_key: "svgRef",
|
|
447
456
|
ref: pe,
|
|
448
|
-
xmlns: i(
|
|
449
|
-
class:
|
|
450
|
-
viewBox: `0 0 ${
|
|
457
|
+
xmlns: i(ht),
|
|
458
|
+
class: E({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
459
|
+
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
451
460
|
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
452
461
|
}, [
|
|
453
|
-
|
|
454
|
-
t.$slots["chart-background"] ? (
|
|
462
|
+
Se(i(Ge)),
|
|
463
|
+
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
455
464
|
key: 0,
|
|
456
465
|
x: a.value.left,
|
|
457
466
|
y: a.value.top,
|
|
@@ -462,10 +471,10 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
462
471
|
}
|
|
463
472
|
}, [
|
|
464
473
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
465
|
-
], 8,
|
|
466
|
-
e.value.style.chart.grid.show ? (
|
|
467
|
-
e.value.style.chart.grid.horizontalGrid.show ? (
|
|
468
|
-
(
|
|
474
|
+
], 8, Ot)) : c("", !0),
|
|
475
|
+
e.value.style.chart.grid.show ? (r(), u("g", Pt, [
|
|
476
|
+
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", Nt, [
|
|
477
|
+
(r(!0), u(g, null, $(we.value, (l) => (r(), u("line", {
|
|
469
478
|
x1: l.x1,
|
|
470
479
|
x2: l.x2,
|
|
471
480
|
y1: l.y,
|
|
@@ -474,19 +483,19 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
474
483
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
475
484
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
476
485
|
"stroke-linecap": "round"
|
|
477
|
-
}, null, 8,
|
|
486
|
+
}, null, 8, Mt))), 256))
|
|
478
487
|
])) : c("", !0),
|
|
479
|
-
e.value.style.chart.grid.verticalGrid.show ? (
|
|
480
|
-
(
|
|
481
|
-
x1: a.value.left + (
|
|
482
|
-
x2: a.value.left + (
|
|
488
|
+
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Ft, [
|
|
489
|
+
(r(!0), u(g, null, $(x.value, (l, s) => (r(), u("line", {
|
|
490
|
+
x1: a.value.left + (s + 1) * a.value.stripWidth,
|
|
491
|
+
x2: a.value.left + (s + 1) * a.value.stripWidth,
|
|
483
492
|
y1: a.value.top,
|
|
484
493
|
y2: a.value.bottom,
|
|
485
494
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
486
495
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
487
496
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
488
497
|
"stroke-linecap": "round"
|
|
489
|
-
}, null, 8,
|
|
498
|
+
}, null, 8, It))), 256))
|
|
490
499
|
])) : c("", !0),
|
|
491
500
|
k("line", {
|
|
492
501
|
x1: a.value.left,
|
|
@@ -496,7 +505,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
496
505
|
stroke: e.value.style.chart.grid.stroke,
|
|
497
506
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
498
507
|
"stroke-linecap": "round"
|
|
499
|
-
}, null, 8,
|
|
508
|
+
}, null, 8, Wt),
|
|
500
509
|
k("line", {
|
|
501
510
|
x1: a.value.left,
|
|
502
511
|
x2: a.value.right,
|
|
@@ -505,15 +514,15 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
505
514
|
stroke: e.value.style.chart.grid.stroke,
|
|
506
515
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
507
516
|
"stroke-linecap": "round"
|
|
508
|
-
}, null, 8,
|
|
517
|
+
}, null, 8, Dt)
|
|
509
518
|
])) : c("", !0),
|
|
510
|
-
e.value.style.chart.labels.yAxisLabels.show ? (
|
|
519
|
+
e.value.style.chart.labels.yAxisLabels.show ? (r(!0), u(g, { key: 2 }, $(we.value, (l, s) => (r(), u("text", {
|
|
511
520
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
512
521
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
513
522
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
514
523
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
515
524
|
"text-anchor": "end"
|
|
516
|
-
},
|
|
525
|
+
}, z(i(oe)(
|
|
517
526
|
e.value.style.chart.labels.formatter,
|
|
518
527
|
l.value,
|
|
519
528
|
i(j)({
|
|
@@ -522,49 +531,49 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
522
531
|
s: e.value.style.chart.labels.suffix,
|
|
523
532
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
524
533
|
}),
|
|
525
|
-
{ datapoint: l, seriesIndex:
|
|
526
|
-
)), 9,
|
|
527
|
-
e.value.style.chart.labels.xAxisLabels.show ? (
|
|
534
|
+
{ datapoint: l, seriesIndex: s }
|
|
535
|
+
)), 9, Gt))), 256)) : c("", !0),
|
|
536
|
+
e.value.style.chart.labels.xAxisLabels.show ? (r(!0), u(g, { key: 3 }, $(x.value, (l, s) => (r(), u("g", null, [
|
|
528
537
|
String(l.name).includes(`
|
|
529
|
-
`) ? (
|
|
538
|
+
`) ? (r(), u("text", {
|
|
530
539
|
key: 1,
|
|
531
|
-
x: a.value.left + (
|
|
540
|
+
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
532
541
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
533
542
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
534
543
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
535
544
|
"text-anchor": "middle",
|
|
536
|
-
innerHTML: i(
|
|
545
|
+
innerHTML: i(dt)({
|
|
537
546
|
content: String(l.name),
|
|
538
547
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
539
548
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
540
|
-
x: a.value.left + (
|
|
549
|
+
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
541
550
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY
|
|
542
551
|
})
|
|
543
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, Rt)) : (r(), u("text", {
|
|
544
553
|
key: 0,
|
|
545
|
-
x: a.value.left + (
|
|
554
|
+
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
546
555
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
547
556
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
548
557
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
549
558
|
"text-anchor": "middle"
|
|
550
|
-
},
|
|
559
|
+
}, z(l.name), 9, Et))
|
|
551
560
|
]))), 256)) : c("", !0),
|
|
552
|
-
e.value.style.chart.labels.axis.yLabel ? (
|
|
561
|
+
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
553
562
|
key: 4,
|
|
554
563
|
fill: e.value.style.chart.labels.axis.color,
|
|
555
564
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
556
565
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize + e.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top + a.value.height / 2}) rotate(-90)`,
|
|
557
566
|
"text-anchor": "middle"
|
|
558
|
-
},
|
|
559
|
-
e.value.style.chart.labels.axis.xLabel ? (
|
|
567
|
+
}, z(e.value.style.chart.labels.axis.yLabel), 9, Vt)) : c("", !0),
|
|
568
|
+
e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
|
|
560
569
|
key: 5,
|
|
561
570
|
fill: e.value.style.chart.labels.axis.color,
|
|
562
571
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
563
572
|
x: a.value.left + a.value.width / 2,
|
|
564
573
|
y: a.value.absoluteHeight,
|
|
565
574
|
"text-anchor": "middle"
|
|
566
|
-
},
|
|
567
|
-
h.value ? (
|
|
575
|
+
}, z(e.value.style.chart.labels.axis.xLabel), 9, Ht)) : c("", !0),
|
|
576
|
+
h.value ? (r(), u(g, { key: 6 }, [
|
|
568
577
|
k("line", {
|
|
569
578
|
x1: a.value.left,
|
|
570
579
|
x2: a.value.right,
|
|
@@ -572,69 +581,69 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
572
581
|
y2: h.value.y,
|
|
573
582
|
stroke: h.value.color,
|
|
574
583
|
"stroke-width": 1,
|
|
575
|
-
class:
|
|
576
|
-
}, null, 10,
|
|
584
|
+
class: E({ "select-circle": e.value.useCssAnimation })
|
|
585
|
+
}, null, 10, Ut),
|
|
577
586
|
k("circle", {
|
|
578
587
|
cx: a.value.left,
|
|
579
588
|
cy: h.value.y,
|
|
580
589
|
r: 3,
|
|
581
590
|
fill: h.value.color,
|
|
582
|
-
class:
|
|
583
|
-
}, null, 10,
|
|
591
|
+
class: E({ "select-circle": e.value.useCssAnimation })
|
|
592
|
+
}, null, 10, Bt),
|
|
584
593
|
k("circle", {
|
|
585
594
|
cx: a.value.right,
|
|
586
595
|
cy: h.value.y,
|
|
587
596
|
r: 3,
|
|
588
597
|
fill: h.value.color,
|
|
589
|
-
class:
|
|
590
|
-
}, null, 10,
|
|
598
|
+
class: E({ "select-circle": e.value.useCssAnimation })
|
|
599
|
+
}, null, 10, Xt)
|
|
591
600
|
], 64)) : c("", !0),
|
|
592
601
|
k("defs", null, [
|
|
593
|
-
(
|
|
602
|
+
(r(!0), u(g, null, $(x.value, (l) => (r(), u("radialGradient", {
|
|
594
603
|
id: l.id,
|
|
595
604
|
fy: "30%"
|
|
596
605
|
}, [
|
|
597
606
|
k("stop", {
|
|
598
607
|
offset: "10%",
|
|
599
|
-
"stop-color": i(
|
|
600
|
-
}, null, 8,
|
|
608
|
+
"stop-color": i(pt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
609
|
+
}, null, 8, jt),
|
|
601
610
|
k("stop", {
|
|
602
611
|
offset: "90%",
|
|
603
|
-
"stop-color": i(
|
|
604
|
-
}, null, 8,
|
|
612
|
+
"stop-color": i(ft)(l.color, 0.1)
|
|
613
|
+
}, null, 8, qt),
|
|
605
614
|
k("stop", {
|
|
606
615
|
offset: "100%",
|
|
607
616
|
"stop-color": l.color
|
|
608
|
-
}, null, 8,
|
|
609
|
-
], 8,
|
|
617
|
+
}, null, 8, Jt)
|
|
618
|
+
], 8, Yt))), 256))
|
|
610
619
|
]),
|
|
611
|
-
(
|
|
612
|
-
(
|
|
620
|
+
(r(!0), u(g, null, $(je.value, (l, s) => (r(), u(g, null, [
|
|
621
|
+
(r(!0), u(g, null, $(l.plots, (n, w) => (r(), S(_t, lt({
|
|
613
622
|
plot: { x: n.x, y: ne.value ? n.y : a.value.top },
|
|
614
623
|
radius: h.value && h.value.id === n.id ? G.value * 1.5 : G.value,
|
|
615
624
|
shape: e.value.style.chart.plots.shape,
|
|
616
625
|
stroke: e.value.style.chart.plots.stroke,
|
|
617
626
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
618
627
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
619
|
-
onMouseenter: (X) =>
|
|
620
|
-
onMouseleave:
|
|
628
|
+
onMouseenter: (X) => qe({ datapoint: n, seriesIndex: w }),
|
|
629
|
+
onMouseleave: o[0] || (o[0] = (X) => {
|
|
621
630
|
J.value = !1, h.value = null;
|
|
622
631
|
}),
|
|
623
|
-
onClick: (X) =>
|
|
624
|
-
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${
|
|
625
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
632
|
+
onClick: (X) => Be("selectDatapoint", n),
|
|
633
|
+
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${W.value ? `transition-delay:${w * 50}ms` : ""}`,
|
|
634
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
|
|
626
635
|
}, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
627
|
-
d.value.dataLabels.show ? (
|
|
628
|
-
(
|
|
629
|
-
w === l.plots.length - 1 || h.value && h.value.id === n.id && !d.value.showTooltip ? (
|
|
636
|
+
d.value.dataLabels.show ? (r(), u("g", Kt, [
|
|
637
|
+
(r(!0), u(g, null, $(l.plots, (n, w) => (r(), u(g, null, [
|
|
638
|
+
w === l.plots.length - 1 || h.value && h.value.id === n.id && !d.value.showTooltip ? (r(), u("text", {
|
|
630
639
|
key: 0,
|
|
631
640
|
x: n.x,
|
|
632
641
|
y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === n.id && !d.value.showTooltip ? 2 : 1.5),
|
|
633
642
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
634
643
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
635
644
|
"text-anchor": "middle",
|
|
636
|
-
style: Y(`opacity:${e.value.useCssAnimation &&
|
|
637
|
-
},
|
|
645
|
+
style: Y(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
646
|
+
}, z(n.name) + " " + z(e.value.style.chart.labels.bestPlotLabel.showValue ? i(oe)(
|
|
638
647
|
e.value.style.chart.labels.formatter,
|
|
639
648
|
n.value,
|
|
640
649
|
i(j)({
|
|
@@ -644,16 +653,16 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
644
653
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
645
654
|
}),
|
|
646
655
|
{ datapoint: n, seriesIndex: w }
|
|
647
|
-
) : ""), 13,
|
|
656
|
+
) : ""), 13, Qt)) : c("", !0)
|
|
648
657
|
], 64))), 256))
|
|
649
658
|
])) : c("", !0)
|
|
650
659
|
], 64))), 256)),
|
|
651
660
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
652
|
-
], 14,
|
|
653
|
-
t.$slots.watermark ? (
|
|
654
|
-
p(t.$slots, "watermark",
|
|
661
|
+
], 14, zt)) : c("", !0),
|
|
662
|
+
t.$slots.watermark ? (r(), u("div", Zt, [
|
|
663
|
+
p(t.$slots, "watermark", F(I({ isPrinting: i(be) || i(me) })), void 0, !0)
|
|
655
664
|
])) : c("", !0),
|
|
656
|
-
T.value ? c("", !0) : (
|
|
665
|
+
T.value ? c("", !0) : (r(), S(i(Re), {
|
|
657
666
|
key: 6,
|
|
658
667
|
config: {
|
|
659
668
|
type: "stripPlot",
|
|
@@ -665,7 +674,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
665
674
|
}
|
|
666
675
|
}
|
|
667
676
|
}, null, 8, ["config"])),
|
|
668
|
-
t.$slots.source ? (
|
|
677
|
+
t.$slots.source ? (r(), u("div", {
|
|
669
678
|
key: 7,
|
|
670
679
|
ref_key: "source",
|
|
671
680
|
ref: ue,
|
|
@@ -673,7 +682,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
673
682
|
}, [
|
|
674
683
|
p(t.$slots, "source", {}, void 0, !0)
|
|
675
684
|
], 512)) : c("", !0),
|
|
676
|
-
|
|
685
|
+
Se(i(Ve), {
|
|
677
686
|
show: d.value.showTooltip && J.value,
|
|
678
687
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
679
688
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -684,20 +693,20 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
684
693
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
685
694
|
position: e.value.style.chart.tooltip.position,
|
|
686
695
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
687
|
-
parent:
|
|
696
|
+
parent: _.value,
|
|
688
697
|
content: K.value,
|
|
689
|
-
isFullscreen:
|
|
698
|
+
isFullscreen: M.value,
|
|
690
699
|
isCustom: i(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
691
700
|
}, {
|
|
692
701
|
"tooltip-before": y(() => [
|
|
693
|
-
p(t.$slots, "tooltip-before",
|
|
702
|
+
p(t.$slots, "tooltip-before", F(I({ ...ee.value })), void 0, !0)
|
|
694
703
|
]),
|
|
695
704
|
"tooltip-after": y(() => [
|
|
696
|
-
p(t.$slots, "tooltip-after",
|
|
705
|
+
p(t.$slots, "tooltip-after", F(I({ ...ee.value })), void 0, !0)
|
|
697
706
|
]),
|
|
698
707
|
_: 3
|
|
699
708
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
700
|
-
T.value ? (
|
|
709
|
+
T.value ? (r(), S(i(We), {
|
|
701
710
|
key: 8,
|
|
702
711
|
hideDetails: "",
|
|
703
712
|
config: {
|
|
@@ -714,32 +723,32 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
714
723
|
}
|
|
715
724
|
}, {
|
|
716
725
|
content: y(() => [
|
|
717
|
-
(
|
|
726
|
+
(r(), S(i(De), {
|
|
718
727
|
key: `table_${ce.value}`,
|
|
719
728
|
colNames: U.value.colNames,
|
|
720
729
|
head: U.value.head,
|
|
721
730
|
body: U.value.body,
|
|
722
731
|
config: U.value.config,
|
|
723
732
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
724
|
-
onClose:
|
|
733
|
+
onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
|
|
725
734
|
}, {
|
|
726
735
|
th: y(({ th: l }) => [
|
|
727
736
|
k("div", {
|
|
728
737
|
innerHTML: l,
|
|
729
738
|
style: { display: "flex", "align-items": "center" }
|
|
730
|
-
}, null, 8,
|
|
739
|
+
}, null, 8, el)
|
|
731
740
|
]),
|
|
732
741
|
td: y(({ td: l }) => [
|
|
733
|
-
|
|
742
|
+
at(z(l.name || l), 1)
|
|
734
743
|
]),
|
|
735
744
|
_: 1
|
|
736
745
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
737
746
|
]),
|
|
738
747
|
_: 1
|
|
739
748
|
}, 8, ["config"])) : c("", !0)
|
|
740
|
-
], 46,
|
|
749
|
+
], 46, St));
|
|
741
750
|
}
|
|
742
|
-
},
|
|
751
|
+
}, dl = /* @__PURE__ */ At(tl, [["__scopeId", "data-v-6bc741d3"]]);
|
|
743
752
|
export {
|
|
744
|
-
|
|
753
|
+
dl as default
|
|
745
754
|
};
|