vue-data-ui 2.17.6 → 2.17.8
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-B5XMxiDI.js → Arrow-DYlWuLXi.js} +1 -1
- package/dist/{BaseDraggableDialog-B05teCuC.js → BaseDraggableDialog-CmuNYgQ_.js} +2 -2
- package/dist/{BaseIcon-CbMrQkx9.js → BaseIcon-JzuC_zOc.js} +1 -1
- package/dist/{ColorPicker-KP19H18w.js → ColorPicker-DABzbSoE.js} +2 -2
- package/dist/{DataTable-CZ_AURpz.js → DataTable-DL4oxWqC.js} +2 -2
- package/dist/{Legend-BHey9BA_.js → Legend-j5wCO6uB.js} +19 -18
- package/dist/{NonSvgPenAndPaper-C9niuQO5.js → NonSvgPenAndPaper-wAgHmBWu.js} +3 -3
- package/dist/{PackageVersion-BuyTFzA_.js → PackageVersion-LvFPKRHt.js} +1 -1
- package/dist/{PenAndPaper-C6SI350S.js → PenAndPaper-Cdll_WgQ.js} +3 -3
- package/dist/{Shape-DeUTHS2H.js → Shape-DOL0bRNl.js} +1 -1
- package/dist/{Slicer-fejiX9pa.js → Slicer-CBuxA5hg.js} +2 -2
- package/dist/{SparkTooltip-Bh6sdk1R.js → SparkTooltip-CZXvitzh.js} +1 -1
- package/dist/{Title-eafHHaEy.js → Title-BjfgUisx.js} +1 -1
- package/dist/{Tooltip-DqkPv4p5.js → Tooltip-BoPZ8xim.js} +1 -1
- package/dist/{UserOptions-Xu1YwU1i.js → UserOptions-DpcJg89h.js} +2 -2
- package/dist/{dom-to-png-DttAWyyk.js → dom-to-png-DfbWRkZt.js} +1 -1
- package/dist/{img-B7FQLrD7.js → img-BUVma9Jy.js} +1 -1
- package/dist/{index-CNt4Vhp9.js → index-Bhi_gkax.js} +618 -624
- package/dist/{pdf-MhTzuA1z.js → pdf-b30HG9-L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useNestedProp-BI2tFEgE.js → useNestedProp-91GL6beP.js} +1 -1
- package/dist/{usePrinter-BGZOlDDN.js → usePrinter-c5W1Lpb-.js} +2 -2
- package/dist/{vue-data-ui-ClvOBukx.js → vue-data-ui-ClgIhqb5.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DpD3ikuS.js → vue-ui-3d-bar-B4ys2znY.js} +6 -6
- package/dist/{vue-ui-accordion-BE-IMk5e.js → vue-ui-accordion-B9dwUCCo.js} +3 -3
- package/dist/{vue-ui-age-pyramid-iTZEunV8.js → vue-ui-age-pyramid-_BkH_Yhx.js} +6 -6
- package/dist/{vue-ui-annotator-BzvdPz95.js → vue-ui-annotator-Dluw7ZA3.js} +2 -2
- package/dist/{vue-ui-bullet-B-wUrrB3.js → vue-ui-bullet-DhZOiq8D.js} +7 -7
- package/dist/{vue-ui-candlestick-CCWOBvyK.js → vue-ui-candlestick-j-aDDODy.js} +7 -7
- package/dist/{vue-ui-carousel-table-Bui8kmRH.js → vue-ui-carousel-table-cxJXJTry.js} +4 -4
- package/dist/{vue-ui-chestnut-CWng5XOC.js → vue-ui-chestnut-C2v1rXOc.js} +6 -6
- package/dist/{vue-ui-chord-CcWakA3D.js → vue-ui-chord-DA1g8cFH.js} +8 -8
- package/dist/{vue-ui-circle-pack-BCaGnC6O.js → vue-ui-circle-pack-llMYn1eQ.js} +6 -6
- package/dist/{vue-ui-cursor-CehblpQK.js → vue-ui-cursor-DtzJdTc8.js} +2 -2
- package/dist/{vue-ui-dashboard-0GLoZUA2.js → vue-ui-dashboard-C_KYwbBp.js} +62 -62
- package/dist/{vue-ui-digits-DF1vHQ1D.js → vue-ui-digits-CZJqt7KN.js} +2 -2
- package/dist/{vue-ui-donut-DRBk_HYh.js → vue-ui-donut-DYdwk3Jo.js} +192 -185
- package/dist/{vue-ui-donut-evolution-CLHxXCuD.js → vue-ui-donut-evolution-CYDAxPIq.js} +8 -8
- package/dist/{vue-ui-dumbbell-BRmCusY0.js → vue-ui-dumbbell-BpW9zte3.js} +7 -7
- package/dist/{vue-ui-flow-D7WGLuvV.js → vue-ui-flow-yWOjg0ml.js} +7 -7
- package/dist/{vue-ui-funnel-DjNGxVxu.js → vue-ui-funnel-LxGQxbEz.js} +6 -6
- package/dist/{vue-ui-galaxy-U8ejfLWO.js → vue-ui-galaxy-DolKndfI.js} +5 -5
- package/dist/{vue-ui-gauge-DizxW2Xu.js → vue-ui-gauge-CDmsrtIL.js} +6 -6
- package/dist/{vue-ui-gizmo-BjFeSL7X.js → vue-ui-gizmo-Kme6plpS.js} +3 -3
- package/dist/{vue-ui-heatmap-Ccv1uJHg.js → vue-ui-heatmap-Bp2A8Arg.js} +7 -7
- package/dist/{vue-ui-history-plot-DZr3ZdGS.js → vue-ui-history-plot-DasdR40T.js} +7 -7
- package/dist/{vue-ui-kpi-BAbus_Tt.js → vue-ui-kpi-BJiRwf8L.js} +3 -3
- package/dist/{vue-ui-mini-loader-jDIz8RyR.js → vue-ui-mini-loader-4GbiZFGc.js} +2 -2
- package/dist/{vue-ui-molecule-DXv62-LW.js → vue-ui-molecule-DRZW4dcT.js} +5 -5
- package/dist/{vue-ui-mood-radar-B9oxs6M6.js → vue-ui-mood-radar-BslTbp_K.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DdQ09CTY.js → vue-ui-nested-donuts-D_I5nFYM.js} +269 -269
- package/dist/{vue-ui-onion-DOptmUuE.js → vue-ui-onion-By6rMWSq.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-CE05YF2g.js → vue-ui-parallel-coordinate-plot-FSbt6xZU.js} +8 -8
- package/dist/{vue-ui-quadrant-DYz8y-m1.js → vue-ui-quadrant-D2SZsQX2.js} +8 -8
- package/dist/{vue-ui-quick-chart-plvfC_DT.js → vue-ui-quick-chart-Bo13uYcp.js} +6 -6
- package/dist/{vue-ui-radar-CJe7r_Ks.js → vue-ui-radar-5f3-7kcx.js} +7 -7
- package/dist/{vue-ui-rating-D1jE5Ak_.js → vue-ui-rating-COk89u87.js} +2 -2
- package/dist/{vue-ui-relation-circle-B6X49uAY.js → vue-ui-relation-circle-ITRSPBOd.js} +6 -6
- package/dist/{vue-ui-ridgeline-C7EZKTo6.js → vue-ui-ridgeline-BnvtZMvq.js} +8 -8
- package/dist/{vue-ui-rings-C3RKJnZC.js → vue-ui-rings-kO4fxKrw.js} +8 -8
- package/dist/{vue-ui-scatter-FCuwnAoV.js → vue-ui-scatter-DbgDW3EF.js} +8 -8
- package/dist/{vue-ui-skeleton-Bpd3uMFT.js → vue-ui-skeleton-BBf1FidG.js} +3 -3
- package/dist/{vue-ui-smiley-DJAXb8r7.js → vue-ui-smiley-xgEhLANa.js} +2 -2
- package/dist/{vue-ui-spark-trend-aQNa2scr.js → vue-ui-spark-trend-2yK4bK8z.js} +3 -3
- package/dist/{vue-ui-sparkbar-DG1xT-2y.js → vue-ui-sparkbar-B7AUP7ut.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B_P9WUij.js → vue-ui-sparkgauge-BfIb11zQ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFeb1YdS.js → vue-ui-sparkhistogram-D95mLKGW.js} +4 -4
- package/dist/{vue-ui-sparkline-Du-laBid.js → vue-ui-sparkline-BPzz-E_C.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-SZ5eU6gZ.js → vue-ui-sparkstackbar-BFKL4V5v.js} +3 -3
- package/dist/{vue-ui-stackbar-BXFKobNU.js → vue-ui-stackbar-QI4i95LG.js} +9 -9
- package/dist/{vue-ui-strip-plot-BDo6l_l6.js → vue-ui-strip-plot-BcySUGYI.js} +7 -7
- package/dist/{vue-ui-table-BpoXkgRA.js → vue-ui-table-DiNgV9dz.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BJFJ2K1F.js → vue-ui-table-heatmap-07tD0NCe.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Dxorwils.js → vue-ui-table-sparkline-DZhnql2j.js} +4 -4
- package/dist/{vue-ui-thermometer-BJF-fB5p.js → vue-ui-thermometer-B6PHOm3M.js} +6 -6
- package/dist/{vue-ui-timer-DWmZKJij.js → vue-ui-timer-CY-gJqja.js} +5 -5
- package/dist/{vue-ui-tiremarks-BwL7Z4fj.js → vue-ui-tiremarks-DUKvCcng.js} +6 -6
- package/dist/{vue-ui-treemap-DNgGFetB.js → vue-ui-treemap-Dfe1Y1T8.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CNr5Jrwd.js → vue-ui-vertical-bar-P6m6EskB.js} +9 -9
- package/dist/{vue-ui-waffle-BeAxPtiv.js → vue-ui-waffle-Fb6UUjl8.js} +8 -8
- package/dist/{vue-ui-wheel-BZ0pa_6W.js → vue-ui-wheel-DjF9rAob.js} +6 -6
- package/dist/{vue-ui-word-cloud-DIjaOMPZ.js → vue-ui-word-cloud-1XHiYPIT.js} +6 -6
- package/dist/{vue-ui-world-CvRfePfH.js → vue-ui-world-ldyHuYrM.js} +6 -6
- package/dist/{vue-ui-xy-5gnkPQs4.js → vue-ui-xy-BtCdKf-b.js} +17 -17
- package/dist/{vue-ui-xy-canvas-BHKnaGNJ.js → vue-ui-xy-canvas-B9dWDKnI.js} +8 -8
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as te, useSlots as Bt, computed as f, shallowRef as W, ref as w, onMounted as
|
|
2
|
-
import { u as Wt, o as Ut, e as
|
|
1
|
+
import { defineAsyncComponent as te, useSlots as Bt, computed as f, shallowRef as W, ref as w, onMounted as nt, onBeforeUnmount as Et, watch as ut, createElementBlock as u, openBlock as s, normalizeStyle as k, normalizeClass as Ce, createBlock as le, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Pe, unref as r, createSlots as rt, withCtx as P, normalizeProps as ue, guardReactiveProps as re, Fragment as p, renderList as M, mergeProps as it, toDisplayString as I, createTextVNode as Gt, nextTick as Rt } from "vue";
|
|
2
|
+
import { u as Wt, o as Ut, e as Te, g as jt, c as Ht, b as qt, v as Jt, d as vt, p as ae, m as dt, $ as Kt, f as z, X as Qt, s as ge, w as Zt, j as el, N as L, i as V, k as he, n as x, t as tl, a as ll, C as Ae, q as al, r as ol, x as sl, T as ct } from "./index-Bhi_gkax.js";
|
|
3
3
|
import { t as nl, u as ul } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ht } from "./useNestedProp-
|
|
5
|
-
import { u as rl } from "./usePrinter-
|
|
4
|
+
import { u as ht } from "./useNestedProp-91GL6beP.js";
|
|
5
|
+
import { u as rl } from "./usePrinter-c5W1Lpb-.js";
|
|
6
6
|
import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as vl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import dl from "./Legend-
|
|
9
|
-
import cl from "./Title-
|
|
10
|
-
import { _ as hl } from "./Shape-
|
|
11
|
-
import yl from "./img-
|
|
8
|
+
import dl from "./Legend-j5wCO6uB.js";
|
|
9
|
+
import cl from "./Title-BjfgUisx.js";
|
|
10
|
+
import { _ as hl } from "./Shape-DOL0bRNl.js";
|
|
11
|
+
import yl from "./img-BUVma9Jy.js";
|
|
12
12
|
import { _ as fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { key: 1 }, wl = ["id"], kl = ["stop-color"], xl = ["offset", "stop-color"], _l = ["offset", "stop-color"], $l = ["stop-color"], Cl = { key: 2 }, Pl = ["id", "cx", "cy"], Tl = ["stop-color", "stop-opacity"],
|
|
13
|
+
const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { key: 1 }, wl = ["id"], kl = ["stop-color"], xl = ["offset", "stop-color"], _l = ["offset", "stop-color"], $l = ["stop-color"], Cl = { key: 2 }, Pl = ["id", "cx", "cy"], Tl = ["stop-color", "stop-opacity"], Al = ["stop-color"], Il = ["id"], Ml = ["id"], Sl = ["id"], Ll = ["flood-color"], Fl = ["id"], zl = ["flood-color"], Ol = ["d", "stroke", "filter"], Nl = ["d", "stroke", "filter"], Yl = ["cx", "cy", "r", "fill", "filter"], Xl = { key: 6 }, Vl = ["stroke", "d"], Dl = ["d", "fill", "stroke", "stroke-width", "filter"], Bl = { key: 0 }, El = ["d", "fill", "stroke", "stroke-width", "filter"], Gl = { key: 0 }, Rl = ["stroke", "d"], Wl = { key: 0 }, Ul = ["d", "stroke", "stroke-width", "filter"], jl = { key: 1 }, Hl = ["d", "fill", "stroke", "stroke-width", "filter"], ql = ["d", "fill", "stroke", "stroke-width", "filter"], Jl = { key: 1 }, Kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Zl = { key: 0 }, ea = ["d", "fill", "stroke", "stroke-width"], ta = ["cx", "cy", "r", "stroke"], la = ["cx", "cy", "r", "fill"], aa = { key: 0 }, oa = ["d", "fill", "onMouseenter", "onMouseleave", "onClick"], sa = { key: 1 }, na = ["cx", "cy", "r"], ua = ["x", "y", "fill", "font-size"], ra = ["x", "y", "fill", "font-size"], ia = ["x", "y", "fill", "font-size"], va = ["x", "y", "fill", "font-size"], da = ["filter"], ca = { key: 0 }, ha = ["x", "y"], ya = { key: 1 }, fa = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], pa = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ma = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ba = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], wa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ka = { key: 2 }, xa = ["x", "y", "width"], _a = ["x", "y", "width"], $a = {
|
|
14
14
|
key: 5,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
16
|
}, Ca = ["onClick"], Pa = ["innerHTML"], Ta = {
|
|
@@ -31,44 +31,51 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
33
33
|
setup(Ie, { expose: yt, emit: ft }) {
|
|
34
|
-
const pt = te(() => import("./vue-ui-accordion-
|
|
34
|
+
const pt = te(() => import("./vue-ui-accordion-B9dwUCCo.js")), gt = te(() => import("./DataTable-DL4oxWqC.js")), mt = te(() => import("./PackageVersion-LvFPKRHt.js")), bt = te(() => import("./PenAndPaper-Cdll_WgQ.js")), wt = te(() => import("./vue-ui-skeleton-BBf1FidG.js")), kt = te(() => import("./Tooltip-BoPZ8xim.js")), xt = te(() => import("./UserOptions-DpcJg89h.js")), { vue_ui_donut: _t } = Wt(), $t = Bt(), g = Ie, ie = f({
|
|
35
35
|
get() {
|
|
36
|
-
return !!
|
|
36
|
+
return !!g.dataset && g.dataset.length;
|
|
37
37
|
},
|
|
38
38
|
set(l) {
|
|
39
39
|
return l;
|
|
40
40
|
}
|
|
41
|
-
}), U = W(null), Me = W(null),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}),
|
|
41
|
+
}), U = W(null), Me = W(null), Se = W(null), j = W(null), oe = W(null), Le = W(null), Fe = W(null), ze = w(0), Oe = w(0), Ne = w(0);
|
|
42
|
+
nt(() => {
|
|
43
|
+
Ye();
|
|
44
|
+
}), Et(() => {
|
|
45
45
|
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect());
|
|
46
46
|
});
|
|
47
|
-
function
|
|
48
|
-
if (Ut(
|
|
47
|
+
function Ye() {
|
|
48
|
+
if (Ut(g.dataset) ? Te({
|
|
49
49
|
componentName: "VueUiDonut",
|
|
50
50
|
type: "dataset"
|
|
51
|
-
}) :
|
|
51
|
+
}) : (g.dataset.forEach((l, o) => {
|
|
52
52
|
jt({
|
|
53
53
|
datasetObject: l,
|
|
54
54
|
requiredAttributes: ["name", "values"]
|
|
55
55
|
}).forEach((t) => {
|
|
56
|
-
ie.value = !1,
|
|
56
|
+
ie.value = !1, Te({
|
|
57
57
|
componentName: "VueUiDonut",
|
|
58
58
|
type: "datasetSerieAttribute",
|
|
59
59
|
property: t,
|
|
60
60
|
index: o
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
63
|
+
}), g.dataset.forEach((l, o) => {
|
|
64
|
+
(!l.name || l.name === "") && Te({
|
|
65
|
+
componentName: "VueUiDonut",
|
|
66
|
+
type: "datasetAttributeEmpty",
|
|
67
|
+
property: "name",
|
|
68
|
+
index: o
|
|
69
|
+
});
|
|
70
|
+
})), e.value.responsive) {
|
|
64
71
|
const l = nl(() => {
|
|
65
72
|
const { width: o, height: t } = ul({
|
|
66
73
|
chart: U.value,
|
|
67
74
|
title: e.value.style.chart.title.text ? Me.value : null,
|
|
68
|
-
legend: e.value.style.chart.legend.show ?
|
|
69
|
-
source:
|
|
70
|
-
noTitle:
|
|
71
|
-
padding:
|
|
75
|
+
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
76
|
+
source: Le.value,
|
|
77
|
+
noTitle: Fe.value,
|
|
78
|
+
padding: Ee.value
|
|
72
79
|
});
|
|
73
80
|
requestAnimationFrame(() => {
|
|
74
81
|
n.value.width = o, n.value.height = t;
|
|
@@ -77,23 +84,23 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
77
84
|
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(l), oe.value = U.value.parentNode, j.value.observe(oe.value);
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
|
-
const
|
|
81
|
-
function
|
|
87
|
+
const m = w(Ht()), Ct = w(null), me = w(!1), be = w(""), O = w(null), Xe = w(0);
|
|
88
|
+
function Ve() {
|
|
82
89
|
const l = ht({
|
|
83
|
-
userConfig:
|
|
90
|
+
userConfig: g.config,
|
|
84
91
|
defaultConfig: _t
|
|
85
92
|
});
|
|
86
93
|
let o = {};
|
|
87
94
|
return l.theme ? o = {
|
|
88
95
|
...ht({
|
|
89
|
-
userConfig: ll.vue_ui_donut[l.theme] ||
|
|
96
|
+
userConfig: ll.vue_ui_donut[l.theme] || g.config,
|
|
90
97
|
defaultConfig: l
|
|
91
98
|
}),
|
|
92
99
|
customPalette: tl[l.theme] || ae
|
|
93
|
-
} : o = l,
|
|
100
|
+
} : o = l, g.config && Ae(g.config, "events.datapointEnter") ? o.events.datapointEnter = g.config.events.datapointEnter : o.events.datapointEnter = null, g.config && Ae(g.config, "events.datapointLeave") ? o.events.datapointLeave = g.config.events.datapointLeave : o.events.datapointLeave = null, g.config && Ae(g.config, "events.datapointClick") ? o.events.datapointClick = g.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
94
101
|
}
|
|
95
102
|
const e = f({
|
|
96
|
-
get: () =>
|
|
103
|
+
get: () => Ve(),
|
|
97
104
|
set: (l) => l
|
|
98
105
|
}), T = w(!0), B = W([]);
|
|
99
106
|
function Pt(l, o = 1e3, t = 50) {
|
|
@@ -113,25 +120,25 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
113
120
|
});
|
|
114
121
|
});
|
|
115
122
|
}
|
|
116
|
-
|
|
117
|
-
const l =
|
|
123
|
+
nt(async () => {
|
|
124
|
+
const l = g.dataset.map((o) => o.values.reduce((t, a) => t + a, 0));
|
|
118
125
|
e.value.startAnimation.show && await Pt(
|
|
119
126
|
l,
|
|
120
127
|
e.value.startAnimation.durationMs,
|
|
121
128
|
e.value.startAnimation.staggerMs
|
|
122
129
|
), T.value = !1;
|
|
123
130
|
});
|
|
124
|
-
const { userOptionsVisible: we, setUserOptionsVisibility:
|
|
131
|
+
const { userOptionsVisible: we, setUserOptionsVisibility: De, keepUserOptionState: Be } = il({ config: e.value }), { svgRef: ve } = vl({ config: e.value.style.chart.title });
|
|
125
132
|
function Tt() {
|
|
126
|
-
|
|
133
|
+
De(!0);
|
|
127
134
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
135
|
+
function At() {
|
|
136
|
+
De(!1);
|
|
130
137
|
}
|
|
131
|
-
|
|
132
|
-
e.value =
|
|
138
|
+
ut(() => g.config, (l) => {
|
|
139
|
+
e.value = Ve(), we.value = !e.value.userOptions.showOnChartHover, Ye(), ze.value += 1, Oe.value += 1, Ne.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
|
|
133
140
|
}, { deep: !0 });
|
|
134
|
-
const
|
|
141
|
+
const Ee = f(() => {
|
|
135
142
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
136
143
|
return {
|
|
137
144
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -140,11 +147,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
140
147
|
bottom: t,
|
|
141
148
|
left: a
|
|
142
149
|
};
|
|
143
|
-
}), { isPrinting: Ge, isImaging:
|
|
144
|
-
elementId: `donut__${
|
|
150
|
+
}), { isPrinting: Ge, isImaging: Re, generatePdf: We, generateImage: Ue } = rl({
|
|
151
|
+
elementId: `donut__${m.value}`,
|
|
145
152
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
146
153
|
options: e.value.userOptions.print
|
|
147
|
-
}),
|
|
154
|
+
}), It = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), je = f(() => qt(e.value.customPalette)), y = w({
|
|
148
155
|
dataLabels: {
|
|
149
156
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
150
157
|
},
|
|
@@ -156,27 +163,27 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
156
163
|
}), Q = f(() => {
|
|
157
164
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * l, t = o > _.value ? _.value : o;
|
|
158
165
|
return Math.max(t, 3);
|
|
159
|
-
}),
|
|
166
|
+
}), He = ft, E = f(() => g.dataset.map((l, o) => ({
|
|
160
167
|
name: l.name,
|
|
161
|
-
color: vt(l.color) ||
|
|
168
|
+
color: vt(l.color) || je.value[o] || ae[o] || ae[o % ae.length],
|
|
162
169
|
value: Jt(l.values.reduce((t, a) => t + a, 0)),
|
|
163
170
|
absoluteValues: l.values,
|
|
164
171
|
comment: l.comment || "",
|
|
165
172
|
patternIndex: o,
|
|
166
173
|
seriesIndex: o,
|
|
167
174
|
ghost: !1,
|
|
168
|
-
pattern: `pattern_${
|
|
169
|
-
}))), F = W(
|
|
170
|
-
|
|
171
|
-
function
|
|
172
|
-
return
|
|
175
|
+
pattern: `pattern_${m.value}_${o}`
|
|
176
|
+
}))), F = W(E.value);
|
|
177
|
+
ut(() => E.value, (l) => F.value = l);
|
|
178
|
+
function Mt() {
|
|
179
|
+
return E.value.map((l) => ({
|
|
173
180
|
name: l.name,
|
|
174
181
|
color: l.color,
|
|
175
182
|
value: l.value
|
|
176
183
|
}));
|
|
177
184
|
}
|
|
178
185
|
const D = w([]), Z = w(!1);
|
|
179
|
-
function
|
|
186
|
+
function qe({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = ct }) {
|
|
180
187
|
const $ = performance.now();
|
|
181
188
|
function C(R) {
|
|
182
189
|
const X = Math.min((R - $) / t, 1), ce = c(X), pe = l + (o - l) * ce;
|
|
@@ -184,8 +191,8 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
184
191
|
}
|
|
185
192
|
requestAnimationFrame(C);
|
|
186
193
|
}
|
|
187
|
-
function
|
|
188
|
-
const o =
|
|
194
|
+
function Je(l) {
|
|
195
|
+
const o = E.value.find((i, c) => c === l);
|
|
189
196
|
let a = F.value.find((i, c) => c === l).value;
|
|
190
197
|
if (D.value.includes(l)) {
|
|
191
198
|
let c = function() {
|
|
@@ -193,7 +200,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
193
200
|
(C, R) => l === R ? { ...C, value: i } : C
|
|
194
201
|
);
|
|
195
202
|
}, $ = function() {
|
|
196
|
-
Z.value = !0,
|
|
203
|
+
Z.value = !0, qe({
|
|
197
204
|
from: a,
|
|
198
205
|
to: i,
|
|
199
206
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -210,13 +217,13 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
210
217
|
D.value = D.value.filter((C) => C !== l);
|
|
211
218
|
const i = o.value;
|
|
212
219
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? $() : c();
|
|
213
|
-
} else if (D.value.length <
|
|
220
|
+
} else if (D.value.length < E.value.length - 1) {
|
|
214
221
|
let i = function() {
|
|
215
222
|
D.value.push(l), F.value = F.value.map(
|
|
216
223
|
($, C) => l === C ? { ...$, value: 0 } : $
|
|
217
224
|
);
|
|
218
225
|
}, c = function() {
|
|
219
|
-
Z.value = !0,
|
|
226
|
+
Z.value = !0, qe({
|
|
220
227
|
from: a,
|
|
221
228
|
to: 0,
|
|
222
229
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -232,18 +239,18 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
232
239
|
};
|
|
233
240
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
234
241
|
}
|
|
235
|
-
|
|
242
|
+
He("selectLegend", G.value.map((i) => ({
|
|
236
243
|
name: i.name,
|
|
237
244
|
color: i.color,
|
|
238
245
|
value: i.value
|
|
239
246
|
})));
|
|
240
247
|
}
|
|
241
|
-
const St = f(() =>
|
|
248
|
+
const St = f(() => g.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), G = f(() => {
|
|
242
249
|
if (T.value) {
|
|
243
250
|
const l = B.value.map((t, a) => ({
|
|
244
|
-
...
|
|
251
|
+
...E.value[a],
|
|
245
252
|
value: t,
|
|
246
|
-
color:
|
|
253
|
+
color: E.value[a].color,
|
|
247
254
|
ghost: !1
|
|
248
255
|
})), o = St.value - B.value.reduce((t, a) => t + a, 0);
|
|
249
256
|
return o > 0 && l.push({
|
|
@@ -263,17 +270,17 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
263
270
|
...l,
|
|
264
271
|
seriesIndex: o
|
|
265
272
|
})).filter((l, o) => !D.value.includes(o));
|
|
266
|
-
}),
|
|
273
|
+
}), Ke = f(() => g.dataset.map((l, o) => ({
|
|
267
274
|
name: l.name,
|
|
268
|
-
color: vt(l.color) ||
|
|
275
|
+
color: vt(l.color) || je.value[o] || ae[o] || ae[o % ae.length],
|
|
269
276
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
270
277
|
shape: "circle",
|
|
271
278
|
patternIndex: o
|
|
272
279
|
})).map((l, o) => ({
|
|
273
280
|
...l,
|
|
274
|
-
proportion: l.value /
|
|
281
|
+
proportion: l.value / g.dataset.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
275
282
|
opacity: D.value.includes(o) ? 0.5 : 1,
|
|
276
|
-
segregate: () => !Z.value &&
|
|
283
|
+
segregate: () => !Z.value && Je(o),
|
|
277
284
|
isSegregated: D.value.includes(o)
|
|
278
285
|
}))), Lt = f(() => ({
|
|
279
286
|
cy: "donut-div-legend",
|
|
@@ -285,7 +292,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
285
292
|
})), _ = f(() => {
|
|
286
293
|
const l = Math.min(n.value.width / 3, n.value.height / 3);
|
|
287
294
|
return l < 55 ? 55 : l;
|
|
288
|
-
}),
|
|
295
|
+
}), A = f(() => dt({ series: G.value }, n.value.width / 2, n.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, Q.value)), Ft = f(() => Math.abs(G.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), zt = f(() => dt({
|
|
289
296
|
series: [
|
|
290
297
|
{
|
|
291
298
|
value: 1,
|
|
@@ -297,8 +304,8 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
297
304
|
absoluteValues: [1]
|
|
298
305
|
}
|
|
299
306
|
]
|
|
300
|
-
}, n.value.width / 2, n.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, Q.value)), N = f(() =>
|
|
301
|
-
const l = Math.max(...
|
|
307
|
+
}, n.value.width / 2, n.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, Q.value)), N = f(() => A.value.filter((l) => !l.ghost)), d = f(() => {
|
|
308
|
+
const l = Math.max(...G.value.map((t) => t.value)), o = G.value.map((t) => t.value / l);
|
|
302
309
|
return Kt({
|
|
303
310
|
series: o,
|
|
304
311
|
center: {
|
|
@@ -334,12 +341,12 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
334
341
|
function Nt(l) {
|
|
335
342
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
336
343
|
}
|
|
337
|
-
const S = f(() =>
|
|
344
|
+
const S = f(() => G.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Qe = f(() => S.value / G.value.length), Ze = f(() => (l) => Z.value ? l.proportion * 100 : l.value / S.value * 100), xe = w(null), de = w(!1);
|
|
338
345
|
function H({ datapoint: l, seriesIndex: o }) {
|
|
339
346
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), me.value = !1, O.value = null;
|
|
340
347
|
}
|
|
341
348
|
function q({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
342
|
-
|
|
349
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), xe.value = { datapoint: l, seriesIndex: t, config: e.value, series: E.value }, me.value = a, O.value = o;
|
|
343
350
|
let i = "";
|
|
344
351
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
345
352
|
if (de.value = !1, sl(c))
|
|
@@ -347,7 +354,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
347
354
|
const $ = c({
|
|
348
355
|
seriesIndex: t,
|
|
349
356
|
datapoint: l,
|
|
350
|
-
series:
|
|
357
|
+
series: E.value,
|
|
351
358
|
config: e.value
|
|
352
359
|
});
|
|
353
360
|
typeof $ == "string" && (be.value = $, de.value = !0);
|
|
@@ -355,7 +362,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
355
362
|
console.warn("Custom format cannot be applied."), de.value = !1;
|
|
356
363
|
}
|
|
357
364
|
if (!de.value) {
|
|
358
|
-
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${$t.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${
|
|
365
|
+
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${$t.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${m.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${V(
|
|
359
366
|
e.value.style.chart.layout.labels.value.formatter,
|
|
360
367
|
l.value,
|
|
361
368
|
z({
|
|
@@ -390,16 +397,16 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
390
397
|
}
|
|
391
398
|
}
|
|
392
399
|
function ee(l) {
|
|
393
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${
|
|
400
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${m.value})` : "";
|
|
394
401
|
}
|
|
395
402
|
const J = f(() => {
|
|
396
|
-
const l =
|
|
403
|
+
const l = G.value.map((t) => ({
|
|
397
404
|
name: t.name,
|
|
398
405
|
color: t.color
|
|
399
|
-
})), o =
|
|
406
|
+
})), o = G.value.map((t) => t.value);
|
|
400
407
|
return { head: l, body: o };
|
|
401
408
|
});
|
|
402
|
-
function
|
|
409
|
+
function et(l = null) {
|
|
403
410
|
Rt(() => {
|
|
404
411
|
const o = J.value.head.map((i, c) => [[
|
|
405
412
|
i.name
|
|
@@ -443,23 +450,23 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
443
450
|
config: t
|
|
444
451
|
};
|
|
445
452
|
}), ne = w(!1);
|
|
446
|
-
function
|
|
447
|
-
ne.value = l,
|
|
453
|
+
function tt(l) {
|
|
454
|
+
ne.value = l, Xe.value += 1;
|
|
448
455
|
}
|
|
449
|
-
const
|
|
456
|
+
const lt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
450
457
|
function Yt(l) {
|
|
451
458
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
452
459
|
}
|
|
453
460
|
function K(l, o) {
|
|
454
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
461
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), He("selectDatapoint", { datapoint: l, index: o });
|
|
455
462
|
}
|
|
456
|
-
function
|
|
463
|
+
function at() {
|
|
457
464
|
y.value.showTable = !y.value.showTable;
|
|
458
465
|
}
|
|
459
|
-
function
|
|
466
|
+
function ot() {
|
|
460
467
|
y.value.dataLabels.show = !y.value.dataLabels.show;
|
|
461
468
|
}
|
|
462
|
-
function
|
|
469
|
+
function st() {
|
|
463
470
|
y.value.showTooltip = !y.value.showTooltip;
|
|
464
471
|
}
|
|
465
472
|
const fe = w(!1);
|
|
@@ -486,24 +493,24 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
486
493
|
}
|
|
487
494
|
return yt({
|
|
488
495
|
autoSize: Vt,
|
|
489
|
-
getData:
|
|
496
|
+
getData: Mt,
|
|
490
497
|
getImage: Xt,
|
|
491
|
-
generatePdf:
|
|
492
|
-
generateCsv:
|
|
493
|
-
generateImage:
|
|
494
|
-
toggleTable:
|
|
495
|
-
toggleLabels:
|
|
496
|
-
toggleTooltip:
|
|
498
|
+
generatePdf: We,
|
|
499
|
+
generateCsv: et,
|
|
500
|
+
generateImage: Ue,
|
|
501
|
+
toggleTable: at,
|
|
502
|
+
toggleLabels: ot,
|
|
503
|
+
toggleTooltip: st,
|
|
497
504
|
toggleAnnotator: _e,
|
|
498
|
-
toggleFullscreen:
|
|
505
|
+
toggleFullscreen: tt
|
|
499
506
|
}), (l, o) => (s(), u("div", {
|
|
500
507
|
ref_key: "donutChart",
|
|
501
508
|
ref: U,
|
|
502
509
|
class: Ce(`vue-ui-donut ${ne.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
503
510
|
style: k(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
504
|
-
id: `donut__${
|
|
511
|
+
id: `donut__${m.value}`,
|
|
505
512
|
onMouseenter: Tt,
|
|
506
|
-
onMouseleave:
|
|
513
|
+
onMouseleave: At
|
|
507
514
|
}, [
|
|
508
515
|
e.value.userOptions.buttons.annotator && r(ve) ? (s(), le(r(bt), {
|
|
509
516
|
key: 0,
|
|
@@ -514,10 +521,10 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
514
521
|
onClose: _e
|
|
515
522
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
516
523
|
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
517
|
-
|
|
524
|
+
It.value ? (s(), u("div", {
|
|
518
525
|
key: 1,
|
|
519
526
|
ref_key: "noTitle",
|
|
520
|
-
ref:
|
|
527
|
+
ref: Fe,
|
|
521
528
|
class: "vue-data-ui-no-title-space",
|
|
522
529
|
style: "height:36px; width: 100%;background:transparent"
|
|
523
530
|
}, null, 512)) : v("", !0),
|
|
@@ -528,7 +535,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
528
535
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
529
536
|
}, [
|
|
530
537
|
(s(), le(cl, {
|
|
531
|
-
key: `title_${
|
|
538
|
+
key: `title_${ze.value}`,
|
|
532
539
|
config: {
|
|
533
540
|
title: {
|
|
534
541
|
cy: "donut-div-title",
|
|
@@ -541,15 +548,15 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
541
548
|
}
|
|
542
549
|
}, null, 8, ["config"]))
|
|
543
550
|
], 512)) : v("", !0),
|
|
544
|
-
e.value.userOptions.show && ie.value && (r(
|
|
551
|
+
e.value.userOptions.show && ie.value && (r(Be) || r(we)) ? (s(), le(r(xt), {
|
|
545
552
|
ref_key: "details",
|
|
546
553
|
ref: Ct,
|
|
547
|
-
key: `user_option_${
|
|
554
|
+
key: `user_option_${Xe.value}`,
|
|
548
555
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
549
556
|
color: e.value.style.chart.color,
|
|
550
557
|
isPrinting: r(Ge),
|
|
551
|
-
isImaging: r(
|
|
552
|
-
uid:
|
|
558
|
+
isImaging: r(Re),
|
|
559
|
+
uid: m.value,
|
|
553
560
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
554
561
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
555
562
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -566,18 +573,18 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
566
573
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
567
574
|
isAnnotation: fe.value,
|
|
568
575
|
printScale: e.value.userOptions.print.scale,
|
|
569
|
-
onToggleFullscreen:
|
|
570
|
-
onGeneratePdf: r(
|
|
571
|
-
onGenerateCsv:
|
|
572
|
-
onGenerateImage: r(
|
|
573
|
-
onToggleTable:
|
|
574
|
-
onToggleLabels:
|
|
575
|
-
onToggleTooltip:
|
|
576
|
+
onToggleFullscreen: tt,
|
|
577
|
+
onGeneratePdf: r(We),
|
|
578
|
+
onGenerateCsv: et,
|
|
579
|
+
onGenerateImage: r(Ue),
|
|
580
|
+
onToggleTable: at,
|
|
581
|
+
onToggleLabels: ot,
|
|
582
|
+
onToggleTooltip: st,
|
|
576
583
|
onToggleAnnotator: _e,
|
|
577
584
|
style: k({
|
|
578
|
-
visibility: r(
|
|
585
|
+
visibility: r(Be) ? r(we) ? "visible" : "hidden" : "visible"
|
|
579
586
|
})
|
|
580
|
-
},
|
|
587
|
+
}, rt({ _: 2 }, [
|
|
581
588
|
l.$slots.menuIcon ? {
|
|
582
589
|
name: "menuIcon",
|
|
583
590
|
fn: P(({ isOpen: t, color: a }) => [
|
|
@@ -649,7 +656,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
649
656
|
xmlns: r(Qt),
|
|
650
657
|
class: Ce({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value, "vue-data-ui-svg": !0 }),
|
|
651
658
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
652
|
-
style: k(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
659
|
+
style: k(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ee.value.css}`)
|
|
653
660
|
}, [
|
|
654
661
|
h("g", {
|
|
655
662
|
ref_key: "G",
|
|
@@ -672,7 +679,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
672
679
|
e.value.type === "classic" && !isNaN(Q.value / _.value) ? (s(), u("defs", bl, [
|
|
673
680
|
e.value.style.chart.useGradient ? (s(), u("radialGradient", {
|
|
674
681
|
key: 0,
|
|
675
|
-
id: `gradient_${
|
|
682
|
+
id: `gradient_${m.value}`
|
|
676
683
|
}, [
|
|
677
684
|
h("stop", {
|
|
678
685
|
offset: "0%",
|
|
@@ -696,26 +703,26 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
696
703
|
], 8, wl)) : v("", !0)
|
|
697
704
|
])) : v("", !0),
|
|
698
705
|
e.value.type === "polar" ? (s(), u("defs", Cl, [
|
|
699
|
-
(s(!0), u(p, null,
|
|
700
|
-
id: `polar_gradient_${a}_${
|
|
706
|
+
(s(!0), u(p, null, M(d.value, (t, a) => (s(), u("radialGradient", {
|
|
707
|
+
id: `polar_gradient_${a}_${m.value}`,
|
|
701
708
|
cx: (isNaN(t.middlePoint.x / n.value.width * 100) ? 0 : t.middlePoint.x / n.value.width * 100) + "%",
|
|
702
709
|
cy: (isNaN(t.middlePoint.y / n.value.height * 100) ? 0 : t.middlePoint.y / n.value.height * 100) + "%",
|
|
703
710
|
r: "62%"
|
|
704
711
|
}, [
|
|
705
712
|
h("stop", {
|
|
706
713
|
offset: "0%",
|
|
707
|
-
"stop-color": r(Zt)(
|
|
714
|
+
"stop-color": r(Zt)(A.value[a].color, 0.05),
|
|
708
715
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
709
716
|
}, null, 8, Tl),
|
|
710
717
|
h("stop", {
|
|
711
718
|
offset: "100%",
|
|
712
|
-
"stop-color":
|
|
713
|
-
}, null, 8,
|
|
719
|
+
"stop-color": A.value[a].color
|
|
720
|
+
}, null, 8, Al)
|
|
714
721
|
], 8, Pl))), 256))
|
|
715
722
|
])) : v("", !0),
|
|
716
723
|
h("defs", null, [
|
|
717
724
|
h("filter", {
|
|
718
|
-
id: `blur_${
|
|
725
|
+
id: `blur_${m.value}`,
|
|
719
726
|
x: "-50%",
|
|
720
727
|
y: "-50%",
|
|
721
728
|
width: "200%",
|
|
@@ -724,15 +731,15 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
724
731
|
h("feGaussianBlur", {
|
|
725
732
|
in: "SourceGraphic",
|
|
726
733
|
stdDeviation: 2,
|
|
727
|
-
id: `blur_std_${
|
|
728
|
-
}, null, 8,
|
|
734
|
+
id: `blur_std_${m.value}`
|
|
735
|
+
}, null, 8, Ml),
|
|
729
736
|
o[5] || (o[5] = h("feColorMatrix", {
|
|
730
737
|
type: "saturate",
|
|
731
738
|
values: "0"
|
|
732
739
|
}, null, -1))
|
|
733
|
-
], 8,
|
|
740
|
+
], 8, Il),
|
|
734
741
|
h("filter", {
|
|
735
|
-
id: `shadow_${
|
|
742
|
+
id: `shadow_${m.value}`,
|
|
736
743
|
"color-interpolation-filters": "sRGB"
|
|
737
744
|
}, [
|
|
738
745
|
h("feDropShadow", {
|
|
@@ -744,7 +751,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
744
751
|
}, null, 8, Ll)
|
|
745
752
|
], 8, Sl),
|
|
746
753
|
h("filter", {
|
|
747
|
-
id: `drop_shadow_${
|
|
754
|
+
id: `drop_shadow_${m.value}`,
|
|
748
755
|
"color-interpolation-filters": "sRGB",
|
|
749
756
|
x: "-50%",
|
|
750
757
|
y: "-50%",
|
|
@@ -760,7 +767,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
760
767
|
}, null, 8, zl)
|
|
761
768
|
], 8, Fl)
|
|
762
769
|
]),
|
|
763
|
-
e.value.type === "classic" ? (s(!0), u(p, { key: 3 }, A
|
|
770
|
+
e.value.type === "classic" ? (s(!0), u(p, { key: 3 }, M(A.value.filter((t) => !t.ghost), (t, a) => (s(), u("g", null, [
|
|
764
771
|
Y(t) && y.value.dataLabels.show ? (s(), u("path", {
|
|
765
772
|
key: 0,
|
|
766
773
|
d: r(el)(t, { x: n.value.width / 2, y: n.value.height / 2 }, 16, 16, !1, !1, Q.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
@@ -772,7 +779,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
772
779
|
filter: ee(a)
|
|
773
780
|
}, null, 8, Ol)) : v("", !0)
|
|
774
781
|
]))), 256)) : v("", !0),
|
|
775
|
-
e.value.type === "polar" ? (s(!0), u(p, { key: 4 }, A
|
|
782
|
+
e.value.type === "polar" ? (s(!0), u(p, { key: 4 }, M(A.value.filter((t) => !t.ghost), (t, a) => (s(), u("g", null, [
|
|
776
783
|
Y(t) && y.value.dataLabels.show ? (s(), u("path", {
|
|
777
784
|
key: 0,
|
|
778
785
|
d: `M ${r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${d.value[a].middlePoint.x},${d.value[a].middlePoint.y}`,
|
|
@@ -793,44 +800,44 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
793
800
|
cy: n.value.height / 2,
|
|
794
801
|
r: _.value <= 0 ? 10 : _.value,
|
|
795
802
|
fill: e.value.style.chart.backgroundColor,
|
|
796
|
-
filter: `url(#shadow_${
|
|
803
|
+
filter: `url(#shadow_${m.value})`
|
|
797
804
|
}, null, 8, Yl)) : v("", !0),
|
|
798
805
|
l.$slots.pattern ? (s(), u("g", Xl, [
|
|
799
|
-
(s(!0), u(p, null,
|
|
806
|
+
(s(!0), u(p, null, M(Ie.dataset, (t, a) => (s(), u("defs", {
|
|
800
807
|
key: `pattern-${t.patternIndex}`
|
|
801
808
|
}, [
|
|
802
|
-
b(l.$slots, "pattern",
|
|
809
|
+
b(l.$slots, "pattern", it({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${m.value}_${a}` }), void 0, !0)
|
|
803
810
|
]))), 128))
|
|
804
811
|
])) : v("", !0),
|
|
805
812
|
S.value && e.value.type === "classic" ? (s(), u(p, { key: 7 }, [
|
|
806
|
-
(s(!0), u(p, null,
|
|
813
|
+
(s(!0), u(p, null, M(N.value, (t, a) => (s(), u("path", {
|
|
807
814
|
stroke: e.value.style.chart.backgroundColor,
|
|
808
815
|
d: t.arcSlice,
|
|
809
816
|
fill: "#FFFFFF"
|
|
810
817
|
}, null, 8, Vl))), 256)),
|
|
811
|
-
(s(!0), u(p, null,
|
|
818
|
+
(s(!0), u(p, null, M(N.value, (t, a) => (s(), u("path", {
|
|
812
819
|
class: "vue-ui-donut-arc-path",
|
|
813
820
|
d: t.arcSlice,
|
|
814
821
|
fill: t.color,
|
|
815
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
822
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
816
823
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
817
824
|
filter: ee(a)
|
|
818
825
|
}, null, 8, Dl))), 256)),
|
|
819
826
|
l.$slots.pattern ? (s(), u("g", Bl, [
|
|
820
|
-
(s(!0), u(p, null,
|
|
827
|
+
(s(!0), u(p, null, M(N.value, (t, a) => (s(), u("path", {
|
|
821
828
|
class: "vue-ui-donut-arc-path",
|
|
822
829
|
d: t.arcSlice,
|
|
823
830
|
fill: `url(#${t.pattern})`,
|
|
824
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
831
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
825
832
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
826
833
|
filter: ee(a)
|
|
827
|
-
}, null, 8,
|
|
834
|
+
}, null, 8, El))), 256))
|
|
828
835
|
])) : v("", !0)
|
|
829
836
|
], 64)) : v("", !0),
|
|
830
837
|
S.value && e.value.type === "polar" ? (s(), u(p, { key: 8 }, [
|
|
831
|
-
|
|
832
|
-
(s(!0), u(p, null,
|
|
833
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
838
|
+
A.value.length > 1 ? (s(), u("g", Gl, [
|
|
839
|
+
(s(!0), u(p, null, M(N.value, (t, a) => (s(), u("path", {
|
|
840
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
834
841
|
d: d.value[a].path,
|
|
835
842
|
fill: "#FFFFFF",
|
|
836
843
|
style: k({
|
|
@@ -838,24 +845,24 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
838
845
|
})
|
|
839
846
|
}, null, 12, Rl))), 256)),
|
|
840
847
|
e.value.style.chart.layout.donut.useShadow ? (s(), u("g", Wl, [
|
|
841
|
-
(s(!0), u(p, null,
|
|
848
|
+
(s(!0), u(p, null, M(N.value, (t, a) => (s(), u("path", {
|
|
842
849
|
class: "vue-ui-donut-arc-path",
|
|
843
850
|
d: d.value[a].path,
|
|
844
851
|
fill: "transparent",
|
|
845
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
852
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
846
853
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
847
|
-
filter: `url(#drop_shadow_${
|
|
854
|
+
filter: `url(#drop_shadow_${m.value})`,
|
|
848
855
|
style: k({
|
|
849
856
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
850
857
|
})
|
|
851
858
|
}, null, 12, Ul))), 256))
|
|
852
859
|
])) : v("", !0),
|
|
853
860
|
l.$slots.pattern ? (s(), u("g", jl, [
|
|
854
|
-
(s(!0), u(p, null,
|
|
861
|
+
(s(!0), u(p, null, M(N.value, (t, a) => (s(), u("path", {
|
|
855
862
|
class: "vue-ui-donut-arc-path",
|
|
856
863
|
d: d.value[a].path,
|
|
857
864
|
fill: `url(#${t.pattern})`,
|
|
858
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
865
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
859
866
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
860
867
|
filter: ee(a),
|
|
861
868
|
style: k({
|
|
@@ -863,11 +870,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
863
870
|
})
|
|
864
871
|
}, null, 12, Hl))), 256))
|
|
865
872
|
])) : v("", !0),
|
|
866
|
-
(s(!0), u(p, null,
|
|
873
|
+
(s(!0), u(p, null, M(N.value, (t, a) => (s(), u("path", {
|
|
867
874
|
class: "vue-ui-donut-arc-path",
|
|
868
875
|
d: d.value[a].path,
|
|
869
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
870
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
876
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${m.value})` : t.color,
|
|
877
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
871
878
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
872
879
|
filter: ee(a),
|
|
873
880
|
style: k({
|
|
@@ -880,7 +887,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
880
887
|
cx: n.value.width / 2,
|
|
881
888
|
cy: n.value.height / 2,
|
|
882
889
|
r: _.value,
|
|
883
|
-
fill: `url(#pattern_${
|
|
890
|
+
fill: `url(#pattern_${m.value}_${A.value[0].patternIndex})`,
|
|
884
891
|
stroke: e.value.style.chart.backgroundColor,
|
|
885
892
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
886
893
|
}, null, 8, Kl)) : v("", !0),
|
|
@@ -888,14 +895,14 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
888
895
|
cx: n.value.width / 2,
|
|
889
896
|
cy: n.value.height / 2,
|
|
890
897
|
r: _.value,
|
|
891
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
898
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${m.value})` : A.value[0].color,
|
|
892
899
|
stroke: e.value.style.chart.backgroundColor,
|
|
893
900
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
894
901
|
}, null, 8, Ql)
|
|
895
902
|
]))
|
|
896
903
|
], 64)) : (s(), u(p, { key: 9 }, [
|
|
897
904
|
e.value.type === "classic" && !Ft.value ? (s(), u("g", Zl, [
|
|
898
|
-
(s(!0), u(p, null,
|
|
905
|
+
(s(!0), u(p, null, M(zt.value, (t, a) => (s(), u("path", {
|
|
899
906
|
class: "vue-ui-donut-arc-path",
|
|
900
907
|
d: t.arcSlice,
|
|
901
908
|
fill: t.color,
|
|
@@ -919,13 +926,13 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
919
926
|
/* This might require adjustments */
|
|
920
927
|
_.value <= 0 ? 10 : _.value
|
|
921
928
|
),
|
|
922
|
-
fill: `url(#gradient_${
|
|
929
|
+
fill: `url(#gradient_${m.value})`
|
|
923
930
|
}, null, 8, la)) : v("", !0),
|
|
924
931
|
S.value ? (s(), u(p, { key: 11 }, [
|
|
925
|
-
|
|
926
|
-
(s(!0), u(p, null, A
|
|
932
|
+
A.value.length > 1 || e.value.type === "classic" ? (s(), u("g", aa, [
|
|
933
|
+
(s(!0), u(p, null, M(A.value.filter((t) => !t.ghost), (t, a) => (s(), u("path", {
|
|
927
934
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
928
|
-
fill: O.value === a ?
|
|
935
|
+
fill: O.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
929
936
|
onMouseenter: (i) => q({
|
|
930
937
|
datapoint: t,
|
|
931
938
|
relativeIndex: a,
|
|
@@ -942,13 +949,13 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
942
949
|
r: _.value,
|
|
943
950
|
fill: "transparent",
|
|
944
951
|
onMouseenter: o[0] || (o[0] = (t) => q({
|
|
945
|
-
datapoint:
|
|
952
|
+
datapoint: A.value[0],
|
|
946
953
|
relativeIndex: 0,
|
|
947
|
-
seriesIndex:
|
|
954
|
+
seriesIndex: A.value[0].seriesIndex,
|
|
948
955
|
show: !0
|
|
949
956
|
})),
|
|
950
|
-
onMouseleave: o[1] || (o[1] = (t) => H({ datapoint:
|
|
951
|
-
onClick: o[2] || (o[2] = (t) => K(
|
|
957
|
+
onMouseleave: o[1] || (o[1] = (t) => H({ datapoint: A.value[0], seriesIndex: A.value[0].seriesIndex })),
|
|
958
|
+
onClick: o[2] || (o[2] = (t) => K(A.value[0], l.i))
|
|
952
959
|
}, null, 40, na)
|
|
953
960
|
]))
|
|
954
961
|
], 64)) : v("", !0),
|
|
@@ -961,7 +968,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
961
968
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
962
969
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
963
970
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
964
|
-
},
|
|
971
|
+
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, ua)) : v("", !0),
|
|
965
972
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), u("text", {
|
|
966
973
|
key: 1,
|
|
967
974
|
"text-anchor": "middle",
|
|
@@ -970,7 +977,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
970
977
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
971
978
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
972
979
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
973
|
-
},
|
|
980
|
+
}, I(r(V)(
|
|
974
981
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
975
982
|
S.value,
|
|
976
983
|
r(z)({
|
|
@@ -987,7 +994,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
987
994
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
988
995
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
989
996
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
990
|
-
},
|
|
997
|
+
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, ia)) : v("", !0),
|
|
991
998
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), u("text", {
|
|
992
999
|
key: 3,
|
|
993
1000
|
"text-anchor": "middle",
|
|
@@ -996,34 +1003,34 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
996
1003
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
997
1004
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
998
1005
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
999
|
-
},
|
|
1006
|
+
}, I(Z.value || T.value ? "--" : r(V)(
|
|
1000
1007
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1001
|
-
|
|
1008
|
+
Qe.value,
|
|
1002
1009
|
r(z)({
|
|
1003
1010
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1004
|
-
v:
|
|
1011
|
+
v: Qe.value,
|
|
1005
1012
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1006
1013
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1007
1014
|
})
|
|
1008
1015
|
)), 13, va)) : v("", !0)
|
|
1009
1016
|
], 64)) : v("", !0),
|
|
1010
|
-
(s(!0), u(p, null,
|
|
1017
|
+
(s(!0), u(p, null, M(N.value.filter((t) => !t.ghost), (t, a) => (s(), u("g", {
|
|
1011
1018
|
filter: ee(a),
|
|
1012
1019
|
class: Ce({ animated: e.value.useCssAnimation })
|
|
1013
1020
|
}, [
|
|
1014
1021
|
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), u("g", ca, [
|
|
1015
1022
|
(s(), u("foreignObject", {
|
|
1016
1023
|
x: r(x)(t, !0).anchor === "end" ? r(x)(t).x - 120 : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - 60 : r(x)(t).x,
|
|
1017
|
-
y: r(he)(t) - (
|
|
1024
|
+
y: r(he)(t) - (lt.value ? 20 : 0),
|
|
1018
1025
|
width: "120",
|
|
1019
1026
|
height: "60",
|
|
1020
1027
|
style: { overflow: "visible" }
|
|
1021
1028
|
}, [
|
|
1022
1029
|
h("div", null, [
|
|
1023
|
-
b(l.$slots, "dataLabel",
|
|
1030
|
+
b(l.$slots, "dataLabel", it({ ref_for: !0 }, {
|
|
1024
1031
|
datapoint: t,
|
|
1025
1032
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a,
|
|
1026
|
-
isSafari:
|
|
1033
|
+
isSafari: lt.value,
|
|
1027
1034
|
isVisible: Y(t) && y.value.dataLabels.show,
|
|
1028
1035
|
textAlign: r(x)(t, !0, 16, !0).anchor,
|
|
1029
1036
|
flexAlign: r(x)(t, !0, 16).anchor,
|
|
@@ -1041,7 +1048,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1041
1048
|
stroke: e.value.style.chart.backgroundColor,
|
|
1042
1049
|
"stroke-width": 1,
|
|
1043
1050
|
r: 3,
|
|
1044
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${
|
|
1051
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${m.value})`,
|
|
1045
1052
|
onClick: (i) => K(t, a),
|
|
1046
1053
|
onMouseenter: (i) => q({
|
|
1047
1054
|
datapoint: t,
|
|
@@ -1061,7 +1068,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1061
1068
|
stroke: e.value.style.chart.backgroundColor,
|
|
1062
1069
|
"stroke-width": 1,
|
|
1063
1070
|
r: 3,
|
|
1064
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${
|
|
1071
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${m.value})`,
|
|
1065
1072
|
onClick: (i) => K(t, a),
|
|
1066
1073
|
onMouseenter: (i) => q({
|
|
1067
1074
|
datapoint: t,
|
|
@@ -1092,7 +1099,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1092
1099
|
show: !0
|
|
1093
1100
|
}),
|
|
1094
1101
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1095
|
-
},
|
|
1102
|
+
}, I(ke(t, N.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${r(V)(
|
|
1096
1103
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1097
1104
|
t.value,
|
|
1098
1105
|
r(z)({
|
|
@@ -1119,7 +1126,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1119
1126
|
show: !0
|
|
1120
1127
|
}),
|
|
1121
1128
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1122
|
-
},
|
|
1129
|
+
}, I(t.name), 45, ma)) : v("", !0)
|
|
1123
1130
|
], 64)) : v("", !0),
|
|
1124
1131
|
e.value.type === "polar" ? (s(), u(p, { key: 3 }, [
|
|
1125
1132
|
Y(t) && y.value.dataLabels.show ? (s(), u("text", {
|
|
@@ -1141,7 +1148,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1141
1148
|
show: !0
|
|
1142
1149
|
}),
|
|
1143
1150
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1144
|
-
},
|
|
1151
|
+
}, I(ke(t, N.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${r(V)(
|
|
1145
1152
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1146
1153
|
t.value,
|
|
1147
1154
|
r(z)({
|
|
@@ -1171,7 +1178,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1171
1178
|
show: !0
|
|
1172
1179
|
}),
|
|
1173
1180
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1174
|
-
},
|
|
1181
|
+
}, I(t.name), 45, wa)) : v("", !0)
|
|
1175
1182
|
], 64)) : v("", !0)
|
|
1176
1183
|
])),
|
|
1177
1184
|
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(), u("g", ka, [
|
|
@@ -1213,7 +1220,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1213
1220
|
], 512)
|
|
1214
1221
|
], 14, gl)) : v("", !0),
|
|
1215
1222
|
l.$slots.watermark ? (s(), u("div", $a, [
|
|
1216
|
-
b(l.$slots, "watermark", ue(re({ isPrinting: r(Ge) || r(
|
|
1223
|
+
b(l.$slots, "watermark", ue(re({ isPrinting: r(Ge) || r(Re) })), void 0, !0)
|
|
1217
1224
|
])) : v("", !0),
|
|
1218
1225
|
ie.value ? v("", !0) : (s(), le(r(wt), {
|
|
1219
1226
|
key: 6,
|
|
@@ -1230,19 +1237,19 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1230
1237
|
}, null, 8, ["config"])),
|
|
1231
1238
|
h("div", {
|
|
1232
1239
|
ref_key: "chartLegend",
|
|
1233
|
-
ref:
|
|
1240
|
+
ref: Se
|
|
1234
1241
|
}, [
|
|
1235
1242
|
e.value.style.chart.legend.show ? (s(), le(dl, {
|
|
1236
|
-
key: `legend_${
|
|
1237
|
-
legendSet:
|
|
1243
|
+
key: `legend_${Ne.value}`,
|
|
1244
|
+
legendSet: Ke.value,
|
|
1238
1245
|
config: Lt.value,
|
|
1239
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1240
|
-
},
|
|
1246
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => Je(t))
|
|
1247
|
+
}, rt({
|
|
1241
1248
|
item: P(({ legend: t, index: a }) => [
|
|
1242
1249
|
h("div", {
|
|
1243
1250
|
style: k(`opacity:${D.value.includes(a) ? 0.5 : 1}`),
|
|
1244
1251
|
onClick: (i) => t.segregate()
|
|
1245
|
-
},
|
|
1252
|
+
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? r(V)(
|
|
1246
1253
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1247
1254
|
t.value,
|
|
1248
1255
|
r(z)({
|
|
@@ -1255,11 +1262,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1255
1262
|
datapoint: t,
|
|
1256
1263
|
index: a
|
|
1257
1264
|
}
|
|
1258
|
-
) : "") + " " +
|
|
1265
|
+
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? D.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${Yt(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / S.value) ? "-" : r(V)(
|
|
1259
1266
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1260
|
-
|
|
1267
|
+
Ze.value(t),
|
|
1261
1268
|
r(z)({
|
|
1262
|
-
v:
|
|
1269
|
+
v: Ze.value(t),
|
|
1263
1270
|
s: "%",
|
|
1264
1271
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1265
1272
|
})
|
|
@@ -1275,18 +1282,18 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1275
1282
|
radius: 30,
|
|
1276
1283
|
stroke: "none",
|
|
1277
1284
|
plot: { x: 30, y: 30 },
|
|
1278
|
-
fill: `url(#pattern_${
|
|
1285
|
+
fill: `url(#pattern_${m.value}_${a})`
|
|
1279
1286
|
}, null, 8, ["shape", "fill"])
|
|
1280
1287
|
]),
|
|
1281
1288
|
key: "0"
|
|
1282
1289
|
} : void 0
|
|
1283
1290
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1284
|
-
b(l.$slots, "legend", { legend:
|
|
1291
|
+
b(l.$slots, "legend", { legend: Ke.value }, void 0, !0)
|
|
1285
1292
|
], 512),
|
|
1286
1293
|
l.$slots.source ? (s(), u("div", {
|
|
1287
1294
|
key: 7,
|
|
1288
1295
|
ref_key: "source",
|
|
1289
|
-
ref:
|
|
1296
|
+
ref: Le,
|
|
1290
1297
|
dir: "auto"
|
|
1291
1298
|
}, [
|
|
1292
1299
|
b(l.$slots, "source", {}, void 0, !0)
|
|
@@ -1333,7 +1340,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1333
1340
|
}, {
|
|
1334
1341
|
content: P(() => [
|
|
1335
1342
|
(s(), le(r(gt), {
|
|
1336
|
-
key: `table_${
|
|
1343
|
+
key: `table_${Oe.value}`,
|
|
1337
1344
|
colNames: ye.value.colNames,
|
|
1338
1345
|
head: ye.value.head,
|
|
1339
1346
|
body: ye.value.body,
|
|
@@ -1348,7 +1355,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1348
1355
|
}, null, 8, Pa)
|
|
1349
1356
|
]),
|
|
1350
1357
|
td: P(({ td: t }) => [
|
|
1351
|
-
|
|
1358
|
+
Gt(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(V)(
|
|
1352
1359
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1353
1360
|
t,
|
|
1354
1361
|
r(z)({
|
|
@@ -1374,7 +1381,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1374
1381
|
}, 8, ["config"])) : v("", !0)
|
|
1375
1382
|
], 46, pl));
|
|
1376
1383
|
}
|
|
1377
|
-
}, Da = /* @__PURE__ */ fl(Ta, [["__scopeId", "data-v-
|
|
1384
|
+
}, Da = /* @__PURE__ */ fl(Ta, [["__scopeId", "data-v-f65ce540"]]);
|
|
1378
1385
|
export {
|
|
1379
1386
|
Da as default
|
|
1380
1387
|
};
|