vue-data-ui 3.1.0 → 3.1.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/dist/{Arrow-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, computed as y, ref as d, toRefs 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 { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { defineAsyncComponent as O, computed as y, ref as d, toRefs as zt, watch as Z, shallowRef as Xe, onMounted as _t, onBeforeUnmount as Mt, watchEffect as Nt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as M, normalizeClass as X, createBlock as N, createCommentVNode as m, createElementVNode as F, createVNode as pe, createSlots as Ye, withCtx as b, renderSlot as g, normalizeProps as W, guardReactiveProps as U, Fragment as A, renderList as I, toDisplayString as B, Teleport as Ft, resolveDynamicComponent as It, mergeProps as Lt, createTextVNode as qe, nextTick as Pt } from "vue";
|
|
2
|
+
import { u as Ot, c as me, t as St, a as Dt, p as ee, b as Rt, o as Je, f as Ke, g as Bt, d as Et, e as Ht, D as Wt, U as Ut, V as Vt, W as jt, X as Gt, I as Xt, y as Qe, E as te, v as Yt, w as qt, k as Ze, i as et, z as Jt } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as tt, u as Kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Qt } from "./usePrinter-DDIKRiOp.js";
|
|
5
|
+
import { u as Zt, B as ea } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as at } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as ta } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as aa } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as la } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import oa from "./Title-AGmmsSi_.js";
|
|
11
|
+
import sa from "./Legend-DLzeDl3-.js";
|
|
12
|
+
import { _ as na } from "./Shape-Bmpx9GRg.js";
|
|
13
|
+
import ia from "./img-DvuphHeJ.js";
|
|
14
|
+
import { _ as ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "width", "height"], ha = { style: { "pointer-events": "none" } }, pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ya = { key: 0 }, fa = ["x", "y", "fill", "font-size", "font-weight"], ba = ["fill", "font-size", "font-weight", "text-anchor", "transform"], ga = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], xa = { key: 0 }, ka = ["x", "y", "font-size", "fill"], wa = ["width", "x", "y"], Ca = { style: { width: "100%" } }, Aa = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], $a = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ta = ["d", "onMouseenter", "onMouseleave", "onClick"], za = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, _a = ["id"], Ma = ["onClick"], Na = ["innerHTML"], Fa = {
|
|
19
19
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,25 +32,25 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
35
|
+
setup(lt, { expose: ot, emit: st }) {
|
|
36
|
+
const nt = O(() => import("./Tooltip-le0yZk_t.js")), it = O(() => import("./BaseIcon-BLg8FaQ2.js")), ut = O(() => import("./vue-ui-accordion-Cv747Pg6.js")), rt = O(() => import("./DataTable-BRN1-1ob.js")), ct = O(() => import("./PenAndPaper-TgGWddgD.js")), vt = O(() => import("./UserOptions-DEFwuQIo.js")), dt = O(() => import("./PackageVersion-Jz9FlNXl.js")), ht = O(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_parallel_coordinate_plot: pt } = Ot(), $ = lt, Y = y({
|
|
37
37
|
get() {
|
|
38
38
|
return !!$.dataset && $.dataset.length;
|
|
39
39
|
},
|
|
40
|
-
set(
|
|
41
|
-
return
|
|
40
|
+
set(t) {
|
|
41
|
+
return t;
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
44
|
-
function
|
|
45
|
-
D.value =
|
|
43
|
+
}), ye = d(0), z = d(null), fe = d(null), be = d(null), ge = d(null), xe = d(null), ke = d(0), we = d(0), Ce = d(0), Ae = d(!1), V = d(null), ae = d(null), le = d(null), S = d(me()), D = d(!1);
|
|
44
|
+
function $e(t) {
|
|
45
|
+
D.value = t, ye.value += 1;
|
|
46
46
|
}
|
|
47
|
-
const e = d(
|
|
48
|
-
|
|
47
|
+
const e = d(ne()), { loading: R, FINAL_DATASET: mt, manualLoading: oe } = Zt({
|
|
48
|
+
...zt($),
|
|
49
49
|
FINAL_CONFIG: e,
|
|
50
|
-
prepareConfig:
|
|
50
|
+
prepareConfig: ne,
|
|
51
51
|
callback: () => {
|
|
52
52
|
Promise.resolve().then(async () => {
|
|
53
|
-
await
|
|
53
|
+
await Pt(), p.value.showTable = e.value.table.show;
|
|
54
54
|
});
|
|
55
55
|
},
|
|
56
56
|
skeletonDataset: [
|
|
@@ -88,7 +88,7 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
88
88
|
]
|
|
89
89
|
}
|
|
90
90
|
],
|
|
91
|
-
skeletonConfig:
|
|
91
|
+
skeletonConfig: St({
|
|
92
92
|
defaultConfig: e.value,
|
|
93
93
|
userConfig: {
|
|
94
94
|
useCssAnimation: !1,
|
|
@@ -115,78 +115,78 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
})
|
|
118
|
-
}), { userOptionsVisible:
|
|
119
|
-
function
|
|
120
|
-
const
|
|
118
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: Te, keepUserOptionState: ze } = ta({ config: e.value }), { svgRef: _e } = aa({ config: e.value.style.chart.title });
|
|
119
|
+
function ne() {
|
|
120
|
+
const t = at({
|
|
121
121
|
userConfig: $.config,
|
|
122
|
-
defaultConfig:
|
|
122
|
+
defaultConfig: pt
|
|
123
123
|
});
|
|
124
|
-
return
|
|
125
|
-
...
|
|
126
|
-
userConfig:
|
|
127
|
-
defaultConfig:
|
|
124
|
+
return t.theme ? {
|
|
125
|
+
...at({
|
|
126
|
+
userConfig: Rt.vue_ui_parallel_coordinate_plot[t.theme] || $.config,
|
|
127
|
+
defaultConfig: t
|
|
128
128
|
}),
|
|
129
|
-
customPalette:
|
|
130
|
-
} :
|
|
129
|
+
customPalette: Dt[t.theme] || ee
|
|
130
|
+
} : t;
|
|
131
131
|
}
|
|
132
|
-
Z(() => $.config, (
|
|
133
|
-
R.value || (e.value =
|
|
134
|
-
}, { deep: !0 }), Z(() => $.dataset, (
|
|
135
|
-
Array.isArray(
|
|
132
|
+
Z(() => $.config, (t) => {
|
|
133
|
+
R.value || (e.value = ne()), se.value = !e.value.userOptions.showOnChartHover, Ne(), ke.value += 1, Ce.value += 1, we.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;
|
|
134
|
+
}, { deep: !0 }), Z(() => $.dataset, (t) => {
|
|
135
|
+
Array.isArray(t) && t.length > 0 && (oe.value = !1);
|
|
136
136
|
}, { deep: !0 });
|
|
137
|
-
const L =
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
const L = Xe(null), E = Xe(null);
|
|
138
|
+
_t(() => {
|
|
139
|
+
Ae.value = !0, Ne();
|
|
140
140
|
});
|
|
141
141
|
const Me = y(() => !!e.value.debug);
|
|
142
142
|
function Ne() {
|
|
143
|
-
if (
|
|
143
|
+
if (Je($.dataset) ? (Ke({
|
|
144
144
|
componentName: "VueUiParallelCoordinatePlot",
|
|
145
145
|
type: "dataset",
|
|
146
146
|
debug: Me.value
|
|
147
|
-
}),
|
|
148
|
-
|
|
149
|
-
datasetObject:
|
|
147
|
+
}), oe.value = !0) : $.dataset.forEach((t, o) => {
|
|
148
|
+
Bt({
|
|
149
|
+
datasetObject: t,
|
|
150
150
|
requiredAttributes: ["name", "series"]
|
|
151
|
-
}).forEach((
|
|
152
|
-
Y.value = !1,
|
|
151
|
+
}).forEach((a) => {
|
|
152
|
+
Y.value = !1, Ke({
|
|
153
153
|
componentName: "VueUiParallelCoordinatePlot",
|
|
154
154
|
type: "datasetSerieAttribute",
|
|
155
|
-
property:
|
|
156
|
-
index:
|
|
155
|
+
property: a,
|
|
156
|
+
index: o,
|
|
157
157
|
debug: Me.value
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
-
}),
|
|
161
|
-
const
|
|
162
|
-
const { width:
|
|
160
|
+
}), Je($.dataset) || (oe.value = e.value.loading), e.value.responsive) {
|
|
161
|
+
const t = tt(() => {
|
|
162
|
+
const { width: o, height: a } = Kt({
|
|
163
163
|
chart: z.value,
|
|
164
|
-
title: e.value.style.chart.title.text ?
|
|
165
|
-
legend: e.value.style.chart.legend.show ?
|
|
166
|
-
source:
|
|
167
|
-
noTitle:
|
|
164
|
+
title: e.value.style.chart.title.text ? fe.value : null,
|
|
165
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
166
|
+
source: ge.value,
|
|
167
|
+
noTitle: xe.value
|
|
168
168
|
});
|
|
169
169
|
requestAnimationFrame(() => {
|
|
170
|
-
c.value.width =
|
|
171
|
-
relator: Math.min(
|
|
170
|
+
c.value.width = o, c.value.height = a - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize = te({
|
|
171
|
+
relator: Math.min(o, a),
|
|
172
172
|
adjuster: 600,
|
|
173
173
|
source: e.value.style.chart.plots.radius,
|
|
174
174
|
threshold: 2,
|
|
175
175
|
fallback: 2
|
|
176
176
|
}), c.value.ticksFontSize = te({
|
|
177
|
-
relator: Math.min(
|
|
177
|
+
relator: Math.min(o, a),
|
|
178
178
|
adjuster: 600,
|
|
179
179
|
source: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
180
180
|
threshold: 10,
|
|
181
181
|
fallback: 10
|
|
182
182
|
}), c.value.datapointFontSize = te({
|
|
183
|
-
relator: Math.min(
|
|
183
|
+
relator: Math.min(o, a),
|
|
184
184
|
adjuster: 600,
|
|
185
185
|
source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
186
186
|
threshold: 10,
|
|
187
187
|
fallback: 10
|
|
188
188
|
}), c.value.axisNameFontSize = te({
|
|
189
|
-
relator: Math.min(
|
|
189
|
+
relator: Math.min(o, a),
|
|
190
190
|
adjuster: 600,
|
|
191
191
|
source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
192
192
|
threshold: 12,
|
|
@@ -194,17 +194,17 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
194
194
|
})) : (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);
|
|
195
195
|
});
|
|
196
196
|
});
|
|
197
|
-
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect()), L.value = new ResizeObserver(
|
|
197
|
+
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect()), L.value = new ResizeObserver(t), E.value = z.value.parentNode, L.value.observe(E.value);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
Mt(() => {
|
|
201
201
|
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect());
|
|
202
202
|
});
|
|
203
|
-
const { isPrinting: Fe, isImaging:
|
|
203
|
+
const { isPrinting: Fe, isImaging: Ie, generatePdf: Le, generateImage: Pe } = Qt({
|
|
204
204
|
elementId: `pcp_${S.value}`,
|
|
205
205
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
206
206
|
options: e.value.userOptions.print
|
|
207
|
-
}),
|
|
207
|
+
}), yt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
|
|
208
208
|
height: e.value.style.chart.height,
|
|
209
209
|
width: e.value.style.chart.width,
|
|
210
210
|
plotSize: e.value.style.chart.plots.radius,
|
|
@@ -213,30 +213,30 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
213
213
|
// ratio 42.85
|
|
214
214
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
215
215
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
216
|
-
}),
|
|
217
|
-
j.value =
|
|
216
|
+
}), Oe = y(() => c.value.width), Se = y(() => c.value.height), j = d(0), ft = tt((t) => {
|
|
217
|
+
j.value = t;
|
|
218
218
|
}, 100);
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
if (!
|
|
222
|
-
const
|
|
223
|
-
|
|
219
|
+
Nt((t) => {
|
|
220
|
+
const o = le.value;
|
|
221
|
+
if (!o) return;
|
|
222
|
+
const a = new ResizeObserver((s) => {
|
|
223
|
+
ft(s[0].contentRect.height);
|
|
224
224
|
});
|
|
225
|
-
|
|
225
|
+
a.observe(o), t(() => a.disconnect());
|
|
226
226
|
});
|
|
227
227
|
const h = y(() => {
|
|
228
|
-
const { top:
|
|
228
|
+
const { top: t, right: o, bottom: a, left: s } = e.value.style.chart.padding, l = Se.value, r = Oe.value;
|
|
229
229
|
return {
|
|
230
|
-
chartHeight: Math.max(1e-3,
|
|
230
|
+
chartHeight: Math.max(1e-3, l),
|
|
231
231
|
chartWidth: Math.max(1e-3, r),
|
|
232
|
-
height: Math.max(1e-3,
|
|
233
|
-
width: Math.max(1e-3, r - s -
|
|
234
|
-
top:
|
|
232
|
+
height: Math.max(1e-3, l - t - a - j.value - c.value.datapointFontSize * 2),
|
|
233
|
+
width: Math.max(1e-3, r - s - o),
|
|
234
|
+
top: t + j.value + c.value.datapointFontSize,
|
|
235
235
|
left: s,
|
|
236
|
-
right: r -
|
|
237
|
-
bottom:
|
|
236
|
+
right: r - o,
|
|
237
|
+
bottom: l - a - c.value.datapointFontSize
|
|
238
238
|
};
|
|
239
|
-
}),
|
|
239
|
+
}), bt = y(() => Et(e.value.customPalette)), p = d({
|
|
240
240
|
dataLabels: {
|
|
241
241
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
242
242
|
},
|
|
@@ -252,146 +252,146 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
252
252
|
showTooltip: e.value.style.chart.tooltip.show
|
|
253
253
|
};
|
|
254
254
|
}, { immediate: !0 });
|
|
255
|
-
const
|
|
256
|
-
function
|
|
257
|
-
|
|
255
|
+
const _ = d([]);
|
|
256
|
+
function De(t) {
|
|
257
|
+
_.value.includes(t) ? _.value = _.value.filter((o) => o !== t) : _.value.push(t);
|
|
258
258
|
}
|
|
259
|
-
const P = y(() =>
|
|
260
|
-
const
|
|
259
|
+
const P = y(() => mt.value.map((t, o) => {
|
|
260
|
+
const a = Ht(t.color) || bt.value[o] || ee[o] || ee[o % ee.length];
|
|
261
261
|
return {
|
|
262
|
-
...
|
|
263
|
-
series:
|
|
262
|
+
...t,
|
|
263
|
+
series: t.series.map((s) => ({
|
|
264
264
|
...s,
|
|
265
|
-
id:
|
|
266
|
-
color:
|
|
265
|
+
id: me(),
|
|
266
|
+
color: a
|
|
267
267
|
})),
|
|
268
|
-
seriesIndex:
|
|
269
|
-
color:
|
|
270
|
-
id:
|
|
271
|
-
shape:
|
|
268
|
+
seriesIndex: o,
|
|
269
|
+
color: a,
|
|
270
|
+
id: me(),
|
|
271
|
+
shape: t.shape || "circle"
|
|
272
272
|
};
|
|
273
|
-
})),
|
|
274
|
-
...
|
|
275
|
-
opacity:
|
|
276
|
-
segregate: () =>
|
|
277
|
-
isSegregated:
|
|
278
|
-
}))),
|
|
273
|
+
})), gt = y(() => P.value.map((t) => ({
|
|
274
|
+
...t,
|
|
275
|
+
opacity: _.value.includes(t.id) ? 0.5 : 1,
|
|
276
|
+
segregate: () => De(t.id),
|
|
277
|
+
isSegregated: _.value.includes(t.id)
|
|
278
|
+
}))), xt = y(() => ({
|
|
279
279
|
cy: "pcp-div-legend",
|
|
280
280
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
281
281
|
color: e.value.style.chart.legend.color,
|
|
282
282
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
283
283
|
paddingBottom: 12,
|
|
284
284
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
285
|
-
})),
|
|
286
|
-
...P.value.filter((
|
|
287
|
-
)), C = y(() => h.value.width /
|
|
288
|
-
let
|
|
289
|
-
for (let
|
|
290
|
-
const
|
|
291
|
-
const
|
|
285
|
+
})), Re = y(() => Math.max(
|
|
286
|
+
...P.value.filter((t) => !_.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((o) => o.values.length)))
|
|
287
|
+
)), C = y(() => h.value.width / Re.value), ie = y(() => P.value.filter((t) => !_.value.includes(t.id))), f = y(() => {
|
|
288
|
+
let t = [];
|
|
289
|
+
for (let o = 0; o < Re.value; o += 1) {
|
|
290
|
+
const a = Math.min(...ie.value.flatMap((x) => x.series.map((k) => k.values[o] || 0) || 0)), s = Math.max(...ie.value.flatMap((x) => x.series.map((k) => k.values[o] || 0) || 0)), l = s === a ? a / 4 : a, r = s === a ? s * 2 : s, i = Wt(l, r, e.value.style.chart.yAxis.scaleTicks), T = i.ticks.map((x, k) => {
|
|
291
|
+
const $t = i.min < 0 ? x + Math.abs(i.min) : x - Math.abs(i.min), Tt = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
|
|
292
292
|
return {
|
|
293
|
-
y: h.value.bottom - h.value.height * (
|
|
294
|
-
x: h.value.left + C.value *
|
|
293
|
+
y: h.value.bottom - h.value.height * ($t / Tt),
|
|
294
|
+
x: h.value.left + C.value * o + C.value / 2,
|
|
295
295
|
value: x
|
|
296
296
|
};
|
|
297
297
|
});
|
|
298
|
-
|
|
298
|
+
t.push({
|
|
299
299
|
scale: i,
|
|
300
300
|
ticks: T,
|
|
301
|
-
name: e.value.style.chart.yAxis.labels.axisNames[
|
|
301
|
+
name: e.value.style.chart.yAxis.labels.axisNames[o] || `Y-${o + 1}`
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
-
return
|
|
305
|
-
}),
|
|
306
|
-
...
|
|
307
|
-
series:
|
|
308
|
-
...
|
|
309
|
-
datapoints:
|
|
310
|
-
const i = f.value[r].scale.min < 0 ? (
|
|
304
|
+
return t;
|
|
305
|
+
}), ue = y(() => ie.value.map((t, o) => ({
|
|
306
|
+
...t,
|
|
307
|
+
series: t.series.map((a, s) => ({
|
|
308
|
+
...a,
|
|
309
|
+
datapoints: a.values.map((l, r) => {
|
|
310
|
+
const i = f.value[r].scale.min < 0 ? (l || 0) + Math.abs(f.value[r].scale.min) : (l || 0) - Math.abs(f.value[r].scale.min), T = f.value[r].scale.min < 0 ? f.value[r].scale.max + Math.abs(f.value[r].scale.min) : f.value[r].scale.max - Math.abs(f.value[r].scale.min);
|
|
311
311
|
return {
|
|
312
|
-
name:
|
|
313
|
-
seriesName:
|
|
312
|
+
name: a.name,
|
|
313
|
+
seriesName: t.name,
|
|
314
314
|
axisIndex: r,
|
|
315
315
|
datapointIndex: s,
|
|
316
|
-
seriesIndex:
|
|
317
|
-
value:
|
|
316
|
+
seriesIndex: o,
|
|
317
|
+
value: l || 0,
|
|
318
318
|
x: h.value.left + C.value * r + C.value / 2,
|
|
319
319
|
y: h.value.bottom - h.value.height * (i / T),
|
|
320
|
-
comment:
|
|
320
|
+
comment: a.comments && a.comments[r] || ""
|
|
321
321
|
};
|
|
322
322
|
})
|
|
323
323
|
}))
|
|
324
|
-
})).map((
|
|
325
|
-
...
|
|
326
|
-
series:
|
|
327
|
-
const
|
|
324
|
+
})).map((t) => ({
|
|
325
|
+
...t,
|
|
326
|
+
series: t.series.map((o) => {
|
|
327
|
+
const a = Ut(o.datapoints), s = Vt(o.datapoints), l = jt(e.value.style.chart.lines.smooth ? `M ${s}` : `M ${a}`);
|
|
328
328
|
return {
|
|
329
|
-
...
|
|
329
|
+
...o,
|
|
330
330
|
smoothPath: s,
|
|
331
|
-
straightPath:
|
|
332
|
-
pathLength:
|
|
331
|
+
straightPath: a,
|
|
332
|
+
pathLength: l
|
|
333
333
|
};
|
|
334
334
|
})
|
|
335
335
|
})));
|
|
336
|
-
function
|
|
337
|
-
return
|
|
338
|
-
e.value.style.chart.yAxis.labels.formatters[
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
p: e.value.style.chart.yAxis.labels.prefixes[
|
|
342
|
-
v:
|
|
343
|
-
s: e.value.style.chart.yAxis.labels.suffixes[
|
|
344
|
-
r: e.value.style.chart.yAxis.labels.roundings[
|
|
336
|
+
function Be({ value: t, index: o, datapoint: a }) {
|
|
337
|
+
return Ze(
|
|
338
|
+
e.value.style.chart.yAxis.labels.formatters[o] || null,
|
|
339
|
+
t,
|
|
340
|
+
et({
|
|
341
|
+
p: e.value.style.chart.yAxis.labels.prefixes[o] || "",
|
|
342
|
+
v: t,
|
|
343
|
+
s: e.value.style.chart.yAxis.labels.suffixes[o] || "",
|
|
344
|
+
r: e.value.style.chart.yAxis.labels.roundings[o] || 0
|
|
345
345
|
}),
|
|
346
|
-
{ datapoint:
|
|
346
|
+
{ datapoint: a, seriesIndex: o }
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
|
-
const w = d(null),
|
|
350
|
-
function q({ shape:
|
|
351
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...
|
|
349
|
+
const w = d(null), re = d(null), ce = d(!1), ve = d("");
|
|
350
|
+
function q({ shape: t, serie: o, S: a }) {
|
|
351
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...o, shape: t }, seriesIndex: a }), w.value = null, ce.value = null;
|
|
352
352
|
}
|
|
353
|
-
function J({ shape:
|
|
354
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...
|
|
353
|
+
function J({ shape: t, serieName: o, serie: a, relativeIndex: s, seriesIndex: l, S: r }) {
|
|
354
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), re.value = { serie: a, relativeIndex: s, seriesIndex: l, series: P.value, scales: f.value }, ce.value = !0, w.value = a.id;
|
|
355
355
|
let i = "";
|
|
356
356
|
const T = e.value.style.chart.tooltip.customFormat;
|
|
357
|
-
|
|
358
|
-
serie:
|
|
359
|
-
seriesIndex:
|
|
357
|
+
Qe(T) && Jt(() => T({
|
|
358
|
+
serie: a,
|
|
359
|
+
seriesIndex: a.seriesIndex,
|
|
360
360
|
series: P.value,
|
|
361
361
|
config: e.value,
|
|
362
362
|
scales: f.value
|
|
363
|
-
})) ?
|
|
364
|
-
serie:
|
|
365
|
-
seriesIndex:
|
|
363
|
+
})) ? ve.value = T({
|
|
364
|
+
serie: a,
|
|
365
|
+
seriesIndex: a.seriesIndex,
|
|
366
366
|
series: P.value,
|
|
367
367
|
config: e.value,
|
|
368
368
|
scales: f.value
|
|
369
|
-
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${
|
|
369
|
+
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o ? o + " - " : ""}${a.name}</div>`, f.value.map((x) => x.name).forEach((x, k) => {
|
|
370
370
|
i += `
|
|
371
371
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
372
372
|
<span>${x}: </span>
|
|
373
373
|
<span>
|
|
374
|
-
${
|
|
374
|
+
${Ze(
|
|
375
375
|
e.value.style.chart.yAxis.labels.formatters[k] || null,
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
a.datapoints[k].value,
|
|
377
|
+
et({
|
|
378
378
|
p: e.value.style.chart.yAxis.labels.prefixes[k] || "",
|
|
379
|
-
v:
|
|
379
|
+
v: a.datapoints[k].value,
|
|
380
380
|
s: e.value.style.chart.yAxis.labels.suffixes[k] || "",
|
|
381
381
|
r: e.value.style.chart.yAxis.labels.roundings[k] || ""
|
|
382
382
|
}),
|
|
383
|
-
{ datapoint:
|
|
383
|
+
{ datapoint: a.datapoints[k], seriesIndex: k }
|
|
384
384
|
)}
|
|
385
385
|
</span>
|
|
386
386
|
</div>
|
|
387
|
-
`, e.value.style.chart.comments.showInTooltip &&
|
|
388
|
-
}),
|
|
387
|
+
`, e.value.style.chart.comments.showInTooltip && a.datapoints[k].comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[k].comment}</div>`);
|
|
388
|
+
}), ve.value = `<div>${i}</div>`);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function kt() {
|
|
391
391
|
return P.value;
|
|
392
392
|
}
|
|
393
393
|
const H = y(() => {
|
|
394
|
-
const
|
|
394
|
+
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name)), o = ue.value.flatMap((l, r) => l.series.map((i) => [l.name].concat([i.name]).concat(i.values))), a = {
|
|
395
395
|
th: {
|
|
396
396
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
397
397
|
color: e.value.table.th.color,
|
|
@@ -403,77 +403,77 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
403
403
|
outline: e.value.table.td.outline
|
|
404
404
|
},
|
|
405
405
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
406
|
-
}, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((
|
|
406
|
+
}, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name));
|
|
407
407
|
return {
|
|
408
|
-
body:
|
|
409
|
-
head:
|
|
410
|
-
config:
|
|
408
|
+
body: o,
|
|
409
|
+
head: t,
|
|
410
|
+
config: a,
|
|
411
411
|
colNames: s
|
|
412
412
|
};
|
|
413
|
-
}),
|
|
413
|
+
}), Ee = y(() => ue.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
414
414
|
head: H.value.head,
|
|
415
415
|
body: H.value.body
|
|
416
416
|
});
|
|
417
|
-
function
|
|
418
|
-
const
|
|
419
|
-
|
|
417
|
+
function de(t = null) {
|
|
418
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = Ee.value.head, s = Ee.value.body, l = o.concat([a]).concat(s), r = Yt(l);
|
|
419
|
+
t ? t(r) : qt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
420
420
|
}
|
|
421
|
-
const
|
|
422
|
-
function K({ serie:
|
|
423
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...
|
|
421
|
+
const He = st;
|
|
422
|
+
function K({ serie: t, shape: o, S: a }) {
|
|
423
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, shape: o }, seriesIndex: a }), He("selectDatapoint", t);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
427
|
-
...
|
|
428
|
-
isSegregated: !
|
|
429
|
-
opacity:
|
|
425
|
+
function We(t) {
|
|
426
|
+
He("selectLegend", {
|
|
427
|
+
...t,
|
|
428
|
+
isSegregated: !t.isSegregated,
|
|
429
|
+
opacity: t.isSegregated ? 1 : 0.5
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Ue() {
|
|
433
433
|
p.value.showTable = !p.value.showTable;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Ve() {
|
|
436
436
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function je() {
|
|
439
439
|
p.value.showTooltip = !p.value.showTooltip;
|
|
440
440
|
}
|
|
441
441
|
const Q = d(!1);
|
|
442
|
-
function
|
|
442
|
+
function he() {
|
|
443
443
|
Q.value = !Q.value;
|
|
444
444
|
}
|
|
445
|
-
async function
|
|
445
|
+
async function wt({ scale: t = 2 } = {}) {
|
|
446
446
|
if (!z.value) return;
|
|
447
|
-
const { width:
|
|
447
|
+
const { width: o, height: a } = z.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: r } = await ia({ domElement: z.value, base64: !0, img: !0, scale: t });
|
|
448
448
|
return {
|
|
449
|
-
imageUri:
|
|
449
|
+
imageUri: l,
|
|
450
450
|
base64: r,
|
|
451
451
|
title: e.value.style.chart.title.text,
|
|
452
|
-
width:
|
|
453
|
-
height:
|
|
452
|
+
width: o,
|
|
453
|
+
height: a,
|
|
454
454
|
aspectRatio: s
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
timeLabelsEls:
|
|
460
|
-
timeLabels:
|
|
461
|
-
slicer:
|
|
457
|
+
const Ct = d({ start: 0, end: 1 }), At = y(() => f.value.map((t) => t.name));
|
|
458
|
+
la({
|
|
459
|
+
timeLabelsEls: le,
|
|
460
|
+
timeLabels: At,
|
|
461
|
+
slicer: Ct,
|
|
462
462
|
configRef: e,
|
|
463
463
|
rotationPath: ["style", "chart", "yAxis", "labels", "axisNamesRotation"],
|
|
464
464
|
autoRotatePath: ["style", "chart", "yAxis", "labels", "axisNamesAutoRotate", "enable"],
|
|
465
465
|
isAutoSize: !1,
|
|
466
|
-
width:
|
|
467
|
-
height:
|
|
466
|
+
width: Oe,
|
|
467
|
+
height: Se,
|
|
468
468
|
targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
|
|
469
469
|
rotation: e.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
|
|
470
470
|
});
|
|
471
471
|
const G = y(() => {
|
|
472
|
-
const
|
|
472
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = p.value.showTable;
|
|
473
473
|
return {
|
|
474
|
-
component:
|
|
474
|
+
component: t ? ht : ut,
|
|
475
475
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
476
|
-
props:
|
|
476
|
+
props: t ? {
|
|
477
477
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
478
478
|
color: e.value.table.th.color,
|
|
479
479
|
headerColor: e.value.table.th.color,
|
|
@@ -484,7 +484,7 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
484
484
|
} : {
|
|
485
485
|
hideDetails: !0,
|
|
486
486
|
config: {
|
|
487
|
-
open:
|
|
487
|
+
open: o,
|
|
488
488
|
maxHeight: 1e4,
|
|
489
489
|
body: {
|
|
490
490
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -498,51 +498,55 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
|
-
|
|
502
|
-
e.value.table.show || (
|
|
503
|
-
})
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
501
|
+
Z(() => p.value.showTable, (t) => {
|
|
502
|
+
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
503
|
+
});
|
|
504
|
+
function Ge() {
|
|
505
|
+
p.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
506
|
+
}
|
|
507
|
+
return ot({
|
|
508
|
+
getData: kt,
|
|
509
|
+
getImage: wt,
|
|
510
|
+
generateCsv: de,
|
|
511
|
+
generatePdf: Le,
|
|
512
|
+
generateImage: Pe,
|
|
513
|
+
toggleTable: Ue,
|
|
514
|
+
toggleLabels: Ve,
|
|
515
|
+
toggleTooltip: je,
|
|
516
|
+
toggleAnnotator: he,
|
|
517
|
+
toggleFullscreen: $e
|
|
518
|
+
}), (t, o) => (n(), u("div", {
|
|
515
519
|
ref_key: "pcpChart",
|
|
516
520
|
ref: z,
|
|
517
521
|
class: X(`vue-ui-pcp ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
518
|
-
style:
|
|
522
|
+
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
519
523
|
id: `pcp_${S.value}`,
|
|
520
|
-
onMouseenter:
|
|
521
|
-
onMouseleave:
|
|
524
|
+
onMouseenter: o[2] || (o[2] = () => v(Te)(!0)),
|
|
525
|
+
onMouseleave: o[3] || (o[3] = () => v(Te)(!1))
|
|
522
526
|
}, [
|
|
523
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
527
|
+
e.value.userOptions.buttons.annotator ? (n(), N(v(ct), {
|
|
524
528
|
key: 0,
|
|
525
|
-
svgRef: v(
|
|
529
|
+
svgRef: v(_e),
|
|
526
530
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
527
531
|
color: e.value.style.chart.color,
|
|
528
532
|
active: Q.value,
|
|
529
|
-
onClose:
|
|
533
|
+
onClose: he
|
|
530
534
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
531
|
-
|
|
535
|
+
yt.value ? (n(), u("div", {
|
|
532
536
|
key: 1,
|
|
533
537
|
ref_key: "noTitle",
|
|
534
|
-
ref:
|
|
538
|
+
ref: xe,
|
|
535
539
|
class: "vue-data-ui-no-title-space",
|
|
536
540
|
style: "height:36px; width: 100%;background:transparent"
|
|
537
541
|
}, null, 512)) : m("", !0),
|
|
538
542
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
539
543
|
key: 2,
|
|
540
544
|
ref_key: "chartTitle",
|
|
541
|
-
ref:
|
|
545
|
+
ref: fe,
|
|
542
546
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
543
547
|
}, [
|
|
544
|
-
(n(),
|
|
545
|
-
key: `title_${
|
|
548
|
+
(n(), N(oa, {
|
|
549
|
+
key: `title_${ke.value}`,
|
|
546
550
|
config: {
|
|
547
551
|
title: {
|
|
548
552
|
cy: "pcp-div-title",
|
|
@@ -555,16 +559,17 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
555
559
|
}
|
|
556
560
|
}, null, 8, ["config"]))
|
|
557
561
|
], 512)) : m("", !0),
|
|
558
|
-
|
|
562
|
+
F("div", {
|
|
559
563
|
id: `legend-top-${S.value}`
|
|
560
|
-
}, null, 8,
|
|
561
|
-
e.value.userOptions.show && Y.value && (v(
|
|
562
|
-
|
|
563
|
-
|
|
564
|
+
}, null, 8, ca),
|
|
565
|
+
e.value.userOptions.show && Y.value && (v(ze) || v(se)) ? (n(), N(v(vt), {
|
|
566
|
+
ref_key: "userOptionsRef",
|
|
567
|
+
ref: ae,
|
|
568
|
+
key: `user_options_${ye.value}`,
|
|
564
569
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
565
570
|
color: e.value.style.chart.color,
|
|
566
571
|
isPrinting: v(Fe),
|
|
567
|
-
isImaging: v(
|
|
572
|
+
isImaging: v(Ie),
|
|
568
573
|
uid: S.value,
|
|
569
574
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
570
575
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -582,85 +587,86 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
582
587
|
isAnnotation: Q.value,
|
|
583
588
|
callbacks: e.value.userOptions.callbacks,
|
|
584
589
|
printScale: e.value.userOptions.print.scale,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
590
|
+
tableDialog: e.value.table.useDialog,
|
|
591
|
+
onToggleFullscreen: $e,
|
|
592
|
+
onGeneratePdf: v(Le),
|
|
593
|
+
onGenerateCsv: de,
|
|
594
|
+
onGenerateImage: v(Pe),
|
|
595
|
+
onToggleTable: Ue,
|
|
596
|
+
onToggleLabels: Ve,
|
|
597
|
+
onToggleTooltip: je,
|
|
598
|
+
onToggleAnnotator: he,
|
|
599
|
+
style: M({
|
|
600
|
+
visibility: v(ze) ? v(se) ? "visible" : "hidden" : "visible"
|
|
595
601
|
})
|
|
596
|
-
},
|
|
597
|
-
|
|
602
|
+
}, Ye({ _: 2 }, [
|
|
603
|
+
t.$slots.menuIcon ? {
|
|
598
604
|
name: "menuIcon",
|
|
599
|
-
fn: b(({ isOpen:
|
|
600
|
-
g(
|
|
605
|
+
fn: b(({ isOpen: a, color: s }) => [
|
|
606
|
+
g(t.$slots, "menuIcon", W(U({ isOpen: a, color: s })), void 0, !0)
|
|
601
607
|
]),
|
|
602
608
|
key: "0"
|
|
603
609
|
} : void 0,
|
|
604
|
-
|
|
610
|
+
t.$slots.optionPdf ? {
|
|
605
611
|
name: "optionPdf",
|
|
606
612
|
fn: b(() => [
|
|
607
|
-
g(
|
|
613
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
608
614
|
]),
|
|
609
615
|
key: "1"
|
|
610
616
|
} : void 0,
|
|
611
|
-
|
|
617
|
+
t.$slots.optionCsv ? {
|
|
612
618
|
name: "optionCsv",
|
|
613
619
|
fn: b(() => [
|
|
614
|
-
g(
|
|
620
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
615
621
|
]),
|
|
616
622
|
key: "2"
|
|
617
623
|
} : void 0,
|
|
618
|
-
|
|
624
|
+
t.$slots.optionImg ? {
|
|
619
625
|
name: "optionImg",
|
|
620
626
|
fn: b(() => [
|
|
621
|
-
g(
|
|
627
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
622
628
|
]),
|
|
623
629
|
key: "3"
|
|
624
630
|
} : void 0,
|
|
625
|
-
|
|
631
|
+
t.$slots.optionTable ? {
|
|
626
632
|
name: "optionTable",
|
|
627
633
|
fn: b(() => [
|
|
628
|
-
g(
|
|
634
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
629
635
|
]),
|
|
630
636
|
key: "4"
|
|
631
637
|
} : void 0,
|
|
632
|
-
|
|
638
|
+
t.$slots.optionLabels ? {
|
|
633
639
|
name: "optionLabels",
|
|
634
640
|
fn: b(() => [
|
|
635
|
-
g(
|
|
641
|
+
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
636
642
|
]),
|
|
637
643
|
key: "5"
|
|
638
644
|
} : void 0,
|
|
639
|
-
|
|
645
|
+
t.$slots.optionFullscreen ? {
|
|
640
646
|
name: "optionFullscreen",
|
|
641
|
-
fn: b(({ toggleFullscreen:
|
|
642
|
-
g(
|
|
647
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
648
|
+
g(t.$slots, "optionFullscreen", W(U({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
643
649
|
]),
|
|
644
650
|
key: "6"
|
|
645
651
|
} : void 0,
|
|
646
|
-
|
|
652
|
+
t.$slots.optionAnnotator ? {
|
|
647
653
|
name: "optionAnnotator",
|
|
648
|
-
fn: b(({ toggleAnnotator:
|
|
649
|
-
g(
|
|
654
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
655
|
+
g(t.$slots, "optionAnnotator", W(U({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
650
656
|
]),
|
|
651
657
|
key: "7"
|
|
652
658
|
} : void 0
|
|
653
|
-
]), 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),
|
|
659
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
654
660
|
(n(), u("svg", {
|
|
655
661
|
ref_key: "svgRef",
|
|
656
|
-
ref:
|
|
657
|
-
xmlns: v(
|
|
662
|
+
ref: _e,
|
|
663
|
+
xmlns: v(Gt),
|
|
658
664
|
class: X({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
659
665
|
viewBox: `0 0 ${h.value.chartWidth <= 0 ? 10 : h.value.chartWidth} ${h.value.chartHeight <= 0 ? 10 : h.value.chartHeight}`,
|
|
660
|
-
style:
|
|
666
|
+
style: M(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
661
667
|
}, [
|
|
662
|
-
|
|
663
|
-
|
|
668
|
+
pe(v(dt)),
|
|
669
|
+
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
664
670
|
key: 0,
|
|
665
671
|
x: h.value.left,
|
|
666
672
|
y: h.value.top,
|
|
@@ -670,47 +676,47 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
670
676
|
pointerEvents: "none"
|
|
671
677
|
}
|
|
672
678
|
}, [
|
|
673
|
-
g(
|
|
674
|
-
], 8,
|
|
675
|
-
(n(!0), u(A, null, I(f.value, (
|
|
676
|
-
|
|
679
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
680
|
+
], 8, da)) : m("", !0),
|
|
681
|
+
(n(!0), u(A, null, I(f.value, (a, s) => (n(), u("g", ha, [
|
|
682
|
+
F("line", {
|
|
677
683
|
x1: h.value.left + C.value * s + C.value / 2,
|
|
678
684
|
x2: h.value.left + C.value * s + C.value / 2,
|
|
679
685
|
y1: h.value.top,
|
|
680
686
|
y2: h.value.bottom,
|
|
681
687
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
682
688
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
683
|
-
}, null, 8,
|
|
689
|
+
}, null, 8, pa),
|
|
684
690
|
e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(A, { key: 0 }, [
|
|
685
|
-
(n(!0), u(A, null, I(
|
|
686
|
-
x1:
|
|
687
|
-
x2:
|
|
688
|
-
y1:
|
|
689
|
-
y2:
|
|
691
|
+
(n(!0), u(A, null, I(a.ticks, (l) => (n(), u("line", {
|
|
692
|
+
x1: l.x,
|
|
693
|
+
x2: l.x - 10,
|
|
694
|
+
y1: l.y,
|
|
695
|
+
y2: l.y,
|
|
690
696
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
691
697
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
692
|
-
style:
|
|
693
|
-
}, null, 12,
|
|
694
|
-
v(R) ? m("", !0) : (n(), u("g",
|
|
695
|
-
(n(!0), u(A, null, I(
|
|
696
|
-
x:
|
|
697
|
-
y:
|
|
698
|
+
style: M(`opacity:${w.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
699
|
+
}, null, 12, ma))), 256)),
|
|
700
|
+
v(R) ? m("", !0) : (n(), u("g", ya, [
|
|
701
|
+
(n(!0), u(A, null, I(a.ticks, (l) => (n(), u("text", {
|
|
702
|
+
x: l.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
703
|
+
y: l.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
698
704
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
699
705
|
"text-anchor": "end",
|
|
700
706
|
"font-size": c.value.ticksFontSize,
|
|
701
707
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
702
|
-
style:
|
|
703
|
-
}, B(
|
|
708
|
+
style: M(`opacity:${w.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
709
|
+
}, B(Be({ value: l.value, index: s, datapoint: l })), 13, fa))), 256))
|
|
704
710
|
]))
|
|
705
711
|
], 64)) : m("", !0)
|
|
706
712
|
]))), 256)),
|
|
707
713
|
e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
|
|
708
714
|
key: 1,
|
|
709
715
|
ref_key: "xAxisLabels",
|
|
710
|
-
ref:
|
|
716
|
+
ref: le
|
|
711
717
|
}, [
|
|
712
|
-
(n(!0), u(A, null, I(f.value, (
|
|
713
|
-
String(
|
|
718
|
+
(n(!0), u(A, null, I(f.value, (a, s) => (n(), u(A, null, [
|
|
719
|
+
String(a.name).includes(`
|
|
714
720
|
`) ? (n(), u("text", {
|
|
715
721
|
key: 1,
|
|
716
722
|
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
@@ -719,14 +725,14 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
719
725
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
720
726
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
721
727
|
transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${j.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
|
|
722
|
-
innerHTML: v(
|
|
723
|
-
content: String(
|
|
728
|
+
innerHTML: v(Xt)({
|
|
729
|
+
content: String(a.name),
|
|
724
730
|
fontSize: c.value.axisNameFontSize,
|
|
725
731
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
726
732
|
x: 0,
|
|
727
733
|
y: 0
|
|
728
734
|
})
|
|
729
|
-
}, null, 8,
|
|
735
|
+
}, null, 8, ga)) : (n(), u("text", {
|
|
730
736
|
key: 0,
|
|
731
737
|
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
732
738
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
@@ -734,43 +740,43 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
734
740
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
735
741
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
736
742
|
transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${j.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
|
|
737
|
-
}, B(
|
|
743
|
+
}, B(a.name), 9, ba))
|
|
738
744
|
], 64))), 256))
|
|
739
745
|
], 512)) : m("", !0),
|
|
740
|
-
(n(!0), u(A, null, I(
|
|
741
|
-
(n(!0), u(A, null, I(
|
|
742
|
-
e.value.style.chart.plots.show ? (n(), u("g",
|
|
743
|
-
(n(!0), u(A, null, I(
|
|
746
|
+
(n(!0), u(A, null, I(ue.value, (a, s) => (n(), u("g", null, [
|
|
747
|
+
(n(!0), u(A, null, I(a.series, (l, r) => (n(), u("g", null, [
|
|
748
|
+
e.value.style.chart.plots.show ? (n(), u("g", xa, [
|
|
749
|
+
(n(!0), u(A, null, I(l.datapoints, (i, T) => (n(), N(na, {
|
|
744
750
|
plot: { x: i.x, y: i.y },
|
|
745
|
-
color:
|
|
746
|
-
shape:
|
|
747
|
-
radius:
|
|
751
|
+
color: a.color,
|
|
752
|
+
shape: a.shape,
|
|
753
|
+
radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
748
754
|
stroke: e.value.style.chart.backgroundColor,
|
|
749
755
|
strokeWidth: 0.5,
|
|
750
756
|
onMouseenter: (x) => J({
|
|
751
|
-
shape:
|
|
752
|
-
serieName:
|
|
753
|
-
serie:
|
|
757
|
+
shape: a.shape,
|
|
758
|
+
serieName: a.name,
|
|
759
|
+
serie: l,
|
|
754
760
|
relativeIndex: r,
|
|
755
|
-
seriesIndex:
|
|
761
|
+
seriesIndex: l.seriesIndex,
|
|
756
762
|
S: s
|
|
757
763
|
}),
|
|
758
|
-
onMouseleave: (x) => q({ serie:
|
|
759
|
-
style:
|
|
760
|
-
onClick: () => K({ serie:
|
|
764
|
+
onMouseleave: (x) => q({ serie: l, shape: a.shape, S: s }),
|
|
765
|
+
style: M(`opacity:${w.value ? w.value === l.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
766
|
+
onClick: () => K({ serie: l, shape: a.shape, S: s })
|
|
761
767
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
|
|
762
768
|
p.value.showTooltip ? m("", !0) : (n(), u(A, { key: 0 }, [
|
|
763
|
-
w.value && w.value ===
|
|
769
|
+
w.value && w.value === l.id && l.datapoints.length ? (n(), u("text", {
|
|
764
770
|
key: 0,
|
|
765
|
-
x:
|
|
766
|
-
y:
|
|
771
|
+
x: l.datapoints[0].x - c.value.ticksFontSize,
|
|
772
|
+
y: l.datapoints[0].y + c.value.ticksFontSize / 3,
|
|
767
773
|
"text-anchor": "end",
|
|
768
774
|
"font-size": c.value.ticksFontSize,
|
|
769
|
-
fill:
|
|
775
|
+
fill: a.color,
|
|
770
776
|
"font-weight": "bold"
|
|
771
|
-
}, B(
|
|
777
|
+
}, B(l.name), 9, ka)) : m("", !0)
|
|
772
778
|
], 64)),
|
|
773
|
-
e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, I(
|
|
779
|
+
e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, I(l.datapoints, (i) => (n(), u("g", null, [
|
|
774
780
|
i.comment ? (n(), u("foreignObject", {
|
|
775
781
|
key: 0,
|
|
776
782
|
style: { overflow: "visible" },
|
|
@@ -779,122 +785,122 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
779
785
|
x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
780
786
|
y: i.y + e.value.style.chart.comments.offsetY + 6
|
|
781
787
|
}, [
|
|
782
|
-
|
|
783
|
-
g(
|
|
784
|
-
plot: { ...i, color:
|
|
788
|
+
F("div", Ca, [
|
|
789
|
+
g(t.$slots, "plot-comment", {
|
|
790
|
+
plot: { ...i, color: a.color }
|
|
785
791
|
}, void 0, !0)
|
|
786
792
|
])
|
|
787
|
-
], 8,
|
|
793
|
+
], 8, wa)) : m("", !0)
|
|
788
794
|
]))), 256)) : m("", !0)
|
|
789
795
|
])) : m("", !0),
|
|
790
|
-
!v(R) && (p.value.dataLabels.show || w.value && w.value ===
|
|
796
|
+
!v(R) && (p.value.dataLabels.show || w.value && w.value === l.id) ? (n(!0), u(A, { key: 1 }, I(l.datapoints, (i, T) => (n(), u("text", {
|
|
791
797
|
x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
792
798
|
y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
793
|
-
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ?
|
|
799
|
+
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
794
800
|
"text-anchor": "start",
|
|
795
801
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
796
802
|
class: X({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(R) }),
|
|
797
803
|
"font-size": c.value.datapointFontSize,
|
|
798
804
|
onMouseenter: (x) => J({
|
|
799
|
-
shape:
|
|
800
|
-
serieName:
|
|
801
|
-
serie:
|
|
805
|
+
shape: a.shape,
|
|
806
|
+
serieName: a.name,
|
|
807
|
+
serie: l,
|
|
802
808
|
relativeIndex: r,
|
|
803
|
-
seriesIndex:
|
|
809
|
+
seriesIndex: l.seriesIndex,
|
|
804
810
|
S: s
|
|
805
811
|
}),
|
|
806
|
-
onMouseleave: (x) => q({ serie:
|
|
807
|
-
onClick: () => K({ serie:
|
|
808
|
-
style:
|
|
809
|
-
}, B(
|
|
810
|
-
|
|
811
|
-
d: `M${e.value.style.chart.lines.smooth ?
|
|
812
|
-
stroke:
|
|
812
|
+
onMouseleave: (x) => q({ serie: l, shape: a.shape, S: s }),
|
|
813
|
+
onClick: () => K({ serie: l, shape: a.shape, S: s }),
|
|
814
|
+
style: M(`opacity:${w.value ? w.value === l.id ? 1 : 0.2 : 1}`)
|
|
815
|
+
}, B(Be({ value: i.value, index: T, datapoint: i })), 47, Aa))), 256)) : m("", !0),
|
|
816
|
+
F("path", {
|
|
817
|
+
d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
|
|
818
|
+
stroke: a.color,
|
|
813
819
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
814
820
|
fill: "none",
|
|
815
821
|
class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(R) }),
|
|
816
822
|
onMouseenter: (i) => J({
|
|
817
|
-
shape:
|
|
818
|
-
serieName:
|
|
819
|
-
serie:
|
|
823
|
+
shape: a.shape,
|
|
824
|
+
serieName: a.name,
|
|
825
|
+
serie: l,
|
|
820
826
|
relativeIndex: r,
|
|
821
|
-
seriesIndex:
|
|
827
|
+
seriesIndex: l.seriesIndex,
|
|
822
828
|
S: s
|
|
823
829
|
}),
|
|
824
|
-
onMouseleave: (i) => q({ serie:
|
|
825
|
-
onClick: () => K({ serie:
|
|
826
|
-
style:
|
|
827
|
-
}, null, 46,
|
|
830
|
+
onMouseleave: (i) => q({ serie: l, shape: a.shape, S: s }),
|
|
831
|
+
onClick: () => K({ serie: l, shape: a.shape, S: s }),
|
|
832
|
+
style: M(`opacity:${w.value ? w.value === l.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${l.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? l.pathLength : 0}`)
|
|
833
|
+
}, null, 46, $a),
|
|
828
834
|
p.value.showTooltip ? (n(), u("path", {
|
|
829
835
|
key: 2,
|
|
830
|
-
d: `M${e.value.style.chart.lines.smooth ?
|
|
836
|
+
d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
|
|
831
837
|
stroke: "transparent",
|
|
832
838
|
"stroke-width": 12,
|
|
833
839
|
fill: "none",
|
|
834
840
|
class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(R) }),
|
|
835
841
|
onMouseenter: (i) => J({
|
|
836
|
-
shape:
|
|
837
|
-
serieName:
|
|
838
|
-
serie:
|
|
842
|
+
shape: a.shape,
|
|
843
|
+
serieName: a.name,
|
|
844
|
+
serie: l,
|
|
839
845
|
relativeIndex: r,
|
|
840
|
-
seriesIndex:
|
|
846
|
+
seriesIndex: l.seriesIndex,
|
|
841
847
|
S: s
|
|
842
848
|
}),
|
|
843
|
-
onMouseleave: (i) => q({ serie:
|
|
844
|
-
onClick: () => K({ serie:
|
|
849
|
+
onMouseleave: (i) => q({ serie: l, shape: a.shape, S: s }),
|
|
850
|
+
onClick: () => K({ serie: l, shape: a.shape, S: s }),
|
|
845
851
|
style: { opacity: "0" }
|
|
846
|
-
}, null, 42,
|
|
852
|
+
}, null, 42, Ta)) : m("", !0)
|
|
847
853
|
]))), 256))
|
|
848
854
|
]))), 256)),
|
|
849
|
-
g(
|
|
850
|
-
], 14,
|
|
851
|
-
|
|
852
|
-
g(
|
|
855
|
+
g(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
856
|
+
], 14, va)),
|
|
857
|
+
t.$slots.watermark ? (n(), u("div", za, [
|
|
858
|
+
g(t.$slots, "watermark", W(U({ isPrinting: v(Fe) || v(Ie) })), void 0, !0)
|
|
853
859
|
])) : m("", !0),
|
|
854
|
-
|
|
860
|
+
F("div", {
|
|
855
861
|
id: `legend-bottom-${S.value}`
|
|
856
|
-
}, null, 8,
|
|
857
|
-
|
|
862
|
+
}, null, 8, _a),
|
|
863
|
+
Ae.value ? (n(), N(Ft, {
|
|
858
864
|
key: 5,
|
|
859
865
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${S.value}` : `#legend-bottom-${S.value}`
|
|
860
866
|
}, [
|
|
861
|
-
|
|
867
|
+
F("div", {
|
|
862
868
|
ref_key: "chartLegend",
|
|
863
|
-
ref:
|
|
869
|
+
ref: be
|
|
864
870
|
}, [
|
|
865
|
-
e.value.style.chart.legend.show && Y.value ? (n(),
|
|
866
|
-
key: `legend_${
|
|
867
|
-
legendSet:
|
|
868
|
-
config:
|
|
869
|
-
onClickMarker:
|
|
870
|
-
|
|
871
|
+
e.value.style.chart.legend.show && Y.value ? (n(), N(sa, {
|
|
872
|
+
key: `legend_${we.value}`,
|
|
873
|
+
legendSet: gt.value,
|
|
874
|
+
config: xt.value,
|
|
875
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => {
|
|
876
|
+
De(a.id), We(a);
|
|
871
877
|
})
|
|
872
878
|
}, {
|
|
873
|
-
item: b(({ legend:
|
|
874
|
-
|
|
875
|
-
onClick: (
|
|
876
|
-
|
|
879
|
+
item: b(({ legend: a, index: s }) => [
|
|
880
|
+
F("div", {
|
|
881
|
+
onClick: (l) => {
|
|
882
|
+
a.segregate(), We(a);
|
|
877
883
|
},
|
|
878
|
-
style:
|
|
879
|
-
}, B(
|
|
884
|
+
style: M(`opacity:${_.value.includes(a.id) ? 0.5 : 1}`)
|
|
885
|
+
}, B(a.name), 13, Ma)
|
|
880
886
|
]),
|
|
881
887
|
_: 1
|
|
882
|
-
}, 8, ["legendSet", "config"])) : g(
|
|
888
|
+
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
883
889
|
key: 1,
|
|
884
890
|
legend: P.value
|
|
885
891
|
}, void 0, !0)
|
|
886
892
|
], 512)
|
|
887
893
|
], 8, ["to"])) : m("", !0),
|
|
888
|
-
|
|
894
|
+
t.$slots.source ? (n(), u("div", {
|
|
889
895
|
key: 6,
|
|
890
896
|
ref_key: "source",
|
|
891
|
-
ref:
|
|
897
|
+
ref: ge,
|
|
892
898
|
dir: "auto"
|
|
893
899
|
}, [
|
|
894
|
-
g(
|
|
900
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
895
901
|
], 512)) : m("", !0),
|
|
896
|
-
|
|
897
|
-
show: p.value.showTooltip &&
|
|
902
|
+
pe(v(nt), {
|
|
903
|
+
show: p.value.showTooltip && ce.value,
|
|
898
904
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
899
905
|
color: e.value.style.chart.tooltip.color,
|
|
900
906
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -905,41 +911,41 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
905
911
|
position: e.value.style.chart.tooltip.position,
|
|
906
912
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
907
913
|
parent: z.value,
|
|
908
|
-
content:
|
|
914
|
+
content: ve.value,
|
|
909
915
|
isFullscreen: D.value,
|
|
910
|
-
isCustom: v(
|
|
916
|
+
isCustom: v(Qe)(e.value.style.chart.tooltip.customFormat),
|
|
911
917
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
912
918
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
913
919
|
}, {
|
|
914
920
|
"tooltip-before": b(() => [
|
|
915
|
-
g(
|
|
921
|
+
g(t.$slots, "tooltip-before", W(U({ ...re.value })), void 0, !0)
|
|
916
922
|
]),
|
|
917
923
|
"tooltip-after": b(() => [
|
|
918
|
-
g(
|
|
924
|
+
g(t.$slots, "tooltip-after", W(U({ ...re.value })), void 0, !0)
|
|
919
925
|
]),
|
|
920
926
|
_: 3
|
|
921
927
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
922
|
-
Y.value ? (n(),
|
|
928
|
+
Y.value ? (n(), N(It(G.value.component), Lt({ key: 7 }, G.value.props, {
|
|
923
929
|
ref_key: "tableUnit",
|
|
924
930
|
ref: V,
|
|
925
|
-
onClose:
|
|
926
|
-
}),
|
|
931
|
+
onClose: Ge
|
|
932
|
+
}), Ye({
|
|
927
933
|
content: b(() => [
|
|
928
|
-
(n(),
|
|
929
|
-
key: `table_${
|
|
934
|
+
(n(), N(v(rt), {
|
|
935
|
+
key: `table_${Ce.value}`,
|
|
930
936
|
colNames: H.value.colNames,
|
|
931
937
|
head: H.value.head,
|
|
932
938
|
body: H.value.body,
|
|
933
939
|
config: H.value.config,
|
|
934
940
|
title: e.value.table.useDialog ? "" : G.value.title,
|
|
935
941
|
withCloseButton: !e.value.table.useDialog,
|
|
936
|
-
onClose:
|
|
942
|
+
onClose: Ge
|
|
937
943
|
}, {
|
|
938
|
-
th: b(({ th:
|
|
939
|
-
|
|
944
|
+
th: b(({ th: a }) => [
|
|
945
|
+
F("div", { innerHTML: a }, null, 8, Na)
|
|
940
946
|
]),
|
|
941
|
-
td: b(({ td:
|
|
942
|
-
|
|
947
|
+
td: b(({ td: a }) => [
|
|
948
|
+
qe(B(a), 1)
|
|
943
949
|
]),
|
|
944
950
|
_: 1
|
|
945
951
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -949,19 +955,19 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
949
955
|
e.value.table.useDialog ? {
|
|
950
956
|
name: "title",
|
|
951
957
|
fn: b(() => [
|
|
952
|
-
|
|
958
|
+
qe(B(G.value.title), 1)
|
|
953
959
|
]),
|
|
954
960
|
key: "0"
|
|
955
961
|
} : void 0,
|
|
956
962
|
e.value.table.useDialog ? {
|
|
957
963
|
name: "actions",
|
|
958
964
|
fn: b(() => [
|
|
959
|
-
|
|
965
|
+
F("button", {
|
|
960
966
|
tabindex: "0",
|
|
961
967
|
class: "vue-ui-user-options-button",
|
|
962
|
-
onClick:
|
|
968
|
+
onClick: o[1] || (o[1] = (a) => de(e.value.userOptions.callbacks.csv))
|
|
963
969
|
}, [
|
|
964
|
-
|
|
970
|
+
pe(v(it), {
|
|
965
971
|
name: "excel",
|
|
966
972
|
stroke: G.value.props.color
|
|
967
973
|
}, null, 8, ["stroke"])
|
|
@@ -970,10 +976,10 @@ const ia = ["id"], ua = ["id"], ra = ["xmlns", "viewBox"], ca = ["x", "y", "widt
|
|
|
970
976
|
key: "1"
|
|
971
977
|
} : void 0
|
|
972
978
|
]), 1040)) : m("", !0),
|
|
973
|
-
v(R) ? (n(),
|
|
974
|
-
], 46,
|
|
979
|
+
v(R) ? (n(), N(ea, { key: 8 })) : m("", !0)
|
|
980
|
+
], 46, ra));
|
|
975
981
|
}
|
|
976
|
-
},
|
|
982
|
+
}, Ga = /* @__PURE__ */ ua(Fa, [["__scopeId", "data-v-80507662"]]);
|
|
977
983
|
export {
|
|
978
|
-
|
|
984
|
+
Ga as default
|
|
979
985
|
};
|