vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
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 +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -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 n, normalizeStyle as Y, normalizeClass as R, 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 x, Fragment as k, renderList as T, 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-BzfnuLnw.js";
|
|
3
|
+
import { t as kt, u as xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ne } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as wt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Tt from "./Title-pVYRzQXY.js";
|
|
9
|
+
import { _ as _t } from "./Shape-DBXkGxKt.js";
|
|
10
|
+
import Lt from "./img-ku4zevVD.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"], Rt = ["x", "y", "font-size", "fill"], Et = ["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,77 +29,77 @@ 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-DgZK-qDz.js")), De = A(() => import("./DataTable-CgL0Rz0x.js")), Ge = A(() => import("./PackageVersion-CAkNkiIG.js")), Re = A(() => import("./PenAndPaper-Cx1-5zdD.js")), Ee = A(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Ve = A(() => import("./Tooltip-NwATo4ZJ.js")), He = A(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_strip_plot: Ue } = st(), b = Me, Be = Ie, _ = 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(""), C = 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
|
|
60
|
-
|
|
60
|
+
const $ = 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) => {
|
|
72
|
-
|
|
73
|
+
_.value = !1, ae({
|
|
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
|
-
}).forEach((
|
|
83
|
-
|
|
83
|
+
}).forEach((i) => {
|
|
84
|
+
_.value = !1, ae({
|
|
84
85
|
componentName: "VueUiStripPlot",
|
|
85
86
|
type: "datasetSerieAttribute",
|
|
86
|
-
property:
|
|
87
|
-
index: `${
|
|
87
|
+
property: i,
|
|
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: C.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
|
-
E.value = l,
|
|
101
|
-
relator: Math.min(l,
|
|
101
|
+
E.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
|
-
|
|
110
|
+
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.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
|
-
|
|
116
|
+
et(() => {
|
|
117
|
+
$.value && (P.value && $.value.unobserve(P.value), $.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), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius),
|
|
134
|
+
}), D = v(e.value.style.chart.stripWidth), E = 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(() => {
|
|
@@ -146,62 +147,62 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
146
147
|
absoluteHeight: E.value,
|
|
147
148
|
absoluteWidth: t
|
|
148
149
|
};
|
|
149
|
-
}), V = f(() =>
|
|
150
|
+
}), V = f(() => _.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, i) => s.value - i.value)
|
|
162
163
|
};
|
|
163
|
-
}) : null),
|
|
164
|
+
}) : null), w = 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 =
|
|
170
|
+
}))), Ye = f(() => Math.max(...w.value.map((t) => t.plots.length))), Z = f(() => {
|
|
171
|
+
const t = w.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(() => (w.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,40 +211,40 @@ 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 =
|
|
219
|
-
name: `${l.name} - ${
|
|
220
|
-
color:
|
|
221
|
-
}))),
|
|
222
|
-
return { head: t, body:
|
|
219
|
+
const t = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => ({
|
|
220
|
+
name: `${l.name} - ${s.name}`,
|
|
221
|
+
color: s.color
|
|
222
|
+
}))), o = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => s.value));
|
|
223
|
+
return { head: t, body: o };
|
|
223
224
|
});
|
|
224
225
|
function Ce(t = null) {
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
], [H.value.body[
|
|
229
|
-
t ? t(
|
|
226
|
+
ot(() => {
|
|
227
|
+
const o = H.value.head.map((i, g) => [[
|
|
228
|
+
i.name
|
|
229
|
+
], [H.value.body[g]]]), 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((i, g) => {
|
|
237
238
|
const X = j({
|
|
238
239
|
p: e.value.style.chart.labels.prefix,
|
|
239
|
-
v: H.value.body[
|
|
240
|
+
v: H.value.body[g],
|
|
240
241
|
s: e.value.style.chart.labels.suffix,
|
|
241
242
|
r: e.value.table.td.roundingValue
|
|
242
243
|
});
|
|
243
244
|
return [
|
|
244
245
|
{
|
|
245
|
-
color:
|
|
246
|
-
name:
|
|
246
|
+
color: i.color,
|
|
247
|
+
name: i.name
|
|
247
248
|
},
|
|
248
249
|
X
|
|
249
250
|
];
|
|
@@ -266,69 +267,83 @@ 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
|
-
return
|
|
278
|
+
return w.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 (!C.value) return;
|
|
295
|
+
const { width: o, height: l } = C.value.getBoundingClientRect(), s = o / l, { imageUri: i, base64: g } = await Lt({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
296
|
+
return {
|
|
297
|
+
imageUri: i,
|
|
298
|
+
base64: g,
|
|
299
|
+
title: e.value.style.chart.title.text,
|
|
300
|
+
width: o,
|
|
301
|
+
height: l,
|
|
302
|
+
aspectRatio: s
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
return Fe({
|
|
293
306
|
getData: Je,
|
|
307
|
+
getImage: Ke,
|
|
294
308
|
generatePdf: ge,
|
|
295
309
|
generateCsv: Ce,
|
|
296
310
|
generateImage: ke,
|
|
297
|
-
toggleTable:
|
|
298
|
-
toggleLabels:
|
|
299
|
-
toggleTooltip:
|
|
300
|
-
toggleAnnotator: te
|
|
301
|
-
|
|
311
|
+
toggleTable: Te,
|
|
312
|
+
toggleLabels: _e,
|
|
313
|
+
toggleTooltip: Le,
|
|
314
|
+
toggleAnnotator: te,
|
|
315
|
+
toggleFullscreen: $e
|
|
316
|
+
}), (t, o) => (r(), u("div", {
|
|
302
317
|
ref_key: "stripPlotChart",
|
|
303
|
-
ref:
|
|
304
|
-
class: R(`vue-ui-strip-plot ${
|
|
318
|
+
ref: C,
|
|
319
|
+
class: R(`vue-ui-strip-plot ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
305
320
|
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
321
|
id: `strip-plot_${q.value}`,
|
|
307
|
-
onMouseenter:
|
|
308
|
-
onMouseleave:
|
|
322
|
+
onMouseenter: o[2] || (o[2] = () => n(he)(!0)),
|
|
323
|
+
onMouseleave: o[3] || (o[3] = () => n(he)(!1))
|
|
309
324
|
}, [
|
|
310
|
-
e.value.userOptions.buttons.annotator ? (
|
|
325
|
+
e.value.userOptions.buttons.annotator ? (r(), S(n(Re), {
|
|
311
326
|
key: 0,
|
|
312
|
-
svgRef:
|
|
327
|
+
svgRef: n(pe),
|
|
313
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
314
329
|
color: e.value.style.chart.color,
|
|
315
330
|
active: B.value,
|
|
316
331
|
onClose: te
|
|
317
332
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
318
|
-
|
|
333
|
+
Xe.value ? (r(), u("div", {
|
|
319
334
|
key: 1,
|
|
320
335
|
ref_key: "noTitle",
|
|
321
336
|
ref: ie,
|
|
322
337
|
class: "vue-data-ui-no-title-space",
|
|
323
338
|
style: "height:36px; width: 100%;background:transparent"
|
|
324
339
|
}, null, 512)) : c("", !0),
|
|
325
|
-
e.value.style.chart.title.text ? (
|
|
340
|
+
e.value.style.chart.title.text ? (r(), u("div", {
|
|
326
341
|
key: 2,
|
|
327
342
|
ref_key: "chartTitle",
|
|
328
343
|
ref: re,
|
|
329
344
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
330
345
|
}, [
|
|
331
|
-
(
|
|
346
|
+
(r(), S(Tt, {
|
|
332
347
|
key: `title_${ve.value}`,
|
|
333
348
|
config: {
|
|
334
349
|
title: {
|
|
@@ -342,13 +357,13 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
342
357
|
}
|
|
343
358
|
}, null, 8, ["config"]))
|
|
344
359
|
], 512)) : c("", !0),
|
|
345
|
-
e.value.userOptions.show &&
|
|
360
|
+
e.value.userOptions.show && _.value && (n(de) || n(Q)) ? (r(), S(n(He), {
|
|
346
361
|
ref: "details",
|
|
347
362
|
key: `user_option_${se.value}`,
|
|
348
363
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
349
364
|
color: e.value.style.chart.color,
|
|
350
|
-
isPrinting:
|
|
351
|
-
isImaging:
|
|
365
|
+
isPrinting: n(be),
|
|
366
|
+
isImaging: n(me),
|
|
352
367
|
uid: q.value,
|
|
353
368
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
354
369
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -358,29 +373,30 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
358
373
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
359
374
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
360
375
|
isTooltip: d.value.showTooltip,
|
|
361
|
-
isFullscreen:
|
|
376
|
+
isFullscreen: M.value,
|
|
362
377
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
363
|
-
chartElement:
|
|
378
|
+
chartElement: C.value,
|
|
364
379
|
position: e.value.userOptions.position,
|
|
365
380
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
366
381
|
isAnnotation: B.value,
|
|
367
382
|
callbacks: e.value.userOptions.callbacks,
|
|
368
|
-
|
|
369
|
-
|
|
383
|
+
printScale: e.value.userOptions.print.scale,
|
|
384
|
+
onToggleFullscreen: $e,
|
|
385
|
+
onGeneratePdf: n(ge),
|
|
370
386
|
onGenerateCsv: Ce,
|
|
371
|
-
onGenerateImage:
|
|
372
|
-
onToggleTable:
|
|
373
|
-
onToggleLabels:
|
|
374
|
-
onToggleTooltip:
|
|
387
|
+
onGenerateImage: n(ke),
|
|
388
|
+
onToggleTable: Te,
|
|
389
|
+
onToggleLabels: _e,
|
|
390
|
+
onToggleTooltip: Le,
|
|
375
391
|
onToggleAnnotator: te,
|
|
376
392
|
style: Y({
|
|
377
|
-
visibility:
|
|
393
|
+
visibility: n(de) ? n(Q) ? "visible" : "hidden" : "visible"
|
|
378
394
|
})
|
|
379
|
-
},
|
|
395
|
+
}, tt({ _: 2 }, [
|
|
380
396
|
t.$slots.menuIcon ? {
|
|
381
397
|
name: "menuIcon",
|
|
382
|
-
fn: y(({ isOpen: l, color:
|
|
383
|
-
p(t.$slots, "menuIcon",
|
|
398
|
+
fn: y(({ isOpen: l, color: s }) => [
|
|
399
|
+
p(t.$slots, "menuIcon", F(I({ isOpen: l, color: s })), void 0, !0)
|
|
384
400
|
]),
|
|
385
401
|
key: "0"
|
|
386
402
|
} : void 0,
|
|
@@ -428,30 +444,30 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
428
444
|
} : void 0,
|
|
429
445
|
t.$slots.optionFullscreen ? {
|
|
430
446
|
name: "optionFullscreen",
|
|
431
|
-
fn: y(({ toggleFullscreen: l, isFullscreen:
|
|
432
|
-
p(t.$slots, "optionFullscreen",
|
|
447
|
+
fn: y(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
448
|
+
p(t.$slots, "optionFullscreen", F(I({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
433
449
|
]),
|
|
434
450
|
key: "7"
|
|
435
451
|
} : void 0,
|
|
436
452
|
t.$slots.optionAnnotator ? {
|
|
437
453
|
name: "optionAnnotator",
|
|
438
|
-
fn: y(({ toggleAnnotator: l, isAnnotator:
|
|
439
|
-
p(t.$slots, "optionAnnotator",
|
|
454
|
+
fn: y(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
455
|
+
p(t.$slots, "optionAnnotator", F(I({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
440
456
|
]),
|
|
441
457
|
key: "8"
|
|
442
458
|
} : 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
|
-
|
|
459
|
+
]), 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),
|
|
460
|
+
_.value ? (r(), u("svg", {
|
|
445
461
|
key: 4,
|
|
446
462
|
ref_key: "svgRef",
|
|
447
463
|
ref: pe,
|
|
448
|
-
xmlns:
|
|
449
|
-
class: R({ "vue-data-ui-fullscreen--on":
|
|
450
|
-
viewBox: `0 0 ${
|
|
464
|
+
xmlns: n(ht),
|
|
465
|
+
class: R({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
466
|
+
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
451
467
|
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
452
468
|
}, [
|
|
453
|
-
|
|
454
|
-
t.$slots["chart-background"] ? (
|
|
469
|
+
Se(n(Ge)),
|
|
470
|
+
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
455
471
|
key: 0,
|
|
456
472
|
x: a.value.left,
|
|
457
473
|
y: a.value.top,
|
|
@@ -462,10 +478,10 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
462
478
|
}
|
|
463
479
|
}, [
|
|
464
480
|
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
|
-
(
|
|
481
|
+
], 8, Ot)) : c("", !0),
|
|
482
|
+
e.value.style.chart.grid.show ? (r(), u("g", Pt, [
|
|
483
|
+
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", Nt, [
|
|
484
|
+
(r(!0), u(k, null, T(we.value, (l) => (r(), u("line", {
|
|
469
485
|
x1: l.x1,
|
|
470
486
|
x2: l.x2,
|
|
471
487
|
y1: l.y,
|
|
@@ -474,21 +490,21 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
474
490
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
475
491
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
476
492
|
"stroke-linecap": "round"
|
|
477
|
-
}, null, 8,
|
|
493
|
+
}, null, 8, Mt))), 256))
|
|
478
494
|
])) : c("", !0),
|
|
479
|
-
e.value.style.chart.grid.verticalGrid.show ? (
|
|
480
|
-
(
|
|
481
|
-
x1: a.value.left + (
|
|
482
|
-
x2: a.value.left + (
|
|
495
|
+
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Ft, [
|
|
496
|
+
(r(!0), u(k, null, T(w.value, (l, s) => (r(), u("line", {
|
|
497
|
+
x1: a.value.left + (s + 1) * a.value.stripWidth,
|
|
498
|
+
x2: a.value.left + (s + 1) * a.value.stripWidth,
|
|
483
499
|
y1: a.value.top,
|
|
484
500
|
y2: a.value.bottom,
|
|
485
501
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
486
502
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
487
503
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
488
504
|
"stroke-linecap": "round"
|
|
489
|
-
}, null, 8,
|
|
505
|
+
}, null, 8, It))), 256))
|
|
490
506
|
])) : c("", !0),
|
|
491
|
-
|
|
507
|
+
x("line", {
|
|
492
508
|
x1: a.value.left,
|
|
493
509
|
x2: a.value.left,
|
|
494
510
|
y1: a.value.top,
|
|
@@ -496,8 +512,8 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
496
512
|
stroke: e.value.style.chart.grid.stroke,
|
|
497
513
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
498
514
|
"stroke-linecap": "round"
|
|
499
|
-
}, null, 8,
|
|
500
|
-
|
|
515
|
+
}, null, 8, Wt),
|
|
516
|
+
x("line", {
|
|
501
517
|
x1: a.value.left,
|
|
502
518
|
x2: a.value.right,
|
|
503
519
|
y1: a.value.bottom,
|
|
@@ -505,67 +521,67 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
505
521
|
stroke: e.value.style.chart.grid.stroke,
|
|
506
522
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
507
523
|
"stroke-linecap": "round"
|
|
508
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, Dt)
|
|
509
525
|
])) : c("", !0),
|
|
510
|
-
e.value.style.chart.labels.yAxisLabels.show ? (
|
|
526
|
+
e.value.style.chart.labels.yAxisLabels.show ? (r(!0), u(k, { key: 2 }, T(we.value, (l, s) => (r(), u("text", {
|
|
511
527
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
512
528
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
513
529
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
514
530
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
515
531
|
"text-anchor": "end"
|
|
516
|
-
},
|
|
532
|
+
}, z(n(oe)(
|
|
517
533
|
e.value.style.chart.labels.formatter,
|
|
518
534
|
l.value,
|
|
519
|
-
|
|
535
|
+
n(j)({
|
|
520
536
|
p: e.value.style.chart.labels.prefix,
|
|
521
537
|
v: l.value,
|
|
522
538
|
s: e.value.style.chart.labels.suffix,
|
|
523
539
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
524
540
|
}),
|
|
525
|
-
{ datapoint: l, seriesIndex:
|
|
526
|
-
)), 9,
|
|
527
|
-
e.value.style.chart.labels.xAxisLabels.show ? (
|
|
541
|
+
{ datapoint: l, seriesIndex: s }
|
|
542
|
+
)), 9, Gt))), 256)) : c("", !0),
|
|
543
|
+
e.value.style.chart.labels.xAxisLabels.show ? (r(!0), u(k, { key: 3 }, T(w.value, (l, s) => (r(), u("g", null, [
|
|
528
544
|
String(l.name).includes(`
|
|
529
|
-
`) ? (
|
|
545
|
+
`) ? (r(), u("text", {
|
|
530
546
|
key: 1,
|
|
531
|
-
x: a.value.left + (
|
|
547
|
+
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
532
548
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
533
549
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
534
550
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
535
551
|
"text-anchor": "middle",
|
|
536
|
-
innerHTML:
|
|
552
|
+
innerHTML: n(dt)({
|
|
537
553
|
content: String(l.name),
|
|
538
554
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
539
555
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
540
|
-
x: a.value.left + (
|
|
556
|
+
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
541
557
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY
|
|
542
558
|
})
|
|
543
|
-
}, null, 8,
|
|
559
|
+
}, null, 8, Et)) : (r(), u("text", {
|
|
544
560
|
key: 0,
|
|
545
|
-
x: a.value.left + (
|
|
561
|
+
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
546
562
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
547
563
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
548
564
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
549
565
|
"text-anchor": "middle"
|
|
550
|
-
},
|
|
566
|
+
}, z(l.name), 9, Rt))
|
|
551
567
|
]))), 256)) : c("", !0),
|
|
552
|
-
e.value.style.chart.labels.axis.yLabel ? (
|
|
568
|
+
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
553
569
|
key: 4,
|
|
554
570
|
fill: e.value.style.chart.labels.axis.color,
|
|
555
571
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
556
572
|
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
573
|
"text-anchor": "middle"
|
|
558
|
-
},
|
|
559
|
-
e.value.style.chart.labels.axis.xLabel ? (
|
|
574
|
+
}, z(e.value.style.chart.labels.axis.yLabel), 9, Vt)) : c("", !0),
|
|
575
|
+
e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
|
|
560
576
|
key: 5,
|
|
561
577
|
fill: e.value.style.chart.labels.axis.color,
|
|
562
578
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
563
579
|
x: a.value.left + a.value.width / 2,
|
|
564
580
|
y: a.value.absoluteHeight,
|
|
565
581
|
"text-anchor": "middle"
|
|
566
|
-
},
|
|
567
|
-
h.value ? (
|
|
568
|
-
|
|
582
|
+
}, z(e.value.style.chart.labels.axis.xLabel), 9, Ht)) : c("", !0),
|
|
583
|
+
h.value ? (r(), u(k, { key: 6 }, [
|
|
584
|
+
x("line", {
|
|
569
585
|
x1: a.value.left,
|
|
570
586
|
x2: a.value.right,
|
|
571
587
|
y1: h.value.y,
|
|
@@ -573,87 +589,87 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
573
589
|
stroke: h.value.color,
|
|
574
590
|
"stroke-width": 1,
|
|
575
591
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
576
|
-
}, null, 10,
|
|
577
|
-
|
|
592
|
+
}, null, 10, Ut),
|
|
593
|
+
x("circle", {
|
|
578
594
|
cx: a.value.left,
|
|
579
595
|
cy: h.value.y,
|
|
580
596
|
r: 3,
|
|
581
597
|
fill: h.value.color,
|
|
582
598
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
583
|
-
}, null, 10,
|
|
584
|
-
|
|
599
|
+
}, null, 10, Bt),
|
|
600
|
+
x("circle", {
|
|
585
601
|
cx: a.value.right,
|
|
586
602
|
cy: h.value.y,
|
|
587
603
|
r: 3,
|
|
588
604
|
fill: h.value.color,
|
|
589
605
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
590
|
-
}, null, 10,
|
|
606
|
+
}, null, 10, Xt)
|
|
591
607
|
], 64)) : c("", !0),
|
|
592
|
-
|
|
593
|
-
(
|
|
608
|
+
x("defs", null, [
|
|
609
|
+
(r(!0), u(k, null, T(w.value, (l) => (r(), u("radialGradient", {
|
|
594
610
|
id: l.id,
|
|
595
611
|
fy: "30%"
|
|
596
612
|
}, [
|
|
597
|
-
|
|
613
|
+
x("stop", {
|
|
598
614
|
offset: "10%",
|
|
599
|
-
"stop-color":
|
|
600
|
-
}, null, 8,
|
|
601
|
-
|
|
615
|
+
"stop-color": n(pt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
616
|
+
}, null, 8, jt),
|
|
617
|
+
x("stop", {
|
|
602
618
|
offset: "90%",
|
|
603
|
-
"stop-color":
|
|
604
|
-
}, null, 8,
|
|
605
|
-
|
|
619
|
+
"stop-color": n(ft)(l.color, 0.1)
|
|
620
|
+
}, null, 8, qt),
|
|
621
|
+
x("stop", {
|
|
606
622
|
offset: "100%",
|
|
607
623
|
"stop-color": l.color
|
|
608
|
-
}, null, 8,
|
|
609
|
-
], 8,
|
|
624
|
+
}, null, 8, Jt)
|
|
625
|
+
], 8, Yt))), 256))
|
|
610
626
|
]),
|
|
611
|
-
(
|
|
612
|
-
(
|
|
613
|
-
plot: { x:
|
|
614
|
-
radius: h.value && h.value.id ===
|
|
627
|
+
(r(!0), u(k, null, T(je.value, (l, s) => (r(), u(k, null, [
|
|
628
|
+
(r(!0), u(k, null, T(l.plots, (i, g) => (r(), S(_t, lt({
|
|
629
|
+
plot: { x: i.x, y: ne.value ? i.y : a.value.top },
|
|
630
|
+
radius: h.value && h.value.id === i.id ? G.value * 1.5 : G.value,
|
|
615
631
|
shape: e.value.style.chart.plots.shape,
|
|
616
632
|
stroke: e.value.style.chart.plots.stroke,
|
|
617
633
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
618
634
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
619
|
-
onMouseenter: (X) =>
|
|
620
|
-
onMouseleave:
|
|
635
|
+
onMouseenter: (X) => qe({ datapoint: i, seriesIndex: g }),
|
|
636
|
+
onMouseleave: o[0] || (o[0] = (X) => {
|
|
621
637
|
J.value = !1, h.value = null;
|
|
622
638
|
}),
|
|
623
|
-
onClick: (X) =>
|
|
624
|
-
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id ===
|
|
625
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
639
|
+
onClick: (X) => Be("selectDatapoint", i),
|
|
640
|
+
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === i.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${W.value ? `transition-delay:${g * 50}ms` : ""}`,
|
|
641
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
|
|
626
642
|
}, { 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
|
-
|
|
643
|
+
d.value.dataLabels.show ? (r(), u("g", Kt, [
|
|
644
|
+
(r(!0), u(k, null, T(l.plots, (i, g) => (r(), u(k, null, [
|
|
645
|
+
g === l.plots.length - 1 || h.value && h.value.id === i.id && !d.value.showTooltip ? (r(), u("text", {
|
|
630
646
|
key: 0,
|
|
631
|
-
x:
|
|
632
|
-
y:
|
|
647
|
+
x: i.x,
|
|
648
|
+
y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === i.id && !d.value.showTooltip ? 2 : 1.5),
|
|
633
649
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
634
650
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
635
651
|
"text-anchor": "middle",
|
|
636
|
-
style: Y(`opacity:${e.value.useCssAnimation &&
|
|
637
|
-
},
|
|
652
|
+
style: Y(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
653
|
+
}, z(i.name) + " " + z(e.value.style.chart.labels.bestPlotLabel.showValue ? n(oe)(
|
|
638
654
|
e.value.style.chart.labels.formatter,
|
|
639
|
-
|
|
640
|
-
|
|
655
|
+
i.value,
|
|
656
|
+
n(j)({
|
|
641
657
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
642
|
-
v:
|
|
658
|
+
v: i.value,
|
|
643
659
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
644
660
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
645
661
|
}),
|
|
646
|
-
{ datapoint:
|
|
647
|
-
) : ""), 13,
|
|
662
|
+
{ datapoint: i, seriesIndex: g }
|
|
663
|
+
) : ""), 13, Qt)) : c("", !0)
|
|
648
664
|
], 64))), 256))
|
|
649
665
|
])) : c("", !0)
|
|
650
666
|
], 64))), 256)),
|
|
651
667
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
652
|
-
], 14,
|
|
653
|
-
t.$slots.watermark ? (
|
|
654
|
-
p(t.$slots, "watermark",
|
|
668
|
+
], 14, zt)) : c("", !0),
|
|
669
|
+
t.$slots.watermark ? (r(), u("div", Zt, [
|
|
670
|
+
p(t.$slots, "watermark", F(I({ isPrinting: n(be) || n(me) })), void 0, !0)
|
|
655
671
|
])) : c("", !0),
|
|
656
|
-
|
|
672
|
+
_.value ? c("", !0) : (r(), S(n(Ee), {
|
|
657
673
|
key: 6,
|
|
658
674
|
config: {
|
|
659
675
|
type: "stripPlot",
|
|
@@ -665,7 +681,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
665
681
|
}
|
|
666
682
|
}
|
|
667
683
|
}, null, 8, ["config"])),
|
|
668
|
-
t.$slots.source ? (
|
|
684
|
+
t.$slots.source ? (r(), u("div", {
|
|
669
685
|
key: 7,
|
|
670
686
|
ref_key: "source",
|
|
671
687
|
ref: ue,
|
|
@@ -673,7 +689,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
673
689
|
}, [
|
|
674
690
|
p(t.$slots, "source", {}, void 0, !0)
|
|
675
691
|
], 512)) : c("", !0),
|
|
676
|
-
|
|
692
|
+
Se(n(Ve), {
|
|
677
693
|
show: d.value.showTooltip && J.value,
|
|
678
694
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
679
695
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -684,20 +700,20 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
684
700
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
685
701
|
position: e.value.style.chart.tooltip.position,
|
|
686
702
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
687
|
-
parent:
|
|
703
|
+
parent: C.value,
|
|
688
704
|
content: K.value,
|
|
689
|
-
isFullscreen:
|
|
690
|
-
isCustom:
|
|
705
|
+
isFullscreen: M.value,
|
|
706
|
+
isCustom: n(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
691
707
|
}, {
|
|
692
708
|
"tooltip-before": y(() => [
|
|
693
|
-
p(t.$slots, "tooltip-before",
|
|
709
|
+
p(t.$slots, "tooltip-before", F(I({ ...ee.value })), void 0, !0)
|
|
694
710
|
]),
|
|
695
711
|
"tooltip-after": y(() => [
|
|
696
|
-
p(t.$slots, "tooltip-after",
|
|
712
|
+
p(t.$slots, "tooltip-after", F(I({ ...ee.value })), void 0, !0)
|
|
697
713
|
]),
|
|
698
714
|
_: 3
|
|
699
715
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
700
|
-
|
|
716
|
+
_.value ? (r(), S(n(We), {
|
|
701
717
|
key: 8,
|
|
702
718
|
hideDetails: "",
|
|
703
719
|
config: {
|
|
@@ -714,32 +730,32 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
714
730
|
}
|
|
715
731
|
}, {
|
|
716
732
|
content: y(() => [
|
|
717
|
-
(
|
|
733
|
+
(r(), S(n(De), {
|
|
718
734
|
key: `table_${ce.value}`,
|
|
719
735
|
colNames: U.value.colNames,
|
|
720
736
|
head: U.value.head,
|
|
721
737
|
body: U.value.body,
|
|
722
738
|
config: U.value.config,
|
|
723
739
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
724
|
-
onClose:
|
|
740
|
+
onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
|
|
725
741
|
}, {
|
|
726
742
|
th: y(({ th: l }) => [
|
|
727
|
-
|
|
743
|
+
x("div", {
|
|
728
744
|
innerHTML: l,
|
|
729
745
|
style: { display: "flex", "align-items": "center" }
|
|
730
|
-
}, null, 8,
|
|
746
|
+
}, null, 8, el)
|
|
731
747
|
]),
|
|
732
748
|
td: y(({ td: l }) => [
|
|
733
|
-
|
|
749
|
+
at(z(l.name || l), 1)
|
|
734
750
|
]),
|
|
735
751
|
_: 1
|
|
736
752
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
737
753
|
]),
|
|
738
754
|
_: 1
|
|
739
755
|
}, 8, ["config"])) : c("", !0)
|
|
740
|
-
], 46,
|
|
756
|
+
], 46, St));
|
|
741
757
|
}
|
|
742
|
-
},
|
|
758
|
+
}, dl = /* @__PURE__ */ At(tl, [["__scopeId", "data-v-678d1447"]]);
|
|
743
759
|
export {
|
|
744
|
-
|
|
760
|
+
dl as default
|
|
745
761
|
};
|