vue-data-ui 2.14.2 → 2.14.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/{Arrow-DNJvKMao.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-DzCoab4C.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-DLJ9I-cg.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-DdpwkHh8.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-B6mk6VRe.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-xtSGHclp.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-D8swCIay.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-BbJkNcCM.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CtqhCOnQ.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-DBYSSUsg.js → index-BzH6XFI9.js} +409 -394
- package/dist/{pdf-Cq3bf6D0.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-xF9W73YL.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-D6VPixUt.js} +111 -111
- package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-CWm-A-co.js} +46 -46
- package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as ot, c as le, t as st, p 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 { _ as
|
|
11
|
-
const
|
|
1
|
+
import { defineAsyncComponent as L, computed as f, ref as v, watch as Ke, shallowRef as Le, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as u, openBlock as s, unref as i, normalizeStyle as Y, normalizeClass as R, createBlock as A, createCommentVNode as c, createVNode as Ae, createSlots as et, withCtx as y, renderSlot as p, normalizeProps as F, guardReactiveProps as M, createElementVNode as k, Fragment as g, renderList as $, toDisplayString as S, mergeProps as tt, createTextVNode as lt, nextTick as at } from "vue";
|
|
2
|
+
import { u as ot, c as le, t as st, p as z, a as rt, o as ut, e as ae, g as Se, b as it, d as ze, v as nt, D as vt, f as j, X as ct, i as oe, I as ht, l as dt, h as pt, x as Pe, F as ft, q as yt, r as bt, y as mt } from "./index-BzH6XFI9.js";
|
|
3
|
+
import { t as gt, u as kt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as Oe } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-C653sJjz.js";
|
|
6
|
+
import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import $t from "./Title-B71Dk29x.js";
|
|
9
|
+
import { _ as Tt } from "./Shape-D65xhJAN.js";
|
|
10
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], zt = { key: 1 }, Pt = { key: 0 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nt = { key: 1 }, Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "fill", "font-size"], Dt = ["x", "y", "font-size", "fill"], Gt = ["x", "y", "font-size", "fill", "innerHTML"], Rt = ["fill", "font-size", "transform"], Vt = ["fill", "font-size", "x", "y"], Et = ["x1", "x2", "y1", "y2", "stroke"], Ht = ["cx", "cy", "fill"], Ut = ["cx", "cy", "fill"], Bt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], jt = ["stop-color"], qt = { key: 0 }, Jt = ["x", "y", "font-size", "fill"], Kt = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, Qt = ["innerHTML"], Zt = {
|
|
15
15
|
__name: "vue-ui-strip-plot",
|
|
16
16
|
props: {
|
|
17
17
|
config: {
|
|
@@ -29,34 +29,34 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectDatapoint"],
|
|
31
31
|
setup(Ne, { expose: Fe, emit: Me }) {
|
|
32
|
-
const
|
|
32
|
+
const We = L(() => import("./vue-ui-accordion-Cjq4hqGi.js")), Ie = L(() => import("./DataTable-D8n1mvaG.js")), De = L(() => import("./PackageVersion-Bwu7jdjH.js")), Ge = L(() => import("./PenAndPaper-BzQcbTCN.js")), Re = L(() => import("./vue-ui-skeleton-qa5B2MES.js")), Ve = L(() => import("./Tooltip-BuP-Tir7.js")), Ee = L(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_strip_plot: He } = ot(), b = Ne, Ue = Me, T = f({
|
|
33
33
|
get() {
|
|
34
34
|
return !!b.dataset && b.dataset.length;
|
|
35
35
|
},
|
|
36
36
|
set(t) {
|
|
37
37
|
return t;
|
|
38
38
|
}
|
|
39
|
-
}), q = v(le()), se = v(0), J = v(!1), K = v(""),
|
|
39
|
+
}), q = v(le()), se = v(0), J = v(!1), K = v(""), W = v(null), re = v(null), ue = v(null), ie = v(null), ne = v(!1), ve = v(0), ce = v(0), e = f({
|
|
40
40
|
get: () => fe(),
|
|
41
41
|
set: (t) => t
|
|
42
|
-
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } =
|
|
42
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = wt({ config: e.value }), { svgRef: pe } = Ct({ config: e.value.style.chart.title });
|
|
43
43
|
function fe() {
|
|
44
|
-
const t =
|
|
44
|
+
const t = Oe({
|
|
45
45
|
userConfig: b.config,
|
|
46
|
-
defaultConfig:
|
|
46
|
+
defaultConfig: He
|
|
47
47
|
});
|
|
48
48
|
return t.theme ? {
|
|
49
|
-
...
|
|
49
|
+
...Oe({
|
|
50
50
|
userConfig: rt.vue_ui_strip_plot[t.theme] || b.config,
|
|
51
51
|
defaultConfig: t
|
|
52
52
|
}),
|
|
53
|
-
customPalette: st[t.theme] ||
|
|
53
|
+
customPalette: st[t.theme] || z
|
|
54
54
|
} : t;
|
|
55
55
|
}
|
|
56
56
|
Ke(() => b.config, (t) => {
|
|
57
57
|
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
58
|
}, { deep: !0 });
|
|
59
|
-
const C =
|
|
59
|
+
const C = Le(null), P = Le(null);
|
|
60
60
|
Qe(() => {
|
|
61
61
|
ye();
|
|
62
62
|
});
|
|
@@ -64,8 +64,8 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
64
64
|
if (ut(b.dataset) ? ae({
|
|
65
65
|
componentName: "VueUiStripPlot",
|
|
66
66
|
type: "dataset"
|
|
67
|
-
}) : b.dataset.forEach((t,
|
|
68
|
-
|
|
67
|
+
}) : b.dataset.forEach((t, r) => {
|
|
68
|
+
Se({
|
|
69
69
|
datasetObject: t,
|
|
70
70
|
requiredAttributes: ["name", "plots"]
|
|
71
71
|
}).forEach((l) => {
|
|
@@ -73,32 +73,32 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
73
73
|
componentName: "VueUiStripPlot",
|
|
74
74
|
type: "datasetSerieAttribute",
|
|
75
75
|
property: l,
|
|
76
|
-
index:
|
|
76
|
+
index: r
|
|
77
77
|
});
|
|
78
|
-
}), t.plots && t.plots.forEach((l,
|
|
79
|
-
|
|
78
|
+
}), t.plots && t.plots.forEach((l, o) => {
|
|
79
|
+
Se({
|
|
80
80
|
datasetObject: l,
|
|
81
81
|
requiredAttributes: ["name", "value"]
|
|
82
|
-
}).forEach((
|
|
82
|
+
}).forEach((n) => {
|
|
83
83
|
T.value = !1, ae({
|
|
84
84
|
componentName: "VueUiStripPlot",
|
|
85
85
|
type: "datasetSerieAttribute",
|
|
86
|
-
property:
|
|
87
|
-
index: `${
|
|
86
|
+
property: n,
|
|
87
|
+
index: `${r},${o}`
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}), e.value.responsive) {
|
|
92
|
-
const t =
|
|
93
|
-
const { width:
|
|
94
|
-
chart:
|
|
92
|
+
const t = gt(() => {
|
|
93
|
+
const { width: r, height: l } = kt({
|
|
94
|
+
chart: W.value,
|
|
95
95
|
title: e.value.style.chart.title.text ? re.value : null,
|
|
96
96
|
source: ue.value,
|
|
97
97
|
noTitle: ie.value
|
|
98
98
|
});
|
|
99
99
|
requestAnimationFrame(() => {
|
|
100
|
-
V.value = l,
|
|
101
|
-
relator: Math.min(l,
|
|
100
|
+
V.value = l, O.value.width = r, O.value.height = l, D.value = (r - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = ft({
|
|
101
|
+
relator: Math.min(l, r),
|
|
102
102
|
adjuster: 600,
|
|
103
103
|
source: e.value.style.chart.plots.radius,
|
|
104
104
|
threshold: 6,
|
|
@@ -106,20 +106,20 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
106
106
|
}) : G.value = e.value.style.chart.plots.radius;
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
C.value && (
|
|
109
|
+
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect()), C.value = new ResizeObserver(t), P.value = W.value.parentNode, C.value.observe(P.value);
|
|
110
110
|
}
|
|
111
111
|
ne.value = !0, setTimeout(() => {
|
|
112
|
-
|
|
112
|
+
I.value = !1;
|
|
113
113
|
}, Xe.value * 50);
|
|
114
114
|
}
|
|
115
115
|
Ze(() => {
|
|
116
|
-
C.value && (
|
|
116
|
+
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect());
|
|
117
117
|
});
|
|
118
|
-
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } =
|
|
118
|
+
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = xt({
|
|
119
119
|
elementId: `strip-plot_${q.value}`,
|
|
120
120
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
121
121
|
options: e.value.userOptions.print
|
|
122
|
-
}), Be = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => it(e.value.customPalette)),
|
|
122
|
+
}), Be = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => it(e.value.customPalette)), I = v(e.value.useCssAnimation), d = v({
|
|
123
123
|
showTable: e.value.table.show,
|
|
124
124
|
dataLabels: {
|
|
125
125
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -130,7 +130,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
130
130
|
bottom: e.value.style.chart.padding.bottom,
|
|
131
131
|
left: e.value.style.chart.padding.left,
|
|
132
132
|
right: e.value.style.chart.padding.right
|
|
133
|
-
}), D = v(e.value.style.chart.stripWidth), V = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius),
|
|
133
|
+
}), D = v(e.value.style.chart.stripWidth), V = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), O = v({
|
|
134
134
|
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
135
135
|
height: e.value.style.chart.height
|
|
136
136
|
}), a = f(() => {
|
|
@@ -146,33 +146,33 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
146
146
|
absoluteHeight: V.value,
|
|
147
147
|
absoluteWidth: t
|
|
148
148
|
};
|
|
149
|
-
}), E = f(() => T.value ? b.dataset.map((t,
|
|
149
|
+
}), E = f(() => T.value ? b.dataset.map((t, r) => {
|
|
150
150
|
const l = le();
|
|
151
151
|
return {
|
|
152
152
|
...t,
|
|
153
153
|
id: l,
|
|
154
|
-
color: t.color ?
|
|
155
|
-
plots: t.plots.map((
|
|
156
|
-
...
|
|
157
|
-
value: nt(
|
|
154
|
+
color: t.color ? ze(t.color) : xe.value[r] || z[r] || z[r % z.length],
|
|
155
|
+
plots: t.plots.map((o) => ({
|
|
156
|
+
...o,
|
|
157
|
+
value: nt(o.value),
|
|
158
158
|
parentId: l,
|
|
159
|
-
color: t.color ?
|
|
159
|
+
color: t.color ? ze(t.color) : xe.value[r] || z[r] || z[r % z.length],
|
|
160
160
|
id: le()
|
|
161
|
-
})).sort((
|
|
161
|
+
})).sort((o, n) => o.value - n.value)
|
|
162
162
|
};
|
|
163
|
-
}) : null), x = f(() => (E.value || []).map((t,
|
|
163
|
+
}) : null), x = f(() => (E.value || []).map((t, r) => ({
|
|
164
164
|
...t,
|
|
165
165
|
plots: t.plots.map((l) => ({
|
|
166
166
|
...l,
|
|
167
|
-
x: a.value.left + (
|
|
167
|
+
x: a.value.left + (r + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
168
168
|
}))
|
|
169
169
|
}))), Xe = f(() => Math.max(...x.value.map((t) => t.plots.length))), Z = f(() => {
|
|
170
|
-
const t = x.value.flatMap((
|
|
170
|
+
const t = x.value.flatMap((r) => r.plots.map((l) => l.value));
|
|
171
171
|
return {
|
|
172
172
|
max: Math.max(...t),
|
|
173
173
|
min: Math.min(...t)
|
|
174
174
|
};
|
|
175
|
-
}), _ = f(() => vt(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)),
|
|
175
|
+
}), _ = f(() => vt(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), Ye = f(() => (x.value || []).map((t, r) => ({
|
|
176
176
|
...t,
|
|
177
177
|
plots: t.plots.map((l) => ({
|
|
178
178
|
...l,
|
|
@@ -184,66 +184,66 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
184
184
|
x2: a.value.right,
|
|
185
185
|
value: t
|
|
186
186
|
}))), ee = v(null), h = v(null);
|
|
187
|
-
function
|
|
188
|
-
ee.value = { datapoint: t, seriesIndex:
|
|
187
|
+
function je({ datapoint: t, seriesIndex: r }) {
|
|
188
|
+
ee.value = { datapoint: t, seriesIndex: r, config: e.value, series: E.value }, J.value = !0, h.value = t;
|
|
189
189
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
190
|
-
if (
|
|
191
|
-
seriesIndex:
|
|
190
|
+
if (Pe(l) && mt(() => l({
|
|
191
|
+
seriesIndex: r,
|
|
192
192
|
datapoint: t,
|
|
193
193
|
series: E.value,
|
|
194
194
|
config: e.value
|
|
195
195
|
})))
|
|
196
196
|
K.value = l({
|
|
197
|
-
seriesIndex:
|
|
197
|
+
seriesIndex: r,
|
|
198
198
|
datapoint: t,
|
|
199
199
|
series: E.value,
|
|
200
200
|
config: e.value
|
|
201
201
|
});
|
|
202
202
|
else {
|
|
203
|
-
let
|
|
204
|
-
|
|
203
|
+
let o = "";
|
|
204
|
+
o += `<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>`, o += `<div>${oe(
|
|
205
205
|
e.value.style.chart.labels.formatter,
|
|
206
206
|
t.value,
|
|
207
|
-
|
|
207
|
+
j({
|
|
208
208
|
p: e.value.style.chart.labels.prefix,
|
|
209
209
|
v: t.value,
|
|
210
210
|
s: e.value.style.chart.labels.suffix,
|
|
211
211
|
r: e.value.style.chart.tooltip.roundingValue
|
|
212
212
|
}),
|
|
213
|
-
{ datapoint: t, seriesIndex:
|
|
214
|
-
)}</div>`, K.value = `<div>${
|
|
213
|
+
{ datapoint: t, seriesIndex: r }
|
|
214
|
+
)}</div>`, K.value = `<div>${o}</div>`;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
const
|
|
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:
|
|
217
|
+
const H = f(() => {
|
|
218
|
+
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => ({
|
|
219
|
+
name: `${l.name} - ${o.name}`,
|
|
220
|
+
color: o.color
|
|
221
|
+
}))), r = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => o.value));
|
|
222
|
+
return { head: t, body: r };
|
|
223
223
|
});
|
|
224
224
|
function Ce(t = null) {
|
|
225
225
|
at(() => {
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
], [
|
|
229
|
-
t ? t(
|
|
226
|
+
const r = H.value.head.map((n, w) => [[
|
|
227
|
+
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(r), o = yt(l);
|
|
229
|
+
t ? t(o) : bt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const U = f(() => {
|
|
233
233
|
const t = [
|
|
234
234
|
e.value.table.columnNames.series,
|
|
235
235
|
e.value.table.columnNames.value
|
|
236
|
-
],
|
|
237
|
-
const X =
|
|
236
|
+
], r = H.value.head.map((n, w) => {
|
|
237
|
+
const X = j({
|
|
238
238
|
p: e.value.style.chart.labels.prefix,
|
|
239
|
-
v:
|
|
239
|
+
v: H.value.body[w],
|
|
240
240
|
s: e.value.style.chart.labels.suffix,
|
|
241
241
|
r: e.value.table.td.roundingValue
|
|
242
242
|
});
|
|
243
243
|
return [
|
|
244
244
|
{
|
|
245
|
-
color:
|
|
246
|
-
name:
|
|
245
|
+
color: n.color,
|
|
246
|
+
name: n.name
|
|
247
247
|
},
|
|
248
248
|
X
|
|
249
249
|
];
|
|
@@ -266,7 +266,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
266
266
|
e.value.table.columnNames.value
|
|
267
267
|
],
|
|
268
268
|
head: t,
|
|
269
|
-
body:
|
|
269
|
+
body: r,
|
|
270
270
|
config: l
|
|
271
271
|
};
|
|
272
272
|
}), N = v(!1);
|
|
@@ -298,37 +298,37 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
298
298
|
toggleLabels: Te,
|
|
299
299
|
toggleTooltip: _e,
|
|
300
300
|
toggleAnnotator: te
|
|
301
|
-
}), (t,
|
|
301
|
+
}), (t, r) => (s(), u("div", {
|
|
302
302
|
ref_key: "stripPlotChart",
|
|
303
|
-
ref:
|
|
303
|
+
ref: W,
|
|
304
304
|
class: R(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
305
|
-
style:
|
|
305
|
+
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
306
|
id: `strip-plot_${q.value}`,
|
|
307
|
-
onMouseenter:
|
|
308
|
-
onMouseleave:
|
|
307
|
+
onMouseenter: r[2] || (r[2] = () => i(he)(!0)),
|
|
308
|
+
onMouseleave: r[3] || (r[3] = () => i(he)(!1))
|
|
309
309
|
}, [
|
|
310
|
-
e.value.userOptions.buttons.annotator ? (
|
|
310
|
+
e.value.userOptions.buttons.annotator ? (s(), A(i(Ge), {
|
|
311
311
|
key: 0,
|
|
312
|
-
svgRef:
|
|
312
|
+
svgRef: i(pe),
|
|
313
313
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
314
314
|
color: e.value.style.chart.color,
|
|
315
315
|
active: B.value,
|
|
316
316
|
onClose: te
|
|
317
317
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
318
|
-
Be.value ? (
|
|
318
|
+
Be.value ? (s(), u("div", {
|
|
319
319
|
key: 1,
|
|
320
320
|
ref_key: "noTitle",
|
|
321
321
|
ref: ie,
|
|
322
322
|
class: "vue-data-ui-no-title-space",
|
|
323
323
|
style: "height:36px; width: 100%;background:transparent"
|
|
324
324
|
}, null, 512)) : c("", !0),
|
|
325
|
-
e.value.style.chart.title.text ? (
|
|
325
|
+
e.value.style.chart.title.text ? (s(), u("div", {
|
|
326
326
|
key: 2,
|
|
327
327
|
ref_key: "chartTitle",
|
|
328
328
|
ref: re,
|
|
329
329
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
330
330
|
}, [
|
|
331
|
-
(
|
|
331
|
+
(s(), A($t, {
|
|
332
332
|
key: `title_${ve.value}`,
|
|
333
333
|
config: {
|
|
334
334
|
title: {
|
|
@@ -342,13 +342,13 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
342
342
|
}
|
|
343
343
|
}, null, 8, ["config"]))
|
|
344
344
|
], 512)) : c("", !0),
|
|
345
|
-
e.value.userOptions.show && T.value && (
|
|
345
|
+
e.value.userOptions.show && T.value && (i(de) || i(Q)) ? (s(), A(i(Ee), {
|
|
346
346
|
ref: "details",
|
|
347
347
|
key: `user_option_${se.value}`,
|
|
348
348
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
349
349
|
color: e.value.style.chart.color,
|
|
350
|
-
isPrinting:
|
|
351
|
-
isImaging:
|
|
350
|
+
isPrinting: i(be),
|
|
351
|
+
isImaging: i(me),
|
|
352
352
|
uid: q.value,
|
|
353
353
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
354
354
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -360,27 +360,27 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
360
360
|
isTooltip: d.value.showTooltip,
|
|
361
361
|
isFullscreen: N.value,
|
|
362
362
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
363
|
-
chartElement:
|
|
363
|
+
chartElement: W.value,
|
|
364
364
|
position: e.value.userOptions.position,
|
|
365
365
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
366
366
|
isAnnotation: B.value,
|
|
367
367
|
callbacks: e.value.userOptions.callbacks,
|
|
368
368
|
onToggleFullscreen: qe,
|
|
369
|
-
onGeneratePdf:
|
|
369
|
+
onGeneratePdf: i(ge),
|
|
370
370
|
onGenerateCsv: Ce,
|
|
371
|
-
onGenerateImage:
|
|
371
|
+
onGenerateImage: i(ke),
|
|
372
372
|
onToggleTable: $e,
|
|
373
373
|
onToggleLabels: Te,
|
|
374
374
|
onToggleTooltip: _e,
|
|
375
375
|
onToggleAnnotator: te,
|
|
376
|
-
style:
|
|
377
|
-
visibility:
|
|
376
|
+
style: Y({
|
|
377
|
+
visibility: i(de) ? i(Q) ? "visible" : "hidden" : "visible"
|
|
378
378
|
})
|
|
379
379
|
}, et({ _: 2 }, [
|
|
380
380
|
t.$slots.menuIcon ? {
|
|
381
381
|
name: "menuIcon",
|
|
382
|
-
fn: y(({ isOpen: l, color:
|
|
383
|
-
p(t.$slots, "menuIcon", F(M({ isOpen: l, color:
|
|
382
|
+
fn: y(({ isOpen: l, color: o }) => [
|
|
383
|
+
p(t.$slots, "menuIcon", F(M({ isOpen: l, color: o })), void 0, !0)
|
|
384
384
|
]),
|
|
385
385
|
key: "0"
|
|
386
386
|
} : void 0,
|
|
@@ -428,30 +428,30 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
428
428
|
} : void 0,
|
|
429
429
|
t.$slots.optionFullscreen ? {
|
|
430
430
|
name: "optionFullscreen",
|
|
431
|
-
fn: y(({ toggleFullscreen: l, isFullscreen:
|
|
432
|
-
p(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen:
|
|
431
|
+
fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
432
|
+
p(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
433
433
|
]),
|
|
434
434
|
key: "7"
|
|
435
435
|
} : void 0,
|
|
436
436
|
t.$slots.optionAnnotator ? {
|
|
437
437
|
name: "optionAnnotator",
|
|
438
|
-
fn: y(({ toggleAnnotator: l, isAnnotator:
|
|
439
|
-
p(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator:
|
|
438
|
+
fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
439
|
+
p(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
440
440
|
]),
|
|
441
441
|
key: "8"
|
|
442
442
|
} : void 0
|
|
443
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 ? (
|
|
444
|
+
T.value ? (s(), u("svg", {
|
|
445
445
|
key: 4,
|
|
446
446
|
ref_key: "svgRef",
|
|
447
447
|
ref: pe,
|
|
448
|
-
xmlns:
|
|
448
|
+
xmlns: i(ct),
|
|
449
449
|
class: R({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
450
|
-
viewBox: `0 0 ${
|
|
451
|
-
style:
|
|
450
|
+
viewBox: `0 0 ${O.value.width <= 0 ? 10 : O.value.width} ${O.value.height <= 0 ? 10 : O.value.height}`,
|
|
451
|
+
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
452
452
|
}, [
|
|
453
|
-
|
|
454
|
-
t.$slots["chart-background"] ? (
|
|
453
|
+
Ae(i(De)),
|
|
454
|
+
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
455
455
|
key: 0,
|
|
456
456
|
x: a.value.left,
|
|
457
457
|
y: a.value.top,
|
|
@@ -462,10 +462,10 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
462
462
|
}
|
|
463
463
|
}, [
|
|
464
464
|
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
|
-
(
|
|
465
|
+
], 8, St)) : c("", !0),
|
|
466
|
+
e.value.style.chart.grid.show ? (s(), u("g", zt, [
|
|
467
|
+
e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g", Pt, [
|
|
468
|
+
(s(!0), u(g, null, $(we.value, (l) => (s(), u("line", {
|
|
469
469
|
x1: l.x1,
|
|
470
470
|
x2: l.x2,
|
|
471
471
|
y1: l.y,
|
|
@@ -476,17 +476,17 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
476
476
|
"stroke-linecap": "round"
|
|
477
477
|
}, null, 8, Ot))), 256))
|
|
478
478
|
])) : c("", !0),
|
|
479
|
-
e.value.style.chart.grid.verticalGrid.show ? (
|
|
480
|
-
(
|
|
481
|
-
x1: a.value.left + (
|
|
482
|
-
x2: a.value.left + (
|
|
479
|
+
e.value.style.chart.grid.verticalGrid.show ? (s(), u("g", Nt, [
|
|
480
|
+
(s(!0), u(g, null, $(x.value, (l, o) => (s(), u("line", {
|
|
481
|
+
x1: a.value.left + (o + 1) * a.value.stripWidth,
|
|
482
|
+
x2: a.value.left + (o + 1) * a.value.stripWidth,
|
|
483
483
|
y1: a.value.top,
|
|
484
484
|
y2: a.value.bottom,
|
|
485
485
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
486
486
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
487
487
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
488
488
|
"stroke-linecap": "round"
|
|
489
|
-
}, null, 8,
|
|
489
|
+
}, null, 8, Ft))), 256))
|
|
490
490
|
])) : c("", !0),
|
|
491
491
|
k("line", {
|
|
492
492
|
x1: a.value.left,
|
|
@@ -496,7 +496,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
496
496
|
stroke: e.value.style.chart.grid.stroke,
|
|
497
497
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
498
498
|
"stroke-linecap": "round"
|
|
499
|
-
}, null, 8,
|
|
499
|
+
}, null, 8, Mt),
|
|
500
500
|
k("line", {
|
|
501
501
|
x1: a.value.left,
|
|
502
502
|
x2: a.value.right,
|
|
@@ -505,48 +505,66 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
505
505
|
stroke: e.value.style.chart.grid.stroke,
|
|
506
506
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
507
507
|
"stroke-linecap": "round"
|
|
508
|
-
}, null, 8,
|
|
508
|
+
}, null, 8, Wt)
|
|
509
509
|
])) : c("", !0),
|
|
510
|
-
e.value.style.chart.labels.yAxisLabels.show ? (
|
|
510
|
+
e.value.style.chart.labels.yAxisLabels.show ? (s(!0), u(g, { key: 2 }, $(we.value, (l, o) => (s(), u("text", {
|
|
511
511
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
512
512
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
513
513
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
514
514
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
515
515
|
"text-anchor": "end"
|
|
516
|
-
},
|
|
516
|
+
}, S(i(oe)(
|
|
517
517
|
e.value.style.chart.labels.formatter,
|
|
518
518
|
l.value,
|
|
519
|
-
|
|
519
|
+
i(j)({
|
|
520
520
|
p: e.value.style.chart.labels.prefix,
|
|
521
521
|
v: l.value,
|
|
522
522
|
s: e.value.style.chart.labels.suffix,
|
|
523
523
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
524
524
|
}),
|
|
525
|
-
{ datapoint: l, seriesIndex:
|
|
525
|
+
{ datapoint: l, seriesIndex: o }
|
|
526
526
|
)), 9, It))), 256)) : c("", !0),
|
|
527
|
-
e.value.style.chart.labels.xAxisLabels.show ? (
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
527
|
+
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 }, $(x.value, (l, o) => (s(), u("g", null, [
|
|
528
|
+
l.name.includes(`
|
|
529
|
+
`) ? (s(), u("text", {
|
|
530
|
+
key: 1,
|
|
531
|
+
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
532
|
+
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
533
|
+
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
534
|
+
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
535
|
+
"text-anchor": "middle",
|
|
536
|
+
innerHTML: i(ht)({
|
|
537
|
+
content: l.name,
|
|
538
|
+
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
539
|
+
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
540
|
+
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
541
|
+
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY
|
|
542
|
+
})
|
|
543
|
+
}, null, 8, Gt)) : (s(), u("text", {
|
|
544
|
+
key: 0,
|
|
545
|
+
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
546
|
+
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
547
|
+
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
548
|
+
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
549
|
+
"text-anchor": "middle"
|
|
550
|
+
}, S(l.name), 9, Dt))
|
|
551
|
+
]))), 256)) : c("", !0),
|
|
552
|
+
e.value.style.chart.labels.axis.yLabel ? (s(), u("text", {
|
|
535
553
|
key: 4,
|
|
536
554
|
fill: e.value.style.chart.labels.axis.color,
|
|
537
555
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
538
556
|
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)`,
|
|
539
557
|
"text-anchor": "middle"
|
|
540
|
-
},
|
|
541
|
-
e.value.style.chart.labels.axis.xLabel ? (
|
|
558
|
+
}, S(e.value.style.chart.labels.axis.yLabel), 9, Rt)) : c("", !0),
|
|
559
|
+
e.value.style.chart.labels.axis.xLabel ? (s(), u("text", {
|
|
542
560
|
key: 5,
|
|
543
561
|
fill: e.value.style.chart.labels.axis.color,
|
|
544
562
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
545
563
|
x: a.value.left + a.value.width / 2,
|
|
546
564
|
y: a.value.absoluteHeight,
|
|
547
565
|
"text-anchor": "middle"
|
|
548
|
-
},
|
|
549
|
-
h.value ? (
|
|
566
|
+
}, S(e.value.style.chart.labels.axis.xLabel), 9, Vt)) : c("", !0),
|
|
567
|
+
h.value ? (s(), u(g, { key: 6 }, [
|
|
550
568
|
k("line", {
|
|
551
569
|
x1: a.value.left,
|
|
552
570
|
x2: a.value.right,
|
|
@@ -555,87 +573,87 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
555
573
|
stroke: h.value.color,
|
|
556
574
|
"stroke-width": 1,
|
|
557
575
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
558
|
-
}, null, 10,
|
|
576
|
+
}, null, 10, Et),
|
|
559
577
|
k("circle", {
|
|
560
578
|
cx: a.value.left,
|
|
561
579
|
cy: h.value.y,
|
|
562
580
|
r: 3,
|
|
563
581
|
fill: h.value.color,
|
|
564
582
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
565
|
-
}, null, 10,
|
|
583
|
+
}, null, 10, Ht),
|
|
566
584
|
k("circle", {
|
|
567
585
|
cx: a.value.right,
|
|
568
586
|
cy: h.value.y,
|
|
569
587
|
r: 3,
|
|
570
588
|
fill: h.value.color,
|
|
571
589
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
572
|
-
}, null, 10,
|
|
590
|
+
}, null, 10, Ut)
|
|
573
591
|
], 64)) : c("", !0),
|
|
574
592
|
k("defs", null, [
|
|
575
|
-
(
|
|
593
|
+
(s(!0), u(g, null, $(x.value, (l) => (s(), u("radialGradient", {
|
|
576
594
|
id: l.id,
|
|
577
595
|
fy: "30%"
|
|
578
596
|
}, [
|
|
579
597
|
k("stop", {
|
|
580
598
|
offset: "10%",
|
|
581
|
-
"stop-color":
|
|
582
|
-
}, null, 8,
|
|
599
|
+
"stop-color": i(dt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
600
|
+
}, null, 8, Xt),
|
|
583
601
|
k("stop", {
|
|
584
602
|
offset: "90%",
|
|
585
|
-
"stop-color":
|
|
586
|
-
}, null, 8,
|
|
603
|
+
"stop-color": i(pt)(l.color, 0.1)
|
|
604
|
+
}, null, 8, Yt),
|
|
587
605
|
k("stop", {
|
|
588
606
|
offset: "100%",
|
|
589
607
|
"stop-color": l.color
|
|
590
|
-
}, null, 8,
|
|
591
|
-
], 8,
|
|
608
|
+
}, null, 8, jt)
|
|
609
|
+
], 8, Bt))), 256))
|
|
592
610
|
]),
|
|
593
|
-
(
|
|
594
|
-
(
|
|
595
|
-
plot: { x:
|
|
596
|
-
radius: h.value && h.value.id ===
|
|
611
|
+
(s(!0), u(g, null, $(Ye.value, (l, o) => (s(), u(g, null, [
|
|
612
|
+
(s(!0), u(g, null, $(l.plots, (n, w) => (s(), A(Tt, tt({
|
|
613
|
+
plot: { x: n.x, y: ne.value ? n.y : a.value.top },
|
|
614
|
+
radius: h.value && h.value.id === n.id ? G.value * 1.5 : G.value,
|
|
597
615
|
shape: e.value.style.chart.plots.shape,
|
|
598
616
|
stroke: e.value.style.chart.plots.stroke,
|
|
599
617
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
600
618
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
601
|
-
onMouseenter: (X) =>
|
|
602
|
-
onMouseleave:
|
|
619
|
+
onMouseenter: (X) => je({ datapoint: n, seriesIndex: w }),
|
|
620
|
+
onMouseleave: r[0] || (r[0] = (X) => {
|
|
603
621
|
J.value = !1, h.value = null;
|
|
604
622
|
}),
|
|
605
|
-
onClick: (X) =>
|
|
606
|
-
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id ===
|
|
607
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
623
|
+
onClick: (X) => Ue("selectDatapoint", n),
|
|
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};${I.value ? `transition-delay:${w * 50}ms` : ""}`,
|
|
625
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && I.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !I.value }
|
|
608
626
|
}, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
609
|
-
d.value.dataLabels.show ? (
|
|
610
|
-
(
|
|
611
|
-
w === l.plots.length - 1 || h.value && h.value.id ===
|
|
627
|
+
d.value.dataLabels.show ? (s(), u("g", qt, [
|
|
628
|
+
(s(!0), u(g, null, $(l.plots, (n, w) => (s(), u(g, null, [
|
|
629
|
+
w === l.plots.length - 1 || h.value && h.value.id === n.id && !d.value.showTooltip ? (s(), u("text", {
|
|
612
630
|
key: 0,
|
|
613
|
-
x:
|
|
614
|
-
y:
|
|
631
|
+
x: n.x,
|
|
632
|
+
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),
|
|
615
633
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
616
634
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
617
635
|
"text-anchor": "middle",
|
|
618
|
-
style:
|
|
619
|
-
},
|
|
636
|
+
style: Y(`opacity:${e.value.useCssAnimation && I.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
637
|
+
}, S(n.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? i(oe)(
|
|
620
638
|
e.value.style.chart.labels.formatter,
|
|
621
|
-
|
|
622
|
-
|
|
639
|
+
n.value,
|
|
640
|
+
i(j)({
|
|
623
641
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
624
|
-
v:
|
|
642
|
+
v: n.value,
|
|
625
643
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
626
644
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
627
645
|
}),
|
|
628
|
-
{ datapoint:
|
|
629
|
-
) : ""), 13,
|
|
646
|
+
{ datapoint: n, seriesIndex: w }
|
|
647
|
+
) : ""), 13, Jt)) : c("", !0)
|
|
630
648
|
], 64))), 256))
|
|
631
649
|
])) : c("", !0)
|
|
632
650
|
], 64))), 256)),
|
|
633
651
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
634
652
|
], 14, At)) : c("", !0),
|
|
635
|
-
t.$slots.watermark ? (
|
|
636
|
-
p(t.$slots, "watermark", F(M({ isPrinting:
|
|
653
|
+
t.$slots.watermark ? (s(), u("div", Kt, [
|
|
654
|
+
p(t.$slots, "watermark", F(M({ isPrinting: i(be) || i(me) })), void 0, !0)
|
|
637
655
|
])) : c("", !0),
|
|
638
|
-
T.value ? c("", !0) : (
|
|
656
|
+
T.value ? c("", !0) : (s(), A(i(Re), {
|
|
639
657
|
key: 6,
|
|
640
658
|
config: {
|
|
641
659
|
type: "stripPlot",
|
|
@@ -647,7 +665,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
647
665
|
}
|
|
648
666
|
}
|
|
649
667
|
}, null, 8, ["config"])),
|
|
650
|
-
t.$slots.source ? (
|
|
668
|
+
t.$slots.source ? (s(), u("div", {
|
|
651
669
|
key: 7,
|
|
652
670
|
ref_key: "source",
|
|
653
671
|
ref: ue,
|
|
@@ -655,7 +673,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
655
673
|
}, [
|
|
656
674
|
p(t.$slots, "source", {}, void 0, !0)
|
|
657
675
|
], 512)) : c("", !0),
|
|
658
|
-
|
|
676
|
+
Ae(i(Ve), {
|
|
659
677
|
show: d.value.showTooltip && J.value,
|
|
660
678
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
661
679
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -666,10 +684,10 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
666
684
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
667
685
|
position: e.value.style.chart.tooltip.position,
|
|
668
686
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
669
|
-
parent:
|
|
687
|
+
parent: W.value,
|
|
670
688
|
content: K.value,
|
|
671
689
|
isFullscreen: N.value,
|
|
672
|
-
isCustom:
|
|
690
|
+
isCustom: i(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
673
691
|
}, {
|
|
674
692
|
"tooltip-before": y(() => [
|
|
675
693
|
p(t.$slots, "tooltip-before", F(M({ ...ee.value })), void 0, !0)
|
|
@@ -679,7 +697,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
679
697
|
]),
|
|
680
698
|
_: 3
|
|
681
699
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
682
|
-
T.value ? (
|
|
700
|
+
T.value ? (s(), A(i(We), {
|
|
683
701
|
key: 8,
|
|
684
702
|
hideDetails: "",
|
|
685
703
|
config: {
|
|
@@ -696,32 +714,32 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
696
714
|
}
|
|
697
715
|
}, {
|
|
698
716
|
content: y(() => [
|
|
699
|
-
(
|
|
717
|
+
(s(), A(i(Ie), {
|
|
700
718
|
key: `table_${ce.value}`,
|
|
701
|
-
colNames:
|
|
702
|
-
head:
|
|
703
|
-
body:
|
|
704
|
-
config:
|
|
719
|
+
colNames: U.value.colNames,
|
|
720
|
+
head: U.value.head,
|
|
721
|
+
body: U.value.body,
|
|
722
|
+
config: U.value.config,
|
|
705
723
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
706
|
-
onClose:
|
|
724
|
+
onClose: r[1] || (r[1] = (l) => d.value.showTable = !1)
|
|
707
725
|
}, {
|
|
708
726
|
th: y(({ th: l }) => [
|
|
709
727
|
k("div", {
|
|
710
728
|
innerHTML: l,
|
|
711
729
|
style: { display: "flex", "align-items": "center" }
|
|
712
|
-
}, null, 8,
|
|
730
|
+
}, null, 8, Qt)
|
|
713
731
|
]),
|
|
714
732
|
td: y(({ td: l }) => [
|
|
715
|
-
lt(
|
|
733
|
+
lt(S(l.name || l), 1)
|
|
716
734
|
]),
|
|
717
735
|
_: 1
|
|
718
736
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
719
737
|
]),
|
|
720
738
|
_: 1
|
|
721
739
|
}, 8, ["config"])) : c("", !0)
|
|
722
|
-
], 46,
|
|
740
|
+
], 46, Lt));
|
|
723
741
|
}
|
|
724
|
-
},
|
|
742
|
+
}, vl = /* @__PURE__ */ _t(Zt, [["__scopeId", "data-v-c60992de"]]);
|
|
725
743
|
export {
|
|
726
|
-
|
|
744
|
+
vl as default
|
|
727
745
|
};
|