vue-data-ui 2.13.3 → 2.13.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BE9mfJkL.js → Arrow-nJWOreP4.js} +1 -1
- package/dist/{BaseDraggableDialog-B9pXvCsc.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
- package/dist/{BaseIcon-5s68maMg.js → BaseIcon-lwpKi6Wa.js} +1 -1
- package/dist/{ColorPicker-BGBMbOup.js → ColorPicker-D8TZj-R5.js} +2 -2
- package/dist/{DataTable-C8F2aovs.js → DataTable-CuFlXUxm.js} +2 -2
- package/dist/{Legend-CoAmfx-7.js → Legend-DwNuhYnG.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DqqOehOr.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
- package/dist/{PackageVersion-BP504Bvs.js → PackageVersion-1psmmuzo.js} +2 -2
- package/dist/{PenAndPaper-CXfm6LDW.js → PenAndPaper-DgUkj01g.js} +3 -3
- package/dist/{Shape-CbwWTjj8.js → Shape-CmlBrd-F.js} +1 -1
- package/dist/Slicer-B-5jXhhw.js +577 -0
- package/dist/{SparkTooltip-HSZVAB1L.js → SparkTooltip-BGjRXPbu.js} +1 -1
- package/dist/{Title-VtPtUhFq.js → Title-BoKeR6i0.js} +1 -1
- package/dist/{Tooltip-Buu8aWuU.js → Tooltip-Df2iF7bv.js} +1 -1
- package/dist/{UserOptions-7VcV_QUc.js → UserOptions-NrArsCuC.js} +2 -2
- package/dist/{dom-to-png-BjOvlJis.js → dom-to-png-DK9TIQio.js} +1 -1
- package/dist/{img-ClKzlGeA.js → img-CqqmkwDl.js} +1 -1
- package/dist/{index-edeP1M3x.js → index-C137VZkI.js} +675 -656
- package/dist/{pdf-2Tyxymwm.js → pdf-DTB7aasS.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useNestedProp-RNi-Fxfm.js → useNestedProp-ZNu8JrRX.js} +1 -1
- package/dist/{usePrinter-B3nKJKAm.js → usePrinter-B63T3abI.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-BfYXPWao.js → vue-data-ui-CBTXw5iV.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-4eGejORW.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
- package/dist/{vue-ui-accordion-C4DquMtU.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dvrd6Gun.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
- package/dist/{vue-ui-annotator-Db5OBDjC.js → vue-ui-annotator-BokgyAXW.js} +2 -2
- package/dist/{vue-ui-bullet-BlT3571K.js → vue-ui-bullet-D5TWFElT.js} +6 -6
- package/dist/{vue-ui-candlestick-0aDroQCS.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
- package/dist/{vue-ui-carousel-table-Dav_41vI.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
- package/dist/{vue-ui-chestnut-CosLSi7b.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
- package/dist/{vue-ui-chord-BxHp31c3.js → vue-ui-chord-Drxbeh2P.js} +7 -7
- package/dist/{vue-ui-circle-pack-BVbRVfDq.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
- package/dist/{vue-ui-cursor-ByPGYWlO.js → vue-ui-cursor-DaT20eFb.js} +2 -2
- package/dist/{vue-ui-dashboard-cC6brbws.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
- package/dist/{vue-ui-digits-Bb-6Adj7.js → vue-ui-digits-D6kq38s9.js} +2 -2
- package/dist/{vue-ui-donut-B3WltwRF.js → vue-ui-donut-_kVdFrZR.js} +7 -7
- package/dist/{vue-ui-donut-evolution-21zgSmm1.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
- package/dist/{vue-ui-dumbbell-BRRWW41S.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
- package/dist/{vue-ui-flow-1nJK3SOO.js → vue-ui-flow-DTx267Ka.js} +6 -6
- package/dist/{vue-ui-funnel-Bo78n4pQ.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
- package/dist/{vue-ui-galaxy-DViqZ_WR.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
- package/dist/{vue-ui-gauge-B_8skcc5.js → vue-ui-gauge-CAKj45DE.js} +5 -5
- package/dist/{vue-ui-gizmo-B06tu-EV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
- package/dist/{vue-ui-heatmap-9cZQCsYz.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
- package/dist/{vue-ui-history-plot-q9GGP9lk.js → vue-ui-history-plot-DfduurUS.js} +103 -103
- package/dist/{vue-ui-kpi-D6hwxL-7.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
- package/dist/{vue-ui-mini-loader-5K1b5iwf.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
- package/dist/{vue-ui-molecule-CZJZM3v3.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
- package/dist/{vue-ui-mood-radar-B4ysiT_U.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
- package/dist/{vue-ui-nested-donuts-Bp4pT3D5.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
- package/dist/{vue-ui-onion-BnCFgrkZ.js → vue-ui-onion-BV3A2JCN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B_BhXrKI.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
- package/dist/{vue-ui-quadrant-GclnmYO6.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
- package/dist/{vue-ui-quick-chart-CFaBCkfP.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
- package/dist/{vue-ui-radar-BA45g7F0.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
- package/dist/{vue-ui-rating-hTWz-pBq.js → vue-ui-rating-FuSmmUE8.js} +2 -2
- package/dist/{vue-ui-relation-circle-CkOaN_CX.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
- package/dist/{vue-ui-ridgeline-B2BIUDB-.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
- package/dist/{vue-ui-rings-CSO7Zd_g.js → vue-ui-rings-DMx8sMKa.js} +7 -7
- package/dist/{vue-ui-scatter-17gG4jRb.js → vue-ui-scatter-DX42tHz8.js} +7 -7
- package/dist/{vue-ui-skeleton-EoGn9JbB.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
- package/dist/{vue-ui-smiley-C_HkNW2f.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
- package/dist/{vue-ui-spark-trend-AXaOXuBl.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWZCWNKx.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BZVcBexd.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BrCxiefW.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
- package/dist/{vue-ui-sparkline-CFwBsRfj.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-bwY9BxUo.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
- package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
- package/dist/{vue-ui-strip-plot-C02lCys6.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
- package/dist/{vue-ui-table-C04CtiEi.js → vue-ui-table-Cfb6eIU4.js} +3 -3
- package/dist/{vue-ui-table-heatmap-IERP9tp0.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CgXchDEY.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
- package/dist/{vue-ui-thermometer-lf9mJ8LP.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
- package/dist/{vue-ui-timer-BZLtxymy.js → vue-ui-timer-By6_kV9k.js} +8 -8
- package/dist/{vue-ui-tiremarks-Cu1TXwev.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
- package/dist/{vue-ui-treemap-BVyxf-77.js → vue-ui-treemap-DivJblJW.js} +7 -7
- package/dist/{vue-ui-vertical-bar-C_euYHER.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
- package/dist/{vue-ui-waffle-BW6LSfBe.js → vue-ui-waffle-DSzMjANd.js} +7 -7
- package/dist/{vue-ui-wheel-DoARpgpJ.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
- package/dist/{vue-ui-word-cloud-BVmpg5X_.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
- package/dist/{vue-ui-world-DzbMOJbm.js → vue-ui-world-BhGGmeGq.js} +5 -5
- package/dist/{vue-ui-xy-DD5417b2.js → vue-ui-xy-CZpcKEkV.js} +680 -668
- package/dist/{vue-ui-xy-canvas-9m7qMGHS.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
- package/package.json +1 -1
- package/dist/Slicer-BNnP0Y2C.js +0 -537
- package/dist/vue-ui-stackbar-Bgc7lS0v.js +0 -1132
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as P, computed as x, ref as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as P, computed as x, ref as h, watch as lt, shallowRef as Ie, onMounted as ot, onBeforeUnmount as st, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as T, normalizeClass as j, createBlock as I, createCommentVNode as m, createElementVNode as S, createVNode as _e, createSlots as nt, withCtx as k, renderSlot as g, normalizeProps as V, guardReactiveProps as E, Fragment as C, renderList as _, toDisplayString as U, createTextVNode as it } from "vue";
|
|
2
|
+
import { u as ut, c as ae, t as rt, p as X, a as ct, o as vt, e as Pe, g as dt, b as ht, d as pt, D as yt, T as mt, U as ft, V as gt, X as bt, x as Se, F as Y, q as xt, r as kt, i as Ne, f as Oe, y as wt } from "./index-C137VZkI.js";
|
|
3
3
|
import { t as Ct, u as $t } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as Le } from "./useNestedProp-
|
|
5
|
-
import { u as At } from "./usePrinter-
|
|
4
|
+
import { u as Le } from "./useNestedProp-ZNu8JrRX.js";
|
|
5
|
+
import { u as At } from "./usePrinter-B63T3abI.js";
|
|
6
6
|
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
const Pt = ["id"],
|
|
7
|
+
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Mt from "./Title-BoKeR6i0.js";
|
|
9
|
+
import Ft from "./Legend-DwNuhYnG.js";
|
|
10
|
+
import { _ as It } from "./Shape-CmlBrd-F.js";
|
|
11
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Pt = ["id"], St = ["xmlns", "viewBox"], Nt = ["x", "y", "width", "height"], Ot = { style: { "pointer-events": "none" } }, Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x", "y", "fill", "font-size", "font-weight"], Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x", "y", "fill", "font-size", "font-weight"], Et = { key: 0 }, Ut = ["x", "y", "font-size", "fill"], Wt = ["width", "x", "y"], jt = { style: { width: "100%" } }, Bt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], Ht = ["d", "stroke", "stroke-width", "onMouseenter"], Gt = ["d", "onMouseenter"], Xt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, Yt = ["onClick"], qt = ["innerHTML"], Jt = {
|
|
@@ -30,51 +30,51 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend", "selectDatapoint"],
|
|
32
32
|
setup(De, { expose: Re, emit: Ve }) {
|
|
33
|
-
const Ee = P(() => import("./vue-ui-accordion-
|
|
33
|
+
const Ee = P(() => import("./vue-ui-accordion-BI2rBS5z.js")), Ue = P(() => import("./DataTable-CuFlXUxm.js")), We = P(() => import("./PackageVersion-1psmmuzo.js")), je = P(() => import("./PenAndPaper-DgUkj01g.js")), Be = P(() => import("./vue-ui-skeleton-CO_Hk6A_.js")), He = P(() => import("./Tooltip-Df2iF7bv.js")), Ge = P(() => import("./UserOptions-NrArsCuC.js")), { vue_ui_parallel_coordinate_plot: Xe } = ut(), z = De, N = x({
|
|
34
34
|
get() {
|
|
35
|
-
return !!
|
|
35
|
+
return !!z.dataset && z.dataset.length;
|
|
36
36
|
},
|
|
37
37
|
set(t) {
|
|
38
38
|
return t;
|
|
39
39
|
}
|
|
40
|
-
}), le =
|
|
40
|
+
}), le = h(0), W = 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);
|
|
41
41
|
function Ye(t) {
|
|
42
|
-
|
|
42
|
+
O.value = t, le.value += 1;
|
|
43
43
|
}
|
|
44
44
|
const e = x({
|
|
45
45
|
get: () => pe(),
|
|
46
46
|
set: (t) => t
|
|
47
|
-
}), { userOptionsVisible: J, setUserOptionsVisibility: ve, keepUserOptionState: de } = Tt({ config: e.value }), { svgRef: he } =
|
|
47
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: ve, keepUserOptionState: de } = Tt({ config: e.value }), { svgRef: he } = zt({ config: e.value.style.chart.title });
|
|
48
48
|
function pe() {
|
|
49
49
|
const t = Le({
|
|
50
|
-
userConfig:
|
|
50
|
+
userConfig: z.config,
|
|
51
51
|
defaultConfig: Xe
|
|
52
52
|
});
|
|
53
53
|
return t.theme ? {
|
|
54
54
|
...Le({
|
|
55
|
-
userConfig: ct.vue_ui_parallel_coordinate_plot[t.theme] ||
|
|
55
|
+
userConfig: ct.vue_ui_parallel_coordinate_plot[t.theme] || z.config,
|
|
56
56
|
defaultConfig: t
|
|
57
57
|
}),
|
|
58
58
|
customPalette: rt[t.theme] || X
|
|
59
59
|
} : t;
|
|
60
60
|
}
|
|
61
|
-
lt(() =>
|
|
62
|
-
e.value = pe(), J.value = !e.value.userOptions.showOnChartHover,
|
|
61
|
+
lt(() => z.config, (t) => {
|
|
62
|
+
e.value = pe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ue.value += 1, ce.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
63
63
|
}, { deep: !0 });
|
|
64
|
-
const
|
|
64
|
+
const M = Ie(null), L = Ie(null);
|
|
65
65
|
ot(() => {
|
|
66
|
-
|
|
66
|
+
ye();
|
|
67
67
|
});
|
|
68
|
-
function
|
|
69
|
-
if (vt(
|
|
68
|
+
function ye() {
|
|
69
|
+
if (vt(z.dataset) ? Pe({
|
|
70
70
|
componentName: "VueUiParallelCoordinatePlot",
|
|
71
71
|
type: "dataset"
|
|
72
|
-
}) :
|
|
72
|
+
}) : z.dataset.forEach((t, l) => {
|
|
73
73
|
dt({
|
|
74
74
|
datasetObject: t,
|
|
75
75
|
requiredAttributes: ["name", "series"]
|
|
76
76
|
}).forEach((a) => {
|
|
77
|
-
|
|
77
|
+
N.value = !1, Pe({
|
|
78
78
|
componentName: "VueUiParallelCoordinatePlot",
|
|
79
79
|
type: "datasetSerieAttribute",
|
|
80
80
|
property: a,
|
|
@@ -88,47 +88,47 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
88
88
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
89
89
|
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
90
90
|
source: ne.value,
|
|
91
|
-
noTitle:
|
|
91
|
+
noTitle: ie.value
|
|
92
92
|
});
|
|
93
93
|
requestAnimationFrame(() => {
|
|
94
|
-
|
|
94
|
+
c.value.width = l, c.value.height = a, e.value.responsiveProportionalSizing ? (c.value.plotSize = Y({
|
|
95
95
|
relator: Math.min(l, a),
|
|
96
96
|
adjuster: 600,
|
|
97
97
|
source: e.value.style.chart.plots.radius,
|
|
98
98
|
threshold: 2,
|
|
99
99
|
fallback: 2
|
|
100
|
-
}),
|
|
100
|
+
}), c.value.ticksFontSize = Y({
|
|
101
101
|
relator: Math.min(l, a),
|
|
102
102
|
adjuster: 600,
|
|
103
103
|
source: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
104
104
|
threshold: 10,
|
|
105
105
|
fallback: 10
|
|
106
|
-
}),
|
|
106
|
+
}), c.value.datapointFontSize = Y({
|
|
107
107
|
relator: Math.min(l, a),
|
|
108
108
|
adjuster: 600,
|
|
109
109
|
source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
110
110
|
threshold: 10,
|
|
111
111
|
fallback: 10
|
|
112
|
-
}),
|
|
112
|
+
}), c.value.axisNameFontSize = Y({
|
|
113
113
|
relator: Math.min(l, a),
|
|
114
114
|
adjuster: 600,
|
|
115
115
|
source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
116
116
|
threshold: 12,
|
|
117
117
|
fallback: 12
|
|
118
|
-
}));
|
|
118
|
+
})) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
|
-
|
|
121
|
+
M.value && (L.value && M.value.unobserve(L.value), M.value.disconnect()), M.value = new ResizeObserver(t), L.value = W.value.parentNode, M.value.observe(L.value);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
st(() => {
|
|
125
|
-
|
|
125
|
+
M.value && (L.value && M.value.unobserve(L.value), M.value.disconnect());
|
|
126
126
|
});
|
|
127
|
-
const { isPrinting:
|
|
127
|
+
const { isPrinting: me, isImaging: fe, generatePdf: ge, generateImage: be } = At({
|
|
128
128
|
elementId: `pcp_${q.value}`,
|
|
129
129
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
130
130
|
options: e.value.userOptions.print
|
|
131
|
-
}), qe = x(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
131
|
+
}), qe = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = h({
|
|
132
132
|
height: e.value.style.chart.height,
|
|
133
133
|
width: e.value.style.chart.width,
|
|
134
134
|
plotSize: e.value.style.chart.plots.radius,
|
|
@@ -137,8 +137,8 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
137
137
|
// ratio 42.85
|
|
138
138
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
139
139
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
140
|
-
}),
|
|
141
|
-
const { top: t, right: l, bottom: a, left: o } = e.value.style.chart.padding, n =
|
|
140
|
+
}), v = x(() => {
|
|
141
|
+
const { top: t, right: l, bottom: a, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
|
|
142
142
|
return {
|
|
143
143
|
chartHeight: n,
|
|
144
144
|
chartWidth: s,
|
|
@@ -149,17 +149,17 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
149
149
|
right: s - l,
|
|
150
150
|
bottom: n - a
|
|
151
151
|
};
|
|
152
|
-
}), Je = x(() => ht(e.value.customPalette)), p =
|
|
152
|
+
}), Je = x(() => ht(e.value.customPalette)), p = h({
|
|
153
153
|
dataLabels: {
|
|
154
154
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
155
155
|
},
|
|
156
156
|
showTable: e.value.table.show,
|
|
157
157
|
showTooltip: e.value.style.chart.tooltip.show
|
|
158
|
-
}), $ =
|
|
158
|
+
}), $ = h([]);
|
|
159
159
|
function xe(t) {
|
|
160
160
|
$.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const F = x(() => z.dataset.map((t, l) => {
|
|
163
163
|
const a = pt(t.color) || Je.value[l] || X[l] || X[l % X.length];
|
|
164
164
|
return {
|
|
165
165
|
...t,
|
|
@@ -173,7 +173,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
173
173
|
id: ae(),
|
|
174
174
|
shape: t.shape || "circle"
|
|
175
175
|
};
|
|
176
|
-
})), Ke = x(() =>
|
|
176
|
+
})), Ke = x(() => F.value.map((t) => ({
|
|
177
177
|
...t,
|
|
178
178
|
opacity: $.value.includes(t.id) ? 0.5 : 1,
|
|
179
179
|
segregate: () => xe(t.id),
|
|
@@ -186,16 +186,16 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
186
186
|
paddingBottom: 12,
|
|
187
187
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
188
188
|
})), ke = x(() => Math.max(
|
|
189
|
-
...
|
|
190
|
-
)), w = x(() =>
|
|
189
|
+
...F.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
190
|
+
)), w = x(() => v.value.width / ke.value), K = x(() => F.value.filter((t) => !$.value.includes(t.id))), b = x(() => {
|
|
191
191
|
let t = [];
|
|
192
192
|
for (let l = 0; l < ke.value; l += 1) {
|
|
193
|
-
const a = Math.min(...K.value.flatMap((
|
|
194
|
-
const tt = r.min < 0 ?
|
|
193
|
+
const a = Math.min(...K.value.flatMap((y) => y.series.map((G) => G.values[l] || 0) || 0)), o = Math.max(...K.value.flatMap((y) => y.series.map((G) => G.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, r = yt(n, s, e.value.style.chart.yAxis.scaleTicks), A = r.ticks.map((y, G) => {
|
|
194
|
+
const tt = r.min < 0 ? y + Math.abs(r.min) : y - Math.abs(r.min), at = r.min < 0 ? r.max + Math.abs(r.min) : r.max - Math.abs(r.min);
|
|
195
195
|
return {
|
|
196
|
-
y:
|
|
197
|
-
x:
|
|
198
|
-
value:
|
|
196
|
+
y: v.value.bottom - v.value.height * (tt / at),
|
|
197
|
+
x: v.value.left + w.value * l + w.value / 2,
|
|
198
|
+
value: y
|
|
199
199
|
};
|
|
200
200
|
});
|
|
201
201
|
t.push({
|
|
@@ -218,8 +218,8 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
218
218
|
datapointIndex: o,
|
|
219
219
|
seriesIndex: l,
|
|
220
220
|
value: n || 0,
|
|
221
|
-
x:
|
|
222
|
-
y:
|
|
221
|
+
x: v.value.left + w.value * s + w.value / 2,
|
|
222
|
+
y: v.value.bottom - v.value.height * (r / A),
|
|
223
223
|
comment: a.comments && a.comments[s] || ""
|
|
224
224
|
};
|
|
225
225
|
})
|
|
@@ -227,7 +227,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
227
227
|
})).map((t) => ({
|
|
228
228
|
...t,
|
|
229
229
|
series: t.series.map((l) => {
|
|
230
|
-
const a =
|
|
230
|
+
const a = mt(l.datapoints), o = ft(l.datapoints), n = gt(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${a}`);
|
|
231
231
|
return {
|
|
232
232
|
...l,
|
|
233
233
|
smoothPath: o,
|
|
@@ -237,10 +237,10 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
237
237
|
})
|
|
238
238
|
})));
|
|
239
239
|
function we({ value: t, index: l, datapoint: a }) {
|
|
240
|
-
return
|
|
240
|
+
return Ne(
|
|
241
241
|
e.value.style.chart.yAxis.labels.formatters[l] || null,
|
|
242
242
|
t,
|
|
243
|
-
|
|
243
|
+
Oe({
|
|
244
244
|
p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
|
|
245
245
|
v: t,
|
|
246
246
|
s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
|
|
@@ -249,46 +249,46 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
249
249
|
{ datapoint: a, seriesIndex: l }
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
const f =
|
|
252
|
+
const f = h(null), Z = h(null), D = h(!1), ee = h("");
|
|
253
253
|
function B({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
|
|
254
|
-
Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series:
|
|
254
|
+
Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series: F.value, scales: b.value }, D.value = !0, f.value = a.id;
|
|
255
255
|
let s = "";
|
|
256
256
|
const r = e.value.style.chart.tooltip.customFormat;
|
|
257
|
-
|
|
257
|
+
Se(r) && wt(() => r({
|
|
258
258
|
serie: a,
|
|
259
259
|
seriesIndex: a.seriesIndex,
|
|
260
|
-
series:
|
|
260
|
+
series: F.value,
|
|
261
261
|
config: e.value,
|
|
262
262
|
scales: b.value
|
|
263
263
|
})) ? ee.value = r({
|
|
264
264
|
serie: a,
|
|
265
265
|
seriesIndex: a.seriesIndex,
|
|
266
|
-
series:
|
|
266
|
+
series: F.value,
|
|
267
267
|
config: e.value,
|
|
268
268
|
scales: b.value
|
|
269
|
-
}) : (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,
|
|
269
|
+
}) : (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) => {
|
|
270
270
|
s += `
|
|
271
271
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
272
272
|
<span>${A}: </span>
|
|
273
273
|
<span>
|
|
274
|
-
${
|
|
275
|
-
e.value.style.chart.yAxis.labels.formatters[
|
|
276
|
-
a.datapoints[
|
|
277
|
-
|
|
278
|
-
p: e.value.style.chart.yAxis.labels.prefixes[
|
|
279
|
-
v: a.datapoints[
|
|
280
|
-
s: e.value.style.chart.yAxis.labels.suffixes[
|
|
281
|
-
r: e.value.style.chart.yAxis.labels.roundings[
|
|
274
|
+
${Ne(
|
|
275
|
+
e.value.style.chart.yAxis.labels.formatters[y] || null,
|
|
276
|
+
a.datapoints[y].value,
|
|
277
|
+
Oe({
|
|
278
|
+
p: e.value.style.chart.yAxis.labels.prefixes[y] || "",
|
|
279
|
+
v: a.datapoints[y].value,
|
|
280
|
+
s: e.value.style.chart.yAxis.labels.suffixes[y] || "",
|
|
281
|
+
r: e.value.style.chart.yAxis.labels.roundings[y] || ""
|
|
282
282
|
}),
|
|
283
|
-
{ datapoint: a.datapoints[
|
|
283
|
+
{ datapoint: a.datapoints[y], seriesIndex: y }
|
|
284
284
|
)}
|
|
285
285
|
</span>
|
|
286
286
|
</div>
|
|
287
|
-
`, e.value.style.chart.comments.showInTooltip && a.datapoints[
|
|
287
|
+
`, e.value.style.chart.comments.showInTooltip && a.datapoints[y].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[y].comment}</div>`);
|
|
288
288
|
}), ee.value = `<div>${s}</div>`);
|
|
289
289
|
}
|
|
290
290
|
function Ze() {
|
|
291
|
-
return
|
|
291
|
+
return F.value;
|
|
292
292
|
}
|
|
293
293
|
const R = x(() => {
|
|
294
294
|
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((n) => n.name)), l = Q.value.flatMap((n, s) => n.series.map((r) => [n.name].concat([r.name]).concat(r.values))), a = {
|
|
@@ -329,16 +329,16 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
329
329
|
opacity: t.isSegregated ? 1 : 0.5
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function ze() {
|
|
333
333
|
p.value.showTable = !p.value.showTable;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Me() {
|
|
336
336
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Fe() {
|
|
339
339
|
p.value.showTooltip = !p.value.showTooltip;
|
|
340
340
|
}
|
|
341
|
-
const H =
|
|
341
|
+
const H = h(!1);
|
|
342
342
|
function te() {
|
|
343
343
|
H.value = !H.value;
|
|
344
344
|
}
|
|
@@ -347,42 +347,42 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
347
347
|
generateCsv: $e,
|
|
348
348
|
generatePdf: ge,
|
|
349
349
|
generateImage: be,
|
|
350
|
-
toggleTable:
|
|
351
|
-
toggleLabels:
|
|
352
|
-
toggleTooltip:
|
|
350
|
+
toggleTable: ze,
|
|
351
|
+
toggleLabels: Me,
|
|
352
|
+
toggleTooltip: Fe,
|
|
353
353
|
toggleAnnotator: te
|
|
354
|
-
}), (t, l) => (
|
|
354
|
+
}), (t, l) => (i(), u("div", {
|
|
355
355
|
ref_key: "pcpChart",
|
|
356
356
|
ref: W,
|
|
357
|
-
class: j(`vue-ui-pcp ${
|
|
357
|
+
class: j(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
358
358
|
style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
359
359
|
id: `pcp_${q.value}`,
|
|
360
|
-
onMouseenter: l[6] || (l[6] = () =>
|
|
361
|
-
onMouseleave: l[7] || (l[7] = () =>
|
|
360
|
+
onMouseenter: l[6] || (l[6] = () => d(ve)(!0)),
|
|
361
|
+
onMouseleave: l[7] || (l[7] = () => d(ve)(!1))
|
|
362
362
|
}, [
|
|
363
|
-
e.value.userOptions.buttons.annotator ? (
|
|
363
|
+
e.value.userOptions.buttons.annotator ? (i(), I(d(je), {
|
|
364
364
|
key: 0,
|
|
365
|
-
svgRef:
|
|
365
|
+
svgRef: d(he),
|
|
366
366
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
367
367
|
color: e.value.style.chart.color,
|
|
368
368
|
active: H.value,
|
|
369
369
|
onClose: te
|
|
370
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
371
|
-
qe.value ? (
|
|
370
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
371
|
+
qe.value ? (i(), u("div", {
|
|
372
372
|
key: 1,
|
|
373
373
|
ref_key: "noTitle",
|
|
374
|
-
ref:
|
|
374
|
+
ref: ie,
|
|
375
375
|
class: "vue-data-ui-no-title-space",
|
|
376
376
|
style: "height:36px; width: 100%;background:transparent"
|
|
377
|
-
}, null, 512)) :
|
|
378
|
-
e.value.style.chart.title.text ? (
|
|
377
|
+
}, null, 512)) : m("", !0),
|
|
378
|
+
e.value.style.chart.title.text ? (i(), u("div", {
|
|
379
379
|
key: 2,
|
|
380
380
|
ref_key: "chartTitle",
|
|
381
381
|
ref: oe,
|
|
382
382
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
383
383
|
}, [
|
|
384
|
-
(
|
|
385
|
-
key: `title_${
|
|
384
|
+
(i(), I(Mt, {
|
|
385
|
+
key: `title_${ue.value}`,
|
|
386
386
|
config: {
|
|
387
387
|
title: {
|
|
388
388
|
cy: "pcp-div-title",
|
|
@@ -394,14 +394,14 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
}, null, 8, ["config"]))
|
|
397
|
-
], 512)) :
|
|
398
|
-
e.value.userOptions.show &&
|
|
397
|
+
], 512)) : m("", !0),
|
|
398
|
+
e.value.userOptions.show && N.value && (d(de) || d(J)) ? (i(), I(d(Ge), {
|
|
399
399
|
ref: "details",
|
|
400
400
|
key: `user_options_${le.value}`,
|
|
401
401
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
402
402
|
color: e.value.style.chart.color,
|
|
403
|
-
isPrinting:
|
|
404
|
-
isImaging:
|
|
403
|
+
isPrinting: d(me),
|
|
404
|
+
isImaging: d(fe),
|
|
405
405
|
uid: q.value,
|
|
406
406
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
407
407
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -410,7 +410,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
410
410
|
hasTable: e.value.userOptions.buttons.table,
|
|
411
411
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
412
412
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
413
|
-
isFullscreen:
|
|
413
|
+
isFullscreen: O.value,
|
|
414
414
|
isTooltip: p.value.showTooltip,
|
|
415
415
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
416
416
|
chartElement: W.value,
|
|
@@ -419,15 +419,15 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
419
419
|
isAnnotation: H.value,
|
|
420
420
|
callbacks: e.value.userOptions.callbacks,
|
|
421
421
|
onToggleFullscreen: Ye,
|
|
422
|
-
onGeneratePdf:
|
|
422
|
+
onGeneratePdf: d(ge),
|
|
423
423
|
onGenerateCsv: $e,
|
|
424
|
-
onGenerateImage:
|
|
425
|
-
onToggleTable:
|
|
426
|
-
onToggleLabels:
|
|
427
|
-
onToggleTooltip:
|
|
424
|
+
onGenerateImage: d(be),
|
|
425
|
+
onToggleTable: ze,
|
|
426
|
+
onToggleLabels: Me,
|
|
427
|
+
onToggleTooltip: Fe,
|
|
428
428
|
onToggleAnnotator: te,
|
|
429
429
|
style: T({
|
|
430
|
-
visibility:
|
|
430
|
+
visibility: d(de) ? d(J) ? "visible" : "hidden" : "visible"
|
|
431
431
|
})
|
|
432
432
|
}, nt({ _: 2 }, [
|
|
433
433
|
t.$slots.menuIcon ? {
|
|
@@ -486,48 +486,48 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
486
486
|
]),
|
|
487
487
|
key: "7"
|
|
488
488
|
} : 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"])) :
|
|
490
|
-
|
|
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
|
+
N.value ? (i(), u("svg", {
|
|
491
491
|
key: 4,
|
|
492
492
|
ref_key: "svgRef",
|
|
493
493
|
ref: he,
|
|
494
|
-
xmlns:
|
|
495
|
-
class: j({ "vue-data-ui-fullscreen--on":
|
|
496
|
-
viewBox: `0 0 ${
|
|
494
|
+
xmlns: d(bt),
|
|
495
|
+
class: j({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
496
|
+
viewBox: `0 0 ${v.value.chartWidth <= 0 ? 10 : v.value.chartWidth} ${v.value.chartHeight <= 0 ? 10 : v.value.chartHeight}`,
|
|
497
497
|
style: T(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
498
498
|
}, [
|
|
499
|
-
|
|
500
|
-
t.$slots["chart-background"] ? (
|
|
499
|
+
_e(d(We)),
|
|
500
|
+
t.$slots["chart-background"] ? (i(), u("foreignObject", {
|
|
501
501
|
key: 0,
|
|
502
|
-
x:
|
|
503
|
-
y:
|
|
504
|
-
width:
|
|
505
|
-
height:
|
|
502
|
+
x: v.value.left,
|
|
503
|
+
y: v.value.top,
|
|
504
|
+
width: v.value.width,
|
|
505
|
+
height: v.value.height,
|
|
506
506
|
style: {
|
|
507
507
|
pointerEvents: "none"
|
|
508
508
|
}
|
|
509
509
|
}, [
|
|
510
510
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
511
|
-
], 8,
|
|
512
|
-
(
|
|
513
|
-
|
|
514
|
-
x1:
|
|
515
|
-
x2:
|
|
516
|
-
y1:
|
|
517
|
-
y2:
|
|
511
|
+
], 8, Nt)) : m("", !0),
|
|
512
|
+
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Ot, [
|
|
513
|
+
S("line", {
|
|
514
|
+
x1: v.value.left + w.value * o + w.value / 2,
|
|
515
|
+
x2: v.value.left + w.value * o + w.value / 2,
|
|
516
|
+
y1: v.value.top,
|
|
517
|
+
y2: v.value.bottom,
|
|
518
518
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
519
519
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
520
520
|
}, null, 8, Lt),
|
|
521
|
-
|
|
522
|
-
x:
|
|
523
|
-
y:
|
|
521
|
+
S("text", {
|
|
522
|
+
x: v.value.left + w.value * o + w.value / 2,
|
|
523
|
+
y: v.value.top - 24,
|
|
524
524
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
525
|
-
"font-size":
|
|
525
|
+
"font-size": c.value.axisNameFontSize,
|
|
526
526
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
527
527
|
"text-anchor": "middle"
|
|
528
528
|
}, U(a.name), 9, Dt),
|
|
529
|
-
e.value.style.chart.yAxis.labels.ticks.show ? (
|
|
530
|
-
(
|
|
529
|
+
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 0 }, [
|
|
530
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("line", {
|
|
531
531
|
x1: n.x,
|
|
532
532
|
x2: n.x - 10,
|
|
533
533
|
y1: n.y,
|
|
@@ -536,25 +536,25 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
536
536
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
537
537
|
style: T(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
538
538
|
}, null, 12, Rt))), 256)),
|
|
539
|
-
(
|
|
539
|
+
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("text", {
|
|
540
540
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
541
|
-
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY +
|
|
541
|
+
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
542
542
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
543
543
|
"text-anchor": "end",
|
|
544
|
-
"font-size":
|
|
544
|
+
"font-size": c.value.ticksFontSize,
|
|
545
545
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
546
546
|
style: T(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
547
547
|
}, U(we({ value: n.value, index: o, datapoint: n })), 13, Vt))), 256))
|
|
548
|
-
], 64)) :
|
|
548
|
+
], 64)) : m("", !0)
|
|
549
549
|
]))), 256)),
|
|
550
|
-
(
|
|
551
|
-
(
|
|
552
|
-
e.value.style.chart.plots.show ? (
|
|
553
|
-
(
|
|
550
|
+
(i(!0), u(C, null, _(Q.value, (a) => (i(), u("g", null, [
|
|
551
|
+
(i(!0), u(C, null, _(a.series, (o, n) => (i(), u("g", null, [
|
|
552
|
+
e.value.style.chart.plots.show ? (i(), u("g", Et, [
|
|
553
|
+
(i(!0), u(C, null, _(o.datapoints, (s) => (i(), I(It, {
|
|
554
554
|
plot: { x: s.x, y: s.y },
|
|
555
555
|
color: a.color,
|
|
556
556
|
shape: a.shape,
|
|
557
|
-
radius: a.shape === "triangle" ?
|
|
557
|
+
radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
558
558
|
stroke: e.value.style.chart.backgroundColor,
|
|
559
559
|
strokeWidth: 0.5,
|
|
560
560
|
onMouseenter: (r) => B({
|
|
@@ -570,19 +570,19 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
570
570
|
style: T(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
571
571
|
onClick: () => et(s)
|
|
572
572
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
573
|
-
p.value.showTooltip ?
|
|
574
|
-
f.value && f.value === o.id && o.datapoints.length ? (
|
|
573
|
+
p.value.showTooltip ? m("", !0) : (i(), u(C, { key: 0 }, [
|
|
574
|
+
f.value && f.value === o.id && o.datapoints.length ? (i(), u("text", {
|
|
575
575
|
key: 0,
|
|
576
|
-
x: o.datapoints[0].x -
|
|
577
|
-
y: o.datapoints[0].y +
|
|
576
|
+
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
577
|
+
y: o.datapoints[0].y + c.value.ticksFontSize / 3,
|
|
578
578
|
"text-anchor": "end",
|
|
579
|
-
"font-size":
|
|
579
|
+
"font-size": c.value.ticksFontSize,
|
|
580
580
|
fill: a.color,
|
|
581
581
|
"font-weight": "bold"
|
|
582
|
-
}, U(o.name), 9, Ut)) :
|
|
582
|
+
}, U(o.name), 9, Ut)) : m("", !0)
|
|
583
583
|
], 64)),
|
|
584
|
-
e.value.style.chart.comments.show ? (
|
|
585
|
-
s.comment ? (
|
|
584
|
+
e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s) => (i(), u("g", null, [
|
|
585
|
+
s.comment ? (i(), u("foreignObject", {
|
|
586
586
|
key: 0,
|
|
587
587
|
style: { overflow: "visible" },
|
|
588
588
|
height: "12",
|
|
@@ -590,22 +590,22 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
590
590
|
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
591
591
|
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
592
592
|
}, [
|
|
593
|
-
|
|
593
|
+
S("div", jt, [
|
|
594
594
|
g(t.$slots, "plot-comment", {
|
|
595
595
|
plot: { ...s, color: a.color }
|
|
596
596
|
}, void 0, !0)
|
|
597
597
|
])
|
|
598
|
-
], 8, Wt)) :
|
|
599
|
-
]))), 256)) :
|
|
600
|
-
])) :
|
|
601
|
-
p.value.dataLabels.show || f.value && f.value === o.id ? (
|
|
598
|
+
], 8, Wt)) : m("", !0)
|
|
599
|
+
]))), 256)) : m("", !0)
|
|
600
|
+
])) : m("", !0),
|
|
601
|
+
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s, r) => (i(), u("text", {
|
|
602
602
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
603
|
-
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY +
|
|
603
|
+
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
604
604
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
605
605
|
"text-anchor": "start",
|
|
606
606
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
607
607
|
class: j({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
608
|
-
"font-size":
|
|
608
|
+
"font-size": c.value.datapointFontSize,
|
|
609
609
|
onMouseenter: (A) => B({
|
|
610
610
|
shape: a.shape,
|
|
611
611
|
serieName: a.name,
|
|
@@ -617,8 +617,8 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
617
617
|
f.value = null, D.value = !1;
|
|
618
618
|
}),
|
|
619
619
|
style: T(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
|
|
620
|
-
}, U(we({ value: s.value, index: r, datapoint: s })), 45, Bt))), 256)) :
|
|
621
|
-
|
|
620
|
+
}, U(we({ value: s.value, index: r, datapoint: s })), 45, Bt))), 256)) : m("", !0),
|
|
621
|
+
S("path", {
|
|
622
622
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
623
623
|
stroke: a.color,
|
|
624
624
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
@@ -636,7 +636,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
636
636
|
}),
|
|
637
637
|
style: T(`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}`)
|
|
638
638
|
}, null, 46, Ht),
|
|
639
|
-
p.value.showTooltip ? (
|
|
639
|
+
p.value.showTooltip ? (i(), u("path", {
|
|
640
640
|
key: 2,
|
|
641
641
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
642
642
|
stroke: "transparent",
|
|
@@ -654,15 +654,15 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
654
654
|
f.value = null, D.value = !1;
|
|
655
655
|
}),
|
|
656
656
|
style: { opacity: "0" }
|
|
657
|
-
}, null, 42, Gt)) :
|
|
657
|
+
}, null, 42, Gt)) : m("", !0)
|
|
658
658
|
]))), 256))
|
|
659
659
|
]))), 256)),
|
|
660
|
-
g(t.$slots, "svg", { svg:
|
|
661
|
-
], 14,
|
|
662
|
-
t.$slots.watermark ? (
|
|
663
|
-
g(t.$slots, "watermark", V(E({ isPrinting:
|
|
664
|
-
])) :
|
|
665
|
-
|
|
660
|
+
g(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
661
|
+
], 14, St)) : m("", !0),
|
|
662
|
+
t.$slots.watermark ? (i(), u("div", Xt, [
|
|
663
|
+
g(t.$slots, "watermark", V(E({ isPrinting: d(me) || d(fe) })), void 0, !0)
|
|
664
|
+
])) : m("", !0),
|
|
665
|
+
N.value ? m("", !0) : (i(), I(d(Be), {
|
|
666
666
|
key: 6,
|
|
667
667
|
config: {
|
|
668
668
|
type: "parallelCoordinatePlot",
|
|
@@ -671,11 +671,11 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
}, null, 8, ["config"])),
|
|
674
|
-
|
|
674
|
+
S("div", {
|
|
675
675
|
ref_key: "chartLegend",
|
|
676
676
|
ref: se
|
|
677
677
|
}, [
|
|
678
|
-
e.value.style.chart.legend.show &&
|
|
678
|
+
e.value.style.chart.legend.show && N.value ? (i(), I(Ft, {
|
|
679
679
|
key: `legend_${re.value}`,
|
|
680
680
|
legendSet: Ke.value,
|
|
681
681
|
config: Qe.value,
|
|
@@ -684,7 +684,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
684
684
|
})
|
|
685
685
|
}, {
|
|
686
686
|
item: k(({ legend: a, index: o }) => [
|
|
687
|
-
|
|
687
|
+
S("div", {
|
|
688
688
|
onClick: (n) => {
|
|
689
689
|
a.segregate(), Te(a);
|
|
690
690
|
},
|
|
@@ -694,18 +694,18 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
694
694
|
_: 1
|
|
695
695
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
696
696
|
key: 1,
|
|
697
|
-
legend:
|
|
697
|
+
legend: F.value
|
|
698
698
|
}, void 0, !0)
|
|
699
699
|
], 512),
|
|
700
|
-
t.$slots.source ? (
|
|
700
|
+
t.$slots.source ? (i(), u("div", {
|
|
701
701
|
key: 7,
|
|
702
702
|
ref_key: "source",
|
|
703
703
|
ref: ne,
|
|
704
704
|
dir: "auto"
|
|
705
705
|
}, [
|
|
706
706
|
g(t.$slots, "source", {}, void 0, !0)
|
|
707
|
-
], 512)) :
|
|
708
|
-
|
|
707
|
+
], 512)) : m("", !0),
|
|
708
|
+
_e(d(He), {
|
|
709
709
|
show: p.value.showTooltip && D.value,
|
|
710
710
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
711
711
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -718,8 +718,8 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
718
718
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
719
719
|
parent: W.value,
|
|
720
720
|
content: ee.value,
|
|
721
|
-
isFullscreen:
|
|
722
|
-
isCustom:
|
|
721
|
+
isFullscreen: O.value,
|
|
722
|
+
isCustom: d(Se)(e.value.style.chart.tooltip.customFormat)
|
|
723
723
|
}, {
|
|
724
724
|
"tooltip-before": k(() => [
|
|
725
725
|
g(t.$slots, "tooltip-before", V(E({ ...Z.value })), void 0, !0)
|
|
@@ -729,7 +729,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
729
729
|
]),
|
|
730
730
|
_: 3
|
|
731
731
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
732
|
-
|
|
732
|
+
N.value ? (i(), I(d(Ee), {
|
|
733
733
|
key: 8,
|
|
734
734
|
hideDetails: "",
|
|
735
735
|
config: {
|
|
@@ -746,7 +746,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
746
746
|
}
|
|
747
747
|
}, {
|
|
748
748
|
content: k(() => [
|
|
749
|
-
(
|
|
749
|
+
(i(), I(d(Ue), {
|
|
750
750
|
key: `table_${ce.value}`,
|
|
751
751
|
colNames: R.value.colNames,
|
|
752
752
|
head: R.value.head,
|
|
@@ -756,19 +756,19 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
|
|
|
756
756
|
onClose: l[5] || (l[5] = (a) => p.value.showTable = !1)
|
|
757
757
|
}, {
|
|
758
758
|
th: k(({ th: a }) => [
|
|
759
|
-
|
|
759
|
+
S("div", { innerHTML: a }, null, 8, qt)
|
|
760
760
|
]),
|
|
761
761
|
td: k(({ td: a }) => [
|
|
762
|
-
|
|
762
|
+
it(U(a), 1)
|
|
763
763
|
]),
|
|
764
764
|
_: 1
|
|
765
765
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
766
766
|
]),
|
|
767
767
|
_: 1
|
|
768
|
-
}, 8, ["config"])) :
|
|
768
|
+
}, 8, ["config"])) : m("", !0)
|
|
769
769
|
], 46, Pt));
|
|
770
770
|
}
|
|
771
|
-
},
|
|
771
|
+
}, ua = /* @__PURE__ */ _t(Jt, [["__scopeId", "data-v-e4273c5d"]]);
|
|
772
772
|
export {
|
|
773
|
-
|
|
773
|
+
ua as default
|
|
774
774
|
};
|