vue-data-ui 3.0.0-next.0 → 3.0.0-next.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 +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -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 It from "./Legend-
|
|
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-BzfnuLnw.js";
|
|
3
|
+
import { t as At, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as De } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as Tt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ft } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import St from "./Title-pVYRzQXY.js";
|
|
9
|
+
import It from "./Legend-CYbP3Kfg.js";
|
|
10
|
+
import { _ as _t } from "./Shape-DBXkGxKt.js";
|
|
11
|
+
import Nt from "./img-ku4zevVD.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-DgZK-qDz.js")), Ve = N(() => import("./DataTable-CgL0Rz0x.js")), We = N(() => import("./PackageVersion-CAkNkiIG.js")), He = N(() => import("./PenAndPaper-Cx1-5zdD.js")), je = N(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Xe = N(() => import("./Tooltip-NwATo4ZJ.js")), Ge = N(() => import("./UserOptions-DAsRxxrf.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(), I(d(
|
|
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(), 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,30 +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
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
436
|
+
printScale: e.value.userOptions.print.scale,
|
|
437
|
+
onToggleFullscreen: ve,
|
|
438
|
+
onGeneratePdf: d(be),
|
|
439
|
+
onGenerateCsv: Ae,
|
|
440
|
+
onGenerateImage: d(xe),
|
|
441
|
+
onToggleTable: Me,
|
|
442
|
+
onToggleLabels: Fe,
|
|
443
|
+
onToggleTooltip: Se,
|
|
428
444
|
onToggleAnnotator: te,
|
|
429
445
|
style: z({
|
|
430
|
-
visibility: d(
|
|
446
|
+
visibility: d(he) ? d(J) ? "visible" : "hidden" : "visible"
|
|
431
447
|
})
|
|
432
|
-
},
|
|
448
|
+
}, it({ _: 2 }, [
|
|
433
449
|
t.$slots.menuIcon ? {
|
|
434
450
|
name: "menuIcon",
|
|
435
451
|
fn: w(({ isOpen: a, color: o }) => [
|
|
436
|
-
g(t.$slots, "menuIcon",
|
|
452
|
+
g(t.$slots, "menuIcon", B(U({ isOpen: a, color: o })), void 0, !0)
|
|
437
453
|
]),
|
|
438
454
|
key: "0"
|
|
439
455
|
} : void 0,
|
|
@@ -475,28 +491,28 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
475
491
|
t.$slots.optionFullscreen ? {
|
|
476
492
|
name: "optionFullscreen",
|
|
477
493
|
fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
478
|
-
g(t.$slots, "optionFullscreen",
|
|
494
|
+
g(t.$slots, "optionFullscreen", B(U({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
479
495
|
]),
|
|
480
496
|
key: "6"
|
|
481
497
|
} : void 0,
|
|
482
498
|
t.$slots.optionAnnotator ? {
|
|
483
499
|
name: "optionAnnotator",
|
|
484
500
|
fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
485
|
-
g(t.$slots, "optionAnnotator",
|
|
501
|
+
g(t.$slots, "optionAnnotator", B(U({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
486
502
|
]),
|
|
487
503
|
key: "7"
|
|
488
504
|
} : void 0
|
|
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
|
-
|
|
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),
|
|
506
|
+
P.value ? (i(), u("svg", {
|
|
491
507
|
key: 4,
|
|
492
508
|
ref_key: "svgRef",
|
|
493
|
-
ref:
|
|
494
|
-
xmlns: d(
|
|
495
|
-
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 }),
|
|
496
512
|
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
497
513
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
498
514
|
}, [
|
|
499
|
-
|
|
515
|
+
_e(d(We)),
|
|
500
516
|
t.$slots["chart-background"] ? (i(), u("foreignObject", {
|
|
501
517
|
key: 0,
|
|
502
518
|
x: r.value.left,
|
|
@@ -508,16 +524,16 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
508
524
|
}
|
|
509
525
|
}, [
|
|
510
526
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
511
|
-
], 8,
|
|
512
|
-
(i(!0), u(C, null,
|
|
513
|
-
|
|
527
|
+
], 8, Dt)) : m("", !0),
|
|
528
|
+
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Rt, [
|
|
529
|
+
E("line", {
|
|
514
530
|
x1: r.value.left + k.value * o + k.value / 2,
|
|
515
531
|
x2: r.value.left + k.value * o + k.value / 2,
|
|
516
532
|
y1: r.value.top,
|
|
517
533
|
y2: r.value.bottom,
|
|
518
534
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
519
535
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
520
|
-
}, null, 8,
|
|
536
|
+
}, null, 8, Et),
|
|
521
537
|
String(a.name).includes(`
|
|
522
538
|
`) ? (i(), u("text", {
|
|
523
539
|
key: 1,
|
|
@@ -527,14 +543,14 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
527
543
|
"font-size": c.value.axisNameFontSize,
|
|
528
544
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
529
545
|
"text-anchor": "middle",
|
|
530
|
-
innerHTML: d(
|
|
546
|
+
innerHTML: d(kt)({
|
|
531
547
|
content: String(a.name),
|
|
532
548
|
fontSize: c.value.axisNameFontSize,
|
|
533
549
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
534
550
|
x: r.value.left + k.value * o + k.value / 2,
|
|
535
551
|
y: r.value.top - 24
|
|
536
552
|
})
|
|
537
|
-
}, null, 8,
|
|
553
|
+
}, null, 8, Ut)) : (i(), u("text", {
|
|
538
554
|
key: 0,
|
|
539
555
|
x: r.value.left + k.value * o + k.value / 2,
|
|
540
556
|
y: r.value.top - 24,
|
|
@@ -542,9 +558,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
542
558
|
"font-size": c.value.axisNameFontSize,
|
|
543
559
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
544
560
|
"text-anchor": "middle"
|
|
545
|
-
},
|
|
561
|
+
}, V(a.name), 9, Bt)),
|
|
546
562
|
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 2 }, [
|
|
547
|
-
(i(!0), u(C, null,
|
|
563
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("line", {
|
|
548
564
|
x1: n.x,
|
|
549
565
|
x2: n.x - 10,
|
|
550
566
|
y1: n.y,
|
|
@@ -553,7 +569,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
553
569
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
554
570
|
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
555
571
|
}, null, 12, Vt))), 256)),
|
|
556
|
-
(i(!0), u(C, null,
|
|
572
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("text", {
|
|
557
573
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
558
574
|
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
559
575
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
@@ -561,13 +577,13 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
561
577
|
"font-size": c.value.ticksFontSize,
|
|
562
578
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
563
579
|
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
564
|
-
},
|
|
580
|
+
}, V(Ce({ value: n.value, index: o, datapoint: n })), 13, Wt))), 256))
|
|
565
581
|
], 64)) : m("", !0)
|
|
566
582
|
]))), 256)),
|
|
567
|
-
(i(!0), u(C, null,
|
|
568
|
-
(i(!0), u(C, null,
|
|
569
|
-
e.value.style.chart.plots.show ? (i(), u("g",
|
|
570
|
-
(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, {
|
|
571
587
|
plot: { x: s.x, y: s.y },
|
|
572
588
|
color: a.color,
|
|
573
589
|
shape: a.shape,
|
|
@@ -582,7 +598,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
582
598
|
seriesIndex: o.seriesIndex
|
|
583
599
|
}),
|
|
584
600
|
onMouseleave: l[0] || (l[0] = (v) => {
|
|
585
|
-
f.value = null,
|
|
601
|
+
f.value = null, D.value = !1;
|
|
586
602
|
}),
|
|
587
603
|
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
588
604
|
onClick: () => et(s)
|
|
@@ -596,9 +612,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
596
612
|
"font-size": c.value.ticksFontSize,
|
|
597
613
|
fill: a.color,
|
|
598
614
|
"font-weight": "bold"
|
|
599
|
-
},
|
|
615
|
+
}, V(o.name), 9, jt)) : m("", !0)
|
|
600
616
|
], 64)),
|
|
601
|
-
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, [
|
|
602
618
|
s.comment ? (i(), u("foreignObject", {
|
|
603
619
|
key: 0,
|
|
604
620
|
style: { overflow: "visible" },
|
|
@@ -607,21 +623,21 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
607
623
|
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
608
624
|
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
609
625
|
}, [
|
|
610
|
-
|
|
626
|
+
E("div", Gt, [
|
|
611
627
|
g(t.$slots, "plot-comment", {
|
|
612
628
|
plot: { ...s, color: a.color }
|
|
613
629
|
}, void 0, !0)
|
|
614
630
|
])
|
|
615
|
-
], 8,
|
|
631
|
+
], 8, Xt)) : m("", !0)
|
|
616
632
|
]))), 256)) : m("", !0)
|
|
617
633
|
])) : m("", !0),
|
|
618
|
-
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", {
|
|
619
635
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
620
636
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
621
637
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
622
638
|
"text-anchor": "start",
|
|
623
639
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
624
|
-
class:
|
|
640
|
+
class: W({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
625
641
|
"font-size": c.value.datapointFontSize,
|
|
626
642
|
onMouseenter: (A) => H({
|
|
627
643
|
shape: a.shape,
|
|
@@ -631,16 +647,16 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
631
647
|
seriesIndex: o.seriesIndex
|
|
632
648
|
}),
|
|
633
649
|
onMouseleave: l[1] || (l[1] = (A) => {
|
|
634
|
-
f.value = null,
|
|
650
|
+
f.value = null, D.value = !1;
|
|
635
651
|
}),
|
|
636
652
|
style: z(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
|
|
637
|
-
},
|
|
638
|
-
|
|
653
|
+
}, V(Ce({ value: s.value, index: v, datapoint: s })), 45, Yt))), 256)) : m("", !0),
|
|
654
|
+
E("path", {
|
|
639
655
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
640
656
|
stroke: a.color,
|
|
641
657
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
642
658
|
fill: "none",
|
|
643
|
-
class:
|
|
659
|
+
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
644
660
|
onMouseenter: (s) => H({
|
|
645
661
|
shape: a.shape,
|
|
646
662
|
serieName: a.name,
|
|
@@ -649,17 +665,17 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
649
665
|
seriesIndex: o.seriesIndex
|
|
650
666
|
}),
|
|
651
667
|
onMouseleave: l[2] || (l[2] = (s) => {
|
|
652
|
-
f.value = null,
|
|
668
|
+
f.value = null, D.value = !1;
|
|
653
669
|
}),
|
|
654
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}`)
|
|
655
|
-
}, null, 46,
|
|
671
|
+
}, null, 46, qt),
|
|
656
672
|
p.value.showTooltip ? (i(), u("path", {
|
|
657
673
|
key: 2,
|
|
658
674
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
659
675
|
stroke: "transparent",
|
|
660
676
|
"stroke-width": 12,
|
|
661
677
|
fill: "none",
|
|
662
|
-
class:
|
|
678
|
+
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
663
679
|
onMouseenter: (s) => H({
|
|
664
680
|
shape: a.shape,
|
|
665
681
|
serieName: a.name,
|
|
@@ -668,18 +684,18 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
668
684
|
seriesIndex: o.seriesIndex
|
|
669
685
|
}),
|
|
670
686
|
onMouseleave: l[3] || (l[3] = (s) => {
|
|
671
|
-
f.value = null,
|
|
687
|
+
f.value = null, D.value = !1;
|
|
672
688
|
}),
|
|
673
689
|
style: { opacity: "0" }
|
|
674
|
-
}, null, 42,
|
|
690
|
+
}, null, 42, Jt)) : m("", !0)
|
|
675
691
|
]))), 256))
|
|
676
692
|
]))), 256)),
|
|
677
693
|
g(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
678
|
-
], 14,
|
|
679
|
-
t.$slots.watermark ? (i(), u("div",
|
|
680
|
-
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)
|
|
681
697
|
])) : m("", !0),
|
|
682
|
-
|
|
698
|
+
P.value ? m("", !0) : (i(), I(d(je), {
|
|
683
699
|
key: 6,
|
|
684
700
|
config: {
|
|
685
701
|
type: "parallelCoordinatePlot",
|
|
@@ -688,30 +704,30 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
688
704
|
}
|
|
689
705
|
}
|
|
690
706
|
}, null, 8, ["config"])),
|
|
691
|
-
|
|
707
|
+
E("div", {
|
|
692
708
|
ref_key: "chartLegend",
|
|
693
709
|
ref: se
|
|
694
710
|
}, [
|
|
695
|
-
e.value.style.chart.legend.show &&
|
|
711
|
+
e.value.style.chart.legend.show && P.value ? (i(), I(It, {
|
|
696
712
|
key: `legend_${re.value}`,
|
|
697
713
|
legendSet: Ke.value,
|
|
698
714
|
config: Qe.value,
|
|
699
715
|
onClickMarker: l[4] || (l[4] = ({ legend: a }) => {
|
|
700
|
-
|
|
716
|
+
ke(a.id), Te(a);
|
|
701
717
|
})
|
|
702
718
|
}, {
|
|
703
719
|
item: w(({ legend: a, index: o }) => [
|
|
704
|
-
|
|
720
|
+
E("div", {
|
|
705
721
|
onClick: (n) => {
|
|
706
|
-
a.segregate(),
|
|
722
|
+
a.segregate(), Te(a);
|
|
707
723
|
},
|
|
708
724
|
style: z(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
|
|
709
|
-
},
|
|
725
|
+
}, V(a.name), 13, Qt)
|
|
710
726
|
]),
|
|
711
727
|
_: 1
|
|
712
728
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
713
729
|
key: 1,
|
|
714
|
-
legend:
|
|
730
|
+
legend: S.value
|
|
715
731
|
}, void 0, !0)
|
|
716
732
|
], 512),
|
|
717
733
|
t.$slots.source ? (i(), u("div", {
|
|
@@ -722,8 +738,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
722
738
|
}, [
|
|
723
739
|
g(t.$slots, "source", {}, void 0, !0)
|
|
724
740
|
], 512)) : m("", !0),
|
|
725
|
-
|
|
726
|
-
show: p.value.showTooltip &&
|
|
741
|
+
_e(d(Xe), {
|
|
742
|
+
show: p.value.showTooltip && D.value,
|
|
727
743
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
728
744
|
color: e.value.style.chart.tooltip.color,
|
|
729
745
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -733,20 +749,20 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
733
749
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
734
750
|
position: e.value.style.chart.tooltip.position,
|
|
735
751
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
736
|
-
parent:
|
|
752
|
+
parent: M.value,
|
|
737
753
|
content: ee.value,
|
|
738
|
-
isFullscreen:
|
|
739
|
-
isCustom: d(
|
|
754
|
+
isFullscreen: O.value,
|
|
755
|
+
isCustom: d(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
740
756
|
}, {
|
|
741
757
|
"tooltip-before": w(() => [
|
|
742
|
-
g(t.$slots, "tooltip-before",
|
|
758
|
+
g(t.$slots, "tooltip-before", B(U({ ...Z.value })), void 0, !0)
|
|
743
759
|
]),
|
|
744
760
|
"tooltip-after": w(() => [
|
|
745
|
-
g(t.$slots, "tooltip-after",
|
|
761
|
+
g(t.$slots, "tooltip-after", B(U({ ...Z.value })), void 0, !0)
|
|
746
762
|
]),
|
|
747
763
|
_: 3
|
|
748
764
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
749
|
-
|
|
765
|
+
P.value ? (i(), I(d(Ue), {
|
|
750
766
|
key: 8,
|
|
751
767
|
hideDetails: "",
|
|
752
768
|
config: {
|
|
@@ -763,29 +779,29 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
763
779
|
}
|
|
764
780
|
}, {
|
|
765
781
|
content: w(() => [
|
|
766
|
-
(i(), I(d(
|
|
782
|
+
(i(), I(d(Ve), {
|
|
767
783
|
key: `table_${ce.value}`,
|
|
768
|
-
colNames:
|
|
769
|
-
head:
|
|
770
|
-
body:
|
|
771
|
-
config:
|
|
784
|
+
colNames: R.value.colNames,
|
|
785
|
+
head: R.value.head,
|
|
786
|
+
body: R.value.body,
|
|
787
|
+
config: R.value.config,
|
|
772
788
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
773
789
|
onClose: l[5] || (l[5] = (a) => p.value.showTable = !1)
|
|
774
790
|
}, {
|
|
775
791
|
th: w(({ th: a }) => [
|
|
776
|
-
|
|
792
|
+
E("div", { innerHTML: a }, null, 8, Zt)
|
|
777
793
|
]),
|
|
778
794
|
td: w(({ td: a }) => [
|
|
779
|
-
|
|
795
|
+
ut(V(a), 1)
|
|
780
796
|
]),
|
|
781
797
|
_: 1
|
|
782
798
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
783
799
|
]),
|
|
784
800
|
_: 1
|
|
785
801
|
}, 8, ["config"])) : m("", !0)
|
|
786
|
-
], 46,
|
|
802
|
+
], 46, Ot));
|
|
787
803
|
}
|
|
788
|
-
},
|
|
804
|
+
}, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-0e1743f3"]]);
|
|
789
805
|
export {
|
|
790
|
-
|
|
806
|
+
ha as default
|
|
791
807
|
};
|