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,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as ut, c as ae, t as rt, p as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Le } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as N, computed as x, ref as h, watch as lt, shallowRef as Ie, onMounted as ot, onBeforeUnmount as st, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as z, normalizeClass as U, createBlock as I, createCommentVNode as m, createElementVNode as R, createVNode as _e, createSlots as nt, withCtx as w, renderSlot as g, normalizeProps as V, guardReactiveProps as W, Fragment as C, renderList as _, toDisplayString as B, createTextVNode as it } from "vue";
|
|
2
|
+
import { u as ut, c as ae, t as rt, p as G, a as ct, o as vt, e as Ne, g as dt, b as ht, d as pt, D as yt, U as mt, V as ft, W as gt, X as bt, I as xt, x as Se, F as Y, q as kt, r as wt, i as Pe, f as Oe, y as Ct } from "./index-BzH6XFI9.js";
|
|
3
|
+
import { t as $t, u as At } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as Le } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as zt } from "./usePrinter-C653sJjz.js";
|
|
6
6
|
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
7
|
+
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ft from "./Title-B71Dk29x.js";
|
|
9
|
+
import It from "./Legend-Cpx0xSce.js";
|
|
10
|
+
import { _ as _t } from "./Shape-D65xhJAN.js";
|
|
11
|
+
import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const St = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], Lt = { style: { "pointer-events": "none" } }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rt = ["x", "y", "fill", "font-size", "font-weight"], Vt = ["x", "y", "fill", "font-size", "font-weight", "innerHTML"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x", "y", "fill", "font-size", "font-weight"], Et = { key: 0 }, Ut = ["x", "y", "font-size", "fill"], Ht = ["width", "x", "y"], jt = { style: { width: "100%" } }, Xt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], Gt = ["d", "stroke", "stroke-width", "onMouseenter"], Yt = ["d", "onMouseenter"], qt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, Jt = ["onClick"], Kt = ["innerHTML"], Qt = {
|
|
16
16
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -30,51 +30,51 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend", "selectDatapoint"],
|
|
32
32
|
setup(De, { expose: Re, emit: Ve }) {
|
|
33
|
-
const
|
|
33
|
+
const We = N(() => import("./vue-ui-accordion-Cjq4hqGi.js")), Be = N(() => import("./DataTable-D8n1mvaG.js")), Ee = N(() => import("./PackageVersion-Bwu7jdjH.js")), Ue = N(() => import("./PenAndPaper-BzQcbTCN.js")), He = N(() => import("./vue-ui-skeleton-qa5B2MES.js")), je = N(() => import("./Tooltip-BuP-Tir7.js")), Xe = N(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_parallel_coordinate_plot: Ge } = ut(), T = De, S = x({
|
|
34
34
|
get() {
|
|
35
|
-
return !!
|
|
35
|
+
return !!T.dataset && T.dataset.length;
|
|
36
36
|
},
|
|
37
37
|
set(t) {
|
|
38
38
|
return t;
|
|
39
39
|
}
|
|
40
|
-
}), le = h(0),
|
|
40
|
+
}), le = h(0), E = 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()), P = h(!1);
|
|
41
41
|
function Ye(t) {
|
|
42
|
-
|
|
42
|
+
P.value = t, le.value += 1;
|
|
43
43
|
}
|
|
44
44
|
const e = x({
|
|
45
45
|
get: () => pe(),
|
|
46
46
|
set: (t) => t
|
|
47
|
-
}), { userOptionsVisible: J, setUserOptionsVisibility: ve, keepUserOptionState: de } = Tt({ config: e.value }), { svgRef: he } =
|
|
47
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: ve, keepUserOptionState: de } = Tt({ config: e.value }), { svgRef: he } = Mt({ config: e.value.style.chart.title });
|
|
48
48
|
function pe() {
|
|
49
49
|
const t = Le({
|
|
50
|
-
userConfig:
|
|
51
|
-
defaultConfig:
|
|
50
|
+
userConfig: T.config,
|
|
51
|
+
defaultConfig: Ge
|
|
52
52
|
});
|
|
53
53
|
return t.theme ? {
|
|
54
54
|
...Le({
|
|
55
|
-
userConfig: ct.vue_ui_parallel_coordinate_plot[t.theme] ||
|
|
55
|
+
userConfig: ct.vue_ui_parallel_coordinate_plot[t.theme] || T.config,
|
|
56
56
|
defaultConfig: t
|
|
57
57
|
}),
|
|
58
|
-
customPalette: rt[t.theme] ||
|
|
58
|
+
customPalette: rt[t.theme] || G
|
|
59
59
|
} : t;
|
|
60
60
|
}
|
|
61
|
-
lt(() =>
|
|
61
|
+
lt(() => T.config, (t) => {
|
|
62
62
|
e.value = pe(), J.value = !e.value.userOptions.showOnChartHover, ye(), 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;
|
|
63
63
|
}, { deep: !0 });
|
|
64
|
-
const M = Ie(null),
|
|
64
|
+
const M = Ie(null), O = Ie(null);
|
|
65
65
|
ot(() => {
|
|
66
66
|
ye();
|
|
67
67
|
});
|
|
68
68
|
function ye() {
|
|
69
|
-
if (vt(
|
|
69
|
+
if (vt(T.dataset) ? Ne({
|
|
70
70
|
componentName: "VueUiParallelCoordinatePlot",
|
|
71
71
|
type: "dataset"
|
|
72
|
-
}) :
|
|
72
|
+
}) : T.dataset.forEach((t, l) => {
|
|
73
73
|
dt({
|
|
74
74
|
datasetObject: t,
|
|
75
75
|
requiredAttributes: ["name", "series"]
|
|
76
76
|
}).forEach((a) => {
|
|
77
|
-
|
|
77
|
+
S.value = !1, Ne({
|
|
78
78
|
componentName: "VueUiParallelCoordinatePlot",
|
|
79
79
|
type: "datasetSerieAttribute",
|
|
80
80
|
property: a,
|
|
@@ -82,9 +82,9 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}), e.value.responsive) {
|
|
85
|
-
const t =
|
|
86
|
-
const { width: l, height: a } =
|
|
87
|
-
chart:
|
|
85
|
+
const t = $t(() => {
|
|
86
|
+
const { width: l, height: a } = At({
|
|
87
|
+
chart: E.value,
|
|
88
88
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
89
89
|
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
90
90
|
source: ne.value,
|
|
@@ -118,13 +118,13 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
118
118
|
})) : (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);
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
|
-
M.value && (
|
|
121
|
+
M.value && (O.value && M.value.unobserve(O.value), M.value.disconnect()), M.value = new ResizeObserver(t), O.value = E.value.parentNode, M.value.observe(O.value);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
st(() => {
|
|
125
|
-
M.value && (
|
|
125
|
+
M.value && (O.value && M.value.unobserve(O.value), M.value.disconnect());
|
|
126
126
|
});
|
|
127
|
-
const { isPrinting: me, isImaging: fe, generatePdf: ge, generateImage: be } =
|
|
127
|
+
const { isPrinting: me, isImaging: fe, generatePdf: ge, generateImage: be } = zt({
|
|
128
128
|
elementId: `pcp_${q.value}`,
|
|
129
129
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
130
130
|
options: e.value.userOptions.print
|
|
@@ -137,7 +137,7 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
137
137
|
// ratio 42.85
|
|
138
138
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
139
139
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
140
|
-
}),
|
|
140
|
+
}), r = x(() => {
|
|
141
141
|
const { top: t, right: l, bottom: a, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
|
|
142
142
|
return {
|
|
143
143
|
chartHeight: n,
|
|
@@ -159,8 +159,8 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
159
159
|
function xe(t) {
|
|
160
160
|
$.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
|
|
161
161
|
}
|
|
162
|
-
const F = x(() =>
|
|
163
|
-
const a = pt(t.color) || Je.value[l] ||
|
|
162
|
+
const F = x(() => T.dataset.map((t, l) => {
|
|
163
|
+
const a = pt(t.color) || Je.value[l] || G[l] || G[l % G.length];
|
|
164
164
|
return {
|
|
165
165
|
...t,
|
|
166
166
|
series: t.series.map((o) => ({
|
|
@@ -187,19 +187,19 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
187
187
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
188
188
|
})), ke = x(() => Math.max(
|
|
189
189
|
...F.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
190
|
-
)),
|
|
190
|
+
)), k = x(() => r.value.width / ke.value), K = x(() => F.value.filter((t) => !$.value.includes(t.id))), b = x(() => {
|
|
191
191
|
let t = [];
|
|
192
192
|
for (let l = 0; l < ke.value; l += 1) {
|
|
193
|
-
const a = Math.min(...K.value.flatMap((y) => y.series.map((
|
|
194
|
-
const tt =
|
|
193
|
+
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 = yt(n, s, e.value.style.chart.yAxis.scaleTicks), A = v.ticks.map((y, X) => {
|
|
194
|
+
const tt = v.min < 0 ? y + Math.abs(v.min) : y - Math.abs(v.min), at = v.min < 0 ? v.max + Math.abs(v.min) : v.max - Math.abs(v.min);
|
|
195
195
|
return {
|
|
196
|
-
y:
|
|
197
|
-
x:
|
|
196
|
+
y: r.value.bottom - r.value.height * (tt / at),
|
|
197
|
+
x: r.value.left + k.value * l + k.value / 2,
|
|
198
198
|
value: y
|
|
199
199
|
};
|
|
200
200
|
});
|
|
201
201
|
t.push({
|
|
202
|
-
scale:
|
|
202
|
+
scale: v,
|
|
203
203
|
ticks: A,
|
|
204
204
|
name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
|
|
205
205
|
});
|
|
@@ -210,7 +210,7 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
210
210
|
series: t.series.map((a, o) => ({
|
|
211
211
|
...a,
|
|
212
212
|
datapoints: a.values.map((n, s) => {
|
|
213
|
-
const
|
|
213
|
+
const v = b.value[s].scale.min < 0 ? (n || 0) + Math.abs(b.value[s].scale.min) : (n || 0) - Math.abs(b.value[s].scale.min), A = b.value[s].scale.min < 0 ? b.value[s].scale.max + Math.abs(b.value[s].scale.min) : b.value[s].scale.max - Math.abs(b.value[s].scale.min);
|
|
214
214
|
return {
|
|
215
215
|
name: a.name,
|
|
216
216
|
seriesName: t.name,
|
|
@@ -218,8 +218,8 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
218
218
|
datapointIndex: o,
|
|
219
219
|
seriesIndex: l,
|
|
220
220
|
value: n || 0,
|
|
221
|
-
x:
|
|
222
|
-
y:
|
|
221
|
+
x: r.value.left + k.value * s + k.value / 2,
|
|
222
|
+
y: r.value.bottom - r.value.height * (v / A),
|
|
223
223
|
comment: a.comments && a.comments[s] || ""
|
|
224
224
|
};
|
|
225
225
|
})
|
|
@@ -237,7 +237,7 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
237
237
|
})
|
|
238
238
|
})));
|
|
239
239
|
function we({ value: t, index: l, datapoint: a }) {
|
|
240
|
-
return
|
|
240
|
+
return Pe(
|
|
241
241
|
e.value.style.chart.yAxis.labels.formatters[l] || null,
|
|
242
242
|
t,
|
|
243
243
|
Oe({
|
|
@@ -249,18 +249,18 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
249
249
|
{ datapoint: a, seriesIndex: l }
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
const f = h(null), Z = h(null),
|
|
253
|
-
function
|
|
254
|
-
Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series: F.value, scales: b.value },
|
|
252
|
+
const f = h(null), Z = h(null), L = h(!1), ee = h("");
|
|
253
|
+
function H({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
|
|
254
|
+
Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series: F.value, scales: b.value }, L.value = !0, f.value = a.id;
|
|
255
255
|
let s = "";
|
|
256
|
-
const
|
|
257
|
-
Se(
|
|
256
|
+
const v = e.value.style.chart.tooltip.customFormat;
|
|
257
|
+
Se(v) && Ct(() => v({
|
|
258
258
|
serie: a,
|
|
259
259
|
seriesIndex: a.seriesIndex,
|
|
260
260
|
series: F.value,
|
|
261
261
|
config: e.value,
|
|
262
262
|
scales: b.value
|
|
263
|
-
})) ? ee.value =
|
|
263
|
+
})) ? ee.value = v({
|
|
264
264
|
serie: a,
|
|
265
265
|
seriesIndex: a.seriesIndex,
|
|
266
266
|
series: F.value,
|
|
@@ -271,7 +271,7 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
271
271
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
272
272
|
<span>${A}: </span>
|
|
273
273
|
<span>
|
|
274
|
-
${
|
|
274
|
+
${Pe(
|
|
275
275
|
e.value.style.chart.yAxis.labels.formatters[y] || null,
|
|
276
276
|
a.datapoints[y].value,
|
|
277
277
|
Oe({
|
|
@@ -290,8 +290,8 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
290
290
|
function Ze() {
|
|
291
291
|
return F.value;
|
|
292
292
|
}
|
|
293
|
-
const
|
|
294
|
-
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((
|
|
293
|
+
const D = x(() => {
|
|
294
|
+
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 = {
|
|
295
295
|
th: {
|
|
296
296
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
297
297
|
color: e.value.table.th.color,
|
|
@@ -311,25 +311,25 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
311
311
|
colNames: o
|
|
312
312
|
};
|
|
313
313
|
}), Ce = x(() => Q.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
314
|
-
head:
|
|
315
|
-
body:
|
|
314
|
+
head: D.value.head,
|
|
315
|
+
body: D.value.body
|
|
316
316
|
});
|
|
317
317
|
function $e(t = null) {
|
|
318
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = Ce.value.head, o = Ce.value.body, n = l.concat([a]).concat(o), s =
|
|
319
|
-
t ? t(s) :
|
|
318
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = Ce.value.head, o = Ce.value.body, n = l.concat([a]).concat(o), s = kt(n);
|
|
319
|
+
t ? t(s) : wt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
320
320
|
}
|
|
321
321
|
const Ae = Ve;
|
|
322
322
|
function et(t) {
|
|
323
323
|
Ae("selectDatapoint", t);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function ze(t) {
|
|
326
326
|
Ae("selectLegend", {
|
|
327
327
|
...t,
|
|
328
328
|
isSegregated: !t.isSegregated,
|
|
329
329
|
opacity: t.isSegregated ? 1 : 0.5
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Te() {
|
|
333
333
|
p.value.showTable = !p.value.showTable;
|
|
334
334
|
}
|
|
335
335
|
function Me() {
|
|
@@ -338,34 +338,34 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
338
338
|
function Fe() {
|
|
339
339
|
p.value.showTooltip = !p.value.showTooltip;
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const j = h(!1);
|
|
342
342
|
function te() {
|
|
343
|
-
|
|
343
|
+
j.value = !j.value;
|
|
344
344
|
}
|
|
345
345
|
return Re({
|
|
346
346
|
getData: Ze,
|
|
347
347
|
generateCsv: $e,
|
|
348
348
|
generatePdf: ge,
|
|
349
349
|
generateImage: be,
|
|
350
|
-
toggleTable:
|
|
350
|
+
toggleTable: Te,
|
|
351
351
|
toggleLabels: Me,
|
|
352
352
|
toggleTooltip: Fe,
|
|
353
353
|
toggleAnnotator: te
|
|
354
354
|
}), (t, l) => (i(), u("div", {
|
|
355
355
|
ref_key: "pcpChart",
|
|
356
|
-
ref:
|
|
357
|
-
class:
|
|
358
|
-
style:
|
|
356
|
+
ref: E,
|
|
357
|
+
class: U(`vue-ui-pcp ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
358
|
+
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
359
359
|
id: `pcp_${q.value}`,
|
|
360
360
|
onMouseenter: l[6] || (l[6] = () => d(ve)(!0)),
|
|
361
361
|
onMouseleave: l[7] || (l[7] = () => d(ve)(!1))
|
|
362
362
|
}, [
|
|
363
|
-
e.value.userOptions.buttons.annotator ? (i(), I(d(
|
|
363
|
+
e.value.userOptions.buttons.annotator ? (i(), I(d(Ue), {
|
|
364
364
|
key: 0,
|
|
365
365
|
svgRef: d(he),
|
|
366
366
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
367
367
|
color: e.value.style.chart.color,
|
|
368
|
-
active:
|
|
368
|
+
active: j.value,
|
|
369
369
|
onClose: te
|
|
370
370
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
371
371
|
qe.value ? (i(), u("div", {
|
|
@@ -381,7 +381,7 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
381
381
|
ref: oe,
|
|
382
382
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
383
383
|
}, [
|
|
384
|
-
(i(), I(
|
|
384
|
+
(i(), I(Ft, {
|
|
385
385
|
key: `title_${ue.value}`,
|
|
386
386
|
config: {
|
|
387
387
|
title: {
|
|
@@ -395,7 +395,7 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
395
395
|
}
|
|
396
396
|
}, null, 8, ["config"]))
|
|
397
397
|
], 512)) : m("", !0),
|
|
398
|
-
e.value.userOptions.show &&
|
|
398
|
+
e.value.userOptions.show && S.value && (d(de) || d(J)) ? (i(), I(d(Xe), {
|
|
399
399
|
ref: "details",
|
|
400
400
|
key: `user_options_${le.value}`,
|
|
401
401
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -410,123 +410,140 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
410
410
|
hasTable: e.value.userOptions.buttons.table,
|
|
411
411
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
412
412
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
413
|
-
isFullscreen:
|
|
413
|
+
isFullscreen: P.value,
|
|
414
414
|
isTooltip: p.value.showTooltip,
|
|
415
415
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
416
|
-
chartElement:
|
|
416
|
+
chartElement: E.value,
|
|
417
417
|
position: e.value.userOptions.position,
|
|
418
418
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
419
|
-
isAnnotation:
|
|
419
|
+
isAnnotation: j.value,
|
|
420
420
|
callbacks: e.value.userOptions.callbacks,
|
|
421
421
|
onToggleFullscreen: Ye,
|
|
422
422
|
onGeneratePdf: d(ge),
|
|
423
423
|
onGenerateCsv: $e,
|
|
424
424
|
onGenerateImage: d(be),
|
|
425
|
-
onToggleTable:
|
|
425
|
+
onToggleTable: Te,
|
|
426
426
|
onToggleLabels: Me,
|
|
427
427
|
onToggleTooltip: Fe,
|
|
428
428
|
onToggleAnnotator: te,
|
|
429
|
-
style:
|
|
429
|
+
style: z({
|
|
430
430
|
visibility: d(de) ? d(J) ? "visible" : "hidden" : "visible"
|
|
431
431
|
})
|
|
432
432
|
}, nt({ _: 2 }, [
|
|
433
433
|
t.$slots.menuIcon ? {
|
|
434
434
|
name: "menuIcon",
|
|
435
|
-
fn:
|
|
436
|
-
g(t.$slots, "menuIcon", V(
|
|
435
|
+
fn: w(({ isOpen: a, color: o }) => [
|
|
436
|
+
g(t.$slots, "menuIcon", V(W({ isOpen: a, color: o })), void 0, !0)
|
|
437
437
|
]),
|
|
438
438
|
key: "0"
|
|
439
439
|
} : void 0,
|
|
440
440
|
t.$slots.optionPdf ? {
|
|
441
441
|
name: "optionPdf",
|
|
442
|
-
fn:
|
|
442
|
+
fn: w(() => [
|
|
443
443
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
444
444
|
]),
|
|
445
445
|
key: "1"
|
|
446
446
|
} : void 0,
|
|
447
447
|
t.$slots.optionCsv ? {
|
|
448
448
|
name: "optionCsv",
|
|
449
|
-
fn:
|
|
449
|
+
fn: w(() => [
|
|
450
450
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
451
451
|
]),
|
|
452
452
|
key: "2"
|
|
453
453
|
} : void 0,
|
|
454
454
|
t.$slots.optionImg ? {
|
|
455
455
|
name: "optionImg",
|
|
456
|
-
fn:
|
|
456
|
+
fn: w(() => [
|
|
457
457
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
458
458
|
]),
|
|
459
459
|
key: "3"
|
|
460
460
|
} : void 0,
|
|
461
461
|
t.$slots.optionTable ? {
|
|
462
462
|
name: "optionTable",
|
|
463
|
-
fn:
|
|
463
|
+
fn: w(() => [
|
|
464
464
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
465
465
|
]),
|
|
466
466
|
key: "4"
|
|
467
467
|
} : void 0,
|
|
468
468
|
t.$slots.optionLabels ? {
|
|
469
469
|
name: "optionLabels",
|
|
470
|
-
fn:
|
|
470
|
+
fn: w(() => [
|
|
471
471
|
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
472
472
|
]),
|
|
473
473
|
key: "5"
|
|
474
474
|
} : void 0,
|
|
475
475
|
t.$slots.optionFullscreen ? {
|
|
476
476
|
name: "optionFullscreen",
|
|
477
|
-
fn:
|
|
478
|
-
g(t.$slots, "optionFullscreen", V(
|
|
477
|
+
fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
478
|
+
g(t.$slots, "optionFullscreen", V(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
479
479
|
]),
|
|
480
480
|
key: "6"
|
|
481
481
|
} : void 0,
|
|
482
482
|
t.$slots.optionAnnotator ? {
|
|
483
483
|
name: "optionAnnotator",
|
|
484
|
-
fn:
|
|
485
|
-
g(t.$slots, "optionAnnotator", V(
|
|
484
|
+
fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
485
|
+
g(t.$slots, "optionAnnotator", V(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
486
486
|
]),
|
|
487
487
|
key: "7"
|
|
488
488
|
} : void 0
|
|
489
489
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
490
|
-
|
|
490
|
+
S.value ? (i(), u("svg", {
|
|
491
491
|
key: 4,
|
|
492
492
|
ref_key: "svgRef",
|
|
493
493
|
ref: he,
|
|
494
494
|
xmlns: d(bt),
|
|
495
|
-
class:
|
|
496
|
-
viewBox: `0 0 ${
|
|
497
|
-
style:
|
|
495
|
+
class: U({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
496
|
+
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
497
|
+
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
498
498
|
}, [
|
|
499
|
-
_e(d(
|
|
499
|
+
_e(d(Ee)),
|
|
500
500
|
t.$slots["chart-background"] ? (i(), u("foreignObject", {
|
|
501
501
|
key: 0,
|
|
502
|
-
x:
|
|
503
|
-
y:
|
|
504
|
-
width:
|
|
505
|
-
height:
|
|
502
|
+
x: r.value.left,
|
|
503
|
+
y: r.value.top,
|
|
504
|
+
width: r.value.width,
|
|
505
|
+
height: r.value.height,
|
|
506
506
|
style: {
|
|
507
507
|
pointerEvents: "none"
|
|
508
508
|
}
|
|
509
509
|
}, [
|
|
510
510
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
511
|
-
], 8,
|
|
512
|
-
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g",
|
|
513
|
-
|
|
514
|
-
x1:
|
|
515
|
-
x2:
|
|
516
|
-
y1:
|
|
517
|
-
y2:
|
|
511
|
+
], 8, Ot)) : m("", !0),
|
|
512
|
+
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Lt, [
|
|
513
|
+
R("line", {
|
|
514
|
+
x1: r.value.left + k.value * o + k.value / 2,
|
|
515
|
+
x2: r.value.left + k.value * o + k.value / 2,
|
|
516
|
+
y1: r.value.top,
|
|
517
|
+
y2: r.value.bottom,
|
|
518
518
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
519
519
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
520
|
-
}, null, 8,
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
520
|
+
}, null, 8, Dt),
|
|
521
|
+
a.name.includes(`
|
|
522
|
+
`) ? (i(), u("text", {
|
|
523
|
+
key: 1,
|
|
524
|
+
x: r.value.left + k.value * o + k.value / 2,
|
|
525
|
+
y: r.value.top - 24,
|
|
526
|
+
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
527
|
+
"font-size": c.value.axisNameFontSize,
|
|
528
|
+
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
529
|
+
"text-anchor": "middle",
|
|
530
|
+
innerHTML: d(xt)({
|
|
531
|
+
content: a.name,
|
|
532
|
+
fontSize: c.value.axisNameFontSize,
|
|
533
|
+
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
534
|
+
x: r.value.left + k.value * o + k.value / 2,
|
|
535
|
+
y: r.value.top - 24
|
|
536
|
+
})
|
|
537
|
+
}, null, 8, Vt)) : (i(), u("text", {
|
|
538
|
+
key: 0,
|
|
539
|
+
x: r.value.left + k.value * o + k.value / 2,
|
|
540
|
+
y: r.value.top - 24,
|
|
524
541
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
525
542
|
"font-size": c.value.axisNameFontSize,
|
|
526
543
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
527
544
|
"text-anchor": "middle"
|
|
528
|
-
},
|
|
529
|
-
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key:
|
|
545
|
+
}, B(a.name), 9, Rt)),
|
|
546
|
+
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 2 }, [
|
|
530
547
|
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("line", {
|
|
531
548
|
x1: n.x,
|
|
532
549
|
x2: n.x - 10,
|
|
@@ -534,8 +551,8 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
534
551
|
y2: n.y,
|
|
535
552
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
536
553
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
537
|
-
style:
|
|
538
|
-
}, null, 12,
|
|
554
|
+
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
555
|
+
}, null, 12, Wt))), 256)),
|
|
539
556
|
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("text", {
|
|
540
557
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
541
558
|
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
@@ -543,31 +560,31 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
543
560
|
"text-anchor": "end",
|
|
544
561
|
"font-size": c.value.ticksFontSize,
|
|
545
562
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
546
|
-
style:
|
|
547
|
-
},
|
|
563
|
+
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
564
|
+
}, B(we({ value: n.value, index: o, datapoint: n })), 13, Bt))), 256))
|
|
548
565
|
], 64)) : m("", !0)
|
|
549
566
|
]))), 256)),
|
|
550
567
|
(i(!0), u(C, null, _(Q.value, (a) => (i(), u("g", null, [
|
|
551
568
|
(i(!0), u(C, null, _(a.series, (o, n) => (i(), u("g", null, [
|
|
552
569
|
e.value.style.chart.plots.show ? (i(), u("g", Et, [
|
|
553
|
-
(i(!0), u(C, null, _(o.datapoints, (s) => (i(), I(
|
|
570
|
+
(i(!0), u(C, null, _(o.datapoints, (s) => (i(), I(_t, {
|
|
554
571
|
plot: { x: s.x, y: s.y },
|
|
555
572
|
color: a.color,
|
|
556
573
|
shape: a.shape,
|
|
557
574
|
radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
558
575
|
stroke: e.value.style.chart.backgroundColor,
|
|
559
576
|
strokeWidth: 0.5,
|
|
560
|
-
onMouseenter: (
|
|
577
|
+
onMouseenter: (v) => H({
|
|
561
578
|
shape: a.shape,
|
|
562
579
|
serieName: a.name,
|
|
563
580
|
serie: o,
|
|
564
581
|
relativeIndex: n,
|
|
565
582
|
seriesIndex: o.seriesIndex
|
|
566
583
|
}),
|
|
567
|
-
onMouseleave: l[0] || (l[0] = (
|
|
568
|
-
f.value = null,
|
|
584
|
+
onMouseleave: l[0] || (l[0] = (v) => {
|
|
585
|
+
f.value = null, L.value = !1;
|
|
569
586
|
}),
|
|
570
|
-
style:
|
|
587
|
+
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
571
588
|
onClick: () => et(s)
|
|
572
589
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
573
590
|
p.value.showTooltip ? m("", !0) : (i(), u(C, { key: 0 }, [
|
|
@@ -579,7 +596,7 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
579
596
|
"font-size": c.value.ticksFontSize,
|
|
580
597
|
fill: a.color,
|
|
581
598
|
"font-weight": "bold"
|
|
582
|
-
},
|
|
599
|
+
}, B(o.name), 9, Ut)) : m("", !0)
|
|
583
600
|
], 64)),
|
|
584
601
|
e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s) => (i(), u("g", null, [
|
|
585
602
|
s.comment ? (i(), u("foreignObject", {
|
|
@@ -590,23 +607,23 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
590
607
|
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
591
608
|
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
592
609
|
}, [
|
|
593
|
-
|
|
610
|
+
R("div", jt, [
|
|
594
611
|
g(t.$slots, "plot-comment", {
|
|
595
612
|
plot: { ...s, color: a.color }
|
|
596
613
|
}, void 0, !0)
|
|
597
614
|
])
|
|
598
|
-
], 8,
|
|
615
|
+
], 8, Ht)) : m("", !0)
|
|
599
616
|
]))), 256)) : m("", !0)
|
|
600
617
|
])) : m("", !0),
|
|
601
|
-
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s,
|
|
618
|
+
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s, v) => (i(), u("text", {
|
|
602
619
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
603
620
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
604
621
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
605
622
|
"text-anchor": "start",
|
|
606
623
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
607
|
-
class:
|
|
624
|
+
class: U({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
608
625
|
"font-size": c.value.datapointFontSize,
|
|
609
|
-
onMouseenter: (A) =>
|
|
626
|
+
onMouseenter: (A) => H({
|
|
610
627
|
shape: a.shape,
|
|
611
628
|
serieName: a.name,
|
|
612
629
|
serie: o,
|
|
@@ -614,17 +631,17 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
614
631
|
seriesIndex: o.seriesIndex
|
|
615
632
|
}),
|
|
616
633
|
onMouseleave: l[1] || (l[1] = (A) => {
|
|
617
|
-
f.value = null,
|
|
634
|
+
f.value = null, L.value = !1;
|
|
618
635
|
}),
|
|
619
|
-
style:
|
|
620
|
-
},
|
|
621
|
-
|
|
636
|
+
style: z(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
|
|
637
|
+
}, B(we({ value: s.value, index: v, datapoint: s })), 45, Xt))), 256)) : m("", !0),
|
|
638
|
+
R("path", {
|
|
622
639
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
623
640
|
stroke: a.color,
|
|
624
641
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
625
642
|
fill: "none",
|
|
626
|
-
class:
|
|
627
|
-
onMouseenter: (s) =>
|
|
643
|
+
class: U({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
644
|
+
onMouseenter: (s) => H({
|
|
628
645
|
shape: a.shape,
|
|
629
646
|
serieName: a.name,
|
|
630
647
|
serie: o,
|
|
@@ -632,18 +649,18 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
632
649
|
seriesIndex: o.seriesIndex
|
|
633
650
|
}),
|
|
634
651
|
onMouseleave: l[2] || (l[2] = (s) => {
|
|
635
|
-
f.value = null,
|
|
652
|
+
f.value = null, L.value = !1;
|
|
636
653
|
}),
|
|
637
|
-
style:
|
|
638
|
-
}, null, 46,
|
|
654
|
+
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${o.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? o.pathLength : 0}`)
|
|
655
|
+
}, null, 46, Gt),
|
|
639
656
|
p.value.showTooltip ? (i(), u("path", {
|
|
640
657
|
key: 2,
|
|
641
658
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
642
659
|
stroke: "transparent",
|
|
643
660
|
"stroke-width": 12,
|
|
644
661
|
fill: "none",
|
|
645
|
-
class:
|
|
646
|
-
onMouseenter: (s) =>
|
|
662
|
+
class: U({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
663
|
+
onMouseenter: (s) => H({
|
|
647
664
|
shape: a.shape,
|
|
648
665
|
serieName: a.name,
|
|
649
666
|
serie: o,
|
|
@@ -651,18 +668,18 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
651
668
|
seriesIndex: o.seriesIndex
|
|
652
669
|
}),
|
|
653
670
|
onMouseleave: l[3] || (l[3] = (s) => {
|
|
654
|
-
f.value = null,
|
|
671
|
+
f.value = null, L.value = !1;
|
|
655
672
|
}),
|
|
656
673
|
style: { opacity: "0" }
|
|
657
|
-
}, null, 42,
|
|
674
|
+
}, null, 42, Yt)) : m("", !0)
|
|
658
675
|
]))), 256))
|
|
659
676
|
]))), 256)),
|
|
660
|
-
g(t.$slots, "svg", { svg:
|
|
661
|
-
], 14,
|
|
662
|
-
t.$slots.watermark ? (i(), u("div",
|
|
663
|
-
g(t.$slots, "watermark", V(
|
|
677
|
+
g(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
678
|
+
], 14, Pt)) : m("", !0),
|
|
679
|
+
t.$slots.watermark ? (i(), u("div", qt, [
|
|
680
|
+
g(t.$slots, "watermark", V(W({ isPrinting: d(me) || d(fe) })), void 0, !0)
|
|
664
681
|
])) : m("", !0),
|
|
665
|
-
|
|
682
|
+
S.value ? m("", !0) : (i(), I(d(He), {
|
|
666
683
|
key: 6,
|
|
667
684
|
config: {
|
|
668
685
|
type: "parallelCoordinatePlot",
|
|
@@ -671,25 +688,25 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
671
688
|
}
|
|
672
689
|
}
|
|
673
690
|
}, null, 8, ["config"])),
|
|
674
|
-
|
|
691
|
+
R("div", {
|
|
675
692
|
ref_key: "chartLegend",
|
|
676
693
|
ref: se
|
|
677
694
|
}, [
|
|
678
|
-
e.value.style.chart.legend.show &&
|
|
695
|
+
e.value.style.chart.legend.show && S.value ? (i(), I(It, {
|
|
679
696
|
key: `legend_${re.value}`,
|
|
680
697
|
legendSet: Ke.value,
|
|
681
698
|
config: Qe.value,
|
|
682
699
|
onClickMarker: l[4] || (l[4] = ({ legend: a }) => {
|
|
683
|
-
xe(a.id),
|
|
700
|
+
xe(a.id), ze(a);
|
|
684
701
|
})
|
|
685
702
|
}, {
|
|
686
|
-
item:
|
|
687
|
-
|
|
703
|
+
item: w(({ legend: a, index: o }) => [
|
|
704
|
+
R("div", {
|
|
688
705
|
onClick: (n) => {
|
|
689
|
-
a.segregate(),
|
|
706
|
+
a.segregate(), ze(a);
|
|
690
707
|
},
|
|
691
|
-
style:
|
|
692
|
-
},
|
|
708
|
+
style: z(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
|
|
709
|
+
}, B(a.name), 13, Jt)
|
|
693
710
|
]),
|
|
694
711
|
_: 1
|
|
695
712
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
@@ -705,8 +722,8 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
705
722
|
}, [
|
|
706
723
|
g(t.$slots, "source", {}, void 0, !0)
|
|
707
724
|
], 512)) : m("", !0),
|
|
708
|
-
_e(d(
|
|
709
|
-
show: p.value.showTooltip &&
|
|
725
|
+
_e(d(je), {
|
|
726
|
+
show: p.value.showTooltip && L.value,
|
|
710
727
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
711
728
|
color: e.value.style.chart.tooltip.color,
|
|
712
729
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -716,20 +733,20 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
716
733
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
717
734
|
position: e.value.style.chart.tooltip.position,
|
|
718
735
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
719
|
-
parent:
|
|
736
|
+
parent: E.value,
|
|
720
737
|
content: ee.value,
|
|
721
|
-
isFullscreen:
|
|
738
|
+
isFullscreen: P.value,
|
|
722
739
|
isCustom: d(Se)(e.value.style.chart.tooltip.customFormat)
|
|
723
740
|
}, {
|
|
724
|
-
"tooltip-before":
|
|
725
|
-
g(t.$slots, "tooltip-before", V(
|
|
741
|
+
"tooltip-before": w(() => [
|
|
742
|
+
g(t.$slots, "tooltip-before", V(W({ ...Z.value })), void 0, !0)
|
|
726
743
|
]),
|
|
727
|
-
"tooltip-after":
|
|
728
|
-
g(t.$slots, "tooltip-after", V(
|
|
744
|
+
"tooltip-after": w(() => [
|
|
745
|
+
g(t.$slots, "tooltip-after", V(W({ ...Z.value })), void 0, !0)
|
|
729
746
|
]),
|
|
730
747
|
_: 3
|
|
731
748
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
732
|
-
|
|
749
|
+
S.value ? (i(), I(d(We), {
|
|
733
750
|
key: 8,
|
|
734
751
|
hideDetails: "",
|
|
735
752
|
config: {
|
|
@@ -745,30 +762,30 @@ const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"]
|
|
|
745
762
|
}
|
|
746
763
|
}
|
|
747
764
|
}, {
|
|
748
|
-
content:
|
|
749
|
-
(i(), I(d(
|
|
765
|
+
content: w(() => [
|
|
766
|
+
(i(), I(d(Be), {
|
|
750
767
|
key: `table_${ce.value}`,
|
|
751
|
-
colNames:
|
|
752
|
-
head:
|
|
753
|
-
body:
|
|
754
|
-
config:
|
|
768
|
+
colNames: D.value.colNames,
|
|
769
|
+
head: D.value.head,
|
|
770
|
+
body: D.value.body,
|
|
771
|
+
config: D.value.config,
|
|
755
772
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
756
773
|
onClose: l[5] || (l[5] = (a) => p.value.showTable = !1)
|
|
757
774
|
}, {
|
|
758
|
-
th:
|
|
759
|
-
|
|
775
|
+
th: w(({ th: a }) => [
|
|
776
|
+
R("div", { innerHTML: a }, null, 8, Kt)
|
|
760
777
|
]),
|
|
761
|
-
td:
|
|
762
|
-
it(
|
|
778
|
+
td: w(({ td: a }) => [
|
|
779
|
+
it(B(a), 1)
|
|
763
780
|
]),
|
|
764
781
|
_: 1
|
|
765
782
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
766
783
|
]),
|
|
767
784
|
_: 1
|
|
768
785
|
}, 8, ["config"])) : m("", !0)
|
|
769
|
-
], 46,
|
|
786
|
+
], 46, St));
|
|
770
787
|
}
|
|
771
|
-
},
|
|
788
|
+
}, ca = /* @__PURE__ */ Nt(Qt, [["__scopeId", "data-v-c1168b81"]]);
|
|
772
789
|
export {
|
|
773
|
-
|
|
790
|
+
ca as default
|
|
774
791
|
};
|