vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
|
|
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-CobsZUkv.js";
|
|
3
|
+
import { t as At, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as De } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as Tt } from "./usePrinter-DPh6U_Qk.js";
|
|
6
|
+
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ft } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import St from "./Title-DpERl1yr.js";
|
|
9
|
+
import It from "./Legend-3LNqqLDg.js";
|
|
10
|
+
import { _ as _t } from "./Shape-C75836Jl.js";
|
|
11
|
+
import Nt from "./img-utitT2Gd.js";
|
|
12
|
+
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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 = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Qt = ["onClick"], Zt = ["innerHTML"], ea = {
|
|
16
17
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -29,52 +30,52 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
33
|
+
setup(Re, { expose: Ee, emit: Be }) {
|
|
34
|
+
const Ue = N(() => import("./vue-ui-accordion-UewqY6OI.js")), Ve = N(() => import("./DataTable-Dt-TIOyY.js")), We = N(() => import("./PackageVersion-C-4Ee8BQ.js")), He = N(() => import("./PenAndPaper-Cde-wJ3N.js")), je = N(() => import("./vue-ui-skeleton-8s4xts8z.js")), Xe = N(() => import("./Tooltip-DA0bYKFG.js")), Ge = N(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_parallel_coordinate_plot: Ye } = rt(), T = Re, P = x({
|
|
34
35
|
get() {
|
|
35
36
|
return !!T.dataset && T.dataset.length;
|
|
36
37
|
},
|
|
37
38
|
set(t) {
|
|
38
39
|
return t;
|
|
39
40
|
}
|
|
40
|
-
}), le = h(0),
|
|
41
|
-
function
|
|
42
|
-
|
|
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
|
+
function ve(t) {
|
|
43
|
+
O.value = t, le.value += 1;
|
|
43
44
|
}
|
|
44
45
|
const e = x({
|
|
45
|
-
get: () =>
|
|
46
|
+
get: () => ye(),
|
|
46
47
|
set: (t) => t
|
|
47
|
-
}), { userOptionsVisible: J, setUserOptionsVisibility:
|
|
48
|
-
function
|
|
49
|
-
const t =
|
|
48
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: de, keepUserOptionState: he } = Mt({ config: e.value }), { svgRef: pe } = Ft({ config: e.value.style.chart.title });
|
|
49
|
+
function ye() {
|
|
50
|
+
const t = De({
|
|
50
51
|
userConfig: T.config,
|
|
51
|
-
defaultConfig:
|
|
52
|
+
defaultConfig: Ye
|
|
52
53
|
});
|
|
53
54
|
return t.theme ? {
|
|
54
|
-
...
|
|
55
|
-
userConfig:
|
|
55
|
+
...De({
|
|
56
|
+
userConfig: vt.vue_ui_parallel_coordinate_plot[t.theme] || T.config,
|
|
56
57
|
defaultConfig: t
|
|
57
58
|
}),
|
|
58
|
-
customPalette:
|
|
59
|
+
customPalette: ct[t.theme] || G
|
|
59
60
|
} : t;
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
e.value =
|
|
62
|
+
ot(() => T.config, (t) => {
|
|
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;
|
|
63
64
|
}, { deep: !0 });
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
const F = Ie(null), L = Ie(null);
|
|
66
|
+
st(() => {
|
|
67
|
+
me();
|
|
67
68
|
});
|
|
68
|
-
function
|
|
69
|
-
if (
|
|
69
|
+
function me() {
|
|
70
|
+
if (dt(T.dataset) ? Ne({
|
|
70
71
|
componentName: "VueUiParallelCoordinatePlot",
|
|
71
72
|
type: "dataset"
|
|
72
73
|
}) : T.dataset.forEach((t, l) => {
|
|
73
|
-
|
|
74
|
+
ht({
|
|
74
75
|
datasetObject: t,
|
|
75
76
|
requiredAttributes: ["name", "series"]
|
|
76
77
|
}).forEach((a) => {
|
|
77
|
-
|
|
78
|
+
P.value = !1, Ne({
|
|
78
79
|
componentName: "VueUiParallelCoordinatePlot",
|
|
79
80
|
type: "datasetSerieAttribute",
|
|
80
81
|
property: a,
|
|
@@ -82,9 +83,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
85
|
}), e.value.responsive) {
|
|
85
|
-
const t =
|
|
86
|
-
const { width: l, height: a } =
|
|
87
|
-
chart:
|
|
86
|
+
const t = At(() => {
|
|
87
|
+
const { width: l, height: a } = zt({
|
|
88
|
+
chart: M.value,
|
|
88
89
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
89
90
|
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
90
91
|
source: ne.value,
|
|
@@ -118,13 +119,13 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
118
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);
|
|
119
120
|
});
|
|
120
121
|
});
|
|
121
|
-
|
|
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);
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
nt(() => {
|
|
126
|
+
F.value && (L.value && F.value.unobserve(L.value), F.value.disconnect());
|
|
126
127
|
});
|
|
127
|
-
const { isPrinting:
|
|
128
|
+
const { isPrinting: fe, isImaging: ge, generatePdf: be, generateImage: xe } = Tt({
|
|
128
129
|
elementId: `pcp_${q.value}`,
|
|
129
130
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
130
131
|
options: e.value.userOptions.print
|
|
@@ -149,18 +150,18 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
149
150
|
right: s - l,
|
|
150
151
|
bottom: n - a
|
|
151
152
|
};
|
|
152
|
-
}), Je = x(() =>
|
|
153
|
+
}), Je = x(() => pt(e.value.customPalette)), p = h({
|
|
153
154
|
dataLabels: {
|
|
154
155
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
155
156
|
},
|
|
156
157
|
showTable: e.value.table.show,
|
|
157
158
|
showTooltip: e.value.style.chart.tooltip.show
|
|
158
159
|
}), $ = h([]);
|
|
159
|
-
function
|
|
160
|
+
function ke(t) {
|
|
160
161
|
$.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
-
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];
|
|
164
165
|
return {
|
|
165
166
|
...t,
|
|
166
167
|
series: t.series.map((o) => ({
|
|
@@ -173,10 +174,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
173
174
|
id: ae(),
|
|
174
175
|
shape: t.shape || "circle"
|
|
175
176
|
};
|
|
176
|
-
})), Ke = x(() =>
|
|
177
|
+
})), Ke = x(() => S.value.map((t) => ({
|
|
177
178
|
...t,
|
|
178
179
|
opacity: $.value.includes(t.id) ? 0.5 : 1,
|
|
179
|
-
segregate: () =>
|
|
180
|
+
segregate: () => ke(t.id),
|
|
180
181
|
isSegregated: $.value.includes(t.id)
|
|
181
182
|
}))), Qe = x(() => ({
|
|
182
183
|
cy: "pcp-div-legend",
|
|
@@ -185,15 +186,15 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
185
186
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
186
187
|
paddingBottom: 12,
|
|
187
188
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
188
|
-
})),
|
|
189
|
-
...
|
|
190
|
-
)), k = x(() => r.value.width /
|
|
189
|
+
})), we = x(() => Math.max(
|
|
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(() => {
|
|
191
192
|
let t = [];
|
|
192
|
-
for (let l = 0; l <
|
|
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 =
|
|
194
|
-
const
|
|
193
|
+
for (let l = 0; l < we.value; l += 1) {
|
|
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);
|
|
195
196
|
return {
|
|
196
|
-
y: r.value.bottom - r.value.height * (
|
|
197
|
+
y: r.value.bottom - r.value.height * (at / lt),
|
|
197
198
|
x: r.value.left + k.value * l + k.value / 2,
|
|
198
199
|
value: y
|
|
199
200
|
};
|
|
@@ -227,7 +228,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
227
228
|
})).map((t) => ({
|
|
228
229
|
...t,
|
|
229
230
|
series: t.series.map((l) => {
|
|
230
|
-
const a =
|
|
231
|
+
const a = ft(l.datapoints), o = gt(l.datapoints), n = bt(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${a}`);
|
|
231
232
|
return {
|
|
232
233
|
...l,
|
|
233
234
|
smoothPath: o,
|
|
@@ -236,11 +237,11 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
236
237
|
};
|
|
237
238
|
})
|
|
238
239
|
})));
|
|
239
|
-
function
|
|
240
|
-
return
|
|
240
|
+
function Ce({ value: t, index: l, datapoint: a }) {
|
|
241
|
+
return Oe(
|
|
241
242
|
e.value.style.chart.yAxis.labels.formatters[l] || null,
|
|
242
243
|
t,
|
|
243
|
-
|
|
244
|
+
Le({
|
|
244
245
|
p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
|
|
245
246
|
v: t,
|
|
246
247
|
s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
|
|
@@ -249,21 +250,21 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
249
250
|
{ datapoint: a, seriesIndex: l }
|
|
250
251
|
);
|
|
251
252
|
}
|
|
252
|
-
const f = h(null), Z = h(null),
|
|
253
|
+
const f = h(null), Z = h(null), D = h(!1), ee = h("");
|
|
253
254
|
function H({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
|
|
254
|
-
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;
|
|
255
256
|
let s = "";
|
|
256
257
|
const v = e.value.style.chart.tooltip.customFormat;
|
|
257
|
-
|
|
258
|
+
Pe(v) && $t(() => v({
|
|
258
259
|
serie: a,
|
|
259
260
|
seriesIndex: a.seriesIndex,
|
|
260
|
-
series:
|
|
261
|
+
series: S.value,
|
|
261
262
|
config: e.value,
|
|
262
263
|
scales: b.value
|
|
263
264
|
})) ? ee.value = v({
|
|
264
265
|
serie: a,
|
|
265
266
|
seriesIndex: a.seriesIndex,
|
|
266
|
-
series:
|
|
267
|
+
series: S.value,
|
|
267
268
|
config: e.value,
|
|
268
269
|
scales: b.value
|
|
269
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,10 +272,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
271
272
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
272
273
|
<span>${A}: </span>
|
|
273
274
|
<span>
|
|
274
|
-
${
|
|
275
|
+
${Oe(
|
|
275
276
|
e.value.style.chart.yAxis.labels.formatters[y] || null,
|
|
276
277
|
a.datapoints[y].value,
|
|
277
|
-
|
|
278
|
+
Le({
|
|
278
279
|
p: e.value.style.chart.yAxis.labels.prefixes[y] || "",
|
|
279
280
|
v: a.datapoints[y].value,
|
|
280
281
|
s: e.value.style.chart.yAxis.labels.suffixes[y] || "",
|
|
@@ -288,9 +289,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
288
289
|
}), ee.value = `<div>${s}</div>`);
|
|
289
290
|
}
|
|
290
291
|
function Ze() {
|
|
291
|
-
return
|
|
292
|
+
return S.value;
|
|
292
293
|
}
|
|
293
|
-
const
|
|
294
|
+
const R = x(() => {
|
|
294
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 = {
|
|
295
296
|
th: {
|
|
296
297
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -310,59 +311,73 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
310
311
|
config: a,
|
|
311
312
|
colNames: o
|
|
312
313
|
};
|
|
313
|
-
}),
|
|
314
|
-
head:
|
|
315
|
-
body:
|
|
314
|
+
}), $e = x(() => Q.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
315
|
+
head: R.value.head,
|
|
316
|
+
body: R.value.body
|
|
316
317
|
});
|
|
317
|
-
function
|
|
318
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
319
|
-
t ? t(s) :
|
|
318
|
+
function Ae(t = null) {
|
|
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
|
+
t ? t(s) : Ct({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
320
321
|
}
|
|
321
|
-
const
|
|
322
|
+
const ze = Be;
|
|
322
323
|
function et(t) {
|
|
323
|
-
|
|
324
|
+
ze("selectDatapoint", t);
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
326
|
+
function Te(t) {
|
|
327
|
+
ze("selectLegend", {
|
|
327
328
|
...t,
|
|
328
329
|
isSegregated: !t.isSegregated,
|
|
329
330
|
opacity: t.isSegregated ? 1 : 0.5
|
|
330
331
|
});
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
+
function Me() {
|
|
333
334
|
p.value.showTable = !p.value.showTable;
|
|
334
335
|
}
|
|
335
|
-
function
|
|
336
|
+
function Fe() {
|
|
336
337
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
+
function Se() {
|
|
339
340
|
p.value.showTooltip = !p.value.showTooltip;
|
|
340
341
|
}
|
|
341
342
|
const j = h(!1);
|
|
342
343
|
function te() {
|
|
343
344
|
j.value = !j.value;
|
|
344
345
|
}
|
|
345
|
-
|
|
346
|
+
async function tt({ scale: t = 2 } = {}) {
|
|
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
|
+
};
|
|
357
|
+
}
|
|
358
|
+
return Ee({
|
|
346
359
|
getData: Ze,
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
360
|
+
getImage: tt,
|
|
361
|
+
generateCsv: Ae,
|
|
362
|
+
generatePdf: be,
|
|
363
|
+
generateImage: xe,
|
|
364
|
+
toggleTable: Me,
|
|
365
|
+
toggleLabels: Fe,
|
|
366
|
+
toggleTooltip: Se,
|
|
367
|
+
toggleAnnotator: te,
|
|
368
|
+
toggleFullscreen: ve
|
|
354
369
|
}), (t, l) => (i(), u("div", {
|
|
355
370
|
ref_key: "pcpChart",
|
|
356
|
-
ref:
|
|
357
|
-
class:
|
|
371
|
+
ref: M,
|
|
372
|
+
class: W(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
358
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%" : ""}`),
|
|
359
374
|
id: `pcp_${q.value}`,
|
|
360
|
-
onMouseenter: l[6] || (l[6] = () => d(
|
|
361
|
-
onMouseleave: l[7] || (l[7] = () => d(
|
|
375
|
+
onMouseenter: l[6] || (l[6] = () => d(de)(!0)),
|
|
376
|
+
onMouseleave: l[7] || (l[7] = () => d(de)(!1))
|
|
362
377
|
}, [
|
|
363
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
378
|
+
e.value.userOptions.buttons.annotator ? (i(), I(d(He), {
|
|
364
379
|
key: 0,
|
|
365
|
-
svgRef: d(
|
|
380
|
+
svgRef: d(pe),
|
|
366
381
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
367
382
|
color: e.value.style.chart.color,
|
|
368
383
|
active: j.value,
|
|
@@ -381,7 +396,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
381
396
|
ref: oe,
|
|
382
397
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
383
398
|
}, [
|
|
384
|
-
(i(),
|
|
399
|
+
(i(), I(St, {
|
|
385
400
|
key: `title_${ue.value}`,
|
|
386
401
|
config: {
|
|
387
402
|
title: {
|
|
@@ -395,13 +410,13 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
395
410
|
}
|
|
396
411
|
}, null, 8, ["config"]))
|
|
397
412
|
], 512)) : m("", !0),
|
|
398
|
-
e.value.userOptions.show &&
|
|
413
|
+
e.value.userOptions.show && P.value && (d(he) || d(J)) ? (i(), I(d(Ge), {
|
|
399
414
|
ref: "details",
|
|
400
415
|
key: `user_options_${le.value}`,
|
|
401
416
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
402
417
|
color: e.value.style.chart.color,
|
|
403
|
-
isPrinting: d(
|
|
404
|
-
isImaging: d(
|
|
418
|
+
isPrinting: d(fe),
|
|
419
|
+
isImaging: d(ge),
|
|
405
420
|
uid: q.value,
|
|
406
421
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
407
422
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -410,31 +425,31 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
410
425
|
hasTable: e.value.userOptions.buttons.table,
|
|
411
426
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
412
427
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
413
|
-
isFullscreen:
|
|
428
|
+
isFullscreen: O.value,
|
|
414
429
|
isTooltip: p.value.showTooltip,
|
|
415
430
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
416
|
-
chartElement:
|
|
431
|
+
chartElement: M.value,
|
|
417
432
|
position: e.value.userOptions.position,
|
|
418
433
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
419
434
|
isAnnotation: j.value,
|
|
420
435
|
callbacks: e.value.userOptions.callbacks,
|
|
421
436
|
printScale: e.value.userOptions.print.scale,
|
|
422
|
-
onToggleFullscreen:
|
|
423
|
-
onGeneratePdf: d(
|
|
424
|
-
onGenerateCsv:
|
|
425
|
-
onGenerateImage: d(
|
|
426
|
-
onToggleTable:
|
|
427
|
-
onToggleLabels:
|
|
428
|
-
onToggleTooltip:
|
|
437
|
+
onToggleFullscreen: ve,
|
|
438
|
+
onGeneratePdf: d(be),
|
|
439
|
+
onGenerateCsv: Ae,
|
|
440
|
+
onGenerateImage: d(xe),
|
|
441
|
+
onToggleTable: Me,
|
|
442
|
+
onToggleLabels: Fe,
|
|
443
|
+
onToggleTooltip: Se,
|
|
429
444
|
onToggleAnnotator: te,
|
|
430
445
|
style: z({
|
|
431
|
-
visibility: d(
|
|
446
|
+
visibility: d(he) ? d(J) ? "visible" : "hidden" : "visible"
|
|
432
447
|
})
|
|
433
|
-
},
|
|
448
|
+
}, it({ _: 2 }, [
|
|
434
449
|
t.$slots.menuIcon ? {
|
|
435
450
|
name: "menuIcon",
|
|
436
451
|
fn: w(({ isOpen: a, color: o }) => [
|
|
437
|
-
g(t.$slots, "menuIcon",
|
|
452
|
+
g(t.$slots, "menuIcon", B(U({ isOpen: a, color: o })), void 0, !0)
|
|
438
453
|
]),
|
|
439
454
|
key: "0"
|
|
440
455
|
} : void 0,
|
|
@@ -476,28 +491,28 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
476
491
|
t.$slots.optionFullscreen ? {
|
|
477
492
|
name: "optionFullscreen",
|
|
478
493
|
fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
479
|
-
g(t.$slots, "optionFullscreen",
|
|
494
|
+
g(t.$slots, "optionFullscreen", B(U({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
480
495
|
]),
|
|
481
496
|
key: "6"
|
|
482
497
|
} : void 0,
|
|
483
498
|
t.$slots.optionAnnotator ? {
|
|
484
499
|
name: "optionAnnotator",
|
|
485
500
|
fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
486
|
-
g(t.$slots, "optionAnnotator",
|
|
501
|
+
g(t.$slots, "optionAnnotator", B(U({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
487
502
|
]),
|
|
488
503
|
key: "7"
|
|
489
504
|
} : void 0
|
|
490
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),
|
|
491
|
-
|
|
506
|
+
P.value ? (i(), u("svg", {
|
|
492
507
|
key: 4,
|
|
493
508
|
ref_key: "svgRef",
|
|
494
|
-
ref:
|
|
495
|
-
xmlns: d(
|
|
496
|
-
class:
|
|
509
|
+
ref: pe,
|
|
510
|
+
xmlns: d(xt),
|
|
511
|
+
class: W({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
497
512
|
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
498
513
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
499
514
|
}, [
|
|
500
|
-
|
|
515
|
+
_e(d(We)),
|
|
501
516
|
t.$slots["chart-background"] ? (i(), u("foreignObject", {
|
|
502
517
|
key: 0,
|
|
503
518
|
x: r.value.left,
|
|
@@ -509,16 +524,16 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
509
524
|
}
|
|
510
525
|
}, [
|
|
511
526
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
512
|
-
], 8,
|
|
513
|
-
(i(!0), u(C, null,
|
|
514
|
-
|
|
527
|
+
], 8, Dt)) : m("", !0),
|
|
528
|
+
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Rt, [
|
|
529
|
+
E("line", {
|
|
515
530
|
x1: r.value.left + k.value * o + k.value / 2,
|
|
516
531
|
x2: r.value.left + k.value * o + k.value / 2,
|
|
517
532
|
y1: r.value.top,
|
|
518
533
|
y2: r.value.bottom,
|
|
519
534
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
520
535
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
521
|
-
}, null, 8,
|
|
536
|
+
}, null, 8, Et),
|
|
522
537
|
String(a.name).includes(`
|
|
523
538
|
`) ? (i(), u("text", {
|
|
524
539
|
key: 1,
|
|
@@ -528,14 +543,14 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
528
543
|
"font-size": c.value.axisNameFontSize,
|
|
529
544
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
530
545
|
"text-anchor": "middle",
|
|
531
|
-
innerHTML: d(
|
|
546
|
+
innerHTML: d(kt)({
|
|
532
547
|
content: String(a.name),
|
|
533
548
|
fontSize: c.value.axisNameFontSize,
|
|
534
549
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
535
550
|
x: r.value.left + k.value * o + k.value / 2,
|
|
536
551
|
y: r.value.top - 24
|
|
537
552
|
})
|
|
538
|
-
}, null, 8,
|
|
553
|
+
}, null, 8, Ut)) : (i(), u("text", {
|
|
539
554
|
key: 0,
|
|
540
555
|
x: r.value.left + k.value * o + k.value / 2,
|
|
541
556
|
y: r.value.top - 24,
|
|
@@ -543,9 +558,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
543
558
|
"font-size": c.value.axisNameFontSize,
|
|
544
559
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
545
560
|
"text-anchor": "middle"
|
|
546
|
-
},
|
|
561
|
+
}, V(a.name), 9, Bt)),
|
|
547
562
|
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 2 }, [
|
|
548
|
-
(i(!0), u(C, null,
|
|
563
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("line", {
|
|
549
564
|
x1: n.x,
|
|
550
565
|
x2: n.x - 10,
|
|
551
566
|
y1: n.y,
|
|
@@ -554,7 +569,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
554
569
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
555
570
|
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
556
571
|
}, null, 12, Vt))), 256)),
|
|
557
|
-
(i(!0), u(C, null,
|
|
572
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("text", {
|
|
558
573
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
559
574
|
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
560
575
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
@@ -562,13 +577,13 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
562
577
|
"font-size": c.value.ticksFontSize,
|
|
563
578
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
564
579
|
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
565
|
-
},
|
|
580
|
+
}, V(Ce({ value: n.value, index: o, datapoint: n })), 13, Wt))), 256))
|
|
566
581
|
], 64)) : m("", !0)
|
|
567
582
|
]))), 256)),
|
|
568
|
-
(i(!0), u(C, null,
|
|
569
|
-
(i(!0), u(C, null,
|
|
570
|
-
e.value.style.chart.plots.show ? (i(), u("g",
|
|
571
|
-
(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, [
|
|
585
|
+
e.value.style.chart.plots.show ? (i(), u("g", Ht, [
|
|
586
|
+
(i(!0), u(C, null, _(o.datapoints, (s) => (i(), I(_t, {
|
|
572
587
|
plot: { x: s.x, y: s.y },
|
|
573
588
|
color: a.color,
|
|
574
589
|
shape: a.shape,
|
|
@@ -583,7 +598,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
583
598
|
seriesIndex: o.seriesIndex
|
|
584
599
|
}),
|
|
585
600
|
onMouseleave: l[0] || (l[0] = (v) => {
|
|
586
|
-
f.value = null,
|
|
601
|
+
f.value = null, D.value = !1;
|
|
587
602
|
}),
|
|
588
603
|
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
589
604
|
onClick: () => et(s)
|
|
@@ -597,9 +612,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
597
612
|
"font-size": c.value.ticksFontSize,
|
|
598
613
|
fill: a.color,
|
|
599
614
|
"font-weight": "bold"
|
|
600
|
-
},
|
|
615
|
+
}, V(o.name), 9, jt)) : m("", !0)
|
|
601
616
|
], 64)),
|
|
602
|
-
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, [
|
|
603
618
|
s.comment ? (i(), u("foreignObject", {
|
|
604
619
|
key: 0,
|
|
605
620
|
style: { overflow: "visible" },
|
|
@@ -608,21 +623,21 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
608
623
|
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
609
624
|
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
610
625
|
}, [
|
|
611
|
-
|
|
626
|
+
E("div", Gt, [
|
|
612
627
|
g(t.$slots, "plot-comment", {
|
|
613
628
|
plot: { ...s, color: a.color }
|
|
614
629
|
}, void 0, !0)
|
|
615
630
|
])
|
|
616
|
-
], 8,
|
|
631
|
+
], 8, Xt)) : m("", !0)
|
|
617
632
|
]))), 256)) : m("", !0)
|
|
618
633
|
])) : m("", !0),
|
|
619
|
-
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 },
|
|
634
|
+
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s, v) => (i(), u("text", {
|
|
620
635
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
621
636
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
622
637
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
623
638
|
"text-anchor": "start",
|
|
624
639
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
625
|
-
class:
|
|
640
|
+
class: W({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
626
641
|
"font-size": c.value.datapointFontSize,
|
|
627
642
|
onMouseenter: (A) => H({
|
|
628
643
|
shape: a.shape,
|
|
@@ -632,16 +647,16 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
632
647
|
seriesIndex: o.seriesIndex
|
|
633
648
|
}),
|
|
634
649
|
onMouseleave: l[1] || (l[1] = (A) => {
|
|
635
|
-
f.value = null,
|
|
650
|
+
f.value = null, D.value = !1;
|
|
636
651
|
}),
|
|
637
652
|
style: z(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
|
|
638
|
-
},
|
|
639
|
-
|
|
653
|
+
}, V(Ce({ value: s.value, index: v, datapoint: s })), 45, Yt))), 256)) : m("", !0),
|
|
654
|
+
E("path", {
|
|
640
655
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
641
656
|
stroke: a.color,
|
|
642
657
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
643
658
|
fill: "none",
|
|
644
|
-
class:
|
|
659
|
+
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
645
660
|
onMouseenter: (s) => H({
|
|
646
661
|
shape: a.shape,
|
|
647
662
|
serieName: a.name,
|
|
@@ -650,17 +665,17 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
650
665
|
seriesIndex: o.seriesIndex
|
|
651
666
|
}),
|
|
652
667
|
onMouseleave: l[2] || (l[2] = (s) => {
|
|
653
|
-
f.value = null,
|
|
668
|
+
f.value = null, D.value = !1;
|
|
654
669
|
}),
|
|
655
670
|
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}`)
|
|
656
|
-
}, null, 46,
|
|
671
|
+
}, null, 46, qt),
|
|
657
672
|
p.value.showTooltip ? (i(), u("path", {
|
|
658
673
|
key: 2,
|
|
659
674
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
660
675
|
stroke: "transparent",
|
|
661
676
|
"stroke-width": 12,
|
|
662
677
|
fill: "none",
|
|
663
|
-
class:
|
|
678
|
+
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
664
679
|
onMouseenter: (s) => H({
|
|
665
680
|
shape: a.shape,
|
|
666
681
|
serieName: a.name,
|
|
@@ -669,18 +684,18 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
669
684
|
seriesIndex: o.seriesIndex
|
|
670
685
|
}),
|
|
671
686
|
onMouseleave: l[3] || (l[3] = (s) => {
|
|
672
|
-
f.value = null,
|
|
687
|
+
f.value = null, D.value = !1;
|
|
673
688
|
}),
|
|
674
689
|
style: { opacity: "0" }
|
|
675
|
-
}, null, 42,
|
|
690
|
+
}, null, 42, Jt)) : m("", !0)
|
|
676
691
|
]))), 256))
|
|
677
692
|
]))), 256)),
|
|
678
693
|
g(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
679
|
-
], 14,
|
|
680
|
-
t.$slots.watermark ? (i(), u("div",
|
|
681
|
-
g(t.$slots, "watermark",
|
|
694
|
+
], 14, Lt)) : m("", !0),
|
|
695
|
+
t.$slots.watermark ? (i(), u("div", Kt, [
|
|
696
|
+
g(t.$slots, "watermark", B(U({ isPrinting: d(fe) || d(ge) })), void 0, !0)
|
|
682
697
|
])) : m("", !0),
|
|
683
|
-
|
|
698
|
+
P.value ? m("", !0) : (i(), I(d(je), {
|
|
684
699
|
key: 6,
|
|
685
700
|
config: {
|
|
686
701
|
type: "parallelCoordinatePlot",
|
|
@@ -689,30 +704,30 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
689
704
|
}
|
|
690
705
|
}
|
|
691
706
|
}, null, 8, ["config"])),
|
|
692
|
-
|
|
707
|
+
E("div", {
|
|
693
708
|
ref_key: "chartLegend",
|
|
694
709
|
ref: se
|
|
695
710
|
}, [
|
|
696
|
-
e.value.style.chart.legend.show &&
|
|
711
|
+
e.value.style.chart.legend.show && P.value ? (i(), I(It, {
|
|
697
712
|
key: `legend_${re.value}`,
|
|
698
713
|
legendSet: Ke.value,
|
|
699
714
|
config: Qe.value,
|
|
700
715
|
onClickMarker: l[4] || (l[4] = ({ legend: a }) => {
|
|
701
|
-
|
|
716
|
+
ke(a.id), Te(a);
|
|
702
717
|
})
|
|
703
718
|
}, {
|
|
704
719
|
item: w(({ legend: a, index: o }) => [
|
|
705
|
-
|
|
720
|
+
E("div", {
|
|
706
721
|
onClick: (n) => {
|
|
707
|
-
a.segregate(),
|
|
722
|
+
a.segregate(), Te(a);
|
|
708
723
|
},
|
|
709
724
|
style: z(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
|
|
710
|
-
},
|
|
725
|
+
}, V(a.name), 13, Qt)
|
|
711
726
|
]),
|
|
712
727
|
_: 1
|
|
713
728
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
714
729
|
key: 1,
|
|
715
|
-
legend:
|
|
730
|
+
legend: S.value
|
|
716
731
|
}, void 0, !0)
|
|
717
732
|
], 512),
|
|
718
733
|
t.$slots.source ? (i(), u("div", {
|
|
@@ -723,8 +738,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
723
738
|
}, [
|
|
724
739
|
g(t.$slots, "source", {}, void 0, !0)
|
|
725
740
|
], 512)) : m("", !0),
|
|
726
|
-
|
|
727
|
-
show: p.value.showTooltip &&
|
|
741
|
+
_e(d(Xe), {
|
|
742
|
+
show: p.value.showTooltip && D.value,
|
|
728
743
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
729
744
|
color: e.value.style.chart.tooltip.color,
|
|
730
745
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -734,20 +749,20 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
734
749
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
735
750
|
position: e.value.style.chart.tooltip.position,
|
|
736
751
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
737
|
-
parent:
|
|
752
|
+
parent: M.value,
|
|
738
753
|
content: ee.value,
|
|
739
|
-
isFullscreen:
|
|
740
|
-
isCustom: d(
|
|
754
|
+
isFullscreen: O.value,
|
|
755
|
+
isCustom: d(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
741
756
|
}, {
|
|
742
757
|
"tooltip-before": w(() => [
|
|
743
|
-
g(t.$slots, "tooltip-before",
|
|
758
|
+
g(t.$slots, "tooltip-before", B(U({ ...Z.value })), void 0, !0)
|
|
744
759
|
]),
|
|
745
760
|
"tooltip-after": w(() => [
|
|
746
|
-
g(t.$slots, "tooltip-after",
|
|
761
|
+
g(t.$slots, "tooltip-after", B(U({ ...Z.value })), void 0, !0)
|
|
747
762
|
]),
|
|
748
763
|
_: 3
|
|
749
764
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
750
|
-
|
|
765
|
+
P.value ? (i(), I(d(Ue), {
|
|
751
766
|
key: 8,
|
|
752
767
|
hideDetails: "",
|
|
753
768
|
config: {
|
|
@@ -764,29 +779,29 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
764
779
|
}
|
|
765
780
|
}, {
|
|
766
781
|
content: w(() => [
|
|
767
|
-
(i(),
|
|
782
|
+
(i(), I(d(Ve), {
|
|
768
783
|
key: `table_${ce.value}`,
|
|
769
|
-
colNames:
|
|
770
|
-
head:
|
|
771
|
-
body:
|
|
772
|
-
config:
|
|
784
|
+
colNames: R.value.colNames,
|
|
785
|
+
head: R.value.head,
|
|
786
|
+
body: R.value.body,
|
|
787
|
+
config: R.value.config,
|
|
773
788
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
774
789
|
onClose: l[5] || (l[5] = (a) => p.value.showTable = !1)
|
|
775
790
|
}, {
|
|
776
791
|
th: w(({ th: a }) => [
|
|
777
|
-
|
|
792
|
+
E("div", { innerHTML: a }, null, 8, Zt)
|
|
778
793
|
]),
|
|
779
794
|
td: w(({ td: a }) => [
|
|
780
|
-
|
|
795
|
+
ut(V(a), 1)
|
|
781
796
|
]),
|
|
782
797
|
_: 1
|
|
783
798
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
784
799
|
]),
|
|
785
800
|
_: 1
|
|
786
801
|
}, 8, ["config"])) : m("", !0)
|
|
787
|
-
], 46,
|
|
802
|
+
], 46, Ot));
|
|
788
803
|
}
|
|
789
|
-
},
|
|
804
|
+
}, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-6d00a0ec"]]);
|
|
790
805
|
export {
|
|
791
|
-
|
|
806
|
+
ha as default
|
|
792
807
|
};
|