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,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as N, computed as x, ref as h, watch as ot, shallowRef as Ie, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as z, normalizeClass as
|
|
2
|
-
import { u as rt, c as ae, t as ct, p as G, a as vt, o as dt, e as Ne, g as ht, b as pt, d as
|
|
1
|
+
import { defineAsyncComponent as N, computed as x, ref as h, watch as ot, shallowRef as Ie, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as z, normalizeClass as W, createBlock as I, createCommentVNode as m, createElementVNode as E, createVNode as _e, createSlots as it, withCtx as w, renderSlot as g, normalizeProps as B, guardReactiveProps as U, Fragment as C, renderList as _, toDisplayString as V, createTextVNode as ut } from "vue";
|
|
2
|
+
import { u as rt, c as ae, t as ct, p as G, a as vt, o as dt, e as Ne, g as ht, b as pt, d as yt, D as mt, U as ft, V as gt, W as bt, X as xt, I as kt, x as Pe, E as Y, q as wt, r as Ct, i as Oe, f as Le, y as $t } from "./index-JzUbx__y.js";
|
|
3
3
|
import { t as At, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as De } from "./useNestedProp-
|
|
5
|
-
import { u as Tt } from "./usePrinter-
|
|
4
|
+
import { u as De } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as Tt } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ft } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import St from "./Title-
|
|
9
|
-
import It from "./Legend-
|
|
10
|
-
import { _ as _t } from "./Shape-
|
|
11
|
-
import Nt from "./img-
|
|
8
|
+
import St from "./Title-BQb7X_OR.js";
|
|
9
|
+
import It from "./Legend-1R-B-7st.js";
|
|
10
|
+
import { _ as _t } from "./Shape-DJKQgAbU.js";
|
|
11
|
+
import Nt from "./img-D0DpKcFX.js";
|
|
12
12
|
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"],
|
|
13
|
+
const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"], Rt = { style: { "pointer-events": "none" } }, Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x", "y", "fill", "font-size", "font-weight"], Ut = ["x", "y", "fill", "font-size", "font-weight", "innerHTML"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x", "y", "fill", "font-size", "font-weight"], Ht = { key: 0 }, jt = ["x", "y", "font-size", "fill"], Xt = ["width", "x", "y"], Gt = { style: { width: "100%" } }, Yt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], qt = ["d", "stroke", "stroke-width", "onMouseenter"], Jt = ["d", "onMouseenter"], Kt = {
|
|
14
14
|
key: 5,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
16
|
}, Qt = ["onClick"], Zt = ["innerHTML"], ea = {
|
|
@@ -30,23 +30,23 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
33
|
+
setup(Re, { expose: Ee, emit: Be }) {
|
|
34
|
+
const Ue = N(() => import("./vue-ui-accordion-CcTUbiHq.js")), Ve = N(() => import("./DataTable-6BxhjBzt.js")), We = N(() => import("./PackageVersion-CIX1W_aa.js")), He = N(() => import("./PenAndPaper-CqJ4wudB.js")), je = N(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Xe = N(() => import("./Tooltip-BTnTpPdO.js")), Ge = N(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_parallel_coordinate_plot: Ye } = rt(), T = Re, P = x({
|
|
35
35
|
get() {
|
|
36
36
|
return !!T.dataset && T.dataset.length;
|
|
37
37
|
},
|
|
38
38
|
set(t) {
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
|
-
}), le = h(0),
|
|
41
|
+
}), le = h(0), M = h(null), oe = h(null), se = h(null), ne = h(null), ie = h(null), ue = h(0), re = h(0), ce = h(0), q = h(ae()), O = h(!1);
|
|
42
42
|
function ve(t) {
|
|
43
43
|
O.value = t, le.value += 1;
|
|
44
44
|
}
|
|
45
45
|
const e = x({
|
|
46
|
-
get: () =>
|
|
46
|
+
get: () => ye(),
|
|
47
47
|
set: (t) => t
|
|
48
48
|
}), { userOptionsVisible: J, setUserOptionsVisibility: de, keepUserOptionState: he } = Mt({ config: e.value }), { svgRef: pe } = Ft({ config: e.value.style.chart.title });
|
|
49
|
-
function
|
|
49
|
+
function ye() {
|
|
50
50
|
const t = De({
|
|
51
51
|
userConfig: T.config,
|
|
52
52
|
defaultConfig: Ye
|
|
@@ -60,13 +60,13 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
60
60
|
} : t;
|
|
61
61
|
}
|
|
62
62
|
ot(() => T.config, (t) => {
|
|
63
|
-
e.value =
|
|
63
|
+
e.value = ye(), J.value = !e.value.userOptions.showOnChartHover, me(), ue.value += 1, ce.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
64
64
|
}, { deep: !0 });
|
|
65
|
-
const
|
|
65
|
+
const F = Ie(null), L = Ie(null);
|
|
66
66
|
st(() => {
|
|
67
|
-
|
|
67
|
+
me();
|
|
68
68
|
});
|
|
69
|
-
function
|
|
69
|
+
function me() {
|
|
70
70
|
if (dt(T.dataset) ? Ne({
|
|
71
71
|
componentName: "VueUiParallelCoordinatePlot",
|
|
72
72
|
type: "dataset"
|
|
@@ -85,7 +85,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
85
85
|
}), e.value.responsive) {
|
|
86
86
|
const t = At(() => {
|
|
87
87
|
const { width: l, height: a } = zt({
|
|
88
|
-
chart:
|
|
88
|
+
chart: M.value,
|
|
89
89
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
90
90
|
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
91
91
|
source: ne.value,
|
|
@@ -119,11 +119,11 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
119
119
|
})) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
F.value && (L.value && F.value.unobserve(L.value), F.value.disconnect()), F.value = new ResizeObserver(t), L.value = M.value.parentNode, F.value.observe(L.value);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
nt(() => {
|
|
126
|
-
|
|
126
|
+
F.value && (L.value && F.value.unobserve(L.value), F.value.disconnect());
|
|
127
127
|
});
|
|
128
128
|
const { isPrinting: fe, isImaging: ge, generatePdf: be, generateImage: xe } = Tt({
|
|
129
129
|
elementId: `pcp_${q.value}`,
|
|
@@ -160,8 +160,8 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
160
160
|
function ke(t) {
|
|
161
161
|
$.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
const a =
|
|
163
|
+
const S = x(() => T.dataset.map((t, l) => {
|
|
164
|
+
const a = yt(t.color) || Je.value[l] || G[l] || G[l % G.length];
|
|
165
165
|
return {
|
|
166
166
|
...t,
|
|
167
167
|
series: t.series.map((o) => ({
|
|
@@ -174,7 +174,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
174
174
|
id: ae(),
|
|
175
175
|
shape: t.shape || "circle"
|
|
176
176
|
};
|
|
177
|
-
})), Ke = x(() =>
|
|
177
|
+
})), Ke = x(() => S.value.map((t) => ({
|
|
178
178
|
...t,
|
|
179
179
|
opacity: $.value.includes(t.id) ? 0.5 : 1,
|
|
180
180
|
segregate: () => ke(t.id),
|
|
@@ -187,16 +187,16 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
187
187
|
paddingBottom: 12,
|
|
188
188
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
189
189
|
})), we = x(() => Math.max(
|
|
190
|
-
...
|
|
191
|
-
)), k = x(() => r.value.width / we.value), K = x(() =>
|
|
190
|
+
...S.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
191
|
+
)), k = x(() => r.value.width / we.value), K = x(() => S.value.filter((t) => !$.value.includes(t.id))), b = x(() => {
|
|
192
192
|
let t = [];
|
|
193
193
|
for (let l = 0; l < we.value; l += 1) {
|
|
194
|
-
const a = Math.min(...K.value.flatMap((
|
|
195
|
-
const at = v.min < 0 ?
|
|
194
|
+
const a = Math.min(...K.value.flatMap((y) => y.series.map((X) => X.values[l] || 0) || 0)), o = Math.max(...K.value.flatMap((y) => y.series.map((X) => X.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, v = mt(n, s, e.value.style.chart.yAxis.scaleTicks), A = v.ticks.map((y, X) => {
|
|
195
|
+
const at = v.min < 0 ? y + Math.abs(v.min) : y - Math.abs(v.min), lt = v.min < 0 ? v.max + Math.abs(v.min) : v.max - Math.abs(v.min);
|
|
196
196
|
return {
|
|
197
197
|
y: r.value.bottom - r.value.height * (at / lt),
|
|
198
198
|
x: r.value.left + k.value * l + k.value / 2,
|
|
199
|
-
value:
|
|
199
|
+
value: y
|
|
200
200
|
};
|
|
201
201
|
});
|
|
202
202
|
t.push({
|
|
@@ -252,46 +252,46 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
252
252
|
}
|
|
253
253
|
const f = h(null), Z = h(null), D = h(!1), ee = h("");
|
|
254
254
|
function H({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
|
|
255
|
-
Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series:
|
|
255
|
+
Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series: S.value, scales: b.value }, D.value = !0, f.value = a.id;
|
|
256
256
|
let s = "";
|
|
257
257
|
const v = e.value.style.chart.tooltip.customFormat;
|
|
258
258
|
Pe(v) && $t(() => v({
|
|
259
259
|
serie: a,
|
|
260
260
|
seriesIndex: a.seriesIndex,
|
|
261
|
-
series:
|
|
261
|
+
series: S.value,
|
|
262
262
|
config: e.value,
|
|
263
263
|
scales: b.value
|
|
264
264
|
})) ? ee.value = v({
|
|
265
265
|
serie: a,
|
|
266
266
|
seriesIndex: a.seriesIndex,
|
|
267
|
-
series:
|
|
267
|
+
series: S.value,
|
|
268
268
|
config: e.value,
|
|
269
269
|
scales: b.value
|
|
270
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${a.name}</div>`, b.value.map((A) => A.name).forEach((A,
|
|
270
|
+
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${a.name}</div>`, b.value.map((A) => A.name).forEach((A, y) => {
|
|
271
271
|
s += `
|
|
272
272
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
273
273
|
<span>${A}: </span>
|
|
274
274
|
<span>
|
|
275
275
|
${Oe(
|
|
276
|
-
e.value.style.chart.yAxis.labels.formatters[
|
|
277
|
-
a.datapoints[
|
|
276
|
+
e.value.style.chart.yAxis.labels.formatters[y] || null,
|
|
277
|
+
a.datapoints[y].value,
|
|
278
278
|
Le({
|
|
279
|
-
p: e.value.style.chart.yAxis.labels.prefixes[
|
|
280
|
-
v: a.datapoints[
|
|
281
|
-
s: e.value.style.chart.yAxis.labels.suffixes[
|
|
282
|
-
r: e.value.style.chart.yAxis.labels.roundings[
|
|
279
|
+
p: e.value.style.chart.yAxis.labels.prefixes[y] || "",
|
|
280
|
+
v: a.datapoints[y].value,
|
|
281
|
+
s: e.value.style.chart.yAxis.labels.suffixes[y] || "",
|
|
282
|
+
r: e.value.style.chart.yAxis.labels.roundings[y] || ""
|
|
283
283
|
}),
|
|
284
|
-
{ datapoint: a.datapoints[
|
|
284
|
+
{ datapoint: a.datapoints[y], seriesIndex: y }
|
|
285
285
|
)}
|
|
286
286
|
</span>
|
|
287
287
|
</div>
|
|
288
|
-
`, e.value.style.chart.comments.showInTooltip && a.datapoints[
|
|
288
|
+
`, e.value.style.chart.comments.showInTooltip && a.datapoints[y].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[y].comment}</div>`);
|
|
289
289
|
}), ee.value = `<div>${s}</div>`);
|
|
290
290
|
}
|
|
291
291
|
function Ze() {
|
|
292
|
-
return
|
|
292
|
+
return S.value;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const R = x(() => {
|
|
295
295
|
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((n) => n.name)), l = Q.value.flatMap((n, s) => n.series.map((v) => [n.name].concat([v.name]).concat(v.values))), a = {
|
|
296
296
|
th: {
|
|
297
297
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -312,14 +312,14 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
312
312
|
colNames: o
|
|
313
313
|
};
|
|
314
314
|
}), $e = x(() => Q.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
315
|
-
head:
|
|
316
|
-
body:
|
|
315
|
+
head: R.value.head,
|
|
316
|
+
body: R.value.body
|
|
317
317
|
});
|
|
318
318
|
function Ae(t = null) {
|
|
319
319
|
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = $e.value.head, o = $e.value.body, n = l.concat([a]).concat(o), s = wt(n);
|
|
320
320
|
t ? t(s) : Ct({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
321
321
|
}
|
|
322
|
-
const ze =
|
|
322
|
+
const ze = Be;
|
|
323
323
|
function et(t) {
|
|
324
324
|
ze("selectDatapoint", t);
|
|
325
325
|
}
|
|
@@ -344,11 +344,18 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
344
344
|
j.value = !j.value;
|
|
345
345
|
}
|
|
346
346
|
async function tt({ scale: t = 2 } = {}) {
|
|
347
|
-
if (!
|
|
348
|
-
const {
|
|
349
|
-
return {
|
|
347
|
+
if (!M.value) return;
|
|
348
|
+
const { width: l, height: a } = M.value.getBoundingClientRect(), o = l / a, { imageUri: n, base64: s } = await Nt({ domElement: M.value, base64: !0, img: !0, scale: t });
|
|
349
|
+
return {
|
|
350
|
+
imageUri: n,
|
|
351
|
+
base64: s,
|
|
352
|
+
title: e.value.style.chart.title.text,
|
|
353
|
+
width: l,
|
|
354
|
+
height: a,
|
|
355
|
+
aspectRatio: o
|
|
356
|
+
};
|
|
350
357
|
}
|
|
351
|
-
return
|
|
358
|
+
return Ee({
|
|
352
359
|
getData: Ze,
|
|
353
360
|
getImage: tt,
|
|
354
361
|
generateCsv: Ae,
|
|
@@ -361,35 +368,35 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
361
368
|
toggleFullscreen: ve
|
|
362
369
|
}), (t, l) => (i(), u("div", {
|
|
363
370
|
ref_key: "pcpChart",
|
|
364
|
-
ref:
|
|
365
|
-
class:
|
|
371
|
+
ref: M,
|
|
372
|
+
class: W(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
366
373
|
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
367
374
|
id: `pcp_${q.value}`,
|
|
368
375
|
onMouseenter: l[6] || (l[6] = () => d(de)(!0)),
|
|
369
376
|
onMouseleave: l[7] || (l[7] = () => d(de)(!1))
|
|
370
377
|
}, [
|
|
371
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
378
|
+
e.value.userOptions.buttons.annotator ? (i(), I(d(He), {
|
|
372
379
|
key: 0,
|
|
373
380
|
svgRef: d(pe),
|
|
374
381
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
375
382
|
color: e.value.style.chart.color,
|
|
376
383
|
active: j.value,
|
|
377
384
|
onClose: te
|
|
378
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
385
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
379
386
|
qe.value ? (i(), u("div", {
|
|
380
387
|
key: 1,
|
|
381
388
|
ref_key: "noTitle",
|
|
382
389
|
ref: ie,
|
|
383
390
|
class: "vue-data-ui-no-title-space",
|
|
384
391
|
style: "height:36px; width: 100%;background:transparent"
|
|
385
|
-
}, null, 512)) :
|
|
392
|
+
}, null, 512)) : m("", !0),
|
|
386
393
|
e.value.style.chart.title.text ? (i(), u("div", {
|
|
387
394
|
key: 2,
|
|
388
395
|
ref_key: "chartTitle",
|
|
389
396
|
ref: oe,
|
|
390
397
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
391
398
|
}, [
|
|
392
|
-
(i(),
|
|
399
|
+
(i(), I(St, {
|
|
393
400
|
key: `title_${ue.value}`,
|
|
394
401
|
config: {
|
|
395
402
|
title: {
|
|
@@ -402,8 +409,8 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
402
409
|
}
|
|
403
410
|
}
|
|
404
411
|
}, null, 8, ["config"]))
|
|
405
|
-
], 512)) :
|
|
406
|
-
e.value.userOptions.show && P.value && (d(he) || d(J)) ? (i(),
|
|
412
|
+
], 512)) : m("", !0),
|
|
413
|
+
e.value.userOptions.show && P.value && (d(he) || d(J)) ? (i(), I(d(Ge), {
|
|
407
414
|
ref: "details",
|
|
408
415
|
key: `user_options_${le.value}`,
|
|
409
416
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -421,7 +428,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
421
428
|
isFullscreen: O.value,
|
|
422
429
|
isTooltip: p.value.showTooltip,
|
|
423
430
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
424
|
-
chartElement:
|
|
431
|
+
chartElement: M.value,
|
|
425
432
|
position: e.value.userOptions.position,
|
|
426
433
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
427
434
|
isAnnotation: j.value,
|
|
@@ -442,7 +449,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
442
449
|
t.$slots.menuIcon ? {
|
|
443
450
|
name: "menuIcon",
|
|
444
451
|
fn: w(({ isOpen: a, color: o }) => [
|
|
445
|
-
g(t.$slots, "menuIcon", U(
|
|
452
|
+
g(t.$slots, "menuIcon", B(U({ isOpen: a, color: o })), void 0, !0)
|
|
446
453
|
]),
|
|
447
454
|
key: "0"
|
|
448
455
|
} : void 0,
|
|
@@ -484,28 +491,28 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
484
491
|
t.$slots.optionFullscreen ? {
|
|
485
492
|
name: "optionFullscreen",
|
|
486
493
|
fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
487
|
-
g(t.$slots, "optionFullscreen", U(
|
|
494
|
+
g(t.$slots, "optionFullscreen", B(U({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
488
495
|
]),
|
|
489
496
|
key: "6"
|
|
490
497
|
} : void 0,
|
|
491
498
|
t.$slots.optionAnnotator ? {
|
|
492
499
|
name: "optionAnnotator",
|
|
493
500
|
fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
494
|
-
g(t.$slots, "optionAnnotator", U(
|
|
501
|
+
g(t.$slots, "optionAnnotator", B(U({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
495
502
|
]),
|
|
496
503
|
key: "7"
|
|
497
504
|
} : void 0
|
|
498
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
505
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
499
506
|
P.value ? (i(), u("svg", {
|
|
500
507
|
key: 4,
|
|
501
508
|
ref_key: "svgRef",
|
|
502
509
|
ref: pe,
|
|
503
510
|
xmlns: d(xt),
|
|
504
|
-
class:
|
|
511
|
+
class: W({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
505
512
|
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
506
513
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
507
514
|
}, [
|
|
508
|
-
_e(d(
|
|
515
|
+
_e(d(We)),
|
|
509
516
|
t.$slots["chart-background"] ? (i(), u("foreignObject", {
|
|
510
517
|
key: 0,
|
|
511
518
|
x: r.value.left,
|
|
@@ -517,16 +524,16 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
517
524
|
}
|
|
518
525
|
}, [
|
|
519
526
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
520
|
-
], 8, Dt)) :
|
|
521
|
-
(i(!0), u(C, null,
|
|
522
|
-
|
|
527
|
+
], 8, Dt)) : m("", !0),
|
|
528
|
+
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Rt, [
|
|
529
|
+
E("line", {
|
|
523
530
|
x1: r.value.left + k.value * o + k.value / 2,
|
|
524
531
|
x2: r.value.left + k.value * o + k.value / 2,
|
|
525
532
|
y1: r.value.top,
|
|
526
533
|
y2: r.value.bottom,
|
|
527
534
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
528
535
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
529
|
-
}, null, 8,
|
|
536
|
+
}, null, 8, Et),
|
|
530
537
|
String(a.name).includes(`
|
|
531
538
|
`) ? (i(), u("text", {
|
|
532
539
|
key: 1,
|
|
@@ -543,7 +550,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
543
550
|
x: r.value.left + k.value * o + k.value / 2,
|
|
544
551
|
y: r.value.top - 24
|
|
545
552
|
})
|
|
546
|
-
}, null, 8,
|
|
553
|
+
}, null, 8, Ut)) : (i(), u("text", {
|
|
547
554
|
key: 0,
|
|
548
555
|
x: r.value.left + k.value * o + k.value / 2,
|
|
549
556
|
y: r.value.top - 24,
|
|
@@ -551,9 +558,9 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
551
558
|
"font-size": c.value.axisNameFontSize,
|
|
552
559
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
553
560
|
"text-anchor": "middle"
|
|
554
|
-
},
|
|
561
|
+
}, V(a.name), 9, Bt)),
|
|
555
562
|
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 2 }, [
|
|
556
|
-
(i(!0), u(C, null,
|
|
563
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("line", {
|
|
557
564
|
x1: n.x,
|
|
558
565
|
x2: n.x - 10,
|
|
559
566
|
y1: n.y,
|
|
@@ -561,8 +568,8 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
561
568
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
562
569
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
563
570
|
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
564
|
-
}, null, 12,
|
|
565
|
-
(i(!0), u(C, null,
|
|
571
|
+
}, null, 12, Vt))), 256)),
|
|
572
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("text", {
|
|
566
573
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
567
574
|
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
568
575
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
@@ -570,13 +577,13 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
570
577
|
"font-size": c.value.ticksFontSize,
|
|
571
578
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
572
579
|
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
573
|
-
},
|
|
574
|
-
], 64)) :
|
|
580
|
+
}, V(Ce({ value: n.value, index: o, datapoint: n })), 13, Wt))), 256))
|
|
581
|
+
], 64)) : m("", !0)
|
|
575
582
|
]))), 256)),
|
|
576
|
-
(i(!0), u(C, null,
|
|
577
|
-
(i(!0), u(C, null,
|
|
583
|
+
(i(!0), u(C, null, _(Q.value, (a) => (i(), u("g", null, [
|
|
584
|
+
(i(!0), u(C, null, _(a.series, (o, n) => (i(), u("g", null, [
|
|
578
585
|
e.value.style.chart.plots.show ? (i(), u("g", Ht, [
|
|
579
|
-
(i(!0), u(C, null,
|
|
586
|
+
(i(!0), u(C, null, _(o.datapoints, (s) => (i(), I(_t, {
|
|
580
587
|
plot: { x: s.x, y: s.y },
|
|
581
588
|
color: a.color,
|
|
582
589
|
shape: a.shape,
|
|
@@ -596,7 +603,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
596
603
|
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
597
604
|
onClick: () => et(s)
|
|
598
605
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
599
|
-
p.value.showTooltip ?
|
|
606
|
+
p.value.showTooltip ? m("", !0) : (i(), u(C, { key: 0 }, [
|
|
600
607
|
f.value && f.value === o.id && o.datapoints.length ? (i(), u("text", {
|
|
601
608
|
key: 0,
|
|
602
609
|
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
@@ -605,9 +612,9 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
605
612
|
"font-size": c.value.ticksFontSize,
|
|
606
613
|
fill: a.color,
|
|
607
614
|
"font-weight": "bold"
|
|
608
|
-
},
|
|
615
|
+
}, V(o.name), 9, jt)) : m("", !0)
|
|
609
616
|
], 64)),
|
|
610
|
-
e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 },
|
|
617
|
+
e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s) => (i(), u("g", null, [
|
|
611
618
|
s.comment ? (i(), u("foreignObject", {
|
|
612
619
|
key: 0,
|
|
613
620
|
style: { overflow: "visible" },
|
|
@@ -616,21 +623,21 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
616
623
|
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
617
624
|
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
618
625
|
}, [
|
|
619
|
-
|
|
626
|
+
E("div", Gt, [
|
|
620
627
|
g(t.$slots, "plot-comment", {
|
|
621
628
|
plot: { ...s, color: a.color }
|
|
622
629
|
}, void 0, !0)
|
|
623
630
|
])
|
|
624
|
-
], 8, Xt)) :
|
|
625
|
-
]))), 256)) :
|
|
626
|
-
])) :
|
|
627
|
-
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 },
|
|
631
|
+
], 8, Xt)) : m("", !0)
|
|
632
|
+
]))), 256)) : m("", !0)
|
|
633
|
+
])) : m("", !0),
|
|
634
|
+
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s, v) => (i(), u("text", {
|
|
628
635
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
629
636
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
630
637
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
631
638
|
"text-anchor": "start",
|
|
632
639
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
633
|
-
class:
|
|
640
|
+
class: W({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
634
641
|
"font-size": c.value.datapointFontSize,
|
|
635
642
|
onMouseenter: (A) => H({
|
|
636
643
|
shape: a.shape,
|
|
@@ -643,13 +650,13 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
643
650
|
f.value = null, D.value = !1;
|
|
644
651
|
}),
|
|
645
652
|
style: z(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
|
|
646
|
-
},
|
|
647
|
-
|
|
653
|
+
}, V(Ce({ value: s.value, index: v, datapoint: s })), 45, Yt))), 256)) : m("", !0),
|
|
654
|
+
E("path", {
|
|
648
655
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
649
656
|
stroke: a.color,
|
|
650
657
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
651
658
|
fill: "none",
|
|
652
|
-
class:
|
|
659
|
+
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
653
660
|
onMouseenter: (s) => H({
|
|
654
661
|
shape: a.shape,
|
|
655
662
|
serieName: a.name,
|
|
@@ -668,7 +675,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
668
675
|
stroke: "transparent",
|
|
669
676
|
"stroke-width": 12,
|
|
670
677
|
fill: "none",
|
|
671
|
-
class:
|
|
678
|
+
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
672
679
|
onMouseenter: (s) => H({
|
|
673
680
|
shape: a.shape,
|
|
674
681
|
serieName: a.name,
|
|
@@ -680,15 +687,15 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
680
687
|
f.value = null, D.value = !1;
|
|
681
688
|
}),
|
|
682
689
|
style: { opacity: "0" }
|
|
683
|
-
}, null, 42, Jt)) :
|
|
690
|
+
}, null, 42, Jt)) : m("", !0)
|
|
684
691
|
]))), 256))
|
|
685
692
|
]))), 256)),
|
|
686
693
|
g(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
687
|
-
], 14, Lt)) :
|
|
694
|
+
], 14, Lt)) : m("", !0),
|
|
688
695
|
t.$slots.watermark ? (i(), u("div", Kt, [
|
|
689
|
-
g(t.$slots, "watermark", U(
|
|
690
|
-
])) :
|
|
691
|
-
P.value ?
|
|
696
|
+
g(t.$slots, "watermark", B(U({ isPrinting: d(fe) || d(ge) })), void 0, !0)
|
|
697
|
+
])) : m("", !0),
|
|
698
|
+
P.value ? m("", !0) : (i(), I(d(je), {
|
|
692
699
|
key: 6,
|
|
693
700
|
config: {
|
|
694
701
|
type: "parallelCoordinatePlot",
|
|
@@ -697,11 +704,11 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
697
704
|
}
|
|
698
705
|
}
|
|
699
706
|
}, null, 8, ["config"])),
|
|
700
|
-
|
|
707
|
+
E("div", {
|
|
701
708
|
ref_key: "chartLegend",
|
|
702
709
|
ref: se
|
|
703
710
|
}, [
|
|
704
|
-
e.value.style.chart.legend.show && P.value ? (i(),
|
|
711
|
+
e.value.style.chart.legend.show && P.value ? (i(), I(It, {
|
|
705
712
|
key: `legend_${re.value}`,
|
|
706
713
|
legendSet: Ke.value,
|
|
707
714
|
config: Qe.value,
|
|
@@ -710,17 +717,17 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
710
717
|
})
|
|
711
718
|
}, {
|
|
712
719
|
item: w(({ legend: a, index: o }) => [
|
|
713
|
-
|
|
720
|
+
E("div", {
|
|
714
721
|
onClick: (n) => {
|
|
715
722
|
a.segregate(), Te(a);
|
|
716
723
|
},
|
|
717
724
|
style: z(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
|
|
718
|
-
},
|
|
725
|
+
}, V(a.name), 13, Qt)
|
|
719
726
|
]),
|
|
720
727
|
_: 1
|
|
721
728
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
722
729
|
key: 1,
|
|
723
|
-
legend:
|
|
730
|
+
legend: S.value
|
|
724
731
|
}, void 0, !0)
|
|
725
732
|
], 512),
|
|
726
733
|
t.$slots.source ? (i(), u("div", {
|
|
@@ -730,7 +737,7 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
730
737
|
dir: "auto"
|
|
731
738
|
}, [
|
|
732
739
|
g(t.$slots, "source", {}, void 0, !0)
|
|
733
|
-
], 512)) :
|
|
740
|
+
], 512)) : m("", !0),
|
|
734
741
|
_e(d(Xe), {
|
|
735
742
|
show: p.value.showTooltip && D.value,
|
|
736
743
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -742,20 +749,20 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
742
749
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
743
750
|
position: e.value.style.chart.tooltip.position,
|
|
744
751
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
745
|
-
parent:
|
|
752
|
+
parent: M.value,
|
|
746
753
|
content: ee.value,
|
|
747
754
|
isFullscreen: O.value,
|
|
748
755
|
isCustom: d(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
749
756
|
}, {
|
|
750
757
|
"tooltip-before": w(() => [
|
|
751
|
-
g(t.$slots, "tooltip-before", U(
|
|
758
|
+
g(t.$slots, "tooltip-before", B(U({ ...Z.value })), void 0, !0)
|
|
752
759
|
]),
|
|
753
760
|
"tooltip-after": w(() => [
|
|
754
|
-
g(t.$slots, "tooltip-after", U(
|
|
761
|
+
g(t.$slots, "tooltip-after", B(U({ ...Z.value })), void 0, !0)
|
|
755
762
|
]),
|
|
756
763
|
_: 3
|
|
757
764
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
758
|
-
P.value ? (i(),
|
|
765
|
+
P.value ? (i(), I(d(Ue), {
|
|
759
766
|
key: 8,
|
|
760
767
|
hideDetails: "",
|
|
761
768
|
config: {
|
|
@@ -772,29 +779,29 @@ const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"]
|
|
|
772
779
|
}
|
|
773
780
|
}, {
|
|
774
781
|
content: w(() => [
|
|
775
|
-
(i(),
|
|
782
|
+
(i(), I(d(Ve), {
|
|
776
783
|
key: `table_${ce.value}`,
|
|
777
|
-
colNames:
|
|
778
|
-
head:
|
|
779
|
-
body:
|
|
780
|
-
config:
|
|
784
|
+
colNames: R.value.colNames,
|
|
785
|
+
head: R.value.head,
|
|
786
|
+
body: R.value.body,
|
|
787
|
+
config: R.value.config,
|
|
781
788
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
782
789
|
onClose: l[5] || (l[5] = (a) => p.value.showTable = !1)
|
|
783
790
|
}, {
|
|
784
791
|
th: w(({ th: a }) => [
|
|
785
|
-
|
|
792
|
+
E("div", { innerHTML: a }, null, 8, Zt)
|
|
786
793
|
]),
|
|
787
794
|
td: w(({ td: a }) => [
|
|
788
|
-
ut(
|
|
795
|
+
ut(V(a), 1)
|
|
789
796
|
]),
|
|
790
797
|
_: 1
|
|
791
798
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
792
799
|
]),
|
|
793
800
|
_: 1
|
|
794
|
-
}, 8, ["config"])) :
|
|
801
|
+
}, 8, ["config"])) : m("", !0)
|
|
795
802
|
], 46, Ot));
|
|
796
803
|
}
|
|
797
|
-
}, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-
|
|
804
|
+
}, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-6d00a0ec"]]);
|
|
798
805
|
export {
|
|
799
806
|
ha as default
|
|
800
807
|
};
|