vue-data-ui 2.17.0 → 2.17.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 +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
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-
|
|
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-JzUbx__y.js";
|
|
3
3
|
import { t as kt, u as xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ne } from "./useNestedProp-
|
|
5
|
-
import { u as wt } from "./usePrinter-
|
|
4
|
+
import { u as Ne } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as wt } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Tt from "./Title-
|
|
9
|
-
import { _ as _t } from "./Shape-
|
|
10
|
-
import Lt from "./img-
|
|
8
|
+
import Tt from "./Title-BQb7X_OR.js";
|
|
9
|
+
import { _ as _t } from "./Shape-DJKQgAbU.js";
|
|
10
|
+
import Lt from "./img-D0DpKcFX.js";
|
|
11
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"],
|
|
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 = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, el = ["innerHTML"], tl = {
|
|
@@ -30,14 +30,14 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectDatapoint"],
|
|
32
32
|
setup(Me, { expose: Fe, emit: Ie }) {
|
|
33
|
-
const We = A(() => import("./vue-ui-accordion-
|
|
33
|
+
const We = A(() => import("./vue-ui-accordion-CcTUbiHq.js")), De = A(() => import("./DataTable-6BxhjBzt.js")), Ge = A(() => import("./PackageVersion-CIX1W_aa.js")), Re = A(() => import("./PenAndPaper-CqJ4wudB.js")), Ee = A(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Ve = A(() => import("./Tooltip-BTnTpPdO.js")), He = A(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_strip_plot: Ue } = st(), b = Me, Be = Ie, _ = f({
|
|
34
34
|
get() {
|
|
35
35
|
return !!b.dataset && b.dataset.length;
|
|
36
36
|
},
|
|
37
37
|
set(t) {
|
|
38
38
|
return t;
|
|
39
39
|
}
|
|
40
|
-
}), 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({
|
|
41
41
|
get: () => fe(),
|
|
42
42
|
set: (t) => t
|
|
43
43
|
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = Ct({ config: e.value }), { svgRef: pe } = $t({ config: e.value.style.chart.title });
|
|
@@ -57,7 +57,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
57
57
|
Qe(() => b.config, (t) => {
|
|
58
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;
|
|
59
59
|
}, { deep: !0 });
|
|
60
|
-
const
|
|
60
|
+
const $ = Ae(null), P = Ae(null);
|
|
61
61
|
Ze(() => {
|
|
62
62
|
ye();
|
|
63
63
|
});
|
|
@@ -70,7 +70,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
70
70
|
datasetObject: t,
|
|
71
71
|
requiredAttributes: ["name", "plots"]
|
|
72
72
|
}).forEach((l) => {
|
|
73
|
-
|
|
73
|
+
_.value = !1, ae({
|
|
74
74
|
componentName: "VueUiStripPlot",
|
|
75
75
|
type: "datasetSerieAttribute",
|
|
76
76
|
property: l,
|
|
@@ -80,11 +80,11 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
80
80
|
ze({
|
|
81
81
|
datasetObject: l,
|
|
82
82
|
requiredAttributes: ["name", "value"]
|
|
83
|
-
}).forEach((
|
|
84
|
-
|
|
83
|
+
}).forEach((i) => {
|
|
84
|
+
_.value = !1, ae({
|
|
85
85
|
componentName: "VueUiStripPlot",
|
|
86
86
|
type: "datasetSerieAttribute",
|
|
87
|
-
property:
|
|
87
|
+
property: i,
|
|
88
88
|
index: `${o},${s}`
|
|
89
89
|
});
|
|
90
90
|
});
|
|
@@ -92,13 +92,13 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
92
92
|
}), e.value.responsive) {
|
|
93
93
|
const t = kt(() => {
|
|
94
94
|
const { width: o, height: l } = xt({
|
|
95
|
-
chart:
|
|
95
|
+
chart: C.value,
|
|
96
96
|
title: e.value.style.chart.title.text ? re.value : null,
|
|
97
97
|
source: ue.value,
|
|
98
98
|
noTitle: ie.value
|
|
99
99
|
});
|
|
100
100
|
requestAnimationFrame(() => {
|
|
101
|
-
|
|
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
102
|
relator: Math.min(l, o),
|
|
103
103
|
adjuster: 600,
|
|
104
104
|
source: e.value.style.chart.plots.radius,
|
|
@@ -107,14 +107,14 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
107
107
|
}) : G.value = e.value.style.chart.plots.radius;
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
|
|
111
111
|
}
|
|
112
112
|
ne.value = !0, setTimeout(() => {
|
|
113
113
|
W.value = !1;
|
|
114
114
|
}, Ye.value * 50);
|
|
115
115
|
}
|
|
116
116
|
et(() => {
|
|
117
|
-
|
|
117
|
+
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect());
|
|
118
118
|
});
|
|
119
119
|
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = wt({
|
|
120
120
|
elementId: `strip-plot_${q.value}`,
|
|
@@ -131,7 +131,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
131
131
|
bottom: e.value.style.chart.padding.bottom,
|
|
132
132
|
left: e.value.style.chart.padding.left,
|
|
133
133
|
right: e.value.style.chart.padding.right
|
|
134
|
-
}), D = v(e.value.style.chart.stripWidth),
|
|
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({
|
|
135
135
|
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
136
136
|
height: e.value.style.chart.height
|
|
137
137
|
}), a = f(() => {
|
|
@@ -140,14 +140,14 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
140
140
|
left: m.value.left,
|
|
141
141
|
right: t - m.value.right,
|
|
142
142
|
top: m.value.top,
|
|
143
|
-
bottom:
|
|
143
|
+
bottom: E.value - m.value.bottom,
|
|
144
144
|
width: D.value * b.dataset.length,
|
|
145
|
-
height:
|
|
145
|
+
height: E.value - m.value.top - m.value.bottom,
|
|
146
146
|
stripWidth: D.value,
|
|
147
|
-
absoluteHeight:
|
|
147
|
+
absoluteHeight: E.value,
|
|
148
148
|
absoluteWidth: t
|
|
149
149
|
};
|
|
150
|
-
}), V = f(() =>
|
|
150
|
+
}), V = f(() => _.value ? b.dataset.map((t, o) => {
|
|
151
151
|
const l = le();
|
|
152
152
|
return {
|
|
153
153
|
...t,
|
|
@@ -159,21 +159,21 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
159
159
|
parentId: l,
|
|
160
160
|
color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
|
|
161
161
|
id: le()
|
|
162
|
-
})).sort((s,
|
|
162
|
+
})).sort((s, i) => s.value - i.value)
|
|
163
163
|
};
|
|
164
|
-
}) : null),
|
|
164
|
+
}) : null), w = f(() => (V.value || []).map((t, o) => ({
|
|
165
165
|
...t,
|
|
166
166
|
plots: t.plots.map((l) => ({
|
|
167
167
|
...l,
|
|
168
168
|
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
169
169
|
}))
|
|
170
|
-
}))), Ye = f(() => Math.max(...
|
|
171
|
-
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));
|
|
172
172
|
return {
|
|
173
173
|
max: Math.max(...t),
|
|
174
174
|
min: Math.min(...t)
|
|
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(() => (
|
|
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) => ({
|
|
177
177
|
...t,
|
|
178
178
|
plots: t.plots.map((l) => ({
|
|
179
179
|
...l,
|
|
@@ -216,17 +216,17 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
const H = f(() => {
|
|
219
|
-
const t =
|
|
219
|
+
const t = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => ({
|
|
220
220
|
name: `${l.name} - ${s.name}`,
|
|
221
221
|
color: s.color
|
|
222
|
-
}))), o =
|
|
222
|
+
}))), o = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => s.value));
|
|
223
223
|
return { head: t, body: o };
|
|
224
224
|
});
|
|
225
225
|
function Ce(t = null) {
|
|
226
226
|
ot(() => {
|
|
227
|
-
const o = H.value.head.map((
|
|
228
|
-
|
|
229
|
-
], [H.value.body[
|
|
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
230
|
t ? t(s) : mt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
231
231
|
});
|
|
232
232
|
}
|
|
@@ -234,17 +234,17 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
234
234
|
const t = [
|
|
235
235
|
e.value.table.columnNames.series,
|
|
236
236
|
e.value.table.columnNames.value
|
|
237
|
-
], o = H.value.head.map((
|
|
237
|
+
], o = H.value.head.map((i, g) => {
|
|
238
238
|
const X = j({
|
|
239
239
|
p: e.value.style.chart.labels.prefix,
|
|
240
|
-
v: H.value.body[
|
|
240
|
+
v: H.value.body[g],
|
|
241
241
|
s: e.value.style.chart.labels.suffix,
|
|
242
242
|
r: e.value.table.td.roundingValue
|
|
243
243
|
});
|
|
244
244
|
return [
|
|
245
245
|
{
|
|
246
|
-
color:
|
|
247
|
-
name:
|
|
246
|
+
color: i.color,
|
|
247
|
+
name: i.name
|
|
248
248
|
},
|
|
249
249
|
X
|
|
250
250
|
];
|
|
@@ -275,7 +275,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
275
275
|
M.value = t, se.value += 1;
|
|
276
276
|
}
|
|
277
277
|
function Je() {
|
|
278
|
-
return
|
|
278
|
+
return w.value;
|
|
279
279
|
}
|
|
280
280
|
function Te() {
|
|
281
281
|
d.value.showTable = !d.value.showTable;
|
|
@@ -291,9 +291,16 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
291
291
|
B.value = !B.value;
|
|
292
292
|
}
|
|
293
293
|
async function Ke({ scale: t = 2 } = {}) {
|
|
294
|
-
if (!
|
|
295
|
-
const {
|
|
296
|
-
return {
|
|
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
|
+
};
|
|
297
304
|
}
|
|
298
305
|
return Fe({
|
|
299
306
|
getData: Je,
|
|
@@ -308,16 +315,16 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
308
315
|
toggleFullscreen: $e
|
|
309
316
|
}), (t, o) => (r(), u("div", {
|
|
310
317
|
ref_key: "stripPlotChart",
|
|
311
|
-
ref:
|
|
312
|
-
class:
|
|
318
|
+
ref: C,
|
|
319
|
+
class: R(`vue-ui-strip-plot ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
313
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%" : ""}`),
|
|
314
321
|
id: `strip-plot_${q.value}`,
|
|
315
|
-
onMouseenter: o[2] || (o[2] = () =>
|
|
316
|
-
onMouseleave: o[3] || (o[3] = () =>
|
|
322
|
+
onMouseenter: o[2] || (o[2] = () => n(he)(!0)),
|
|
323
|
+
onMouseleave: o[3] || (o[3] = () => n(he)(!1))
|
|
317
324
|
}, [
|
|
318
|
-
e.value.userOptions.buttons.annotator ? (r(), S(
|
|
325
|
+
e.value.userOptions.buttons.annotator ? (r(), S(n(Re), {
|
|
319
326
|
key: 0,
|
|
320
|
-
svgRef:
|
|
327
|
+
svgRef: n(pe),
|
|
321
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
322
329
|
color: e.value.style.chart.color,
|
|
323
330
|
active: B.value,
|
|
@@ -350,13 +357,13 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
350
357
|
}
|
|
351
358
|
}, null, 8, ["config"]))
|
|
352
359
|
], 512)) : c("", !0),
|
|
353
|
-
e.value.userOptions.show &&
|
|
360
|
+
e.value.userOptions.show && _.value && (n(de) || n(Q)) ? (r(), S(n(He), {
|
|
354
361
|
ref: "details",
|
|
355
362
|
key: `user_option_${se.value}`,
|
|
356
363
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
357
364
|
color: e.value.style.chart.color,
|
|
358
|
-
isPrinting:
|
|
359
|
-
isImaging:
|
|
365
|
+
isPrinting: n(be),
|
|
366
|
+
isImaging: n(me),
|
|
360
367
|
uid: q.value,
|
|
361
368
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
362
369
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -368,22 +375,22 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
368
375
|
isTooltip: d.value.showTooltip,
|
|
369
376
|
isFullscreen: M.value,
|
|
370
377
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
371
|
-
chartElement:
|
|
378
|
+
chartElement: C.value,
|
|
372
379
|
position: e.value.userOptions.position,
|
|
373
380
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
374
381
|
isAnnotation: B.value,
|
|
375
382
|
callbacks: e.value.userOptions.callbacks,
|
|
376
383
|
printScale: e.value.userOptions.print.scale,
|
|
377
384
|
onToggleFullscreen: $e,
|
|
378
|
-
onGeneratePdf:
|
|
385
|
+
onGeneratePdf: n(ge),
|
|
379
386
|
onGenerateCsv: Ce,
|
|
380
|
-
onGenerateImage:
|
|
387
|
+
onGenerateImage: n(ke),
|
|
381
388
|
onToggleTable: Te,
|
|
382
389
|
onToggleLabels: _e,
|
|
383
390
|
onToggleTooltip: Le,
|
|
384
391
|
onToggleAnnotator: te,
|
|
385
392
|
style: Y({
|
|
386
|
-
visibility:
|
|
393
|
+
visibility: n(de) ? n(Q) ? "visible" : "hidden" : "visible"
|
|
387
394
|
})
|
|
388
395
|
}, tt({ _: 2 }, [
|
|
389
396
|
t.$slots.menuIcon ? {
|
|
@@ -450,16 +457,16 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
450
457
|
key: "8"
|
|
451
458
|
} : void 0
|
|
452
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),
|
|
453
|
-
|
|
460
|
+
_.value ? (r(), u("svg", {
|
|
454
461
|
key: 4,
|
|
455
462
|
ref_key: "svgRef",
|
|
456
463
|
ref: pe,
|
|
457
|
-
xmlns:
|
|
458
|
-
class:
|
|
464
|
+
xmlns: n(ht),
|
|
465
|
+
class: R({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
459
466
|
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
460
467
|
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
461
468
|
}, [
|
|
462
|
-
Se(
|
|
469
|
+
Se(n(Ge)),
|
|
463
470
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
464
471
|
key: 0,
|
|
465
472
|
x: a.value.left,
|
|
@@ -474,7 +481,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
474
481
|
], 8, Ot)) : c("", !0),
|
|
475
482
|
e.value.style.chart.grid.show ? (r(), u("g", Pt, [
|
|
476
483
|
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", Nt, [
|
|
477
|
-
(r(!0), u(
|
|
484
|
+
(r(!0), u(k, null, T(we.value, (l) => (r(), u("line", {
|
|
478
485
|
x1: l.x1,
|
|
479
486
|
x2: l.x2,
|
|
480
487
|
y1: l.y,
|
|
@@ -486,7 +493,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
486
493
|
}, null, 8, Mt))), 256))
|
|
487
494
|
])) : c("", !0),
|
|
488
495
|
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Ft, [
|
|
489
|
-
(r(!0), u(
|
|
496
|
+
(r(!0), u(k, null, T(w.value, (l, s) => (r(), u("line", {
|
|
490
497
|
x1: a.value.left + (s + 1) * a.value.stripWidth,
|
|
491
498
|
x2: a.value.left + (s + 1) * a.value.stripWidth,
|
|
492
499
|
y1: a.value.top,
|
|
@@ -497,7 +504,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
497
504
|
"stroke-linecap": "round"
|
|
498
505
|
}, null, 8, It))), 256))
|
|
499
506
|
])) : c("", !0),
|
|
500
|
-
|
|
507
|
+
x("line", {
|
|
501
508
|
x1: a.value.left,
|
|
502
509
|
x2: a.value.left,
|
|
503
510
|
y1: a.value.top,
|
|
@@ -506,7 +513,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
506
513
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
507
514
|
"stroke-linecap": "round"
|
|
508
515
|
}, null, 8, Wt),
|
|
509
|
-
|
|
516
|
+
x("line", {
|
|
510
517
|
x1: a.value.left,
|
|
511
518
|
x2: a.value.right,
|
|
512
519
|
y1: a.value.bottom,
|
|
@@ -516,16 +523,16 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
516
523
|
"stroke-linecap": "round"
|
|
517
524
|
}, null, 8, Dt)
|
|
518
525
|
])) : c("", !0),
|
|
519
|
-
e.value.style.chart.labels.yAxisLabels.show ? (r(!0), u(
|
|
526
|
+
e.value.style.chart.labels.yAxisLabels.show ? (r(!0), u(k, { key: 2 }, T(we.value, (l, s) => (r(), u("text", {
|
|
520
527
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
521
528
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
522
529
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
523
530
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
524
531
|
"text-anchor": "end"
|
|
525
|
-
}, z(
|
|
532
|
+
}, z(n(oe)(
|
|
526
533
|
e.value.style.chart.labels.formatter,
|
|
527
534
|
l.value,
|
|
528
|
-
|
|
535
|
+
n(j)({
|
|
529
536
|
p: e.value.style.chart.labels.prefix,
|
|
530
537
|
v: l.value,
|
|
531
538
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -533,7 +540,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
533
540
|
}),
|
|
534
541
|
{ datapoint: l, seriesIndex: s }
|
|
535
542
|
)), 9, Gt))), 256)) : c("", !0),
|
|
536
|
-
e.value.style.chart.labels.xAxisLabels.show ? (r(!0), u(
|
|
543
|
+
e.value.style.chart.labels.xAxisLabels.show ? (r(!0), u(k, { key: 3 }, T(w.value, (l, s) => (r(), u("g", null, [
|
|
537
544
|
String(l.name).includes(`
|
|
538
545
|
`) ? (r(), u("text", {
|
|
539
546
|
key: 1,
|
|
@@ -542,21 +549,21 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
542
549
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
543
550
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
544
551
|
"text-anchor": "middle",
|
|
545
|
-
innerHTML:
|
|
552
|
+
innerHTML: n(dt)({
|
|
546
553
|
content: String(l.name),
|
|
547
554
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
548
555
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
549
556
|
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
550
557
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY
|
|
551
558
|
})
|
|
552
|
-
}, null, 8,
|
|
559
|
+
}, null, 8, Et)) : (r(), u("text", {
|
|
553
560
|
key: 0,
|
|
554
561
|
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
555
562
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
556
563
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
557
564
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
558
565
|
"text-anchor": "middle"
|
|
559
|
-
}, z(l.name), 9,
|
|
566
|
+
}, z(l.name), 9, Rt))
|
|
560
567
|
]))), 256)) : c("", !0),
|
|
561
568
|
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
562
569
|
key: 4,
|
|
@@ -573,86 +580,86 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
573
580
|
y: a.value.absoluteHeight,
|
|
574
581
|
"text-anchor": "middle"
|
|
575
582
|
}, z(e.value.style.chart.labels.axis.xLabel), 9, Ht)) : c("", !0),
|
|
576
|
-
h.value ? (r(), u(
|
|
577
|
-
|
|
583
|
+
h.value ? (r(), u(k, { key: 6 }, [
|
|
584
|
+
x("line", {
|
|
578
585
|
x1: a.value.left,
|
|
579
586
|
x2: a.value.right,
|
|
580
587
|
y1: h.value.y,
|
|
581
588
|
y2: h.value.y,
|
|
582
589
|
stroke: h.value.color,
|
|
583
590
|
"stroke-width": 1,
|
|
584
|
-
class:
|
|
591
|
+
class: R({ "select-circle": e.value.useCssAnimation })
|
|
585
592
|
}, null, 10, Ut),
|
|
586
|
-
|
|
593
|
+
x("circle", {
|
|
587
594
|
cx: a.value.left,
|
|
588
595
|
cy: h.value.y,
|
|
589
596
|
r: 3,
|
|
590
597
|
fill: h.value.color,
|
|
591
|
-
class:
|
|
598
|
+
class: R({ "select-circle": e.value.useCssAnimation })
|
|
592
599
|
}, null, 10, Bt),
|
|
593
|
-
|
|
600
|
+
x("circle", {
|
|
594
601
|
cx: a.value.right,
|
|
595
602
|
cy: h.value.y,
|
|
596
603
|
r: 3,
|
|
597
604
|
fill: h.value.color,
|
|
598
|
-
class:
|
|
605
|
+
class: R({ "select-circle": e.value.useCssAnimation })
|
|
599
606
|
}, null, 10, Xt)
|
|
600
607
|
], 64)) : c("", !0),
|
|
601
|
-
|
|
602
|
-
(r(!0), u(
|
|
608
|
+
x("defs", null, [
|
|
609
|
+
(r(!0), u(k, null, T(w.value, (l) => (r(), u("radialGradient", {
|
|
603
610
|
id: l.id,
|
|
604
611
|
fy: "30%"
|
|
605
612
|
}, [
|
|
606
|
-
|
|
613
|
+
x("stop", {
|
|
607
614
|
offset: "10%",
|
|
608
|
-
"stop-color":
|
|
615
|
+
"stop-color": n(pt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
609
616
|
}, null, 8, jt),
|
|
610
|
-
|
|
617
|
+
x("stop", {
|
|
611
618
|
offset: "90%",
|
|
612
|
-
"stop-color":
|
|
619
|
+
"stop-color": n(ft)(l.color, 0.1)
|
|
613
620
|
}, null, 8, qt),
|
|
614
|
-
|
|
621
|
+
x("stop", {
|
|
615
622
|
offset: "100%",
|
|
616
623
|
"stop-color": l.color
|
|
617
624
|
}, null, 8, Jt)
|
|
618
625
|
], 8, Yt))), 256))
|
|
619
626
|
]),
|
|
620
|
-
(r(!0), u(
|
|
621
|
-
(r(!0), u(
|
|
622
|
-
plot: { x:
|
|
623
|
-
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,
|
|
624
631
|
shape: e.value.style.chart.plots.shape,
|
|
625
632
|
stroke: e.value.style.chart.plots.stroke,
|
|
626
633
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
627
634
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
628
|
-
onMouseenter: (X) => qe({ datapoint:
|
|
635
|
+
onMouseenter: (X) => qe({ datapoint: i, seriesIndex: g }),
|
|
629
636
|
onMouseleave: o[0] || (o[0] = (X) => {
|
|
630
637
|
J.value = !1, h.value = null;
|
|
631
638
|
}),
|
|
632
|
-
onClick: (X) => Be("selectDatapoint",
|
|
633
|
-
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id ===
|
|
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` : ""}`,
|
|
634
641
|
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
|
|
635
642
|
}, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
636
643
|
d.value.dataLabels.show ? (r(), u("g", Kt, [
|
|
637
|
-
(r(!0), u(
|
|
638
|
-
|
|
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", {
|
|
639
646
|
key: 0,
|
|
640
|
-
x:
|
|
641
|
-
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),
|
|
642
649
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
643
650
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
644
651
|
"text-anchor": "middle",
|
|
645
652
|
style: Y(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
646
|
-
}, z(
|
|
653
|
+
}, z(i.name) + " " + z(e.value.style.chart.labels.bestPlotLabel.showValue ? n(oe)(
|
|
647
654
|
e.value.style.chart.labels.formatter,
|
|
648
|
-
|
|
649
|
-
|
|
655
|
+
i.value,
|
|
656
|
+
n(j)({
|
|
650
657
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
651
|
-
v:
|
|
658
|
+
v: i.value,
|
|
652
659
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
653
660
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
654
661
|
}),
|
|
655
|
-
{ datapoint:
|
|
662
|
+
{ datapoint: i, seriesIndex: g }
|
|
656
663
|
) : ""), 13, Qt)) : c("", !0)
|
|
657
664
|
], 64))), 256))
|
|
658
665
|
])) : c("", !0)
|
|
@@ -660,9 +667,9 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
660
667
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
661
668
|
], 14, zt)) : c("", !0),
|
|
662
669
|
t.$slots.watermark ? (r(), u("div", Zt, [
|
|
663
|
-
p(t.$slots, "watermark", F(I({ isPrinting:
|
|
670
|
+
p(t.$slots, "watermark", F(I({ isPrinting: n(be) || n(me) })), void 0, !0)
|
|
664
671
|
])) : c("", !0),
|
|
665
|
-
|
|
672
|
+
_.value ? c("", !0) : (r(), S(n(Ee), {
|
|
666
673
|
key: 6,
|
|
667
674
|
config: {
|
|
668
675
|
type: "stripPlot",
|
|
@@ -682,7 +689,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
682
689
|
}, [
|
|
683
690
|
p(t.$slots, "source", {}, void 0, !0)
|
|
684
691
|
], 512)) : c("", !0),
|
|
685
|
-
Se(
|
|
692
|
+
Se(n(Ve), {
|
|
686
693
|
show: d.value.showTooltip && J.value,
|
|
687
694
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
688
695
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -693,10 +700,10 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
693
700
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
694
701
|
position: e.value.style.chart.tooltip.position,
|
|
695
702
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
696
|
-
parent:
|
|
703
|
+
parent: C.value,
|
|
697
704
|
content: K.value,
|
|
698
705
|
isFullscreen: M.value,
|
|
699
|
-
isCustom:
|
|
706
|
+
isCustom: n(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
700
707
|
}, {
|
|
701
708
|
"tooltip-before": y(() => [
|
|
702
709
|
p(t.$slots, "tooltip-before", F(I({ ...ee.value })), void 0, !0)
|
|
@@ -706,7 +713,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
706
713
|
]),
|
|
707
714
|
_: 3
|
|
708
715
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
709
|
-
|
|
716
|
+
_.value ? (r(), S(n(We), {
|
|
710
717
|
key: 8,
|
|
711
718
|
hideDetails: "",
|
|
712
719
|
config: {
|
|
@@ -723,7 +730,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
723
730
|
}
|
|
724
731
|
}, {
|
|
725
732
|
content: y(() => [
|
|
726
|
-
(r(), S(
|
|
733
|
+
(r(), S(n(De), {
|
|
727
734
|
key: `table_${ce.value}`,
|
|
728
735
|
colNames: U.value.colNames,
|
|
729
736
|
head: U.value.head,
|
|
@@ -733,7 +740,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
733
740
|
onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
|
|
734
741
|
}, {
|
|
735
742
|
th: y(({ th: l }) => [
|
|
736
|
-
|
|
743
|
+
x("div", {
|
|
737
744
|
innerHTML: l,
|
|
738
745
|
style: { display: "flex", "align-items": "center" }
|
|
739
746
|
}, null, 8, el)
|
|
@@ -748,7 +755,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
748
755
|
}, 8, ["config"])) : c("", !0)
|
|
749
756
|
], 46, St));
|
|
750
757
|
}
|
|
751
|
-
}, dl = /* @__PURE__ */ At(tl, [["__scopeId", "data-v-
|
|
758
|
+
}, dl = /* @__PURE__ */ At(tl, [["__scopeId", "data-v-70b7a65c"]]);
|
|
752
759
|
export {
|
|
753
760
|
dl as default
|
|
754
761
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, F as J, u as K, p as Z } from "./index-
|
|
2
|
-
import q from "./vue-ui-xy-
|
|
3
|
-
import Q from "./vue-ui-donut-
|
|
1
|
+
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, F as J, u as K, p as Z } from "./index-JzUbx__y.js";
|
|
2
|
+
import q from "./vue-ui-xy-JjA1CMAo.js";
|
|
3
|
+
import Q from "./vue-ui-donut-LZR-vpdS.js";
|
|
4
4
|
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as a, createCommentVNode as b, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
|
|
5
5
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const se = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as r, openBlock as n, unref as i, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as u, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
|
|
2
|
-
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me, F as fe, P as he, q as ge, r as be } from "./index-
|
|
3
|
-
import { u as H } from "./useNestedProp-
|
|
4
|
-
import { u as ye } from "./usePrinter-
|
|
2
|
+
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me, F as fe, P as he, q as ge, r as be } from "./index-JzUbx__y.js";
|
|
3
|
+
import { u as H } from "./useNestedProp-D_jd2dz9.js";
|
|
4
|
+
import { u as ye } from "./usePrinter-CsyliflB.js";
|
|
5
5
|
import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { _ as ke } from "./Shape-
|
|
6
|
+
import { _ as ke } from "./Shape-DJKQgAbU.js";
|
|
7
7
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], Fe = {
|
|
9
9
|
key: 0,
|
|
@@ -45,7 +45,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
45
45
|
"8f8e7142": ee.value,
|
|
46
46
|
cb3b028c: j.value
|
|
47
47
|
}));
|
|
48
|
-
const X = oe(() => import("./UserOptions-
|
|
48
|
+
const X = oe(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), d = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
|
|
49
49
|
z(() => {
|
|
50
50
|
q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
51
51
|
});
|